lizaui 12.0.19 → 12.0.21

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 (186) hide show
  1. package/dist/button-group/index.cjs.js +1 -1
  2. package/dist/button-group/index.es.js +2 -2
  3. package/dist/button-v2/index.cjs.js +3 -3
  4. package/dist/button-v2/index.es.js +3 -3
  5. package/dist/chunks/{Button-daStTTzk.js → Button-Bumy9bze.js} +7 -56
  6. package/dist/chunks/Button-Bumy9bze.js.map +1 -0
  7. package/dist/chunks/{Button-DK8vIKEw.js → Button-CFYOfByw.js} +9 -58
  8. package/dist/chunks/Button-CFYOfByw.js.map +1 -0
  9. package/dist/chunks/{FocusScope-D-jCzxHq.js → FocusScope-4TdD5fCA.js} +3 -3
  10. package/dist/chunks/{FocusScope-D-jCzxHq.js.map → FocusScope-4TdD5fCA.js.map} +1 -1
  11. package/dist/chunks/{FocusScope-BJBTKF3R.js → FocusScope-jSNMAXzg.js} +3 -3
  12. package/dist/chunks/{FocusScope-BJBTKF3R.js.map → FocusScope-jSNMAXzg.js.map} +1 -1
  13. package/dist/chunks/Hidden-BY45Dc0j.js +54 -0
  14. package/dist/chunks/Hidden-BY45Dc0j.js.map +1 -0
  15. package/dist/chunks/Hidden-C55DpjMP.js +55 -0
  16. package/dist/chunks/Hidden-C55DpjMP.js.map +1 -0
  17. package/dist/chunks/{I18nProvider-8HiWALvM.js → I18nProvider-BUfkOEhQ.js} +2 -2
  18. package/dist/chunks/{I18nProvider-8HiWALvM.js.map → I18nProvider-BUfkOEhQ.js.map} +1 -1
  19. package/dist/chunks/{I18nProvider-DSyuLrKX.js → I18nProvider-Coj9x7B8.js} +2 -2
  20. package/dist/chunks/{I18nProvider-DSyuLrKX.js.map → I18nProvider-Coj9x7B8.js.map} +1 -1
  21. package/dist/chunks/{ProgressBar-CYj13G9N.js → ProgressBar-542C1mif.js} +5 -5
  22. package/dist/chunks/{ProgressBar-CYj13G9N.js.map → ProgressBar-542C1mif.js.map} +1 -1
  23. package/dist/chunks/{ProgressBar-BiWM84v5.js → ProgressBar-BiKRsJ8m.js} +5 -5
  24. package/dist/chunks/{ProgressBar-BiWM84v5.js.map → ProgressBar-BiKRsJ8m.js.map} +1 -1
  25. package/dist/chunks/SharedElementTransition-BSCoaphV.js +106 -0
  26. package/dist/chunks/{SharedElementTransition-D87oSBzB.js.map → SharedElementTransition-BSCoaphV.js.map} +1 -1
  27. package/dist/chunks/SharedElementTransition-CJVe1D_I.js +107 -0
  28. package/dist/chunks/{SharedElementTransition-BxczX23g.js.map → SharedElementTransition-CJVe1D_I.js.map} +1 -1
  29. package/dist/chunks/VisuallyHidden-CTe1-RoI.js +49 -0
  30. package/dist/chunks/VisuallyHidden-CTe1-RoI.js.map +1 -0
  31. package/dist/chunks/VisuallyHidden-DPJuOMsW.js +50 -0
  32. package/dist/chunks/VisuallyHidden-DPJuOMsW.js.map +1 -0
  33. package/dist/chunks/{button-group-CXxfE0Nh.js → button-group-CJ72SS4c.js} +2 -2
  34. package/dist/chunks/{button-group-CXxfE0Nh.js.map → button-group-CJ72SS4c.js.map} +1 -1
  35. package/dist/chunks/{button-group-CAIXp_CY.js → button-group-DJ5IdBp6.js} +2 -2
  36. package/dist/chunks/{button-group-CAIXp_CY.js.map → button-group-DJ5IdBp6.js.map} +1 -1
  37. package/dist/chunks/{compose-zqddfADC.js → compose-Cfw0sImv.js} +2 -2
  38. package/dist/chunks/{compose-zqddfADC.js.map → compose-Cfw0sImv.js.map} +1 -1
  39. package/dist/chunks/{compose-DVjlikkg.js → compose-DOOi0Yan.js} +2 -2
  40. package/dist/chunks/{compose-DVjlikkg.js.map → compose-DOOi0Yan.js.map} +1 -1
  41. package/dist/chunks/{focusSafely-CoIRf3xM.js → focusSafely-CKxVSn6H.js} +40 -2
  42. package/dist/chunks/{focusSafely-CoIRf3xM.js.map → focusSafely-CKxVSn6H.js.map} +1 -1
  43. package/dist/chunks/{focusSafely-kwqdsDlJ.js → focusSafely-DfEgLKh6.js} +46 -8
  44. package/dist/chunks/{focusSafely-kwqdsDlJ.js.map → focusSafely-DfEgLKh6.js.map} +1 -1
  45. package/dist/chunks/mergeRefs-Y9oG13yB.js +24 -0
  46. package/dist/chunks/mergeRefs-Y9oG13yB.js.map +1 -0
  47. package/dist/chunks/mergeRefs-t6d4XvXq.js +25 -0
  48. package/dist/chunks/mergeRefs-t6d4XvXq.js.map +1 -0
  49. package/dist/chunks/{number-ClNYm70x.js → number-CYgYWykt.js} +2 -2
  50. package/dist/chunks/{number-ClNYm70x.js.map → number-CYgYWykt.js.map} +1 -1
  51. package/dist/chunks/{number-apyCzMO6.js → number-DDpsLN2d.js} +2 -2
  52. package/dist/chunks/{number-apyCzMO6.js.map → number-DDpsLN2d.js.map} +1 -1
  53. package/dist/chunks/{radio-group-dNkQoY2h.js → radio-group-BwXvYzSm.js} +15 -13
  54. package/dist/chunks/{radio-group-dNkQoY2h.js.map → radio-group-BwXvYzSm.js.map} +1 -1
  55. package/dist/chunks/{radio-group-V6X0yA63.js → radio-group-hO2beGF6.js} +17 -15
  56. package/dist/chunks/{radio-group-V6X0yA63.js.map → radio-group-hO2beGF6.js.map} +1 -1
  57. package/dist/chunks/useControlledState-DE_m1RML.js +39 -0
  58. package/dist/chunks/useControlledState-DE_m1RML.js.map +1 -0
  59. package/dist/chunks/useControlledState-DZA25XHU.js +40 -0
  60. package/dist/chunks/useControlledState-DZA25XHU.js.map +1 -0
  61. package/dist/chunks/{useFormReset-Cf2fzi86.js → useFormReset-BYRGk5vb.js} +2 -2
  62. package/dist/chunks/{useFormReset-Cf2fzi86.js.map → useFormReset-BYRGk5vb.js.map} +1 -1
  63. package/dist/chunks/{useFormReset-Bwwr8ivc.js → useFormReset-Bgv2ktIE.js} +2 -2
  64. package/dist/chunks/{useFormReset-Bwwr8ivc.js.map → useFormReset-Bgv2ktIE.js.map} +1 -1
  65. package/dist/chunks/useHasTabbableChild-CSJ0P5QT.js +2577 -0
  66. package/dist/chunks/useHasTabbableChild-CSJ0P5QT.js.map +1 -0
  67. package/dist/chunks/useHasTabbableChild-kl2T5gEX.js +2576 -0
  68. package/dist/chunks/useHasTabbableChild-kl2T5gEX.js.map +1 -0
  69. package/dist/chunks/{useHover-B3gEex-2.js → useHover-BHCSbkLb.js} +3 -3
  70. package/dist/chunks/{useHover-B3gEex-2.js.map → useHover-BHCSbkLb.js.map} +1 -1
  71. package/dist/chunks/{useHover-Dn1CIUT8.js → useHover-D9f9xyxz.js} +3 -3
  72. package/dist/chunks/{useHover-Dn1CIUT8.js.map → useHover-D9f9xyxz.js.map} +1 -1
  73. package/dist/chunks/{useLabel-ClsFWJD0.js → useLabel-CzhH-Tov.js} +4 -23
  74. package/dist/chunks/useLabel-CzhH-Tov.js.map +1 -0
  75. package/dist/chunks/{useLabel-todYehRc.js → useLabel-YLbDMN-c.js} +4 -23
  76. package/dist/chunks/useLabel-YLbDMN-c.js.map +1 -0
  77. package/dist/chunks/useLabels-BiXnWBSL.js +23 -0
  78. package/dist/chunks/useLabels-BiXnWBSL.js.map +1 -0
  79. package/dist/chunks/useLabels-Bl0mJafM.js +24 -0
  80. package/dist/chunks/useLabels-Bl0mJafM.js.map +1 -0
  81. package/dist/chunks/{useMove-BifTPO2Z.js → useMove-DeuS9PRx.js} +3 -3
  82. package/dist/chunks/{useMove-BifTPO2Z.js.map → useMove-DeuS9PRx.js.map} +1 -1
  83. package/dist/chunks/{useMove-C6JNYkjM.js → useMove-Xpbmb6OD.js} +3 -3
  84. package/dist/chunks/{useMove-C6JNYkjM.js.map → useMove-Xpbmb6OD.js.map} +1 -1
  85. package/dist/chunks/{usePress-D_rPVnKY.js → usePress-Arf10jW0.js} +4 -4
  86. package/dist/chunks/{usePress-D_rPVnKY.js.map → usePress-Arf10jW0.js.map} +1 -1
  87. package/dist/chunks/{usePress-BtBLddLY.js → usePress-B1yQk_p8.js} +4 -4
  88. package/dist/chunks/{usePress-BtBLddLY.js.map → usePress-B1yQk_p8.js.map} +1 -1
  89. package/dist/chunks/{useProgressBar-B1VDzYE6.js → useProgressBar-BsO-Q5JP.js} +4 -4
  90. package/dist/chunks/{useProgressBar-B1VDzYE6.js.map → useProgressBar-BsO-Q5JP.js.map} +1 -1
  91. package/dist/chunks/{useProgressBar--b8hyT4v.js → useProgressBar-d2k0k8r0.js} +4 -4
  92. package/dist/chunks/{useProgressBar--b8hyT4v.js.map → useProgressBar-d2k0k8r0.js.map} +1 -1
  93. package/dist/chunks/{useSlot-DnUNwd8f.js → useSlot-CFaaZeQE.js} +4 -4
  94. package/dist/chunks/{useSlot-DnUNwd8f.js.map → useSlot-CFaaZeQE.js.map} +1 -1
  95. package/dist/chunks/{useSlot-Dwd3MQYT.js → useSlot-TNtJf1z8.js} +4 -4
  96. package/dist/chunks/{useSlot-Dwd3MQYT.js.map → useSlot-TNtJf1z8.js.map} +1 -1
  97. package/dist/chunks/{utils-Ki_DdjNi.js → utils-BCEhcDlv.js} +12 -33
  98. package/dist/chunks/utils-BCEhcDlv.js.map +1 -0
  99. package/dist/chunks/{utils-GD-7Nve2.js → utils-DvHk9ofL.js} +5 -26
  100. package/dist/chunks/utils-DvHk9ofL.js.map +1 -0
  101. package/dist/components/icons/icons.d.ts +20 -0
  102. package/dist/components/icons/icons.d.ts.map +1 -0
  103. package/dist/components/scroll-shadow/index.d.ts +22 -0
  104. package/dist/components/scroll-shadow/index.d.ts.map +1 -0
  105. package/dist/components/scroll-shadow/scroll-shadow.d.ts +33 -0
  106. package/dist/components/scroll-shadow/scroll-shadow.d.ts.map +1 -0
  107. package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts +70 -0
  108. package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts.map +1 -0
  109. package/dist/components/scroll-shadow/use-safe-layout-effect.d.ts +3 -0
  110. package/dist/components/scroll-shadow/use-safe-layout-effect.d.ts.map +1 -0
  111. package/dist/components/scroll-shadow/use-scroll-shadow.d.ts +12 -0
  112. package/dist/components/scroll-shadow/use-scroll-shadow.d.ts.map +1 -0
  113. package/dist/components/tabs/index.d.ts +26 -0
  114. package/dist/components/tabs/index.d.ts.map +1 -0
  115. package/dist/components/tabs/tabs.d.ts +40 -0
  116. package/dist/components/tabs/tabs.d.ts.map +1 -0
  117. package/dist/components/tabs/tabs.styles.d.ts +87 -0
  118. package/dist/components/tabs/tabs.styles.d.ts.map +1 -0
  119. package/dist/data-table/index.cjs.js +297 -2813
  120. package/dist/data-table/index.cjs.js.map +1 -1
  121. package/dist/data-table/index.es.js +208 -2724
  122. package/dist/data-table/index.es.js.map +1 -1
  123. package/dist/index.cjs.js +3 -3
  124. package/dist/index.es.js +3 -3
  125. package/dist/lib/utils/assertion.d.ts +10 -0
  126. package/dist/lib/utils/assertion.d.ts.map +1 -0
  127. package/dist/lib/utils/class-name.d.ts +8 -0
  128. package/dist/lib/utils/class-name.d.ts.map +1 -0
  129. package/dist/lib/utils/cn.d.ts +23 -0
  130. package/dist/lib/utils/cn.d.ts.map +1 -0
  131. package/dist/lib/utils/collection-prop-injection.d.ts +32 -0
  132. package/dist/lib/utils/collection-prop-injection.d.ts.map +1 -0
  133. package/dist/lib/utils/compose.d.ts +8 -0
  134. package/dist/lib/utils/compose.d.ts.map +1 -0
  135. package/dist/lib/utils/dom.d.ts +22 -0
  136. package/dist/lib/utils/dom.d.ts.map +1 -0
  137. package/dist/lib/utils/field-slots-gate.d.ts +10 -0
  138. package/dist/lib/utils/field-slots-gate.d.ts.map +1 -0
  139. package/dist/lib/utils/logger.d.ts +24 -0
  140. package/dist/lib/utils/logger.d.ts.map +1 -0
  141. package/dist/lib/utils/normalize.d.ts +6 -0
  142. package/dist/lib/utils/normalize.d.ts.map +1 -0
  143. package/dist/lib/utils/use-has-text-slot.d.ts +14 -0
  144. package/dist/lib/utils/use-has-text-slot.d.ts.map +1 -0
  145. package/dist/lizaui.css +632 -0
  146. package/dist/meter/index.cjs.js +4 -4
  147. package/dist/meter/index.es.js +4 -4
  148. package/dist/progress-bar/index.cjs.js +2 -2
  149. package/dist/progress-bar/index.es.js +2 -2
  150. package/dist/radio/index.cjs.js +2 -2
  151. package/dist/radio/index.es.js +2 -2
  152. package/dist/radio-group/index.cjs.js +1 -1
  153. package/dist/radio-group/index.es.js +2 -2
  154. package/dist/scroll-shadow/index.cjs.js +394 -0
  155. package/dist/scroll-shadow/index.cjs.js.map +1 -0
  156. package/dist/scroll-shadow/index.es.js +394 -0
  157. package/dist/scroll-shadow/index.es.js.map +1 -0
  158. package/dist/scroll-shadow.d.ts +2 -0
  159. package/dist/slider/index.cjs.js +11 -10
  160. package/dist/slider/index.cjs.js.map +1 -1
  161. package/dist/slider/index.es.js +10 -9
  162. package/dist/slider/index.es.js.map +1 -1
  163. package/dist/tabs/index.cjs.js +1400 -0
  164. package/dist/tabs/index.cjs.js.map +1 -0
  165. package/dist/tabs/index.es.js +1400 -0
  166. package/dist/tabs/index.es.js.map +1 -0
  167. package/dist/tabs.d.ts +2 -0
  168. package/dist/toggle-switch/index.cjs.js +11 -9
  169. package/dist/toggle-switch/index.cjs.js.map +1 -1
  170. package/dist/toggle-switch/index.es.js +9 -7
  171. package/dist/toggle-switch/index.es.js.map +1 -1
  172. package/dist/toolbar/index.cjs.js +4 -4
  173. package/dist/toolbar/index.es.js +4 -4
  174. package/package.json +12 -1
  175. package/dist/chunks/Button-DK8vIKEw.js.map +0 -1
  176. package/dist/chunks/Button-daStTTzk.js.map +0 -1
  177. package/dist/chunks/SharedElementTransition-BxczX23g.js +0 -12
  178. package/dist/chunks/SharedElementTransition-D87oSBzB.js +0 -13
  179. package/dist/chunks/VisuallyHidden-BbvdASBh.js +0 -85
  180. package/dist/chunks/VisuallyHidden-BbvdASBh.js.map +0 -1
  181. package/dist/chunks/VisuallyHidden-C-WtISJo.js +0 -86
  182. package/dist/chunks/VisuallyHidden-C-WtISJo.js.map +0 -1
  183. package/dist/chunks/useLabel-ClsFWJD0.js.map +0 -1
  184. package/dist/chunks/useLabel-todYehRc.js.map +0 -1
  185. package/dist/chunks/utils-GD-7Nve2.js.map +0 -1
  186. package/dist/chunks/utils-Ki_DdjNi.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"button-group-CXxfE0Nh.js","sources":["../../src/components/button-group/button-group.styles.ts","../../src/components/button-group/button-group.tsx"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonGroupVariants = tv(\n\t{\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\torientation: \"horizontal\",\n\t\t},\n\t\tslots: {\n\t\t\tbase: \"button-group-v2\",\n\t\t\tseparator: \"button-group-v2__separator\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: {},\n\t\t\t\ttrue: {\n\t\t\t\t\tbase: \"button-group-v2--full-width\",\n\t\t\t\t},\n\t\t\t},\n\t\t\torientation: {\n\t\t\t\thorizontal: {\n\t\t\t\t\tbase: \"button-group-v2--horizontal\",\n\t\t\t\t},\n\t\t\t\tvertical: {\n\t\t\t\t\tbase: \"button-group-v2--vertical\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;\n","\"use client\";\n\nimport type { ComponentPropsWithRef } from \"react\";\nimport type { ButtonV2RootProps } from \"../button-v2/button-v2\";\nimport type { ButtonGroupVariants } from \"./button-group.styles\";\n\nimport React, { Children, createContext, isValidElement, useContext, useMemo } from \"react\";\nimport { buttonGroupVariants } from \"./button-group.styles\";\n\nimport { composeSlotClassName } from \"../button-v2/compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Context\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonGroupContext = {\n\tslots?: ReturnType<typeof buttonGroupVariants>;\n\tsize?: ButtonV2RootProps[\"size\"];\n\tvariant?: ButtonV2RootProps[\"variant\"];\n\tisDisabled?: ButtonV2RootProps[\"isDisabled\"];\n\tfullWidth?: ButtonV2RootProps[\"fullWidth\"];\n};\n\nconst ButtonGroupContext = createContext<ButtonGroupContext>({});\n\n// Property name to mark direct children of ButtonGroup\nexport const BUTTON_GROUP_CHILD = \"__button_group_child\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupRootProps\n\textends Omit<ComponentPropsWithRef<\"div\">, \"className\">, Pick<ButtonV2RootProps, \"size\" | \"variant\">, ButtonGroupVariants {\n\t/** The orientation of the button group */\n\torientation?: \"horizontal\" | \"vertical\";\n\t/** Whether all buttons in the group are disabled */\n\tisDisabled?: boolean;\n\t/** Custom className */\n\tclassName?: string;\n}\n\nconst ButtonGroupRoot = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\torientation = \"horizontal\",\n\tsize,\n\tvariant,\n\t...rest\n}: ButtonGroupRootProps) => {\n\tconst slots = useMemo(() => buttonGroupVariants({ fullWidth, orientation }), [fullWidth, orientation]);\n\n\t// Wrap only direct children with context provider\n\tconst wrappedChildren = Children.map(children as React.ReactNode, (child) => {\n\t\tif (!isValidElement(child)) {\n\t\t\treturn child;\n\t\t}\n\n\t\t// Clone the child and add the special prop\n\t\treturn React.cloneElement(child, {\n\t\t\t[BUTTON_GROUP_CHILD]: true,\n\t\t} as any);\n\t});\n\n\treturn (\n\t\t<ButtonGroupContext value={{ slots, size, variant, isDisabled, fullWidth }}>\n\t\t\t<div role=\"group\" className={composeSlotClassName(slots.base, className)} data-slot=\"button-group\" {...rest}>\n\t\t\t\t{wrappedChildren}\n\t\t\t</div>\n\t\t</ButtonGroupContext>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Separator\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupSeparatorProps extends ComponentPropsWithRef<\"span\"> {\n\tclassName?: string;\n}\n\nconst ButtonGroupSeparator = ({ className, ...props }: ButtonGroupSeparatorProps) => {\n\tconst { slots } = useContext(ButtonGroupContext);\n\n\treturn <span aria-hidden=\"true\" className={composeSlotClassName(slots?.separator, className)} data-slot=\"button-group-separator\" {...props} />;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonGroupContext, ButtonGroupRoot, ButtonGroupSeparator };\n\nexport type { ButtonGroupRootProps, ButtonGroupSeparatorProps };\n"],"names":["buttonGroupVariants","tv","defaultVariants","fullWidth","orientation","slots","base","separator","variants","false","true","horizontal","vertical","twMerge","ButtonGroupContext","createContext","BUTTON_GROUP_CHILD","ButtonGroupRoot","t0","$","_c","children","className","isDisabled","rest","size","t1","variant","undefined","t2","t3","Children","map","_temp","wrappedChildren","t4","t5","composeSlotClassName","t6","jsx","t7","ButtonGroupSeparator","props","useContext","child","isValidElement","React","cloneElement"],"mappings":";;;;;;AAIO,MAAMA,sBAAsBC,GAAAA,GAClC;AAAA,EACCC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,aAAa;AAAA,EAAA;AAAA,EAEdC,OAAO;AAAA,IACNC,MAAM;AAAA,IACNC,WAAW;AAAA,EAAA;AAAA,EAEZC,UAAU;AAAA,IACTL,WAAW;AAAA,MACVM,OAAO,CAAA;AAAA,MACPC,MAAM;AAAA,QACLJ,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,IAEDF,aAAa;AAAA,MACZO,YAAY;AAAA,QACXL,MAAM;AAAA,MAAA;AAAA,MAEPM,UAAU;AAAA,QACTN,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,EACD;AAEF,GACA;AAAA,EAAEO,SAAS;AAAM,CAClB;ACVA,MAAMC,qBAAqBC,MAAAA,cAAkC,CAAA,CAAE;AAGxD,MAAMC,qBAAqB;AAelC,MAAMC,kBAAkBC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,gBAAAA,EAAA,EAAA;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAnB;AAAA,MAAAoB;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC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;AAAA,MAAAoB;AAAA,MAAAvB,SAAAD,IAAA;AAAC,KAAA;AAAA,MAAAI;AAAAA,MAAA,GAAAoB;AAAAA,IAAAA,IAAAxB;AAAkDC,WAAAD;AAAAC,WAAAG;AAAAH,WAAAuB;AAAAA,EAAA,OAAA;AAAApB,gBAAAH,EAAA,CAAA;AAAAuB,YAAAvB,EAAA,CAAA;AAAA,EAAA;AAC/E,QAAA;AAAA,IAAAd;AAAAA,EAAAA,IAAkBsC,MAAAA,WAAW7B,kBAAkB;AAEiB,QAAAY,KAAArB,OAAKE;AAAW,MAAAsB;AAAA,MAAAV,EAAA,CAAA,MAAAG,aAAAH,SAAAO,IAAA;AAArCG,SAAAQ,QAAAA,qBAAqBX,IAAkBJ,SAAS;AAACH,WAAAG;AAAAH,WAAAO;AAAAP,WAAAU;AAAAA,EAAA,OAAA;AAAAA,SAAAV,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAW;AAAA,MAAAX,EAAA,CAAA,MAAAuB,SAAAvB,SAAAU,IAAA;AAArFC,kDAAkB,eAAA,QAAkB,WAAAD,IAA6D,aAAA,0BAAwB,GAAKa,MAAAA,CAAK;AAAIvB,WAAAuB;AAAAvB,WAAAU;AAAAV,WAAAW;AAAAA,EAAA,OAAA;AAAAA,SAAAX,EAAA,CAAA;AAAA,EAAA;AAAA,SAAvIW;AAAuI;AA3CvH,SAAAG,MAAAW,OAAA;AActB,MAAI,CAACC,MAAAA,eAAeD,KAAK,GAAC;AAAA,WAClBA;AAAAA,EAAK;AACZ,SAGME,MAAKC,aAAcH,OAAO;AAAA,IAAA,CAC/B5B,kBAAkB,GAAG;AAAA,EAAA,CACf;AAAC;;;;;;"}
1
+ {"version":3,"file":"button-group-CJ72SS4c.js","sources":["../../src/components/button-group/button-group.styles.ts","../../src/components/button-group/button-group.tsx"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonGroupVariants = tv(\n\t{\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\torientation: \"horizontal\",\n\t\t},\n\t\tslots: {\n\t\t\tbase: \"button-group-v2\",\n\t\t\tseparator: \"button-group-v2__separator\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: {},\n\t\t\t\ttrue: {\n\t\t\t\t\tbase: \"button-group-v2--full-width\",\n\t\t\t\t},\n\t\t\t},\n\t\t\torientation: {\n\t\t\t\thorizontal: {\n\t\t\t\t\tbase: \"button-group-v2--horizontal\",\n\t\t\t\t},\n\t\t\t\tvertical: {\n\t\t\t\t\tbase: \"button-group-v2--vertical\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;\n","\"use client\";\n\nimport type { ComponentPropsWithRef } from \"react\";\nimport type { ButtonV2RootProps } from \"../button-v2/button-v2\";\nimport type { ButtonGroupVariants } from \"./button-group.styles\";\n\nimport React, { Children, createContext, isValidElement, useContext, useMemo } from \"react\";\nimport { buttonGroupVariants } from \"./button-group.styles\";\n\nimport { composeSlotClassName } from \"../button-v2/compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Context\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonGroupContext = {\n\tslots?: ReturnType<typeof buttonGroupVariants>;\n\tsize?: ButtonV2RootProps[\"size\"];\n\tvariant?: ButtonV2RootProps[\"variant\"];\n\tisDisabled?: ButtonV2RootProps[\"isDisabled\"];\n\tfullWidth?: ButtonV2RootProps[\"fullWidth\"];\n};\n\nconst ButtonGroupContext = createContext<ButtonGroupContext>({});\n\n// Property name to mark direct children of ButtonGroup\nexport const BUTTON_GROUP_CHILD = \"__button_group_child\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupRootProps\n\textends Omit<ComponentPropsWithRef<\"div\">, \"className\">, Pick<ButtonV2RootProps, \"size\" | \"variant\">, ButtonGroupVariants {\n\t/** The orientation of the button group */\n\torientation?: \"horizontal\" | \"vertical\";\n\t/** Whether all buttons in the group are disabled */\n\tisDisabled?: boolean;\n\t/** Custom className */\n\tclassName?: string;\n}\n\nconst ButtonGroupRoot = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\torientation = \"horizontal\",\n\tsize,\n\tvariant,\n\t...rest\n}: ButtonGroupRootProps) => {\n\tconst slots = useMemo(() => buttonGroupVariants({ fullWidth, orientation }), [fullWidth, orientation]);\n\n\t// Wrap only direct children with context provider\n\tconst wrappedChildren = Children.map(children as React.ReactNode, (child) => {\n\t\tif (!isValidElement(child)) {\n\t\t\treturn child;\n\t\t}\n\n\t\t// Clone the child and add the special prop\n\t\treturn React.cloneElement(child, {\n\t\t\t[BUTTON_GROUP_CHILD]: true,\n\t\t} as any);\n\t});\n\n\treturn (\n\t\t<ButtonGroupContext value={{ slots, size, variant, isDisabled, fullWidth }}>\n\t\t\t<div role=\"group\" className={composeSlotClassName(slots.base, className)} data-slot=\"button-group\" {...rest}>\n\t\t\t\t{wrappedChildren}\n\t\t\t</div>\n\t\t</ButtonGroupContext>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Separator\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupSeparatorProps extends ComponentPropsWithRef<\"span\"> {\n\tclassName?: string;\n}\n\nconst ButtonGroupSeparator = ({ className, ...props }: ButtonGroupSeparatorProps) => {\n\tconst { slots } = useContext(ButtonGroupContext);\n\n\treturn <span aria-hidden=\"true\" className={composeSlotClassName(slots?.separator, className)} data-slot=\"button-group-separator\" {...props} />;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonGroupContext, ButtonGroupRoot, ButtonGroupSeparator };\n\nexport type { ButtonGroupRootProps, ButtonGroupSeparatorProps };\n"],"names":["buttonGroupVariants","tv","defaultVariants","fullWidth","orientation","slots","base","separator","variants","false","true","horizontal","vertical","twMerge","ButtonGroupContext","createContext","BUTTON_GROUP_CHILD","ButtonGroupRoot","t0","$","_c","children","className","isDisabled","rest","size","t1","variant","undefined","t2","t3","Children","map","_temp","wrappedChildren","t4","t5","composeSlotClassName","t6","jsx","t7","ButtonGroupSeparator","props","useContext","child","isValidElement","React","cloneElement"],"mappings":";;;;;;AAIO,MAAMA,sBAAsBC,GAAAA,GAClC;AAAA,EACCC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,aAAa;AAAA,EAAA;AAAA,EAEdC,OAAO;AAAA,IACNC,MAAM;AAAA,IACNC,WAAW;AAAA,EAAA;AAAA,EAEZC,UAAU;AAAA,IACTL,WAAW;AAAA,MACVM,OAAO,CAAA;AAAA,MACPC,MAAM;AAAA,QACLJ,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,IAEDF,aAAa;AAAA,MACZO,YAAY;AAAA,QACXL,MAAM;AAAA,MAAA;AAAA,MAEPM,UAAU;AAAA,QACTN,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,EACD;AAEF,GACA;AAAA,EAAEO,SAAS;AAAM,CAClB;ACVA,MAAMC,qBAAqBC,MAAAA,cAAkC,CAAA,CAAE;AAGxD,MAAMC,qBAAqB;AAelC,MAAMC,kBAAkBC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,gBAAAA,EAAA,EAAA;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAnB;AAAA,MAAAoB;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAR,SAAAD,IAAA;AAAC,KAAA;AAAA,MAAAG;AAAAA,MAAAC;AAAAA,MAAAnB;AAAAA,MAAAoB;AAAAA,MAAAnB,aAAAsB;AAAAA,MAAAD;AAAAA,MAAAE;AAAAA,MAAA,GAAAH;AAAAA,IAAAA,IAAAN;AASFC,WAAAD;AAAAC,WAAAE;AAAAF,WAAAG;AAAAH,WAAAhB;AAA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AAA;AAAA,IAAAd;AAAAA,EAAAA,IAAkBsC,MAAAA,WAAW7B,kBAAkB;AAEiB,QAAAY,KAAArB,OAAKE;AAAW,MAAAsB;AAAA,MAAAV,EAAA,CAAA,MAAAG,aAAAH,SAAAO,IAAA;AAArCG,SAAAQ,QAAAA,qBAAqBX,IAAkBJ,SAAS;AAACH,WAAAG;AAAAH,WAAAO;AAAAP,WAAAU;AAAAA,EAAA,OAAA;AAAAA,SAAAV,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAW;AAAA,MAAAX,EAAA,CAAA,MAAAuB,SAAAvB,SAAAU,IAAA;AAArFC,kDAAkB,eAAA,QAAkB,WAAAD,IAA6D,aAAA,0BAAwB,GAAKa,MAAAA,CAAK;AAAIvB,WAAAuB;AAAAvB,WAAAU;AAAAV,WAAAW;AAAAA,EAAA,OAAA;AAAAA,SAAAX,EAAA,CAAA;AAAA,EAAA;AAAA,SAAvIW;AAAuI;AA3CvH,SAAAG,MAAAW,OAAA;AActB,MAAI,CAACC,MAAAA,eAAeD,KAAK,GAAC;AAAA,WAClBA;AAAAA,EAAK;AACZ,SAGME,MAAKC,aAAcH,OAAO;AAAA,IAAA,CAC/B5B,kBAAkB,GAAG;AAAA,EAAA,CACf;AAAC;;;;;;"}
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import React__default, { createContext, Children, useContext, isValidElement } from "react";
4
4
  import { t as tv } from "./tv-CBcwbOk5.js";
5
- import { c as composeSlotClassName } from "./compose-DVjlikkg.js";
5
+ import { c as composeSlotClassName } from "./compose-DOOi0Yan.js";
6
6
  const buttonGroupVariants = tv({
7
7
  defaultVariants: {
8
8
  fullWidth: false,
@@ -199,4 +199,4 @@ export {
199
199
  ButtonGroupContext as c,
200
200
  buttonGroupVariants as d
201
201
  };
202
- //# sourceMappingURL=button-group-CAIXp_CY.js.map
202
+ //# sourceMappingURL=button-group-DJ5IdBp6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group-CAIXp_CY.js","sources":["../../src/components/button-group/button-group.styles.ts","../../src/components/button-group/button-group.tsx"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonGroupVariants = tv(\n\t{\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\torientation: \"horizontal\",\n\t\t},\n\t\tslots: {\n\t\t\tbase: \"button-group-v2\",\n\t\t\tseparator: \"button-group-v2__separator\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: {},\n\t\t\t\ttrue: {\n\t\t\t\t\tbase: \"button-group-v2--full-width\",\n\t\t\t\t},\n\t\t\t},\n\t\t\torientation: {\n\t\t\t\thorizontal: {\n\t\t\t\t\tbase: \"button-group-v2--horizontal\",\n\t\t\t\t},\n\t\t\t\tvertical: {\n\t\t\t\t\tbase: \"button-group-v2--vertical\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;\n","\"use client\";\n\nimport type { ComponentPropsWithRef } from \"react\";\nimport type { ButtonV2RootProps } from \"../button-v2/button-v2\";\nimport type { ButtonGroupVariants } from \"./button-group.styles\";\n\nimport React, { Children, createContext, isValidElement, useContext, useMemo } from \"react\";\nimport { buttonGroupVariants } from \"./button-group.styles\";\n\nimport { composeSlotClassName } from \"../button-v2/compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Context\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonGroupContext = {\n\tslots?: ReturnType<typeof buttonGroupVariants>;\n\tsize?: ButtonV2RootProps[\"size\"];\n\tvariant?: ButtonV2RootProps[\"variant\"];\n\tisDisabled?: ButtonV2RootProps[\"isDisabled\"];\n\tfullWidth?: ButtonV2RootProps[\"fullWidth\"];\n};\n\nconst ButtonGroupContext = createContext<ButtonGroupContext>({});\n\n// Property name to mark direct children of ButtonGroup\nexport const BUTTON_GROUP_CHILD = \"__button_group_child\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupRootProps\n\textends Omit<ComponentPropsWithRef<\"div\">, \"className\">, Pick<ButtonV2RootProps, \"size\" | \"variant\">, ButtonGroupVariants {\n\t/** The orientation of the button group */\n\torientation?: \"horizontal\" | \"vertical\";\n\t/** Whether all buttons in the group are disabled */\n\tisDisabled?: boolean;\n\t/** Custom className */\n\tclassName?: string;\n}\n\nconst ButtonGroupRoot = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\torientation = \"horizontal\",\n\tsize,\n\tvariant,\n\t...rest\n}: ButtonGroupRootProps) => {\n\tconst slots = useMemo(() => buttonGroupVariants({ fullWidth, orientation }), [fullWidth, orientation]);\n\n\t// Wrap only direct children with context provider\n\tconst wrappedChildren = Children.map(children as React.ReactNode, (child) => {\n\t\tif (!isValidElement(child)) {\n\t\t\treturn child;\n\t\t}\n\n\t\t// Clone the child and add the special prop\n\t\treturn React.cloneElement(child, {\n\t\t\t[BUTTON_GROUP_CHILD]: true,\n\t\t} as any);\n\t});\n\n\treturn (\n\t\t<ButtonGroupContext value={{ slots, size, variant, isDisabled, fullWidth }}>\n\t\t\t<div role=\"group\" className={composeSlotClassName(slots.base, className)} data-slot=\"button-group\" {...rest}>\n\t\t\t\t{wrappedChildren}\n\t\t\t</div>\n\t\t</ButtonGroupContext>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Separator\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupSeparatorProps extends ComponentPropsWithRef<\"span\"> {\n\tclassName?: string;\n}\n\nconst ButtonGroupSeparator = ({ className, ...props }: ButtonGroupSeparatorProps) => {\n\tconst { slots } = useContext(ButtonGroupContext);\n\n\treturn <span aria-hidden=\"true\" className={composeSlotClassName(slots?.separator, className)} data-slot=\"button-group-separator\" {...props} />;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonGroupContext, ButtonGroupRoot, ButtonGroupSeparator };\n\nexport type { ButtonGroupRootProps, ButtonGroupSeparatorProps };\n"],"names":["buttonGroupVariants","tv","defaultVariants","fullWidth","orientation","slots","base","separator","variants","false","true","horizontal","vertical","twMerge","ButtonGroupContext","createContext","BUTTON_GROUP_CHILD","ButtonGroupRoot","t0","$","_c","children","className","isDisabled","rest","size","t1","variant","undefined","t2","t3","Children","map","_temp","wrappedChildren","t4","t5","composeSlotClassName","t6","t7","ButtonGroupSeparator","props","useContext","child","isValidElement","React","cloneElement"],"mappings":";;;;;AAIO,MAAMA,sBAAsBC,GAClC;AAAA,EACCC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,aAAa;AAAA,EAAA;AAAA,EAEdC,OAAO;AAAA,IACNC,MAAM;AAAA,IACNC,WAAW;AAAA,EAAA;AAAA,EAEZC,UAAU;AAAA,IACTL,WAAW;AAAA,MACVM,OAAO,CAAA;AAAA,MACPC,MAAM;AAAA,QACLJ,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,IAEDF,aAAa;AAAA,MACZO,YAAY;AAAA,QACXL,MAAM;AAAA,MAAA;AAAA,MAEPM,UAAU;AAAA,QACTN,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,EACD;AAEF,GACA;AAAA,EAAEO,SAAS;AAAM,CAClB;ACVA,MAAMC,qBAAqBC,cAAkC,CAAA,CAAE;AAGxD,MAAMC,qBAAqB;AAelC,MAAMC,kBAAkBC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAnB;AAAA,MAAAoB;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAR,SAAAD,IAAA;AAAC,KAAA;AAAA,MAAAG;AAAAA,MAAAC;AAAAA,MAAAnB;AAAAA,M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AAC,WAAAG;AAAAH,WAAAsB;AAAAA,EAAA,OAAA;AAAAnB,gBAAAH,EAAA,CAAA;AAAAsB,YAAAtB,EAAA,CAAA;AAAA,EAAA;AAC/E,QAAA;AAAA,IAAAd;AAAAA,EAAAA,IAAkBqC,WAAW5B,kBAAkB;AAEiB,QAAAY,KAAArB,OAAKE;AAAW,MAAAsB;AAAA,MAAAV,EAAA,CAAA,MAAAG,aAAAH,SAAAO,IAAA;AAArCG,SAAAQ,qBAAqBX,IAAkBJ,SAAS;AAACH,WAAAG;AAAAH,WAAAO;AAAAP,WAAAU;AAAAA,EAAA,OAAA;AAAAA,SAAAV,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAW;AAAA,MAAAX,EAAA,CAAA,MAAAsB,SAAAtB,SAAAU,IAAA;AAArFC,uCAAkB,eAAA,QAAkB,WAAAD,IAA6D,aAAA,0BAAwB,GAAKY,MAAAA,CAAK;AAAItB,WAAAsB;AAAAtB,WAAAU;AAAAV,WAAAW;AAAAA,EAAA,OAAA;AAAAA,SAAAX,EAAA,CAAA;AAAA,EAAA;AAAA,SAAvIW;AAAuI;AA3CvH,SAAAG,MAAAU,OAAA;AActB,MAAI,CAACC,eAAeD,KAAK,GAAC;AAAA,WAClBA;AAAAA,EAAK;AACZ,SAGME,eAAKC,aAAcH,OAAO;AAAA,IAAA,CAC/B3B,kBAAkB,GAAG;AAAA,EAAA,CACf;AAAC;"}
1
+ {"version":3,"file":"button-group-DJ5IdBp6.js","sources":["../../src/components/button-group/button-group.styles.ts","../../src/components/button-group/button-group.tsx"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonGroupVariants = tv(\n\t{\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\torientation: \"horizontal\",\n\t\t},\n\t\tslots: {\n\t\t\tbase: \"button-group-v2\",\n\t\t\tseparator: \"button-group-v2__separator\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: {},\n\t\t\t\ttrue: {\n\t\t\t\t\tbase: \"button-group-v2--full-width\",\n\t\t\t\t},\n\t\t\t},\n\t\t\torientation: {\n\t\t\t\thorizontal: {\n\t\t\t\t\tbase: \"button-group-v2--horizontal\",\n\t\t\t\t},\n\t\t\t\tvertical: {\n\t\t\t\t\tbase: \"button-group-v2--vertical\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;\n","\"use client\";\n\nimport type { ComponentPropsWithRef } from \"react\";\nimport type { ButtonV2RootProps } from \"../button-v2/button-v2\";\nimport type { ButtonGroupVariants } from \"./button-group.styles\";\n\nimport React, { Children, createContext, isValidElement, useContext, useMemo } from \"react\";\nimport { buttonGroupVariants } from \"./button-group.styles\";\n\nimport { composeSlotClassName } from \"../button-v2/compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Context\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonGroupContext = {\n\tslots?: ReturnType<typeof buttonGroupVariants>;\n\tsize?: ButtonV2RootProps[\"size\"];\n\tvariant?: ButtonV2RootProps[\"variant\"];\n\tisDisabled?: ButtonV2RootProps[\"isDisabled\"];\n\tfullWidth?: ButtonV2RootProps[\"fullWidth\"];\n};\n\nconst ButtonGroupContext = createContext<ButtonGroupContext>({});\n\n// Property name to mark direct children of ButtonGroup\nexport const BUTTON_GROUP_CHILD = \"__button_group_child\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupRootProps\n\textends Omit<ComponentPropsWithRef<\"div\">, \"className\">, Pick<ButtonV2RootProps, \"size\" | \"variant\">, ButtonGroupVariants {\n\t/** The orientation of the button group */\n\torientation?: \"horizontal\" | \"vertical\";\n\t/** Whether all buttons in the group are disabled */\n\tisDisabled?: boolean;\n\t/** Custom className */\n\tclassName?: string;\n}\n\nconst ButtonGroupRoot = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\torientation = \"horizontal\",\n\tsize,\n\tvariant,\n\t...rest\n}: ButtonGroupRootProps) => {\n\tconst slots = useMemo(() => buttonGroupVariants({ fullWidth, orientation }), [fullWidth, orientation]);\n\n\t// Wrap only direct children with context provider\n\tconst wrappedChildren = Children.map(children as React.ReactNode, (child) => {\n\t\tif (!isValidElement(child)) {\n\t\t\treturn child;\n\t\t}\n\n\t\t// Clone the child and add the special prop\n\t\treturn React.cloneElement(child, {\n\t\t\t[BUTTON_GROUP_CHILD]: true,\n\t\t} as any);\n\t});\n\n\treturn (\n\t\t<ButtonGroupContext value={{ slots, size, variant, isDisabled, fullWidth }}>\n\t\t\t<div role=\"group\" className={composeSlotClassName(slots.base, className)} data-slot=\"button-group\" {...rest}>\n\t\t\t\t{wrappedChildren}\n\t\t\t</div>\n\t\t</ButtonGroupContext>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Separator\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupSeparatorProps extends ComponentPropsWithRef<\"span\"> {\n\tclassName?: string;\n}\n\nconst ButtonGroupSeparator = ({ className, ...props }: ButtonGroupSeparatorProps) => {\n\tconst { slots } = useContext(ButtonGroupContext);\n\n\treturn <span aria-hidden=\"true\" className={composeSlotClassName(slots?.separator, className)} data-slot=\"button-group-separator\" {...props} />;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonGroupContext, ButtonGroupRoot, ButtonGroupSeparator };\n\nexport type { ButtonGroupRootProps, ButtonGroupSeparatorProps };\n"],"names":["buttonGroupVariants","tv","defaultVariants","fullWidth","orientation","slots","base","separator","variants","false","true","horizontal","vertical","twMerge","ButtonGroupContext","createContext","BUTTON_GROUP_CHILD","ButtonGroupRoot","t0","$","_c","children","className","isDisabled","rest","size","t1","variant","undefined","t2","t3","Children","map","_temp","wrappedChildren","t4","t5","composeSlotClassName","t6","t7","ButtonGroupSeparator","props","useContext","child","isValidElement","React","cloneElement"],"mappings":";;;;;AAIO,MAAMA,sBAAsBC,GAClC;AAAA,EACCC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,aAAa;AAAA,EAAA;AAAA,EAEdC,OAAO;AAAA,IACNC,MAAM;AAAA,IACNC,WAAW;AAAA,EAAA;AAAA,EAEZC,UAAU;AAAA,IACTL,WAAW;AAAA,MACVM,OAAO,CAAA;AAAA,MACPC,MAAM;AAAA,QACLJ,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,IAEDF,aAAa;AAAA,MACZO,YAAY;AAAA,QACXL,MAAM;AAAA,MAAA;AAAA,MAEPM,UAAU;AAAA,QACTN,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,EACD;AAEF,GACA;AAAA,EAAEO,SAAS;AAAM,CAClB;ACVA,MAAMC,qBAAqBC,cAAkC,CAAA,CAAE;AAGxD,MAAMC,qBAAqB;AAelC,MAAMC,kBAAkBC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAnB;AAAA,MAAAoB;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAR,SAAAD,IAAA;AAAC,KAAA;AAAA,MAAAG;AAAAA,MAAAC;AAAAA,MAAAnB;AAAAA,MAAAoB;AAAAA,MAAAnB,aAAAsB;AAAAA,MAAAD;AAAAA,MAAAE;AAAAA,MAAA,GAAAH;AAAAA,IAAAA,IAAAN;AASFC,WAAAD;AAAAC,WAAAE;AAAAF,WAAAG;AAAAH,WAAAhB;AAAAgB,WAAAI;AAAAJ,WAAAK;AAAAL,WAAAM;AAAAN,WAAAO;AAAAP,WAAAQ;AAAAA,EAAA,OAAA;AAAAN,eAAAF,EAAA,CAAA;AAAAG,gBAAAH,EAAA,CAAA;AAAAhB,gBAAAgB,EAAA,CAAA;AAAAI,iBA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AAAP,WAAAU;AAAAA,EAAA,OAAA;AAAAA,SAAAV,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAW;AAAA,MAAAX,EAAA,CAAA,MAAAsB,SAAAtB,SAAAU,IAAA;AAArFC,uCAAkB,eAAA,QAAkB,WAAAD,IAA6D,aAAA,0BAAwB,GAAKY,MAAAA,CAAK;AAAItB,WAAAsB;AAAAtB,WAAAU;AAAAV,WAAAW;AAAAA,EAAA,OAAA;AAAAA,SAAAX,EAAA,CAAA;AAAA,EAAA;AAAA,SAAvIW;AAAuI;AA3CvH,SAAAG,MAAAU,OAAA;AActB,MAAI,CAACC,eAAeD,KAAK,GAAC;AAAA,WAClBA;AAAAA,EAAK;AACZ,SAGME,eAAKC,aAAcH,OAAO;AAAA,IAAA,CAC/B3B,kBAAkB,GAAG;AAAA,EAAA,CACf;AAAC;"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const utils = require("./utils-GD-7Nve2.js");
2
+ const utils = require("./utils-DvHk9ofL.js");
3
3
  const tailwindVariants = require("tailwind-variants");
4
4
  function composeTwRenderProps(className, tailwind) {
5
5
  return utils.$7230ffa83bc0c2cf$export$c245e6201fed2f75(className, (className2, renderProps) => {
@@ -16,4 +16,4 @@ const composeSlotClassName = (slotFn, className, variants) => {
16
16
  };
17
17
  exports.composeSlotClassName = composeSlotClassName;
18
18
  exports.composeTwRenderProps = composeTwRenderProps;
19
- //# sourceMappingURL=compose-zqddfADC.js.map
19
+ //# sourceMappingURL=compose-Cfw0sImv.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compose-zqddfADC.js","sources":["../../src/components/button-v2/compose.ts"],"sourcesContent":["import { composeRenderProps } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\n\nexport function composeTwRenderProps<T>(\n\tclassName: string | ((v: T) => string) | undefined,\n\ttailwind?: string | ((v: T) => string | undefined),\n): string | ((v: T) => string) {\n\treturn composeRenderProps(className, (className, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = className ?? \"\";\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\nexport const composeSlotClassName = (\n\tslotFn: ((args?: { className?: string; [key: string]: any }) => string) | undefined,\n\tclassName?: string,\n\tvariants?: Record<string, any>,\n): string | undefined => {\n\treturn typeof slotFn === \"function\" ? slotFn({ ...(variants ?? {}), className }) : className;\n};\n"],"names":["composeTwRenderProps","className","tailwind","composeRenderProps","renderProps","tw","cls","cx","composeSlotClassName","slotFn","variants"],"mappings":";;;AAGO,SAASA,qBACfC,WACAC,UAC8B;AAC9B,SAAOC,gDAAmBF,WAAW,CAACA,YAAWG,gBAAwB;AACxE,UAAMC,KAAK,OAAOH,aAAa,aAAcA,SAASE,WAAW,KAAK,KAAOF,YAAY;AACzF,UAAMI,MAAML,cAAa;AACzB,WAAOM,oBAAGF,IAAIC,GAAG,KAAK;AAAA,EACvB,CAAC;AACF;AAEO,MAAME,uBAAuBA,CACnCC,QACAR,WACAS,aACwB;AACxB,SAAO,OAAOD,WAAW,aAAaA,OAAO;AAAA,IAAE,GAAgB,CAAA;AAAA,IAAKR;AAAAA,EAAAA,CAAW,IAAIA;AACpF;;;"}
1
+ {"version":3,"file":"compose-Cfw0sImv.js","sources":["../../src/components/button-v2/compose.ts"],"sourcesContent":["import { composeRenderProps } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\n\nexport function composeTwRenderProps<T>(\n\tclassName: string | ((v: T) => string) | undefined,\n\ttailwind?: string | ((v: T) => string | undefined),\n): string | ((v: T) => string) {\n\treturn composeRenderProps(className, (className, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = className ?? \"\";\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\nexport const composeSlotClassName = (\n\tslotFn: ((args?: { className?: string; [key: string]: any }) => string) | undefined,\n\tclassName?: string,\n\tvariants?: Record<string, any>,\n): string | undefined => {\n\treturn typeof slotFn === \"function\" ? slotFn({ ...(variants ?? {}), className }) : className;\n};\n"],"names":["composeTwRenderProps","className","tailwind","composeRenderProps","renderProps","tw","cls","cx","composeSlotClassName","slotFn","variants"],"mappings":";;;AAGO,SAASA,qBACfC,WACAC,UAC8B;AAC9B,SAAOC,gDAAmBF,WAAW,CAACA,YAAWG,gBAAwB;AACxE,UAAMC,KAAK,OAAOH,aAAa,aAAcA,SAASE,WAAW,KAAK,KAAOF,YAAY;AACzF,UAAMI,MAAML,cAAa;AACzB,WAAOM,oBAAGF,IAAIC,GAAG,KAAK;AAAA,EACvB,CAAC;AACF;AAEO,MAAME,uBAAuBA,CACnCC,QACAR,WACAS,aACwB;AACxB,SAAO,OAAOD,WAAW,aAAaA,OAAO;AAAA,IAAE,GAAgB,CAAA;AAAA,IAAKR;AAAAA,EAAAA,CAAW,IAAIA;AACpF;;;"}
@@ -1,4 +1,4 @@
1
- import { e as $7230ffa83bc0c2cf$export$c245e6201fed2f75 } from "./utils-Ki_DdjNi.js";
1
+ import { e as $7230ffa83bc0c2cf$export$c245e6201fed2f75 } from "./utils-BCEhcDlv.js";
2
2
  import { cx } from "tailwind-variants";
3
3
  function composeTwRenderProps(className, tailwind) {
4
4
  return $7230ffa83bc0c2cf$export$c245e6201fed2f75(className, (className2, renderProps) => {
@@ -17,4 +17,4 @@ export {
17
17
  composeTwRenderProps as a,
18
18
  composeSlotClassName as c
19
19
  };
20
- //# sourceMappingURL=compose-DVjlikkg.js.map
20
+ //# sourceMappingURL=compose-DOOi0Yan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compose-DVjlikkg.js","sources":["../../src/components/button-v2/compose.ts"],"sourcesContent":["import { composeRenderProps } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\n\nexport function composeTwRenderProps<T>(\n\tclassName: string | ((v: T) => string) | undefined,\n\ttailwind?: string | ((v: T) => string | undefined),\n): string | ((v: T) => string) {\n\treturn composeRenderProps(className, (className, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = className ?? \"\";\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\nexport const composeSlotClassName = (\n\tslotFn: ((args?: { className?: string; [key: string]: any }) => string) | undefined,\n\tclassName?: string,\n\tvariants?: Record<string, any>,\n): string | undefined => {\n\treturn typeof slotFn === \"function\" ? slotFn({ ...(variants ?? {}), className }) : className;\n};\n"],"names":["composeTwRenderProps","className","tailwind","composeRenderProps","renderProps","tw","cls","cx","composeSlotClassName","slotFn","variants"],"mappings":";;AAGO,SAASA,qBACfC,WACAC,UAC8B;AAC9B,SAAOC,0CAAmBF,WAAW,CAACA,YAAWG,gBAAwB;AACxE,UAAMC,KAAK,OAAOH,aAAa,aAAcA,SAASE,WAAW,KAAK,KAAOF,YAAY;AACzF,UAAMI,MAAML,cAAa;AACzB,WAAOM,GAAGF,IAAIC,GAAG,KAAK;AAAA,EACvB,CAAC;AACF;AAEO,MAAME,uBAAuBA,CACnCC,QACAR,WACAS,aACwB;AACxB,SAAO,OAAOD,WAAW,aAAaA,OAAO;AAAA,IAAE,GAAgB,CAAA;AAAA,IAAKR;AAAAA,EAAAA,CAAW,IAAIA;AACpF;"}
1
+ {"version":3,"file":"compose-DOOi0Yan.js","sources":["../../src/components/button-v2/compose.ts"],"sourcesContent":["import { composeRenderProps } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\n\nexport function composeTwRenderProps<T>(\n\tclassName: string | ((v: T) => string) | undefined,\n\ttailwind?: string | ((v: T) => string | undefined),\n): string | ((v: T) => string) {\n\treturn composeRenderProps(className, (className, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = className ?? \"\";\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\nexport const composeSlotClassName = (\n\tslotFn: ((args?: { className?: string; [key: string]: any }) => string) | undefined,\n\tclassName?: string,\n\tvariants?: Record<string, any>,\n): string | undefined => {\n\treturn typeof slotFn === \"function\" ? slotFn({ ...(variants ?? {}), className }) : className;\n};\n"],"names":["composeTwRenderProps","className","tailwind","composeRenderProps","renderProps","tw","cls","cx","composeSlotClassName","slotFn","variants"],"mappings":";;AAGO,SAASA,qBACfC,WACAC,UAC8B;AAC9B,SAAOC,0CAAmBF,WAAW,CAACA,YAAWG,gBAAwB;AACxE,UAAMC,KAAK,OAAOH,aAAa,aAAcA,SAASE,WAAW,KAAK,KAAOF,YAAY;AACzF,UAAMI,MAAML,cAAa;AACzB,WAAOM,GAAGF,IAAIC,GAAG,KAAK;AAAA,EACvB,CAAC;AACF;AAEO,MAAME,uBAAuBA,CACnCC,QACAR,WACAS,aACwB;AACxB,SAAO,OAAOD,WAAW,aAAaA,OAAO;AAAA,IAAE,GAAgB,CAAA;AAAA,IAAKR;AAAAA,EAAAA,CAAW,IAAIA;AACpF;"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const utils = require("./utils-GD-7Nve2.js");
2
+ const utils = require("./utils-DvHk9ofL.js");
3
3
  const React = require("react");
4
4
  const $d447af545b77c9f1$export$b204af158042fbac = (target) => {
5
5
  if ($d447af545b77c9f1$var$isWindow(target)) return target.document;
@@ -33,6 +33,26 @@ function $d447af545b77c9f1$export$f531f92e2a15358f(target, event, listener, opti
33
33
  for (let eventTarget of eventTargets) eventTarget.removeEventListener(event, listener, options);
34
34
  };
35
35
  }
36
+ function $d447af545b77c9f1$export$37a5fde709c1db82(target, property, value, priority) {
37
+ if (target == null) return () => {
38
+ };
39
+ let restore = new Array();
40
+ let styleTargets = Array.isArray(target) ? target : [
41
+ target
42
+ ];
43
+ for (let styleTarget of styleTargets) {
44
+ let initialValue = styleTarget.style.getPropertyValue(property);
45
+ let initialPriority = styleTarget.style.getPropertyPriority(property);
46
+ styleTarget.style.setProperty(property, value, priority);
47
+ restore.unshift(() => {
48
+ if (initialValue) styleTarget.style.setProperty(property, initialValue, initialPriority);
49
+ else styleTarget.style.removeProperty(property);
50
+ });
51
+ }
52
+ return () => {
53
+ for (let cleanup of restore) cleanup();
54
+ };
55
+ }
36
56
  let $6a20a7989e6c817a$var$_shadowDOM = false;
37
57
  function $6a20a7989e6c817a$export$98658e8c59125e6a() {
38
58
  return $6a20a7989e6c817a$var$_shadowDOM;
@@ -379,6 +399,22 @@ function $caaf0dd3060ed57c$export$bdc77b0c0a3a85d6(props) {
379
399
  "data-referrer-policy": props.referrerPolicy
380
400
  };
381
401
  }
402
+ function $caaf0dd3060ed57c$export$7e924b3091a3bd18(props) {
403
+ let router = $caaf0dd3060ed57c$export$9a302a45f65d0572();
404
+ const href = router.useHref(props?.href ?? "");
405
+ let linkProps = {};
406
+ if (props) {
407
+ for (let key of [
408
+ "href",
409
+ "target",
410
+ "rel",
411
+ "download",
412
+ "ping",
413
+ "referrerPolicy"
414
+ ]) if (key in props && props[key] !== void 0) linkProps[key] = key === "href" ? href : props[key];
415
+ }
416
+ return linkProps;
417
+ }
382
418
  let $8f5a2122b0992be3$var$currentModality = null;
383
419
  const $8f5a2122b0992be3$export$901e90a13c50a14e = /* @__PURE__ */ new Set();
384
420
  let $8f5a2122b0992be3$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
@@ -675,11 +711,13 @@ exports.$a92dc41f639950be$export$c2b7abe5d61ec696 = $a92dc41f639950be$export$c2b
675
711
  exports.$a92dc41f639950be$export$cabe61c495ee3649 = $a92dc41f639950be$export$cabe61c495ee3649;
676
712
  exports.$b5c62b033c25b96d$export$29bf1b5f2c56cf63 = $b5c62b033c25b96d$export$29bf1b5f2c56cf63;
677
713
  exports.$b5c62b033c25b96d$export$60278871457622de = $b5c62b033c25b96d$export$60278871457622de;
714
+ exports.$caaf0dd3060ed57c$export$7e924b3091a3bd18 = $caaf0dd3060ed57c$export$7e924b3091a3bd18;
678
715
  exports.$caaf0dd3060ed57c$export$95185d699e05d4d7 = $caaf0dd3060ed57c$export$95185d699e05d4d7;
679
716
  exports.$caaf0dd3060ed57c$export$9a302a45f65d0572 = $caaf0dd3060ed57c$export$9a302a45f65d0572;
680
717
  exports.$caaf0dd3060ed57c$export$bdc77b0c0a3a85d6 = $caaf0dd3060ed57c$export$bdc77b0c0a3a85d6;
718
+ exports.$d447af545b77c9f1$export$37a5fde709c1db82 = $d447af545b77c9f1$export$37a5fde709c1db82;
681
719
  exports.$d447af545b77c9f1$export$b204af158042fbac = $d447af545b77c9f1$export$b204af158042fbac;
682
720
  exports.$d447af545b77c9f1$export$f21a1ffae260145a = $d447af545b77c9f1$export$f21a1ffae260145a;
683
721
  exports.$d447af545b77c9f1$export$f531f92e2a15358f = $d447af545b77c9f1$export$f531f92e2a15358f;
684
722
  exports.$f192c2f16961cbe0$export$80f3e147d781571c = $f192c2f16961cbe0$export$80f3e147d781571c;
685
- //# sourceMappingURL=focusSafely-CoIRf3xM.js.map
723
+ //# sourceMappingURL=focusSafely-CKxVSn6H.js.map