ics-ui-kit 1.0.0 → 1.0.2

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.
Files changed (175) hide show
  1. package/README.md +73 -73
  2. package/dist/AlertContext-CxjW1LVL.js.map +1 -1
  3. package/dist/AlertIcon-BphnEYvV.js.map +1 -1
  4. package/dist/Button-_qdP4hSf.js.map +1 -1
  5. package/dist/ButtonBase-CbWrYcx-.js.map +1 -1
  6. package/dist/CalendarPreviousMonthButton-CHMp8bkd.js.map +1 -1
  7. package/dist/CheckboxField-xDqHgXHh.js.map +1 -1
  8. package/dist/Combination-DeIugdgY.js.map +1 -1
  9. package/dist/{Command-WsAKNQrY.js → Command-hVL9sUnd.js} +3 -3
  10. package/dist/Command-hVL9sUnd.js.map +1 -0
  11. package/dist/ComponentVariantProvider-brk0g-hm.js.map +1 -1
  12. package/dist/Description-BTPMlTT-.js.map +1 -1
  13. package/dist/{Dialog-i_Y-phdM.js → Dialog-BKCZO7T_.js} +2 -2
  14. package/dist/Dialog-BKCZO7T_.js.map +1 -0
  15. package/dist/Divider-DPW5ZhZ8.js.map +1 -1
  16. package/dist/EmptyState-DRKjscH-.js.map +1 -1
  17. package/dist/ErrorState-B26k67-z.js.map +1 -1
  18. package/dist/FeatureIcon-BGE0Orkc.js.map +1 -1
  19. package/dist/Field-BcwUtgGr.js.map +1 -1
  20. package/dist/FieldLabel-DYu1AcGH.js.map +1 -1
  21. package/dist/FolderSvg-cw0DxNVy.js.map +1 -1
  22. package/dist/{FormFooterTemplate-CHlas_Pp.js → FormFooterTemplate-CRkxi-Mh.js} +2 -2
  23. package/dist/FormFooterTemplate-CRkxi-Mh.js.map +1 -0
  24. package/dist/{FormHeader-PE63OqG9.js → FormHeader-CX2jsIcI.js} +2 -2
  25. package/dist/FormHeader-CX2jsIcI.js.map +1 -0
  26. package/dist/FormStack-DfoaOry7.js.map +1 -1
  27. package/dist/HintState-BxrCAWqq.js.map +1 -1
  28. package/dist/Icon-DH3ev9GK.js.map +1 -1
  29. package/dist/IconButton-DAg1oMwz.js.map +1 -1
  30. package/dist/IconTooltip-R6_6_f40.js.map +1 -1
  31. package/dist/Indicator-AqxHWPA9.js.map +1 -1
  32. package/dist/InputGroup-CW55G5nE.js.map +1 -1
  33. package/dist/InputOTP-DkVh6bBz.js.map +1 -1
  34. package/dist/Loader-BpHiL6W-.js.map +1 -1
  35. package/dist/MenuItem-C51uFz3V.js.map +1 -1
  36. package/dist/MenuItemShortcut-D1faeIXp.js.map +1 -1
  37. package/dist/MenuItemText-CRpaPbvg.js.map +1 -1
  38. package/dist/Overlay-E0UvxzIc.js.map +1 -1
  39. package/dist/Popover-XrJa7lyb.js.map +1 -1
  40. package/dist/RichButton-Bt0yUShU.js.map +1 -1
  41. package/dist/ScrollArea-CuuTeDn3.js.map +1 -1
  42. package/dist/{ScrollShadowContainer-DdrnF8qU.js → ScrollShadowContainer-KUmqA25a.js} +11 -11
  43. package/dist/ScrollShadowContainer-KUmqA25a.js.map +1 -0
  44. package/dist/SearchSelectTag-Dp5_OvZp.js.map +1 -1
  45. package/dist/Select-DO02vXt3.js.map +1 -1
  46. package/dist/Sheet-C2UoHLL0.js.map +1 -1
  47. package/dist/Shortcut-D8L15_ed.js.map +1 -1
  48. package/dist/Skeleton-y6I-i9q5.js.map +1 -1
  49. package/dist/TableFillHandle-CHHoUi6s.js.map +1 -1
  50. package/dist/Tag-Cf6HftP-.js.map +1 -1
  51. package/dist/Text-DeBE8AKl.js.map +1 -1
  52. package/dist/TextInput-CoL8nOyt.js.map +1 -1
  53. package/dist/TextOverflowTooltip-XPDdO9Dz.js.map +1 -1
  54. package/dist/Toggle-CmalMf4O.js.map +1 -1
  55. package/dist/Tooltip-D2XvRS0c.js.map +1 -1
  56. package/dist/TriggerButton-CoAgB4lx.js.map +1 -1
  57. package/dist/blocks/auth/otp-form.js.map +1 -1
  58. package/dist/cn-dsXlqdJg.js.map +1 -1
  59. package/dist/components/alert-dialog.js.map +1 -1
  60. package/dist/components/alert.js.map +1 -1
  61. package/dist/components/avatar.js.map +1 -1
  62. package/dist/components/background-pattern.js.map +1 -1
  63. package/dist/components/badge.js.map +1 -1
  64. package/dist/components/banner.js.map +1 -1
  65. package/dist/components/breadcrumb.js.map +1 -1
  66. package/dist/components/button.js.map +1 -1
  67. package/dist/components/calendar-scroll.js +28 -27
  68. package/dist/components/calendar-scroll.js.map +1 -1
  69. package/dist/components/calendar.js.map +1 -1
  70. package/dist/components/card.js.map +1 -1
  71. package/dist/components/carousel.js.map +1 -1
  72. package/dist/components/collapsible.js.map +1 -1
  73. package/dist/components/color-tile.js.map +1 -1
  74. package/dist/components/command.js +1 -1
  75. package/dist/components/container.js.map +1 -1
  76. package/dist/components/context-menu.js.map +1 -1
  77. package/dist/components/counter.js.map +1 -1
  78. package/dist/components/dialog.js +3 -3
  79. package/dist/components/dialog.js.map +1 -1
  80. package/dist/components/divider.js.map +1 -1
  81. package/dist/components/drawer.js +1 -1
  82. package/dist/components/drawer.js.map +1 -1
  83. package/dist/components/dropdown.js.map +1 -1
  84. package/dist/components/error-state.js.map +1 -1
  85. package/dist/components/file-upload.js.map +1 -1
  86. package/dist/components/form.js +2 -2
  87. package/dist/components/form.js.map +1 -1
  88. package/dist/components/glass-toolbar.js.map +1 -1
  89. package/dist/components/image-placeholder.js.map +1 -1
  90. package/dist/components/image-preview.js.map +1 -1
  91. package/dist/components/image-uploader.js.map +1 -1
  92. package/dist/components/input.js.map +1 -1
  93. package/dist/components/menu-item.js.map +1 -1
  94. package/dist/components/page-state.js.map +1 -1
  95. package/dist/components/progress-circle.js.map +1 -1
  96. package/dist/components/progress.js.map +1 -1
  97. package/dist/components/prose.js.map +1 -1
  98. package/dist/components/radio-group.js.map +1 -1
  99. package/dist/components/resizable.js +26 -1530
  100. package/dist/components/resizable.js.map +1 -1
  101. package/dist/components/scheduler/components/hour-rows/HourRows.stories.d.ts +1 -1
  102. package/dist/components/scheduler/components/week-days/WeekDays.stories.d.ts +1 -0
  103. package/dist/components/scheduler.js.map +1 -1
  104. package/dist/components/scroll-shadow-container.js +1 -1
  105. package/dist/components/search-select.js +1 -1
  106. package/dist/components/search-select.js.map +1 -1
  107. package/dist/components/sidebar.js +142 -141
  108. package/dist/components/sidebar.js.map +1 -1
  109. package/dist/components/slider.js.map +1 -1
  110. package/dist/components/stepper.js.map +1 -1
  111. package/dist/components/switch.js.map +1 -1
  112. package/dist/components/system-state.js.map +1 -1
  113. package/dist/components/table/tree.js +1 -1
  114. package/dist/components/table.js +1 -1
  115. package/dist/components/tabs.js.map +1 -1
  116. package/dist/components/tag-input.js.map +1 -1
  117. package/dist/components/textarea.js +30 -189
  118. package/dist/components/textarea.js.map +1 -1
  119. package/dist/components/timer.js.map +1 -1
  120. package/dist/components/toast.js.map +1 -1
  121. package/dist/components/toggle-group.js.map +1 -1
  122. package/dist/components/toolbar.js.map +1 -1
  123. package/dist/docs/tailwind-utilities/ScrollFade.stories.d.ts +1 -0
  124. package/dist/floating-ui.react-dom-BwDfy92G.js.map +1 -1
  125. package/dist/font-smoothing.css +4 -4
  126. package/dist/formatBytes-C4QXq5lC.js.map +1 -1
  127. package/dist/index-0ioNhtNM.js.map +1 -1
  128. package/dist/index-1SnkxfPR.js.map +1 -1
  129. package/dist/index-437EL2iq.js.map +1 -1
  130. package/dist/index-BDrapWDv.js.map +1 -1
  131. package/dist/index-BGQepRFJ.js.map +1 -1
  132. package/dist/index-BVqs-uqP.js.map +1 -1
  133. package/dist/index-BZPx6jYI.js.map +1 -1
  134. package/dist/index-Bb23HztA.js.map +1 -1
  135. package/dist/index-BjtNfqNq.js.map +1 -1
  136. package/dist/index-BpWB3aFK.js.map +1 -1
  137. package/dist/index-ByaXH_ih.js.map +1 -1
  138. package/dist/index-CCKe-Mpx.js.map +1 -1
  139. package/dist/index-CFaU3UXv.js.map +1 -1
  140. package/dist/index-CLuiUUQ8.js.map +1 -1
  141. package/dist/index-CMxHunQ4.js.map +1 -1
  142. package/dist/index-CmBeyp2d.js.map +1 -1
  143. package/dist/index-DFZozV_h.js.map +1 -1
  144. package/dist/index-DHsfW5Rj.js.map +1 -1
  145. package/dist/index-DHyZ_0Ut.js.map +1 -1
  146. package/dist/index-DLcqcWxM.js.map +1 -1
  147. package/dist/index-DnnQs07z.js.map +1 -1
  148. package/dist/index-Uiy0Xwy2.js.map +1 -1
  149. package/dist/index-_ITz1IyW.js.map +1 -1
  150. package/dist/index.js.map +1 -1
  151. package/dist/inputBaseStyles-CZwQWSub.js.map +1 -1
  152. package/dist/lib/utils.js.map +1 -1
  153. package/dist/opaqueCell-D95h1mFM.js.map +1 -1
  154. package/dist/scroll-fade-fix.css +120 -0
  155. package/dist/ssr.test.d.ts +1 -0
  156. package/dist/tailwind.css +408 -407
  157. package/dist/theme.css +360 -360
  158. package/dist/{treeModel-CUO1A5s7.js → treeModel-BH6Jg8rm.js} +2 -2
  159. package/dist/treeModel-BH6Jg8rm.js.map +1 -0
  160. package/dist/types/css.d.ts +4 -4
  161. package/dist/useBreakpoints-DHvp74UL.js.map +1 -1
  162. package/dist/useDebounce-BRah78CF.js.map +1 -1
  163. package/dist/useFileUpload-Bnl3P8mP.js.map +1 -1
  164. package/dist/useIsomorphicLayoutEffect-MNxJD61V.js +6 -0
  165. package/dist/useIsomorphicLayoutEffect-MNxJD61V.js.map +1 -0
  166. package/dist/useItemsKeyboardNavigation-CmeOR30y.js.map +1 -1
  167. package/dist/useMergeRefs-qoKniYqT.js.map +1 -1
  168. package/package.json +213 -210
  169. package/dist/Command-WsAKNQrY.js.map +0 -1
  170. package/dist/Dialog-i_Y-phdM.js.map +0 -1
  171. package/dist/FormFooterTemplate-CHlas_Pp.js.map +0 -1
  172. package/dist/FormHeader-PE63OqG9.js.map +0 -1
  173. package/dist/ScrollShadowContainer-DdrnF8qU.js.map +0 -1
  174. package/dist/design-tokens.source.json +0 -1
  175. package/dist/treeModel-CUO1A5s7.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"cn-dsXlqdJg.js","sources":["../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../src/lib/utils/cn.ts"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import { clsx, type ClassValue } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n\treturn twMerge(clsx(inputs));\r\n}\r\n"],"names":["r","e","t","f","n","o","clsx","cn","inputs","twMerge"],"mappings":";AAAA,SAASA,EAAEC,GAAE;AAAC,MAAIC,GAAEC,GAAEC,IAAE;AAAG,MAAa,OAAOH,KAAjB,YAA8B,OAAOA,KAAjB,SAAmB,CAAAG,KAAGH;AAAA,WAAoB,OAAOA,KAAjB,SAAmB,KAAG,MAAM,QAAQA,CAAC,GAAE;AAAC,QAAII,IAAEJ,EAAE;AAAO,SAAIC,IAAE,GAAEA,IAAEG,GAAEH,IAAI,CAAAD,EAAEC,CAAC,MAAIC,IAAEH,EAAEC,EAAEC,CAAC,CAAC,OAAKE,MAAIA,KAAG,MAAKA,KAAGD;AAAA,EAAE,MAAM,MAAIA,KAAKF,EAAE,CAAAA,EAAEE,CAAC,MAAIC,MAAIA,KAAG,MAAKA,KAAGD;AAAG,SAAOC;AAAC;AAAQ,SAASE,IAAM;AAAC,WAAQL,GAAEC,GAAEC,IAAE,GAAEC,IAAE,IAAGC,IAAE,UAAU,QAAOF,IAAEE,GAAEF,IAAI,EAACF,IAAE,UAAUE,CAAC,OAAKD,IAAEF,EAAEC,CAAC,OAAKG,MAAIA,KAAG,MAAKA,KAAGF;AAAG,SAAOE;AAAC;ACGxW,SAASG,KAAMC,GAAsB;AACpC,SAAAC,EAAQH,EAAKE,CAAM,CAAC;AAC5B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"cn-dsXlqdJg.js","sources":["../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../src/lib/utils/cn.ts"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n\treturn twMerge(clsx(inputs));\n}\n"],"names":["r","e","t","f","n","o","clsx","cn","inputs","twMerge"],"mappings":";AAAA,SAASA,EAAEC,GAAE;AAAC,MAAIC,GAAEC,GAAEC,IAAE;AAAG,MAAa,OAAOH,KAAjB,YAA8B,OAAOA,KAAjB,SAAmB,CAAAG,KAAGH;AAAA,WAAoB,OAAOA,KAAjB,SAAmB,KAAG,MAAM,QAAQA,CAAC,GAAE;AAAC,QAAII,IAAEJ,EAAE;AAAO,SAAIC,IAAE,GAAEA,IAAEG,GAAEH,IAAI,CAAAD,EAAEC,CAAC,MAAIC,IAAEH,EAAEC,EAAEC,CAAC,CAAC,OAAKE,MAAIA,KAAG,MAAKA,KAAGD;AAAA,EAAE,MAAM,MAAIA,KAAKF,EAAE,CAAAA,EAAEE,CAAC,MAAIC,MAAIA,KAAG,MAAKA,KAAGD;AAAG,SAAOC;AAAC;AAAQ,SAASE,IAAM;AAAC,WAAQL,GAAEC,GAAEC,IAAE,GAAEC,IAAE,IAAGC,IAAE,UAAU,QAAOF,IAAEE,GAAEF,IAAI,EAACF,IAAE,UAAUE,CAAC,OAAKD,IAAEF,EAAEC,CAAC,OAAKG,MAAIA,KAAG,MAAKA,KAAGF;AAAG,SAAOE;AAAC;ACGxW,SAASG,KAAMC,GAAsB;AACpC,SAAAC,EAAQH,EAAKE,CAAM,CAAC;AAC5B;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.js","sources":["../../node_modules/.pnpm/@radix-ui+react-alert-dialo_3c02522d3260e86745c28b4781980a86/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs","../../src/components/alert-dialog/AlertDialog.tsx"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\r\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\r\nimport { tv } from \"tailwind-variants\";\r\nimport { overlayStyles, OverlayVariants } from \"../overlay/Overlay\";\r\nimport { Button, ButtonProps } from \"../button\";\r\nimport { AlertContext, useAlert } from \"../alert/AlertContext\";\r\nimport { Icon } from \"../icon\";\r\nimport { IconProps } from \"../icon/Icon\";\r\nimport { VariantsConfig } from \"@/lib/utils/variants\";\r\nimport { AlertVariants } from \"../alert/Alert\";\r\nimport { useIsMobile } from \"@/hooks\";\r\n\r\nconst AlertDialog = AlertDialogPrimitive.Root;\r\n\r\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\r\n\r\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\r\n\r\nconst alertDialogOverlayStyles = tv({\r\n\textend: overlayStyles\r\n});\r\n\r\ninterface AlertDialogOverlayProps\r\n\textends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>,\r\n\t\tOverlayVariants {}\r\n\r\nconst AlertDialogOverlay = React.forwardRef<\r\n\tReact.ElementRef<typeof AlertDialogPrimitive.Overlay>,\r\n\tAlertDialogOverlayProps\r\n>(({ className, blur, type, ...props }, ref) => (\r\n\t<AlertDialogPrimitive.Overlay\r\n\t\tclassName={alertDialogOverlayStyles({ className, blur, type })}\r\n\t\t{...props}\r\n\t\tref={ref}\r\n\t/>\r\n));\r\n\r\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\r\n\r\nconst alertDialogContent = tv({\r\n\tbase: [\r\n\t\t\"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[min(360px,calc(100vw-32px))] translate-x-[-50%] translate-y-[-50%] gap-6 rounded-lg border border-secondary-border bg-status-neutral-bg p-4 pt-6 shadow-soft-lg duration-200 lg:max-w-[min(512px,calc(100vw-64px))] lg:p-6\",\r\n\t\t\"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]\",\r\n\t\t\"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]\"\r\n\t],\r\n\tvariants: {\r\n\t\tstatus: {\r\n\t\t\tsuccess: \"border-status-success-secondary-border bg-status-success-bg\",\r\n\t\t\twarning: \"border-status-warning-secondary-border bg-status-warning-bg\",\r\n\t\t\terror: \"border-status-error-secondary-border bg-status-error-bg\",\r\n\t\t\tinfo: \"border-status-info-secondary-border bg-status-info-bg\"\r\n\t\t},\r\n\t\tfocus: {\r\n\t\t\tlow: \"border-secondary-border bg-secondary-bg\",\r\n\t\t\tmedium: \"bg-secondary-bg\",\r\n\t\t\thigh: \"\"\r\n\t\t}\r\n\t} satisfies VariantsConfig<AlertVariants>,\r\n\tdefaultVariants: {\r\n\t\tfocus: \"low\"\r\n\t}\r\n});\r\n\r\ntype BackgroundProps = OverlayVariants;\r\n\r\nexport type AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> &\r\n\tAlertVariants & {\r\n\t\toverlayBlur?: BackgroundProps[\"blur\"];\r\n\t\toverlayType?: BackgroundProps[\"type\"];\r\n\t\t/**\r\n\t\t * Контейнер для портала. Если не указан, портал рендерится в document.body\r\n\t\t */\r\n\t\tportalContainer?: HTMLElement;\r\n\t};\r\n\r\nconst AlertDialogContent = React.forwardRef<\r\n\tReact.ElementRef<typeof AlertDialogPrimitive.Content>,\r\n\tAlertDialogContentProps\r\n>(({ className, overlayBlur, overlayType, status, focus = \"low\", children, portalContainer, ...props }, ref) => {\r\n\tconst contextValue = React.useMemo(\r\n\t\t() => ({\r\n\t\t\tstatus,\r\n\t\t\tfocus\r\n\t\t}),\r\n\t\t[status, focus]\r\n\t);\r\n\r\n\tconst container = portalContainer;\r\n\r\n\treturn (\r\n\t\t<AlertContext.Provider value={contextValue}>\r\n\t\t\t<AlertDialogPortal container={container}>\r\n\t\t\t\t<AlertDialogOverlay blur={overlayBlur} type={overlayType} />\r\n\t\t\t\t<AlertDialogPrimitive.Content\r\n\t\t\t\t\tref={ref}\r\n\t\t\t\t\tclassName={alertDialogContent({ className, status, focus })}\r\n\t\t\t\t\t{...props}\r\n\t\t\t\t>\r\n\t\t\t\t\t{children}\r\n\t\t\t\t</AlertDialogPrimitive.Content>\r\n\t\t\t</AlertDialogPortal>\r\n\t\t</AlertContext.Provider>\r\n\t);\r\n});\r\n\r\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\r\n\r\nconst alertDialogHeaderStyles = tv({\r\n\tbase: \"flex flex-col items-center gap-y-2.5 lg:grid lg:grid-cols-[0_1fr] lg:items-start lg:gap-y-4 lg:has-[>svg]:grid-cols-[1.5rem_1fr] lg:has-[>svg]:gap-x-4\"\r\n});\r\n\r\nconst AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\r\n\t<div className={alertDialogHeaderStyles({ className })} {...props} />\r\n);\r\n\r\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\r\n\r\nconst alertDialogFooterStyles = tv({\r\n\tbase: \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-3\"\r\n});\r\n\r\nconst AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\r\n\t<div className={alertDialogFooterStyles({ className })} {...props} />\r\n);\r\n\r\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\r\n\r\nconst alertDialogTitleStyles = tv({\r\n\tbase: \"mb-1.5 text-base font-semibold text-primary-fg lg:col-start-2 lg:mb-0 lg:text-lg\",\r\n\tvariants: {\r\n\t\tstatus: {\r\n\t\t\tsuccess: \"text-status-success-fg\",\r\n\t\t\twarning: \"text-status-warning-fg\",\r\n\t\t\terror: \"text-status-error-fg\",\r\n\t\t\tinfo: \"text-status-info-fg\"\r\n\t\t},\r\n\t\tfocus: {\r\n\t\t\tlow: \"text-primary-fg\",\r\n\t\t\tmedium: \"\",\r\n\t\t\thigh: \"\"\r\n\t\t}\r\n\t} satisfies VariantsConfig<AlertVariants>,\r\n\tdefaultVariants: {\r\n\t\tfocus: \"low\"\r\n\t}\r\n});\r\n\r\nexport type AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> & AlertVariants;\r\n\r\nconst AlertDialogTitle = React.forwardRef<React.ElementRef<typeof AlertDialogPrimitive.Title>, AlertDialogTitleProps>(\r\n\t({ className, status: statusProp, focus: focusProp, ...props }, ref) => {\r\n\t\tconst { status, focus } = useAlert({ status: statusProp, focus: focusProp });\r\n\r\n\t\treturn (\r\n\t\t\t<AlertDialogPrimitive.Title\r\n\t\t\t\tref={ref}\r\n\t\t\t\tclassName={alertDialogTitleStyles({ className, status, focus })}\r\n\t\t\t\t{...props}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\r\n\r\nconst alertDialogIconStyles = tv({\r\n\tbase: \"text-primary-fg\",\r\n\tvariants: {\r\n\t\tstatus: {\r\n\t\t\tsuccess: \"text-status-success\",\r\n\t\t\twarning: \"text-status-warning\",\r\n\t\t\terror: \"text-status-error\",\r\n\t\t\tinfo: \"text-status-info\"\r\n\t\t}\r\n\t} satisfies VariantsConfig<AlertDialogIconVariants>\r\n});\r\n\r\ntype AlertDialogIconVariants = Omit<AlertVariants, \"focus\">;\r\n\r\nexport type AlertDialogIconProps = IconProps & AlertDialogIconVariants;\r\n\r\nconst AlertDialogIcon = React.forwardRef<SVGSVGElement, AlertDialogIconProps>(\r\n\t({ className, size, icon, status: statusProp, ...props }, ref) => {\r\n\t\tconst { status } = useAlert({ status: statusProp });\r\n\r\n\t\treturn (\r\n\t\t\t<Icon\r\n\t\t\t\tref={ref}\r\n\t\t\t\ticon={icon}\r\n\t\t\t\tsize={size ?? \"xl\"}\r\n\t\t\t\tclassName={alertDialogIconStyles({ className, status })}\r\n\t\t\t\t{...props}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nAlertDialogIcon.displayName = \"AlertDialogIcon\";\r\n\r\nconst alertDialogDescriptionStyles = tv({\r\n\tbase: \"text-center text-sm text-muted lg:col-start-2 lg:text-left\",\r\n\tvariants: {\r\n\t\tstatus: {\r\n\t\t\tsuccess: \"text-status-success-fg\",\r\n\t\t\twarning: \"text-status-warning-fg\",\r\n\t\t\terror: \"text-status-error-fg\",\r\n\t\t\tinfo: \"text-status-info-fg\"\r\n\t\t},\r\n\t\tfocus: {\r\n\t\t\tlow: \"text-muted\",\r\n\t\t\tmedium: \"\",\r\n\t\t\thigh: \"\"\r\n\t\t}\r\n\t} satisfies VariantsConfig<AlertDialogDescriptionVariants>,\r\n\tdefaultVariants: {\r\n\t\tfocus: \"low\"\r\n\t}\r\n});\r\n\r\ntype AlertDialogDescriptionVariants = AlertVariants;\r\n\r\nexport type AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> &\r\n\tAlertDialogDescriptionVariants;\r\n\r\nconst AlertDialogDescription = React.forwardRef<\r\n\tReact.ElementRef<typeof AlertDialogPrimitive.Description>,\r\n\tAlertDialogDescriptionProps\r\n>(({ className, status: statusProp, focus: focusProp, ...props }, ref) => {\r\n\tconst { status, focus } = useAlert({ status: statusProp, focus: focusProp });\r\n\r\n\treturn (\r\n\t\t<AlertDialogPrimitive.Description\r\n\t\t\tref={ref}\r\n\t\t\tclassName={alertDialogDescriptionStyles({ className, status, focus })}\r\n\t\t\t{...props}\r\n\t\t/>\r\n\t);\r\n});\r\n\r\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\r\n\r\nconst AlertDialogAction = React.forwardRef<React.ElementRef<typeof AlertDialogPrimitive.Action>, ButtonProps>(\r\n\t({ children, status: statusProp, variant, ...props }, ref) => {\r\n\t\tconst { status } = useAlert({ status: statusProp as AlertVariants[\"status\"] });\r\n\t\tconst isMobile = useIsMobile();\r\n\t\tconst size = isMobile ? \"xl\" : \"md\";\r\n\r\n\t\treturn (\r\n\t\t\t<AlertDialogPrimitive.Action ref={ref} asChild>\r\n\t\t\t\t<Button size={size} status={status} variant={variant || \"primary\"} {...props}>\r\n\t\t\t\t\t{children}\r\n\t\t\t\t</Button>\r\n\t\t\t</AlertDialogPrimitive.Action>\r\n\t\t);\r\n\t}\r\n);\r\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\r\n\r\ntype AlertDialogCancelVariants = Omit<AlertVariants, \"status\">;\r\n\r\nconst alertDialogCancelStyles = tv({\r\n\tbase: \"mt-2 sm:mt-0\",\r\n\tvariants: {\r\n\t\tfocus: {\r\n\t\t\tlow: \"\",\r\n\t\t\tmedium: \"\",\r\n\t\t\thigh: \"\"\r\n\t\t}\r\n\t} satisfies VariantsConfig<AlertDialogCancelVariants>\r\n});\r\n\r\nconst AlertDialogCancel = React.forwardRef<\r\n\tReact.ElementRef<typeof AlertDialogPrimitive.Cancel>,\r\n\tOmit<ButtonProps, \"focus\"> & AlertDialogCancelVariants\r\n>(({ className, children, variant, ...props }, ref) => {\r\n\tconst { focus } = useAlert();\r\n\tconst isMobile = useIsMobile();\r\n\tconst size = isMobile ? \"xl\" : \"md\";\r\n\r\n\treturn (\r\n\t\t<AlertDialogPrimitive.Cancel ref={ref} asChild>\r\n\t\t\t<Button\r\n\t\t\t\tsize={size}\r\n\t\t\t\tvariant={variant || \"outline\"}\r\n\t\t\t\tclassName={alertDialogCancelStyles({ className, focus })}\r\n\t\t\t\t{...props}\r\n\t\t\t>\r\n\t\t\t\t{children}\r\n\t\t\t</Button>\r\n\t\t</AlertDialogPrimitive.Cancel>\r\n\t);\r\n});\r\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\r\n\r\nconst AlertDialogPrimitiveAction = React.forwardRef<\r\n\tReact.ElementRef<typeof AlertDialogPrimitive.Action>,\r\n\tReact.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\r\n>(({ ...props }, ref) => <AlertDialogPrimitive.Action ref={ref} {...props} />);\r\n\r\nAlertDialogPrimitiveAction.displayName = \"AlertDialogPrimitiveAction\";\r\n\r\nconst AlertDialogPrimitiveCancel = React.forwardRef<\r\n\tReact.ElementRef<typeof AlertDialogPrimitive.Cancel>,\r\n\tReact.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\r\n>(({ ...props }, ref) => <AlertDialogPrimitive.Cancel ref={ref} {...props} />);\r\n\r\nAlertDialogPrimitiveCancel.displayName = \"AlertDialogPrimitiveCancel\";\r\n\r\nexport {\r\n\tAlertDialog,\r\n\tAlertDialogPortal,\r\n\tAlertDialogOverlay,\r\n\tAlertDialogTrigger,\r\n\tAlertDialogContent,\r\n\tAlertDialogHeader,\r\n\tAlertDialogFooter,\r\n\tAlertDialogTitle,\r\n\tAlertDialogIcon,\r\n\tAlertDialogDescription,\r\n\tAlertDialogAction,\r\n\tAlertDialogCancel,\r\n\tAlertDialogPrimitiveAction,\r\n\tAlertDialogPrimitiveCancel\r\n};\r\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Trigger2","Portal2","Overlay2","Content2","Action","Cancel","Title2","Description2","AlertDialogPrimitive.Root","AlertDialogPrimitive.Trigger","AlertDialogPrimitive.Portal","alertDialogOverlayStyles","tv","overlayStyles","className","blur","type","AlertDialogPrimitive.Overlay","alertDialogContent","overlayBlur","overlayType","status","focus","portalContainer","contextValue","container","AlertContext","AlertDialogPrimitive.Content","alertDialogHeaderStyles","AlertDialogHeader","alertDialogFooterStyles","AlertDialogFooter","alertDialogTitleStyles","statusProp","focusProp","useAlert","AlertDialogPrimitive.Title","alertDialogIconStyles","AlertDialogIcon","size","icon","Icon","alertDialogDescriptionStyles","AlertDialogPrimitive.Description","variant","useIsMobile","AlertDialogPrimitive.Action","Button","alertDialogCancelStyles","AlertDialogPrimitive.Cancel","AlertDialogPrimitiveAction","AlertDialogPrimitiveCancel"],"mappings":";;;;;;;;;;;;AAWA,IAAIA,IAAY,eACZ,CAACC,IAA0BC,EAAsB,IAAIC,EAAmBH,GAAW;AAAA,EACrFI;AACF,CAAC,GACGC,IAAiBD,EAAmB,GACpCE,IAAc,CAACC,MAAU;AAC3B,QAAM,EAAE,oBAAAC,GAAoB,GAAGC,EAAgB,IAAKF,GAC9CG,IAAcL,EAAeG,CAAkB;AACrD,SAAuB,gBAAAG,EAAIC,GAAsB,EAAE,GAAGF,GAAa,GAAGD,GAAkB,OAAO,IAAM;AACvG;AACAH,EAAY,cAAcN;AAC1B,IAAIa,KAAe,sBACfC,IAAqBC,EAAM;AAAA,EAC7B,CAACR,GAAOS,MAAiB;AACvB,UAAM,EAAE,oBAAAR,GAAoB,GAAGS,EAAY,IAAKV,GAC1CG,IAAcL,EAAeG,CAAkB;AACrD,WAAuB,gBAAAG,EAAIO,GAAyB,EAAE,GAAGR,GAAa,GAAGO,GAAc,KAAKD,GAAc;AAAA,EAC9G;AACA;AACAF,EAAmB,cAAcD;AACjC,IAAIM,KAAc,qBACdC,IAAoB,CAACb,MAAU;AACjC,QAAM,EAAE,oBAAAC,GAAoB,GAAGa,EAAW,IAAKd,GACzCG,IAAcL,EAAeG,CAAkB;AACrD,SAAuB,gBAAAG,EAAIW,GAAwB,EAAE,GAAGZ,GAAa,GAAGW,EAAW,CAAE;AACvF;AACAD,EAAkB,cAAcD;AAChC,IAAII,KAAe,sBACfC,IAAqBT,EAAM;AAAA,EAC7B,CAACR,GAAOS,MAAiB;AAC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AAM,GAAGqD,MAAQ,gBAAAjD,EAACqG,GAAA,EAA4B,KAAApD,GAAW,GAAGrD,GAAO,CAAE;AAE7E2G,GAA2B,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"alert-dialog.js","sources":["../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.15_@types+react-dom@18.3.6_@types+react@18.3.20__@type_3c02522d3260e86745c28b4781980a86/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs","../../src/components/alert-dialog/AlertDialog.tsx"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport { tv } from \"tailwind-variants\";\nimport { overlayStyles, OverlayVariants } from \"../overlay/Overlay\";\nimport { Button, ButtonProps } from \"../button\";\nimport { AlertContext, useAlert } from \"../alert/AlertContext\";\nimport { Icon } from \"../icon\";\nimport { IconProps } from \"../icon/Icon\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\nimport { AlertVariants } from \"../alert/Alert\";\nimport { useIsMobile } from \"@/hooks\";\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst alertDialogOverlayStyles = tv({\n\textend: overlayStyles\n});\n\ninterface AlertDialogOverlayProps\n\textends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>,\n\t\tOverlayVariants {}\n\nconst AlertDialogOverlay = React.forwardRef<\n\tReact.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n\tAlertDialogOverlayProps\n>(({ className, blur, type, ...props }, ref) => (\n\t<AlertDialogPrimitive.Overlay\n\t\tclassName={alertDialogOverlayStyles({ className, blur, type })}\n\t\t{...props}\n\t\tref={ref}\n\t/>\n));\n\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\nconst alertDialogContent = tv({\n\tbase: [\n\t\t\"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[min(360px,calc(100vw-32px))] translate-x-[-50%] translate-y-[-50%] gap-6 rounded-lg border border-secondary-border bg-status-neutral-bg p-4 pt-6 shadow-soft-lg duration-200 lg:max-w-[min(512px,calc(100vw-64px))] lg:p-6\",\n\t\t\"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]\",\n\t\t\"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]\"\n\t],\n\tvariants: {\n\t\tstatus: {\n\t\t\tsuccess: \"border-status-success-secondary-border bg-status-success-bg\",\n\t\t\twarning: \"border-status-warning-secondary-border bg-status-warning-bg\",\n\t\t\terror: \"border-status-error-secondary-border bg-status-error-bg\",\n\t\t\tinfo: \"border-status-info-secondary-border bg-status-info-bg\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"border-secondary-border bg-secondary-bg\",\n\t\t\tmedium: \"bg-secondary-bg\",\n\t\t\thigh: \"\"\n\t\t}\n\t} satisfies VariantsConfig<AlertVariants>,\n\tdefaultVariants: {\n\t\tfocus: \"low\"\n\t}\n});\n\ntype BackgroundProps = OverlayVariants;\n\nexport type AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> &\n\tAlertVariants & {\n\t\toverlayBlur?: BackgroundProps[\"blur\"];\n\t\toverlayType?: BackgroundProps[\"type\"];\n\t\t/**\n\t\t * Контейнер для портала. Если не указан, портал рендерится в document.body\n\t\t */\n\t\tportalContainer?: HTMLElement;\n\t};\n\nconst AlertDialogContent = React.forwardRef<\n\tReact.ElementRef<typeof AlertDialogPrimitive.Content>,\n\tAlertDialogContentProps\n>(({ className, overlayBlur, overlayType, status, focus = \"low\", children, portalContainer, ...props }, ref) => {\n\tconst contextValue = React.useMemo(\n\t\t() => ({\n\t\t\tstatus,\n\t\t\tfocus\n\t\t}),\n\t\t[status, focus]\n\t);\n\n\tconst container = portalContainer;\n\n\treturn (\n\t\t<AlertContext.Provider value={contextValue}>\n\t\t\t<AlertDialogPortal container={container}>\n\t\t\t\t<AlertDialogOverlay blur={overlayBlur} type={overlayType} />\n\t\t\t\t<AlertDialogPrimitive.Content\n\t\t\t\t\tref={ref}\n\t\t\t\t\tclassName={alertDialogContent({ className, status, focus })}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</AlertDialogPrimitive.Content>\n\t\t\t</AlertDialogPortal>\n\t\t</AlertContext.Provider>\n\t);\n});\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nconst alertDialogHeaderStyles = tv({\n\tbase: \"flex flex-col items-center gap-y-2.5 lg:grid lg:grid-cols-[0_1fr] lg:items-start lg:gap-y-4 lg:has-[>svg]:grid-cols-[1.5rem_1fr] lg:has-[>svg]:gap-x-4\"\n});\n\nconst AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n\t<div className={alertDialogHeaderStyles({ className })} {...props} />\n);\n\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\n\nconst alertDialogFooterStyles = tv({\n\tbase: \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-3\"\n});\n\nconst AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n\t<div className={alertDialogFooterStyles({ className })} {...props} />\n);\n\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\n\nconst alertDialogTitleStyles = tv({\n\tbase: \"mb-1.5 text-base font-semibold text-primary-fg lg:col-start-2 lg:mb-0 lg:text-lg\",\n\tvariants: {\n\t\tstatus: {\n\t\t\tsuccess: \"text-status-success-fg\",\n\t\t\twarning: \"text-status-warning-fg\",\n\t\t\terror: \"text-status-error-fg\",\n\t\t\tinfo: \"text-status-info-fg\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"text-primary-fg\",\n\t\t\tmedium: \"\",\n\t\t\thigh: \"\"\n\t\t}\n\t} satisfies VariantsConfig<AlertVariants>,\n\tdefaultVariants: {\n\t\tfocus: \"low\"\n\t}\n});\n\nexport type AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> & AlertVariants;\n\nconst AlertDialogTitle = React.forwardRef<React.ElementRef<typeof AlertDialogPrimitive.Title>, AlertDialogTitleProps>(\n\t({ className, status: statusProp, focus: focusProp, ...props }, ref) => {\n\t\tconst { status, focus } = useAlert({ status: statusProp, focus: focusProp });\n\n\t\treturn (\n\t\t\t<AlertDialogPrimitive.Title\n\t\t\t\tref={ref}\n\t\t\t\tclassName={alertDialogTitleStyles({ className, status, focus })}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t}\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst alertDialogIconStyles = tv({\n\tbase: \"text-primary-fg\",\n\tvariants: {\n\t\tstatus: {\n\t\t\tsuccess: \"text-status-success\",\n\t\t\twarning: \"text-status-warning\",\n\t\t\terror: \"text-status-error\",\n\t\t\tinfo: \"text-status-info\"\n\t\t}\n\t} satisfies VariantsConfig<AlertDialogIconVariants>\n});\n\ntype AlertDialogIconVariants = Omit<AlertVariants, \"focus\">;\n\nexport type AlertDialogIconProps = IconProps & AlertDialogIconVariants;\n\nconst AlertDialogIcon = React.forwardRef<SVGSVGElement, AlertDialogIconProps>(\n\t({ className, size, icon, status: statusProp, ...props }, ref) => {\n\t\tconst { status } = useAlert({ status: statusProp });\n\n\t\treturn (\n\t\t\t<Icon\n\t\t\t\tref={ref}\n\t\t\t\ticon={icon}\n\t\t\t\tsize={size ?? \"xl\"}\n\t\t\t\tclassName={alertDialogIconStyles({ className, status })}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t}\n);\n\nAlertDialogIcon.displayName = \"AlertDialogIcon\";\n\nconst alertDialogDescriptionStyles = tv({\n\tbase: \"text-center text-sm text-muted lg:col-start-2 lg:text-left\",\n\tvariants: {\n\t\tstatus: {\n\t\t\tsuccess: \"text-status-success-fg\",\n\t\t\twarning: \"text-status-warning-fg\",\n\t\t\terror: \"text-status-error-fg\",\n\t\t\tinfo: \"text-status-info-fg\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"text-muted\",\n\t\t\tmedium: \"\",\n\t\t\thigh: \"\"\n\t\t}\n\t} satisfies VariantsConfig<AlertDialogDescriptionVariants>,\n\tdefaultVariants: {\n\t\tfocus: \"low\"\n\t}\n});\n\ntype AlertDialogDescriptionVariants = AlertVariants;\n\nexport type AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> &\n\tAlertDialogDescriptionVariants;\n\nconst AlertDialogDescription = React.forwardRef<\n\tReact.ElementRef<typeof AlertDialogPrimitive.Description>,\n\tAlertDialogDescriptionProps\n>(({ className, status: statusProp, focus: focusProp, ...props }, ref) => {\n\tconst { status, focus } = useAlert({ status: statusProp, focus: focusProp });\n\n\treturn (\n\t\t<AlertDialogPrimitive.Description\n\t\t\tref={ref}\n\t\t\tclassName={alertDialogDescriptionStyles({ className, status, focus })}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<React.ElementRef<typeof AlertDialogPrimitive.Action>, ButtonProps>(\n\t({ children, status: statusProp, variant, ...props }, ref) => {\n\t\tconst { status } = useAlert({ status: statusProp as AlertVariants[\"status\"] });\n\t\tconst isMobile = useIsMobile();\n\t\tconst size = isMobile ? \"xl\" : \"md\";\n\n\t\treturn (\n\t\t\t<AlertDialogPrimitive.Action ref={ref} asChild>\n\t\t\t\t<Button size={size} status={status} variant={variant || \"primary\"} {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</Button>\n\t\t\t</AlertDialogPrimitive.Action>\n\t\t);\n\t}\n);\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\ntype AlertDialogCancelVariants = Omit<AlertVariants, \"status\">;\n\nconst alertDialogCancelStyles = tv({\n\tbase: \"mt-2 sm:mt-0\",\n\tvariants: {\n\t\tfocus: {\n\t\t\tlow: \"\",\n\t\t\tmedium: \"\",\n\t\t\thigh: \"\"\n\t\t}\n\t} satisfies VariantsConfig<AlertDialogCancelVariants>\n});\n\nconst AlertDialogCancel = React.forwardRef<\n\tReact.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n\tOmit<ButtonProps, \"focus\"> & AlertDialogCancelVariants\n>(({ className, children, variant, ...props }, ref) => {\n\tconst { focus } = useAlert();\n\tconst isMobile = useIsMobile();\n\tconst size = isMobile ? \"xl\" : \"md\";\n\n\treturn (\n\t\t<AlertDialogPrimitive.Cancel ref={ref} asChild>\n\t\t\t<Button\n\t\t\t\tsize={size}\n\t\t\t\tvariant={variant || \"outline\"}\n\t\t\t\tclassName={alertDialogCancelStyles({ className, focus })}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</Button>\n\t\t</AlertDialogPrimitive.Cancel>\n\t);\n});\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nconst AlertDialogPrimitiveAction = React.forwardRef<\n\tReact.ElementRef<typeof AlertDialogPrimitive.Action>,\n\tReact.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\n>(({ ...props }, ref) => <AlertDialogPrimitive.Action ref={ref} {...props} />);\n\nAlertDialogPrimitiveAction.displayName = \"AlertDialogPrimitiveAction\";\n\nconst AlertDialogPrimitiveCancel = React.forwardRef<\n\tReact.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n\tReact.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ ...props }, ref) => <AlertDialogPrimitive.Cancel ref={ref} {...props} />);\n\nAlertDialogPrimitiveCancel.displayName = \"AlertDialogPrimitiveCancel\";\n\nexport {\n\tAlertDialog,\n\tAlertDialogPortal,\n\tAlertDialogOverlay,\n\tAlertDialogTrigger,\n\tAlertDialogContent,\n\tAlertDialogHeader,\n\tAlertDialogFooter,\n\tAlertDialogTitle,\n\tAlertDialogIcon,\n\tAlertDialogDescription,\n\tAlertDialogAction,\n\tAlertDialogCancel,\n\tAlertDialogPrimitiveAction,\n\tAlertDialogPrimitiveCancel\n};\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Trigger2","Portal2","Overlay2","Content2","Action","Cancel","Title2","Description2","AlertDialogPrimitive.Root","AlertDialogPrimitive.Trigger","AlertDialogPrimitive.Portal","alertDialogOverlayStyles","tv","overlayStyles","className","blur","type","AlertDialogPrimitive.Overlay","alertDialogContent","overlayBlur","overlayType","status","focus","portalContainer","contextValue","container","AlertContext","AlertDialogPrimitive.Content","alertDialogHeaderStyles","AlertDialogHeader","alertDialogFooterStyles","AlertDialogFooter","alertDialogTitleStyles","statusProp","focusProp","useAlert","AlertDialogPrimitive.Title","alertDialogIconStyles","AlertDialogIcon","size","icon","Icon","alertDialogDescriptionStyles","AlertDialogPrimitive.Description","variant","useIsMobile","AlertDialogPrimitive.Action","Button","alertDialogCancelStyles","AlertDialogPrimitive.Cancel","AlertDialogPrimitiveAction","AlertDialogPrimitiveCancel"],"mappings":";;;;;;;;;;;;AAWA,IAAIA,IAAY,eACZ,CAACC,IAA0BC,EAAsB,IAAIC,EAAmBH,GAAW;AAAA,EACrFI;AACF,CAAC,GACGC,IAAiBD,EAAmB,GACpCE,IAAc,CAACC,MAAU;AAC3B,QAAM,EAAE,oBAAAC,GAAoB,GAAGC,EAAgB,IAAKF,GAC9CG,IAAcL,EAAeG,CAAkB;AACrD,SAAuB,gBAAAG,EAAIC,GAAsB,EAAE,GAAGF,GAAa,GAAGD,GAAkB,OAAO,IAAM;AACvG;AACAH,EAAY,cAAcN;AAC1B,IAAIa,KAAe,sBACfC,IAAqBC,EAAM;AAAA,EAC7B,CAACR,GAAOS,MAAiB;AACvB,UAAM,EAAE,oBAAAR,GAAoB,GAAGS,EAAY,IAAKV,GAC1CG,IAAcL,EAAeG,CAAkB;AACrD,WAAuB,gBAAAG,EAAIO,GAAyB,EAAE,GAAGR,GAAa,GAAGO,GAAc,KAAKD,G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AAAQ,GAAO;AAAA,MACtD,GAAG9E;AAAA,MAEH,UAAA0B;AAAA,IAAA;AAAA,EAAA,GAEH;AAEF,CAAC;AACDyB,GAAkB,cAAcsD,EAA4B;AAE5D,MAAMC,KAA6BlG,EAAM,WAGvC,CAAC,EAAE,GAAGR,EAAM,GAAGqD,MAAQ,gBAAAjD,EAACkG,GAAA,EAA4B,KAAAjD,GAAW,GAAGrD,GAAO,CAAE;AAE7E0G,GAA2B,cAAc;AAEzC,MAAMC,KAA6BnG,EAAM,WAGvC,CAAC,EAAE,GAAGR,EAAM,GAAGqD,MAAQ,gBAAAjD,EAACqG,GAAA,EAA4B,KAAApD,GAAW,GAAGrD,GAAO,CAAE;AAE7E2G,GAA2B,cAAc;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","sources":["../../src/components/alert/components/AlertTitle.tsx","../../src/components/alert/components/AlertButton.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\nimport { useAlert } from \"../AlertContext\";\r\nimport { VariantsConfig } from \"@/lib/utils/variants\";\r\nimport { AlertVariants } from \"../Alert\";\r\n\r\nconst alertTitleStyles = tv({\r\n\tbase: \"col-start-2 line-clamp-1 min-h-4 text-sm font-medium tracking-tight text-primary-fg\",\r\n\tvariants: {\r\n\t\tstatus: {\r\n\t\t\tsuccess: \"text-status-success-fg\",\r\n\t\t\twarning: \"text-status-warning-fg\",\r\n\t\t\terror: \"text-status-error-fg\",\r\n\t\t\tinfo: \"text-status-info-fg\"\r\n\t\t},\r\n\t\tfocus: {\r\n\t\t\tlow: \"text-primary-fg\",\r\n\t\t\tmedium: \"\",\r\n\t\t\thigh: \"\"\r\n\t\t}\r\n\t} satisfies VariantsConfig<AlertVariants>,\r\n\tdefaultVariants: {\r\n\t\tfocus: \"low\"\r\n\t}\r\n});\r\n\r\nexport type AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement> &\r\n\tAlertVariants & {\r\n\t\tasChild?: boolean;\r\n\t};\r\n\r\n/**\r\n * Компонент AlertTitle для отображения заголовка алерта\r\n */\r\nexport const AlertTitle = React.forwardRef<HTMLHeadingElement, AlertTitleProps>(\r\n\t({ className, status: statusProp, focus: focusProp, asChild = false, ...props }, ref) => {\r\n\t\tconst { status, focus } = useAlert({ status: statusProp, focus: focusProp });\r\n\r\n\t\tconst Comp = asChild ? Slot : \"h5\";\r\n\t\treturn <Comp ref={ref} className={alertTitleStyles({ status, className, focus })} {...props} />;\r\n\t}\r\n);\r\n\r\nAlertTitle.displayName = \"AlertTitle\";\r\n","import React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\nimport { useAlert } from \"../AlertContext\";\r\nimport { Button, ButtonProps } from \"@/components/button\";\r\nimport { AlertVariants } from \"../Alert\";\r\n\r\nconst alertButtonStyles = tv({\r\n\tbase: \"@sm:col-start-3 @sm:ml-3 @sm:justify-self-auto @sm:self-end col-start-2 h-5 justify-self-end rounded-none px-0 py-0.5 text-xs\"\r\n});\r\n\r\nexport type AlertButtonProps = Omit<ButtonProps, \"status\"> & Pick<AlertVariants, \"status\">;\r\n\r\n/**\r\n * Компонент AlertButton для отображения кнопки алерта\r\n */\r\nexport const AlertButton = React.forwardRef<HTMLButtonElement, AlertButtonProps>(\r\n\t({ className, status: statusProp, ...props }, ref) => {\r\n\t\tconst { status } = useAlert({ status: statusProp });\r\n\r\n\t\treturn (\r\n\t\t\t<Button ref={ref} status={status} variant=\"link\" className={alertButtonStyles({ className })} {...props} />\r\n\t\t);\r\n\t}\r\n);\r\n\r\nAlertButton.displayName = \"AlertButton\";\r\n"],"names":["alertTitleStyles","tv","AlertTitle","React","className","statusProp","focusProp","asChild","props","ref","status","focus","useAlert","jsx","Slot","alertButtonStyles","AlertButton","Button"],"mappings":";;;;;;;AAOA,MAAMA,IAAmBC,EAAG;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,IACT,QAAQ;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,OAAO;AAAA,MACP,MAAM;AAAA,IACP;AAAA,IACA,OAAO;AAAA,MACN,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,MAAM;AAAA,IAAA;AAAA,EAER;AAAA,EACA,iBAAiB;AAAA,IAChB,OAAO;AAAA,EAAA;AAET,CAAC,GAUYC,IAAaC,EAAM;AAAA,EAC/B,CAAC,EAAE,WAAAC,GAAW,QAAQC,GAAY,OAAOC,GAAW,SAAAC,IAAU,IAAO,GAAGC,EAAM,GAAGC,MAAQ;AAClF,UAAA,EAAE,QAAAC,GAAQ,OAAAC,EAAA,IAAUC,EAAS,EAAE,QAAQP,GAAY,OAAOC,GAAW;AAG3E,WAAQ,gBAAAO,EADKN,IAAUO,IAAO,MACtB,EAAK,KAAAL,GAAU,WAAWT,EAAiB,EAAE,QAAAU,GAAQ,WAAAN,GAAW,OAAAO,EAAM,CAAC,GAAI,GAAGH,EAAO,CAAA;AAAA,EAAA;AAE/F;AAEAN,EAAW,cAAc;ACtCzB,MAAMa,IAAoBd,EAAG;AAAA,EAC5B,MAAM;AACP,CAAC,GAOYe,IAAcb,EAAM;AAAA,EAChC,CAAC,EAAE,WAAAC,GAAW,QAAQC,GAAY,GAAGG,KAASC,MAAQ;AACrD,UAAM,EAAE,QAAAC,EAAO,IAAIE,EAAS,EAAE,QAAQP,GAAY;AAElD,WACE,gBAAAQ,EAAAI,GAAA,EAAO,KAAAR,GAAU,QAAAC,GAAgB,SAAQ,QAAO,WAAWK,EAAkB,EAAE,WAAAX,EAAW,CAAA,GAAI,GAAGI,EAAO,CAAA;AAAA,EAAA;AAG5G;AAEAQ,EAAY,cAAc;"}
