@serendie/ui 3.2.0 → 3.2.1-dev.202604251106

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 (519) 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/BottomNavigation.js +12 -11
  8. package/dist/components/BottomNavigation/BottomNavigationItem.js +4 -4
  9. package/dist/components/Button/Button.js +6 -6
  10. package/dist/components/CheckBox/CheckBox.js +28 -32
  11. package/dist/components/ChoiceBox/ChoiceBox.js +46 -52
  12. package/dist/components/DashboardWidget/DashboardWidget.js +4 -4
  13. package/dist/components/DataTable/DataTableComponent.js +16 -17
  14. package/dist/components/DataTable/table/BodyCell.js +3 -2
  15. package/dist/components/DataTable/table/HeaderCell.js +16 -15
  16. package/dist/components/DataTable/table/Root.js +7 -6
  17. package/dist/components/DatePicker/DatePicker.js +107 -127
  18. package/dist/components/DatePicker/index.js +1 -1
  19. package/dist/components/Divider/Divider.js +4 -4
  20. package/dist/components/Drawer/Drawer.js +22 -26
  21. package/dist/components/DropdownMenu/DropdownMenu.js +36 -41
  22. package/dist/components/IconButton/IconButton.js +4 -4
  23. package/dist/components/List/ListItem.js +1 -1
  24. package/dist/components/ModalDialog/ModalDialog.js +27 -33
  25. package/dist/components/NotificationBadge/NotificationBadge.js +1 -1
  26. package/dist/components/Pagination/Pagination.js +54 -59
  27. package/dist/components/RadioButton/RadioButton.js +32 -36
  28. package/dist/components/RadioButton/RadioGroup.js +4 -4
  29. package/dist/components/Search/Search.js +67 -74
  30. package/dist/components/Select/Select.js +53 -60
  31. package/dist/components/Switch/Switch.js +18 -22
  32. package/dist/components/Tabs/TabItem.js +16 -15
  33. package/dist/components/Tabs/Tabs.js +9 -10
  34. package/dist/components/TextArea/TextArea.js +4 -4
  35. package/dist/components/TextField/TextField.js +1 -1
  36. package/dist/components/Toast/Toast.js +16 -17
  37. package/dist/components/Tooltip/Tooltip.js +30 -35
  38. package/dist/components/TopAppBar/TopAppBar.js +4 -4
  39. package/dist/index.js +6 -6
  40. package/dist/node_modules/@ark-ui/react/dist/_virtual/_rolldown/runtime.js +11 -0
  41. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-context.js +5 -0
  42. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +15 -12
  43. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-context.js +5 -0
  44. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +11 -8
  45. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +16 -16
  46. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +25 -22
  47. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root-provider.js +24 -0
  48. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root.js +21 -12
  49. package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion.js +22 -0
  50. package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-context.js +2 -2
  51. package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-context.js +2 -2
  52. package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-props-context.js +1 -1
  53. package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion.js +15 -13
  54. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-context.js +5 -0
  55. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-fallback.js +12 -9
  56. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-image.js +11 -8
  57. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root-provider.js +20 -0
  58. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +21 -11
  59. package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar.js +16 -0
  60. package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar-context.js +3 -3
  61. package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +14 -12
  62. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-context.js +3 -3
  63. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js +12 -9
  64. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group-provider.js +22 -0
  65. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group.js +32 -0
  66. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +13 -9
  67. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-indicator.js +17 -0
  68. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-label.js +13 -10
  69. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root-provider.js +20 -0
  70. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root.js +19 -13
  71. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.anatomy.js +5 -0
  72. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.js +24 -0
  73. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-context.js +1 -1
  74. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group-context.js +2 -2
  75. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group.js +43 -0
  76. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +16 -14
  77. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +14 -12
  78. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-root.js +15 -9
  79. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/split-collapsible-props.js +5 -3
  80. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible-context.js +1 -1
  81. package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible.js +17 -12
  82. package/dist/node_modules/@ark-ui/react/dist/components/collection/list-collection.js +2 -2
  83. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-clear-trigger.js +16 -0
  84. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +13 -10
  85. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-context.js +5 -0
  86. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js +12 -9
  87. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-empty.js +15 -0
  88. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js +14 -10
  89. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-context.js +5 -0
  90. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group-label.js +17 -0
  91. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +20 -11
  92. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-indicator.js +17 -0
  93. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js +12 -9
  94. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js +19 -10
  95. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-label.js +16 -0
  96. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-list.js +16 -0
  97. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +11 -8
  98. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root-provider.js +25 -0
  99. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +24 -14
  100. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +17 -0
  101. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.anatomy.js +5 -0
  102. package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.js +42 -0
  103. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-context.js +2 -2
  104. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-context.js +1 -1
  105. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-group-props-context.js +1 -1
  106. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-props-context.js +2 -2
  107. package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox.js +13 -11
  108. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-clear-trigger.js +16 -0
  109. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +13 -10
  110. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +2 -2
  111. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +12 -9
  112. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +13 -10
  113. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +12 -9
  114. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +14 -7
  115. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +14 -11
  116. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +11 -8
  117. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-preset-trigger.js +17 -0
  118. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +14 -11
  119. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-range-text.js +21 -0
  120. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root-provider.js +26 -0
  121. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +32 -16
  122. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +12 -9
  123. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +16 -13
  124. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +18 -13
  125. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +12 -9
  126. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +12 -9
  127. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +12 -9
  128. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +22 -12
  129. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +11 -8
  130. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-value-text.js +25 -0
  131. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +12 -9
  132. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-trigger.js +17 -0
  133. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +16 -16
  134. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-cell.js +17 -0
  135. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-header-cell.js +17 -0
  136. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +16 -9
  137. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +3 -3
  138. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.js +64 -0
  139. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +1 -1
  140. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +2 -2
  141. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +2 -2
  142. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +2 -2
  143. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +16 -14
  144. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +19 -13
  145. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +12 -9
  146. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +15 -12
  147. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js +5 -0
  148. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +12 -9
  149. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js +13 -10
  150. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js +24 -0
  151. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js +17 -7
  152. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js +13 -10
  153. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js +21 -0
  154. package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog.js +26 -0
  155. package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js +3 -3
  156. package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +15 -13
  157. package/dist/node_modules/@ark-ui/react/dist/components/factory.js +21 -22
  158. package/dist/node_modules/@ark-ui/react/dist/components/field/use-field-context.js +1 -1
  159. package/dist/node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js +11 -0
  160. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow-tip.js +16 -0
  161. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow.js +16 -0
  162. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-checkbox-item.js +35 -0
  163. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +13 -10
  164. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context-trigger.js +16 -0
  165. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context.js +5 -0
  166. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-indicator.js +16 -0
  167. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-context.js +5 -0
  168. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group-label.js +17 -0
  169. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +21 -12
  170. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-indicator.js +17 -0
  171. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-text.js +17 -0
  172. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +25 -13
  173. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js +14 -11
  174. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item-group.js +28 -0
  175. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item.js +39 -0
  176. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root-provider.js +31 -0
  177. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +32 -19
  178. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-separator.js +16 -0
  179. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger-item.js +21 -0
  180. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js +18 -17
  181. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu.js +48 -0
  182. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-context.js +2 -2
  183. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-context.js +2 -2
  184. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-group-context.js +2 -2
  185. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-machine-context.js +2 -2
  186. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js +2 -2
  187. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-trigger-item-context.js +1 -1
  188. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +19 -14
  189. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-context.js +1 -1
  190. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js +11 -8
  191. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-first-trigger.js +16 -0
  192. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-item.js +12 -9
  193. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-last-trigger.js +16 -0
  194. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js +13 -10
  195. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js +13 -10
  196. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root-provider.js +20 -0
  197. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js +20 -12
  198. package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination.js +24 -0
  199. package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination-context.js +4 -4
  200. package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +15 -13
  201. package/dist/node_modules/@ark-ui/react/dist/components/portal/portal.js +16 -20
  202. package/dist/node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js +1 -1
  203. package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence-context.js +3 -3
  204. package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +13 -12
  205. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-context.js +5 -0
  206. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-indicator.js +16 -0
  207. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js +1 -1
  208. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +12 -9
  209. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js +12 -9
  210. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +14 -11
  211. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +26 -13
  212. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-label.js +16 -0
  213. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root-provider.js +20 -0
  214. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js +18 -10
  215. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group.js +26 -0
  216. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-context.js +1 -1
  217. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-context.js +2 -2
  218. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-props-context.js +1 -1
  219. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +20 -13
  220. package/dist/node_modules/@ark-ui/react/dist/components/select/select-clear-trigger.js +16 -0
  221. package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +13 -10
  222. package/dist/node_modules/@ark-ui/react/dist/components/select/select-context.js +5 -0
  223. package/dist/node_modules/@ark-ui/react/dist/components/select/select-control.js +12 -9
  224. package/dist/node_modules/@ark-ui/react/dist/components/select/select-hidden-select.js +23 -0
  225. package/dist/node_modules/@ark-ui/react/dist/components/select/select-indicator.js +16 -0
  226. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-context.js +5 -0
  227. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group-label.js +17 -0
  228. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group.js +24 -0
  229. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-indicator.js +17 -0
  230. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-text.js +17 -0
  231. package/dist/node_modules/@ark-ui/react/dist/components/select/select-item.js +22 -13
  232. package/dist/node_modules/@ark-ui/react/dist/components/select/select-label.js +13 -10
  233. package/dist/node_modules/@ark-ui/react/dist/components/select/select-list.js +16 -0
  234. package/dist/node_modules/@ark-ui/react/dist/components/select/select-positioner.js +11 -8
  235. package/dist/node_modules/@ark-ui/react/dist/components/select/select-root-provider.js +25 -0
  236. package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +25 -14
  237. package/dist/node_modules/@ark-ui/react/dist/components/select/select-trigger.js +12 -9
  238. package/dist/node_modules/@ark-ui/react/dist/components/select/select-value-text.js +11 -7
  239. package/dist/node_modules/@ark-ui/react/dist/components/select/select.js +44 -0
  240. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-context.js +1 -1
  241. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-context.js +2 -2
  242. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-group-props.js +10 -0
  243. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-props-context.js +1 -1
  244. package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +12 -10
  245. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-context.js +5 -0
  246. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-control.js +12 -9
  247. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +13 -9
  248. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-label.js +12 -9
  249. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js +20 -0
  250. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root.js +18 -12
  251. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js +10 -7
  252. package/dist/node_modules/@ark-ui/react/dist/components/switch/switch.js +20 -0
  253. package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js +1 -1
  254. package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +13 -11
  255. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-content.js +28 -0
  256. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-indicator.js +16 -0
  257. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-list.js +13 -10
  258. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-trigger.js +14 -11
  259. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-context.js +5 -0
  260. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root-provider.js +24 -0
  261. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +20 -11
  262. package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs.js +20 -0
  263. package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs-context.js +3 -3
  264. package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +15 -13
  265. package/dist/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +2 -2
  266. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-action-trigger.js +16 -0
  267. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-close-trigger.js +16 -0
  268. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-context.js +5 -0
  269. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-description.js +16 -0
  270. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-root.js +14 -10
  271. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-title.js +13 -10
  272. package/dist/node_modules/@ark-ui/react/dist/components/toast/toast.js +18 -0
  273. package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +37 -22
  274. package/dist/node_modules/@ark-ui/react/dist/components/toast/use-toast-context.js +4 -4
  275. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow-tip.js +12 -9
  276. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow.js +12 -9
  277. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-content.js +13 -10
  278. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-context.js +5 -0
  279. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-positioner.js +13 -10
  280. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root-provider.js +20 -0
  281. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root.js +16 -9
  282. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-trigger.js +12 -8
  283. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip.js +22 -0
  284. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip-context.js +1 -1
  285. package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip.js +15 -13
  286. package/dist/node_modules/@ark-ui/react/dist/providers/environment/use-environment-context.js +1 -1
  287. package/dist/node_modules/@ark-ui/react/dist/providers/locale/use-locale-context.js +5 -2
  288. package/dist/node_modules/@ark-ui/react/dist/utils/compose-refs.js +7 -10
  289. package/dist/node_modules/@ark-ui/react/dist/utils/create-context.js +17 -20
  290. package/dist/node_modules/@ark-ui/react/dist/utils/create-split-props.js +4 -7
  291. package/dist/node_modules/@ark-ui/react/dist/utils/render-strategy.js +6 -6
  292. package/dist/node_modules/@ark-ui/react/dist/utils/use-controllable-state.js +8 -0
  293. package/dist/node_modules/@ark-ui/react/dist/utils/use-effect-once.js +1 -1
  294. package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +7 -10
  295. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +294 -289
  296. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +195 -194
  297. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -97
  298. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +60 -62
  299. package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +18 -12
  300. package/dist/node_modules/@internationalized/date/dist/conversion.js +35 -35
  301. package/dist/node_modules/@internationalized/date/dist/queries.js +126 -75
  302. package/dist/node_modules/@internationalized/date/dist/string.js +29 -28
  303. package/dist/node_modules/@zag-js/accordion/dist/accordion.anatomy.js +6 -0
  304. package/dist/node_modules/@zag-js/accordion/dist/accordion.connect.js +129 -0
  305. package/dist/node_modules/@zag-js/accordion/dist/accordion.dom.js +30 -0
  306. package/dist/node_modules/@zag-js/accordion/dist/accordion.machine.js +137 -0
  307. package/dist/node_modules/@zag-js/aria-hidden/dist/aria-hidden.js +14 -0
  308. package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +12 -49
  309. package/dist/node_modules/@zag-js/aria-hidden/dist/walk-tree-outside.js +41 -0
  310. package/dist/node_modules/@zag-js/avatar/dist/avatar.anatomy.js +6 -0
  311. package/dist/node_modules/@zag-js/avatar/dist/avatar.connect.js +52 -0
  312. package/dist/node_modules/@zag-js/avatar/dist/avatar.dom.js +17 -0
  313. package/dist/node_modules/@zag-js/avatar/dist/avatar.machine.js +93 -0
  314. package/dist/node_modules/@zag-js/checkbox/dist/checkbox.anatomy.js +6 -0
  315. package/dist/node_modules/@zag-js/checkbox/dist/checkbox.connect.js +108 -0
  316. package/dist/node_modules/@zag-js/checkbox/dist/checkbox.dom.js +21 -0
  317. package/dist/node_modules/@zag-js/checkbox/dist/checkbox.machine.js +141 -0
  318. package/dist/node_modules/@zag-js/collapsible/dist/collapsible.anatomy.js +6 -0
  319. package/dist/node_modules/@zag-js/collapsible/dist/collapsible.connect.js +80 -0
  320. package/dist/node_modules/@zag-js/collapsible/dist/collapsible.dom.js +16 -0
  321. package/dist/node_modules/@zag-js/collapsible/dist/{index.js → collapsible.machine.js} +58 -115
  322. package/dist/node_modules/@zag-js/collection/dist/chunk-QZ7TP4HQ.js +4 -0
  323. package/dist/node_modules/@zag-js/collection/dist/{index.js → list-collection.js} +58 -56
  324. package/dist/node_modules/@zag-js/collection/dist/selection-map.js +58 -0
  325. package/dist/node_modules/@zag-js/combobox/dist/combobox.anatomy.js +21 -0
  326. package/dist/node_modules/@zag-js/combobox/dist/combobox.collection.js +6 -0
  327. package/dist/node_modules/@zag-js/combobox/dist/combobox.connect.js +341 -0
  328. package/dist/node_modules/@zag-js/combobox/dist/combobox.dom.js +68 -0
  329. package/dist/node_modules/@zag-js/combobox/dist/combobox.machine.js +936 -0
  330. package/dist/node_modules/@zag-js/core/dist/create-machine.js +32 -0
  331. package/dist/node_modules/@zag-js/core/dist/memo.js +11 -0
  332. package/dist/node_modules/@zag-js/core/dist/merge-props.js +48 -0
  333. package/dist/node_modules/@zag-js/core/dist/scope.js +19 -0
  334. package/dist/node_modules/@zag-js/core/dist/state.js +143 -0
  335. package/dist/node_modules/@zag-js/core/dist/types.js +5 -0
  336. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.anatomy.js +31 -0
  337. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.connect.js +742 -0
  338. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.dom.js +73 -0
  339. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.machine.js +1042 -0
  340. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.parse.js +8 -0
  341. package/dist/node_modules/@zag-js/date-picker/dist/date-picker.utils.js +155 -0
  342. package/dist/node_modules/@zag-js/date-utils/dist/align.js +15 -0
  343. package/dist/node_modules/@zag-js/date-utils/dist/assertion.js +26 -0
  344. package/dist/node_modules/@zag-js/date-utils/dist/constrain.js +40 -0
  345. package/dist/node_modules/@zag-js/date-utils/dist/date-month.js +74 -0
  346. package/dist/node_modules/@zag-js/date-utils/dist/date-year.js +37 -0
  347. package/dist/node_modules/@zag-js/date-utils/dist/duration.js +13 -0
  348. package/dist/node_modules/@zag-js/date-utils/dist/format.js +25 -0
  349. package/dist/node_modules/@zag-js/date-utils/dist/formatter.js +30 -0
  350. package/dist/node_modules/@zag-js/date-utils/dist/get-era-format.js +8 -0
  351. package/dist/node_modules/@zag-js/date-utils/dist/mutation.js +9 -0
  352. package/dist/node_modules/@zag-js/date-utils/dist/pagination.js +95 -0
  353. package/dist/node_modules/@zag-js/date-utils/dist/parse-date.js +34 -0
  354. package/dist/node_modules/@zag-js/date-utils/dist/preset.js +41 -0
  355. package/dist/node_modules/@zag-js/dialog/dist/dialog.anatomy.js +14 -0
  356. package/dist/node_modules/@zag-js/dialog/dist/dialog.connect.js +104 -0
  357. package/dist/node_modules/@zag-js/dialog/dist/dialog.dom.js +42 -0
  358. package/dist/node_modules/@zag-js/dialog/dist/dialog.machine.js +220 -0
  359. package/dist/node_modules/@zag-js/dismissable/dist/dismissable-layer.js +80 -0
  360. package/dist/node_modules/@zag-js/dismissable/dist/escape-keydown.js +11 -0
  361. package/dist/node_modules/@zag-js/dismissable/dist/layer-stack.js +103 -0
  362. package/dist/node_modules/@zag-js/dismissable/dist/pointer-event-outside.js +37 -0
  363. package/dist/node_modules/@zag-js/dom-query/dist/caret.js +12 -0
  364. package/dist/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js +4 -0
  365. package/dist/node_modules/@zag-js/dom-query/dist/computed-style.js +8 -0
  366. package/dist/node_modules/@zag-js/dom-query/dist/controller.js +76 -0
  367. package/dist/node_modules/@zag-js/dom-query/dist/event.js +80 -0
  368. package/dist/node_modules/@zag-js/dom-query/dist/form.js +70 -0
  369. package/dist/node_modules/@zag-js/dom-query/dist/initial-focus.js +22 -0
  370. package/dist/node_modules/@zag-js/dom-query/dist/mutation-observer.js +41 -0
  371. package/dist/node_modules/@zag-js/dom-query/dist/navigate.js +13 -0
  372. package/dist/node_modules/@zag-js/dom-query/dist/node.js +87 -0
  373. package/dist/node_modules/@zag-js/dom-query/dist/overflow.js +27 -0
  374. package/dist/node_modules/@zag-js/dom-query/dist/platform.js +24 -0
  375. package/dist/node_modules/@zag-js/dom-query/dist/press.js +61 -0
  376. package/dist/node_modules/@zag-js/dom-query/dist/query.js +31 -0
  377. package/dist/node_modules/@zag-js/dom-query/dist/raf.js +51 -0
  378. package/dist/node_modules/@zag-js/dom-query/dist/resize-observer.js +34 -0
  379. package/dist/node_modules/@zag-js/dom-query/dist/searchable.js +17 -0
  380. package/dist/node_modules/@zag-js/dom-query/dist/set.js +29 -0
  381. package/dist/node_modules/@zag-js/dom-query/dist/shared.js +11 -0
  382. package/dist/node_modules/@zag-js/dom-query/dist/tabbable.js +110 -0
  383. package/dist/node_modules/@zag-js/dom-query/dist/text-selection.js +36 -0
  384. package/dist/node_modules/@zag-js/dom-query/dist/typeahead.js +25 -0
  385. package/dist/node_modules/@zag-js/dom-query/dist/visually-hidden.js +15 -0
  386. package/dist/node_modules/@zag-js/dom-query/dist/wait-for.js +42 -0
  387. package/dist/node_modules/@zag-js/focus-trap/dist/chunk-QZ7TP4HQ.js +4 -0
  388. package/dist/node_modules/@zag-js/focus-trap/dist/focus-trap.js +335 -0
  389. package/dist/node_modules/@zag-js/focus-trap/dist/index.js +24 -299
  390. package/dist/node_modules/@zag-js/focus-visible/dist/index.js +63 -39
  391. package/dist/node_modules/@zag-js/interact-outside/dist/frame-utils.js +60 -0
  392. package/dist/node_modules/@zag-js/interact-outside/dist/index.js +97 -131
  393. package/dist/node_modules/@zag-js/menu/dist/menu.anatomy.js +21 -0
  394. package/dist/node_modules/@zag-js/menu/dist/menu.connect.js +385 -0
  395. package/dist/node_modules/@zag-js/menu/dist/menu.dom.js +93 -0
  396. package/dist/node_modules/@zag-js/menu/dist/menu.machine.js +855 -0
  397. package/dist/node_modules/@zag-js/menu/dist/menu.utils.js +51 -0
  398. package/dist/node_modules/@zag-js/pagination/dist/pagination.anatomy.js +14 -0
  399. package/dist/node_modules/@zag-js/pagination/dist/pagination.connect.js +145 -0
  400. package/dist/node_modules/@zag-js/pagination/dist/pagination.dom.js +31 -0
  401. package/dist/node_modules/@zag-js/pagination/dist/pagination.machine.js +132 -0
  402. package/dist/node_modules/@zag-js/pagination/dist/pagination.utils.js +39 -0
  403. package/dist/node_modules/@zag-js/popper/dist/get-anchor.js +34 -0
  404. package/dist/node_modules/@zag-js/popper/dist/get-placement.js +190 -0
  405. package/dist/node_modules/@zag-js/popper/dist/get-styles.js +47 -0
  406. package/dist/node_modules/@zag-js/popper/dist/middleware.js +57 -0
  407. package/dist/node_modules/@zag-js/popper/dist/placement.js +11 -0
  408. package/dist/node_modules/@zag-js/presence/dist/presence.connect.js +16 -0
  409. package/dist/node_modules/@zag-js/presence/dist/{index.js → presence.machine.js} +39 -47
  410. package/dist/node_modules/@zag-js/radio-group/dist/radio-group.anatomy.js +13 -0
  411. package/dist/node_modules/@zag-js/radio-group/dist/radio-group.connect.js +197 -0
  412. package/dist/node_modules/@zag-js/radio-group/dist/radio-group.dom.js +57 -0
  413. package/dist/node_modules/@zag-js/radio-group/dist/radio-group.machine.js +179 -0
  414. package/dist/node_modules/@zag-js/react/dist/bindable.js +52 -0
  415. package/dist/node_modules/@zag-js/react/dist/machine.js +208 -0
  416. package/dist/node_modules/@zag-js/react/dist/normalize-props.js +5 -0
  417. package/dist/node_modules/@zag-js/react/dist/refs.js +15 -0
  418. package/dist/node_modules/@zag-js/react/dist/track.js +13 -0
  419. package/dist/node_modules/@zag-js/react/dist/use-layout-effect.js +5 -0
  420. package/dist/node_modules/@zag-js/rect-utils/dist/polygon.js +23 -0
  421. package/dist/node_modules/@zag-js/rect-utils/dist/rect.js +26 -0
  422. package/dist/node_modules/@zag-js/remove-scroll/dist/index.js +32 -23
  423. package/dist/node_modules/@zag-js/select/dist/select.anatomy.js +22 -0
  424. package/dist/node_modules/@zag-js/select/dist/select.collection.js +6 -0
  425. package/dist/node_modules/@zag-js/select/dist/select.connect.js +372 -0
  426. package/dist/node_modules/@zag-js/select/dist/select.dom.js +53 -0
  427. package/dist/node_modules/@zag-js/select/dist/select.machine.js +690 -0
  428. package/dist/node_modules/@zag-js/switch/dist/switch.anatomy.js +6 -0
  429. package/dist/node_modules/@zag-js/switch/dist/switch.connect.js +110 -0
  430. package/dist/node_modules/@zag-js/switch/dist/switch.dom.js +25 -0
  431. package/dist/node_modules/@zag-js/switch/dist/switch.machine.js +143 -0
  432. package/dist/node_modules/@zag-js/tabs/dist/tabs.anatomy.js +6 -0
  433. package/dist/node_modules/@zag-js/tabs/dist/tabs.connect.js +176 -0
  434. package/dist/node_modules/@zag-js/tabs/dist/tabs.dom.js +47 -0
  435. package/dist/node_modules/@zag-js/tabs/dist/tabs.machine.js +268 -0
  436. package/dist/node_modules/@zag-js/toast/dist/index.js +6 -798
  437. package/dist/node_modules/@zag-js/toast/dist/toast-group.connect.js +54 -0
  438. package/dist/node_modules/@zag-js/toast/dist/toast-group.machine.js +236 -0
  439. package/dist/node_modules/@zag-js/toast/dist/toast.anatomy.js +13 -0
  440. package/dist/node_modules/@zag-js/toast/dist/toast.connect.js +102 -0
  441. package/dist/node_modules/@zag-js/toast/dist/toast.dom.js +10 -0
  442. package/dist/node_modules/@zag-js/toast/dist/toast.machine.js +234 -0
  443. package/dist/node_modules/@zag-js/toast/dist/toast.store.js +134 -0
  444. package/dist/node_modules/@zag-js/toast/dist/toast.utils.js +122 -0
  445. package/dist/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js +6 -0
  446. package/dist/node_modules/@zag-js/tooltip/dist/tooltip.connect.js +120 -0
  447. package/dist/node_modules/@zag-js/tooltip/dist/tooltip.dom.js +25 -0
  448. package/dist/node_modules/@zag-js/tooltip/dist/{index.js → tooltip.machine.js} +109 -188
  449. package/dist/node_modules/@zag-js/tooltip/dist/tooltip.store.js +9 -0
  450. package/dist/node_modules/@zag-js/types/dist/prop-types.js +10 -0
  451. package/dist/node_modules/@zag-js/utils/dist/array.js +39 -0
  452. package/dist/node_modules/@zag-js/utils/dist/chunk-MXGZDBDQ.js +8 -0
  453. package/dist/node_modules/@zag-js/utils/dist/equal.js +27 -0
  454. package/dist/node_modules/@zag-js/utils/dist/functions.js +28 -0
  455. package/dist/node_modules/@zag-js/utils/dist/guard.js +19 -0
  456. package/dist/node_modules/@zag-js/utils/dist/number.js +11 -0
  457. package/dist/node_modules/@zag-js/utils/dist/object.js +13 -0
  458. package/dist/node_modules/@zag-js/utils/dist/store.js +25 -0
  459. package/dist/node_modules/@zag-js/utils/dist/timers.js +39 -0
  460. package/dist/node_modules/@zag-js/utils/dist/warning.js +25 -0
  461. package/dist/styled-system/css/css.js +1 -1
  462. package/dist/styled-system/helpers.js +85 -83
  463. package/dist/styled-system/jsx/is-valid-prop.js +1 -1
  464. package/dist/styles.css +1 -1
  465. package/package.json +18 -21
  466. package/styled-system/css/css.js +1 -1
  467. package/styled-system/helpers.js +3 -0
  468. package/styled-system/jsx/is-valid-prop.js +1 -1
  469. package/styled-system/patterns/aspect-ratio.d.ts +0 -1
  470. package/styled-system/patterns/bleed.d.ts +0 -1
  471. package/styled-system/patterns/box.d.ts +0 -1
  472. package/styled-system/patterns/center.d.ts +0 -1
  473. package/styled-system/patterns/circle.d.ts +0 -1
  474. package/styled-system/patterns/container.d.ts +0 -1
  475. package/styled-system/patterns/cq.d.ts +0 -1
  476. package/styled-system/patterns/divider.d.ts +0 -1
  477. package/styled-system/patterns/flex.d.ts +0 -1
  478. package/styled-system/patterns/float.d.ts +0 -1
  479. package/styled-system/patterns/grid-item.d.ts +0 -1
  480. package/styled-system/patterns/grid.d.ts +0 -1
  481. package/styled-system/patterns/hstack.d.ts +0 -1
  482. package/styled-system/patterns/link-overlay.d.ts +0 -1
  483. package/styled-system/patterns/spacer.d.ts +0 -1
  484. package/styled-system/patterns/square.d.ts +0 -1
  485. package/styled-system/patterns/stack.d.ts +0 -1
  486. package/styled-system/patterns/visually-hidden.d.ts +0 -1
  487. package/styled-system/patterns/vstack.d.ts +0 -1
  488. package/styled-system/patterns/wrap.d.ts +0 -1
  489. package/styled-system/themes/theme-asagi.json +1 -1
  490. package/styled-system/themes/theme-konjo-dark.json +1 -1
  491. package/styled-system/themes/theme-kurikawa.json +1 -1
  492. package/styled-system/themes/theme-sumire.json +1 -1
  493. package/styled-system/themes/theme-tsutsuji.json +1 -1
  494. package/styled-system/tokens/tokens.d.ts +1 -1
  495. package/styled-system/types/conditions.d.ts +11 -11
  496. package/styled-system/types/prop-type.d.ts +2 -0
  497. package/styled-system/types/style-props.d.ts +3 -4
  498. package/dist/node_modules/@zag-js/accordion/dist/index.js +0 -290
  499. package/dist/node_modules/@zag-js/avatar/dist/index.js +0 -154
  500. package/dist/node_modules/@zag-js/checkbox/dist/index.js +0 -270
  501. package/dist/node_modules/@zag-js/combobox/dist/index.js +0 -1415
  502. package/dist/node_modules/@zag-js/core/dist/index.js +0 -92
  503. package/dist/node_modules/@zag-js/date-picker/dist/index.js +0 -1826
  504. package/dist/node_modules/@zag-js/date-utils/dist/index.js +0 -366
  505. package/dist/node_modules/@zag-js/dialog/dist/index.js +0 -324
  506. package/dist/node_modules/@zag-js/dismissable/dist/index.js +0 -188
  507. package/dist/node_modules/@zag-js/dom-query/dist/index.js +0 -633
  508. package/dist/node_modules/@zag-js/menu/dist/index.js +0 -1235
  509. package/dist/node_modules/@zag-js/pagination/dist/index.js +0 -273
  510. package/dist/node_modules/@zag-js/popper/dist/index.js +0 -260
  511. package/dist/node_modules/@zag-js/radio-group/dist/index.js +0 -407
  512. package/dist/node_modules/@zag-js/react/dist/index.js +0 -269
  513. package/dist/node_modules/@zag-js/rect-utils/dist/index.js +0 -46
  514. package/dist/node_modules/@zag-js/select/dist/index.js +0 -1088
  515. package/dist/node_modules/@zag-js/switch/dist/index.js +0 -275
  516. package/dist/node_modules/@zag-js/tabs/dist/index.js +0 -475
  517. package/dist/node_modules/@zag-js/types/dist/index.js +0 -12
  518. package/dist/node_modules/@zag-js/utils/dist/index.js +0 -173
  519. /package/dist/node_modules/@zag-js/anatomy/dist/{index.js → create-anatomy.js} +0 -0
