{"version":3,"names":["dynamic","omit","mergeRootProps","resolveClassStyle","Separator","props","orientation","internal","role","aria-orientation","data-orientation","userStyling","userProps","styledUserProps","merged","Tag","as"],"sources":["separator.tsx"],"sourcesContent":["import type { JSX, ValidComponent } from \"@solidjs/web\";\nimport { dynamic } from \"@solidjs/web\";\nimport { omit } from \"solid-js\";\nimport { mergeRootProps } from \"../internals/merge-root-props\";\nimport { resolveClassStyle } from \"../internals/resolve-class-style\";\nimport type { BaseUIComponentProps, Orientation } from \"../internals/types\";\n\nexport type { Orientation };\n\nexport interface SeparatorState {\n\torientation: Orientation;\n}\n\nexport interface SeparatorProps\n\textends Omit<\n\t\tBaseUIComponentProps<\"div\", SeparatorState>,\n\t\t\"role\" | \"aria-orientation\"\n\t> {\n\t/**\n\t * Tag/component to render. Defaults to `\"div\"`. Replaces the\n\t * pre-spike `render` prop (axis G).\n\t */\n\tas?: ValidComponent;\n\torientation?: Orientation;\n}\n\n/**\n * A separator that visually or semantically divides content. Renders a\n * `<div>` element (or `as` override).\n *\n * Solid 2.0-native rewire (§1 wave 1): replaces `renderElement` with\n * `dynamic(() => props.as ?? \"div\")`, threading the role +\n * `aria-orientation` + `data-orientation` reactive bag through\n * `mergeRootProps`.\n */\nexport function Separator(props: SeparatorProps): JSX.Element {\n\tconst orientation = (): Orientation => props.orientation ?? \"horizontal\";\n\n\tconst internal = {\n\t\trole: \"separator\" as const,\n\t\tget \"aria-orientation\"() {\n\t\t\treturn orientation();\n\t\t},\n\t\tget \"data-orientation\"() {\n\t\t\treturn orientation();\n\t\t},\n\t};\n\n\tconst userStyling = resolveClassStyle(props, () => ({\n\t\torientation: orientation(),\n\t}));\n\n\tconst userProps = omit(props, \"class\", \"style\", \"attrs\", \"as\", \"orientation\");\n\n\tconst styledUserProps = mergeRootProps(userStyling, userProps);\n\n\tconst merged = mergeRootProps(internal, styledUserProps);\n\n\tconst Tag = dynamic(() => props.as ?? \"div\");\n\treturn <Tag {...merged} />;\n}\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,cAAc;AACtC,SAASC,IAAI,QAAQ,UAAU;AAC/B,SAASC,cAAc,QAAQ,+BAA+B;AAC9D,SAASC,iBAAiB,QAAQ,kCAAkC;AAsBpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACC,KAAqB,EAAe;EAC7D,MAAMC,WAAW,GAAGA,CAAA,KAAmBD,KAAK,CAACC,WAAW,IAAI,YAAY;EAExE,MAAMC,QAAQ,GAAG;IAChBC,IAAI,EAAE,WAAoB;IAC1B,IAAI,kBAAkBC,CAAA,EAAG;MACxB,OAAOH,WAAW,CAAC,CAAC;IACrB,CAAC;IACD,IAAI,kBAAkBI,CAAA,EAAG;MACxB,OAAOJ,WAAW,CAAC,CAAC;IACrB;EACD,CAAC;EAED,MAAMK,WAAW,GAAGR,iBAAiB,CAACE,KAAK,EAAE,OAAO;IACnDC,WAAW,EAAEA,WAAW,CAAC;EAC1B,CAAC,CAAC,CAAC;EAEH,MAAMM,SAAS,GAAGX,IAAI,CAACI,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,CAAC;EAE7E,MAAMQ,eAAe,GAAGX,cAAc,CAACS,WAAW,EAAEC,SAAS,CAAC;EAE9D,MAAME,MAAM,GAAGZ,cAAc,CAACK,QAAQ,EAAEM,eAAe,CAAC;EAExD,MAAME,GAAG,GAAGf,OAAO,CAAC,MAAMK,KAAK,CAACW,EAAE,IAAI,KAAK,CAAC;EAC5C,OAAO,CAAC,GAAG,CAAC,IAAIF,MAAM,CAAC,GAAG;AAC3B","ignoreList":[]}