@serendie/ui 3.2.0-dev.202603311432 → 3.2.0-dev.202604210458

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 (517) hide show
  1. package/dist/client.js +6 -6
  2. package/dist/components/Accordion/Accordion.js +18 -21
  3. package/dist/components/Accordion/AccordionGroup.js +4 -4
  4. package/dist/components/Avatar/Avatar.js +19 -21
  5. package/dist/components/Badge/Badge.js +1 -1
  6. package/dist/components/Banner/Banner.js +4 -4
  7. package/dist/components/BottomNavigation/BottomNavigationItem.js +4 -4
  8. package/dist/components/Button/Button.js +6 -6
  9. package/dist/components/CheckBox/CheckBox.js +28 -32
  10. package/dist/components/ChoiceBox/ChoiceBox.js +46 -52
  11. package/dist/components/DashboardWidget/DashboardWidget.js +4 -4
  12. package/dist/components/DataTable/DataTableComponent.js +16 -17
  13. package/dist/components/DataTable/table/HeaderCell.js +4 -4
  14. package/dist/components/DataTable/table/Root.js +4 -4
  15. package/dist/components/DatePicker/DatePicker.js +107 -127
  16. package/dist/components/DatePicker/index.js +1 -1
  17. package/dist/components/Divider/Divider.js +4 -4
  18. package/dist/components/Drawer/Drawer.js +22 -26
  19. package/dist/components/DropdownMenu/DropdownMenu.js +36 -41
  20. package/dist/components/IconButton/IconButton.js +4 -4
  21. package/dist/components/List/ListItem.js +1 -1
  22. package/dist/components/ModalDialog/ModalDialog.js +27 -33
  23. package/dist/components/NotificationBadge/NotificationBadge.js +1 -1
  24. package/dist/components/Pagination/Pagination.js +54 -59
  25. package/dist/components/RadioButton/RadioButton.js +32 -36
  26. package/dist/components/RadioButton/RadioGroup.js +4 -4
  27. package/dist/components/Search/Search.js +67 -74
  28. package/dist/components/Select/Select.js +53 -60
  29. package/dist/components/Switch/Switch.js +18 -22
  30. package/dist/components/Tabs/TabItem.js +6 -6
  31. package/dist/components/Tabs/Tabs.js +9 -10
  32. package/dist/components/TextArea/TextArea.js +4 -4
  33. package/dist/components/TextField/TextField.js +1 -1
  34. package/dist/components/Toast/Toast.js +16 -17
  35. package/dist/components/Tooltip/Tooltip.js +30 -35
  36. package/dist/components/TopAppBar/TopAppBar.js +4 -4
  37. package/dist/index.js +6 -6
  38. package/dist/node_modules/@ark-ui/react/dist/_virtual/_rolldown/runtime.js +11 -0
  39. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-context.js +5 -0
  40. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +15 -12
  41. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-context.js +5 -0
  42. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +11 -8
  43. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +16 -16
  44. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +25 -22
  45. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root-provider.js +24 -0
  46. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root.js +21 -12
  47. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion.js +22 -0
  48. package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-context.js +2 -2
  49. package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-context.js +2 -2
  50. package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-props-context.js +1 -1
  51. package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion.js +15 -13
  52. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-context.js +5 -0
  53. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-fallback.js +12 -9
  54. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-image.js +11 -8
  55. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root-provider.js +20 -0
  56. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +21 -11
  57. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar.js +16 -0
  58. package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar-context.js +3 -3
  59. package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +14 -12
  60. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-context.js +3 -3
  61. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js +12 -9
  62. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group-provider.js +22 -0
  63. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group.js +32 -0
  64. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +13 -9
  65. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-indicator.js +17 -0
  66. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-label.js +13 -10
  67. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root-provider.js +20 -0
  68. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root.js +19 -13
  69. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.anatomy.js +5 -0
  70. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.js +24 -0
  71. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-context.js +1 -1
  72. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group-context.js +2 -2
  73. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group.js +43 -0
  74. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +16 -14
  75. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +14 -12
  76. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-root.js +15 -9
  77. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/split-collapsible-props.js +5 -3
  78. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible-context.js +1 -1
  79. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible.js +17 -12
  80. package/dist/node_modules/@ark-ui/react/dist/components/collection/list-collection.js +2 -2
  81. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-clear-trigger.js +16 -0
  82. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +13 -10
  83. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-context.js +5 -0
  84. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js +12 -9
  85. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-empty.js +15 -0
  86. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js +14 -10
  87. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-context.js +5 -0
  88. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group-label.js +17 -0
  89. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +20 -11
  90. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-indicator.js +17 -0
  91. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js +12 -9
  92. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js +19 -10
  93. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-label.js +16 -0
  94. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-list.js +16 -0
  95. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +11 -8
  96. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root-provider.js +25 -0
  97. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +24 -14
  98. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +17 -0
  99. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.anatomy.js +5 -0
  100. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.js +42 -0
  101. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-context.js +2 -2
  102. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-context.js +1 -1
  103. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-group-props-context.js +1 -1
  104. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-props-context.js +2 -2
  105. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox.js +13 -11
  106. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-clear-trigger.js +16 -0
  107. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +13 -10
  108. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +2 -2
  109. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +12 -9
  110. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +13 -10
  111. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +12 -9
  112. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +14 -7
  113. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +14 -11
  114. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +11 -8
  115. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-preset-trigger.js +17 -0
  116. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +14 -11
  117. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-range-text.js +21 -0
  118. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root-provider.js +26 -0
  119. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +32 -16
  120. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +12 -9
  121. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +16 -13
  122. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +18 -13
  123. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +12 -9
  124. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +12 -9
  125. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +12 -9
  126. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +22 -12
  127. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +11 -8
  128. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-value-text.js +25 -0
  129. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +12 -9
  130. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-trigger.js +17 -0
  131. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +16 -16
  132. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-cell.js +17 -0
  133. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-header-cell.js +17 -0
  134. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +16 -9
  135. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +3 -3
  136. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.js +64 -0
  137. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +1 -1
  138. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +2 -2
  139. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +2 -2
  140. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +2 -2
  141. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +16 -14
  142. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +19 -13
  143. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +12 -9
  144. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +15 -12
  145. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js +5 -0
  146. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +12 -9
  147. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js +13 -10
  148. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js +24 -0
  149. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js +17 -7
  150. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js +13 -10
  151. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js +21 -0
  152. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog.js +26 -0
  153. package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js +3 -3
  154. package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +15 -13
  155. package/dist/node_modules/@ark-ui/react/dist/components/factory.js +21 -22
  156. package/dist/node_modules/@ark-ui/react/dist/components/field/use-field-context.js +1 -1
  157. package/dist/node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js +11 -0
  158. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow-tip.js +16 -0
  159. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow.js +16 -0
  160. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-checkbox-item.js +35 -0
  161. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +13 -10
  162. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context-trigger.js +16 -0
  163. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context.js +5 -0
  164. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-indicator.js +16 -0
  165. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-context.js +5 -0
  166. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group-label.js +17 -0
  167. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +21 -12
  168. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-indicator.js +17 -0
  169. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-text.js +17 -0
  170. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +25 -13
  171. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js +14 -11
  172. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item-group.js +28 -0
  173. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item.js +39 -0
  174. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root-provider.js +31 -0
  175. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +32 -19
  176. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-separator.js +16 -0
  177. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger-item.js +21 -0
  178. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js +18 -17
  179. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu.js +48 -0
  180. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-context.js +2 -2
  181. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-context.js +2 -2
  182. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-group-context.js +2 -2
  183. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-machine-context.js +2 -2
  184. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js +2 -2
  185. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-trigger-item-context.js +1 -1
  186. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +19 -14
  187. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-context.js +1 -1
  188. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js +11 -8
  189. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-first-trigger.js +16 -0
  190. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-item.js +12 -9
  191. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-last-trigger.js +16 -0
  192. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js +13 -10
  193. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js +13 -10
  194. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root-provider.js +20 -0
  195. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js +20 -12
  196. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination.js +24 -0
  197. package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination-context.js +4 -4
  198. package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +15 -13
  199. package/dist/node_modules/@ark-ui/react/dist/components/portal/portal.js +16 -20
  200. package/dist/node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js +1 -1
  201. package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence-context.js +3 -3
  202. package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +13 -12
  203. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-context.js +5 -0
  204. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-indicator.js +16 -0
  205. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js +1 -1
  206. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +12 -9
  207. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js +12 -9
  208. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +14 -11
  209. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +26 -13
  210. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-label.js +16 -0
  211. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root-provider.js +20 -0
  212. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js +18 -10
  213. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group.js +26 -0
  214. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-context.js +1 -1
  215. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-context.js +2 -2
  216. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-props-context.js +1 -1
  217. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +20 -13
  218. package/dist/node_modules/@ark-ui/react/dist/components/select/select-clear-trigger.js +16 -0
  219. package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +13 -10
  220. package/dist/node_modules/@ark-ui/react/dist/components/select/select-context.js +5 -0
  221. package/dist/node_modules/@ark-ui/react/dist/components/select/select-control.js +12 -9
  222. package/dist/node_modules/@ark-ui/react/dist/components/select/select-hidden-select.js +23 -0
  223. package/dist/node_modules/@ark-ui/react/dist/components/select/select-indicator.js +16 -0
  224. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-context.js +5 -0
  225. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group-label.js +17 -0
  226. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group.js +24 -0
  227. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-indicator.js +17 -0
  228. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-text.js +17 -0
  229. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item.js +22 -13
  230. package/dist/node_modules/@ark-ui/react/dist/components/select/select-label.js +13 -10
  231. package/dist/node_modules/@ark-ui/react/dist/components/select/select-list.js +16 -0
  232. package/dist/node_modules/@ark-ui/react/dist/components/select/select-positioner.js +11 -8
  233. package/dist/node_modules/@ark-ui/react/dist/components/select/select-root-provider.js +25 -0
  234. package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +25 -14
  235. package/dist/node_modules/@ark-ui/react/dist/components/select/select-trigger.js +12 -9
  236. package/dist/node_modules/@ark-ui/react/dist/components/select/select-value-text.js +11 -7
  237. package/dist/node_modules/@ark-ui/react/dist/components/select/select.js +44 -0
  238. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-context.js +1 -1
  239. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-context.js +2 -2
  240. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-group-props.js +10 -0
  241. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-props-context.js +1 -1
  242. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +12 -10
  243. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-context.js +5 -0
  244. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-control.js +12 -9
  245. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +13 -9
  246. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-label.js +12 -9
  247. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js +20 -0
  248. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root.js +18 -12
  249. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js +10 -7
  250. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch.js +20 -0
  251. package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js +1 -1
  252. package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +13 -11
  253. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-content.js +28 -0
  254. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-indicator.js +16 -0
  255. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-list.js +13 -10
  256. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-trigger.js +14 -11
  257. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-context.js +5 -0
  258. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root-provider.js +24 -0
  259. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +20 -11
  260. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs.js +20 -0
  261. package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs-context.js +3 -3
  262. package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +15 -13
  263. package/dist/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +2 -2
  264. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-action-trigger.js +16 -0
  265. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-close-trigger.js +16 -0
  266. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-context.js +5 -0
  267. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-description.js +16 -0
  268. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-root.js +14 -10
  269. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-title.js +13 -10
  270. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast.js +18 -0
  271. package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +37 -22
  272. package/dist/node_modules/@ark-ui/react/dist/components/toast/use-toast-context.js +4 -4
  273. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow-tip.js +12 -9
  274. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow.js +12 -9
  275. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-content.js +13 -10
  276. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-context.js +5 -0
  277. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-positioner.js +13 -10
  278. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root-provider.js +20 -0
  279. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root.js +16 -9
  280. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-trigger.js +12 -8
  281. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip.js +22 -0
  282. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip-context.js +1 -1
  283. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip.js +15 -13
  284. package/dist/node_modules/@ark-ui/react/dist/providers/environment/use-environment-context.js +1 -1
  285. package/dist/node_modules/@ark-ui/react/dist/providers/locale/use-locale-context.js +5 -2
  286. package/dist/node_modules/@ark-ui/react/dist/utils/compose-refs.js +7 -10
  287. package/dist/node_modules/@ark-ui/react/dist/utils/create-context.js +17 -20
  288. package/dist/node_modules/@ark-ui/react/dist/utils/create-split-props.js +4 -7
  289. package/dist/node_modules/@ark-ui/react/dist/utils/render-strategy.js +6 -6
  290. package/dist/node_modules/@ark-ui/react/dist/utils/use-controllable-state.js +8 -0
  291. package/dist/node_modules/@ark-ui/react/dist/utils/use-effect-once.js +1 -1
  292. package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +7 -10
  293. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +294 -289
  294. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +195 -194
  295. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -97
  296. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +60 -62
  297. package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +18 -12
  298. package/dist/node_modules/@internationalized/date/dist/conversion.js +35 -35
  299. package/dist/node_modules/@internationalized/date/dist/queries.js +126 -75
  300. package/dist/node_modules/@internationalized/date/dist/string.js +29 -28
  301. package/dist/node_modules/@zag-js/accordion/dist/accordion.anatomy.js +6 -0
  302. package/dist/node_modules/@zag-js/accordion/dist/accordion.connect.js +129 -0
  303. package/dist/node_modules/@zag-js/accordion/dist/accordion.dom.js +30 -0
  304. package/dist/node_modules/@zag-js/accordion/dist/accordion.machine.js +137 -0
  305. package/dist/node_modules/@zag-js/aria-hidden/dist/aria-hidden.js +14 -0
  306. package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +12 -49
  307. package/dist/node_modules/@zag-js/aria-hidden/dist/walk-tree-outside.js +41 -0
  308. package/dist/node_modules/@zag-js/avatar/dist/avatar.anatomy.js +6 -0
  309. package/dist/node_modules/@zag-js/avatar/dist/avatar.connect.js +52 -0
  310. package/dist/node_modules/@zag-js/avatar/dist/avatar.dom.js +17 -0
  311. package/dist/node_modules/@zag-js/avatar/dist/avatar.machine.js +93 -0
  312. package/dist/node_modules/@zag-js/checkbox/dist/checkbox.anatomy.js +6 -0
  313. package/dist/node_modules/@zag-js/checkbox/dist/checkbox.connect.js +108 -0
  314. package/dist/node_modules/@zag-js/checkbox/dist/checkbox.dom.js +21 -0
  315. package/dist/node_modules/@zag-js/checkbox/dist/checkbox.machine.js +141 -0
  316. package/dist/node_modules/@zag-js/collapsible/dist/collapsible.anatomy.js +6 -0
  317. package/dist/node_modules/@zag-js/collapsible/dist/collapsible.connect.js +80 -0
  318. package/dist/node_modules/@zag-js/collapsible/dist/collapsible.dom.js +16 -0
  319. package/dist/node_modules/@zag-js/collapsible/dist/{index.js → collapsible.machine.js} +58 -115
  320. package/dist/node_modules/@zag-js/collection/dist/chunk-QZ7TP4HQ.js +4 -0
  321. package/dist/node_modules/@zag-js/collection/dist/{index.js → list-collection.js} +58 -56
  322. package/dist/node_modules/@zag-js/collection/dist/selection-map.js +58 -0
  323. package/dist/node_modules/@zag-js/combobox/dist/combobox.anatomy.js +21 -0
  324. package/dist/node_modules/@zag-js/combobox/dist/combobox.collection.js +6 -0
  325. package/dist/node_modules/@zag-js/combobox/dist/combobox.connect.js +341 -0
  326. package/dist/node_modules/@zag-js/combobox/dist/combobox.dom.js +68 -0
  327. package/dist/node_modules/@zag-js/combobox/dist/combobox.machine.js +936 -0
  328. package/dist/node_modules/@zag-js/core/dist/create-machine.js +32 -0
  329. package/dist/node_modules/@zag-js/core/dist/memo.js +11 -0
  330. package/dist/node_modules/@zag-js/core/dist/merge-props.js +48 -0
  331. package/dist/node_modules/@zag-js/core/dist/scope.js +19 -0
  332. package/dist/node_modules/@zag-js/core/dist/state.js +143 -0
  333. package/dist/node_modules/@zag-js/core/dist/types.js +5 -0
  334. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.anatomy.js +31 -0
  335. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.connect.js +742 -0
  336. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.dom.js +73 -0
  337. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.machine.js +1042 -0
  338. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.parse.js +8 -0
  339. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.utils.js +155 -0
  340. package/dist/node_modules/@zag-js/date-utils/dist/align.js +15 -0
  341. package/dist/node_modules/@zag-js/date-utils/dist/assertion.js +26 -0
  342. package/dist/node_modules/@zag-js/date-utils/dist/constrain.js +40 -0
  343. package/dist/node_modules/@zag-js/date-utils/dist/date-month.js +74 -0
  344. package/dist/node_modules/@zag-js/date-utils/dist/date-year.js +37 -0
  345. package/dist/node_modules/@zag-js/date-utils/dist/duration.js +13 -0
  346. package/dist/node_modules/@zag-js/date-utils/dist/format.js +25 -0
  347. package/dist/node_modules/@zag-js/date-utils/dist/formatter.js +30 -0
  348. package/dist/node_modules/@zag-js/date-utils/dist/get-era-format.js +8 -0
  349. package/dist/node_modules/@zag-js/date-utils/dist/mutation.js +9 -0
  350. package/dist/node_modules/@zag-js/date-utils/dist/pagination.js +95 -0
  351. package/dist/node_modules/@zag-js/date-utils/dist/parse-date.js +34 -0
  352. package/dist/node_modules/@zag-js/date-utils/dist/preset.js +41 -0
  353. package/dist/node_modules/@zag-js/dialog/dist/dialog.anatomy.js +14 -0
  354. package/dist/node_modules/@zag-js/dialog/dist/dialog.connect.js +104 -0
  355. package/dist/node_modules/@zag-js/dialog/dist/dialog.dom.js +42 -0
  356. package/dist/node_modules/@zag-js/dialog/dist/dialog.machine.js +220 -0
  357. package/dist/node_modules/@zag-js/dismissable/dist/dismissable-layer.js +80 -0
  358. package/dist/node_modules/@zag-js/dismissable/dist/escape-keydown.js +11 -0
  359. package/dist/node_modules/@zag-js/dismissable/dist/layer-stack.js +103 -0
  360. package/dist/node_modules/@zag-js/dismissable/dist/pointer-event-outside.js +37 -0
  361. package/dist/node_modules/@zag-js/dom-query/dist/caret.js +12 -0
  362. package/dist/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js +4 -0
  363. package/dist/node_modules/@zag-js/dom-query/dist/computed-style.js +8 -0
  364. package/dist/node_modules/@zag-js/dom-query/dist/controller.js +76 -0
  365. package/dist/node_modules/@zag-js/dom-query/dist/event.js +80 -0
  366. package/dist/node_modules/@zag-js/dom-query/dist/form.js +70 -0
  367. package/dist/node_modules/@zag-js/dom-query/dist/initial-focus.js +22 -0
  368. package/dist/node_modules/@zag-js/dom-query/dist/mutation-observer.js +41 -0
  369. package/dist/node_modules/@zag-js/dom-query/dist/navigate.js +13 -0
  370. package/dist/node_modules/@zag-js/dom-query/dist/node.js +87 -0
  371. package/dist/node_modules/@zag-js/dom-query/dist/overflow.js +27 -0
  372. package/dist/node_modules/@zag-js/dom-query/dist/platform.js +24 -0
  373. package/dist/node_modules/@zag-js/dom-query/dist/press.js +61 -0
  374. package/dist/node_modules/@zag-js/dom-query/dist/query.js +31 -0
  375. package/dist/node_modules/@zag-js/dom-query/dist/raf.js +51 -0
  376. package/dist/node_modules/@zag-js/dom-query/dist/resize-observer.js +34 -0
  377. package/dist/node_modules/@zag-js/dom-query/dist/searchable.js +17 -0
  378. package/dist/node_modules/@zag-js/dom-query/dist/set.js +29 -0
  379. package/dist/node_modules/@zag-js/dom-query/dist/shared.js +11 -0
  380. package/dist/node_modules/@zag-js/dom-query/dist/tabbable.js +110 -0
  381. package/dist/node_modules/@zag-js/dom-query/dist/text-selection.js +36 -0
  382. package/dist/node_modules/@zag-js/dom-query/dist/typeahead.js +25 -0
  383. package/dist/node_modules/@zag-js/dom-query/dist/visually-hidden.js +15 -0
  384. package/dist/node_modules/@zag-js/dom-query/dist/wait-for.js +42 -0
  385. package/dist/node_modules/@zag-js/focus-trap/dist/chunk-QZ7TP4HQ.js +4 -0
  386. package/dist/node_modules/@zag-js/focus-trap/dist/focus-trap.js +335 -0
  387. package/dist/node_modules/@zag-js/focus-trap/dist/index.js +24 -299
  388. package/dist/node_modules/@zag-js/focus-visible/dist/index.js +63 -39
  389. package/dist/node_modules/@zag-js/interact-outside/dist/frame-utils.js +60 -0
  390. package/dist/node_modules/@zag-js/interact-outside/dist/index.js +97 -131
  391. package/dist/node_modules/@zag-js/menu/dist/menu.anatomy.js +21 -0
  392. package/dist/node_modules/@zag-js/menu/dist/menu.connect.js +385 -0
  393. package/dist/node_modules/@zag-js/menu/dist/menu.dom.js +93 -0
  394. package/dist/node_modules/@zag-js/menu/dist/menu.machine.js +855 -0
  395. package/dist/node_modules/@zag-js/menu/dist/menu.utils.js +51 -0
  396. package/dist/node_modules/@zag-js/pagination/dist/pagination.anatomy.js +14 -0
  397. package/dist/node_modules/@zag-js/pagination/dist/pagination.connect.js +145 -0
  398. package/dist/node_modules/@zag-js/pagination/dist/pagination.dom.js +31 -0
  399. package/dist/node_modules/@zag-js/pagination/dist/pagination.machine.js +132 -0
  400. package/dist/node_modules/@zag-js/pagination/dist/pagination.utils.js +39 -0
  401. package/dist/node_modules/@zag-js/popper/dist/get-anchor.js +34 -0
  402. package/dist/node_modules/@zag-js/popper/dist/get-placement.js +190 -0
  403. package/dist/node_modules/@zag-js/popper/dist/get-styles.js +47 -0
  404. package/dist/node_modules/@zag-js/popper/dist/middleware.js +57 -0
  405. package/dist/node_modules/@zag-js/popper/dist/placement.js +11 -0
  406. package/dist/node_modules/@zag-js/presence/dist/presence.connect.js +16 -0
  407. package/dist/node_modules/@zag-js/presence/dist/{index.js → presence.machine.js} +39 -47
  408. package/dist/node_modules/@zag-js/radio-group/dist/radio-group.anatomy.js +13 -0
  409. package/dist/node_modules/@zag-js/radio-group/dist/radio-group.connect.js +197 -0
  410. package/dist/node_modules/@zag-js/radio-group/dist/radio-group.dom.js +57 -0
  411. package/dist/node_modules/@zag-js/radio-group/dist/radio-group.machine.js +179 -0
  412. package/dist/node_modules/@zag-js/react/dist/bindable.js +52 -0
  413. package/dist/node_modules/@zag-js/react/dist/machine.js +208 -0
  414. package/dist/node_modules/@zag-js/react/dist/normalize-props.js +5 -0
  415. package/dist/node_modules/@zag-js/react/dist/refs.js +15 -0
  416. package/dist/node_modules/@zag-js/react/dist/track.js +13 -0
  417. package/dist/node_modules/@zag-js/react/dist/use-layout-effect.js +5 -0
  418. package/dist/node_modules/@zag-js/rect-utils/dist/polygon.js +23 -0
  419. package/dist/node_modules/@zag-js/rect-utils/dist/rect.js +26 -0
  420. package/dist/node_modules/@zag-js/remove-scroll/dist/index.js +32 -23
  421. package/dist/node_modules/@zag-js/select/dist/select.anatomy.js +22 -0
  422. package/dist/node_modules/@zag-js/select/dist/select.collection.js +6 -0
  423. package/dist/node_modules/@zag-js/select/dist/select.connect.js +372 -0
  424. package/dist/node_modules/@zag-js/select/dist/select.dom.js +53 -0
  425. package/dist/node_modules/@zag-js/select/dist/select.machine.js +690 -0
  426. package/dist/node_modules/@zag-js/switch/dist/switch.anatomy.js +6 -0
  427. package/dist/node_modules/@zag-js/switch/dist/switch.connect.js +110 -0
  428. package/dist/node_modules/@zag-js/switch/dist/switch.dom.js +25 -0
  429. package/dist/node_modules/@zag-js/switch/dist/switch.machine.js +143 -0
  430. package/dist/node_modules/@zag-js/tabs/dist/tabs.anatomy.js +6 -0
  431. package/dist/node_modules/@zag-js/tabs/dist/tabs.connect.js +176 -0
  432. package/dist/node_modules/@zag-js/tabs/dist/tabs.dom.js +47 -0
  433. package/dist/node_modules/@zag-js/tabs/dist/tabs.machine.js +268 -0
  434. package/dist/node_modules/@zag-js/toast/dist/index.js +6 -798
  435. package/dist/node_modules/@zag-js/toast/dist/toast-group.connect.js +54 -0
  436. package/dist/node_modules/@zag-js/toast/dist/toast-group.machine.js +236 -0
  437. package/dist/node_modules/@zag-js/toast/dist/toast.anatomy.js +13 -0
  438. package/dist/node_modules/@zag-js/toast/dist/toast.connect.js +102 -0
  439. package/dist/node_modules/@zag-js/toast/dist/toast.dom.js +10 -0
  440. package/dist/node_modules/@zag-js/toast/dist/toast.machine.js +234 -0
  441. package/dist/node_modules/@zag-js/toast/dist/toast.store.js +134 -0
  442. package/dist/node_modules/@zag-js/toast/dist/toast.utils.js +122 -0
  443. package/dist/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js +6 -0
  444. package/dist/node_modules/@zag-js/tooltip/dist/tooltip.connect.js +120 -0
  445. package/dist/node_modules/@zag-js/tooltip/dist/tooltip.dom.js +25 -0
  446. package/dist/node_modules/@zag-js/tooltip/dist/{index.js → tooltip.machine.js} +109 -188
  447. package/dist/node_modules/@zag-js/tooltip/dist/tooltip.store.js +9 -0
  448. package/dist/node_modules/@zag-js/types/dist/prop-types.js +10 -0
  449. package/dist/node_modules/@zag-js/utils/dist/array.js +39 -0
  450. package/dist/node_modules/@zag-js/utils/dist/chunk-MXGZDBDQ.js +8 -0
  451. package/dist/node_modules/@zag-js/utils/dist/equal.js +27 -0
  452. package/dist/node_modules/@zag-js/utils/dist/functions.js +28 -0
  453. package/dist/node_modules/@zag-js/utils/dist/guard.js +19 -0
  454. package/dist/node_modules/@zag-js/utils/dist/number.js +11 -0
  455. package/dist/node_modules/@zag-js/utils/dist/object.js +13 -0
  456. package/dist/node_modules/@zag-js/utils/dist/store.js +25 -0
  457. package/dist/node_modules/@zag-js/utils/dist/timers.js +39 -0
  458. package/dist/node_modules/@zag-js/utils/dist/warning.js +25 -0
  459. package/dist/styled-system/css/css.js +1 -1
  460. package/dist/styled-system/helpers.js +85 -83
  461. package/dist/styled-system/jsx/is-valid-prop.js +1 -1
  462. package/dist/styles.css +1 -1
  463. package/package.json +18 -21
  464. package/styled-system/css/css.js +1 -1
  465. package/styled-system/helpers.js +3 -0
  466. package/styled-system/jsx/is-valid-prop.js +1 -1
  467. package/styled-system/patterns/aspect-ratio.d.ts +0 -1
  468. package/styled-system/patterns/bleed.d.ts +0 -1
  469. package/styled-system/patterns/box.d.ts +0 -1
  470. package/styled-system/patterns/center.d.ts +0 -1
  471. package/styled-system/patterns/circle.d.ts +0 -1
  472. package/styled-system/patterns/container.d.ts +0 -1
  473. package/styled-system/patterns/cq.d.ts +0 -1
  474. package/styled-system/patterns/divider.d.ts +0 -1
  475. package/styled-system/patterns/flex.d.ts +0 -1
  476. package/styled-system/patterns/float.d.ts +0 -1
  477. package/styled-system/patterns/grid-item.d.ts +0 -1
  478. package/styled-system/patterns/grid.d.ts +0 -1
  479. package/styled-system/patterns/hstack.d.ts +0 -1
  480. package/styled-system/patterns/link-overlay.d.ts +0 -1
  481. package/styled-system/patterns/spacer.d.ts +0 -1
  482. package/styled-system/patterns/square.d.ts +0 -1
  483. package/styled-system/patterns/stack.d.ts +0 -1
  484. package/styled-system/patterns/visually-hidden.d.ts +0 -1
  485. package/styled-system/patterns/vstack.d.ts +0 -1
  486. package/styled-system/patterns/wrap.d.ts +0 -1
  487. package/styled-system/themes/theme-asagi.json +1 -1
  488. package/styled-system/themes/theme-konjo-dark.json +1 -1
  489. package/styled-system/themes/theme-kurikawa.json +1 -1
  490. package/styled-system/themes/theme-sumire.json +1 -1
  491. package/styled-system/themes/theme-tsutsuji.json +1 -1
  492. package/styled-system/tokens/tokens.d.ts +1 -1
  493. package/styled-system/types/conditions.d.ts +11 -11
  494. package/styled-system/types/prop-type.d.ts +2 -0
  495. package/styled-system/types/style-props.d.ts +3 -4
  496. package/dist/node_modules/@zag-js/accordion/dist/index.js +0 -290
  497. package/dist/node_modules/@zag-js/avatar/dist/index.js +0 -154
  498. package/dist/node_modules/@zag-js/checkbox/dist/index.js +0 -270
  499. package/dist/node_modules/@zag-js/combobox/dist/index.js +0 -1415
  500. package/dist/node_modules/@zag-js/core/dist/index.js +0 -92
  501. package/dist/node_modules/@zag-js/date-picker/dist/index.js +0 -1826
  502. package/dist/node_modules/@zag-js/date-utils/dist/index.js +0 -366
  503. package/dist/node_modules/@zag-js/dialog/dist/index.js +0 -324
  504. package/dist/node_modules/@zag-js/dismissable/dist/index.js +0 -188
  505. package/dist/node_modules/@zag-js/dom-query/dist/index.js +0 -633
  506. package/dist/node_modules/@zag-js/menu/dist/index.js +0 -1235
  507. package/dist/node_modules/@zag-js/pagination/dist/index.js +0 -273
  508. package/dist/node_modules/@zag-js/popper/dist/index.js +0 -260
  509. package/dist/node_modules/@zag-js/radio-group/dist/index.js +0 -407
  510. package/dist/node_modules/@zag-js/react/dist/index.js +0 -269
  511. package/dist/node_modules/@zag-js/rect-utils/dist/index.js +0 -46
  512. package/dist/node_modules/@zag-js/select/dist/index.js +0 -1088
  513. package/dist/node_modules/@zag-js/switch/dist/index.js +0 -275
  514. package/dist/node_modules/@zag-js/tabs/dist/index.js +0 -475
  515. package/dist/node_modules/@zag-js/types/dist/index.js +0 -12
  516. package/dist/node_modules/@zag-js/utils/dist/index.js +0 -173
  517. /package/dist/node_modules/@zag-js/anatomy/dist/{index.js → create-anatomy.js} +0 -0
