@blakesteve/roster 4.12.1 → 5.0.0

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 (570) hide show
  1. package/README.md +17 -9
  2. package/dist/_virtual/use-sync-external-store-with-selector.development.cjs +1 -0
  3. package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
  4. package/dist/_virtual/use-sync-external-store-with-selector.production.cjs +1 -0
  5. package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
  6. package/dist/_virtual/with-selector.cjs +1 -0
  7. package/dist/_virtual/with-selector.js +5 -0
  8. package/dist/_virtual/with-selector2.cjs +1 -0
  9. package/dist/_virtual/with-selector2.js +4 -0
  10. package/dist/components/atoms/Avatar/Avatar.cjs +1 -0
  11. package/dist/components/atoms/Avatar/Avatar.js +63 -0
  12. package/dist/components/atoms/Avatar/avatar-variants.cjs +1 -0
  13. package/dist/components/atoms/Avatar/avatar-variants.js +37 -0
  14. package/dist/components/atoms/AvatarStrip/AvatarStrip.cjs +1 -0
  15. package/dist/components/atoms/AvatarStrip/AvatarStrip.js +100 -0
  16. package/dist/components/atoms/Badge/Badge.cjs +1 -0
  17. package/dist/components/atoms/Badge/Badge.js +37 -0
  18. package/dist/components/atoms/Badge/badge-variants.cjs +1 -0
  19. package/dist/components/atoms/Badge/badge-variants.js +84 -0
  20. package/dist/components/atoms/Button/Button.cjs +1 -0
  21. package/dist/components/atoms/Button/Button.js +50 -0
  22. package/dist/components/atoms/Button/button-variants.cjs +1 -0
  23. package/dist/components/atoms/Button/button-variants.d.ts +15 -0
  24. package/dist/components/atoms/Button/button-variants.js +94 -0
  25. package/dist/components/atoms/Card/Card.cjs +1 -0
  26. package/dist/components/atoms/Card/Card.js +51 -0
  27. package/dist/components/atoms/Card/card-variants.cjs +1 -0
  28. package/dist/components/atoms/Card/card-variants.js +43 -0
  29. package/dist/components/atoms/Checkbox/Checkbox.cjs +1 -0
  30. package/dist/components/atoms/Checkbox/Checkbox.js +63 -0
  31. package/dist/components/atoms/Checkbox/checkbox-variants.cjs +1 -0
  32. package/dist/components/atoms/Checkbox/checkbox-variants.js +66 -0
  33. package/dist/components/atoms/Chip/Chip.cjs +1 -0
  34. package/dist/components/atoms/Chip/Chip.js +119 -0
  35. package/dist/components/atoms/Chip/chip-variants.cjs +1 -0
  36. package/dist/components/atoms/Chip/chip-variants.js +85 -0
  37. package/dist/components/atoms/CollapsibleSection/CollapsibleSection.cjs +1 -0
  38. package/dist/components/atoms/CollapsibleSection/CollapsibleSection.js +54 -0
  39. package/dist/components/atoms/Combobox/Combobox.cjs +1 -0
  40. package/dist/components/atoms/Combobox/Combobox.js +150 -0
  41. package/dist/components/atoms/Disclosure/Disclosure.cjs +1 -0
  42. package/dist/components/atoms/Disclosure/Disclosure.js +82 -0
  43. package/dist/components/atoms/Disclosure/disclosure-variants.cjs +1 -0
  44. package/dist/components/atoms/Disclosure/disclosure-variants.js +38 -0
  45. package/dist/components/atoms/Eyebrow/Eyebrow.cjs +1 -0
  46. package/dist/components/atoms/Eyebrow/Eyebrow.js +27 -0
  47. package/dist/components/atoms/Eyebrow/eyebrow-variants.cjs +1 -0
  48. package/dist/components/atoms/Eyebrow/eyebrow-variants.js +28 -0
  49. package/dist/components/atoms/InlineCode/InlineCode.cjs +1 -0
  50. package/dist/components/atoms/InlineCode/InlineCode.js +20 -0
  51. package/dist/components/atoms/InlineCode/inline-code-variants.cjs +1 -0
  52. package/dist/components/atoms/InlineCode/inline-code-variants.js +18 -0
  53. package/dist/components/atoms/Input/Input.cjs +1 -0
  54. package/dist/components/atoms/Input/Input.js +109 -0
  55. package/dist/components/atoms/Input/input-variants.cjs +1 -0
  56. package/dist/components/atoms/Input/input-variants.js +89 -0
  57. package/dist/components/atoms/LabeledDivider/LabeledDivider.cjs +1 -0
  58. package/dist/components/atoms/LabeledDivider/LabeledDivider.js +17 -0
  59. package/dist/components/atoms/Link/Link.cjs +1 -0
  60. package/dist/components/atoms/Link/Link.js +66 -0
  61. package/dist/components/atoms/Link/link-variants.cjs +1 -0
  62. package/dist/components/atoms/Link/link-variants.js +32 -0
  63. package/dist/components/atoms/LiquidTabs/LiquidTabs.cjs +1 -0
  64. package/dist/components/atoms/LiquidTabs/LiquidTabs.js +120 -0
  65. package/dist/components/atoms/MultiSelect/MultiSelect.cjs +1 -0
  66. package/dist/components/atoms/MultiSelect/MultiSelect.js +231 -0
  67. package/dist/components/atoms/PasswordInput/PasswordInput.cjs +1 -0
  68. package/dist/components/atoms/PasswordInput/PasswordInput.js +69 -0
  69. package/dist/components/atoms/Pill/Pill.cjs +1 -0
  70. package/dist/components/atoms/Pill/Pill.js +48 -0
  71. package/dist/components/atoms/Pill/pill-variants.cjs +1 -0
  72. package/dist/components/atoms/Pill/pill-variants.js +82 -0
  73. package/dist/components/atoms/SegmentBar/SegmentBar.cjs +1 -0
  74. package/dist/components/atoms/SegmentBar/SegmentBar.js +73 -0
  75. package/dist/components/atoms/Select/Select.cjs +1 -0
  76. package/dist/components/atoms/Select/Select.js +152 -0
  77. package/dist/components/atoms/Select/select-variants.cjs +1 -0
  78. package/dist/components/atoms/Select/select-variants.js +94 -0
  79. package/dist/components/atoms/Spinner/Spinner.cjs +1 -0
  80. package/dist/components/atoms/Spinner/Spinner.js +50 -0
  81. package/dist/components/atoms/Stat/Stat.cjs +1 -0
  82. package/dist/components/atoms/Stat/Stat.js +17 -0
  83. package/dist/components/atoms/Stat/stat-variants.cjs +1 -0
  84. package/dist/components/atoms/Stat/stat-variants.js +25 -0
  85. package/dist/components/atoms/Switch/Switch.cjs +1 -0
  86. package/dist/components/atoms/Switch/Switch.js +73 -0
  87. package/dist/components/atoms/Switch/switch-variants.cjs +1 -0
  88. package/dist/components/atoms/Switch/switch-variants.js +43 -0
  89. package/dist/components/atoms/Textarea/Textarea.cjs +1 -0
  90. package/dist/components/atoms/Textarea/Textarea.js +66 -0
  91. package/dist/components/atoms/Textarea/textarea-variants.cjs +1 -0
  92. package/dist/components/atoms/Textarea/textarea-variants.js +60 -0
  93. package/dist/components/atoms/ThemeToggle/ThemeToggle.cjs +1 -0
  94. package/dist/components/atoms/ThemeToggle/ThemeToggle.js +76 -0
  95. package/dist/components/atoms/Tooltip/Tooltip.cjs +1 -0
  96. package/dist/components/atoms/Tooltip/Tooltip.js +60 -0
  97. package/dist/components/molecules/Accordion/Accordion.cjs +1 -0
  98. package/dist/components/molecules/Accordion/Accordion.js +38 -0
  99. package/dist/components/molecules/Alert/Alert.cjs +1 -0
  100. package/dist/components/molecules/Alert/Alert.js +68 -0
  101. package/dist/components/molecules/Alert/alert-variants.cjs +1 -0
  102. package/dist/components/molecules/Alert/alert-variants.js +80 -0
  103. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.cjs +1 -0
  104. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +89 -0
  105. package/dist/components/molecules/Breadcrumbs/breadcrumb-variants.cjs +1 -0
  106. package/dist/components/molecules/Breadcrumbs/breadcrumb-variants.js +19 -0
  107. package/dist/components/molecules/CallToAction/CallToAction.cjs +1 -0
  108. package/dist/components/molecules/CallToAction/CallToAction.js +41 -0
  109. package/dist/components/molecules/CallToAction/call-to-action-variants.cjs +1 -0
  110. package/dist/components/molecules/CallToAction/call-to-action-variants.js +72 -0
  111. package/dist/components/molecules/CheckboxGroup/CheckboxGroup.cjs +1 -0
  112. package/dist/components/molecules/CheckboxGroup/CheckboxGroup.js +146 -0
  113. package/dist/components/molecules/CheckboxGroup/checkbox-group-variants.cjs +1 -0
  114. package/dist/components/molecules/CheckboxGroup/checkbox-group-variants.js +72 -0
  115. package/dist/components/molecules/DescriptionList/DescriptionList.cjs +1 -0
  116. package/dist/components/molecules/DescriptionList/DescriptionList.js +32 -0
  117. package/dist/components/molecules/DescriptionList/description-list-variants.cjs +1 -0
  118. package/dist/components/molecules/DescriptionList/description-list-variants.js +21 -0
  119. package/dist/components/molecules/EmptyState/EmptyState.cjs +1 -0
  120. package/dist/components/molecules/EmptyState/EmptyState.js +22 -0
  121. package/dist/components/molecules/EmptyState/empty-state-variants.cjs +1 -0
  122. package/dist/components/molecules/EmptyState/empty-state-variants.js +18 -0
  123. package/dist/components/molecules/ErrorState/ErrorState.cjs +1 -0
  124. package/dist/components/molecules/ErrorState/ErrorState.js +49 -0
  125. package/dist/components/molecules/ErrorState/error-state-variants.cjs +1 -0
  126. package/dist/components/molecules/ErrorState/error-state-variants.js +18 -0
  127. package/dist/components/molecules/MatchupCard/MatchupCard.cjs +1 -0
  128. package/dist/components/molecules/MatchupCard/MatchupCard.js +102 -0
  129. package/dist/components/molecules/Pullquote/Pullquote.cjs +1 -0
  130. package/dist/components/molecules/Pullquote/Pullquote.js +30 -0
  131. package/dist/components/molecules/Pullquote/pullquote-variants.cjs +1 -0
  132. package/dist/components/molecules/Pullquote/pullquote-variants.js +32 -0
  133. package/dist/components/molecules/RadioGroup/RadioGroup.cjs +1 -0
  134. package/dist/components/molecules/RadioGroup/RadioGroup.js +166 -0
  135. package/dist/components/molecules/RadioGroup/radio-group-variants.cjs +1 -0
  136. package/dist/components/molecules/RadioGroup/radio-group-variants.js +94 -0
  137. package/dist/components/molecules/Toast/Toast.cjs +1 -0
  138. package/dist/components/molecules/Toast/Toast.js +64 -0
  139. package/dist/components/molecules/Toast/Toaster.cjs +1 -0
  140. package/dist/components/molecules/Toast/Toaster.js +70 -0
  141. package/dist/components/molecules/Toast/toast-api.cjs +1 -0
  142. package/dist/components/molecules/Toast/toast-api.js +27 -0
  143. package/dist/components/molecules/Toast/toast-variants.cjs +1 -0
  144. package/dist/components/molecules/Toast/toast-variants.js +83 -0
  145. package/dist/components/organisms/ActionBar/ActionBar.cjs +1 -0
  146. package/dist/components/organisms/ActionBar/ActionBar.js +40 -0
  147. package/dist/components/organisms/ActionBar/action-bar-variants.cjs +1 -0
  148. package/dist/components/organisms/ActionBar/action-bar-variants.js +26 -0
  149. package/dist/components/organisms/Countdown/Countdown.cjs +1 -0
  150. package/dist/components/organisms/Countdown/Countdown.js +98 -0
  151. package/dist/components/organisms/Countdown/countdown-variants.cjs +1 -0
  152. package/dist/components/organisms/Countdown/countdown-variants.js +65 -0
  153. package/dist/components/organisms/DataTable/DataTable.cjs +1 -0
  154. package/dist/components/organisms/DataTable/DataTable.js +160 -0
  155. package/dist/components/organisms/Dialog/Dialog.cjs +1 -0
  156. package/dist/components/organisms/Dialog/Dialog.js +152 -0
  157. package/dist/components/organisms/Footer/Footer.cjs +1 -0
  158. package/dist/components/organisms/Footer/Footer.js +41 -0
  159. package/dist/components/organisms/Footer/footer-variants.cjs +1 -0
  160. package/dist/components/organisms/Footer/footer-variants.js +25 -0
  161. package/dist/components/organisms/Navbar/Navbar.cjs +1 -0
  162. package/dist/components/organisms/Navbar/Navbar.js +539 -0
  163. package/dist/components/organisms/Navbar/navbar-variants.cjs +1 -0
  164. package/dist/components/organisms/Navbar/navbar-variants.js +35 -0
  165. package/dist/components/organisms/Table/Table.cjs +1 -0
  166. package/dist/components/organisms/Table/Table.js +118 -0
  167. package/dist/components/organisms/Table/table-variants.cjs +1 -0
  168. package/dist/components/organisms/Table/table-variants.js +117 -0
  169. package/dist/data-table.cjs +1 -0
  170. package/dist/data-table.js +4 -0
  171. package/dist/hooks/useCountdown.cjs +1 -0
  172. package/dist/hooks/useCountdown.js +33 -0
  173. package/dist/hooks/useKeySequence.cjs +1 -0
  174. package/dist/hooks/useKeySequence.js +55 -0
  175. package/dist/internal/PopupOption.cjs +1 -0
  176. package/dist/internal/PopupOption.js +39 -0
  177. package/dist/internal/popup.cjs +1 -0
  178. package/dist/internal/popup.js +29 -0
  179. package/dist/lib/utils.cjs +1 -0
  180. package/dist/lib/utils.js +27 -0
  181. package/dist/meta.json +1 -1
  182. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -0
  183. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
  184. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -0
  185. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
  186. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.cjs +1 -0
  187. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +368 -0
  188. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +1 -0
  189. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +13 -0
  190. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +1 -0
  191. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +209 -0
  192. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -0
  193. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -0
  194. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  195. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  196. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.cjs +558 -0
  197. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +3101 -0
  198. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.cjs +1 -0
  199. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +120 -0
  200. package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.cjs +1 -0
  201. package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +261 -0
  202. package/dist/node_modules/@headlessui/react/dist/components/button/button.cjs +1 -0
  203. package/dist/node_modules/@headlessui/react/dist/components/button/button.js +16 -0
  204. package/dist/node_modules/@headlessui/react/dist/components/checkbox/checkbox.cjs +1 -0
  205. package/dist/node_modules/@headlessui/react/dist/components/checkbox/checkbox.js +38 -0
  206. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.cjs +1 -0
  207. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js +21 -0
  208. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.cjs +1 -0
  209. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js +165 -0
  210. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.cjs +1 -0
  211. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +287 -0
  212. package/dist/node_modules/@headlessui/react/dist/components/description/description.cjs +1 -0
  213. package/dist/node_modules/@headlessui/react/dist/components/description/description.js +44 -0
  214. package/dist/node_modules/@headlessui/react/dist/components/dialog/dialog.cjs +1 -0
  215. package/dist/node_modules/@headlessui/react/dist/components/dialog/dialog.js +109 -0
  216. package/dist/node_modules/@headlessui/react/dist/components/field/field.cjs +1 -0
  217. package/dist/node_modules/@headlessui/react/dist/components/field/field.js +17 -0
  218. package/dist/node_modules/@headlessui/react/dist/components/fieldset/fieldset.cjs +1 -0
  219. package/dist/node_modules/@headlessui/react/dist/components/fieldset/fieldset.js +17 -0
  220. package/dist/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.cjs +1 -0
  221. package/dist/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js +132 -0
  222. package/dist/node_modules/@headlessui/react/dist/components/input/input.cjs +1 -0
  223. package/dist/node_modules/@headlessui/react/dist/components/input/input.js +18 -0
  224. package/dist/node_modules/@headlessui/react/dist/components/keyboard.cjs +1 -0
  225. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
  226. package/dist/node_modules/@headlessui/react/dist/components/label/label.cjs +1 -0
  227. package/dist/node_modules/@headlessui/react/dist/components/label/label.js +61 -0
  228. package/dist/node_modules/@headlessui/react/dist/components/legend/legend.cjs +1 -0
  229. package/dist/node_modules/@headlessui/react/dist/components/legend/legend.js +10 -0
  230. package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine-glue.cjs +1 -0
  231. package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine-glue.js +21 -0
  232. package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine.cjs +1 -0
  233. package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine.js +171 -0
  234. package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox.cjs +1 -0
  235. package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox.js +205 -0
  236. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.cjs +1 -0
  237. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +21 -0
  238. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.cjs +1 -0
  239. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +120 -0
  240. package/dist/node_modules/@headlessui/react/dist/components/menu/menu.cjs +1 -0
  241. package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js +197 -0
  242. package/dist/node_modules/@headlessui/react/dist/components/mouse.cjs +1 -0
  243. package/dist/node_modules/@headlessui/react/dist/components/mouse.js +4 -0
  244. package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine-glue.cjs +1 -0
  245. package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine-glue.js +21 -0
  246. package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine.cjs +1 -0
  247. package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine.js +49 -0
  248. package/dist/node_modules/@headlessui/react/dist/components/popover/popover.cjs +1 -0
  249. package/dist/node_modules/@headlessui/react/dist/components/popover/popover.js +234 -0
  250. package/dist/node_modules/@headlessui/react/dist/components/portal/portal.cjs +1 -0
  251. package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +63 -0
  252. package/dist/node_modules/@headlessui/react/dist/components/radio-group/radio-group.cjs +1 -0
  253. package/dist/node_modules/@headlessui/react/dist/components/radio-group/radio-group.js +126 -0
  254. package/dist/node_modules/@headlessui/react/dist/components/switch/switch.cjs +1 -0
  255. package/dist/node_modules/@headlessui/react/dist/components/switch/switch.js +55 -0
  256. package/dist/node_modules/@headlessui/react/dist/components/textarea/textarea.cjs +1 -0
  257. package/dist/node_modules/@headlessui/react/dist/components/textarea/textarea.js +18 -0
  258. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.cjs +1 -0
  259. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +135 -0
  260. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.cjs +1 -0
  261. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +14 -0
  262. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.cjs +1 -0
  263. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +52 -0
  264. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.cjs +1 -0
  265. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +38 -0
  266. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.cjs +1 -0
  267. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +8 -0
  268. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.cjs +1 -0
  269. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +12 -0
  270. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.cjs +1 -0
  271. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +33 -0
  272. package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.cjs +1 -0
  273. package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.js +16 -0
  274. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.cjs +1 -0
  275. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +10 -0
  276. package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.cjs +1 -0
  277. package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js +8 -0
  278. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.cjs +1 -0
  279. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +9 -0
  280. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.cjs +1 -0
  281. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +15 -0
  282. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.cjs +1 -0
  283. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +26 -0
  284. package/dist/node_modules/@headlessui/react/dist/hooks/use-escape.cjs +1 -0
  285. package/dist/node_modules/@headlessui/react/dist/hooks/use-escape.js +12 -0
  286. package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.cjs +1 -0
  287. package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js +15 -0
  288. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.cjs +1 -0
  289. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +9 -0
  290. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.cjs +1 -0
  291. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +8 -0
  292. package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.cjs +1 -0
  293. package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js +15 -0
  294. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.cjs +1 -0
  295. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +41 -0
  296. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.cjs +1 -0
  297. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +11 -0
  298. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.cjs +1 -0
  299. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +13 -0
  300. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.cjs +1 -0
  301. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.js +16 -0
  302. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.cjs +1 -0
  303. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +8 -0
  304. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.cjs +1 -0
  305. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +11 -0
  306. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.cjs +1 -0
  307. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +28 -0
  308. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.cjs +1 -0
  309. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +14 -0
  310. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.cjs +1 -0
  311. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +38 -0
  312. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.cjs +1 -0
  313. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +12 -0
  314. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.cjs +1 -0
  315. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +32 -0
  316. package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.cjs +1 -0
  317. package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js +24 -0
  318. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.cjs +1 -0
  319. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +12 -0
  320. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolved-tag.cjs +1 -0
  321. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolved-tag.js +11 -0
  322. package/dist/node_modules/@headlessui/react/dist/hooks/use-root-containers.cjs +1 -0
  323. package/dist/node_modules/@headlessui/react/dist/hooks/use-root-containers.js +38 -0
  324. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.cjs +1 -0
  325. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +12 -0
  326. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.cjs +1 -0
  327. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +16 -0
  328. package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.cjs +1 -0
  329. package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js +7 -0
  330. package/dist/node_modules/@headlessui/react/dist/hooks/use-store.cjs +1 -0
  331. package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js +7 -0
  332. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.cjs +1 -0
  333. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +20 -0
  334. package/dist/node_modules/@headlessui/react/dist/hooks/use-tab-direction.cjs +1 -0
  335. package/dist/node_modules/@headlessui/react/dist/hooks/use-tab-direction.js +13 -0
  336. package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.cjs +1 -0
  337. package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js +17 -0
  338. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.cjs +1 -0
  339. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +16 -0
  340. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.cjs +2 -0
  341. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +73 -0
  342. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.cjs +1 -0
  343. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +18 -0
  344. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.cjs +1 -0
  345. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +15 -0
  346. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.cjs +1 -0
  347. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +15 -0
  348. package/dist/node_modules/@headlessui/react/dist/internal/close-provider.cjs +1 -0
  349. package/dist/node_modules/@headlessui/react/dist/internal/close-provider.js +9 -0
  350. package/dist/node_modules/@headlessui/react/dist/internal/disabled.cjs +1 -0
  351. package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +12 -0
  352. package/dist/node_modules/@headlessui/react/dist/internal/floating.cjs +1 -0
  353. package/dist/node_modules/@headlessui/react/dist/internal/floating.js +154 -0
  354. package/dist/node_modules/@headlessui/react/dist/internal/form-fields.cjs +1 -0
  355. package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js +40 -0
  356. package/dist/node_modules/@headlessui/react/dist/internal/frozen.cjs +1 -0
  357. package/dist/node_modules/@headlessui/react/dist/internal/frozen.js +14 -0
  358. package/dist/node_modules/@headlessui/react/dist/internal/hidden.cjs +1 -0
  359. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +13 -0
  360. package/dist/node_modules/@headlessui/react/dist/internal/id.cjs +1 -0
  361. package/dist/node_modules/@headlessui/react/dist/internal/id.js +12 -0
  362. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.cjs +1 -0
  363. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +19 -0
  364. package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.cjs +1 -0
  365. package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js +12 -0
  366. package/dist/node_modules/@headlessui/react/dist/machine.cjs +1 -0
  367. package/dist/node_modules/@headlessui/react/dist/machine.js +74 -0
  368. package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.cjs +1 -0
  369. package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js +33 -0
  370. package/dist/node_modules/@headlessui/react/dist/react-glue.cjs +1 -0
  371. package/dist/node_modules/@headlessui/react/dist/react-glue.js +12 -0
  372. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.cjs +1 -0
  373. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +15 -0
  374. package/dist/node_modules/@headlessui/react/dist/utils/bugs.cjs +1 -0
  375. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +19 -0
  376. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.cjs +1 -0
  377. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +40 -0
  378. package/dist/node_modules/@headlessui/react/dist/utils/class-names.cjs +1 -0
  379. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +6 -0
  380. package/dist/node_modules/@headlessui/react/dist/utils/default-map.cjs +1 -0
  381. package/dist/node_modules/@headlessui/react/dist/utils/default-map.js +12 -0
  382. package/dist/node_modules/@headlessui/react/dist/utils/disposables.cjs +1 -0
  383. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +40 -0
  384. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.cjs +1 -0
  385. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +9 -0
  386. package/dist/node_modules/@headlessui/react/dist/utils/dom.cjs +1 -0
  387. package/dist/node_modules/@headlessui/react/dist/utils/dom.js +46 -0
  388. package/dist/node_modules/@headlessui/react/dist/utils/element-movement.cjs +1 -0
  389. package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js +21 -0
  390. package/dist/node_modules/@headlessui/react/dist/utils/env.cjs +1 -0
  391. package/dist/node_modules/@headlessui/react/dist/utils/env.js +34 -0
  392. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.cjs +1 -0
  393. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +97 -0
  394. package/dist/node_modules/@headlessui/react/dist/utils/form.cjs +1 -0
  395. package/dist/node_modules/@headlessui/react/dist/utils/form.js +32 -0
  396. package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.cjs +1 -0
  397. package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js +31 -0
  398. package/dist/node_modules/@headlessui/react/dist/utils/match.cjs +1 -0
  399. package/dist/node_modules/@headlessui/react/dist/utils/match.js +11 -0
  400. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.cjs +1 -0
  401. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +8 -0
  402. package/dist/node_modules/@headlessui/react/dist/utils/owner.cjs +1 -0
  403. package/dist/node_modules/@headlessui/react/dist/utils/owner.js +22 -0
  404. package/dist/node_modules/@headlessui/react/dist/utils/platform.cjs +1 -0
  405. package/dist/node_modules/@headlessui/react/dist/utils/platform.js +14 -0
  406. package/dist/node_modules/@headlessui/react/dist/utils/render.cjs +4 -0
  407. package/dist/node_modules/@headlessui/react/dist/utils/render.js +126 -0
  408. package/dist/node_modules/@headlessui/react/dist/utils/store.cjs +1 -0
  409. package/dist/node_modules/@headlessui/react/dist/utils/store.js +14 -0
  410. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -0
  411. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  412. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -0
  413. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  414. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -0
  415. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  416. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -0
  417. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  418. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -0
  419. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  420. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -0
  421. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  422. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -0
  423. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  424. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -0
  425. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  426. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -0
  427. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  428. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -0
  429. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  430. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -0
  431. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +55 -0
  432. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -0
  433. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +338 -0
  434. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -0
  435. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  436. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -0
  437. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  438. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +1 -0
  439. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  440. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +1 -0
  441. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  442. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -0
  443. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  444. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -0
  445. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
  446. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.cjs +1 -0
  447. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js +38 -0
  448. package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs +1 -0
  449. package/dist/node_modules/@react-aria/interactions/dist/useFocus.js +30 -0
  450. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs +1 -0
  451. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js +97 -0
  452. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs +1 -0
  453. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js +57 -0
  454. package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs +1 -0
  455. package/dist/node_modules/@react-aria/interactions/dist/useHover.js +86 -0
  456. package/dist/node_modules/@react-aria/interactions/dist/utils.cjs +1 -0
  457. package/dist/node_modules/@react-aria/interactions/dist/utils.js +66 -0
  458. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.cjs +1 -0
  459. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js +27 -0
  460. package/dist/node_modules/@react-aria/utils/dist/domHelpers.cjs +1 -0
  461. package/dist/node_modules/@react-aria/utils/dist/domHelpers.js +15 -0
  462. package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.cjs +1 -0
  463. package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.js +45 -0
  464. package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.cjs +1 -0
  465. package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js +7 -0
  466. package/dist/node_modules/@react-aria/utils/dist/openLink.cjs +1 -0
  467. package/dist/node_modules/@react-aria/utils/dist/openLink.js +28 -0
  468. package/dist/node_modules/@react-aria/utils/dist/platform.cjs +1 -0
  469. package/dist/node_modules/@react-aria/utils/dist/platform.js +47 -0
  470. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.cjs +1 -0
  471. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js +34 -0
  472. package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.cjs +1 -0
  473. package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js +6 -0
  474. package/dist/node_modules/@react-stately/flags/dist/import.cjs +1 -0
  475. package/dist/node_modules/@react-stately/flags/dist/import.js +7 -0
  476. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +1 -0
  477. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +38 -0
  478. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.cjs +1 -0
  479. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +533 -0
  480. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.cjs +4 -0
  481. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  482. package/dist/node_modules/class-variance-authority/dist/index.cjs +1 -0
  483. package/dist/node_modules/class-variance-authority/dist/index.js +35 -0
  484. package/dist/node_modules/clsx/dist/clsx.cjs +1 -0
  485. package/dist/node_modules/clsx/dist/clsx.js +16 -0
  486. package/dist/node_modules/date-fns/_lib/getRoundingMethod.cjs +1 -0
  487. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +9 -0
  488. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
  489. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  490. package/dist/node_modules/date-fns/_lib/normalizeDates.cjs +1 -0
  491. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  492. package/dist/node_modules/date-fns/_lib/normalizeInterval.cjs +1 -0
  493. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  494. package/dist/node_modules/date-fns/add.cjs +1 -0
  495. package/dist/node_modules/date-fns/add.js +19 -0
  496. package/dist/node_modules/date-fns/addDays.cjs +1 -0
  497. package/dist/node_modules/date-fns/addDays.js +9 -0
  498. package/dist/node_modules/date-fns/addMonths.cjs +1 -0
  499. package/dist/node_modules/date-fns/addMonths.js +19 -0
  500. package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
  501. package/dist/node_modules/date-fns/compareAsc.js +8 -0
  502. package/dist/node_modules/date-fns/constants.cjs +1 -0
  503. package/dist/node_modules/date-fns/constants.js +7 -0
  504. package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
  505. package/dist/node_modules/date-fns/constructFrom.js +7 -0
  506. package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
  507. package/dist/node_modules/date-fns/differenceInCalendarDays.js +15 -0
  508. package/dist/node_modules/date-fns/differenceInCalendarMonths.cjs +1 -0
  509. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +12 -0
  510. package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
  511. package/dist/node_modules/date-fns/differenceInCalendarYears.js +12 -0
  512. package/dist/node_modules/date-fns/differenceInDays.cjs +1 -0
  513. package/dist/node_modules/date-fns/differenceInDays.js +21 -0
  514. package/dist/node_modules/date-fns/differenceInHours.cjs +1 -0
  515. package/dist/node_modules/date-fns/differenceInHours.js +14 -0
  516. package/dist/node_modules/date-fns/differenceInMilliseconds.cjs +1 -0
  517. package/dist/node_modules/date-fns/differenceInMilliseconds.js +7 -0
  518. package/dist/node_modules/date-fns/differenceInMinutes.cjs +1 -0
  519. package/dist/node_modules/date-fns/differenceInMinutes.js +10 -0
  520. package/dist/node_modules/date-fns/differenceInMonths.cjs +1 -0
  521. package/dist/node_modules/date-fns/differenceInMonths.js +23 -0
  522. package/dist/node_modules/date-fns/differenceInSeconds.cjs +1 -0
  523. package/dist/node_modules/date-fns/differenceInSeconds.js +9 -0
  524. package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
  525. package/dist/node_modules/date-fns/differenceInYears.js +16 -0
  526. package/dist/node_modules/date-fns/endOfDay.cjs +1 -0
  527. package/dist/node_modules/date-fns/endOfDay.js +8 -0
  528. package/dist/node_modules/date-fns/endOfMonth.cjs +1 -0
  529. package/dist/node_modules/date-fns/endOfMonth.js +8 -0
  530. package/dist/node_modules/date-fns/intervalToDuration.cjs +1 -0
  531. package/dist/node_modules/date-fns/intervalToDuration.js +25 -0
  532. package/dist/node_modules/date-fns/isAfter.cjs +1 -0
  533. package/dist/node_modules/date-fns/isAfter.js +7 -0
  534. package/dist/node_modules/date-fns/isLastDayOfMonth.cjs +1 -0
  535. package/dist/node_modules/date-fns/isLastDayOfMonth.js +10 -0
  536. package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
  537. package/dist/node_modules/date-fns/startOfDay.js +8 -0
  538. package/dist/node_modules/date-fns/toDate.cjs +1 -0
  539. package/dist/node_modules/date-fns/toDate.js +7 -0
  540. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -0
  541. package/dist/{utils-koxKGlVV.js → node_modules/tailwind-merge/dist/bundle-mjs.js} +216 -244
  542. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.cjs +1 -0
  543. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +57 -0
  544. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.cjs +1 -0
  545. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +56 -0
  546. package/dist/node_modules/use-sync-external-store/with-selector.cjs +1 -0
  547. package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
  548. package/dist/preflight.cjs +1 -0
  549. package/dist/preflight.js +1 -0
  550. package/dist/roster.cjs +1 -0
  551. package/dist/roster.js +184 -0
  552. package/dist/tokens.cjs +1 -0
  553. package/dist/tokens.js +1 -0
  554. package/dist/utils.cjs +1 -0
  555. package/dist/utils.d.ts +11 -8
  556. package/dist/utils.js +4 -0
  557. package/package.json +11 -10
  558. package/dist/Table-CSXfWRkc.js +0 -4949
  559. package/dist/Table-pfb9MJtO.cjs +0 -566
  560. package/dist/data-table.cjs.js +0 -1
  561. package/dist/data-table.es.js +0 -156
  562. package/dist/preflight.cjs.js +0 -1
  563. package/dist/preflight.es.js +0 -1
  564. package/dist/roster.cjs.js +0 -5
  565. package/dist/roster.es.js +0 -11334
  566. package/dist/tokens.cjs.js +0 -1
  567. package/dist/tokens.es.js +0 -1
  568. package/dist/utils-B4q42wBM.cjs +0 -1
  569. package/dist/utils.cjs.js +0 -1
  570. package/dist/utils.es.js +0 -4
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./utils.cjs"),O=r=>{const{offsetWidth:h,offsetHeight:e}=r;return{width:h,height:e}},z=r=>r,w=r=>{const h=Math.max(r.startIndex-r.overscan,0),e=Math.min(r.endIndex+r.overscan,r.count-1),s=[];for(let t=h;t<=e;t++)s.push(t);return s},R=(r,h)=>{const e=r.scrollElement;if(!e)return;const s=r.targetWindow;if(!s)return;const t=i=>{const{width:o,height:a}=i;h({width:Math.round(o),height:Math.round(a)})};if(t(O(e)),!s.ResizeObserver)return()=>{};const n=new s.ResizeObserver(i=>{const o=()=>{const a=i[0];if(a?.borderBoxSize){const u=a.borderBoxSize[0];if(u){t({width:u.inlineSize,height:u.blockSize});return}}t(O(e))};r.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return n.observe(e,{box:"border-box"}),()=>{n.unobserve(e)}},y={passive:!0},M=typeof window>"u"?!0:"onscrollend"in window,F=(r,h)=>{const e=r.scrollElement;if(!e)return;const s=r.targetWindow;if(!s)return;let t=0;const n=r.options.useScrollendEvent&&M?()=>{}:d.debounce(s,()=>{h(t,!1)},r.options.isScrollingResetDelay),i=c=>()=>{const{horizontal:g,isRtl:l}=r.options;t=g?e.scrollLeft*(l&&-1||1):e.scrollTop,n(),h(t,c)},o=i(!0),a=i(!1);e.addEventListener("scroll",o,y);const u=r.options.useScrollendEvent&&M;return u&&e.addEventListener("scrollend",a,y),()=>{e.removeEventListener("scroll",o),u&&e.removeEventListener("scrollend",a)}},C=(r,h,e)=>{if(h?.borderBoxSize){const s=h.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return r[e.options.horizontal?"offsetWidth":"offsetHeight"]},_=(r,{adjustments:h=0,behavior:e},s)=>{var t,n;const i=r+h;(n=(t=s.scrollElement)==null?void 0:t.scrollTo)==null||n.call(t,{[s.options.horizontal?"left":"top"]:i,behavior:e})};class W{constructor(h){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(t=>{t.forEach(n=>{const i=()=>{this._measureElement(n.target,n)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var t;(t=s())==null||t.disconnect(),e=null},observe:t=>{var n;return(n=s())==null?void 0:n.observe(t,{box:"border-box"})},unobserve:t=>{var n;return(n=s())==null?void 0:n.unobserve(t)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,t])=>{typeof t>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:z,rangeExtractor:w,onChange:()=>{},measureElement:C,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var s,t;(t=(s=this.options).onChange)==null||t.call(s,this,e)},this.maybeNotify=d.memo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(t=>{this.observer.observe(t)}),this.unsubs.push(this.options.observeElementRect(this,t=>{this.scrollRect=t,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(t,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<t?"forward":"backward":null,this.scrollOffset=t,this.isScrolling=n,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,s)=>{const t=new Map,n=new Map;for(let i=s-1;i>=0;i--){const o=e[i];if(t.has(o.lane))continue;const a=n.get(o.lane);if(a==null||o.end>a.end?n.set(o.lane,o):o.end<a.end&&t.set(o.lane,!0),t.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((i,o)=>i.end===o.end?i.index-o.index:i.end-o.end)[0]:void 0},this.getMeasurementOptions=d.memo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,s,t,n,i,o)=>(this.prevLanes!==void 0&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:t,getItemKey:n,enabled:i,lanes:o}),{key:!1}),this.getMeasurements=d.memo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:t,getItemKey:n,enabled:i,lanes:o},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const l of this.laneAssignments.keys())l>=e&&this.laneAssignments.delete(l);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(l=>{this.itemSizeCache.set(l.key,l.size)}));const u=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const c=this.measurementsCache.slice(0,u),g=new Array(o).fill(void 0);for(let l=0;l<u;l++){const m=c[l];m&&(g[m.lane]=l)}for(let l=u;l<e;l++){const m=n(l),v=this.laneAssignments.get(l);let f,b;if(v!==void 0&&this.options.lanes>1){f=v;const p=g[f],x=p!==void 0?c[p]:void 0;b=x?x.end+this.options.gap:s+t}else{const p=this.options.lanes===1?c[l-1]:this.getFurthestMeasurement(c,l);b=p?p.end+this.options.gap:s+t,f=p?p.lane:l%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(l,f)}const E=a.get(m),S=typeof E=="number"?E:this.options.estimateSize(l),A=b+S;c[l]={index:l,start:b,size:S,end:A,key:m,lane:f},g[f]=l}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=d.memo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,s,t,n)=>this.range=e.length>0&&s>0?N({measurements:e,outerSize:s,scrollOffset:t,lanes:n}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=d.memo(()=>{let e=null,s=null;const t=this.calculateRange();return t&&(e=t.startIndex,s=t.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,t,n,i)=>n===null||i===null?[]:e({startIndex:n,endIndex:i,overscan:s,count:t}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const s=this.options.indexAttribute,t=e.getAttribute(s);return t?parseInt(t,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{const t=this.indexFromElement(e),n=this.measurementsCache[t];if(!n)return;const i=n.key,o=this.elementsCache.get(i);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(t,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{const t=this.measurementsCache[e];if(!t)return;const n=this.itemSizeCache.get(t.key)??t.size,i=s-n;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(t,i,this):t.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",i),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(t.index),this.itemSizeCache=new Map(this.itemSizeCache.set(t.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,t)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=d.memo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,s)=>{const t=[];for(let n=0,i=e.length;n<i;n++){const o=e[n],a=s[o];t.push(a)}return t},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const s=this.getMeasurements();if(s.length!==0)return d.notUndefined(s[I(0,s.length-1,t=>d.notUndefined(s[t]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,s,t=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),i=this.getScrollOffset();s==="auto"&&(s=e>=i+n?"end":"start"),s==="center"?e+=(t-n)/2:s==="end"&&(e-=n);const o=this.getMaxScrollOffset();return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const t=this.measurementsCache[e];if(!t)return;const n=this.getSize(),i=this.getScrollOffset();if(s==="auto")if(t.end>=i+n-this.options.scrollPaddingEnd)s="end";else if(t.start<=i+this.options.scrollPaddingStart)s="start";else return[i,s];if(s==="end"&&e===this.options.count-1)return[this.getMaxScrollOffset(),s];const o=s==="end"?t.end+this.options.scrollPaddingEnd:t.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,s,t.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:s="start",behavior:t}={})=>{t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,s),{adjustments:void 0,behavior:t})},this.scrollToIndex=(e,{align:s="auto",behavior:t}={})=>{t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let n=0;const i=10,o=u=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(e,u);if(!c){console.warn("Failed to get offset for index:",e);return}const[g,l]=c;this._scrollToOffset(g,{adjustments:void 0,behavior:t}),this.targetWindow.requestAnimationFrame(()=>{const m=()=>{if(this.currentScrollToIndex!==e)return;const v=this.getScrollOffset(),f=this.getOffsetForIndex(e,l);if(!f){console.warn("Failed to get offset for index:",e);return}d.approxEqual(f[0],v)||a(l)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(m):m()})},a=u=>{this.targetWindow&&this.currentScrollToIndex===e&&(n++,n<i?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",n,i),this.targetWindow.requestAnimationFrame(()=>o(u))):console.warn(`Failed to scroll to index ${e} after ${i} attempts.`))};o(s)},this.scrollBy=(e,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var e;const s=this.getMeasurements();let t;if(s.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=((e=s[s.length-1])==null?void 0:e.end)??0;else{const n=Array(this.options.lanes).fill(null);let i=s.length-1;for(;i>=0&&n.some(o=>o===null);){const o=s[i];n[o.lane]===null&&(n[o.lane]=o.end),i--}t=Math.max(...n.filter(o=>o!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:t})=>{this.options.scrollToFn(e,{behavior:t,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(h)}}const I=(r,h,e,s)=>{for(;r<=h;){const t=(r+h)/2|0,n=e(t);if(n<s)r=t+1;else if(n>s)h=t-1;else return t}return r>0?r-1:0};function N({measurements:r,outerSize:h,scrollOffset:e,lanes:s}){const t=r.length-1,n=a=>r[a].start;if(r.length<=s)return{startIndex:0,endIndex:t};let i=I(0,t,n,e),o=i;if(s===1)for(;o<t&&r[o].end<e+h;)o++;else if(s>1){const a=Array(s).fill(0);for(;o<t&&a.some(c=>c<e+h);){const c=r[o];a[c.lane]=c.end,o++}const u=Array(s).fill(e+h);for(;i>=0&&u.some(c=>c>=e);){const c=r[i];u[c.lane]=c.start,i--}i=Math.max(0,i-i%s),o=Math.min(t,o+(s-1-o%s))}return{startIndex:i,endIndex:o}}exports.approxEqual=d.approxEqual;exports.debounce=d.debounce;exports.memo=d.memo;exports.notUndefined=d.notUndefined;exports.Virtualizer=W;exports.defaultKeyExtractor=z;exports.defaultRangeExtractor=w;exports.elementScroll=_;exports.measureElement=C;exports.observeElementOffset=F;exports.observeElementRect=R;
@@ -0,0 +1,533 @@
1
+ import { memo as p, notUndefined as O, approxEqual as I, debounce as A } from "./utils.js";
2
+ const y = (r) => {
3
+ const { offsetWidth: h, offsetHeight: e } = r;
4
+ return { width: h, height: e };
5
+ }, F = (r) => r, R = (r) => {
6
+ const h = Math.max(r.startIndex - r.overscan, 0), e = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
7
+ for (let t = h; t <= e; t++)
8
+ s.push(t);
9
+ return s;
10
+ }, D = (r, h) => {
11
+ const e = r.scrollElement;
12
+ if (!e)
13
+ return;
14
+ const s = r.targetWindow;
15
+ if (!s)
16
+ return;
17
+ const t = (i) => {
18
+ const { width: o, height: a } = i;
19
+ h({ width: Math.round(o), height: Math.round(a) });
20
+ };
21
+ if (t(y(e)), !s.ResizeObserver)
22
+ return () => {
23
+ };
24
+ const n = new s.ResizeObserver((i) => {
25
+ const o = () => {
26
+ const a = i[0];
27
+ if (a?.borderBoxSize) {
28
+ const u = a.borderBoxSize[0];
29
+ if (u) {
30
+ t({ width: u.inlineSize, height: u.blockSize });
31
+ return;
32
+ }
33
+ }
34
+ t(y(e));
35
+ };
36
+ r.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
37
+ });
38
+ return n.observe(e, { box: "border-box" }), () => {
39
+ n.unobserve(e);
40
+ };
41
+ }, M = {
42
+ passive: !0
43
+ }, w = typeof window > "u" ? !0 : "onscrollend" in window, k = (r, h) => {
44
+ const e = r.scrollElement;
45
+ if (!e)
46
+ return;
47
+ const s = r.targetWindow;
48
+ if (!s)
49
+ return;
50
+ let t = 0;
51
+ const n = r.options.useScrollendEvent && w ? () => {
52
+ } : A(
53
+ s,
54
+ () => {
55
+ h(t, !1);
56
+ },
57
+ r.options.isScrollingResetDelay
58
+ ), i = (c) => () => {
59
+ const { horizontal: m, isRtl: l } = r.options;
60
+ t = m ? e.scrollLeft * (l && -1 || 1) : e.scrollTop, n(), h(t, c);
61
+ }, o = i(!0), a = i(!1);
62
+ e.addEventListener("scroll", o, M);
63
+ const u = r.options.useScrollendEvent && w;
64
+ return u && e.addEventListener("scrollend", a, M), () => {
65
+ e.removeEventListener("scroll", o), u && e.removeEventListener("scrollend", a);
66
+ };
67
+ }, _ = (r, h, e) => {
68
+ if (h?.borderBoxSize) {
69
+ const s = h.borderBoxSize[0];
70
+ if (s)
71
+ return Math.round(
72
+ s[e.options.horizontal ? "inlineSize" : "blockSize"]
73
+ );
74
+ }
75
+ return r[e.options.horizontal ? "offsetWidth" : "offsetHeight"];
76
+ }, T = (r, {
77
+ adjustments: h = 0,
78
+ behavior: e
79
+ }, s) => {
80
+ var t, n;
81
+ const i = r + h;
82
+ (n = (t = s.scrollElement) == null ? void 0 : t.scrollTo) == null || n.call(t, {
83
+ [s.options.horizontal ? "left" : "top"]: i,
84
+ behavior: e
85
+ });
86
+ };
87
+ class L {
88
+ constructor(h) {
89
+ this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.currentScrollToIndex = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
90
+ let e = null;
91
+ const s = () => e || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e = new this.targetWindow.ResizeObserver((t) => {
92
+ t.forEach((n) => {
93
+ const i = () => {
94
+ this._measureElement(n.target, n);
95
+ };
96
+ this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(i) : i();
97
+ });
98
+ }));
99
+ return {
100
+ disconnect: () => {
101
+ var t;
102
+ (t = s()) == null || t.disconnect(), e = null;
103
+ },
104
+ observe: (t) => {
105
+ var n;
106
+ return (n = s()) == null ? void 0 : n.observe(t, { box: "border-box" });
107
+ },
108
+ unobserve: (t) => {
109
+ var n;
110
+ return (n = s()) == null ? void 0 : n.unobserve(t);
111
+ }
112
+ };
113
+ })(), this.range = null, this.setOptions = (e) => {
114
+ Object.entries(e).forEach(([s, t]) => {
115
+ typeof t > "u" && delete e[s];
116
+ }), this.options = {
117
+ debug: !1,
118
+ initialOffset: 0,
119
+ overscan: 1,
120
+ paddingStart: 0,
121
+ paddingEnd: 0,
122
+ scrollPaddingStart: 0,
123
+ scrollPaddingEnd: 0,
124
+ horizontal: !1,
125
+ getItemKey: F,
126
+ rangeExtractor: R,
127
+ onChange: () => {
128
+ },
129
+ measureElement: _,
130
+ initialRect: { width: 0, height: 0 },
131
+ scrollMargin: 0,
132
+ gap: 0,
133
+ indexAttribute: "data-index",
134
+ initialMeasurementsCache: [],
135
+ lanes: 1,
136
+ isScrollingResetDelay: 150,
137
+ enabled: !0,
138
+ isRtl: !1,
139
+ useScrollendEvent: !1,
140
+ useAnimationFrameWithResizeObserver: !1,
141
+ ...e
142
+ };
143
+ }, this.notify = (e) => {
144
+ var s, t;
145
+ (t = (s = this.options).onChange) == null || t.call(s, this, e);
146
+ }, this.maybeNotify = p(
147
+ () => (this.calculateRange(), [
148
+ this.isScrolling,
149
+ this.range ? this.range.startIndex : null,
150
+ this.range ? this.range.endIndex : null
151
+ ]),
152
+ (e) => {
153
+ this.notify(e);
154
+ },
155
+ {
156
+ key: process.env.NODE_ENV !== "production" && "maybeNotify",
157
+ debug: () => this.options.debug,
158
+ initialDeps: [
159
+ this.isScrolling,
160
+ this.range ? this.range.startIndex : null,
161
+ this.range ? this.range.endIndex : null
162
+ ]
163
+ }
164
+ ), this.cleanup = () => {
165
+ this.unsubs.filter(Boolean).forEach((e) => e()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null;
166
+ }, this._didMount = () => () => {
167
+ this.cleanup();
168
+ }, this._willUpdate = () => {
169
+ var e;
170
+ const s = this.options.enabled ? this.options.getScrollElement() : null;
171
+ if (this.scrollElement !== s) {
172
+ if (this.cleanup(), !s) {
173
+ this.maybeNotify();
174
+ return;
175
+ }
176
+ this.scrollElement = s, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((e = this.scrollElement) == null ? void 0 : e.window) ?? null, this.elementsCache.forEach((t) => {
177
+ this.observer.observe(t);
178
+ }), this.unsubs.push(
179
+ this.options.observeElementRect(this, (t) => {
180
+ this.scrollRect = t, this.maybeNotify();
181
+ })
182
+ ), this.unsubs.push(
183
+ this.options.observeElementOffset(this, (t, n) => {
184
+ this.scrollAdjustments = 0, this.scrollDirection = n ? this.getScrollOffset() < t ? "forward" : "backward" : null, this.scrollOffset = t, this.isScrolling = n, this.maybeNotify();
185
+ })
186
+ ), this._scrollToOffset(this.getScrollOffset(), {
187
+ adjustments: void 0,
188
+ behavior: void 0
189
+ });
190
+ }
191
+ }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (e, s) => {
192
+ const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
193
+ for (let i = s - 1; i >= 0; i--) {
194
+ const o = e[i];
195
+ if (t.has(o.lane))
196
+ continue;
197
+ const a = n.get(
198
+ o.lane
199
+ );
200
+ if (a == null || o.end > a.end ? n.set(o.lane, o) : o.end < a.end && t.set(o.lane, !0), t.size === this.options.lanes)
201
+ break;
202
+ }
203
+ return n.size === this.options.lanes ? Array.from(n.values()).sort((i, o) => i.end === o.end ? i.index - o.index : i.end - o.end)[0] : void 0;
204
+ }, this.getMeasurementOptions = p(
205
+ () => [
206
+ this.options.count,
207
+ this.options.paddingStart,
208
+ this.options.scrollMargin,
209
+ this.options.getItemKey,
210
+ this.options.enabled,
211
+ this.options.lanes
212
+ ],
213
+ (e, s, t, n, i, o) => (this.prevLanes !== void 0 && this.prevLanes !== o && (this.lanesChangedFlag = !0), this.prevLanes = o, this.pendingMeasuredCacheIndexes = [], {
214
+ count: e,
215
+ paddingStart: s,
216
+ scrollMargin: t,
217
+ getItemKey: n,
218
+ enabled: i,
219
+ lanes: o
220
+ }),
221
+ {
222
+ key: !1
223
+ }
224
+ ), this.getMeasurements = p(
225
+ () => [this.getMeasurementOptions(), this.itemSizeCache],
226
+ ({ count: e, paddingStart: s, scrollMargin: t, getItemKey: n, enabled: i, lanes: o }, a) => {
227
+ if (!i)
228
+ return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
229
+ if (this.laneAssignments.size > e)
230
+ for (const l of this.laneAssignments.keys())
231
+ l >= e && this.laneAssignments.delete(l);
232
+ this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((l) => {
233
+ this.itemSizeCache.set(l.key, l.size);
234
+ }));
235
+ const u = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
236
+ this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === e && (this.lanesSettling = !1);
237
+ const c = this.measurementsCache.slice(0, u), m = new Array(o).fill(
238
+ void 0
239
+ );
240
+ for (let l = 0; l < u; l++) {
241
+ const f = c[l];
242
+ f && (m[f.lane] = l);
243
+ }
244
+ for (let l = u; l < e; l++) {
245
+ const f = n(l), v = this.laneAssignments.get(l);
246
+ let d, b;
247
+ if (v !== void 0 && this.options.lanes > 1) {
248
+ d = v;
249
+ const g = m[d], x = g !== void 0 ? c[g] : void 0;
250
+ b = x ? x.end + this.options.gap : s + t;
251
+ } else {
252
+ const g = this.options.lanes === 1 ? c[l - 1] : this.getFurthestMeasurement(c, l);
253
+ b = g ? g.end + this.options.gap : s + t, d = g ? g.lane : l % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(l, d);
254
+ }
255
+ const E = a.get(f), S = typeof E == "number" ? E : this.options.estimateSize(l), C = b + S;
256
+ c[l] = {
257
+ index: l,
258
+ start: b,
259
+ size: S,
260
+ end: C,
261
+ key: f,
262
+ lane: d
263
+ }, m[d] = l;
264
+ }
265
+ return this.measurementsCache = c, c;
266
+ },
267
+ {
268
+ key: process.env.NODE_ENV !== "production" && "getMeasurements",
269
+ debug: () => this.options.debug
270
+ }
271
+ ), this.calculateRange = p(
272
+ () => [
273
+ this.getMeasurements(),
274
+ this.getSize(),
275
+ this.getScrollOffset(),
276
+ this.options.lanes
277
+ ],
278
+ (e, s, t, n) => this.range = e.length > 0 && s > 0 ? W({
279
+ measurements: e,
280
+ outerSize: s,
281
+ scrollOffset: t,
282
+ lanes: n
283
+ }) : null,
284
+ {
285
+ key: process.env.NODE_ENV !== "production" && "calculateRange",
286
+ debug: () => this.options.debug
287
+ }
288
+ ), this.getVirtualIndexes = p(
289
+ () => {
290
+ let e = null, s = null;
291
+ const t = this.calculateRange();
292
+ return t && (e = t.startIndex, s = t.endIndex), this.maybeNotify.updateDeps([this.isScrolling, e, s]), [
293
+ this.options.rangeExtractor,
294
+ this.options.overscan,
295
+ this.options.count,
296
+ e,
297
+ s
298
+ ];
299
+ },
300
+ (e, s, t, n, i) => n === null || i === null ? [] : e({
301
+ startIndex: n,
302
+ endIndex: i,
303
+ overscan: s,
304
+ count: t
305
+ }),
306
+ {
307
+ key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
308
+ debug: () => this.options.debug
309
+ }
310
+ ), this.indexFromElement = (e) => {
311
+ const s = this.options.indexAttribute, t = e.getAttribute(s);
312
+ return t ? parseInt(t, 10) : (console.warn(
313
+ `Missing attribute name '${s}={index}' on measured element.`
314
+ ), -1);
315
+ }, this._measureElement = (e, s) => {
316
+ const t = this.indexFromElement(e), n = this.measurementsCache[t];
317
+ if (!n)
318
+ return;
319
+ const i = n.key, o = this.elementsCache.get(i);
320
+ o !== e && (o && this.observer.unobserve(o), this.observer.observe(e), this.elementsCache.set(i, e)), e.isConnected && this.resizeItem(t, this.options.measureElement(e, s, this));
321
+ }, this.resizeItem = (e, s) => {
322
+ const t = this.measurementsCache[e];
323
+ if (!t)
324
+ return;
325
+ const n = this.itemSizeCache.get(t.key) ?? t.size, i = s - n;
326
+ i !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(t, i, this) : t.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", i), this._scrollToOffset(this.getScrollOffset(), {
327
+ adjustments: this.scrollAdjustments += i,
328
+ behavior: void 0
329
+ })), this.pendingMeasuredCacheIndexes.push(t.index), this.itemSizeCache = new Map(this.itemSizeCache.set(t.key, s)), this.notify(!1));
330
+ }, this.measureElement = (e) => {
331
+ if (!e) {
332
+ this.elementsCache.forEach((s, t) => {
333
+ s.isConnected || (this.observer.unobserve(s), this.elementsCache.delete(t));
334
+ });
335
+ return;
336
+ }
337
+ this._measureElement(e, void 0);
338
+ }, this.getVirtualItems = p(
339
+ () => [this.getVirtualIndexes(), this.getMeasurements()],
340
+ (e, s) => {
341
+ const t = [];
342
+ for (let n = 0, i = e.length; n < i; n++) {
343
+ const o = e[n], a = s[o];
344
+ t.push(a);
345
+ }
346
+ return t;
347
+ },
348
+ {
349
+ key: process.env.NODE_ENV !== "production" && "getVirtualItems",
350
+ debug: () => this.options.debug
351
+ }
352
+ ), this.getVirtualItemForOffset = (e) => {
353
+ const s = this.getMeasurements();
354
+ if (s.length !== 0)
355
+ return O(
356
+ s[z(
357
+ 0,
358
+ s.length - 1,
359
+ (t) => O(s[t]).start,
360
+ e
361
+ )]
362
+ );
363
+ }, this.getMaxScrollOffset = () => {
364
+ if (!this.scrollElement) return 0;
365
+ if ("scrollHeight" in this.scrollElement)
366
+ return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
367
+ {
368
+ const e = this.scrollElement.document.documentElement;
369
+ return this.options.horizontal ? e.scrollWidth - this.scrollElement.innerWidth : e.scrollHeight - this.scrollElement.innerHeight;
370
+ }
371
+ }, this.getOffsetForAlignment = (e, s, t = 0) => {
372
+ if (!this.scrollElement) return 0;
373
+ const n = this.getSize(), i = this.getScrollOffset();
374
+ s === "auto" && (s = e >= i + n ? "end" : "start"), s === "center" ? e += (t - n) / 2 : s === "end" && (e -= n);
375
+ const o = this.getMaxScrollOffset();
376
+ return Math.max(Math.min(o, e), 0);
377
+ }, this.getOffsetForIndex = (e, s = "auto") => {
378
+ e = Math.max(0, Math.min(e, this.options.count - 1));
379
+ const t = this.measurementsCache[e];
380
+ if (!t)
381
+ return;
382
+ const n = this.getSize(), i = this.getScrollOffset();
383
+ if (s === "auto")
384
+ if (t.end >= i + n - this.options.scrollPaddingEnd)
385
+ s = "end";
386
+ else if (t.start <= i + this.options.scrollPaddingStart)
387
+ s = "start";
388
+ else
389
+ return [i, s];
390
+ if (s === "end" && e === this.options.count - 1)
391
+ return [this.getMaxScrollOffset(), s];
392
+ const o = s === "end" ? t.end + this.options.scrollPaddingEnd : t.start - this.options.scrollPaddingStart;
393
+ return [
394
+ this.getOffsetForAlignment(o, s, t.size),
395
+ s
396
+ ];
397
+ }, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (e, { align: s = "start", behavior: t } = {}) => {
398
+ t === "smooth" && this.isDynamicMode() && console.warn(
399
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
400
+ ), this._scrollToOffset(this.getOffsetForAlignment(e, s), {
401
+ adjustments: void 0,
402
+ behavior: t
403
+ });
404
+ }, this.scrollToIndex = (e, { align: s = "auto", behavior: t } = {}) => {
405
+ t === "smooth" && this.isDynamicMode() && console.warn(
406
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
407
+ ), e = Math.max(0, Math.min(e, this.options.count - 1)), this.currentScrollToIndex = e;
408
+ let n = 0;
409
+ const i = 10, o = (u) => {
410
+ if (!this.targetWindow) return;
411
+ const c = this.getOffsetForIndex(e, u);
412
+ if (!c) {
413
+ console.warn("Failed to get offset for index:", e);
414
+ return;
415
+ }
416
+ const [m, l] = c;
417
+ this._scrollToOffset(m, { adjustments: void 0, behavior: t }), this.targetWindow.requestAnimationFrame(() => {
418
+ const f = () => {
419
+ if (this.currentScrollToIndex !== e) return;
420
+ const v = this.getScrollOffset(), d = this.getOffsetForIndex(e, l);
421
+ if (!d) {
422
+ console.warn("Failed to get offset for index:", e);
423
+ return;
424
+ }
425
+ I(d[0], v) || a(l);
426
+ };
427
+ this.isDynamicMode() ? this.targetWindow.requestAnimationFrame(f) : f();
428
+ });
429
+ }, a = (u) => {
430
+ this.targetWindow && this.currentScrollToIndex === e && (n++, n < i ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", n, i), this.targetWindow.requestAnimationFrame(() => o(u))) : console.warn(
431
+ `Failed to scroll to index ${e} after ${i} attempts.`
432
+ ));
433
+ };
434
+ o(s);
435
+ }, this.scrollBy = (e, { behavior: s } = {}) => {
436
+ s === "smooth" && this.isDynamicMode() && console.warn(
437
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
438
+ ), this._scrollToOffset(this.getScrollOffset() + e, {
439
+ adjustments: void 0,
440
+ behavior: s
441
+ });
442
+ }, this.getTotalSize = () => {
443
+ var e;
444
+ const s = this.getMeasurements();
445
+ let t;
446
+ if (s.length === 0)
447
+ t = this.options.paddingStart;
448
+ else if (this.options.lanes === 1)
449
+ t = ((e = s[s.length - 1]) == null ? void 0 : e.end) ?? 0;
450
+ else {
451
+ const n = Array(this.options.lanes).fill(null);
452
+ let i = s.length - 1;
453
+ for (; i >= 0 && n.some((o) => o === null); ) {
454
+ const o = s[i];
455
+ n[o.lane] === null && (n[o.lane] = o.end), i--;
456
+ }
457
+ t = Math.max(...n.filter((o) => o !== null));
458
+ }
459
+ return Math.max(
460
+ t - this.options.scrollMargin + this.options.paddingEnd,
461
+ 0
462
+ );
463
+ }, this._scrollToOffset = (e, {
464
+ adjustments: s,
465
+ behavior: t
466
+ }) => {
467
+ this.options.scrollToFn(e, { behavior: t, adjustments: s }, this);
468
+ }, this.measure = () => {
469
+ this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.notify(!1);
470
+ }, this.setOptions(h);
471
+ }
472
+ }
473
+ const z = (r, h, e, s) => {
474
+ for (; r <= h; ) {
475
+ const t = (r + h) / 2 | 0, n = e(t);
476
+ if (n < s)
477
+ r = t + 1;
478
+ else if (n > s)
479
+ h = t - 1;
480
+ else
481
+ return t;
482
+ }
483
+ return r > 0 ? r - 1 : 0;
484
+ };
485
+ function W({
486
+ measurements: r,
487
+ outerSize: h,
488
+ scrollOffset: e,
489
+ lanes: s
490
+ }) {
491
+ const t = r.length - 1, n = (a) => r[a].start;
492
+ if (r.length <= s)
493
+ return {
494
+ startIndex: 0,
495
+ endIndex: t
496
+ };
497
+ let i = z(
498
+ 0,
499
+ t,
500
+ n,
501
+ e
502
+ ), o = i;
503
+ if (s === 1)
504
+ for (; o < t && r[o].end < e + h; )
505
+ o++;
506
+ else if (s > 1) {
507
+ const a = Array(s).fill(0);
508
+ for (; o < t && a.some((c) => c < e + h); ) {
509
+ const c = r[o];
510
+ a[c.lane] = c.end, o++;
511
+ }
512
+ const u = Array(s).fill(e + h);
513
+ for (; i >= 0 && u.some((c) => c >= e); ) {
514
+ const c = r[i];
515
+ u[c.lane] = c.start, i--;
516
+ }
517
+ i = Math.max(0, i - i % s), o = Math.min(t, o + (s - 1 - o % s));
518
+ }
519
+ return { startIndex: i, endIndex: o };
520
+ }
521
+ export {
522
+ L as Virtualizer,
523
+ I as approxEqual,
524
+ A as debounce,
525
+ F as defaultKeyExtractor,
526
+ R as defaultRangeExtractor,
527
+ T as elementScroll,
528
+ _ as measureElement,
529
+ p as memo,
530
+ O as notUndefined,
531
+ k as observeElementOffset,
532
+ D as observeElementRect
533
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function y(n,l,e){let i=e.initialDeps??[],t,c=!0;function m(){var u,f,h;let g;e.key&&((u=e.debug)!=null&&u.call(e))&&(g=Date.now());const d=n();if(!(d.length!==i.length||d.some((r,a)=>i[a]!==r)))return t;i=d;let s;if(e.key&&((f=e.debug)!=null&&f.call(e))&&(s=Date.now()),t=l(...d),e.key&&((h=e.debug)!=null&&h.call(e))){const r=Math.round((Date.now()-g)*100)/100,a=Math.round((Date.now()-s)*100)/100,w=a/16,b=(o,v)=>{for(o=String(o);o.length<v;)o=" "+o;return o};console.info(`%c⏱ ${b(a,5)} /${b(r,5)} ms`,`
2
+ font-size: .6rem;
3
+ font-weight: bold;
4
+ color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,e?.key)}return e?.onChange&&!(c&&e.skipInitialOnChange)&&e.onChange(t),c=!1,t}return m.updateDeps=u=>{i=u},m}function D(n,l){if(n===void 0)throw new Error("Unexpected undefined");return n}const T=(n,l)=>Math.abs(n-l)<1.01,M=(n,l,e)=>{let i;return function(...t){n.clearTimeout(i),i=n.setTimeout(()=>l.apply(this,t),e)}};exports.approxEqual=T;exports.debounce=M;exports.memo=y;exports.notUndefined=D;
@@ -0,0 +1,52 @@
1
+ function T(n, l, e) {
2
+ let i = e.initialDeps ?? [], t, c = !0;
3
+ function h() {
4
+ var d, m, f;
5
+ let g;
6
+ e.key && ((d = e.debug) != null && d.call(e)) && (g = Date.now());
7
+ const o = n();
8
+ if (!(o.length !== i.length || o.some((r, a) => i[a] !== r)))
9
+ return t;
10
+ i = o;
11
+ let s;
12
+ if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t = l(...o), e.key && ((f = e.debug) != null && f.call(e))) {
13
+ const r = Math.round((Date.now() - g) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, b = a / 16, w = (u, D) => {
14
+ for (u = String(u); u.length < D; )
15
+ u = " " + u;
16
+ return u;
17
+ };
18
+ console.info(
19
+ `%c⏱ ${w(a, 5)} /${w(r, 5)} ms`,
20
+ `
21
+ font-size: .6rem;
22
+ font-weight: bold;
23
+ color: hsl(${Math.max(
24
+ 0,
25
+ Math.min(120 - 120 * b, 120)
26
+ )}deg 100% 31%);`,
27
+ e?.key
28
+ );
29
+ }
30
+ return e?.onChange && !(c && e.skipInitialOnChange) && e.onChange(t), c = !1, t;
31
+ }
32
+ return h.updateDeps = (d) => {
33
+ i = d;
34
+ }, h;
35
+ }
36
+ function k(n, l) {
37
+ if (n === void 0)
38
+ throw new Error("Unexpected undefined");
39
+ return n;
40
+ }
41
+ const y = (n, l) => Math.abs(n - l) < 1.01, C = (n, l, e) => {
42
+ let i;
43
+ return function(...t) {
44
+ n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
45
+ };
46
+ };
47
+ export {
48
+ y as approxEqual,
49
+ C as debounce,
50
+ T as memo,
51
+ k as notUndefined
52
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../clsx/dist/clsx.cjs"),y=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,r=C.clsx,O=(t,l)=>e=>{var s;if(l?.variants==null)return r(t,e?.class,e?.className);const{variants:v,defaultVariants:u}=l,V=Object.keys(v).map(n=>{const a=e?.[n],d=u?.[n];if(a===null)return null;const i=y(a)||y(d);return v[n][i]}),c=e&&Object.entries(e).reduce((n,a)=>{let[d,i]=a;return i===void 0||(n[d]=i),n},{}),N=l==null||(s=l.compoundVariants)===null||s===void 0?void 0:s.reduce((n,a)=>{let{class:d,className:i,...b}=a;return Object.entries(b).every(f=>{let[m,o]=f;return Array.isArray(o)?o.includes({...u,...c}[m]):{...u,...c}[m]===o})?[...n,d,i]:n},[]);return r(t,V,N,e?.class,e?.className)};exports.cva=O;exports.cx=r;
@@ -0,0 +1,35 @@
1
+ import { clsx as O } from "../../clsx/dist/clsx.js";
2
+ const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
+ var s;
4
+ if (l?.variants == null) return y(e, n?.class, n?.className);
5
+ const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
6
+ const a = n?.[t], u = d?.[t];
7
+ if (a === null) return null;
8
+ const i = m(a) || m(u);
9
+ return r[t][i];
10
+ }), v = n && Object.entries(n).reduce((t, a) => {
11
+ let [u, i] = a;
12
+ return i === void 0 || (t[u] = i), t;
13
+ }, {}), N = l == null || (s = l.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((t, a) => {
14
+ let { class: u, className: i, ...f } = a;
15
+ return Object.entries(f).every((C) => {
16
+ let [c, o] = C;
17
+ return Array.isArray(o) ? o.includes({
18
+ ...d,
19
+ ...v
20
+ }[c]) : {
21
+ ...d,
22
+ ...v
23
+ }[c] === o;
24
+ }) ? [
25
+ ...t,
26
+ u,
27
+ i
28
+ ] : t;
29
+ }, []);
30
+ return y(e, V, N, n?.class, n?.className);
31
+ };
32
+ export {
33
+ j as cva,
34
+ y as cx
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(r){var o,n,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var e=r.length;for(o=0;o<e;o++)r[o]&&(n=f(r[o]))&&(t&&(t+=" "),t+=n)}else for(n in r)r[n]&&(t&&(t+=" "),t+=n);return t}function i(){for(var r,o,n=0,t="",e=arguments.length;n<e;n++)(r=arguments[n])&&(o=f(r))&&(t&&(t+=" "),t+=o);return t}exports.clsx=i;