1
+ {"version":3,"file":"alert.js","sources":["../../src/components/alert/components/AlertTitle.tsx","../../src/components/alert/components/AlertButton.tsx"],"sourcesContent":["import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useAlert } from \"../AlertContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\nimport { AlertVariants } from \"../Alert\";\n\nconst alertTitleStyles = tv({\n\tbase: \"col-start-2 line-clamp-1 min-h-4 text-sm font-medium tracking-tight text-primary-fg\",\n\tvariants: {\n\t\tstatus: {\n\t\t\tsuccess: \"text-status-success-fg\",\n\t\t\twarning: \"text-status-warning-fg\",\n\t\t\terror: \"text-status-error-fg\",\n\t\t\tinfo: \"text-status-info-fg\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"text-primary-fg\",\n\t\t\tmedium: \"\",\n\t\t\thigh: \"\"\n\t\t}\n\t} satisfies VariantsConfig<AlertVariants>,\n\tdefaultVariants: {\n\t\tfocus: \"low\"\n\t}\n});\n\nexport type AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement> &\n\tAlertVariants & {\n\t\tasChild?: boolean;\n\t};\n\n/**\n * Компонент AlertTitle для отображения заголовка алерта\n */\nexport const AlertTitle = React.forwardRef<HTMLHeadingElement, AlertTitleProps>(\n\t({ className, status: statusProp, focus: focusProp, asChild = false, ...props }, ref) => {\n\t\tconst { status, focus } = useAlert({ status: statusProp, focus: focusProp });\n\n\t\tconst Comp = asChild ? Slot : \"h5\";\n\t\treturn <Comp ref={ref} className={alertTitleStyles({ status, className, focus })} {...props} />;\n\t}\n);\n\nAlertTitle.displayName = \"AlertTitle\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useAlert } from \"../AlertContext\";\nimport { Button, ButtonProps } from \"@/components/button\";\nimport { AlertVariants } from \"../Alert\";\n\nconst alertButtonStyles = tv({\n\tbase: \"@sm:col-start-3 @sm:ml-3 @sm:justify-self-auto @sm:self-end col-start-2 h-5 justify-self-end rounded-none px-0 py-0.5 text-xs\"\n});\n\nexport type AlertButtonProps = Omit<ButtonProps, \"status\"> & Pick<AlertVariants, \"status\">;\n\n/**\n * Компонент AlertButton для отображения кнопки алерта\n */\nexport const AlertButton = React.forwardRef<HTMLButtonElement, AlertButtonProps>(\n\t({ className, status: statusProp, ...props }, ref) => {\n\t\tconst { status } = useAlert({ status: statusProp });\n\n\t\treturn (\n\t\t\t<Button ref={ref} status={status} variant=\"link\" className={alertButtonStyles({ className })} {...props} />\n\t\t);\n\t}\n);\n\nAlertButton.displayName = \"AlertButton\";\n"],"names":["alertTitleStyles","tv","AlertTitle","React","className","statusProp","focusProp","asChild","props","ref","status","focus","useAlert","jsx","Slot","alertButtonStyles","AlertButton","Button"],"mappings":";;;;;;;AAOA,MAAMA,IAAmBC,EAAG;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,IACT,QAAQ;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,OAAO;AAAA,MACP,MAAM;AAAA,IACP;AAAA,IACA,OAAO;AAAA,MACN,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,MAAM;AAAA,IAAA;AAAA,EAER;AAAA,EACA,iBAAiB;AAAA,IAChB,OAAO;AAAA,EAAA;AAET,CAAC,GAUYC,IAAaC,EAAM;AAAA,EAC/B,CAAC,EAAE,WAAAC,GAAW,QAAQC,GAAY,OAAOC,GAAW,SAAAC,IAAU,IAAO,GAAGC,EAAM,GAAGC,MAAQ;AAClF,UAAA,EAAE,QAAAC,GAAQ,OAAAC,EAAA,IAAUC,EAAS,EAAE,QAAQP,GAAY,OAAOC,GAAW;AAG3E,WAAQ,gBAAAO,EADKN,IAAUO,IAAO,MACtB,EAAK,KAAAL,GAAU,WAAWT,EAAiB,EAAE,QAAAU,GAAQ,WAAAN,GAAW,OAAAO,EAAM,CAAC,GAAI,GAAGH,EAAO,CAAA;AAAA,EAAA;AAE/F;AAEAN,EAAW,cAAc;ACtCzB,MAAMa,IAAoBd,EAAG;AAAA,EAC5B,MAAM;AACP,CAAC,GAOYe,IAAcb,EAAM;AAAA,EAChC,CAAC,EAAE,WAAAC,GAAW,QAAQC,GAAY,GAAGG,KAASC,MAAQ;AACrD,UAAM,EAAE,QAAAC,EAAO,IAAIE,EAAS,EAAE,QAAQP,GAAY;AAElD,WACE,gBAAAQ,EAAAI,GAAA,EAAO,KAAAR,GAAU,QAAAC,GAAgB,SAAQ,QAAO,WAAWK,EAAkB,EAAE,WAAAX,EAAW,CAAA,GAAI,GAAGI,EAAO,CAAA;AAAA,EAAA;AAG5G;AAEAQ,EAAY,cAAc;"}
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.js","sources":["../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js","../../node_modules/.pnpm/@radix-ui+react-use-is-hydr_5e426d7053e7409b3ee28b935cfbc616/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs","../../node_modules/.pnpm/@radix-ui+react-avatar@1.1._83cc3097e6f4b1aa2ef2f3c1cb15c838/node_modules/@radix-ui/react-avatar/dist/index.mjs","../../src/components/avatar/Avatar.tsx","../../src/components/avatar/avatar-fallback/AvatarFallback.tsx","../../src/components/avatar/avatar-icon/AvatarIcon.tsx","../../src/components/avatar/avatar-image/AvatarImage.tsx","../../src/components/avatar/avatar-label/AvatarLabelContext.tsx","../../src/components/avatar/avatar-label/AvatarLabel.tsx","../../src/components/avatar/avatar-indicator/AvatarIndicator.tsx","../../src/components/avatar/avatar-label/components/avatar-label-avatar/AvatarLabelAvatar.tsx","../../src/components/avatar/avatar-label/components/avatar-label-indicator/AvatarLabelIndicator.tsx","../../src/components/avatar/avatar-label/components/avatar-label-title/AvatarLabelTitle.tsx","../../src/components/avatar/avatar-label/components/avatar-label-description/AvatarLabelDescription.tsx"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","// src/use-is-hydrated.tsx\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nfunction useIsHydrated() {\n return useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\nfunction subscribe() {\n return () => {\n };\n}\nexport {\n useIsHydrated\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useIsHydrated } from \"@radix-ui/react-use-is-hydrated\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src, imageProps);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction resolveLoadingStatus(image, src) {\n if (!image) {\n return \"idle\";\n }\n if (!src) {\n return \"error\";\n }\n if (image.src !== src) {\n image.src = src;\n }\n return image.complete && image.naturalWidth > 0 ? \"loaded\" : \"loading\";\n}\nfunction useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {\n const isHydrated = useIsHydrated();\n const imageRef = React.useRef(null);\n const image = (() => {\n if (!isHydrated) return null;\n if (!imageRef.current) {\n imageRef.current = new window.Image();\n }\n return imageRef.current;\n })();\n const [loadingStatus, setLoadingStatus] = React.useState(\n () => resolveLoadingStatus(image, src)\n );\n useLayoutEffect(() => {\n setLoadingStatus(resolveLoadingStatus(image, src));\n }, [image, src]);\n useLayoutEffect(() => {\n const updateStatus = (status) => () => {\n setLoadingStatus(status);\n };\n if (!image) return;\n const handleLoad = updateStatus(\"loaded\");\n const handleError = updateStatus(\"error\");\n image.addEventListener(\"load\", handleLoad);\n image.addEventListener(\"error\", handleError);\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n if (typeof crossOrigin === \"string\") {\n image.crossOrigin = crossOrigin;\n }\n return () => {\n image.removeEventListener(\"load\", handleLoad);\n image.removeEventListener(\"error\", handleError);\n };\n }, [image, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\r\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\r\nimport { tv } from \"tailwind-variants\";\r\nimport { VariantsConfig } from \"@/lib/utils/variants\";\r\n\r\nexport interface AvatarVariants {\r\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\";\r\n\tindicator?: React.ReactNode;\r\n}\r\n\r\nconst avatarStyles = tv({\r\n\tbase: \"relative box-border flex shrink-0 rounded-full\",\r\n\tslots: {\r\n\t\twrapper: \"h-full w-full overflow-hidden rounded-full\"\r\n\t},\r\n\tvariants: {\r\n\t\tsize: {\r\n\t\t\t\"3xs\": \"h-4 w-4 text-2xs [&_svg]:h-2.5 [&_svg]:w-2.5\",\r\n\t\t\t\"2xs\": \"h-5 w-5 text-[0.625rem] [&_svg]:h-3 [&_svg]:w-3\",\r\n\t\t\txs: \"h-6 w-6 text-xs [&_svg]:h-3.5 [&_svg]:w-3.5\",\r\n\t\t\tsm: \"h-7 w-7 text-xs [&_svg]:h-3.5 [&_svg]:w-3.5\",\r\n\t\t\tmd: \"h-8 w-8 text-sm [&_svg]:h-4 [&_svg]:w-4\",\r\n\t\t\tlg: \"h-10 w-10 text-base [&_svg]:h-5 [&_svg]:w-5\",\r\n\t\t\txl: \"h-12 w-12 text-lg [&_svg]:h-6 [&_svg]:w-6\",\r\n\t\t\t\"2xl\": \"h-14 w-14 text-xl [&_svg]:h-7 [&_svg]:w-7\",\r\n\t\t\t\"3xl\": \"h-16 w-16 text-2xl [&_svg]:h-8 [&_svg]:w-8\"\r\n\t\t}\r\n\t} satisfies Omit<VariantsConfig<AvatarVariants>, \"indicator\">,\r\n\tdefaultVariants: {\r\n\t\tsize: \"md\"\r\n\t}\r\n});\r\n\r\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & AvatarVariants;\r\n\r\nexport const Avatar = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Root>, AvatarProps>(\r\n\t({ className, size, indicator, children, ...props }, ref) => {\r\n\t\tconst styles = avatarStyles();\r\n\r\n\t\treturn (\r\n\t\t\t<AvatarPrimitive.Root ref={ref} className={styles.base({ className, size })} {...props}>\r\n\t\t\t\t<div className={styles.wrapper()}>{children}</div>\r\n\t\t\t\t{indicator}\r\n\t\t\t</AvatarPrimitive.Root>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nAvatar.displayName = AvatarPrimitive.Root.displayName;\r\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\r\nimport React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\n\r\nexport const avatarFallbackStyles = tv({\r\n\tbase: \"flex h-full w-full items-center justify-center rounded-full bg-secondary-bg-hover text-secondary-fg\"\r\n});\r\n\r\nexport type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;\r\n\r\nexport const AvatarFallback = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Fallback>, AvatarFallbackProps>(\r\n\t({ className, ...props }, ref) => (\r\n\t\t<AvatarPrimitive.Fallback ref={ref} className={avatarFallbackStyles({ className })} {...props} />\r\n\t)\r\n);\r\n\r\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\r\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\r\nimport React from \"react\";\r\nimport { AvatarFallbackProps, avatarFallbackStyles } from \"../avatar-fallback/AvatarFallback\";\r\nimport { Icon } from \"@/components/icon\";\r\nimport { LucideIcon } from \"lucide-react\";\r\n\r\ntype AvatarIcon = Omit<AvatarFallbackProps, \"children\"> & {\r\n\ticon: LucideIcon;\r\n};\r\n\r\nexport const AvatarIcon = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Fallback>, AvatarIcon>(\r\n\t({ className, icon, ...props }, ref) => (\r\n\t\t<AvatarPrimitive.Fallback ref={ref} className={avatarFallbackStyles({ className })} {...props}>\r\n\t\t\t<Icon icon={icon} />\r\n\t\t</AvatarPrimitive.Fallback>\r\n\t)\r\n);\r\n\r\nAvatarIcon.displayName = \"AvatarIcon\";\r\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\r\nimport React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\n\r\nconst avatarImageStyles = tv({\r\n\tbase: \"aspect-square h-full w-full rounded-full border border-secondary-border\"\r\n});\r\n\r\ntype AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\r\n\r\nexport const AvatarImage = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Image>, AvatarImageProps>(\r\n\t({ className, ...props }, ref) => (\r\n\t\t<AvatarPrimitive.Image ref={ref} className={avatarImageStyles({ className })} {...props} />\r\n\t)\r\n);\r\n\r\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\r\n","import * as React from \"react\";\r\nimport { AvatarLabelVariants } from \"./AvatarLabel\";\r\n\r\nexport type AvatarLabelComponentType = \"avatar\" | \"indicator\" | \"title\" | \"description\";\r\n\r\n// Тип для дочернего компонента AvatarLabel\r\nexport type AvatarLabelChild<T = Record<string, unknown>> = (\r\n\t| React.ComponentType<T>\r\n\t| React.ForwardRefExoticComponent<T>\r\n) & {\r\n\tcomponentType: AvatarLabelComponentType;\r\n};\r\n\r\nexport type AvatarLabelContextValue = AvatarLabelVariants;\r\n\r\nexport const AvatarLabelContext = React.createContext<AvatarLabelContextValue | null>(null);\r\n\r\nexport const useAvatarLabelContext = () => {\r\n\tconst context = React.useContext(AvatarLabelContext);\r\n\tif (!context) {\r\n\t\tthrow new Error(\"useAvatarLabelContext must be used within AvatarLabelProvider\");\r\n\t}\r\n\treturn context;\r\n};\r\n","import * as React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\nimport { AvatarLabelContext, AvatarLabelChild } from \"./AvatarLabelContext\";\r\nimport { VariantsConfig } from \"@/lib/utils/variants\";\r\n\r\nexport interface AvatarLabelVariants {\r\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\r\n}\r\n\r\nconst avatarLabelStyles = tv({\r\n\tslots: {\r\n\t\twrapper: \"flex flex-row items-center gap-2\",\r\n\t\tavatarWrapper: \"relative shrink-0\",\r\n\t\ttextWrapper: \"flex min-w-0 flex-col\",\r\n\t\tindicator: \"absolute bottom-0 right-0 rounded-full border-2 border-secondary-bg\"\r\n\t},\r\n\tvariants: {\r\n\t\tsize: {\r\n\t\t\t\"3xs\": {\r\n\t\t\t\twrapper: \"gap-1.5\"\r\n\t\t\t},\r\n\t\t\t\"2xs\": {\r\n\t\t\t\twrapper: \"gap-1.5\"\r\n\t\t\t},\r\n\t\t\txs: {\r\n\t\t\t\twrapper: \"gap-1.5\"\r\n\t\t\t},\r\n\t\t\tsm: {},\r\n\t\t\tmd: {},\r\n\t\t\tlg: {},\r\n\t\t\txl: {\r\n\t\t\t\twrapper: \"gap-3\"\r\n\t\t\t},\r\n\t\t\t\"2xl\": {\r\n\t\t\t\twrapper: \"gap-4\"\r\n\t\t\t}\r\n\t\t}\r\n\t} satisfies VariantsConfig<AvatarLabelVariants>,\r\n\tdefaultVariants: {\r\n\t\tsize: \"md\"\r\n\t}\r\n});\r\n\r\ntype AvatarLabelProps = Omit<React.ComponentPropsWithoutRef<\"div\">, \"title\"> & AvatarLabelVariants;\r\n\r\nexport const AvatarLabel = React.forwardRef<HTMLDivElement, AvatarLabelProps>(\r\n\t({ className, children, size, ...props }, ref) => {\r\n\t\tconst contextValue = React.useMemo(() => ({ size }), [size]);\r\n\r\n\t\tconst sortedComponents = React.useMemo(() => {\r\n\t\t\tif (!children) return null;\r\n\r\n\t\t\tconst childrenArray = React.Children.toArray(children) as React.ReactElement[];\r\n\t\t\tlet avatar: React.ReactElement | null = null;\r\n\t\t\tlet indicator: React.ReactElement | null = null;\r\n\t\t\tlet title: React.ReactElement | null = null;\r\n\t\t\tlet description: React.ReactElement | null = null;\r\n\r\n\t\t\tchildrenArray.forEach((child) => {\r\n\t\t\t\tconst componentType = (child.type as AvatarLabelChild)?.componentType;\r\n\r\n\t\t\t\tif (componentType === \"avatar\") {\r\n\t\t\t\t\tavatar = child;\r\n\t\t\t\t} else if (componentType === \"indicator\") {\r\n\t\t\t\t\tindicator = child;\r\n\t\t\t\t} else if (componentType === \"title\") {\r\n\t\t\t\t\ttitle = child;\r\n\t\t\t\t} else if (componentType === \"description\") {\r\n\t\t\t\t\tdescription = child;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\treturn { avatar, indicator, title, description };\r\n\t\t}, [children]);\r\n\r\n\t\tconst renderContent = () => {\r\n\t\t\tif (!children) return null;\r\n\t\t\tconst styles = avatarLabelStyles();\r\n\r\n\t\t\tif (!sortedComponents) {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t<div ref={ref} className={styles.wrapper({ className, size })} {...props}>\r\n\t\t\t\t\t\t{children}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\tconst { avatar, indicator, title, description } = sortedComponents;\r\n\r\n\t\t\treturn (\r\n\t\t\t\t<div ref={ref} className={styles.wrapper({ className, size })} {...props}>\r\n\t\t\t\t\t{avatar && (\r\n\t\t\t\t\t\t<div className={styles.avatarWrapper()}>\r\n\t\t\t\t\t\t\t{avatar}\r\n\t\t\t\t\t\t\t{indicator && <div className={styles.indicator()}>{indicator}</div>}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t{(title || description) && (\r\n\t\t\t\t\t\t<div className={styles.textWrapper()}>\r\n\t\t\t\t\t\t\t{title}\r\n\t\t\t\t\t\t\t{description}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t)}\r\n\t\t\t\t</div>\r\n\t\t\t);\r\n\t\t};\r\n\r\n\t\treturn <AvatarLabelContext.Provider value={contextValue}>{renderContent()}</AvatarLabelContext.Provider>;\r\n\t}\r\n);\r\n\r\nAvatarLabel.displayName = \"AvatarLabel\";\r\n","import React from \"react\";\r\nimport { Indicator } from \"@/components/indicator\";\r\nimport { tv } from \"tailwind-variants\";\r\n\r\ntype AvatarIndicatorProps = Omit<React.ComponentPropsWithoutRef<typeof Indicator>, \"size\"> & {\r\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\";\r\n};\r\n\r\nconst avatarIndicatorStyles = tv({\r\n\tbase: \"absolute -bottom-0.5 -right-0.5 rounded-full border-2 border-secondary-bg\",\r\n\tvariants: {\r\n\t\tsize: {\r\n\t\t\t\"3xs\": \"border\",\r\n\t\t\t\"2xs\": \"border\",\r\n\t\t\txs: \"bottom-[-3px] right-[-3px] border\",\r\n\t\t\tsm: \"bottom-[-3px] right-[-3px]\",\r\n\t\t\tmd: \"bottom-[-3px] right-[-3px]\",\r\n\t\t\tlg: \"\",\r\n\t\t\txl: \"\",\r\n\t\t\t\"2xl\": \"\",\r\n\t\t\t\"3xl\": \"\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\nconst SIZE_MAP = {\r\n\t\"3xs\": \"3xs\",\r\n\t\"2xs\": \"2xs\",\r\n\txs: \"xs\",\r\n\tsm: \"sm\",\r\n\tmd: \"sm\",\r\n\tlg: \"md\",\r\n\txl: \"lg\",\r\n\t\"2xl\": \"xl\",\r\n\t\"3xl\": \"2xl\"\r\n} as const;\r\n\r\nexport const AvatarIndicator = React.forwardRef<React.ElementRef<typeof Indicator>, AvatarIndicatorProps>(\r\n\t({ children, size, ...props }, ref) => {\r\n\t\tconst indicatorSize = size ? SIZE_MAP[size] : size;\r\n\r\n\t\treturn (\r\n\t\t\t<div className={avatarIndicatorStyles({ size })}>\r\n\t\t\t\t<Indicator ref={ref} size={indicatorSize} rounded {...props}>\r\n\t\t\t\t\t{children}\r\n\t\t\t\t</Indicator>\r\n\t\t\t</div>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nAvatarIndicator.displayName = \"AvatarIndicator\";\r\n","import React from \"react\";\r\nimport { Avatar } from \"../../../Avatar\";\r\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\r\n\r\ntype AvatarLabelAvatarProps = React.ComponentPropsWithoutRef<typeof Avatar>;\r\n\r\nexport const AvatarLabelAvatar = React.forwardRef<React.ElementRef<typeof Avatar>, AvatarLabelAvatarProps>(\r\n\t({ className, children, size, ...props }, ref) => {\r\n\t\tconst { size: labelSize } = useAvatarLabelContext();\r\n\r\n\t\treturn (\r\n\t\t\t<Avatar ref={ref} className={className} size={size || labelSize} {...props}>\r\n\t\t\t\t{children}\r\n\t\t\t</Avatar>\r\n\t\t);\r\n\t}\r\n) as AvatarLabelChild<AvatarLabelAvatarProps>;\r\n\r\nAvatarLabelAvatar.displayName = \"AvatarLabelAvatar\";\r\nAvatarLabelAvatar.componentType = \"avatar\";\r\n","import React from \"react\";\r\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\r\nimport { Indicator } from \"@/components/indicator\";\r\n\r\ntype AvatarLabelIndicatorProps = React.ComponentPropsWithoutRef<typeof Indicator>;\r\n\r\nexport const AvatarLabelIndicator = React.forwardRef<React.ElementRef<typeof Indicator>, AvatarLabelIndicatorProps>(\r\n\t({ children, ...props }, ref) => {\r\n\t\tconst { size: labelSize } = useAvatarLabelContext();\r\n\r\n\t\treturn (\r\n\t\t\t<Indicator ref={ref} size={labelSize} {...props} rounded>\r\n\t\t\t\t{children}\r\n\t\t\t</Indicator>\r\n\t\t);\r\n\t}\r\n) as AvatarLabelChild<AvatarLabelIndicatorProps>;\r\n\r\nAvatarLabelIndicator.displayName = \"AvatarLabelIndicator\";\r\nAvatarLabelIndicator.componentType = \"indicator\";\r\n","import React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\r\nimport { AvatarLabelVariants } from \"../../AvatarLabel\";\r\nimport { VariantsConfig } from \"@/lib/utils/variants\";\r\n\r\nconst avatarLabelTitleStyles = tv({\r\n\tbase: \"font-semibold text-primary-fg\",\r\n\tvariants: {\r\n\t\tsize: {\r\n\t\t\t\"3xs\": \"text-xs\",\r\n\t\t\t\"2xs\": \"text-xs\",\r\n\t\t\txs: \"text-sm\",\r\n\t\t\tsm: \"text-sm\",\r\n\t\t\tmd: \"text-sm\",\r\n\t\t\tlg: \"text-sm\",\r\n\t\t\txl: \"text-base\",\r\n\t\t\t\"2xl\": \"text-lg\"\r\n\t\t}\r\n\t} satisfies VariantsConfig<AvatarLabelVariants>,\r\n\tdefaultVariants: {\r\n\t\tsize: \"md\"\r\n\t}\r\n});\r\n\r\ntype AvatarLabelTitleProps = React.ComponentPropsWithoutRef<\"span\"> & AvatarLabelVariants;\r\n\r\nexport const AvatarLabelTitle = React.forwardRef<HTMLSpanElement, AvatarLabelTitleProps>(\r\n\t({ className, size, children, ...props }, ref) => {\r\n\t\tconst { size: labelSize } = useAvatarLabelContext();\r\n\r\n\t\treturn (\r\n\t\t\t<span ref={ref} className={avatarLabelTitleStyles({ className, size: size || labelSize })} {...props}>\r\n\t\t\t\t{children}\r\n\t\t\t</span>\r\n\t\t);\r\n\t}\r\n) as AvatarLabelChild<AvatarLabelTitleProps>;\r\n\r\nAvatarLabelTitle.displayName = \"AvatarLabelTitle\";\r\nAvatarLabelTitle.componentType = \"title\";\r\n","import React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\r\nimport { VariantsConfig } from \"@/lib/utils/variants\";\r\nimport { AvatarLabelVariants } from \"../../AvatarLabel\";\r\n\r\nconst avatarLabelDescriptionStyles = tv({\r\n\tbase: \"text-muted\",\r\n\tvariants: {\r\n\t\tsize: {\r\n\t\t\tsm: \"text-xs leading-none\",\r\n\t\t\tmd: \"text-xs\",\r\n\t\t\tlg: \"text-sm\",\r\n\t\t\txl: \"text-base\",\r\n\t\t\t\"2xl\": \"text-base\"\r\n\t\t}\r\n\t} satisfies VariantsConfig<AvatarLabelDescriptionVariants>,\r\n\tdefaultVariants: {\r\n\t\tsize: \"md\"\r\n\t}\r\n});\r\n\r\ntype AvatarLabelDescriptionSizeVariants = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\r\ntype AvatarLabelDescriptionVariants = Omit<AvatarLabelVariants, \"size\"> & { size?: AvatarLabelDescriptionSizeVariants };\r\n\r\nexport type AvatarLabelDescriptionProps = React.ComponentPropsWithoutRef<\"span\"> & AvatarLabelDescriptionVariants;\r\n\r\nexport const AvatarLabelDescription = React.forwardRef<HTMLSpanElement, AvatarLabelDescriptionProps>(\r\n\t({ className, size, children, ...props }, ref) => {\r\n\t\tconst { size: labelSize } = useAvatarLabelContext();\r\n\t\tconst descriptionSize = size || labelSize;\r\n\t\tif ([\"3xs\", \"2xs\", \"xs\"].includes(descriptionSize ?? \"\")) return null;\r\n\r\n\t\treturn (\r\n\t\t\t<span\r\n\t\t\t\tref={ref}\r\n\t\t\t\tclassName={avatarLabelDescriptionStyles({\r\n\t\t\t\t\tclassName,\r\n\t\t\t\t\tsize: descriptionSize as AvatarLabelDescriptionSizeVariants\r\n\t\t\t\t})}\r\n\t\t\t\t{...props}\r\n\t\t\t>\r\n\t\t\t\t{children}\r\n\t\t\t</span>\r\n\t\t);\r\n\t}\r\n) as AvatarLabelChild<AvatarLabelDescriptionProps>;\r\n\r\nAvatarLabelDescription.displayName = \"AvatarLabelDescription\";\r\nAvatarLabelDescription.componentType = \"description\";\r\n"],"names":["React","require$$0","is","x","y","objectIs","useState","useEffect","useLayoutEffect","useDebugValue","useSyncExternalStore$2","subscribe","getSnapshot","value","_useState","inst","forceUpdate","checkIfSnapshotChanged","latestGetSnapshot","nextValue","useSyncExternalStore$1","shim","useSyncExternalStoreShim_production","didWarnOld18Alpha","didWarnUncachedGetSnapshot","cachedValue","useSyncExternalStoreShim_development","shimModule","require$$1","useIsHydrated","useSyncExternalStore","AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","jsx","Primitive","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","status","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","resolveLoadingStatus","image","referrerPolicy","crossOrigin","isHydrated","imageRef","loadingStatus","setLoadingStatus","updateStatus","handleLoad","handleError","Root","Image","Fallback","avatarStyles","tv","className","size","indicator","children","ref","styles","jsxs","AvatarPrimitive.Root","avatarFallbackStyles","AvatarPrimitive.Fallback","AvatarIcon","icon","Icon","avatarImageStyles","AvatarPrimitive.Image","AvatarLabelContext","useAvatarLabelContext","avatarLabelStyles","AvatarLabel","contextValue","sortedComponents","childrenArray","avatar","title","description","child","componentType","renderContent","avatarIndicatorStyles","SIZE_MAP","AvatarIndicator","indicatorSize","Indicator","AvatarLabelAvatar","labelSize","AvatarLabelIndicator","avatarLabelTitleStyles","AvatarLabelTitle","avatarLabelDescriptionStyles","AvatarLabelDescription","descriptionSize"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAIA,IAAQC;AACZ,WAASC,EAAGC,GAAGC,GAAG;AAChB,WAAQD,MAAMC,MAAYD,MAAN,KAAW,IAAIA,MAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;AAAA;AAExE,MAAIC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKH,GAC3DI,IAAWN,EAAM,UACjBO,IAAYP,EAAM,WAClBQ,IAAkBR,EAAM,iBACxBS,IAAgBT,EAAM;AACxB,WAASU,EAAuBC,GAAWC,GAAa;AACtD,QAAIC,IAAQD,EAAa,GACvBE,IAAYR,EAAS,EAAE,MAAM,EAAE,OAAOO,GAAO,aAAaD,EAAW,GAAI,GACzEG,IAAOD,EAAU,CAAC,EAAE,MACpBE,IAAcF,EAAU,CAAC;AAC3B,WAAAN;AAAA,MACE,WAAY;AACV,QAAAO,EAAK,QAAQF,GACbE,EAAK,cAAcH,GACnBK,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE;AAAA,MAC3D;AAAA,MACD,CAACJ,GAAWE,GAAOD,CAAW;AAAA,IAC/B,GACDL;AAAA,MACE,WAAY;AACV,eAAAU,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE,GACnDJ,EAAU,WAAY;AAC3B,UAAAM,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE;AAAA,QAClE,CAAO;AAAA,MACF;AAAA,MACD,CAACJ,CAAS;AAAA,IACX,GACDF,EAAcI,CAAK,GACZA;AAAA;AAET,WAASI,EAAuBF,GAAM;AACpC,QAAIG,IAAoBH,EAAK;AAC7B,IAA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QAEH,UAAA4C;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGH;AAEAoC,EAAuB,cAAc;AACrCA,EAAuB,gBAAgB;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"avatar.js","sources":["../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js","../../node_modules/.pnpm/@radix-ui+react-use-is-hydrated@0.1.0_@types+react@18.3.20_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs","../../node_modules/.pnpm/@radix-ui+react-avatar@1.1.11_@types+react-dom@18.3.6_@types+react@18.3.20__@types+reac_83cc3097e6f4b1aa2ef2f3c1cb15c838/node_modules/@radix-ui/react-avatar/dist/index.mjs","../../src/components/avatar/Avatar.tsx","../../src/components/avatar/avatar-fallback/AvatarFallback.tsx","../../src/components/avatar/avatar-icon/AvatarIcon.tsx","../../src/components/avatar/avatar-image/AvatarImage.tsx","../../src/components/avatar/avatar-label/AvatarLabelContext.tsx","../../src/components/avatar/avatar-label/AvatarLabel.tsx","../../src/components/avatar/avatar-indicator/AvatarIndicator.tsx","../../src/components/avatar/avatar-label/components/avatar-label-avatar/AvatarLabelAvatar.tsx","../../src/components/avatar/avatar-label/components/avatar-label-indicator/AvatarLabelIndicator.tsx","../../src/components/avatar/avatar-label/components/avatar-label-title/AvatarLabelTitle.tsx","../../src/components/avatar/avatar-label/components/avatar-label-description/AvatarLabelDescription.tsx"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","// src/use-is-hydrated.tsx\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nfunction useIsHydrated() {\n return useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\nfunction subscribe() {\n return () => {\n };\n}\nexport {\n useIsHydrated\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useIsHydrated } from \"@radix-ui/react-use-is-hydrated\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src, imageProps);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction resolveLoadingStatus(image, src) {\n if (!image) {\n return \"idle\";\n }\n if (!src) {\n return \"error\";\n }\n if (image.src !== src) {\n image.src = src;\n }\n return image.complete && image.naturalWidth > 0 ? \"loaded\" : \"loading\";\n}\nfunction useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {\n const isHydrated = useIsHydrated();\n const imageRef = React.useRef(null);\n const image = (() => {\n if (!isHydrated) return null;\n if (!imageRef.current) {\n imageRef.current = new window.Image();\n }\n return imageRef.current;\n })();\n const [loadingStatus, setLoadingStatus] = React.useState(\n () => resolveLoadingStatus(image, src)\n );\n useLayoutEffect(() => {\n setLoadingStatus(resolveLoadingStatus(image, src));\n }, [image, src]);\n useLayoutEffect(() => {\n const updateStatus = (status) => () => {\n setLoadingStatus(status);\n };\n if (!image) return;\n const handleLoad = updateStatus(\"loaded\");\n const handleError = updateStatus(\"error\");\n image.addEventListener(\"load\", handleLoad);\n image.addEventListener(\"error\", handleError);\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n if (typeof crossOrigin === \"string\") {\n image.crossOrigin = crossOrigin;\n }\n return () => {\n image.removeEventListener(\"load\", handleLoad);\n image.removeEventListener(\"error\", handleError);\n };\n }, [image, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport { tv } from \"tailwind-variants\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface AvatarVariants {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\";\n\tindicator?: React.ReactNode;\n}\n\nconst avatarStyles = tv({\n\tbase: \"relative box-border flex shrink-0 rounded-full\",\n\tslots: {\n\t\twrapper: \"h-full w-full overflow-hidden rounded-full\"\n\t},\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"h-4 w-4 text-2xs [&_svg]:h-2.5 [&_svg]:w-2.5\",\n\t\t\t\"2xs\": \"h-5 w-5 text-[0.625rem] [&_svg]:h-3 [&_svg]:w-3\",\n\t\t\txs: \"h-6 w-6 text-xs [&_svg]:h-3.5 [&_svg]:w-3.5\",\n\t\t\tsm: \"h-7 w-7 text-xs [&_svg]:h-3.5 [&_svg]:w-3.5\",\n\t\t\tmd: \"h-8 w-8 text-sm [&_svg]:h-4 [&_svg]:w-4\",\n\t\t\tlg: \"h-10 w-10 text-base [&_svg]:h-5 [&_svg]:w-5\",\n\t\t\txl: \"h-12 w-12 text-lg [&_svg]:h-6 [&_svg]:w-6\",\n\t\t\t\"2xl\": \"h-14 w-14 text-xl [&_svg]:h-7 [&_svg]:w-7\",\n\t\t\t\"3xl\": \"h-16 w-16 text-2xl [&_svg]:h-8 [&_svg]:w-8\"\n\t\t}\n\t} satisfies Omit<VariantsConfig<AvatarVariants>, \"indicator\">,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & AvatarVariants;\n\nexport const Avatar = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Root>, AvatarProps>(\n\t({ className, size, indicator, children, ...props }, ref) => {\n\t\tconst styles = avatarStyles();\n\n\t\treturn (\n\t\t\t<AvatarPrimitive.Root ref={ref} className={styles.base({ className, size })} {...props}>\n\t\t\t\t<div className={styles.wrapper()}>{children}</div>\n\t\t\t\t{indicator}\n\t\t\t</AvatarPrimitive.Root>\n\t\t);\n\t}\n);\n\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const avatarFallbackStyles = tv({\n\tbase: \"flex h-full w-full items-center justify-center rounded-full bg-secondary-bg-hover text-secondary-fg\"\n});\n\nexport type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;\n\nexport const AvatarFallback = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Fallback>, AvatarFallbackProps>(\n\t({ className, ...props }, ref) => (\n\t\t<AvatarPrimitive.Fallback ref={ref} className={avatarFallbackStyles({ className })} {...props} />\n\t)\n);\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { AvatarFallbackProps, avatarFallbackStyles } from \"../avatar-fallback/AvatarFallback\";\nimport { Icon } from \"@/components/icon\";\nimport { LucideIcon } from \"lucide-react\";\n\ntype AvatarIcon = Omit<AvatarFallbackProps, \"children\"> & {\n\ticon: LucideIcon;\n};\n\nexport const AvatarIcon = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Fallback>, AvatarIcon>(\n\t({ className, icon, ...props }, ref) => (\n\t\t<AvatarPrimitive.Fallback ref={ref} className={avatarFallbackStyles({ className })} {...props}>\n\t\t\t<Icon icon={icon} />\n\t\t</AvatarPrimitive.Fallback>\n\t)\n);\n\nAvatarIcon.displayName = \"AvatarIcon\";\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nconst avatarImageStyles = tv({\n\tbase: \"aspect-square h-full w-full rounded-full border border-secondary-border\"\n});\n\ntype AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\n\nexport const AvatarImage = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Image>, AvatarImageProps>(\n\t({ className, ...props }, ref) => (\n\t\t<AvatarPrimitive.Image ref={ref} className={avatarImageStyles({ className })} {...props} />\n\t)\n);\n\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n","import * as React from \"react\";\nimport { AvatarLabelVariants } from \"./AvatarLabel\";\n\nexport type AvatarLabelComponentType = \"avatar\" | \"indicator\" | \"title\" | \"description\";\n\n// Тип для дочернего компонента AvatarLabel\nexport type AvatarLabelChild<T = Record<string, unknown>> = (\n\t| React.ComponentType<T>\n\t| React.ForwardRefExoticComponent<T>\n) & {\n\tcomponentType: AvatarLabelComponentType;\n};\n\nexport type AvatarLabelContextValue = AvatarLabelVariants;\n\nexport const AvatarLabelContext = React.createContext<AvatarLabelContextValue | null>(null);\n\nexport const useAvatarLabelContext = () => {\n\tconst context = React.useContext(AvatarLabelContext);\n\tif (!context) {\n\t\tthrow new Error(\"useAvatarLabelContext must be used within AvatarLabelProvider\");\n\t}\n\treturn context;\n};\n","import * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { AvatarLabelContext, AvatarLabelChild } from \"./AvatarLabelContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface AvatarLabelVariants {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n}\n\nconst avatarLabelStyles = tv({\n\tslots: {\n\t\twrapper: \"flex flex-row items-center gap-2\",\n\t\tavatarWrapper: \"relative shrink-0\",\n\t\ttextWrapper: \"flex min-w-0 flex-col\",\n\t\tindicator: \"absolute bottom-0 right-0 rounded-full border-2 border-secondary-bg\"\n\t},\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\t\"2xs\": {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\txs: {\n\t\t\t\twrapper: \"gap-1.5\"\n\t\t\t},\n\t\t\tsm: {},\n\t\t\tmd: {},\n\t\t\tlg: {},\n\t\t\txl: {\n\t\t\t\twrapper: \"gap-3\"\n\t\t\t},\n\t\t\t\"2xl\": {\n\t\t\t\twrapper: \"gap-4\"\n\t\t\t}\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelProps = Omit<React.ComponentPropsWithoutRef<\"div\">, \"title\"> & AvatarLabelVariants;\n\nexport const AvatarLabel = React.forwardRef<HTMLDivElement, AvatarLabelProps>(\n\t({ className, children, size, ...props }, ref) => {\n\t\tconst contextValue = React.useMemo(() => ({ size }), [size]);\n\n\t\tconst sortedComponents = React.useMemo(() => {\n\t\t\tif (!children) return null;\n\n\t\t\tconst childrenArray = React.Children.toArray(children) as React.ReactElement[];\n\t\t\tlet avatar: React.ReactElement | null = null;\n\t\t\tlet indicator: React.ReactElement | null = null;\n\t\t\tlet title: React.ReactElement | null = null;\n\t\t\tlet description: React.ReactElement | null = null;\n\n\t\t\tchildrenArray.forEach((child) => {\n\t\t\t\tconst componentType = (child.type as AvatarLabelChild)?.componentType;\n\n\t\t\t\tif (componentType === \"avatar\") {\n\t\t\t\t\tavatar = child;\n\t\t\t\t} else if (componentType === \"indicator\") {\n\t\t\t\t\tindicator = child;\n\t\t\t\t} else if (componentType === \"title\") {\n\t\t\t\t\ttitle = child;\n\t\t\t\t} else if (componentType === \"description\") {\n\t\t\t\t\tdescription = child;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn { avatar, indicator, title, description };\n\t\t}, [children]);\n\n\t\tconst renderContent = () => {\n\t\t\tif (!children) return null;\n\t\t\tconst styles = avatarLabelStyles();\n\n\t\t\tif (!sortedComponents) {\n\t\t\t\treturn (\n\t\t\t\t\t<div ref={ref} className={styles.wrapper({ className, size })} {...props}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</div>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst { avatar, indicator, title, description } = sortedComponents;\n\n\t\t\treturn (\n\t\t\t\t<div ref={ref} className={styles.wrapper({ className, size })} {...props}>\n\t\t\t\t\t{avatar && (\n\t\t\t\t\t\t<div className={styles.avatarWrapper()}>\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t\t{indicator && <div className={styles.indicator()}>{indicator}</div>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{(title || description) && (\n\t\t\t\t\t\t<div className={styles.textWrapper()}>\n\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t{description}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t};\n\n\t\treturn <AvatarLabelContext.Provider value={contextValue}>{renderContent()}</AvatarLabelContext.Provider>;\n\t}\n);\n\nAvatarLabel.displayName = \"AvatarLabel\";\n","import React from \"react\";\nimport { Indicator } from \"@/components/indicator\";\nimport { tv } from \"tailwind-variants\";\n\ntype AvatarIndicatorProps = Omit<React.ComponentPropsWithoutRef<typeof Indicator>, \"size\"> & {\n\tsize?: \"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\";\n};\n\nconst avatarIndicatorStyles = tv({\n\tbase: \"absolute -bottom-0.5 -right-0.5 rounded-full border-2 border-secondary-bg\",\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"border\",\n\t\t\t\"2xs\": \"border\",\n\t\t\txs: \"bottom-[-3px] right-[-3px] border\",\n\t\t\tsm: \"bottom-[-3px] right-[-3px]\",\n\t\t\tmd: \"bottom-[-3px] right-[-3px]\",\n\t\t\tlg: \"\",\n\t\t\txl: \"\",\n\t\t\t\"2xl\": \"\",\n\t\t\t\"3xl\": \"\"\n\t\t}\n\t}\n});\n\nconst SIZE_MAP = {\n\t\"3xs\": \"3xs\",\n\t\"2xs\": \"2xs\",\n\txs: \"xs\",\n\tsm: \"sm\",\n\tmd: \"sm\",\n\tlg: \"md\",\n\txl: \"lg\",\n\t\"2xl\": \"xl\",\n\t\"3xl\": \"2xl\"\n} as const;\n\nexport const AvatarIndicator = React.forwardRef<React.ElementRef<typeof Indicator>, AvatarIndicatorProps>(\n\t({ children, size, ...props }, ref) => {\n\t\tconst indicatorSize = size ? SIZE_MAP[size] : size;\n\n\t\treturn (\n\t\t\t<div className={avatarIndicatorStyles({ size })}>\n\t\t\t\t<Indicator ref={ref} size={indicatorSize} rounded {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</Indicator>\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nAvatarIndicator.displayName = \"AvatarIndicator\";\n","import React from \"react\";\nimport { Avatar } from \"../../../Avatar\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\n\ntype AvatarLabelAvatarProps = React.ComponentPropsWithoutRef<typeof Avatar>;\n\nexport const AvatarLabelAvatar = React.forwardRef<React.ElementRef<typeof Avatar>, AvatarLabelAvatarProps>(\n\t({ className, children, size, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<Avatar ref={ref} className={className} size={size || labelSize} {...props}>\n\t\t\t\t{children}\n\t\t\t</Avatar>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelAvatarProps>;\n\nAvatarLabelAvatar.displayName = \"AvatarLabelAvatar\";\nAvatarLabelAvatar.componentType = \"avatar\";\n","import React from \"react\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { Indicator } from \"@/components/indicator\";\n\ntype AvatarLabelIndicatorProps = React.ComponentPropsWithoutRef<typeof Indicator>;\n\nexport const AvatarLabelIndicator = React.forwardRef<React.ElementRef<typeof Indicator>, AvatarLabelIndicatorProps>(\n\t({ children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<Indicator ref={ref} size={labelSize} {...props} rounded>\n\t\t\t\t{children}\n\t\t\t</Indicator>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelIndicatorProps>;\n\nAvatarLabelIndicator.displayName = \"AvatarLabelIndicator\";\nAvatarLabelIndicator.componentType = \"indicator\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { AvatarLabelVariants } from \"../../AvatarLabel\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nconst avatarLabelTitleStyles = tv({\n\tbase: \"font-semibold text-primary-fg\",\n\tvariants: {\n\t\tsize: {\n\t\t\t\"3xs\": \"text-xs\",\n\t\t\t\"2xs\": \"text-xs\",\n\t\t\txs: \"text-sm\",\n\t\t\tsm: \"text-sm\",\n\t\t\tmd: \"text-sm\",\n\t\t\tlg: \"text-sm\",\n\t\t\txl: \"text-base\",\n\t\t\t\"2xl\": \"text-lg\"\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelTitleProps = React.ComponentPropsWithoutRef<\"span\"> & AvatarLabelVariants;\n\nexport const AvatarLabelTitle = React.forwardRef<HTMLSpanElement, AvatarLabelTitleProps>(\n\t({ className, size, children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\n\t\treturn (\n\t\t\t<span ref={ref} className={avatarLabelTitleStyles({ className, size: size || labelSize })} {...props}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelTitleProps>;\n\nAvatarLabelTitle.displayName = \"AvatarLabelTitle\";\nAvatarLabelTitle.componentType = \"title\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useAvatarLabelContext, AvatarLabelChild } from \"../../AvatarLabelContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\nimport { AvatarLabelVariants } from \"../../AvatarLabel\";\n\nconst avatarLabelDescriptionStyles = tv({\n\tbase: \"text-muted\",\n\tvariants: {\n\t\tsize: {\n\t\t\tsm: \"text-xs leading-none\",\n\t\t\tmd: \"text-xs\",\n\t\t\tlg: \"text-sm\",\n\t\t\txl: \"text-base\",\n\t\t\t\"2xl\": \"text-base\"\n\t\t}\n\t} satisfies VariantsConfig<AvatarLabelDescriptionVariants>,\n\tdefaultVariants: {\n\t\tsize: \"md\"\n\t}\n});\n\ntype AvatarLabelDescriptionSizeVariants = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype AvatarLabelDescriptionVariants = Omit<AvatarLabelVariants, \"size\"> & { size?: AvatarLabelDescriptionSizeVariants };\n\nexport type AvatarLabelDescriptionProps = React.ComponentPropsWithoutRef<\"span\"> & AvatarLabelDescriptionVariants;\n\nexport const AvatarLabelDescription = React.forwardRef<HTMLSpanElement, AvatarLabelDescriptionProps>(\n\t({ className, size, children, ...props }, ref) => {\n\t\tconst { size: labelSize } = useAvatarLabelContext();\n\t\tconst descriptionSize = size || labelSize;\n\t\tif ([\"3xs\", \"2xs\", \"xs\"].includes(descriptionSize ?? \"\")) return null;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\tref={ref}\n\t\t\t\tclassName={avatarLabelDescriptionStyles({\n\t\t\t\t\tclassName,\n\t\t\t\t\tsize: descriptionSize as AvatarLabelDescriptionSizeVariants\n\t\t\t\t})}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t}\n) as AvatarLabelChild<AvatarLabelDescriptionProps>;\n\nAvatarLabelDescription.displayName = \"AvatarLabelDescription\";\nAvatarLabelDescription.componentType = \"description\";\n"],"names":["React","require$$0","is","x","y","objectIs","useState","useEffect","useLayoutEffect","useDebugValue","useSyncExternalStore$2","subscribe","getSnapshot","value","_useState","inst","forceUpdate","checkIfSnapshotChanged","latestGetSnapshot","nextValue","useSyncExternalStore$1","shim","useSyncExternalStoreShim_production","didWarnOld18Alpha","didWarnUncachedGetSnapshot","cachedValue","useSyncExternalStoreShim_development","shimModule","require$$1","useIsHydrated","useSyncExternalStore","AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","jsx","Primitive","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","status","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","resolveLoadingStatus","image","referrerPolicy","crossOrigin","isHydrated","imageRef","loadingStatus","setLoadingStatus","updateStatus","handleLoad","handleError","Root","Image","Fallback","avatarStyles","tv","className","size","indicator","children","ref","styles","jsxs","AvatarPrimitive.Root","avatarFallbackStyles","AvatarPrimitive.Fallback","AvatarIcon","icon","Icon","avatarImageStyles","AvatarPrimitive.Image","AvatarLabelContext","useAvatarLabelContext","avatarLabelStyles","AvatarLabel","contextValue","sortedComponents","childrenArray","avatar","title","description","child","componentType","renderContent","avatarIndicatorStyles","SIZE_MAP","AvatarIndicator","indicatorSize","Indicator","AvatarLabelAvatar","labelSize","AvatarLabelIndicator","avatarLabelTitleStyles","AvatarLabelTitle","avatarLabelDescriptionStyles","AvatarLabelDescription","descriptionSize"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAIA,IAAQC;AACZ,WAASC,EAAGC,GAAGC,GAAG;AAChB,WAAQD,MAAMC,MAAYD,MAAN,KAAW,IAAIA,MAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;AAAA;AAExE,MAAIC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKH,GAC3DI,IAAWN,EAAM,UACjBO,IAAYP,EAAM,WAClBQ,IAAkBR,EAAM,iBACxBS,IAAgBT,EAAM;AACxB,WAASU,EAAuBC,GAAWC,GAAa;AACtD,QAAIC,IAAQD,EAAa,GACvBE,IAAYR,EAAS,EAAE,MAAM,EAAE,OAAOO,GAAO,aAAaD,EAAW,GAAI,GACzEG,IAAOD,EAAU,CAAC,EAAE,MACpBE,IAAcF,EAAU,CAAC;AAC3B,WAAAN;AAAA,MACE,WAAY;AACV,QAAAO,EAAK,QAAQF,GACbE,EAAK,cAAcH,GACnBK,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE;AAAA,MAC3D;AAAA,MACD,CAACJ,GAAWE,GAAOD,CAAW;AAAA,IAC/B,GACDL;AAAA,MACE,WAAY;AACV,eAAAU,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE,GACnDJ,EAAU,WAAY;AAC3B,UAAAM,EAAuBF,CAAI,KAAKC,EAAY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AmB,EAAE,IAAU,OAGhE,gBAAA3E;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,KAAAuC;AAAA,QACA,WAAWkC,GAA6B;AAAA,UACvC,WAAAtC;AAAA,UACA,MAAMwC;AAAA,QAAA,CACN;AAAA,QACA,GAAGjF;AAAA,QAEH,UAAA4C;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGH;AAEAoC,EAAuB,cAAc;AACrCA,EAAuB,gBAAgB;","x_google_ignoreList":[0,1,2,3,4]}
@@ -1 +1 @@
1
- {"version":3,"file":"background-pattern.js","sources":["../../src/components/background-pattern/patterns.ts","../../src/components/background-pattern/BackgroundPattern.tsx"],"sourcesContent":["/**\r\n * Тайлы фоновых паттернов.\r\n *\r\n * Источник рисунков — https://heropatterns.com/ (CC BY 4.0). Оригинал раздаётся как\r\n * CSS `background-image` с data-URI, где цвет и прозрачность зашиты в саму строку.\r\n * Здесь пути вынесены в разметку, чтобы красить их через `currentColor` — то есть\r\n * дизайн-токенами кита, а не хардкодом.\r\n *\r\n * Пути приведены к системе координат тайла `0 0 width height`; часть фигур намеренно\r\n * выходит за его границы — так рисунок стыкуется при замощении.\r\n */\r\nexport type BackgroundPatternName = \"circuitBoard\" | \"squares\" | \"food\";\r\n\r\nexport interface BackgroundPatternTile {\r\n\t/** Ширина тайла в исходных координатах */\r\n\twidth: number;\r\n\t/** Высота тайла в исходных координатах */\r\n\theight: number;\r\n\t/** Контуры тайла. Заливка не задаётся — приходит из currentColor */\r\n\tpaths: string[];\r\n}\r\n\r\nexport const BACKGROUND_PATTERNS: Record<BackgroundPatternName, BackgroundPatternTile> = {\r\n\t/** Circuit Board — тайл 88×88 */\r\n\tcircuitBoard: {\r\n\t\twidth: 88,\r\n\t\theight: 88,\r\n\t\tpaths: [\r\n\t\t\t\"M29.42 29.41c.36-.36.58-.85.58-1.4V0h-4v26H0v4h28c.55 0 1.05-.22 1.41-.58h.01zm0 29.18c.36.36.58.86.58 1.4V88h-4V62H0v-4h28c.56 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c0-1.1.9-2 2-2h8a2 2 0 1 1 0 4h-8a2 2 0 0 1-2-2zm6 66a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM8 86a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0-68A6 6 0 1 1 8 2a6 6 0 0 1 0 12zm0-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm36 36a2 2 0 1 0 0-4 2 2 0 0 0 0 4z\"\r\n\t\t]\r\n\t},\r\n\t/** Squares — тайл 32×64 */\r\n\tsquares: {\r\n\t\twidth: 32,\r\n\t\theight: 64,\r\n\t\tpaths: [\r\n\t\t\t\"M0 28h20V16h-4v8H4V4h28v28h-4V8H8v12h4v-8h12v20H0v-4zm12 8h20v4H16v24H0v-4h12V36zm16 12h-4v12h8v4H20V44h12v12h-4v-8zM0 36h8v20H0v-4h4V40H0v-4z\"\r\n\t\t]\r\n\t},\r\n\t/** I Like Food — тайл 260×260 */\r\n\tfood: {\r\n\t\twidth: 260,\r\n\t\theight: 260,\r\n\t\tpaths: [\r\n\t\t\t\"M24.37 16c.2.65.39 1.32.54 2H21.17l1.17 2.34.45.9-.24.11V28a5 5 0 0 1-2.23 8.94l-.02.06a8 8 0 0 1-7.75 6h-20a8 8 0 0 1-7.74-6l-.02-.06A5 5 0 0 1-17.45 28v-6.76l-.79-1.58-.44-.9.9-.44.63-.32H-20a23.01 23.01 0 0 1 44.37-2zm-36.82 2a1 1 0 0 0-.44.1l-3.1 1.56.89 1.79 1.31-.66a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .86.02l2.88-1.27a3 3 0 0 1 2.43 0l2.88 1.27a1 1 0 0 0 .85-.02l3.1-1.55-.89-1.79-1.42.71a3 3 0 0 1-2.56.06l-2.77-1.23a1 1 0 0 0-.4-.09h-.01a1 1 0 0 0-.4.09l-2.78 1.23a3 3 0 0 1-2.56-.06l-2.3-1.15a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1L.9 19.22a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01zm0-2h-4.9a21.01 21.01 0 0 1 39.61 0h-2.09l-.06-.13-.26.13h-32.31zm30.35 7.68l1.36-.68h1.3v2h-36v-1.15l.34-.17 1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0L2.26 23h2.59l1.36.68a3 3 0 0 0 2.56.06l1.67-.74h3.23l1.67.74a3 3 0 0 0 2.56-.06zM-13.82 27l16.37 4.91L18.93 27h-32.75zm-.63 2h.34l16.66 5 16.67-5h.33a3 3 0 1 1 0 6h-34a3 3 0 1 1 0-6zm1.35 8a6 6 0 0 0 5.65 4h20a6 6 0 0 0 5.66-4H-13.1z\",\r\n\t\t\t\"M284.37 16c.2.65.39 1.32.54 2H281.17l1.17 2.34.45.9-.24.11V28a5 5 0 0 1-2.23 8.94l-.02.06a8 8 0 0 1-7.75 6h-20a8 8 0 0 1-7.74-6l-.02-.06a5 5 0 0 1-2.24-8.94v-6.76l-.79-1.58-.44-.9.9-.44.63-.32H240a23.01 23.01 0 0 1 44.37-2zm-36.82 2a1 1 0 0 0-.44.1l-3.1 1.56.89 1.79 1.31-.66a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .86.02l2.88-1.27a3 3 0 0 1 2.43 0l2.88 1.27a1 1 0 0 0 .85-.02l3.1-1.55-.89-1.79-1.42.71a3 3 0 0 1-2.56.06l-2.77-1.23a1 1 0 0 0-.4-.09h-.01a1 1 0 0 0-.4.09l-2.78 1.23a3 3 0 0 1-2.56-.06l-2.3-1.15a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01zm0-2h-4.9a21.01 21.01 0 0 1 39.61 0h-2.09l-.06-.13-.26.13h-32.31zm30.35 7.68l1.36-.68h1.3v2h-36v-1.15l.34-.17 1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.56.06l1.67-.74h3.23l1.67.74a3 3 0 0 0 2.56-.06zM246.18 27l16.37 4.91L278.93 27h-32.75zm-.63 2h.34l16.66 5 16.67-5h.33a3 3 0 1 1 0 6h-34a3 3 0 1 1 0-6zm1.35 8a6 6 0 0 0 5.65 4h20a6 6 0 0 0 5.66-4H246.9z\",\r\n\t\t\t\"M159.5 21.02A9 9 0 0 0 151 15h-42a9 9 0 0 0-8.5 6.02 6 6 0 0 0 .02 11.96A8.99 8.99 0 0 0 109 45h42a9 9 0 0 0 8.48-12.02 6 6 0 0 0 .02-11.96zM151 17h-42a7 7 0 0 0-6.33 4h54.66a7 7 0 0 0-6.33-4zm-9.34 26a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-4.34a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-4.34a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-7a7 7 0 1 1 0-14h42a7 7 0 1 1 0 14h-9.34zM109 27a9 9 0 0 0-7.48 4H101a4 4 0 1 1 0-8h58a4 4 0 0 1 0 8h-.52a9 9 0 0 0-7.48-4h-42z\",\r\n\t\t\t\"M39 115a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm6-8a6 6 0 1 1-12 0 6 6 0 0 1 12 0zm-3-29v-2h8v-6H40a4 4 0 0 0-4 4v10H22l-1.33 4-.67 2h2.19L26 130h26l3.81-40H58l-.67-2L56 84H42v-6zm-4-4v10h2V74h8v-2h-8a2 2 0 0 0-2 2zm2 12h14.56l.67 2H22.77l.67-2H40zm13.8 4H24.2l3.62 38h22.36l3.62-38z\",\r\n\t\t\t\"M129 92h-6v4h-6v4h-6v14h-3l.24 2 3.76 32h36l3.76-32 .24-2h-3v-14h-6v-4h-6v-4h-8zm18 22v-12h-4v4h3v8h1zm-3 0v-6h-4v6h4zm-6 6v-16h-4v19.17c1.6-.7 2.97-1.8 4-3.17zm-6 3.8V100h-4v23.8a10.04 10.04 0 0 0 4 0zm-6-.63V104h-4v16a10.04 10.04 0 0 0 4 3.17zm-6-9.17v-6h-4v6h4zm-6 0v-8h3v-4h-4v12h1zm27-12v-4h-4v4h3v4h1v-4zm-6 0v-8h-4v4h3v4h1zm-6-4v-4h-4v8h1v-4h3zm-6 4v-4h-4v8h1v-4h3zm7 24a12 12 0 0 0 11.83-10h7.92l-3.53 30h-32.44l-3.53-30h7.92A12 12 0 0 0 130 126z\",\r\n\t\t\t\"M212 86v2h-4v-2h4zm4 0h-2v2h2v-2zm-20 0v.1a5 5 0 0 0-.56 9.65l.06.25 1.12 4.48a2 2 0 0 0 1.94 1.52h.01l7.02 24.55a2 2 0 0 0 1.92 1.45h4.98a2 2 0 0 0 1.92-1.45l7.02-24.55a2 2 0 0 0 1.95-1.52L224.5 96l.06-.25a5 5 0 0 0-.56-9.65V86a14 14 0 0 0-28 0zm4 0h6v2h-9a3 3 0 1 0 0 6H223a3 3 0 1 0 0-6H220v-2h2a12 12 0 1 0-24 0h2zm-1.44 14l-1-4h24.88l-1 4h-22.88zm8.95 26l-6.86-24h18.7l-6.86 24h-4.98zM150 242a22 22 0 1 0 0-44 22 22 0 0 0 0 44zm24-22a24 24 0 1 1-48 0 24 24 0 0 1 48 0zm-28.38 17.73l2.04-.87a6 6 0 0 1 4.68 0l2.04.87a2 2 0 0 0 2.5-.82l1.14-1.9a6 6 0 0 1 3.79-2.75l2.15-.5a2 2 0 0 0 1.54-2.12l-.19-2.2a6 6 0 0 1 1.45-4.46l1.45-1.67a2 2 0 0 0 0-2.62l-1.45-1.67a6 6 0 0 1-1.45-4.46l.2-2.2a2 2 0 0 0-1.55-2.13l-2.15-.5a6 6 0 0 1-3.8-2.75l-1.13-1.9a2 2 0 0 0-2.5-.8l-2.04.86a6 6 0 0 1-4.68 0l-2.04-.87a2 2 0 0 0-2.5.82l-1.14 1.9a6 6 0 0 1-3.79 2.75l-2.15.5a2 2 0 0 0-1.54 2.12l.19 2.2a6 6 0 0 1-1.45 4.46l-1.45 1.67a2 2 0 0 0 0 2.62l1.45 1.67a6 6 0 0 1 1.45 4.46l-.2 2.2a2 2 0 0 0 1.55 2.13l2.15.5a6 6 0 0 1 3.8 2.75l1.13 1.9a2 2 0 0 0 2.5.8zm2.82.97a4 4 0 0 1 3.12 0l2.04.87a4 4 0 0 0 4.99-1.62l1.14-1.9a4 4 0 0 1 2.53-1.84l2.15-.5a4 4 0 0 0 3.09-4.24l-.2-2.2a4 4 0 0 1 .97-2.98l1.45-1.67a4 4 0 0 0 0-5.24l-1.45-1.67a4 4 0 0 1-.97-2.97l.2-2.2a4 4 0 0 0-3.09-4.25l-2.15-.5a4 4 0 0 1-2.53-1.84l-1.14-1.9a4 4 0 0 0-5-1.62l-2.03.87a4 4 0 0 1-3.12 0l-2.04-.87a4 4 0 0 0-4.99 1.62l-1.14 1.9a4 4 0 0 1-2.53 1.84l-2.15.5a4 4 0 0 0-3.09 4.24l.2 2.2a4 4 0 0 1-.97 2.98l-1.45 1.67a4 4 0 0 0 0 5.24l1.45 1.67a4 4 0 0 1 .97 2.97l-.2 2.2a4 4 0 0 0 3.09 4.25l2.15.5a4 4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-2zm-11-14a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-19 0a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm6 5a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-25 15c0-.47.01-.94.03-1.4a5 5 0 0 1-1.7-8 3.99 3.99 0 0 1 1.88-5.18 5 5 0 0 1 3.4-6.22 3 3 0 0 1 1.46-1.05 5 5 0 0 1 7.76-3.27A30.86 30.86 0 0 1 246 184c6.79 0 13.06 2.18 18.17 5.88a5 5 0 0 1 7.76 3.27 3 3 0 0 1 1.47 1.05 5 5 0 0 1 3.4 6.22 4 4 0 0 1 1.87 5.18 4.98 4.98 0 0 1-1.7 8c.02.46.03.93.03 1.4v1h-62v-1zm.83-7.17a30.9 30.9 0 0 0-.62 3.57 3 3 0 0 1-.61-4.2c.37.28.78.49 1.23.63zm1.49-4.61c-.36.87-.68 1.76-.96 2.68a2 2 0 0 1-.21-3.71c.33.4.73.75 1.17 1.03zm2.32-4.54c-.54.86-1.03 1.76-1.49 2.68a3 3 0 0 1-.07-4.67 3 3 0 0 0 1.56 1.99zm1.14-1.7c.35-.5.72-.98 1.1-1.46a1 1 0 1 0-1.1 1.45zm5.34-5.77c-1.03.86-2 1.79-2.9 2.77a3 3 0 0 0-1.11-.77 3 3 0 0 1 4-2zm42.66 2.77c-.9-.98-1.87-1.9-2.9-2.77a3 3 0 0 1 4.01 2 3 3 0 0 0-1.1.77zm1.34 1.54c.38.48.75.96 1.1 1.45a1 1 0 1 0-1.1-1.45zm3.73 5.84c-.46-.92-.95-1.82-1.5-2.68a3 3 0 0 0 1.57-1.99 3 3 0 0 1-.07 4.67zm1.8 4.53c-.29-.9-.6-1.8-.97-2.67.44-.28.84-.63 1.17-1.03a2 2 0 0 1-.2 3.7zm1.14 5.51c-.14-1.21-.35-2.4-.62-3.57.45-.14.86-.35 1.23-.63a2.99 2.99 0 0 1-.6 4.2zM275 214a29 29 0 0 0-57.97 0h57.96zM72.33 198.12c-.21-.32-.34-.7-.34-1.12v-12h-2v12a4.01 4.01 0 0 0 7.09 2.54c.57-.69.91-1.57.91-2.54v-12h-2v12a1.99 1.99 0 0 1-2 2 2 2 0 0 1-1.66-.88zM75 176c.38 0 .74-.04 1.1-.12a4 4 0 0 0 6.19 2.4A13.94 13.94 0 0 1 84 185v24a6 6 0 0 1-6 6h-3v9a5 5 0 1 1-10 0v-9h-3a6 6 0 0 1-6-6v-24a14 14 0 0 1 14-14 5 5 0 0 0 5 5zm-17 15v12a1.99 1.99 0 0 0 1.22 1.84 2 2 0 0 0 2.44-.72c.21-.32.34-.7.34-1.12v-12h2v12a3.98 3.98 0 0 1-5.35 3.77 3.98 3.98 0 0 1-.65-.3V209a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4v-24c.01-1.53-.23-2.88-.72-4.17-.43.1-.87.16-1.28.17a6 6 0 0 1-5.2-3 7 7 0 0 1-6.47-4.88A12 12 0 0 0 58 185v6zm9 24v9a3 3 0 1 0 6 0v-9h-6z\",\r\n\t\t\t\"M-17 191a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm19 9a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1zm-14 5a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm-25 1a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm5 4a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm9 0a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm15 1a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm12-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2H4zm-11-14a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-19 0a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm6 5a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-25 15c0-.47.01-.94.03-1.4a5 5 0 0 1-1.7-8 3.99 3.99 0 0 1 1.88-5.18 5 5 0 0 1 3.4-6.22 3 3 0 0 1 1.46-1.05 5 5 0 0 1 7.76-3.27A30.86 30.86 0 0 1-14 184c6.79 0 13.06 2.18 18.17 5.88a5 5 0 0 1 7.76 3.27 3 3 0 0 1 1.47 1.05 5 5 0 0 1 3.4 6.22 4 4 0 0 1 1.87 5.18 4.98 4.98 0 0 1-1.7 8c.02.46.03.93.03 1.4v1h-62v-1zm.83-7.17a30.9 30.9 0 0 0-.62 3.57 3 3 0 0 1-.61-4.2c.37.28.78.49 1.23.63zm1.49-4.61c-.36.87-.68 1.76-.96 2.68a2 2 0 0 1-.21-3.71c.33.4.73.75 1.17 1.03zm2.32-4.54c-.54.86-1.03 1.76-1.49 2.68a3 3 0 0 1-.07-4.67 3 3 0 0 0 1.56 1.99zm1.14-1.7c.35-.5.72-.98 1.1-1.46a1 1 0 1 0-1.1 1.45zm5.34-5.77c-1.03.86-2 1.79-2.9 2.77a3 3 0 0 0-1.11-.77 3 3 0 0 1 4-2zm42.66 2.77c-.9-.98-1.87-1.9-2.9-2.77a3 3 0 0 1 4.01 2 3 3 0 0 0-1.1.77zm1.34 1.54c.38.48.75.96 1.1 1.45a1 1 0 1 0-1.1-1.45zm3.73 5.84c-.46-.92-.95-1.82-1.5-2.68a3 3 0 0 0 1.57-1.99 3 3 0 0 1-.07 4.67zm1.8 4.53c-.29-.9-.6-1.8-.97-2.67.44-.28.84-.63 1.17-1.03a2 2 0 0 1-.2 3.7zm1.14 5.51c-.14-1.21-.35-2.4-.62-3.57.45-.14.86-.35 1.23-.63a2.99 2.99 0 0 1-.6 4.2zM15 214a29 29 0 0 0-57.97 0h57.96z\"\r\n\t\t]\r\n\t}\r\n};\r\n","import { cn } from \"@/lib/utils\";\r\nimport * as React from \"react\";\r\nimport { BACKGROUND_PATTERNS, type BackgroundPatternName } from \"./patterns\";\r\n\r\nexport interface BackgroundPatternProps extends React.SVGProps<SVGSVGElement> {\r\n\t/**\r\n\t * Рисунок тайла.\r\n\t * @default \"circuitBoard\"\r\n\t */\r\n\tpattern?: BackgroundPatternName;\r\n\t/**\r\n\t * Масштаб тайла: 1 — исходный размер рисунка, 0.5 — вдвое мельче, 2 — вдвое крупнее.\r\n\t * @default 1\r\n\t */\r\n\tscale?: number;\r\n\t/**\r\n\t * Прозрачность рисунка, 0–1. Влияет только на контуры — подложка (`bg-*`) остаётся непрозрачной.\r\n\t *\r\n\t * Нужен отдельным пропом, потому что цветовые токены кита объявлены как `hsl(var(--token))`\r\n\t * без плейсхолдера `<alpha-value>`, и tailwind-модификатор альфы (`text-primary-fg/10`)\r\n\t * с ними молча не работает.\r\n\t * @default 0.4\r\n\t */\r\n\tpatternOpacity?: number;\r\n}\r\n\r\n/**\r\n * Слой с повторяющимся фоновым рисунком.\r\n *\r\n * Оба цвета задаются классами на самом компоненте: рисунок берётся из `currentColor`\r\n * (то есть из `text-*`), подложка — из `bg-*`. Благодаря этому фон описывается\r\n * дизайн-токенами, а не захардкоженными значениями. Прозрачность рисунка — проп\r\n * `patternOpacity` (модификатор альфы у токенов кита не работает, см. описание пропа).\r\n *\r\n * Слой позиционируется абсолютно, поэтому контейнеру нужен `relative`\r\n * (и `overflow-hidden`, если у контейнера скруглены углы).\r\n *\r\n * @example\r\n * ```tsx\r\n * <div className=\"relative overflow-hidden rounded-xl\">\r\n * <BackgroundPattern pattern=\"circuitBoard\" className=\"bg-secondary-bg text-primary-fg\" patternOpacity={0.1} />\r\n * <div className=\"relative p-6\">Контент поверх фона</div>\r\n * </div>\r\n * ```\r\n */\r\nexport const BackgroundPattern = React.forwardRef<SVGSVGElement, BackgroundPatternProps>(\r\n\t({ pattern = \"circuitBoard\", scale = 1, patternOpacity = 0.4, className, ...props }, ref) => {\r\n\t\t// В id из useId есть двоеточия — в ссылке url(#id) они нежелательны, убираем\r\n\t\tconst patternId = `background-pattern-${React.useId().replace(/:/g, \"\")}`;\r\n\t\tconst tile = BACKGROUND_PATTERNS[pattern];\r\n\r\n\t\treturn (\r\n\t\t\t<svg\r\n\t\t\t\tref={ref}\r\n\t\t\t\taria-hidden=\"true\"\r\n\t\t\t\tfocusable=\"false\"\r\n\t\t\t\tdata-slot=\"background-pattern\"\r\n\t\t\t\tclassName={cn(\"pointer-events-none absolute inset-0 h-full w-full\", className)}\r\n\t\t\t\t{...props}\r\n\t\t\t>\r\n\t\t\t\t<defs>\r\n\t\t\t\t\t<pattern\r\n\t\t\t\t\t\tid={patternId}\r\n\t\t\t\t\t\tpatternUnits=\"userSpaceOnUse\"\r\n\t\t\t\t\t\twidth={tile.width * scale}\r\n\t\t\t\t\t\theight={tile.height * scale}\r\n\t\t\t\t\t\tviewBox={`0 0 ${tile.width} ${tile.height}`}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<g fill=\"currentColor\" fillOpacity={patternOpacity} fillRule=\"evenodd\">\r\n\t\t\t\t\t\t\t{tile.paths.map((d, index) => (\r\n\t\t\t\t\t\t\t\t<path key={index} d={d} />\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t</g>\r\n\t\t\t\t\t</pattern>\r\n\t\t\t\t</defs>\r\n\t\t\t\t<rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\r\n\t\t\t</svg>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nBackgroundPattern.displayName = \"BackgroundPattern\";\r\n"],"names":["BACKGROUND_PATTERNS","BackgroundPattern","React","pattern","scale","patternOpacity","className","props","ref","patternId","tile","jsxs","cn","jsx","d","index"],"mappings":";;;AAsBO,MAAMA,IAA4E;AAAA;AAAA,EAExF,cAAc;AAAA,IACb,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,MACN;AAAA,IAAA;AAAA,EAEF;AAAA;AAAA,EAEA,SAAS;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,M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AA;AAGH;AAEAR,EAAkB,cAAc;"}
1
+ {"version":3,"file":"background-pattern.js","sources":["../../src/components/background-pattern/patterns.ts","../../src/components/background-pattern/BackgroundPattern.tsx"],"sourcesContent":["/**\n * Тайлы фоновых паттернов.\n *\n * Источник рисунков — https://heropatterns.com/ (CC BY 4.0). Оригинал раздаётся как\n * CSS `background-image` с data-URI, где цвет и прозрачность зашиты в саму строку.\n * Здесь пути вынесены в разметку, чтобы красить их через `currentColor` — то есть\n * дизайн-токенами кита, а не хардкодом.\n *\n * Пути приведены к системе координат тайла `0 0 width height`; часть фигур намеренно\n * выходит за его границы — так рисунок стыкуется при замощении.\n */\nexport type BackgroundPatternName = \"circuitBoard\" | \"squares\" | \"food\";\n\nexport interface BackgroundPatternTile {\n\t/** Ширина тайла в исходных координатах */\n\twidth: number;\n\t/** Высота тайла в исходных координатах */\n\theight: number;\n\t/** Контуры тайла. Заливка не задаётся — приходит из currentColor */\n\tpaths: string[];\n}\n\nexport const BACKGROUND_PATTERNS: Record<BackgroundPatternName, BackgroundPatternTile> = {\n\t/** Circuit Board — тайл 88×88 */\n\tcircuitBoard: {\n\t\twidth: 88,\n\t\theight: 88,\n\t\tpaths: [\n\t\t\t\"M29.42 29.41c.36-.36.58-.85.58-1.4V0h-4v26H0v4h28c.55 0 1.05-.22 1.41-.58h.01zm0 29.18c.36.36.58.86.58 1.4V88h-4V62H0v-4h28c.56 0 1.05.22 1.41.58zm29.16 0c-.36.36-.58.85-.58 1.4V88h4V62h26v-4H60c-.55 0-1.05.22-1.41.58h-.01zM62 26V0h-4v28c0 .55.22 1.05.58 1.41.37.37.86.59 1.41.59H88v-4H62zM18 36c0-1.1.9-2 2-2h10a2 2 0 1 1 0 4H20a2 2 0 0 1-2-2zm0 16c0-1.1.9-2 2-2h10a2 2 0 1 1 0 4H20a2 2 0 0 1-2-2zm16-26a2 2 0 0 1 2-2 2 2 0 0 1 2 2v4a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-4zm16 0a2 2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squares — тайл 32×64 */\n\tsquares: {\n\t\twidth: 32,\n\t\theight: 64,\n\t\tpaths: [\n\t\t\t\"M0 28h20V16h-4v8H4V4h28v28h-4V8H8v12h4v-8h12v20H0v-4zm12 8h20v4H16v24H0v-4h12V36zm16 12h-4v12h8v4H20V44h12v12h-4v-8zM0 36h8v20H0v-4h4V40H0v-4z\"\n\t\t]\n\t},\n\t/** I Like Food — тайл 260×260 */\n\tfood: {\n\t\twidth: 260,\n\t\theight: 260,\n\t\tpaths: [\n\t\t\t\"M24.37 16c.2.65.39 1.32.54 2H21.17l1.17 2.34.45.9-.24.11V28a5 5 0 0 1-2.23 8.94l-.02.06a8 8 0 0 1-7.75 6h-20a8 8 0 0 1-7.74-6l-.02-.06A5 5 0 0 1-17.45 28v-6.76l-.79-1.58-.44-.9.9-.44.63-.32H-20a23.01 23.01 0 0 1 44.37-2zm-36.82 2a1 1 0 0 0-.44.1l-3.1 1.56.89 1.79 1.31-.66a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .86.02l2.88-1.27a3 3 0 0 1 2.43 0l2.88 1.27a1 1 0 0 0 .85-.02l3.1-1.55-.89-1.79-1.42.71a3 3 0 0 1-2.56.06l-2.77-1.23a1 1 0 0 0-.4-.09h-.01a1 1 0 0 0-.4.09l-2.78 1.23a3 3 0 0 1-2.56-.06l-2.3-1.15a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1L.9 19.22a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01zm0-2h-4.9a21.01 21.01 0 0 1 39.61 0h-2.09l-.06-.13-.26.13h-32.31zm30.35 7.68l1.36-.68h1.3v2h-36v-1.15l.34-.17 1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0L2.26 23h2.59l1.36.68a3 3 0 0 0 2.56.06l1.67-.74h3.23l1.67.74a3 3 0 0 0 2.56-.06zM-13.82 27l16.37 4.91L18.93 27h-32.75zm-.63 2h.34l16.66 5 16.67-5h.33a3 3 0 1 1 0 6h-34a3 3 0 1 1 0-6zm1.35 8a6 6 0 0 0 5.65 4h20a6 6 0 0 0 5.66-4H-13.1z\",\n\t\t\t\"M284.37 16c.2.65.39 1.32.54 2H281.17l1.17 2.34.45.9-.24.11V28a5 5 0 0 1-2.23 8.94l-.02.06a8 8 0 0 1-7.75 6h-20a8 8 0 0 1-7.74-6l-.02-.06a5 5 0 0 1-2.24-8.94v-6.76l-.79-1.58-.44-.9.9-.44.63-.32H240a23.01 23.01 0 0 1 44.37-2zm-36.82 2a1 1 0 0 0-.44.1l-3.1 1.56.89 1.79 1.31-.66a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .86.02l2.88-1.27a3 3 0 0 1 2.43 0l2.88 1.27a1 1 0 0 0 .85-.02l3.1-1.55-.89-1.79-1.42.71a3 3 0 0 1-2.56.06l-2.77-1.23a1 1 0 0 0-.4-.09h-.01a1 1 0 0 0-.4.09l-2.78 1.23a3 3 0 0 1-2.56-.06l-2.3-1.15a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01zm0-2h-4.9a21.01 21.01 0 0 1 39.61 0h-2.09l-.06-.13-.26.13h-32.31zm30.35 7.68l1.36-.68h1.3v2h-36v-1.15l.34-.17 1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.56.06l1.67-.74h3.23l1.67.74a3 3 0 0 0 2.56-.06zM246.18 27l16.37 4.91L278.93 27h-32.75zm-.63 2h.34l16.66 5 16.67-5h.33a3 3 0 1 1 0 6h-34a3 3 0 1 1 0-6zm1.35 8a6 6 0 0 0 5.65 4h20a6 6 0 0 0 5.66-4H246.9z\",\n\t\t\t\"M159.5 21.02A9 9 0 0 0 151 15h-42a9 9 0 0 0-8.5 6.02 6 6 0 0 0 .02 11.96A8.99 8.99 0 0 0 109 45h42a9 9 0 0 0 8.48-12.02 6 6 0 0 0 .02-11.96zM151 17h-42a7 7 0 0 0-6.33 4h54.66a7 7 0 0 0-6.33-4zm-9.34 26a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-4.34a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-4.34a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-7a7 7 0 1 1 0-14h42a7 7 0 1 1 0 14h-9.34zM109 27a9 9 0 0 0-7.48 4H101a4 4 0 1 1 0-8h58a4 4 0 0 1 0 8h-.52a9 9 0 0 0-7.48-4h-42z\",\n\t\t\t\"M39 115a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm6-8a6 6 0 1 1-12 0 6 6 0 0 1 12 0zm-3-29v-2h8v-6H40a4 4 0 0 0-4 4v10H22l-1.33 4-.67 2h2.19L26 130h26l3.81-40H58l-.67-2L56 84H42v-6zm-4-4v10h2V74h8v-2h-8a2 2 0 0 0-2 2zm2 12h14.56l.67 2H22.77l.67-2H40zm13.8 4H24.2l3.62 38h22.36l3.62-38z\",\n\t\t\t\"M129 92h-6v4h-6v4h-6v14h-3l.24 2 3.76 32h36l3.76-32 .24-2h-3v-14h-6v-4h-6v-4h-8zm18 22v-12h-4v4h3v8h1zm-3 0v-6h-4v6h4zm-6 6v-16h-4v19.17c1.6-.7 2.97-1.8 4-3.17zm-6 3.8V100h-4v23.8a10.04 10.04 0 0 0 4 0zm-6-.63V104h-4v16a10.04 10.04 0 0 0 4 3.17zm-6-9.17v-6h-4v6h4zm-6 0v-8h3v-4h-4v12h1zm27-12v-4h-4v4h3v4h1v-4zm-6 0v-8h-4v4h3v4h1zm-6-4v-4h-4v8h1v-4h3zm-6 4v-4h-4v8h1v-4h3zm7 24a12 12 0 0 0 11.83-10h7.92l-3.53 30h-32.44l-3.53-30h7.92A12 12 0 0 0 130 126z\",\n\t\t\t\"M212 86v2h-4v-2h4zm4 0h-2v2h2v-2zm-20 0v.1a5 5 0 0 0-.56 9.65l.06.25 1.12 4.48a2 2 0 0 0 1.94 1.52h.01l7.02 24.55a2 2 0 0 0 1.92 1.45h4.98a2 2 0 0 0 1.92-1.45l7.02-24.55a2 2 0 0 0 1.95-1.52L224.5 96l.06-.25a5 5 0 0 0-.56-9.65V86a14 14 0 0 0-28 0zm4 0h6v2h-9a3 3 0 1 0 0 6H223a3 3 0 1 0 0-6H220v-2h2a12 12 0 1 0-24 0h2zm-1.44 14l-1-4h24.88l-1 4h-22.88zm8.95 26l-6.86-24h18.7l-6.86 24h-4.98zM150 242a22 22 0 1 0 0-44 22 22 0 0 0 0 44zm24-22a24 24 0 1 1-48 0 24 24 0 0 1 48 0zm-28.38 17.73l2.04-.87a6 6 0 0 1 4.68 0l2.04.87a2 2 0 0 0 2.5-.82l1.14-1.9a6 6 0 0 1 3.79-2.75l2.15-.5a2 2 0 0 0 1.54-2.12l-.19-2.2a6 6 0 0 1 1.45-4.46l1.45-1.67a2 2 0 0 0 0-2.62l-1.45-1.67a6 6 0 0 1-1.45-4.46l.2-2.2a2 2 0 0 0-1.55-2.13l-2.15-.5a6 6 0 0 1-3.8-2.75l-1.13-1.9a2 2 0 0 0-2.5-.8l-2.04.86a6 6 0 0 1-4.68 0l-2.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 0 1 3.4 6.22 4 4 0 0 1 1.87 5.18 4.98 4.98 0 0 1-1.7 8c.02.46.03.93.03 1.4v1h-62v-1zm.83-7.17a30.9 30.9 0 0 0-.62 3.57 3 3 0 0 1-.61-4.2c.37.28.78.49 1.23.63zm1.49-4.61c-.36.87-.68 1.76-.96 2.68a2 2 0 0 1-.21-3.71c.33.4.73.75 1.17 1.03zm2.32-4.54c-.54.86-1.03 1.76-1.49 2.68a3 3 0 0 1-.07-4.67 3 3 0 0 0 1.56 1.99zm1.14-1.7c.35-.5.72-.98 1.1-1.46a1 1 0 1 0-1.1 1.45zm5.34-5.77c-1.03.86-2 1.79-2.9 2.77a3 3 0 0 0-1.11-.77 3 3 0 0 1 4-2zm42.66 2.77c-.9-.98-1.87-1.9-2.9-2.77a3 3 0 0 1 4.01 2 3 3 0 0 0-1.1.77zm1.34 1.54c.38.48.75.96 1.1 1.45a1 1 0 1 0-1.1-1.45zm3.73 5.84c-.46-.92-.95-1.82-1.5-2.68a3 3 0 0 0 1.57-1.99 3 3 0 0 1-.07 4.67zm1.8 4.53c-.29-.9-.6-1.8-.97-2.67.44-.28.84-.63 1.17-1.03a2 2 0 0 1-.2 3.7zm1.14 5.51c-.14-1.21-.35-2.4-.62-3.57.45-.14.86-.35 1.23-.63a2.99 2.99 0 0 1-.6 4.2zM275 214a29 29 0 0 0-57.97 0h57.96zM72.33 198.12c-.21-.32-.34-.7-.34-1.12v-12h-2v12a4.01 4.01 0 0 0 7.09 2.54c.57-.69.91-1.57.91-2.54v-12h-2v12a1.99 1.99 0 0 1-2 2 2 2 0 0 1-1.66-.88zM75 176c.38 0 .74-.04 1.1-.12a4 4 0 0 0 6.19 2.4A13.94 13.94 0 0 1 84 185v24a6 6 0 0 1-6 6h-3v9a5 5 0 1 1-10 0v-9h-3a6 6 0 0 1-6-6v-24a14 14 0 0 1 14-14 5 5 0 0 0 5 5zm-17 15v12a1.99 1.99 0 0 0 1.22 1.84 2 2 0 0 0 2.44-.72c.21-.32.34-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c.37.28.78.49 1.23.63zm1.49-4.61c-.36.87-.68 1.76-.96 2.68a2 2 0 0 1-.21-3.71c.33.4.73.75 1.17 1.03zm2.32-4.54c-.54.86-1.03 1.76-1.49 2.68a3 3 0 0 1-.07-4.67 3 3 0 0 0 1.56 1.99zm1.14-1.7c.35-.5.72-.98 1.1-1.46a1 1 0 1 0-1.1 1.45zm5.34-5.77c-1.03.86-2 1.79-2.9 2.77a3 3 0 0 0-1.11-.77 3 3 0 0 1 4-2zm42.66 2.77c-.9-.98-1.87-1.9-2.9-2.77a3 3 0 0 1 4.01 2 3 3 0 0 0-1.1.77zm1.34 1.54c.38.48.75.96 1.1 1.45a1 1 0 1 0-1.1-1.45zm3.73 5.84c-.46-.92-.95-1.82-1.5-2.68a3 3 0 0 0 1.57-1.99 3 3 0 0 1-.07 4.67zm1.8 4.53c-.29-.9-.6-1.8-.97-2.67.44-.28.84-.63 1.17-1.03a2 2 0 0 1-.2 3.7zm1.14 5.51c-.14-1.21-.35-2.4-.62-3.57.45-.14.86-.35 1.23-.63a2.99 2.99 0 0 1-.6 4.2zM15 214a29 29 0 0 0-57.97 0h57.96z\"\n\t\t]\n\t}\n};\n","import { cn } from \"@/lib/utils\";\nimport * as React from \"react\";\nimport { BACKGROUND_PATTERNS, type BackgroundPatternName } from \"./patterns\";\n\nexport interface BackgroundPatternProps extends React.SVGProps<SVGSVGElement> {\n\t/**\n\t * Рисунок тайла.\n\t * @default \"circuitBoard\"\n\t */\n\tpattern?: BackgroundPatternName;\n\t/**\n\t * Масштаб тайла: 1 — исходный размер рисунка, 0.5 — вдвое мельче, 2 — вдвое крупнее.\n\t * @default 1\n\t */\n\tscale?: number;\n\t/**\n\t * Прозрачность рисунка, 0–1. Влияет только на контуры — подложка (`bg-*`) остаётся непрозрачной.\n\t *\n\t * Нужен отдельным пропом, потому что цветовые токены кита объявлены как `hsl(var(--token))`\n\t * без плейсхолдера `<alpha-value>`, и tailwind-модификатор альфы (`text-primary-fg/10`)\n\t * с ними молча не работает.\n\t * @default 0.4\n\t */\n\tpatternOpacity?: number;\n}\n\n/**\n * Слой с повторяющимся фоновым рисунком.\n *\n * Оба цвета задаются классами на самом компоненте: рисунок берётся из `currentColor`\n * (то есть из `text-*`), подложка — из `bg-*`. Благодаря этому фон описывается\n * дизайн-токенами, а не захардкоженными значениями. Прозрачность рисунка — проп\n * `patternOpacity` (модификатор альфы у токенов кита не работает, см. описание пропа).\n *\n * Слой позиционируется абсолютно, поэтому контейнеру нужен `relative`\n * (и `overflow-hidden`, если у контейнера скруглены углы).\n *\n * @example\n * ```tsx\n * <div className=\"relative overflow-hidden rounded-xl\">\n * <BackgroundPattern pattern=\"circuitBoard\" className=\"bg-secondary-bg text-primary-fg\" patternOpacity={0.1} />\n * <div className=\"relative p-6\">Контент поверх фона</div>\n * </div>\n * ```\n */\nexport const BackgroundPattern = React.forwardRef<SVGSVGElement, BackgroundPatternProps>(\n\t({ pattern = \"circuitBoard\", scale = 1, patternOpacity = 0.4, className, ...props }, ref) => {\n\t\t// В id из useId есть двоеточия — в ссылке url(#id) они нежелательны, убираем\n\t\tconst patternId = `background-pattern-${React.useId().replace(/:/g, \"\")}`;\n\t\tconst tile = BACKGROUND_PATTERNS[pattern];\n\n\t\treturn (\n\t\t\t<svg\n\t\t\t\tref={ref}\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tfocusable=\"false\"\n\t\t\t\tdata-slot=\"background-pattern\"\n\t\t\t\tclassName={cn(\"pointer-events-none absolute inset-0 h-full w-full\", className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<defs>\n\t\t\t\t\t<pattern\n\t\t\t\t\t\tid={patternId}\n\t\t\t\t\t\tpatternUnits=\"userSpaceOnUse\"\n\t\t\t\t\t\twidth={tile.width * scale}\n\t\t\t\t\t\theight={tile.height * scale}\n\t\t\t\t\t\tviewBox={`0 0 ${tile.width} ${tile.height}`}\n\t\t\t\t\t>\n\t\t\t\t\t\t<g fill=\"currentColor\" fillOpacity={patternOpacity} fillRule=\"evenodd\">\n\t\t\t\t\t\t\t{tile.paths.map((d, index) => (\n\t\t\t\t\t\t\t\t<path key={index} d={d} />\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</g>\n\t\t\t\t\t</pattern>\n\t\t\t\t</defs>\n\t\t\t\t<rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n\t\t\t</svg>\n\t\t);\n\t}\n);\n\nBackgroundPattern.displayName = \"BackgroundPattern\";\n"],"names":["BACKGROUND_PATTERNS","BackgroundPattern","React","pattern","scale","patternOpacity","className","props","ref","patternId","tile","jsxs","cn","jsx","d","index"],"mappings":";;;AAsBO,MAAMA,IAA4E;AAAA;AAAA,EAExF,cAAc;AAAA,IACb,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,MACN;AAAA,IAAA;AAAA,EAEF;AAAA;AAAA,EAEA,SAAS;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,MACN;AAAA,IAAA;AAAA,EAEF;AAAA;AAAA,EAEA,MAAM;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EACD;AAEF,GCRaC,IAAoBC,EAAM;AAAA,EACtC,CAAC,EAAE,SAAAC,IAAU,gBAAgB,OAAAC,IAAQ,GAAG,gBAAAC,IAAiB,KAAK,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAAQ;AAEtF,UAAAC,IAAY,sBAAsBP,EAAM,QAAQ,QAAQ,MAAM,EAAE,CAAC,IACjEQ,IAAOV,EAAoBG,CAAO;AAGvC,WAAA,gBAAAQ;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,KAAAH;AAAA,QACA,eAAY;AAAA,QACZ,WAAU;AAAA,QACV,aAAU;AAAA,QACV,WAAWI,EAAG,sDAAsDN,CAAS;AAAA,QAC5E,GAAGC;AAAA,QAEJ,UAAA;AAAA,UAAA,gBAAAM,EAAC,QACA,EAAA,UAAA,gBAAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACA,IAAIJ;AAAA,cACJ,cAAa;AAAA,cACb,OAAOC,EAAK,QAAQN;AAAA,cACpB,QAAQM,EAAK,SAASN;AAAA,cACtB,SAAS,OAAOM,EAAK,KAAK,IAAIA,EAAK,MAAM;AAAA,cAEzC,4BAAC,KAAE,EAAA,MAAK,gBAAe,aAAaL,GAAgB,UAAS,WAC3D,UAAAK,EAAK,MAAM,IAAI,CAACI,GAAGC,MACnB,gBAAAF,EAAC,UAAiB,GAAAC,EAAP,GAAAC,CAAa,CACxB,EACF,CAAA;AAAA,YAAA;AAAA,UAAA,GAEF;AAAA,UACA,gBAAAF,EAAC,UAAK,OAAM,QAAO,QAAO,QAAO,MAAM,QAAQJ,CAAS,IAAK,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC9D;AAAA,EAAA;AAGH;AAEAR,EAAkB,cAAc;"}
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sources":["../../src/components/badge/Badge.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\nimport React from \"react\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\nimport { VariantsConfig } from \"@/lib/utils/variants\";\r\n\r\nexport interface BadgeVariants {\r\n\tstatus?: \"default\" | \"info\" | \"success\" | \"warning\" | \"error\";\r\n\tfocus?: \"low\" | \"high\";\r\n\tsize?: \"sm\" | \"md\" | \"lg\";\r\n}\r\n\r\nconst badgeVariants = tv({\r\n\tbase: \"inline-flex items-center justify-center overflow-hidden rounded-full border px-2.5 font-medium leading-none\",\r\n\tslots: {\r\n\t\ticon: \"\"\r\n\t},\r\n\tvariants: {\r\n\t\tstatus: {\r\n\t\t\tdefault: \"border-primary-border bg-status-neutral-bg text-primary-fg\",\r\n\t\t\tinfo: \"border-status-info-primary-border bg-status-info-bg text-status-info-fg\",\r\n\t\t\tsuccess: \"border-status-success-primary-border bg-status-success-bg text-status-success-fg\",\r\n\t\t\twarning: \"border-status-warning-primary-border bg-status-warning-bg text-status-warning-fg\",\r\n\t\t\terror: \"border-status-error-primary-border bg-status-error-bg text-status-error-fg\"\r\n\t\t},\r\n\t\tfocus: {\r\n\t\t\tlow: \"\",\r\n\t\t\thigh: \"border-transparent bg-status-neutral text-primary-bg\"\r\n\t\t},\r\n\t\tsize: {\r\n\t\t\tsm: { base: \"h-5 gap-1 px-1.5 text-xs\", icon: \"h-3 w-3\" },\r\n\t\t\tmd: { base: \"h-6 gap-1 px-2 text-sm\", icon: \"h-3.5 w-3.5\" },\r\n\t\t\tlg: { base: \"h-7 gap-1.5 text-base\", icon: \"h-4 w-4\" }\r\n\t\t}\r\n\t} satisfies VariantsConfig<BadgeVariants>,\r\n\tdefaultVariants: {\r\n\t\tstatus: \"default\",\r\n\t\tfocus: \"low\",\r\n\t\tsize: \"md\"\r\n\t},\r\n\tcompoundVariants: [\r\n\t\t{\r\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\r\n\t\t\tfocus: \"high\",\r\n\t\t\tclass: \"text-white\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tstatus: \"info\",\r\n\t\t\tfocus: \"high\",\r\n\t\t\tclass: \"bg-status-info\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tstatus: \"success\",\r\n\t\t\tfocus: \"high\",\r\n\t\t\tclass: \"bg-status-success\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tstatus: \"warning\",\r\n\t\t\tfocus: \"high\",\r\n\t\t\tclass: \"bg-status-warning\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tstatus: \"error\",\r\n\t\t\tfocus: \"high\",\r\n\t\t\tclass: \"bg-status-error\"\r\n\t\t}\r\n\t]\r\n});\r\n\r\nexport type BadgeProps = React.HTMLAttributes<HTMLElement> &\r\n\tBadgeVariants & {\r\n\t\tasChild?: boolean;\r\n\t\tstartIcon?: React.ElementType;\r\n\t\tendIcon?: React.ElementType;\r\n\t};\r\n\r\nexport const Badge = React.forwardRef<HTMLElement, PropsWithChildren<BadgeProps>>(\r\n\t(\r\n\t\t{ startIcon: StartIcon, endIcon: EndIcon, className, children, status, size, focus, asChild = false, ...props },\r\n\t\tref\r\n\t) => {\r\n\t\tconst Comp = asChild ? Slot : \"span\";\r\n\t\tconst styles = badgeVariants({ size, status, focus });\r\n\r\n\t\tconst startIconEl = StartIcon && <StartIcon className={styles.icon()} />;\r\n\t\tconst endIconEl = EndIcon && <EndIcon className={styles.icon()} />;\r\n\r\n\t\treturn (\r\n\t\t\t<Comp className={styles.base({ className })} ref={ref} {...props}>\r\n\t\t\t\t{startIconEl}\r\n\t\t\t\t{children}\r\n\t\t\t\t{endIconEl}\r\n\t\t\t</Comp>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nBadge.displayName = \"Badge\";\r\n"],"names":["badgeVariants","tv","Badge","React","StartIcon","EndIcon","className","children","status","size","focus","asChild","props","ref","Comp","Slot","styles","startIconEl","jsx","endIconEl","jsxs"],"mappings":";;;;AAYA,MAAMA,IAAgBC,EAAG;AAAA,EACxB,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,QAAQ;AAAA,MACP,SAAS;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,MACT,OAAO;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACN,KAAK;AAAA,MACL,MAAM;AAAA,IACP;AAAA,IACA,MAAM;AAAA,MACL,IAAI,EAAE,MAAM,4BAA4B,MAAM,UAAU;AAAA,MACxD,IAAI,EAAE,MAAM,0BAA0B,MAAM,cAAc;AAAA,MAC1D,IAAI,EAAE,MAAM,yBAAyB,MAAM,UAAU;AAAA,IAAA;AAAA,EAEvD;AAAA,EACA,iBAAiB;AAAA,IAChB,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,kBAAkB;AAAA,IACjB;AAAA,MACC,QAAQ,CAAC,QAAQ,WAAW,WAAW,OAAO;AAAA,MAC9C,OAAO;AAAA,MACP,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,IAAA;AAAA,EACR;AAEF,CAAC,GASYC,IAAQC,EAAM;AAAA,EAC1B,CACC,EAAE,WAAWC,GAAW,SAASC,GAAS,WAAAC,GAAW,UAAAC,GAAU,QAAAC,GAAQ,MAAAC,GAAM,OAAAC,GAAO,SAAAC,IAAU,IAAO,GAAGC,KACxGC,MACI;AACE,UAAAC,IAAOH,IAAUI,IAAO,QACxBC,IAAShB,EAAc,EAAE,MAAAS,GAAM,QAAAD,GAAQ,OAAAE,GAAO,GAE9CO,IAAcb,KAAa,gBAAAc,EAACd,KAAU,WAAWY,EAAO,QAAQ,GAChEG,IAAYd,KAAW,gBAAAa,EAACb,KAAQ,WAAWW,EAAO,QAAQ;AAG/D,WAAA,gBAAAI,EAACN,GAAK,EAAA,WAAWE,EAAO,KAAK,EAAE,WAAAV,EAAW,CAAA,GAAG,KAAAO,GAAW,GAAGD,GACzD,UAAA;AAAA,MAAAK;AAAA,MACAV;AAAA,MACAY;AAAA,IAAA,GACF;AAAA,EAAA;AAGH;AAEAjB,EAAM,cAAc;"}
1
+ {"version":3,"file":"badge.js","sources":["../../src/components/badge/Badge.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 BadgeVariants {\n\tstatus?: \"default\" | \"info\" | \"success\" | \"warning\" | \"error\";\n\tfocus?: \"low\" | \"high\";\n\tsize?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst badgeVariants = tv({\n\tbase: \"inline-flex items-center justify-center overflow-hidden rounded-full border px-2.5 font-medium leading-none\",\n\tslots: {\n\t\ticon: \"\"\n\t},\n\tvariants: {\n\t\tstatus: {\n\t\t\tdefault: \"border-primary-border bg-status-neutral-bg text-primary-fg\",\n\t\t\tinfo: \"border-status-info-primary-border bg-status-info-bg text-status-info-fg\",\n\t\t\tsuccess: \"border-status-success-primary-border bg-status-success-bg text-status-success-fg\",\n\t\t\twarning: \"border-status-warning-primary-border bg-status-warning-bg text-status-warning-fg\",\n\t\t\terror: \"border-status-error-primary-border bg-status-error-bg text-status-error-fg\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"\",\n\t\t\thigh: \"border-transparent bg-status-neutral text-primary-bg\"\n\t\t},\n\t\tsize: {\n\t\t\tsm: { base: \"h-5 gap-1 px-1.5 text-xs\", icon: \"h-3 w-3\" },\n\t\t\tmd: { base: \"h-6 gap-1 px-2 text-sm\", icon: \"h-3.5 w-3.5\" },\n\t\t\tlg: { base: \"h-7 gap-1.5 text-base\", icon: \"h-4 w-4\" }\n\t\t}\n\t} satisfies VariantsConfig<BadgeVariants>,\n\tdefaultVariants: {\n\t\tstatus: \"default\",\n\t\tfocus: \"low\",\n\t\tsize: \"md\"\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tfocus: \"high\",\n\t\t\tclass: \"text-white\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"info\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: \"bg-status-info\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"success\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: \"bg-status-success\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"warning\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: \"bg-status-warning\"\n\t\t},\n\t\t{\n\t\t\tstatus: \"error\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: \"bg-status-error\"\n\t\t}\n\t]\n});\n\nexport type BadgeProps = React.HTMLAttributes<HTMLElement> &\n\tBadgeVariants & {\n\t\tasChild?: boolean;\n\t\tstartIcon?: React.ElementType;\n\t\tendIcon?: React.ElementType;\n\t};\n\nexport const Badge = React.forwardRef<HTMLElement, PropsWithChildren<BadgeProps>>(\n\t(\n\t\t{ startIcon: StartIcon, endIcon: EndIcon, className, children, status, size, focus, asChild = false, ...props },\n\t\tref\n\t) => {\n\t\tconst Comp = asChild ? Slot : \"span\";\n\t\tconst styles = badgeVariants({ size, status, focus });\n\n\t\tconst startIconEl = StartIcon && <StartIcon className={styles.icon()} />;\n\t\tconst endIconEl = EndIcon && <EndIcon className={styles.icon()} />;\n\n\t\treturn (\n\t\t\t<Comp className={styles.base({ className })} ref={ref} {...props}>\n\t\t\t\t{startIconEl}\n\t\t\t\t{children}\n\t\t\t\t{endIconEl}\n\t\t\t</Comp>\n\t\t);\n\t}\n);\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeVariants","tv","Badge","React","StartIcon","EndIcon","className","children","status","size","focus","asChild","props","ref","Comp","Slot","styles","startIconEl","jsx","endIconEl","jsxs"],"mappings":";;;;AAYA,MAAMA,IAAgBC,EAAG;AAAA,EACxB,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,QAAQ;AAAA,MACP,SAAS;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,MACT,OAAO;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACN,KAAK;AAAA,MACL,MAAM;AAAA,IACP;AAAA,IACA,MAAM;AAAA,MACL,IAAI,EAAE,MAAM,4BAA4B,MAAM,UAAU;AA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AA,EAAA;AAGH;AAEAjB,EAAM,cAAc;"}
@@ -1 +1 @@
1
- {"version":3,"file":"banner.js","sources":["../../src/components/banner/Banner.tsx","../../src/components/banner/components/banner-title/BannerTitle.tsx","../../src/components/banner/components/banner-description/BannerDescription.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\n\r\nconst bannerStyles = tv({\r\n\tbase: \"p-4 lg:px-20 lg:py-2\"\r\n});\r\n\r\nexport type BannerProps = React.HTMLAttributes<HTMLDivElement>;\r\n\r\nexport const Banner = React.forwardRef<HTMLDivElement, PropsWithChildren<BannerProps>>(\r\n\t({ className, children, ...props }, ref) => (\r\n\t\t<div ref={ref} className={bannerStyles({ className })} {...props}>\r\n\t\t\t{children}\r\n\t\t</div>\r\n\t)\r\n);\r\n\r\nBanner.displayName = \"Banner\";\r\n","import React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\n\r\nconst bannerTitleStyles = tv({\r\n\tbase: \"text-sm font-medium text-primary-fg\"\r\n});\r\n\r\nexport type BannerTitleProps = React.HTMLAttributes<HTMLDivElement> & React.PropsWithChildren;\r\n\r\nexport const BannerTitle = React.forwardRef<HTMLDivElement, BannerTitleProps>(\r\n\t({ className, children, ...props }, ref) => {\r\n\t\treturn (\r\n\t\t\t<span ref={ref} className={bannerTitleStyles({ className })} {...props}>\r\n\t\t\t\t{children}\r\n\t\t\t</span>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nBannerTitle.displayName = \"BannerTitle\";\r\n","import React from \"react\";\r\nimport { tv } from \"tailwind-variants\";\r\n\r\nconst bannerTitleStyles = tv({\r\n\tbase: \"text-sm font-normal text-muted\"\r\n});\r\n\r\nexport type BannerDescriptionProps = React.HTMLAttributes<HTMLDivElement> & React.PropsWithChildren;\r\n\r\nexport const BannerDescription = React.forwardRef<HTMLDivElement, BannerDescriptionProps>(\r\n\t({ className, children, ...props }, ref) => {\r\n\t\treturn (\r\n\t\t\t<span ref={ref} className={bannerTitleStyles({ className })} {...props}>\r\n\t\t\t\t{children}\r\n\t\t\t</span>\r\n\t\t);\r\n\t}\r\n);\r\n\r\nBannerDescription.displayName = \"BannerDescription\";\r\n"],"names":["bannerStyles","tv","Banner","React","className","children","props","ref","jsx","bannerTitleStyles","BannerTitle","BannerDescription"],"mappings":";;;AAGA,MAAMA,IAAeC,EAAG;AAAA,EACvB,MAAM;AACP,CAAC,GAIYC,IAASC,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MACnC,gBAAAC,EAAC,SAAI,KAAAD,GAAU,WAAWP,EAAa,EAAE,WAAAI,EAAW,CAAA,GAAI,GAAGE,GACzD,UAAAD,EACF,CAAA;AAEF;AAEAH,EAAO,cAAc;ACdrB,MAAMO,IAAoBR,EAAG;AAAA,EAC5B,MAAM;AACP,CAAC,GAIYS,IAAcP,EAAM;AAAA,EAChC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAElC,gBAAAC,EAAC,QAAK,EAAA,KAAAD,GAAU,WAAWE,EAAkB,EAAE,WAAAL,GAAW,GAAI,GAAGE,GAC/D,UAAAD,EACF,CAAA;AAGH;AAEAK,EAAY,cAAc;AChB1B,MAAMD,IAAoBR,EAAG;AAAA,EAC5B,MAAM;AACP,CAAC,GAIYU,IAAoBR,EAAM;AAAA,EACtC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAElC,gBAAAC,EAAC,QAAK,EAAA,KAAAD,GAAU,WAAWE,EAAkB,EAAE,WAAAL,GAAW,GAAI,GAAGE,GAC/D,UAAAD,EACF,CAAA;AAGH;AAEAM,EAAkB,cAAc;"}
1
+ {"version":3,"file":"banner.js","sources":["../../src/components/banner/Banner.tsx","../../src/components/banner/components/banner-title/BannerTitle.tsx","../../src/components/banner/components/banner-description/BannerDescription.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nconst bannerStyles = tv({\n\tbase: \"p-4 lg:px-20 lg:py-2\"\n});\n\nexport type BannerProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const Banner = React.forwardRef<HTMLDivElement, PropsWithChildren<BannerProps>>(\n\t({ className, children, ...props }, ref) => (\n\t\t<div ref={ref} className={bannerStyles({ className })} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t)\n);\n\nBanner.displayName = \"Banner\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nconst bannerTitleStyles = tv({\n\tbase: \"text-sm font-medium text-primary-fg\"\n});\n\nexport type BannerTitleProps = React.HTMLAttributes<HTMLDivElement> & React.PropsWithChildren;\n\nexport const BannerTitle = React.forwardRef<HTMLDivElement, BannerTitleProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<span ref={ref} className={bannerTitleStyles({ className })} {...props}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t}\n);\n\nBannerTitle.displayName = \"BannerTitle\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nconst bannerTitleStyles = tv({\n\tbase: \"text-sm font-normal text-muted\"\n});\n\nexport type BannerDescriptionProps = React.HTMLAttributes<HTMLDivElement> & React.PropsWithChildren;\n\nexport const BannerDescription = React.forwardRef<HTMLDivElement, BannerDescriptionProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<span ref={ref} className={bannerTitleStyles({ className })} {...props}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t}\n);\n\nBannerDescription.displayName = \"BannerDescription\";\n"],"names":["bannerStyles","tv","Banner","React","className","children","props","ref","jsx","bannerTitleStyles","BannerTitle","BannerDescription"],"mappings":";;;AAGA,MAAMA,IAAeC,EAAG;AAAA,EACvB,MAAM;AACP,CAAC,GAIYC,IAASC,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MACnC,gBAAAC,EAAC,SAAI,KAAAD,GAAU,WAAWP,EAAa,EAAE,WAAAI,EAAW,CAAA,GAAI,GAAGE,GACzD,UAAAD,EACF,CAAA;AAEF;AAEAH,EAAO,cAAc;ACdrB,MAAMO,IAAoBR,EAAG;AAAA,EAC5B,MAAM;AACP,CAAC,GAIYS,IAAcP,EAAM;AAAA,EAChC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAElC,gBAAAC,EAAC,QAAK,EAAA,KAAAD,GAAU,WAAWE,EAAkB,EAAE,WAAAL,GAAW,GAAI,GAAGE,GAC/D,UAAAD,EACF,CAAA;AAGH;AAEAK,EAAY,cAAc;AChB1B,MAAMD,IAAoBR,EAAG;AAAA,EAC5B,MAAM;AACP,CAAC,GAIYU,IAAoBR,EAAM;AAAA,EACtC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAElC,gBAAAC,EAAC,QAAK,EAAA,KAAAD,GAAU,WAAWE,EAAkB,EAAE,WAAAL,GAAW,GAAI,GAAGE,GAC/D,UAAAD,EACF,CAAA;AAGH;AAEAM,EAAkB,cAAc;"}