ics-ui-kit 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -36
- package/dist/AlertContext-CxjW1LVL.js.map +1 -1
- package/dist/AlertIcon-5B6AgZpe.js.map +1 -1
- package/dist/Button-Dg89xRSi.js.map +1 -1
- package/dist/ButtonBase-e6qyv6mD.js.map +1 -1
- package/dist/CheckboxField-cX09-eBX.js.map +1 -1
- package/dist/Command-BhbfL5wm.js.map +1 -1
- package/dist/ComponentVariantProvider-B0SFUaXB.js.map +1 -1
- package/dist/Description-BTPMlTT-.js.map +1 -1
- package/dist/Dialog-ByiJIDhl.js.map +1 -1
- package/dist/Divider-DPW5ZhZ8.js.map +1 -1
- package/dist/EmptyState-DRKjscH-.js.map +1 -1
- package/dist/ErrorState-B26k67-z.js.map +1 -1
- package/dist/FeatureIcon-BGE0Orkc.js.map +1 -1
- package/dist/{Field-CKl59qUB.js → Field-BiIWtq9o.js} +13 -13
- package/dist/Field-BiIWtq9o.js.map +1 -0
- package/dist/FieldLabel-QJ4rJFOi.js.map +1 -1
- package/dist/FolderSvg-cw0DxNVy.js.map +1 -1
- package/dist/FormFooterTemplate-DPB6Dkxn.js.map +1 -1
- package/dist/FormHeader--F6b2aRk.js.map +1 -1
- package/dist/{FormStack-B4QOuYgO.js → FormStack-DO15vBgd.js} +2 -2
- package/dist/FormStack-DO15vBgd.js.map +1 -0
- package/dist/HintState-BxrCAWqq.js.map +1 -1
- package/dist/Icon-DH3ev9GK.js.map +1 -1
- package/dist/IconButton-DwkpNgn3.js.map +1 -1
- package/dist/IconTooltip-CKJKGHbk.js.map +1 -1
- package/dist/Indicator-AqxHWPA9.js.map +1 -1
- package/dist/InputGroup-BvD9Igmt.js.map +1 -1
- package/dist/InputOTP-B2e1nfSO.js.map +1 -1
- package/dist/Loader-BpHiL6W-.js.map +1 -1
- package/dist/MenuItem-pvsONHlh.js.map +1 -1
- package/dist/MenuItemShortcut-DgPol9Nz.js.map +1 -1
- package/dist/MenuItemText-7uPl9P3z.js.map +1 -1
- package/dist/Overlay-2XMlxApi.js.map +1 -1
- package/dist/Popover-Dvr7y0YY.js.map +1 -1
- package/dist/RichButton-DuPTenmS.js.map +1 -1
- package/dist/ScrollArea-CuuTeDn3.js.map +1 -1
- package/dist/ScrollShadowContainer-DdrnF8qU.js.map +1 -1
- package/dist/SearchSelectTag-DFCX9zT1.js.map +1 -1
- package/dist/Select-DRwv6-eZ.js.map +1 -1
- package/dist/Sheet-rtwmzm2-.js.map +1 -1
- package/dist/Shortcut-D8L15_ed.js.map +1 -1
- package/dist/Skeleton-y6I-i9q5.js.map +1 -1
- package/dist/Tag-DdHXTyKF.js.map +1 -1
- package/dist/Text-DeBE8AKl.js.map +1 -1
- package/dist/TextInput-Cj50ImXi.js.map +1 -1
- package/dist/TextOverflowTooltip-DlUgic5y.js.map +1 -1
- package/dist/Toggle-v_HT3Gm2.js.map +1 -1
- package/dist/Tooltip-C4rVuWr4.js.map +1 -1
- package/dist/TriggerButton-CfDObWP9.js.map +1 -1
- package/dist/blocks/auth/otp-form.js +1 -1
- package/dist/blocks/auth/otp-form.js.map +1 -1
- package/dist/cn-dsXlqdJg.js.map +1 -1
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.js.map +1 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.js.map +1 -1
- package/dist/components/banner.js.map +1 -1
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/color-tile.js.map +1 -1
- package/dist/components/container.js.map +1 -1
- package/dist/components/counter.js.map +1 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/divider.js.map +1 -1
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/error-state.js.map +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/file-upload.js.map +1 -1
- package/dist/components/form.js +2 -2
- package/dist/components/form.js.map +1 -1
- package/dist/components/image-placeholder.js.map +1 -1
- package/dist/components/image-preview.js.map +1 -1
- package/dist/components/image-uploader.js.map +1 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/menu-item.js.map +1 -1
- package/dist/components/page-state.js.map +1 -1
- package/dist/components/portal-container.js.map +1 -1
- package/dist/components/progress-circle.js.map +1 -1
- package/dist/components/progress.js.map +1 -1
- package/dist/components/prose.js.map +1 -1
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/scheduler.js.map +1 -1
- package/dist/components/search-select.js.map +1 -1
- package/dist/components/sidebar.js.map +1 -1
- package/dist/components/slider.js.map +1 -1
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.js.map +1 -1
- package/dist/components/system-state.js.map +1 -1
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tag-input.js.map +1 -1
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/timer.js.map +1 -1
- package/dist/components/toast.js.map +1 -1
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/toolbar.js.map +1 -1
- package/dist/index-0ioNhtNM.js.map +1 -1
- package/dist/index-437EL2iq.js.map +1 -1
- package/dist/index-BGQepRFJ.js.map +1 -1
- package/dist/index-BVqs-uqP.js.map +1 -1
- package/dist/index-BZPx6jYI.js.map +1 -1
- package/dist/index-Bb23HztA.js.map +1 -1
- package/dist/index-BpWB3aFK.js.map +1 -1
- package/dist/index-ByaXH_ih.js.map +1 -1
- package/dist/index-BzCriPiK.js.map +1 -1
- package/dist/index-CCKe-Mpx.js.map +1 -1
- package/dist/index-CFaU3UXv.js.map +1 -1
- package/dist/index-CLuiUUQ8.js.map +1 -1
- package/dist/index-CQD-Njgt.js.map +1 -1
- package/dist/index-CmBeyp2d.js.map +1 -1
- package/dist/index-DFZozV_h.js.map +1 -1
- package/dist/index-DHsfW5Rj.js.map +1 -1
- package/dist/index-DHyZ_0Ut.js.map +1 -1
- package/dist/index-DLcqcWxM.js.map +1 -1
- package/dist/index-DRo26PBK.js.map +1 -1
- package/dist/index-DnnQs07z.js.map +1 -1
- package/dist/index-Uiy0Xwy2.js.map +1 -1
- package/dist/index-_ITz1IyW.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inputBaseStyles-DbzD_jvq.js.map +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/styles-scoped.css +6293 -6265
- package/dist/styles.css +6032 -6004
- package/dist/theme.css +356 -329
- package/dist/types/css.d.ts +4 -4
- package/dist/useBreakpoints-D8wKOvil.js.map +1 -1
- package/dist/useDebounce-BRah78CF.js.map +1 -1
- package/dist/useFileUpload-iDag0iqM.js.map +1 -1
- package/dist/useItemsKeyboardNavigation-CmeOR30y.js.map +1 -1
- package/dist/useMergeRefs-qoKniYqT.js.map +1 -1
- package/dist/usePortalContainer-ae6EzS08.js.map +1 -1
- package/dist/vendors/tanstack/react-table.js.map +1 -1
- package/dist/zod-BMNoK3aM.js.map +1 -1
- package/package.json +1 -1
- package/tailwind.preset.js +444 -444
- package/dist/Field-CKl59qUB.js.map +0 -1
- package/dist/FormStack-B4QOuYgO.js.map +0 -1
- package/dist/design-tokens.source.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.js","sources":["../../node_modules/.pnpm/@radix-ui+react-collapsible_065d26f007f63c2ce83df872b933601f/node_modules/@radix-ui/react-collapsible/dist/index.mjs","../../src/components/collapsible/Collapsible.tsx"],"sourcesContent":["\"use client\";\n\n// src/collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: COLLAPSIBLE_NAME\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef(void 0);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\r\nimport React from \"react\";\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst Collapsible = CollapsiblePrimitive.Root;\r\n\r\nconst CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;\r\n\r\nconst CollapsibleContent = React.forwardRef<\r\n\tReact.ElementRef<typeof CollapsiblePrimitive.CollapsibleContent>,\r\n\tReact.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.CollapsibleContent>\r\n>(({ className, children, ...props }, ref) => (\r\n\t<CollapsiblePrimitive.CollapsibleContent\r\n\t\tref={ref}\r\n\t\tclassName={cn(\r\n\t\t\t\"overflow-hidden transition-all\",\r\n\t\t\t\"motion-safe:data-[state=closed]:animate-collapsible-up\",\r\n\t\t\t\"motion-safe:data-[state=open]:animate-collapsible-down\",\r\n\t\t\tclassName\r\n\t\t)}\r\n\t\t{...props}\r\n\t>\r\n\t\t{children}\r\n\t</CollapsiblePrimitive.CollapsibleContent>\r\n));\r\n\r\nCollapsibleContent.displayName = \"CollapsibleContent\";\r\n\r\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent };\r\n"],"names":["COLLAPSIBLE_NAME","createCollapsibleContext","createCollapsibleScope","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","React","props","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","open","setOpen","useControllableState","jsx","useId","prevOpen","Primitive","getState","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","Presence","present","CollapsibleContentImpl","children","isPresent","setIsPresent","ref","composedRefs","useComposedRefs","heightRef","height","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","rAF","useLayoutEffect","node","rect","Root","CollapsiblePrimitive.Root","CollapsiblePrimitive.CollapsibleTrigger","className","CollapsiblePrimitive.CollapsibleContent","cn"],"mappings":";;;;;;;;;;;AAaA,IAAIA,IAAmB,eACnB,CAACC,GAA0BC,EAAsB,IAAIC,EAAmBH,CAAgB,GACxF,CAACI,GAAqBC,CAAqB,IAAIJ,EAAyBD,CAAgB,GACxFM,IAAcC,EAAM;AAAA,EACtB,CAACC,GAAOC,MAAiB;AACvB,UAAM;AAAA,MACJ,oBAAAC;AAAA,MACA,MAAMC;AAAA,MACN,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,cAAAC;AAAA,MACA,GAAGC;AAAA,IACT,IAAQP,GACE,CAACQ,GAAMC,CAAO,IAAIC,EAAqB;AAAA,MAC3C,MAAMP;AAAA,MACN,aAAaC,KAAe;AAAA,MAC5B,UAAUE;AAAA,MACV,QAAQd;AAAA,IACd,CAAK;AACD,WAAuB,gBAAAmB;AAAA,MACrBf;AAAA,MACA;AAAA,QACE,OAAOM;AAAA,QACP,UAAAG;AAAA,QACA,WAAWO,EAAO;AAAA,QAClB,MAAAJ;AAAA,QACA,cAAcT,EAAM,YAAY,MAAMU,EAAQ,CAACI,MAAa,CAACA,CAAQ,GAAG,CAACJ,CAAO,CAAC;AAAA,QACjF,UAA0B,gBAAAE;AAAA,UACxBG,EAAU;AAAA,UACV;AAAA,YACE,cAAcC,EAASP,CAAI;AAAA,YAC3B,iBAAiBH,IAAW,KAAK;AAAA,YACjC,GAAGE;AAAA,YACH,KAAKN;AAAA,UACjB;AAAA,QACA;AAAA,MACA;AAAA,IACK;AAAA,EACL;AACA;AACAH,EAAY,cAAcN;AAC1B,IAAIwB,IAAe,sBACfC,IAAqBlB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A,QAC9D,GAAGrC,EAAM;AAAA,MACV;AAAA,MACD,UAAUsC,KAAUV;AAAA,IAC1B;AAAA,EACG;AACH,CAAC;AACD,SAASb,EAASP,GAAM;AACtB,SAAOA,IAAO,SAAS;AACzB;AACA,IAAIqC,IAAO/C;AC1IX,MAAMA,KAAcgD,GAEd7B,KAAqB8B,GAErBzB,IAAqBvB,EAAM,WAG/B,CAAC,EAAE,WAAAiD,GAAW,UAAApB,GAAU,GAAG5B,KAAS+B,MACrC,gBAAApB;AAAA,EAACsC;AAAAA,EAAA;AAAA,IACA,KAAAlB;AAAA,IACA,WAAWmB;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACAF;AAAA,IACD;AAAA,IACC,GAAGhD;AAAA,IAEH,UAAA4B;AAAA,EAAA;AACF,CACA;AAEDN,EAAmB,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"collapsible.js","sources":["../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.12_@types+react-dom@18.3.6_@types+react@18.3.20__@types_065d26f007f63c2ce83df872b933601f/node_modules/@radix-ui/react-collapsible/dist/index.mjs","../../src/components/collapsible/Collapsible.tsx"],"sourcesContent":["\"use client\";\n\n// src/collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: COLLAPSIBLE_NAME\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef(void 0);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nconst Collapsible = CollapsiblePrimitive.Root;\n\nconst CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;\n\nconst CollapsibleContent = React.forwardRef<\n\tReact.ElementRef<typeof CollapsiblePrimitive.CollapsibleContent>,\n\tReact.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.CollapsibleContent>\n>(({ className, children, ...props }, ref) => (\n\t<CollapsiblePrimitive.CollapsibleContent\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t\"overflow-hidden transition-all\",\n\t\t\t\"motion-safe:data-[state=closed]:animate-collapsible-up\",\n\t\t\t\"motion-safe:data-[state=open]:animate-collapsible-down\",\n\t\t\tclassName\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{children}\n\t</CollapsiblePrimitive.CollapsibleContent>\n));\n\nCollapsibleContent.displayName = \"CollapsibleContent\";\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent };\n"],"names":["COLLAPSIBLE_NAME","createCollapsibleContext","createCollapsibleScope","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","React","props","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","open","setOpen","useControllableState","jsx","useId","prevOpen","Primitive","getState","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","Presence","present","CollapsibleContentImpl","children","isPresent","setIsPresent","ref","composedRefs","useComposedRefs","heightRef","height","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","rAF","useLayoutEffect","node","rect","Root","CollapsiblePrimitive.Root","CollapsiblePrimitive.CollapsibleTrigger","className","CollapsiblePrimitive.CollapsibleContent","cn"],"mappings":";;;;;;;;;;;AAaA,IAAIA,IAAmB,eACnB,CAACC,GAA0BC,EAAsB,IAAIC,EAAmBH,CAAgB,GACxF,CAACI,GAAqBC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ACA,WAAWmB;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACAF;AAAA,IACD;AAAA,IACC,GAAGhD;AAAA,IAEH,UAAA4B;AAAA,EAAA;AACF,CACA;AAEDN,EAAmB,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-tile.js","sources":["../../src/components/color-tile/ColorTile.tsx"],"sourcesContent":["import { VariantsConfig } from \"@/lib/utils/variants\";\
|
|
1
|
+
{"version":3,"file":"color-tile.js","sources":["../../src/components/color-tile/ColorTile.tsx"],"sourcesContent":["import { VariantsConfig } from \"@/lib/utils/variants\";\nimport React from \"react\";\nimport { PropsWithChildren } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\ninterface ColorTileVariants {\n\tselected?: boolean;\n}\n\nconst colorTileVariants = tv({\n\tslots: {\n\t\twrapper: \"flex aspect-square h-[1.375rem] w-[1.375rem] items-center justify-center rounded-md\",\n\t\tcolor: \"aspect-square h-4 w-4 rounded-sm border border-alpha-high-70 hover:cursor-pointer\"\n\t},\n\tvariants: {\n\t\tselected: {\n\t\t\ttrue: {\n\t\t\t\twrapper: \"border border-muted\"\n\t\t\t}\n\t\t}\n\t} satisfies VariantsConfig<ColorTileVariants>\n});\n\nexport type ColorTileProps = ColorTileVariants & React.HTMLAttributes<HTMLDivElement>;\n\nexport const ColorTile = React.forwardRef<HTMLDivElement, PropsWithChildren<ColorTileProps>>(\n\t({ className, selected, ...props }, ref) => {\n\t\tconst styles = colorTileVariants({ selected });\n\n\t\treturn (\n\t\t\t<div className={styles.wrapper()}>\n\t\t\t\t<div className={styles.color({ className })} ref={ref} {...props} />\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nColorTile.displayName = \"ColorTile\";\n"],"names":["colorTileVariants","tv","ColorTile","React","className","selected","props","ref","styles"],"mappings":";;;AASA,MAAMA,IAAoBC,EAAG;AAAA,EAC5B,OAAO;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,EACR;AAAA,EACA,UAAU;AAAA,IACT,UAAU;AAAA,MACT,MAAM;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACV;AAAA,EACD;AAEF,CAAC,GAIYC,IAAYC,EAAM;AAAA,EAC9B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAAQ;AAC3C,UAAMC,IAASR,EAAkB,EAAE,UAAAK,GAAU;AAE7C,6BACE,OAAI,EAAA,WAAWG,EAAO,QAAQ,GAC9B,4BAAC,OAAI,EAAA,WAAWA,EAAO,MAAM,EAAE,WAAAJ,EAAU,CAAC,GAAG,KAAAG,GAAW,GAAGD,EAAO,CAAA,GACnE;AAAA,EAAA;AAGH;AAEAJ,EAAU,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sources":["../../src/components/container/Container.tsx"],"sourcesContent":["import { VariantsConfig } from \"@/lib/utils/variants\";\
|
|
1
|
+
{"version":3,"file":"container.js","sources":["../../src/components/container/Container.tsx"],"sourcesContent":["import { VariantsConfig } from \"@/lib/utils/variants\";\nimport React, { PropsWithChildren } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\ninterface ContainerVariants {\n\ttype?: \"default\" | \"round\" | \"outline\";\n}\n\nexport const containerStyles = tv({\n\tbase: \"p-3 hover:bg-secondary-bg-hover\",\n\tvariants: {\n\t\ttype: {\n\t\t\tdefault: \"\",\n\t\t\tround: \"rounded-lg\",\n\t\t\toutline: \"rounded-lg border border-secondary-border\"\n\t\t}\n\t} satisfies VariantsConfig<ContainerVariants>,\n\tdefaultVariants: {\n\t\ttype: \"default\"\n\t}\n});\n\nexport type ContainerProps = React.HTMLAttributes<HTMLDivElement> & ContainerVariants;\n\nexport const Container = React.forwardRef<HTMLDivElement, PropsWithChildren<ContainerProps>>(\n\t({ className, children, type = \"default\", ...props }, ref) => (\n\t\t<div ref={ref} className={containerStyles({ className, type })} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t)\n);\n\nContainer.displayName = \"Container\";\n"],"names":["containerStyles","tv","Container","React","className","children","type","props","ref","jsx"],"mappings":";;;AAQO,MAAMA,IAAkBC,EAAG;AAAA,EACjC,MAAM;AAAA,EACN,UAAU;AAAA,IACT,MAAM;AAAA,MACL,SAAS;AAAA,MACT,OAAO;AAAA,MACP,SAAS;AAAA,IAAA;AAAA,EAEX;AAAA,EACA,iBAAiB;AAAA,IAChB,MAAM;AAAA,EAAA;AAER,CAAC,GAIYC,IAAYC,EAAM;AAAA,EAC9B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,MAAAC,IAAO,WAAW,GAAGC,EAAM,GAAGC,MACrD,gBAAAC,EAAC,SAAI,KAAAD,GAAU,WAAWR,EAAgB,EAAE,WAAAI,GAAW,MAAAE,GAAM,GAAI,GAAGC,GAClE,UAAAF,EACF,CAAA;AAEF;AAEAH,EAAU,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"counter.js","sources":["../../src/components/counter/Counter.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\
|
|
1
|
+
{"version":3,"file":"counter.js","sources":["../../src/components/counter/Counter.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface CounterVariants {\n\tstatus?: \"default\" | \"info\" | \"success\" | \"warning\" | \"error\";\n\tvariant?: \"primary\" | \"secondary\" | \"outline\" | \"text\";\n\tsize?: \"xs\" | \"sm\" | \"md\" | \"lg\";\n}\n\nconst counterVariants = tv({\n\tbase: \"box-border inline-flex items-center justify-center overflow-hidden rounded-sm px-1\",\n\tvariants: {\n\t\tstatus: {\n\t\t\tdefault: \"bg-status-neutral\",\n\t\t\tinfo: \"bg-status-info\",\n\t\t\tsuccess: \"bg-status-success\",\n\t\t\twarning: \"bg-status-warning\",\n\t\t\terror: \"bg-status-error\"\n\t\t},\n\t\tvariant: {\n\t\t\tprimary: \"text-primary-bg\",\n\t\t\tsecondary: \"\",\n\t\t\toutline: \"border\",\n\t\t\ttext: \"bg-transparent px-0.5 !leading-none\"\n\t\t},\n\t\tsize: {\n\t\t\tlg: \"h-[1.375rem] min-w-[1.375rem] text-base\",\n\t\t\tmd: \"h-5 min-w-5 text-sm\",\n\t\t\tsm: \"h-4 min-w-4 text-xs\",\n\t\t\txs: \"h-3.5 min-w-3.5 text-[0.625rem]\"\n\t\t}\n\t} satisfies VariantsConfig<CounterVariants>,\n\tdefaultVariants: {\n\t\tstatus: \"default\",\n\t\tvariant: \"primary\",\n\t\tsize: \"md\"\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tvariant: \"primary\",\n\t\t\tclass: \"text-white\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"default\",\n\t\t\tvariant: \"secondary\",\n\t\t\tclass: \"bg-primary-bg-hover text-secondary-fg\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"info\",\n\t\t\tvariant: \"secondary\",\n\t\t\tclass: \"bg-status-info-bg-hover text-status-info\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"success\",\n\t\t\tvariant: \"secondary\",\n\t\t\tclass: \"bg-status-success-bg-hover text-status-success\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"warning\",\n\t\t\tvariant: \"secondary\",\n\t\t\tclass: \"bg-status-warning-bg-hover text-status-warning\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"error\",\n\t\t\tvariant: \"secondary\",\n\t\t\tclass: \"bg-status-error-bg-hover text-status-error\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"default\",\n\t\t\tvariant: \"outline\",\n\t\t\tclass: \"border-secondary-border bg-secondary-bg text-muted\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"info\",\n\t\t\tvariant: \"outline\",\n\t\t\tclass: \"border-status-info-secondary-border bg-status-info-bg text-status-info\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"success\",\n\t\t\tvariant: \"outline\",\n\t\t\tclass: \"border-status-success-secondary-border bg-status-success-bg text-status-success\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"warning\",\n\t\t\tvariant: \"outline\",\n\t\t\tclass: \"border-status-warning-secondary-border bg-status-warning-bg text-status-warning\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"error\",\n\t\t\tvariant: \"outline\",\n\t\t\tclass: \"border-status-error-secondary-border bg-status-error-bg text-status-error\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"default\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"text-muted\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"info\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"text-status-info\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"success\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"text-status-success\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"warning\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"text-status-warning\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"error\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"text-status-error\"\n\t\t},\n\t\t{\n\t\t\tsize: \"xs\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"h-2.5 min-w-2.5\"\n\t\t},\n\t\t{\n\t\t\tsize: \"sm\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"h-3 min-w-3\"\n\t\t},\n\t\t{\n\t\t\tsize: \"md\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"h-3.5 min-w-3.5\"\n\t\t},\n\t\t{\n\t\t\tsize: \"lg\",\n\t\t\tvariant: \"text\",\n\t\t\tclass: \"h-4 min-w-3.5\"\n\t\t}\n\t]\n});\n\nexport type CounterProps = React.HTMLAttributes<HTMLElement> &\n\tCounterVariants & {\n\t\tasChild?: boolean;\n\t};\n\nexport const Counter = React.forwardRef<HTMLElement, PropsWithChildren<CounterProps>>(\n\t({ className, children, status, size, variant, asChild = false, ...props }, ref) => {\n\t\tconst Comp = asChild ? Slot : \"span\";\n\n\t\treturn (\n\t\t\t<Comp className={counterVariants({ size, status, variant, className })} ref={ref} {...props}>\n\t\t\t\t{children}\n\t\t\t</Comp>\n\t\t);\n\t}\n);\n\nCounter.displayName = \"Counter\";\n"],"names":["counterVariants","tv","Counter","React","className","children","status","size","variant","asChild","props","ref","jsx","Slot"],"mappings":";;;;AAYA,MAAMA,IAAkBC,EAAG;AAAA,EAC1B,MAAM;AAAA,EACN,UAAU;AAAA,IACT,QAAQ;AAAA,MACP,SAAS;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,MACT,OAAO;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACR,SAAS;AAAA,MACT,WAAW;AAAA,MACX,SAAS;AAAA,MACT,MAAM;AAAA,IACP;AAAA,IACA,MAAM;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA,EAEN;AAAA,EACA,iBAAiB;AAAA,IAChB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,kBAAkB;AAAA,IACjB;AAAA,MACC,QAAQ,CAAC,QAAQ,WAAW,WAAW,OAAO;AAAA,MAC9C,SAAS;AAAA,MACT,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,SAA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IzE,gBAAAC,EAHWH,IAAUI,IAAO,QAG5B,EAAK,WAAWb,EAAgB,EAAE,MAAAO,GAAM,QAAAD,GAAQ,SAAAE,GAAS,WAAAJ,EAAW,CAAA,GAAG,KAAAO,GAAW,GAAGD,GACpF,UAAAL,EACF,CAAA;AAGH;AAEAH,EAAQ,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sources":["../../src/components/dialog/DialogTemplates.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\
|
|
1
|
+
{"version":3,"file":"dialog.js","sources":["../../src/components/dialog/DialogTemplates.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\nimport { BaseHeaderTemplate, BaseHeaderTemplateProps } from \"../form/templates/header-template/FormHeaderTemplate\";\nimport { FormFooterTemplate } from \"../form/templates/footer-template/FormFooterTemplate\";\nimport { DialogDescription, DialogTitle } from \"./Dialog\";\n\nexport const DialogHeaderTemplate = React.forwardRef<HTMLDivElement, PropsWithChildren<BaseHeaderTemplateProps>>(\n\t({ title, description, ...props }, ref) => {\n\t\treturn (\n\t\t\t<BaseHeaderTemplate\n\t\t\t\ttitle={<DialogTitle>{title}</DialogTitle>}\n\t\t\t\tdescription={<DialogDescription>{description}</DialogDescription>}\n\t\t\t\tref={ref}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t}\n);\n\nDialogHeaderTemplate.displayName = \"DialogHeaderTemplate\";\n\nexport const DialogFooterTemplate = FormFooterTemplate;\n\n/** @deprecated Используйте DialogHeaderTemplate вместо ModalHeaderTemplate */\nexport const ModalHeaderTemplate = DialogHeaderTemplate;\n/** @deprecated Используйте DialogFooterTemplate вместо ModalFooterTemplate */\nexport const ModalFooterTemplate = DialogFooterTemplate;\n"],"names":["DialogHeaderTemplate","React","title","description","props","ref","jsx","BaseHeaderTemplate","DialogTitle","DialogDescription","DialogFooterTemplate","FormFooterTemplate","ModalHeaderTemplate","ModalFooterTemplate"],"mappings":";;;;;AAKO,MAAMA,IAAuBC,EAAM;AAAA,EACzC,CAAC,EAAE,OAAAC,GAAO,aAAAC,GAAa,GAAGC,EAAA,GAASC,MAEjC,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,OAAQ,gBAAAD,EAAAE,GAAA,EAAa,UAAMN,EAAA,CAAA;AAAA,MAC3B,aAAc,gBAAAI,EAAAG,GAAA,EAAmB,UAAYN,EAAA,CAAA;AAAA,MAC7C,KAAAE;AAAA,MACC,GAAGD;AAAA,IAAA;AAAA,EACL;AAGH;AAEAJ,EAAqB,cAAc;AAE5B,MAAMU,IAAuBC,GAGvBC,IAAsBZ,GAEtBa,IAAsBH;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.js","sources":["../../src/components/divider/content-divider/ContentDivider.tsx"],"sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"file":"divider.js","sources":["../../src/components/divider/content-divider/ContentDivider.tsx"],"sourcesContent":["import React from \"react\";\nimport { PropsWithChildren } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { Divider, DividerProps } from \"../Divider\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface ContentDividerVariants {\n\torientation?: \"horizontal\" | \"vertical\";\n}\n\nconst contentDividerVariants = tv({\n\tbase: \"flex items-center gap-2\",\n\tvariants: {\n\t\torientation: {\n\t\t\tvertical: \"w-5 flex-col\",\n\t\t\thorizontal: \"h-5\"\n\t\t}\n\t} satisfies VariantsConfig<ContentDividerVariants>,\n\tdefaultVariants: {\n\t\torientation: \"horizontal\"\n\t}\n});\n\nexport type ContentDividerProps = ContentDividerVariants &\n\tPropsWithChildren<{\n\t\twrapperProps?: React.HTMLAttributes<HTMLDivElement>;\n\t\tdividerProps?: Omit<DividerProps, \"orientation\">;\n\t}>;\n\nexport const ContentDivider = React.forwardRef<HTMLDivElement, ContentDividerProps>(\n\t({ wrapperProps, dividerProps, orientation, children }, ref) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\t{...wrapperProps}\n\t\t\t\tclassName={contentDividerVariants({ orientation, className: wrapperProps?.className })}\n\t\t\t>\n\t\t\t\t<Divider orientation={orientation} {...dividerProps} />\n\t\t\t\t{children}\n\t\t\t\t<Divider orientation={orientation} {...dividerProps} />\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nContentDivider.displayName = \"ContentDivider\";\n"],"names":["contentDividerVariants","tv","ContentDivider","React","wrapperProps","dividerProps","orientation","children","ref","jsxs","jsx","Divider"],"mappings":";;;;AAUA,MAAMA,IAAyBC,EAAG;AAAA,EACjC,MAAM;AAAA,EACN,UAAU;AAAA,IACT,aAAa;AAAA,MACZ,UAAU;AAAA,MACV,YAAY;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,iBAAiB;AAAA,IAChB,aAAa;AAAA,EAAA;AAEf,CAAC,GAQYC,IAAiBC,EAAM;AAAA,EACnC,CAAC,EAAE,cAAAC,GAAc,cAAAC,GAAc,aAAAC,GAAa,UAAAC,EAAA,GAAYC,MAEtD,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,KAAAD;AAAA,MACC,GAAGJ;AAAA,MACJ,WAAWJ,EAAuB,EAAE,aAAAM,GAAa,WAAWF,GAAc,WAAW;AAAA,MAErF,UAAA;AAAA,QAAC,gBAAAM,EAAAC,GAAA,EAAQ,aAAAL,GAA2B,GAAGD,EAAc,CAAA;AAAA,QACpDE;AAAA,QACA,gBAAAG,EAAAC,GAAA,EAAQ,aAAAL,GAA2B,GAAGD,EAAc,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACtD;AAGH;AAEAH,EAAe,cAAc;"}
|