Files
wdi-dashboard/node_modules/@chakra-ui/layout/dist/chunk-W7WUSNWJ.mjs.map
2024-08-16 15:06:52 +05:30

1 line
2.5 KiB
Plaintext

{"version":3,"sources":["../src/divider.tsx"],"sourcesContent":["import {\n chakra,\n forwardRef,\n omitThemingProps,\n ThemingProps,\n useStyleConfig,\n HTMLChakraProps,\n} from \"@chakra-ui/system\"\nimport { cx } from \"@chakra-ui/shared-utils\"\n\n/**\n * Layout component used to visually separate content in a list or group.\n * It displays a thin horizontal or vertical line, and renders a `hr` tag.\n *\n * @see Docs https://chakra-ui.com/divider\n */\nexport const Divider = forwardRef<DividerProps, \"hr\">(function Divider(\n props,\n ref,\n) {\n const {\n borderLeftWidth,\n borderBottomWidth,\n borderTopWidth,\n borderRightWidth,\n borderWidth,\n borderStyle,\n borderColor,\n ...styles\n } = useStyleConfig(\"Divider\", props)\n const {\n className,\n orientation = \"horizontal\",\n __css,\n ...rest\n } = omitThemingProps(props)\n\n const dividerStyles = {\n vertical: {\n borderLeftWidth:\n borderLeftWidth || borderRightWidth || borderWidth || \"1px\",\n height: \"100%\",\n },\n horizontal: {\n borderBottomWidth:\n borderBottomWidth || borderTopWidth || borderWidth || \"1px\",\n width: \"100%\",\n },\n }\n\n return (\n <chakra.hr\n ref={ref}\n aria-orientation={orientation}\n {...rest}\n __css={{\n ...styles,\n border: \"0\",\n\n borderColor,\n borderStyle,\n ...dividerStyles[orientation],\n ...__css,\n }}\n className={cx(\"chakra-divider\", className)}\n />\n )\n})\n\nexport interface DividerProps\n extends HTMLChakraProps<\"div\">,\n ThemingProps<\"Divider\"> {\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nDivider.displayName = \"Divider\"\n"],"mappings":";;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,OAEK;AACP,SAAS,UAAU;AA2Cf;AAnCG,IAAM,UAAU,WAA+B,SAASA,SAC7D,OACA,KACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI,eAAe,WAAW,KAAK;AACnC,QAAM;AAAA,IACJ;AAAA,IACA,cAAc;AAAA,IACd;AAAA,IACA,GAAG;AAAA,EACL,IAAI,iBAAiB,KAAK;AAE1B,QAAM,gBAAgB;AAAA,IACpB,UAAU;AAAA,MACR,iBACE,mBAAmB,oBAAoB,eAAe;AAAA,MACxD,QAAQ;AAAA,IACV;AAAA,IACA,YAAY;AAAA,MACV,mBACE,qBAAqB,kBAAkB,eAAe;AAAA,MACxD,OAAO;AAAA,IACT;AAAA,EACF;AAEA,SACE;AAAA,IAAC,OAAO;AAAA,IAAP;AAAA,MACC;AAAA,MACA,oBAAkB;AAAA,MACjB,GAAG;AAAA,MACJ,OAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ;AAAA,QAER;AAAA,QACA;AAAA,QACA,GAAG,cAAc,WAAW;AAAA,QAC5B,GAAG;AAAA,MACL;AAAA,MACA,WAAW,GAAG,kBAAkB,SAAS;AAAA;AAAA,EAC3C;AAEJ,CAAC;AAQD,QAAQ,cAAc;","names":["Divider"]}