{"version":3,"file":"separator.B-RS-Aaf.js","sources":["../../../node_modules/@radix-ui/react-separator/dist/index.mjs","../../../src/components/ui/separator.tsx"],"sourcesContent":["// packages/react/separator/src/Separator.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Separator\";\nvar DEFAULT_ORIENTATION = \"horizontal\";\nvar ORIENTATIONS = [\"horizontal\", \"vertical\"];\nvar Separator = React.forwardRef((props, forwardedRef) => {\n const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;\n const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;\n const ariaOrientation = orientation === \"vertical\" ? orientation : void 0;\n const semanticProps = decorative ? { role: \"none\" } : { \"aria-orientation\": ariaOrientation, role: \"separator\" };\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-orientation\": orientation,\n ...semanticProps,\n ...domProps,\n ref: forwardedRef\n }\n );\n});\nSeparator.displayName = NAME;\nfunction isValidOrientation(orientation) {\n return ORIENTATIONS.includes(orientation);\n}\nvar Root = Separator;\nexport {\n Root,\n Separator\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from 'react'\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\n\nimport { cn } from '@lib/utils'\n\ninterface SfcSeparatorProps extends SeparatorPrimitive.SeparatorProps {\n strokeWidth?: number | string | undefined\n color?: string | undefined\n}\n\nconst Separator = React.forwardRef<\n React.ElementRef,\n SfcSeparatorProps\n>(\n (\n {\n className,\n orientation = 'horizontal',\n decorative = true,\n strokeWidth = 2,\n color = undefined,\n ...props\n },\n ref\n ) => (\n \n )\n)\nSeparator.displayName = SeparatorPrimitive.Root.displayName\n\nexport { Separator }\n"],"names":["NAME","DEFAULT_ORIENTATION","ORIENTATIONS","Separator","React.forwardRef","props","forwardedRef","decorative","orientationProp","domProps","orientation","isValidOrientation","semanticProps","jsx","Primitive","Root","className","strokeWidth","color","ref","SeparatorPrimitive.Root","cn"],"mappings":"0gBAIA,IAAIA,EAAO,YACPC,EAAsB,aACtBC,EAAe,CAAC,aAAc,UAAU,EACxCC,EAAYC,EAAgB,WAAC,CAACC,EAAOC,IAAiB,CACxD,KAAM,CAAE,WAAAC,EAAY,YAAaC,EAAkBP,EAAqB,GAAGQ,CAAU,EAAGJ,EAClFK,EAAcC,EAAmBH,CAAe,EAAIA,EAAkBP,EAEtEW,EAAgBL,EAAa,CAAE,KAAM,MAAM,EAAK,CAAE,mBADhCG,IAAgB,WAAaA,EAAc,OAC0B,KAAM,aACnG,OAAuBG,EAAG,IACxBC,EAAU,IACV,CACE,mBAAoBJ,EACpB,GAAGE,EACH,GAAGH,EACH,IAAKH,CACN,CACL,CACA,CAAC,EACDH,EAAU,YAAcH,EACxB,SAASW,EAAmBD,EAAa,CACvC,OAAOR,EAAa,SAASQ,CAAW,CAC1C,CACA,IAAIK,EAAOZ,EChBX,MAAMA,EAAYC,EAAM,WAItB,CACE,CACE,UAAAY,EACA,YAAAN,EAAc,aACd,WAAAH,EAAa,GACb,YAAAU,EAAc,EACd,MAAAC,EAAQ,OACR,GAAGb,GAELc,IAEAN,EAAA,IAACO,EAAA,CACC,IAAAD,EACA,WAAAZ,EACA,YAAAG,EACA,UAAWW,EACT,WACAX,IAAgB,aACZ,kCACA,kCACJQ,IAAUD,IAAgB,IAAM,cAAgB,eAChDD,CACF,EACA,MACE,CACE,kBAAmB,GAAGC,CAAW,KAGjC,YAAa,QACb,iBAAkB,QAClB,uBAAwB,OAC1B,EAED,GAAGZ,CAAA,CACN,CAEJ,EACAF,EAAU,YAAciB,EAAwB","x_google_ignoreList":[0]}