@@ -1,1235 +0,0 @@
1
- import { createAnatomy as de } from "../../anatomy/dist/index.js";
2
- import { mergeProps as ue, createMachine as ce, createGuards as he } from "../../core/dist/index.js";
3
- import { dataAttr as C, isDownloadingEvent as J, isOpeningInNewTab as Q, isSelfTarget as pe, getEventTarget as B, isValidTabEvent as Oe, getEventKey as Z, isPrintableKey as Ee, isModifierKey as me, isEditableElement as re, isContextMenuEvent as Te, getEventPoint as b, ariaAttr as Ie, isAnchorElement as fe, isHTMLElement as Pe, raf as D, observeAttributes as ye, addDomEvent as Ce, getByTypeahead as oe, clickIfLink as Re, getWindow as ve, queryAll as Se, getInitialFocus as Ne, contains as U, scrollIntoView as ke } from "../../dom-query/dist/index.js";
4
- import { getPlacementStyles as Le, getPlacementSide as Ae, getPlacement as z } from "../../popper/dist/index.js";
5
- import { hasProp as W, cast as ee, last as Me, first as be, isEqual as De, prev as _e, next as He } from "../../utils/dist/index.js";
6
- import { trackDismissableElement as we } from "../../dismissable/dist/index.js";
7
- import { getElementPolygon as Ge, isPointInPolygon as Ve } from "../../rect-utils/dist/index.js";
8
- import { createProps as k } from "../../types/dist/index.js";
9
- var Fe = de("menu").parts(
10
- "arrow",
11
- "arrowTip",
12
- "content",
13
- "contextTrigger",
14
- "indicator",
15
- "item",
16
- "itemGroup",
17
- "itemGroupLabel",
18
- "itemIndicator",
19
- "itemText",
20
- "positioner",
21
- "separator",
22
- "trigger",
23
- "triggerItem"
24
- ), O = Fe.build(), w = (e) => {
25
- var t;
26
- return ((t = e.ids) == null ? void 0 : t.trigger) ?? `menu:${e.id}:trigger`;
27
- }, ae = (e) => {
28
- var t;
29
- return ((t = e.ids) == null ? void 0 : t.contextTrigger) ?? `menu:${e.id}:ctx-trigger`;
30
- }, S = (e) => {
31
- var t;
32
- return ((t = e.ids) == null ? void 0 : t.content) ?? `menu:${e.id}:content`;
33
- }, Ue = (e) => {
34
- var t;
35
- return ((t = e.ids) == null ? void 0 : t.arrow) ?? `menu:${e.id}:arrow`;
36
- }, se = (e) => {
37
- var t;
38
- return ((t = e.ids) == null ? void 0 : t.positioner) ?? `menu:${e.id}:popper`;
39
- }, We = (e, t) => {
40
- var n, i;
41
- return ((i = (n = e.ids) == null ? void 0 : n.group) == null ? void 0 : i.call(n, t)) ?? `menu:${e.id}:group:${t}`;
42
- }, N = (e, t) => `${e.id}/${t}`, y = (e) => (e == null ? void 0 : e.dataset.value) ?? null, te = (e, t) => {
43
- var n, i;
44
- return ((i = (n = e.ids) == null ? void 0 : n.groupLabel) == null ? void 0 : i.call(n, t)) ?? `menu:${e.id}:group-label:${t}`;
45
- }, I = (e) => e.getById(S(e)), ne = (e) => e.getById(se(e)), _ = (e) => e.getById(w(e)), le = (e, t) => t ? e.getById(N(e, t)) : null, x = (e) => e.getById(ae(e)), L = (e) => {
46
- const n = `[role^="menuitem"][data-ownedby=${CSS.escape(S(e))}]:not([data-disabled])`;
47
- return Se(I(e), n);
48
- }, xe = (e) => be(L(e)), Be = (e) => Me(L(e)), $ = (e, t) => t ? e.id === t || e.dataset.value === t : !1, Ke = (e, t) => {
49
- const n = L(e), i = n.findIndex((s) => $(s, t.value));
50
- return He(n, i, { loop: t.loop ?? t.loopFocus });
51
- }, $e = (e, t) => {
52
- const n = L(e), i = n.findIndex((s) => $(s, t.value));
53
- return _e(n, i, { loop: t.loop ?? t.loopFocus });
54
- }, Xe = (e, t) => {
55
- const n = L(e), i = n.find((s) => $(s, t.value));
56
- return oe(n, { state: t.typeaheadState, key: t.key, activeId: (i == null ? void 0 : i.id) ?? null });
57
- }, H = (e) => Pe(e) && (e.dataset.disabled === "" || e.hasAttribute("disabled")), Ye = (e) => {
58
- var t;
59
- return !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem")) && !!(e != null && e.hasAttribute("aria-controls"));
60
- }, K = "menu:select";
61
- function qe(e, t) {
62
- if (!e) return;
63
- const n = ve(e), i = new n.CustomEvent(K, { detail: { value: t } });
64
- e.dispatchEvent(i);
65
- }
66
- function at(e, t) {
67
- const { context: n, send: i, state: s, computed: g, prop: o, scope: l } = e, u = s.hasTag("open"), f = n.get("isSubmenu"), P = g("isTypingAhead"), X = o("composite"), Y = n.get("currentPlacement"), ge = n.get("anchorPoint"), v = n.get("highlightedValue"), G = Le({
68
- ...o("positioning"),
69
- placement: ge ? "bottom" : Y
70
- });
71
- function V(r) {
72
- return {
73
- id: N(l, r.value),
74
- disabled: !!r.disabled,
75
- highlighted: v === r.value
76
- };
77
- }
78
- function q(r) {
79
- const a = r.valueText ?? r.value;
80
- return { ...r, id: r.value, valueText: a };
81
- }
82
- function A(r) {
83
- return {
84
- ...V(q(r)),
85
- checked: !!r.checked
86
- };
87
- }
88
- function F(r) {
89
- const { closeOnSelect: a, valueText: p, value: E } = r, c = V(r), T = N(l, E);
90
- return t.element({
91
- ...O.item.attrs,
92
- id: T,
93
- role: "menuitem",
94
- "aria-disabled": Ie(c.disabled),
95
- "data-disabled": C(c.disabled),
96
- "data-ownedby": S(l),
97
- "data-highlighted": C(c.highlighted),
98
- "data-value": E,
99
- "data-valuetext": p,
100
- onDragStart(d) {
101
- d.currentTarget.matches("a[href]") && d.preventDefault();
102
- },
103
- onPointerMove(d) {
104
- if (c.disabled || d.pointerType !== "mouse") return;
105
- const h = d.currentTarget;
106
- c.highlighted || i({ type: "ITEM_POINTERMOVE", id: T, target: h, closeOnSelect: a });
107
- },
108
- onPointerLeave(d) {
109
- var j;
110
- if (c.disabled || d.pointerType !== "mouse" || !((j = e.event.previous()) == null ? void 0 : j.type.includes("POINTER"))) return;
111
- const M = d.currentTarget;
112
- i({ type: "ITEM_POINTERLEAVE", id: T, target: M, closeOnSelect: a });
113
- },
114
- onPointerDown(d) {
115
- if (c.disabled) return;
116
- const h = d.currentTarget;
117
- i({ type: "ITEM_POINTERDOWN", target: h, id: T, closeOnSelect: a });
118
- },
119
- onClick(d) {
120
- if (J(d) || Q(d) || c.disabled) return;
121
- const h = d.currentTarget;
122
- i({ type: "ITEM_CLICK", target: h, id: T, closeOnSelect: a });
123
- }
124
- });
125
- }
126
- return {
127
- highlightedValue: v,
128
- open: u,
129
- setOpen(r) {
130
- s.hasTag("open") !== r && i({ type: r ? "OPEN" : "CLOSE" });
131
- },
132
- setHighlightedValue(r) {
133
- i({ type: "HIGHLIGHTED.SET", value: r });
134
- },
135
- setParent(r) {
136
- i({ type: "PARENT.SET", value: r, id: r.prop("id") });
137
- },
138
- setChild(r) {
139
- i({ type: "CHILD.SET", value: r, id: r.prop("id") });
140
- },
141
- reposition(r = {}) {
142
- i({ type: "POSITIONING.SET", options: r });
143
- },
144
- addItemListener(r) {
145
- const a = l.getById(r.id);
146
- if (!a) return;
147
- const p = () => {
148
- var E;
149
- return (E = r.onSelect) == null ? void 0 : E.call(r);
150
- };
151
- return a.addEventListener(K, p), () => a.removeEventListener(K, p);
152
- },
153
- getContextTriggerProps() {
154
- return t.element({
155
- ...O.contextTrigger.attrs,
156
- dir: o("dir"),
157
- id: ae(l),
158
- "data-state": u ? "open" : "closed",
159
- onPointerDown(r) {
160
- if (r.pointerType === "mouse") return;
161
- const a = b(r);
162
- i({ type: "CONTEXT_MENU_START", point: a });
163
- },
164
- onPointerCancel(r) {
165
- r.pointerType !== "mouse" && i({ type: "CONTEXT_MENU_CANCEL" });
166
- },
167
- onPointerMove(r) {
168
- r.pointerType !== "mouse" && i({ type: "CONTEXT_MENU_CANCEL" });
169
- },
170
- onPointerUp(r) {
171
- r.pointerType !== "mouse" && i({ type: "CONTEXT_MENU_CANCEL" });
172
- },
173
- onContextMenu(r) {
174
- const a = b(r);
175
- i({ type: "CONTEXT_MENU", point: a }), r.preventDefault();
176
- },
177
- style: {
178
- WebkitTouchCallout: "none",
179
- WebkitUserSelect: "none",
180
- userSelect: "none"
181
- }
182
- });
183
- },
184
- getTriggerItemProps(r) {
185
- const a = r.getTriggerProps();
186
- return ue(F({ value: a.id }), a);
187
- },
188
- getTriggerProps() {
189
- return t.button({
190
- ...f ? O.triggerItem.attrs : O.trigger.attrs,
191
- "data-placement": n.get("currentPlacement"),
192
- type: "button",
193
- dir: o("dir"),
194
- id: w(l),
195
- "data-uid": o("id"),
196
- "aria-haspopup": X ? "menu" : "dialog",
197
- "aria-controls": S(l),
198
- "aria-expanded": u || void 0,
199
- "data-state": u ? "open" : "closed",
200
- onPointerMove(r) {
201
- if (r.pointerType !== "mouse" || H(r.currentTarget) || !f) return;
202
- const p = b(r);
203
- i({ type: "TRIGGER_POINTERMOVE", target: r.currentTarget, point: p });
204
- },
205
- onPointerLeave(r) {
206
- if (H(r.currentTarget) || r.pointerType !== "mouse" || !f) return;
207
- const a = b(r);
208
- i({
209
- type: "TRIGGER_POINTERLEAVE",
210
- target: r.currentTarget,
211
- point: a
212
- });
213
- },
214
- onPointerDown(r) {
215
- H(r.currentTarget) || Te(r) || r.preventDefault();
216
- },
217
- onClick(r) {
218
- r.defaultPrevented || H(r.currentTarget) || i({ type: "TRIGGER_CLICK", target: r.currentTarget });
219
- },
220
- onBlur() {
221
- i({ type: "TRIGGER_BLUR" });
222
- },
223
- onFocus() {
224
- i({ type: "TRIGGER_FOCUS" });
225
- },
226
- onKeyDown(r) {
227
- if (r.defaultPrevented) return;
228
- const a = {
229
- ArrowDown() {
230
- i({ type: "ARROW_DOWN" });
231
- },
232
- ArrowUp() {
233
- i({ type: "ARROW_UP" });
234
- },
235
- Enter() {
236
- i({ type: "ARROW_DOWN", src: "enter" });
237
- },
238
- Space() {
239
- i({ type: "ARROW_DOWN", src: "space" });
240
- }
241
- }, p = Z(r, {
242
- orientation: "vertical",
243
- dir: o("dir")
244
- }), E = a[p];
245
- E && (r.preventDefault(), E(r));
246
- }
247
- });
248
- },
249
- getIndicatorProps() {
250
- return t.element({
251
- ...O.indicator.attrs,
252
- dir: o("dir"),
253
- "data-state": u ? "open" : "closed"
254
- });
255
- },
256
- getPositionerProps() {
257
- return t.element({
258
- ...O.positioner.attrs,
259
- dir: o("dir"),
260
- id: se(l),
261
- style: G.floating
262
- });
263
- },
264
- getArrowProps() {
265
- return t.element({
266
- id: Ue(l),
267
- ...O.arrow.attrs,
268
- dir: o("dir"),
269
- style: G.arrow
270
- });
271
- },
272
- getArrowTipProps() {
273
- return t.element({
274
- ...O.arrowTip.attrs,
275
- dir: o("dir"),
276
- style: G.arrowTip
277
- });
278
- },
279
- getContentProps() {
280
- return t.element({
281
- ...O.content.attrs,
282
- id: S(l),
283
- "aria-label": o("aria-label"),
284
- hidden: !u,
285
- "data-state": u ? "open" : "closed",
286
- role: X ? "menu" : "dialog",
287
- tabIndex: 0,
288
- dir: o("dir"),
289
- "aria-activedescendant": g("highlightedId") || void 0,
290
- "aria-labelledby": w(l),
291
- "data-placement": Y,
292
- onPointerEnter(r) {
293
- r.pointerType === "mouse" && i({ type: "MENU_POINTERENTER" });
294
- },
295
- onKeyDown(r) {
296
- if (r.defaultPrevented || !pe(r)) return;
297
- const a = B(r);
298
- if (!((a == null ? void 0 : a.closest("[role=menu]")) === r.currentTarget || a === r.currentTarget)) return;
299
- if (r.key === "Tab" && !Oe(r)) {
300
- r.preventDefault();
301
- return;
302
- }
303
- const E = le(l, v), c = {
304
- ArrowDown() {
305
- i({ type: "ARROW_DOWN" });
306
- },
307
- ArrowUp() {
308
- i({ type: "ARROW_UP" });
309
- },
310
- ArrowLeft() {
311
- i({ type: "ARROW_LEFT" });
312
- },
313
- ArrowRight() {
314
- i({ type: "ARROW_RIGHT" });
315
- },
316
- Enter() {
317
- var h;
318
- i({ type: "ENTER" }), v != null && fe(E) && ((h = o("navigate")) == null || h({ value: v, node: E, href: E.href }));
319
- },
320
- Space(h) {
321
- var M;
322
- P ? i({ type: "TYPEAHEAD", key: h.key }) : (M = c.Enter) == null || M.call(c, h);
323
- },
324
- Home() {
325
- i({ type: "HOME" });
326
- },
327
- End() {
328
- i({ type: "END" });
329
- }
330
- }, T = Z(r, { dir: o("dir") }), d = c[T];
331
- if (d) {
332
- d(r), r.stopPropagation(), r.preventDefault();
333
- return;
334
- }
335
- o("typeahead") && Ee(r) && (me(r) || re(a) || (i({ type: "TYPEAHEAD", key: r.key }), r.preventDefault()));
336
- }
337
- });
338
- },
339
- getSeparatorProps() {
340
- return t.element({
341
- ...O.separator.attrs,
342
- role: "separator",
343
- dir: o("dir"),
344
- "aria-orientation": "horizontal"
345
- });
346
- },
347
- getItemState: V,
348
- getItemProps: F,
349
- getOptionItemState: A,
350
- getOptionItemProps(r) {
351
- const { type: a, disabled: p, closeOnSelect: E } = r, c = q(r), T = A(r);
352
- return {
353
- ...F(c),
354
- ...t.element({
355
- "data-type": a,
356
- ...O.item.attrs,
357
- dir: o("dir"),
358
- "data-value": c.value,
359
- role: `menuitem${a}`,
360
- "aria-checked": !!T.checked,
361
- "data-state": T.checked ? "checked" : "unchecked",
362
- onClick(d) {
363
- if (p || J(d) || Q(d)) return;
364
- const h = d.currentTarget;
365
- i({ type: "ITEM_CLICK", target: h, option: c, closeOnSelect: E });
366
- }
367
- })
368
- };
369
- },
370
- getItemIndicatorProps(r) {
371
- const a = A(ee(r)), p = a.checked ? "checked" : "unchecked";
372
- return t.element({
373
- ...O.itemIndicator.attrs,
374
- dir: o("dir"),
375
- "data-disabled": C(a.disabled),
376
- "data-highlighted": C(a.highlighted),
377
- "data-state": W(r, "checked") ? p : void 0,
378
- hidden: W(r, "checked") ? !a.checked : void 0
379
- });
380
- },
381
- getItemTextProps(r) {
382
- const a = A(ee(r)), p = a.checked ? "checked" : "unchecked";
383
- return t.element({
384
- ...O.itemText.attrs,
385
- dir: o("dir"),
386
- "data-disabled": C(a.disabled),
387
- "data-highlighted": C(a.highlighted),
388
- "data-state": W(r, "checked") ? p : void 0
389
- });
390
- },
391
- getItemGroupLabelProps(r) {
392
- return t.element({
393
- ...O.itemGroupLabel.attrs,
394
- id: te(l, r.htmlFor),
395
- dir: o("dir")
396
- });
397
- },
398
- getItemGroupProps(r) {
399
- return t.element({
400
- id: We(l, r.id),
401
- ...O.itemGroup.attrs,
402
- dir: o("dir"),
403
- "aria-labelledby": te(l, r.id),
404
- role: "group"
405
- });
406
- }
407
- };
408
- }
409
- var { not: m, and: R, or: je } = he(), st = ce({
410
- props({ props: e }) {
411
- return {
412
- closeOnSelect: !0,
413
- typeahead: !0,
414
- composite: !0,
415
- loopFocus: !1,
416
- navigate(t) {
417
- Re(t.node);
418
- },
419
- ...e,
420
- positioning: {
421
- placement: "bottom-start",
422
- gutter: 8,
423
- ...e.positioning
424
- }
425
- };
426
- },
427
- initialState({ prop: e }) {
428
- return e("open") || e("defaultOpen") ? "open" : "idle";
429
- },
430
- context({ bindable: e, prop: t }) {
431
- return {
432
- suspendPointer: e(() => ({
433
- defaultValue: !1
434
- })),
435
- highlightedValue: e(() => ({
436
- defaultValue: t("defaultHighlightedValue") || null,
437
- value: t("highlightedValue"),
438
- onChange(n) {
439
- var i;
440
- (i = t("onHighlightChange")) == null || i({ highlightedValue: n });
441
- }
442
- })),
443
- lastHighlightedValue: e(() => ({
444
- defaultValue: null
445
- })),
446
- currentPlacement: e(() => ({
447
- defaultValue: void 0
448
- })),
449
- intentPolygon: e(() => ({
450
- defaultValue: null
451
- })),
452
- anchorPoint: e(() => ({
453
- defaultValue: null,
454
- hash(n) {
455
- return `x: ${n == null ? void 0 : n.x}, y: ${n == null ? void 0 : n.y}`;
456
- }
457
- })),
458
- isSubmenu: e(() => ({
459
- defaultValue: !1
460
- }))
461
- };
462
- },
463
- refs() {
464
- return {
465
- parent: null,
466
- children: {},
467
- typeaheadState: { ...oe.defaultOptions },
468
- positioningOverride: {}
469
- };
470
- },
471
- computed: {
472
- isRtl: ({ prop: e }) => e("dir") === "rtl",
473
- isTypingAhead: ({ refs: e }) => e.get("typeaheadState").keysSoFar !== "",
474
- highlightedId: ({ context: e, scope: t, refs: n }) => Qe(n.get("children"), e.get("highlightedValue"), t)
475
- },
476
- watch({ track: e, action: t, context: n, prop: i }) {
477
- e([() => n.get("isSubmenu")], () => {
478
- t(["setSubmenuPlacement"]);
479
- }), e([() => n.hash("anchorPoint")], () => {
480
- n.get("anchorPoint") && t(["reposition"]);
481
- }), e([() => i("open")], () => {
482
- t(["toggleVisibility"]);
483
- });
484
- },
485
- on: {
486
- "PARENT.SET": {
487
- actions: ["setParentMenu"]
488
- },
489
- "CHILD.SET": {
490
- actions: ["setChildMenu"]
491
- },
492
- OPEN: [
493
- {
494
- guard: "isOpenControlled",
495
- actions: ["invokeOnOpen"]
496
- },
497
- {
498
- target: "open",
499
- actions: ["invokeOnOpen"]
500
- }
501
- ],
502
- OPEN_AUTOFOCUS: [
503
- {
504
- guard: "isOpenControlled",
505
- actions: ["invokeOnOpen"]
506
- },
507
- {
508
- // internal: true,
509
- target: "open",
510
- actions: ["highlightFirstItem", "invokeOnOpen"]
511
- }
512
- ],
513
- CLOSE: [
514
- {
515
- guard: "isOpenControlled",
516
- actions: ["invokeOnClose"]
517
- },
518
- {
519
- target: "closed",
520
- actions: ["invokeOnClose"]
521
- }
522
- ],
523
- "HIGHLIGHTED.RESTORE": {
524
- actions: ["restoreHighlightedItem"]
525
- },
526
- "HIGHLIGHTED.SET": {
527
- actions: ["setHighlightedItem"]
528
- }
529
- },
530
- states: {
531
- idle: {
532
- tags: ["closed"],
533
- on: {
534
- "CONTROLLED.OPEN": {
535
- target: "open"
536
- },
537
- "CONTROLLED.CLOSE": {
538
- target: "closed"
539
- },
540
- CONTEXT_MENU_START: {
541
- target: "opening:contextmenu",
542
- actions: ["setAnchorPoint"]
543
- },
544
- CONTEXT_MENU: [
545
- {
546
- guard: "isOpenControlled",
547
- actions: ["setAnchorPoint", "invokeOnOpen"]
548
- },
549
- {
550
- target: "open",
551
- actions: ["setAnchorPoint", "invokeOnOpen"]
552
- }
553
- ],
554
- TRIGGER_CLICK: [
555
- {
556
- guard: "isOpenControlled",
557
- actions: ["invokeOnOpen"]
558
- },
559
- {
560
- target: "open",
561
- actions: ["invokeOnOpen"]
562
- }
563
- ],
564
- TRIGGER_FOCUS: {
565
- guard: m("isSubmenu"),
566
- target: "closed"
567
- },
568
- TRIGGER_POINTERMOVE: {
569
- guard: "isSubmenu",
570
- target: "opening"
571
- }
572
- }
573
- },
574
- "opening:contextmenu": {
575
- tags: ["closed"],
576
- effects: ["waitForLongPress"],
577
- on: {
578
- "CONTROLLED.OPEN": { target: "open" },
579
- "CONTROLLED.CLOSE": { target: "closed" },
580
- CONTEXT_MENU_CANCEL: [
581
- {
582
- guard: "isOpenControlled",
583
- actions: ["invokeOnClose"]
584
- },
585
- {
586
- target: "closed",
587
- actions: ["invokeOnClose"]
588
- }
589
- ],
590
- "LONG_PRESS.OPEN": [
591
- {
592
- guard: "isOpenControlled",
593
- actions: ["invokeOnOpen"]
594
- },
595
- {
596
- target: "open",
597
- actions: ["invokeOnOpen"]
598
- }
599
- ]
600
- }
601
- },
602
- opening: {
603
- tags: ["closed"],
604
- effects: ["waitForOpenDelay"],
605
- on: {
606
- "CONTROLLED.OPEN": {
607
- target: "open"
608
- },
609
- "CONTROLLED.CLOSE": {
610
- target: "closed"
611
- },
612
- BLUR: [
613
- {
614
- guard: "isOpenControlled",
615
- actions: ["invokeOnClose"]
616
- },
617
- {
618
- target: "closed",
619
- actions: ["invokeOnClose"]
620
- }
621
- ],
622
- TRIGGER_POINTERLEAVE: [
623
- {
624
- guard: "isOpenControlled",
625
- actions: ["invokeOnClose"]
626
- },
627
- {
628
- target: "closed",
629
- actions: ["invokeOnClose"]
630
- }
631
- ],
632
- "DELAY.OPEN": [
633
- {
634
- guard: "isOpenControlled",
635
- actions: ["invokeOnOpen"]
636
- },
637
- {
638
- target: "open",
639
- actions: ["invokeOnOpen"]
640
- }
641
- ]
642
- }
643
- },
644
- closing: {
645
- tags: ["open"],
646
- effects: ["trackPointerMove", "trackInteractOutside", "waitForCloseDelay"],
647
- on: {
648
- "CONTROLLED.OPEN": {
649
- target: "open"
650
- },
651
- "CONTROLLED.CLOSE": {
652
- target: "closed",
653
- actions: ["focusParentMenu", "restoreParentHighlightedItem"]
654
- },
655
- // don't invoke on open here since the menu is still open (we're only keeping it open)
656
- MENU_POINTERENTER: {
657
- target: "open",
658
- actions: ["clearIntentPolygon"]
659
- },
660
- POINTER_MOVED_AWAY_FROM_SUBMENU: [
661
- {
662
- guard: "isOpenControlled",
663
- actions: ["invokeOnClose"]
664
- },
665
- {
666
- target: "closed",
667
- actions: ["focusParentMenu", "restoreParentHighlightedItem"]
668
- }
669
- ],
670
- "DELAY.CLOSE": [
671
- {
672
- guard: "isOpenControlled",
673
- actions: ["invokeOnClose"]
674
- },
675
- {
676
- target: "closed",
677
- actions: ["focusParentMenu", "restoreParentHighlightedItem", "invokeOnClose"]
678
- }
679
- ]
680
- }
681
- },
682
- closed: {
683
- tags: ["closed"],
684
- entry: ["clearHighlightedItem", "focusTrigger", "resumePointer", "clearAnchorPoint"],
685
- on: {
686
- "CONTROLLED.OPEN": [
687
- {
688
- guard: je("isOpenAutoFocusEvent", "isArrowDownEvent"),
689
- target: "open",
690
- actions: ["highlightFirstItem"]
691
- },
692
- {
693
- guard: "isArrowUpEvent",
694
- target: "open",
695
- actions: ["highlightLastItem"]
696
- },
697
- {
698
- target: "open"
699
- }
700
- ],
701
- CONTEXT_MENU_START: {
702
- target: "opening:contextmenu",
703
- actions: ["setAnchorPoint"]
704
- },
705
- CONTEXT_MENU: [
706
- {
707
- guard: "isOpenControlled",
708
- actions: ["setAnchorPoint", "invokeOnOpen"]
709
- },
710
- {
711
- target: "open",
712
- actions: ["setAnchorPoint", "invokeOnOpen"]
713
- }
714
- ],
715
- TRIGGER_CLICK: [
716
- {
717
- guard: "isOpenControlled",
718
- actions: ["invokeOnOpen"]
719
- },
720
- {
721
- target: "open",
722
- actions: ["invokeOnOpen"]
723
- }
724
- ],
725
- TRIGGER_POINTERMOVE: {
726
- guard: "isTriggerItem",
727
- target: "opening"
728
- },
729
- TRIGGER_BLUR: { target: "idle" },
730
- ARROW_DOWN: [
731
- {
732
- guard: "isOpenControlled",
733
- actions: ["invokeOnOpen"]
734
- },
735
- {
736
- target: "open",
737
- actions: ["highlightFirstItem", "invokeOnOpen"]
738
- }
739
- ],
740
- ARROW_UP: [
741
- {
742
- guard: "isOpenControlled",
743
- actions: ["invokeOnOpen"]
744
- },
745
- {
746
- target: "open",
747
- actions: ["highlightLastItem", "invokeOnOpen"]
748
- }
749
- ]
750
- }
751
- },
752
- open: {
753
- tags: ["open"],
754
- effects: ["trackInteractOutside", "trackPositioning", "scrollToHighlightedItem"],
755
- entry: ["focusMenu", "resumePointer"],
756
- on: {
757
- "CONTROLLED.CLOSE": [
758
- {
759
- target: "closed",
760
- guard: "isArrowLeftEvent",
761
- actions: ["focusParentMenu"]
762
- },
763
- {
764
- target: "closed"
765
- }
766
- ],
767
- TRIGGER_CLICK: [
768
- {
769
- guard: R(m("isTriggerItem"), "isOpenControlled"),
770
- actions: ["invokeOnClose"]
771
- },
772
- {
773
- guard: m("isTriggerItem"),
774
- target: "closed",
775
- actions: ["invokeOnClose"]
776
- }
777
- ],
778
- CONTEXT_MENU: {
779
- actions: ["setAnchorPoint", "focusMenu"]
780
- },
781
- ARROW_UP: {
782
- actions: ["highlightPrevItem", "focusMenu"]
783
- },
784
- ARROW_DOWN: {
785
- actions: ["highlightNextItem", "focusMenu"]
786
- },
787
- ARROW_LEFT: [
788
- {
789
- guard: R("isSubmenu", "isOpenControlled"),
790
- actions: ["invokeOnClose"]
791
- },
792
- {
793
- guard: "isSubmenu",
794
- target: "closed",
795
- actions: ["focusParentMenu", "invokeOnClose"]
796
- }
797
- ],
798
- HOME: {
799
- actions: ["highlightFirstItem", "focusMenu"]
800
- },
801
- END: {
802
- actions: ["highlightLastItem", "focusMenu"]
803
- },
804
- ARROW_RIGHT: {
805
- guard: "isTriggerItemHighlighted",
806
- actions: ["openSubmenu"]
807
- },
808
- ENTER: [
809
- {
810
- guard: "isTriggerItemHighlighted",
811
- actions: ["openSubmenu"]
812
- },
813
- {
814
- actions: ["clickHighlightedItem"]
815
- }
816
- ],
817
- ITEM_POINTERMOVE: [
818
- {
819
- guard: m("isPointerSuspended"),
820
- actions: ["setHighlightedItem", "focusMenu"]
821
- },
822
- {
823
- actions: ["setLastHighlightedItem"]
824
- }
825
- ],
826
- ITEM_POINTERLEAVE: {
827
- guard: R(m("isPointerSuspended"), m("isTriggerItem")),
828
- actions: ["clearHighlightedItem"]
829
- },
830
- ITEM_CLICK: [
831
- // == grouped ==
832
- {
833
- guard: R(
834
- m("isTriggerItemHighlighted"),
835
- m("isHighlightedItemEditable"),
836
- "closeOnSelect",
837
- "isOpenControlled"
838
- ),
839
- actions: ["invokeOnSelect", "setOptionState", "closeRootMenu", "invokeOnClose"]
840
- },
841
- {
842
- guard: R(m("isTriggerItemHighlighted"), m("isHighlightedItemEditable"), "closeOnSelect"),
843
- target: "closed",
844
- actions: ["invokeOnSelect", "setOptionState", "closeRootMenu", "invokeOnClose"]
845
- },
846
- //
847
- {
848
- guard: R(m("isTriggerItemHighlighted"), m("isHighlightedItemEditable")),
849
- actions: ["invokeOnSelect", "setOptionState"]
850
- },
851
- { actions: ["setHighlightedItem"] }
852
- ],
853
- TRIGGER_POINTERMOVE: {
854
- guard: "isTriggerItem",
855
- actions: ["setIntentPolygon"]
856
- },
857
- TRIGGER_POINTERLEAVE: {
858
- target: "closing"
859
- },
860
- ITEM_POINTERDOWN: {
861
- actions: ["setHighlightedItem"]
862
- },
863
- TYPEAHEAD: {
864
- actions: ["highlightMatchedItem"]
865
- },
866
- FOCUS_MENU: {
867
- actions: ["focusMenu"]
868
- },
869
- "POSITIONING.SET": {
870
- actions: ["reposition"]
871
- }
872
- }
873
- }
874
- },
875
- implementations: {
876
- guards: {
877
- closeOnSelect: ({ prop: e, event: t }) => !!((t == null ? void 0 : t.closeOnSelect) ?? e("closeOnSelect")),
878
- // whether the trigger is also a menu item
879
- isTriggerItem: ({ event: e }) => Ye(e.target),
880
- // whether the trigger item is the active item
881
- isTriggerItemHighlighted: ({ event: e, scope: t, computed: n }) => {
882
- const i = e.target ?? t.getById(n("highlightedId"));
883
- return !!(i != null && i.hasAttribute("aria-controls"));
884
- },
885
- isSubmenu: ({ context: e }) => e.get("isSubmenu"),
886
- isPointerSuspended: ({ context: e }) => e.get("suspendPointer"),
887
- isHighlightedItemEditable: ({ scope: e, computed: t }) => re(e.getById(t("highlightedId"))),
888
- // guard assertions (for controlled mode)
889
- isOpenControlled: ({ prop: e }) => e("open") !== void 0,
890
- isArrowLeftEvent: ({ event: e }) => {
891
- var t;
892
- return ((t = e.previousEvent) == null ? void 0 : t.type) === "ARROW_LEFT";
893
- },
894
- isArrowUpEvent: ({ event: e }) => {
895
- var t;
896
- return ((t = e.previousEvent) == null ? void 0 : t.type) === "ARROW_UP";
897
- },
898
- isArrowDownEvent: ({ event: e }) => {
899
- var t;
900
- return ((t = e.previousEvent) == null ? void 0 : t.type) === "ARROW_DOWN";
901
- },
902
- isOpenAutoFocusEvent: ({ event: e }) => {
903
- var t;
904
- return ((t = e.previousEvent) == null ? void 0 : t.type) === "OPEN_AUTOFOCUS";
905
- }
906
- },
907
- effects: {
908
- waitForOpenDelay({ send: e }) {
909
- const t = setTimeout(() => {
910
- e({ type: "DELAY.OPEN" });
911
- }, 100);
912
- return () => clearTimeout(t);
913
- },
914
- waitForCloseDelay({ send: e }) {
915
- const t = setTimeout(() => {
916
- e({ type: "DELAY.CLOSE" });
917
- }, 300);
918
- return () => clearTimeout(t);
919
- },
920
- waitForLongPress({ send: e }) {
921
- const t = setTimeout(() => {
922
- e({ type: "LONG_PRESS.OPEN" });
923
- }, 700);
924
- return () => clearTimeout(t);
925
- },
926
- trackPositioning({ context: e, prop: t, scope: n, refs: i }) {
927
- if (x(n)) return;
928
- const s = {
929
- ...t("positioning"),
930
- ...i.get("positioningOverride")
931
- };
932
- e.set("currentPlacement", s.placement);
933
- const g = () => ne(n);
934
- return z(_(n), g, {
935
- ...s,
936
- defer: !0,
937
- onComplete(o) {
938
- e.set("currentPlacement", o.placement);
939
- }
940
- });
941
- },
942
- trackInteractOutside({ refs: e, scope: t, prop: n, context: i, send: s }) {
943
- const g = () => I(t);
944
- let o = !0;
945
- return we(g, {
946
- defer: !0,
947
- exclude: [_(t)],
948
- onInteractOutside: n("onInteractOutside"),
949
- onRequestDismiss: n("onRequestDismiss"),
950
- onFocusOutside(l) {
951
- var P;
952
- (P = n("onFocusOutside")) == null || P(l);
953
- const u = B(l.detail.originalEvent);
954
- if (U(x(t), u)) {
955
- l.preventDefault();
956
- return;
957
- }
958
- },
959
- onEscapeKeyDown(l) {
960
- var u;
961
- (u = n("onEscapeKeyDown")) == null || u(l), i.get("isSubmenu") && l.preventDefault(), ie({ parent: e.get("parent") });
962
- },
963
- onPointerDownOutside(l) {
964
- var P;
965
- (P = n("onPointerDownOutside")) == null || P(l);
966
- const u = B(l.detail.originalEvent);
967
- if (U(x(t), u) && l.detail.contextmenu) {
968
- l.preventDefault();
969
- return;
970
- }
971
- o = !l.detail.focusable;
972
- },
973
- onDismiss() {
974
- s({ type: "CLOSE", src: "interact-outside", restoreFocus: o });
975
- }
976
- });
977
- },
978
- trackPointerMove({ context: e, scope: t, send: n, refs: i, flush: s }) {
979
- const g = i.get("parent");
980
- s(() => {
981
- g.context.set("suspendPointer", !0);
982
- });
983
- const o = t.getDoc();
984
- return Ce(o, "pointermove", (l) => {
985
- Je(e.get("intentPolygon"), {
986
- x: l.clientX,
987
- y: l.clientY
988
- }) || (n({ type: "POINTER_MOVED_AWAY_FROM_SUBMENU" }), g.context.set("suspendPointer", !1));
989
- });
990
- },
991
- scrollToHighlightedItem({ event: e, scope: t, computed: n }) {
992
- const i = () => {
993
- if (e.type.startsWith("ITEM_POINTER")) return;
994
- const g = t.getById(n("highlightedId")), o = I(t);
995
- ke(g, { rootEl: o, block: "nearest" });
996
- };
997
- return D(() => i()), ye(() => I(t), {
998
- defer: !0,
999
- attributes: ["aria-activedescendant"],
1000
- callback: i
1001
- });
1002
- }
1003
- },
1004
- actions: {
1005
- setAnchorPoint({ context: e, event: t }) {
1006
- e.set("anchorPoint", (n) => De(n, t.point) ? n : t.point);
1007
- },
1008
- setSubmenuPlacement({ context: e, computed: t, refs: n }) {
1009
- if (!e.get("isSubmenu")) return;
1010
- const i = t("isRtl") ? "left-start" : "right-start";
1011
- n.set("positioningOverride", { placement: i, gutter: 0 });
1012
- },
1013
- reposition({ context: e, scope: t, prop: n, event: i, refs: s }) {
1014
- const g = () => ne(t), o = e.get("anchorPoint"), l = o ? () => ({ width: 0, height: 0, ...o }) : void 0, u = {
1015
- ...n("positioning"),
1016
- ...s.get("positioningOverride")
1017
- };
1018
- z(_(t), g, {
1019
- ...u,
1020
- defer: !0,
1021
- getAnchorRect: l,
1022
- ...i.options ?? {},
1023
- listeners: !1,
1024
- onComplete(f) {
1025
- e.set("currentPlacement", f.placement);
1026
- }
1027
- });
1028
- },
1029
- setOptionState({ event: e }) {
1030
- if (!e.option) return;
1031
- const { checked: t, onCheckedChange: n, type: i } = e.option;
1032
- i === "radio" ? n == null || n(!0) : i === "checkbox" && (n == null || n(!t));
1033
- },
1034
- clickHighlightedItem({ scope: e, computed: t }) {
1035
- const n = e.getById(t("highlightedId"));
1036
- !n || n.dataset.disabled || queueMicrotask(() => n.click());
1037
- },
1038
- setIntentPolygon({ context: e, scope: t, event: n }) {
1039
- const i = I(t), s = e.get("currentPlacement");
1040
- if (!i || !s) return;
1041
- const g = i.getBoundingClientRect(), o = Ge(g, s);
1042
- if (!o) return;
1043
- const u = Ae(s) === "right" ? -5 : 5;
1044
- e.set("intentPolygon", [{ ...n.point, x: n.point.x + u }, ...o]);
1045
- },
1046
- clearIntentPolygon({ context: e }) {
1047
- e.set("intentPolygon", null);
1048
- },
1049
- clearAnchorPoint({ context: e }) {
1050
- e.set("anchorPoint", null);
1051
- },
1052
- resumePointer({ refs: e, flush: t }) {
1053
- const n = e.get("parent");
1054
- n && t(() => {
1055
- n.context.set("suspendPointer", !1);
1056
- });
1057
- },
1058
- setHighlightedItem({ context: e, event: t }) {
1059
- const n = t.value || y(t.target);
1060
- e.set("highlightedValue", n);
1061
- },
1062
- clearHighlightedItem({ context: e }) {
1063
- e.set("highlightedValue", null);
1064
- },
1065
- focusMenu({ scope: e }) {
1066
- D(() => {
1067
- const t = I(e), n = Ne({
1068
- root: t,
1069
- enabled: !U(t, e.getActiveElement()),
1070
- filter(i) {
1071
- var s;
1072
- return !((s = i.role) != null && s.startsWith("menuitem"));
1073
- }
1074
- });
1075
- n == null || n.focus({ preventScroll: !0 });
1076
- });
1077
- },
1078
- highlightFirstItem({ context: e, scope: t }) {
1079
- (I(t) ? queueMicrotask : D)(() => {
1080
- const i = xe(t);
1081
- i && e.set("highlightedValue", y(i));
1082
- });
1083
- },
1084
- highlightLastItem({ context: e, scope: t }) {
1085
- (I(t) ? queueMicrotask : D)(() => {
1086
- const i = Be(t);
1087
- i && e.set("highlightedValue", y(i));
1088
- });
1089
- },
1090
- highlightNextItem({ context: e, scope: t, event: n, prop: i }) {
1091
- const s = Ke(t, {
1092
- loop: n.loop,
1093
- value: e.get("highlightedValue"),
1094
- loopFocus: i("loopFocus")
1095
- });
1096
- e.set("highlightedValue", y(s));
1097
- },
1098
- highlightPrevItem({ context: e, scope: t, event: n, prop: i }) {
1099
- const s = $e(t, {
1100
- loop: n.loop,
1101
- value: e.get("highlightedValue"),
1102
- loopFocus: i("loopFocus")
1103
- });
1104
- e.set("highlightedValue", y(s));
1105
- },
1106
- invokeOnSelect({ context: e, prop: t, scope: n }) {
1107
- var g;
1108
- const i = e.get("highlightedValue");
1109
- if (i == null) return;
1110
- const s = le(n, i);
1111
- qe(s, i), (g = t("onSelect")) == null || g({ value: i });
1112
- },
1113
- focusTrigger({ scope: e, context: t, event: n }) {
1114
- t.get("isSubmenu") || t.get("anchorPoint") || n.restoreFocus === !1 || queueMicrotask(() => {
1115
- var i;
1116
- return (i = _(e)) == null ? void 0 : i.focus({ preventScroll: !0 });
1117
- });
1118
- },
1119
- highlightMatchedItem({ scope: e, context: t, event: n, refs: i }) {
1120
- const s = Xe(e, {
1121
- key: n.key,
1122
- value: t.get("highlightedValue"),
1123
- typeaheadState: i.get("typeaheadState")
1124
- });
1125
- s && t.set("highlightedValue", y(s));
1126
- },
1127
- setParentMenu({ refs: e, event: t, context: n }) {
1128
- e.set("parent", t.value), n.set("isSubmenu", !0);
1129
- },
1130
- setChildMenu({ refs: e, event: t }) {
1131
- const n = e.get("children");
1132
- n[t.id] = t.value, e.set("children", n);
1133
- },
1134
- closeRootMenu({ refs: e }) {
1135
- ie({ parent: e.get("parent") });
1136
- },
1137
- openSubmenu({ refs: e, scope: t, computed: n }) {
1138
- const i = t.getById(n("highlightedId")), s = i == null ? void 0 : i.getAttribute("data-uid"), g = e.get("children"), o = s ? g[s] : null;
1139
- o == null || o.send({ type: "OPEN_AUTOFOCUS" });
1140
- },
1141
- focusParentMenu({ refs: e }) {
1142
- var t;
1143
- (t = e.get("parent")) == null || t.send({ type: "FOCUS_MENU" });
1144
- },
1145
- setLastHighlightedItem({ context: e, event: t }) {
1146
- e.set("lastHighlightedValue", y(t.target));
1147
- },
1148
- restoreHighlightedItem({ context: e }) {
1149
- e.get("lastHighlightedValue") && (e.set("highlightedValue", e.get("lastHighlightedValue")), e.set("lastHighlightedValue", null));
1150
- },
1151
- restoreParentHighlightedItem({ refs: e }) {
1152
- var t;
1153
- (t = e.get("parent")) == null || t.send({ type: "HIGHLIGHTED.RESTORE" });
1154
- },
1155
- invokeOnOpen({ prop: e }) {
1156
- var t;
1157
- (t = e("onOpenChange")) == null || t({ open: !0 });
1158
- },
1159
- invokeOnClose({ prop: e }) {
1160
- var t;
1161
- (t = e("onOpenChange")) == null || t({ open: !1 });
1162
- },
1163
- toggleVisibility({ prop: e, event: t, send: n }) {
1164
- n({
1165
- type: e("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE",
1166
- previousEvent: t
1167
- });
1168
- }
1169
- }
1170
- }
1171
- });
1172
- function ie(e) {
1173
- let t = e.parent;
1174
- for (; t && t.context.get("isSubmenu"); )
1175
- t = t.refs.get("parent");
1176
- t == null || t.send({ type: "CLOSE" });
1177
- }
1178
- function Je(e, t) {
1179
- return e ? Ve(e, t) : !1;
1180
- }
1181
- function Qe(e, t, n) {
1182
- const i = Object.keys(e).length > 0;
1183
- if (!t) return null;
1184
- if (!i)
1185
- return N(n, t);
1186
- for (const s in e) {
1187
- const g = e[s], o = w(g.scope);
1188
- if (o === t)
1189
- return o;
1190
- }
1191
- return N(n, t);
1192
- }
1193
- k()([
1194
- "anchorPoint",
1195
- "aria-label",
1196
- "closeOnSelect",
1197
- "composite",
1198
- "defaultHighlightedValue",
1199
- "defaultOpen",
1200
- "dir",
1201
- "getRootNode",
1202
- "highlightedValue",
1203
- "id",
1204
- "ids",
1205
- "loopFocus",
1206
- "navigate",
1207
- "onEscapeKeyDown",
1208
- "onFocusOutside",
1209
- "onHighlightChange",
1210
- "onInteractOutside",
1211
- "onOpenChange",
1212
- "onPointerDownOutside",
1213
- "onRequestDismiss",
1214
- "onSelect",
1215
- "open",
1216
- "positioning",
1217
- "typeahead"
1218
- ]);
1219
- k()(["closeOnSelect", "disabled", "value", "valueText"]);
1220
- k()(["htmlFor"]);
1221
- k()(["id"]);
1222
- k()([
1223
- "checked",
1224
- "closeOnSelect",
1225
- "disabled",
1226
- "onCheckedChange",
1227
- "type",
1228
- "value",
1229
- "valueText"
1230
- ]);
1231
- export {
1232
- Fe as anatomy,
1233
- at as connect,
1234
- st as machine
1235
- };