{"version":3,"names":["ARROW_UP","ARROW_DOWN","ARROW_LEFT","ARROW_RIGHT","HOME","END","HORIZONTAL_KEYS","Set","HORIZONTAL_KEYS_WITH_EXTRA_KEYS","VERTICAL_KEYS","VERTICAL_KEYS_WITH_EXTRA_KEYS","ARROW_KEYS","ALL_KEYS","SHIFT","CONTROL","ALT","META","MODIFIER_KEYS","ACTIVE_COMPOSITE_ITEM"],"sources":["composite-constants.ts"],"sourcesContent":["/**\n * Keyboard constants, direction helpers, and a small attribute name used by the\n * composite primitives.\n *\n * Mirrors `packages/react/src/internals/composite/composite.ts` +\n * `constants.ts` in Base UI React, adapted to Solid. Keep the naming identical\n * so downstream consumers can port keyboard-handling logic straight across.\n */\n\nexport const ARROW_UP = \"ArrowUp\";\nexport const ARROW_DOWN = \"ArrowDown\";\nexport const ARROW_LEFT = \"ArrowLeft\";\nexport const ARROW_RIGHT = \"ArrowRight\";\nexport const HOME = \"Home\";\nexport const END = \"End\";\n\nexport const HORIZONTAL_KEYS = new Set<string>([ARROW_LEFT, ARROW_RIGHT]);\nexport const HORIZONTAL_KEYS_WITH_EXTRA_KEYS = new Set<string>([\n\tARROW_LEFT,\n\tARROW_RIGHT,\n\tHOME,\n\tEND,\n]);\nexport const VERTICAL_KEYS = new Set<string>([ARROW_UP, ARROW_DOWN]);\nexport const VERTICAL_KEYS_WITH_EXTRA_KEYS = new Set<string>([\n\tARROW_UP,\n\tARROW_DOWN,\n\tHOME,\n\tEND,\n]);\nexport const ARROW_KEYS = new Set<string>([\n\tARROW_UP,\n\tARROW_DOWN,\n\tARROW_LEFT,\n\tARROW_RIGHT,\n]);\nexport const ALL_KEYS = new Set<string>([\n\tARROW_UP,\n\tARROW_DOWN,\n\tARROW_LEFT,\n\tARROW_RIGHT,\n\tHOME,\n\tEND,\n]);\n\nconst SHIFT = \"Shift\" as const;\nconst CONTROL = \"Control\" as const;\nconst ALT = \"Alt\" as const;\nconst META = \"Meta\" as const;\n\nexport const MODIFIER_KEYS = new Set([SHIFT, CONTROL, ALT, META] as const);\nexport type ModifierKey =\n\ttypeof MODIFIER_KEYS extends Set<infer Keys> ? Keys : never;\n\n/**\n * Data attribute that marks an element as the \"initially active\" composite\n * item. On first non-empty map update, `useCompositeRoot` picks up this marker\n * and moves `highlightedIndex` to the matching item.\n */\nexport const ACTIVE_COMPOSITE_ITEM = \"data-composite-item-active\";\n\n/**\n * `orientation` value accepted by the composite root.\n */\nexport type CompositeOrientation = \"horizontal\" | \"vertical\" | \"both\";\n\n/**\n * Text direction. Matches the shape used throughout Base UI; we don't depend on\n * a DirectionContext here — the composite root takes it as a plain prop so\n * consumers can thread in whatever source of truth they want.\n */\nexport type TextDirection = \"ltr\" | \"rtl\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,QAAQ,GAAG,SAAS;AACjC,OAAO,MAAMC,UAAU,GAAG,WAAW;AACrC,OAAO,MAAMC,UAAU,GAAG,WAAW;AACrC,OAAO,MAAMC,WAAW,GAAG,YAAY;AACvC,OAAO,MAAMC,IAAI,GAAG,MAAM;AAC1B,OAAO,MAAMC,GAAG,GAAG,KAAK;AAExB,OAAO,MAAMC,eAAe,GAAG,IAAIC,GAAG,CAAS,CAACL,UAAU,EAAEC,WAAW,CAAC,CAAC;AACzE,OAAO,MAAMK,+BAA+B,GAAG,IAAID,GAAG,CAAS,CAC9DL,UAAU,EACVC,WAAW,EACXC,IAAI,EACJC,GAAG,CACH,CAAC;AACF,OAAO,MAAMI,aAAa,GAAG,IAAIF,GAAG,CAAS,CAACP,QAAQ,EAAEC,UAAU,CAAC,CAAC;AACpE,OAAO,MAAMS,6BAA6B,GAAG,IAAIH,GAAG,CAAS,CAC5DP,QAAQ,EACRC,UAAU,EACVG,IAAI,EACJC,GAAG,CACH,CAAC;AACF,OAAO,MAAMM,UAAU,GAAG,IAAIJ,GAAG,CAAS,CACzCP,QAAQ,EACRC,UAAU,EACVC,UAAU,EACVC,WAAW,CACX,CAAC;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