@@ -1,122 +1,19 @@
1
- import { createAnatomy as D } from "../../anatomy/dist/index.js";
2
- import { addDomEvent as u, getOverflowAncestors as M, dataAttr as E, isLeftClick as I, isComposingEvent as V } from "../../dom-query/dist/index.js";
3
- import { trackFocusVisible as S, isFocusVisible as T } from "../../focus-visible/dist/index.js";
4
- import { getPlacement as k, getPlacementStyles as F } from "../../popper/dist/index.js";
5
- import { createStore as A } from "../../utils/dist/index.js";
6
- import { createMachine as G, createGuards as K } from "../../core/dist/index.js";
7
- import { createProps as L } from "../../types/dist/index.js";
8
- var $ = D("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content"), d = $.build(), b = (e) => {
9
- var t;
10
- return ((t = e.ids) == null ? void 0 : t.trigger) ?? `tooltip:${e.id}:trigger`;
11
- }, q = (e) => {
12
- var t;
13
- return ((t = e.ids) == null ? void 0 : t.content) ?? `tooltip:${e.id}:content`;
14
- }, B = (e) => {
15
- var t;
16
- return ((t = e.ids) == null ? void 0 : t.arrow) ?? `tooltip:${e.id}:arrow`;
17
- }, w = (e) => {
18
- var t;
19
- return ((t = e.ids) == null ? void 0 : t.positioner) ?? `tooltip:${e.id}:popper`;
20
- }, v = (e) => e.getById(b(e)), m = (e) => e.getById(w(e)), l = A({ id: null });
21
- function W(e, t) {
22
- const { state: o, context: s, send: r, scope: a, prop: n, event: O } = e, f = n("id"), P = !!n("aria-label"), p = o.matches("open", "closing"), h = b(a), y = q(a), c = n("disabled"), g = F({
23
- ...n("positioning"),
24
- placement: s.get("currentPlacement")
25
- });
26
- return {
27
- open: p,
28
- setOpen(i) {
29
- o.matches("open", "closing") !== i && r({ type: i ? "open" : "close" });
30
- },
31
- reposition(i = {}) {
32
- r({ type: "positioning.set", options: i });
33
- },
34
- getTriggerProps() {
35
- return t.button({
36
- ...d.trigger.attrs,
37
- id: h,
38
- dir: n("dir"),
39
- "data-expanded": E(p),
40
- "data-state": p ? "open" : "closed",
41
- "aria-describedby": p ? y : void 0,
42
- onClick(i) {
43
- i.defaultPrevented || c || n("closeOnClick") && r({ type: "close", src: "trigger.click" });
44
- },
45
- onFocus(i) {
46
- queueMicrotask(() => {
47
- i.defaultPrevented || c || O.src !== "trigger.pointerdown" && T() && r({ type: "open", src: "trigger.focus" });
48
- });
49
- },
50
- onBlur(i) {
51
- i.defaultPrevented || c || f === l.get("id") && r({ type: "close", src: "trigger.blur" });
52
- },
53
- onPointerDown(i) {
54
- i.defaultPrevented || c || I(i) && n("closeOnPointerDown") && f === l.get("id") && r({ type: "close", src: "trigger.pointerdown" });
55
- },
56
- onPointerMove(i) {
57
- i.defaultPrevented || c || i.pointerType !== "touch" && r({ type: "pointer.move" });
58
- },
59
- onPointerLeave() {
60
- c || r({ type: "pointer.leave" });
61
- },
62
- onPointerCancel() {
63
- c || r({ type: "pointer.leave" });
64
- }
65
- });
66
- },
67
- getArrowProps() {
68
- return t.element({
69
- id: B(a),
70
- ...d.arrow.attrs,
71
- dir: n("dir"),
72
- style: g.arrow
73
- });
74
- },
75
- getArrowTipProps() {
76
- return t.element({
77
- ...d.arrowTip.attrs,
78
- dir: n("dir"),
79
- style: g.arrowTip
80
- });
81
- },
82
- getPositionerProps() {
83
- return t.element({
84
- id: w(a),
85
- ...d.positioner.attrs,
86
- dir: n("dir"),
87
- style: g.floating
88
- });
89
- },
90
- getContentProps() {
91
- return t.element({
92
- ...d.content.attrs,
93
- dir: n("dir"),
94
- hidden: !p,
95
- "data-state": p ? "open" : "closed",
96
- role: P ? void 0 : "tooltip",
97
- id: P ? void 0 : y,
98
- "data-placement": s.get("currentPlacement"),
99
- onPointerEnter() {
100
- r({ type: "content.pointer.move" });
101
- },
102
- onPointerLeave() {
103
- r({ type: "content.pointer.leave" });
104
- },
105
- style: {
106
- pointerEvents: n("interactive") ? "auto" : "none"
107
- }
108
- });
109
- }
110
- };
111
- }
112
- var { and: x, not: C } = K(), X = G({
1
+ import { trackFocusVisible as v } from "../../focus-visible/dist/index.js";
2
+ import { getPlacement as p } from "../../popper/dist/get-placement.js";
3
+ import { getActiveTriggerEl as a, getPositionerEl as d } from "./tooltip.dom.js";
4
+ import { store as l } from "./tooltip.store.js";
5
+ import { createMachine as m, createGuards as k } from "../../core/dist/create-machine.js";
6
+ import { addDomEvent as u, isComposingEvent as f } from "../../dom-query/dist/event.js";
7
+ import { getOverflowAncestors as P } from "../../dom-query/dist/overflow.js";
8
+ import { ensureProps as V } from "../../utils/dist/warning.js";
9
+ var { and: C, not: O } = k(), S = m({
113
10
  initialState: ({ prop: e }) => e("open") || e("defaultOpen") ? "open" : "closed",
114
11
  props({ props: e }) {
12
+ V(e, ["id"]);
115
13
  const t = e.closeOnClick ?? !0, o = e.closeOnPointerDown ?? t;
116
14
  return {
117
- id: "x",
118
- openDelay: 1e3,
119
- closeDelay: 500,
15
+ openDelay: 400,
16
+ closeDelay: 150,
120
17
  closeOnEscape: !0,
121
18
  interactive: !1,
122
19
  closeOnScroll: !0,
@@ -131,17 +28,34 @@ var { and: x, not: C } = K(), X = G({
131
28
  };
132
29
  },
133
30
  effects: ["trackFocusVisible", "trackStore"],
134
- context: ({ bindable: e }) => ({
31
+ context: ({ bindable: e, prop: t, scope: o }) => ({
135
32
  currentPlacement: e(() => ({ defaultValue: void 0 })),
136
- hasPointerMoveOpened: e(() => ({ defaultValue: !1 }))
33
+ hasPointerMoveOpened: e(() => ({ defaultValue: null })),
34
+ triggerValue: e(() => ({
35
+ defaultValue: t("defaultTriggerValue") ?? null,
36
+ value: t("triggerValue"),
37
+ onChange(n) {
38
+ const r = t("onTriggerValueChange");
39
+ if (!r) return;
40
+ const i = a(o, n);
41
+ r({ value: n, triggerElement: i });
42
+ }
43
+ }))
137
44
  }),
138
45
  watch({ track: e, action: t, prop: o }) {
139
46
  e([() => o("disabled")], () => {
140
47
  t(["closeIfDisabled"]);
141
48
  }), e([() => o("open")], () => {
142
49
  t(["toggleVisibility"]);
50
+ }), e([() => o("triggerValue")], () => {
51
+ t(["repositionImmediate"]);
143
52
  });
144
53
  },
54
+ on: {
55
+ "triggerValue.set": {
56
+ actions: ["setTriggerValue", "repositionImmediate"]
57
+ }
58
+ },
145
59
  states: {
146
60
  closed: {
147
61
  entry: ["clearGlobalId"],
@@ -152,11 +66,11 @@ var { and: x, not: C } = K(), X = G({
152
66
  open: [
153
67
  {
154
68
  guard: "isOpenControlled",
155
- actions: ["invokeOnOpen"]
69
+ actions: ["setTriggerValue", "invokeOnOpen"]
156
70
  },
157
71
  {
158
72
  target: "open",
159
- actions: ["invokeOnOpen"]
73
+ actions: ["setTriggerValue", "invokeOnOpen"]
160
74
  }
161
75
  ],
162
76
  "pointer.leave": {
@@ -164,13 +78,14 @@ var { and: x, not: C } = K(), X = G({
164
78
  },
165
79
  "pointer.move": [
166
80
  {
167
- guard: x("noVisibleTooltip", C("hasPointerMoveOpened")),
168
- target: "opening"
81
+ guard: C("noVisibleTooltip", O("hasPointerMoveOpened")),
82
+ target: "opening",
83
+ actions: ["setTriggerValue"]
169
84
  },
170
85
  {
171
- guard: C("hasPointerMoveOpened"),
86
+ guard: O("hasPointerMoveOpened"),
172
87
  target: "open",
173
- actions: ["setPointerMoveOpened", "invokeOnOpen"]
88
+ actions: ["setPointerMoveOpened", "invokeOnOpen", "setTriggerValue"]
174
89
  }
175
90
  ]
176
91
  }
@@ -197,11 +112,11 @@ var { and: x, not: C } = K(), X = G({
197
112
  open: [
198
113
  {
199
114
  guard: "isOpenControlled",
200
- actions: ["invokeOnOpen"]
115
+ actions: ["setTriggerValue", "invokeOnOpen"]
201
116
  },
202
117
  {
203
118
  target: "open",
204
- actions: ["invokeOnOpen"]
119
+ actions: ["setTriggerValue", "invokeOnOpen"]
205
120
  }
206
121
  ],
207
122
  "pointer.leave": [
@@ -267,6 +182,12 @@ var { and: x, not: C } = K(), X = G({
267
182
  },
268
183
  "positioning.set": {
269
184
  actions: ["reposition"]
185
+ },
186
+ "triggerValue.set": {
187
+ // Transition to closing (which cleans up trackPositioning) then immediately back to open
188
+ // This re-creates the positioning effect with the new trigger
189
+ target: "closing",
190
+ actions: ["setTriggerValue", "immediateReopen"]
270
191
  }
271
192
  }
272
193
  },
@@ -303,13 +224,20 @@ var { and: x, not: C } = K(), X = G({
303
224
  {
304
225
  guard: "isOpenControlled",
305
226
  // We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
306
- actions: ["setPointerMoveOpened", "invokeOnOpen", "toggleVisibility"]
227
+ actions: ["setPointerMoveOpened", "setTriggerValue", "invokeOnOpen", "toggleVisibility"]
307
228
  },
308
229
  {
309
230
  target: "open",
310
- actions: ["setPointerMoveOpened", "invokeOnOpen"]
231
+ actions: ["setPointerMoveOpened", "setTriggerValue", "invokeOnOpen"]
311
232
  }
312
233
  ],
234
+ "triggerValue.set": {
235
+ target: "open",
236
+ actions: ["setTriggerValue", "repositionImmediate"]
237
+ },
238
+ reopen: {
239
+ target: "open"
240
+ },
313
241
  "content.pointer.move": {
314
242
  guard: "isInteractive",
315
243
  target: "open"
@@ -325,15 +253,16 @@ var { and: x, not: C } = K(), X = G({
325
253
  noVisibleTooltip: () => l.get("id") === null,
326
254
  isVisible: ({ prop: e }) => e("id") === l.get("id"),
327
255
  isInteractive: ({ prop: e }) => !!e("interactive"),
328
- hasPointerMoveOpened: ({ context: e }) => e.get("hasPointerMoveOpened"),
256
+ hasPointerMoveOpened: ({ context: e }) => !!e.get("hasPointerMoveOpened"),
329
257
  isOpenControlled: ({ prop: e }) => e("open") !== void 0
330
258
  },
331
259
  actions: {
332
260
  setGlobalId: ({ prop: e }) => {
333
- l.set("id", e("id"));
261
+ const t = l.get("id"), o = t !== null && t !== e("id");
262
+ l.update({ id: e("id"), prevId: o ? t : null, instant: o });
334
263
  },
335
264
  clearGlobalId: ({ prop: e }) => {
336
- e("id") === l.get("id") && l.set("id", null);
265
+ e("id") === l.get("id") && l.update({ id: null, prevId: null, instant: !1 });
337
266
  },
338
267
  invokeOnOpen: ({ prop: e }) => {
339
268
  var t;
@@ -346,16 +275,23 @@ var { and: x, not: C } = K(), X = G({
346
275
  closeIfDisabled: ({ prop: e, send: t }) => {
347
276
  e("disabled") && t({ type: "close", src: "disabled.change" });
348
277
  },
349
- reposition: ({ context: e, event: t, prop: o, scope: s }) => {
278
+ reposition: ({ context: e, event: t, prop: o, scope: n }) => {
350
279
  if (t.type !== "positioning.set") return;
351
- const r = () => m(s);
352
- return k(v(s), r, {
280
+ p(() => a(n, e.get("triggerValue")), () => d(n), {
353
281
  ...o("positioning"),
354
282
  ...t.options,
355
- defer: !0,
356
283
  listeners: !1,
357
- onComplete(a) {
358
- e.set("currentPlacement", a.placement);
284
+ onComplete(c) {
285
+ e.set("currentPlacement", c.placement);
286
+ }
287
+ });
288
+ },
289
+ repositionImmediate: ({ context: e, event: t, prop: o, scope: n }) => {
290
+ const r = t.value ?? e.get("triggerValue");
291
+ return p(() => a(n, r), () => d(n), {
292
+ ...o("positioning"),
293
+ onComplete(g) {
294
+ e.set("currentPlacement", g.placement);
359
295
  }
360
296
  });
361
297
  },
@@ -367,45 +303,51 @@ var { and: x, not: C } = K(), X = G({
367
303
  });
368
304
  });
369
305
  },
370
- setPointerMoveOpened: ({ context: e }) => {
371
- e.set("hasPointerMoveOpened", !0);
306
+ setPointerMoveOpened: ({ context: e, event: t }) => {
307
+ var n;
308
+ const o = t.triggerId ?? ((n = t.previousEvent) == null ? void 0 : n.triggerId);
309
+ e.set("hasPointerMoveOpened", o ?? null);
372
310
  },
373
311
  clearPointerMoveOpened: ({ context: e }) => {
374
- e.set("hasPointerMoveOpened", !1);
312
+ e.set("hasPointerMoveOpened", null);
313
+ },
314
+ setTriggerValue: ({ context: e, event: t }) => {
315
+ t.value !== void 0 && e.set("triggerValue", t.value);
316
+ },
317
+ immediateReopen: ({ send: e }) => {
318
+ queueMicrotask(() => {
319
+ e({ type: "reopen" });
320
+ });
375
321
  }
376
322
  },
377
323
  effects: {
378
324
  trackFocusVisible: ({ scope: e }) => {
379
325
  var t;
380
- return S({ root: (t = e.getRootNode) == null ? void 0 : t.call(e) });
381
- },
382
- trackPositioning: ({ context: e, prop: t, scope: o }) => {
383
- e.get("currentPlacement") || e.set("currentPlacement", t("positioning").placement);
384
- const s = () => m(o);
385
- return k(v(o), s, {
386
- ...t("positioning"),
387
- defer: !0,
388
- onComplete(r) {
389
- e.set("currentPlacement", r.placement);
390
- }
391
- });
326
+ return v({ root: (t = e.getRootNode) == null ? void 0 : t.call(e) });
392
327
  },
328
+ trackPositioning: ({ context: e, prop: t, scope: o }) => (e.get("currentPlacement") || e.set("currentPlacement", t("positioning").placement), p(() => a(o, e.get("triggerValue")), () => d(o), {
329
+ ...t("positioning"),
330
+ defer: !0,
331
+ onComplete(i) {
332
+ e.set("currentPlacement", i.placement);
333
+ }
334
+ })),
393
335
  trackPointerlockChange: ({ send: e, scope: t }) => {
394
336
  const o = t.getDoc();
395
337
  return u(o, "pointerlockchange", () => e({ type: "close", src: "pointerlock:change" }), !1);
396
338
  },
397
- trackScroll: ({ send: e, prop: t, scope: o }) => {
339
+ trackScroll: ({ send: e, prop: t, scope: o, context: n }) => {
398
340
  if (!t("closeOnScroll")) return;
399
- const s = v(o);
400
- if (!s) return;
401
- const a = M(s).map((n) => u(n, "scroll", () => {
341
+ const r = n.get("triggerValue"), i = a(o, r);
342
+ if (!i) return;
343
+ const g = P(i).map((s) => u(s, "scroll", () => {
402
344
  e({ type: "close", src: "scroll" });
403
345
  }, {
404
346
  passive: !0,
405
347
  capture: !0
406
348
  }));
407
349
  return () => {
408
- a.forEach((n) => n == null ? void 0 : n());
350
+ g.forEach((s) => s == null ? void 0 : s());
409
351
  };
410
352
  },
411
353
  trackStore: ({ prop: e, send: t }) => {
@@ -416,45 +358,24 @@ var { and: x, not: C } = K(), X = G({
416
358
  });
417
359
  }), () => o == null ? void 0 : o();
418
360
  },
419
- trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? u(document, "keydown", (s) => {
420
- V(s) || s.key === "Escape" && (s.stopPropagation(), e({ type: "close", src: "keydown.escape" }));
361
+ trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? u(document, "keydown", (n) => {
362
+ f(n) || n.key === "Escape" && (n.stopPropagation(), e({ type: "close", src: "keydown.escape" }));
421
363
  }, !0) : void 0,
422
- waitForOpenDelay: ({ send: e, prop: t }) => {
423
- const o = setTimeout(() => {
424
- e({ type: "after.openDelay" });
364
+ waitForOpenDelay: ({ send: e, prop: t, event: o }) => {
365
+ const n = setTimeout(() => {
366
+ e({ type: "after.openDelay", previousEvent: o });
425
367
  }, t("openDelay"));
426
- return () => clearTimeout(o);
368
+ return () => clearTimeout(n);
427
369
  },
428
- waitForCloseDelay: ({ send: e, prop: t }) => {
429
- const o = setTimeout(() => {
430
- e({ type: "after.closeDelay" });
370
+ waitForCloseDelay: ({ send: e, prop: t, event: o }) => {
371
+ const n = setTimeout(() => {
372
+ e({ type: "after.closeDelay", previousEvent: o });
431
373
  }, t("closeDelay"));
432
- return () => clearTimeout(o);
374
+ return () => clearTimeout(n);
433
375
  }
434
376
  }
435
377
  }
436
378
  });
437
- L()([
438
- "aria-label",
439
- "closeDelay",
440
- "closeOnEscape",
441
- "closeOnPointerDown",
442
- "closeOnScroll",
443
- "closeOnClick",
444
- "dir",
445
- "disabled",
446
- "getRootNode",
447
- "id",
448
- "ids",
449
- "interactive",
450
- "onOpenChange",
451
- "defaultOpen",
452
- "open",
453
- "openDelay",
454
- "positioning"
455
- ]);
456
379
  export {
457
- $ as anatomy,
458
- W as connect,
459
- X as machine
380
+ S as machine
460
381
  };
@@ -0,0 +1,9 @@
1
+ import { createStore as r } from "../../utils/dist/store.js";
2
+ var t = r({
3
+ id: null,
4
+ prevId: null,
5
+ instant: !1
6
+ });
7
+ export {
8
+ t as store
9
+ };
@@ -0,0 +1,10 @@
1
+ function u(e) {
2
+ return new Proxy({}, {
3
+ get(n, r) {
4
+ return r === "style" ? (t) => e({ style: t }).style : e;
5
+ }
6
+ });
7
+ }
8
+ export {
9
+ u as createNormalizer
10
+ };
@@ -0,0 +1,39 @@
1
+ function h(r) {
2
+ return r == null ? [] : Array.isArray(r) ? r : [r];
3
+ }
4
+ var x = (r) => r[0], s = (r) => r[r.length - 1], i = (r, n) => r.indexOf(n) !== -1, l = (r, ...n) => r.concat(n), p = (r, ...n) => r.filter((t) => !n.includes(t)), y = (r) => Array.from(new Set(r)), A = (r, n) => i(r, n) ? p(r, n) : l(r, n);
5
+ function f(r, n, t = {}) {
6
+ const { step: e = 1, loop: u = !0 } = t, o = n + e, a = r.length, c = a - 1;
7
+ return n === -1 ? e > 0 ? 0 : c : o < 0 ? u ? c : 0 : o >= a ? u ? 0 : n > a ? a : n : o;
8
+ }
9
+ function g(r, n, t = {}) {
10
+ return r[f(r, n, t)];
11
+ }
12
+ function d(r, n, t = {}) {
13
+ const { step: e = 1, loop: u = !0 } = t;
14
+ return f(r, n, { step: -e, loop: u });
15
+ }
16
+ function v(r, n, t = {}) {
17
+ return r[d(r, n, t)];
18
+ }
19
+ function I(r, n) {
20
+ return r.reduce((t, e, u) => {
21
+ var o;
22
+ return u % n === 0 ? t.push([e]) : (o = s(t)) == null || o.push(e), t;
23
+ }, []);
24
+ }
25
+ export {
26
+ l as add,
27
+ A as addOrRemove,
28
+ I as chunk,
29
+ x as first,
30
+ i as has,
31
+ s as last,
32
+ g as next,
33
+ f as nextIndex,
34
+ v as prev,
35
+ d as prevIndex,
36
+ p as remove,
37
+ h as toArray,
38
+ y as uniq
39
+ };
@@ -0,0 +1,8 @@
1
+ var _ = Object.defineProperty, t = (e) => {
2
+ throw TypeError(e);
3
+ }, d = (e, r, a) => r in e ? _(e, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[r] = a, n = (e, r, a) => d(e, typeof r != "symbol" ? r + "" : r, a), i = (e, r, a) => r.has(e) || t("Cannot " + a), o = (e, r, a) => (i(e, r, "read from private field"), r.get(e)), p = (e, r, a) => r.has(e) ? t("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, a);
4
+ export {
5
+ p as __privateAdd,
6
+ o as __privateGet,
7
+ n as __publicField
8
+ };
@@ -0,0 +1,27 @@
1
+ var l = (r) => (r == null ? void 0 : r.constructor.name) === "Array", u = (r, t) => {
2
+ if (r.length !== t.length) return !1;
3
+ for (let e = 0; e < r.length; e++)
4
+ if (!o(r[e], t[e])) return !1;
5
+ return !0;
6
+ }, o = (r, t) => {
7
+ if (Object.is(r, t)) return !0;
8
+ if (r == null && t != null || r != null && t == null) return !1;
9
+ if (typeof (r == null ? void 0 : r.isEqual) == "function" && typeof (t == null ? void 0 : t.isEqual) == "function")
10
+ return r.isEqual(t);
11
+ if (typeof r == "function" && typeof t == "function")
12
+ return r.toString() === t.toString();
13
+ if (l(r) && l(t))
14
+ return u(Array.from(r), Array.from(t));
15
+ if (typeof r != "object" || typeof t != "object") return !1;
16
+ const e = Object.keys(t ?? /* @__PURE__ */ Object.create(null)), i = e.length;
17
+ for (let n = 0; n < i; n++)
18
+ if (!Reflect.has(r, e[n])) return !1;
19
+ for (let n = 0; n < i; n++) {
20
+ const f = e[n];
21
+ if (!o(r[f], t[f])) return !1;
22
+ }
23
+ return !0;
24
+ };
25
+ export {
26
+ o as isEqual
27
+ };
@@ -0,0 +1,28 @@
1
+ import { isFunction as c } from "./guard.js";
2
+ var s = (r, ...t) => (typeof r == "function" ? r(...t) : r) ?? void 0, f = (r) => r, l = (r) => r(), p = () => {
3
+ }, v = (...r) => (...t) => {
4
+ r.forEach(function(n) {
5
+ n == null || n(...t);
6
+ });
7
+ }, g = /* @__PURE__ */ (() => {
8
+ let r = 0;
9
+ return () => (r++, r.toString(36));
10
+ })();
11
+ function e(r, t, ...n) {
12
+ var a;
13
+ if (r in t) {
14
+ const i = t[r];
15
+ return c(i) ? i(...n) : i;
16
+ }
17
+ const o = new Error(`No matching key: ${JSON.stringify(r)} in ${JSON.stringify(Object.keys(t))}`);
18
+ throw (a = Error.captureStackTrace) == null || a.call(Error, o, e), o;
19
+ }
20
+ export {
21
+ v as callAll,
22
+ f as cast,
23
+ l as identity,
24
+ e as match,
25
+ p as noop,
26
+ s as runIfFn,
27
+ g as uuid
28
+ };
@@ -0,0 +1,19 @@
1
+ var a = (t) => Array.isArray(t), b = (t) => t === !0 || t === !1, o = (t) => t != null && typeof t == "object", f = (t) => o(t) && !a(t), y = (t) => typeof t == "number" && !Number.isNaN(t), j = (t) => typeof t == "string", v = (t) => typeof t == "function", O = (t) => t == null, i = (t, r) => Object.prototype.hasOwnProperty.call(t, r), c = (t) => Object.prototype.toString.call(t), n = Function.prototype.toString, l = n.call(Object), g = (t) => {
2
+ if (!o(t) || c(t) != "[object Object]" || u(t)) return !1;
3
+ const r = Object.getPrototypeOf(t);
4
+ if (r === null) return !0;
5
+ const e = i(r, "constructor") && r.constructor;
6
+ return typeof e == "function" && e instanceof e && n.call(e) == l;
7
+ }, s = (t) => typeof t == "object" && t !== null && "$$typeof" in t && "props" in t, p = (t) => typeof t == "object" && t !== null && "__v_isVNode" in t, u = (t) => s(t) || p(t);
8
+ export {
9
+ i as hasProp,
10
+ a as isArray,
11
+ b as isBoolean,
12
+ v as isFunction,
13
+ O as isNull,
14
+ y as isNumber,
15
+ f as isObject,
16
+ o as isObjectLike,
17
+ g as isPlainObject,
18
+ j as isString
19
+ };
@@ -0,0 +1,11 @@
1
+ var { min: c, max: i } = Math, o = (a) => Number.isNaN(a), t = (a) => o(a) ? 0 : a, s = (a, n, e) => {
2
+ const r = t(a), l = n == null || r >= n, u = e == null || r <= e;
3
+ return l && u;
4
+ }, m = (a, n, e) => c(i(t(a), n), e), N = (a) => typeof a == "number" ? `${a}px` : a;
5
+ export {
6
+ m as clampValue,
7
+ o as isNaN,
8
+ s as isValueWithinRange,
9
+ t as nan,
10
+ N as toPx
11
+ };
@@ -0,0 +1,13 @@
1
+ import { isPlainObject as r } from "./guard.js";
2
+ function f(t) {
3
+ if (!r(t) || t === void 0) return t;
4
+ const o = Reflect.ownKeys(t).filter((e) => typeof e == "string"), i = {};
5
+ for (const e of o) {
6
+ const n = t[e];
7
+ n !== void 0 && (i[e] = f(n));
8
+ }
9
+ return i;
10
+ }
11
+ export {
12
+ f as compact
13
+ };
@@ -0,0 +1,25 @@
1
+ function b(i, r = Object.is) {
2
+ let e = { ...i };
3
+ const n = /* @__PURE__ */ new Set(), u = (t) => (n.add(t), () => n.delete(t)), a = () => {
4
+ n.forEach((t) => t());
5
+ };
6
+ return {
7
+ subscribe: u,
8
+ get: (t) => e[t],
9
+ set: (t, s) => {
10
+ r(e[t], s) || (e[t] = s, a());
11
+ },
12
+ update: (t) => {
13
+ let s = !1;
14
+ for (const o in t) {
15
+ const c = t[o];
16
+ c !== void 0 && !r(e[o], c) && (e[o] = c, s = !0);
17
+ }
18
+ s && a();
19
+ },
20
+ snapshot: () => ({ ...e })
21
+ };
22
+ }
23
+ export {
24
+ b as createStore
25
+ };
@@ -0,0 +1,39 @@
1
+ import { __publicField as s, __privateAdd as u, __privateGet as a } from "./chunk-MXGZDBDQ.js";
2
+ var e = () => performance.now(), i, l = class {
3
+ constructor(r) {
4
+ s(this, "onTick", r), s(this, "frameId", null), s(this, "pausedAtMs", null), s(this, "context"), s(this, "cancelFrame", () => {
5
+ this.frameId !== null && (cancelAnimationFrame(this.frameId), this.frameId = null);
6
+ }), s(this, "setStartMs", (t) => {
7
+ this.context.startMs = t;
8
+ }), s(this, "start", () => {
9
+ if (this.frameId !== null) return;
10
+ const t = e();
11
+ this.pausedAtMs !== null ? (this.context.startMs += t - this.pausedAtMs, this.pausedAtMs = null) : this.context.startMs = t, this.frameId = requestAnimationFrame(a(this, i));
12
+ }), s(this, "pause", () => {
13
+ this.frameId !== null && (this.cancelFrame(), this.pausedAtMs = e());
14
+ }), s(this, "stop", () => {
15
+ this.frameId !== null && (this.cancelFrame(), this.pausedAtMs = null);
16
+ }), u(this, i, (t) => {
17
+ if (this.context.now = t, this.context.deltaMs = t - this.context.startMs, this.onTick(this.context) === !1) {
18
+ this.stop();
19
+ return;
20
+ }
21
+ this.frameId = requestAnimationFrame(a(this, i));
22
+ }), this.context = { now: 0, startMs: e(), deltaMs: 0 };
23
+ }
24
+ get elapsedMs() {
25
+ return this.pausedAtMs !== null ? this.pausedAtMs - this.context.startMs : e() - this.context.startMs;
26
+ }
27
+ };
28
+ i = /* @__PURE__ */ new WeakMap();
29
+ function c(r, t) {
30
+ const n = new l(({ deltaMs: h }) => {
31
+ if (h >= t)
32
+ return r(), !1;
33
+ });
34
+ return n.start(), () => n.stop();
35
+ }
36
+ export {
37
+ l as Timer,
38
+ c as setRafTimeout
39
+ };