@cube-dev/ui-kit 0.0.0-canary-9e84d51 → 0.0.0-canary-ef259f7

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 (632) hide show
  1. package/dist/components/Action/Action.js +1 -1
  2. package/dist/components/ActiveZone/ActiveZone.js +1 -1
  3. package/dist/components/Alert/Alert.js +1 -1
  4. package/dist/components/Alert/use-alert.js +1 -1
  5. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  6. package/dist/components/AlertDialog/AlertDialogApiProvider.js +1 -1
  7. package/dist/components/AlertDialog/AlertDialogZone.js +1 -1
  8. package/dist/components/Avatar/Avatar.js +1 -1
  9. package/dist/components/Badge/Badge.js +1 -1
  10. package/dist/components/Banner/Banner.js +1 -1
  11. package/dist/components/Block/Block.js +1 -1
  12. package/dist/components/Button/AutoCollapseObserver.js +1 -1
  13. package/dist/components/Button/Button.js +6 -1
  14. package/dist/components/Button/Button.js.map +1 -1
  15. package/dist/components/Button/index.js +1 -1
  16. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  17. package/dist/components/ButtonSplit/ButtonSplit.js +8 -5
  18. package/dist/components/ButtonSplit/ButtonSplit.js.map +1 -1
  19. package/dist/components/ButtonSplit/ButtonSplitContext.js +1 -1
  20. package/dist/components/Calendar/Calendar.js +1 -1
  21. package/dist/components/Calendar/CalendarCell.js +1 -1
  22. package/dist/components/Calendar/CalendarGrid.js +1 -1
  23. package/dist/components/Calendar/CalendarHeader.js +1 -1
  24. package/dist/components/Calendar/CalendarPanel.js +1 -1
  25. package/dist/components/Calendar/PeriodCalendar.js +1 -1
  26. package/dist/components/Calendar/PeriodGrid.js +1 -1
  27. package/dist/components/Calendar/RangeCalendar.js +1 -1
  28. package/dist/components/Calendar/styled.js +1 -1
  29. package/dist/components/Card/Card.js +1 -1
  30. package/dist/components/Checkbox/Checkbox.js +1 -1
  31. package/dist/components/Checkbox/CheckboxGroup.js +1 -1
  32. package/dist/components/Checkbox/CheckboxGroupContext.js +1 -1
  33. package/dist/components/CollectionItem/CollectionItem.js +1 -1
  34. package/dist/components/ColorInput/ColorInput.js +1 -1
  35. package/dist/components/ColorPanel/ColorPanel.js +1 -1
  36. package/dist/components/ColorPicker/ColorPicker.js +1 -1
  37. package/dist/components/ColorSwatch/ColorSwatch.js +1 -1
  38. package/dist/components/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
  39. package/dist/components/ComboBox/ComboBox.js +1 -1
  40. package/dist/components/ComboBox/combo-box-options.js +1 -1
  41. package/dist/components/CommandMenu/CommandMenu.js +1 -1
  42. package/dist/components/CommandMenu/styled.js +1 -1
  43. package/dist/components/CommandTextArea/CommandTextArea.js +1 -1
  44. package/dist/components/CommandTextArea/caret-position.js +1 -1
  45. package/dist/components/CommandTextArea/use-caret-anchor.js +1 -1
  46. package/dist/components/Content/Content.js +1 -1
  47. package/dist/components/CopyPasteBlock/CopyPasteBlock.js +1 -1
  48. package/dist/components/CopySnippet/CopySnippet.js +1 -1
  49. package/dist/components/CubeLogo/CubeLogo.js +1 -1
  50. package/dist/components/DataTable/DataTable.js +1 -1
  51. package/dist/components/DatePicker/CalendarPopover.js +1 -1
  52. package/dist/components/DatePicker/DateInput.js +1 -1
  53. package/dist/components/DatePicker/DateInputBase.js +1 -1
  54. package/dist/components/DatePicker/DatePicker.js +1 -1
  55. package/dist/components/DatePicker/DatePickerButton.js +1 -1
  56. package/dist/components/DatePicker/DatePickerElement.js +1 -1
  57. package/dist/components/DatePicker/DatePickerInput.js +1 -1
  58. package/dist/components/DatePicker/DatePickerSegment.js +1 -1
  59. package/dist/components/DatePicker/DateRangePicker.js +1 -1
  60. package/dist/components/DatePicker/DateRangeSeparatedPicker.js +1 -1
  61. package/dist/components/DatePicker/MonthPicker.js +1 -1
  62. package/dist/components/DatePicker/PeriodPicker.js +1 -1
  63. package/dist/components/DatePicker/QuarterPicker.js +1 -1
  64. package/dist/components/DatePicker/TimeInput.js +1 -1
  65. package/dist/components/DatePicker/WeekPicker.js +1 -1
  66. package/dist/components/DatePicker/YearPicker.js +1 -1
  67. package/dist/components/DatePicker/parse-date.js +1 -1
  68. package/dist/components/DatePicker/period.js +1 -1
  69. package/dist/components/DatePicker/props.js +1 -1
  70. package/dist/components/DatePicker/utils.js +1 -1
  71. package/dist/components/Dialog/Dialog.js +1 -1
  72. package/dist/components/Dialog/DialogContainer.js +1 -1
  73. package/dist/components/Dialog/DialogContext.js +1 -1
  74. package/dist/components/Dialog/DialogForm.js +1 -1
  75. package/dist/components/Dialog/DialogTrigger.js +1 -1
  76. package/dist/components/Dialog/ModernDialogForm.js +1 -1
  77. package/dist/components/Dialog/default-button-text.js +1 -1
  78. package/dist/components/Dialog/use-content-overflow.js +1 -1
  79. package/dist/components/Dialog/use-dialog-container.js +1 -1
  80. package/dist/components/Dialog/use-dialog-open-sync.js +1 -1
  81. package/dist/components/Dialog/use-dismiss-confirmation.js +1 -1
  82. package/dist/components/Dialog/use-retained-dialog-focus.js +1 -1
  83. package/dist/components/Disclosure/Disclosure.js +1 -1
  84. package/dist/components/DisplayTransition/DisplayTransition.js +1 -1
  85. package/dist/components/Divider/Divider.js +1 -1
  86. package/dist/components/DraggableCollection/DraggableCollection.js +1 -1
  87. package/dist/components/FieldWrapper/FieldWrapper.js +1 -1
  88. package/dist/components/FieldWrapper/field-description.js +1 -1
  89. package/dist/components/FileInput/FileInput.js +1 -1
  90. package/dist/components/FilterListBox/FilterListBox.js +1 -1
  91. package/dist/components/FilterListBox/styled.js +1 -1
  92. package/dist/components/FilterPicker/FilterPicker.js +1 -1
  93. package/dist/components/FilterPicker/FilterTree.js +1 -1
  94. package/dist/components/Flex/Flex.js +1 -1
  95. package/dist/components/Flow/Flow.js +1 -1
  96. package/dist/components/Footer/Footer.js +1 -1
  97. package/dist/components/Form/Field.js +1 -1
  98. package/dist/components/Form/Form.js +1 -1
  99. package/dist/components/Form/FormContext.js +1 -1
  100. package/dist/components/Form/FormElement.js +1 -1
  101. package/dist/components/Form/ModernFormRoot.js +1 -1
  102. package/dist/components/Form/ResetButton.js +1 -1
  103. package/dist/components/Form/SubmitButton.js +1 -1
  104. package/dist/components/Form/SubmitError.js +1 -1
  105. package/dist/components/Form/backend.js +1 -1
  106. package/dist/components/Form/index.js +1 -1
  107. package/dist/components/Form/modern/ModernActions.js +1 -1
  108. package/dist/components/Form/modern/ModernControllerContext.js +1 -1
  109. package/dist/components/Form/modern/after-press.js +1 -1
  110. package/dist/components/Form/modern/controller.js +1 -1
  111. package/dist/components/Form/modern/field-binding.js +1 -1
  112. package/dist/components/Form/modern/field.js +1 -1
  113. package/dist/components/Form/modern/react.js +1 -1
  114. package/dist/components/Form/modern/store.js +1 -1
  115. package/dist/components/Form/modern/validation.js +1 -1
  116. package/dist/components/Form/modern/values.js +1 -1
  117. package/dist/components/Form/reset-unbound-controls.js +1 -1
  118. package/dist/components/Form/use-field/use-field-binding.js +1 -1
  119. package/dist/components/Form/use-field/use-field-props.js +1 -1
  120. package/dist/components/Form/use-field/use-field.js +1 -1
  121. package/dist/components/Form/use-form.js +1 -1
  122. package/dist/components/Form/validation.js +1 -1
  123. package/dist/components/GlobalStyles/GlobalStyles.js +1 -1
  124. package/dist/components/Grid/Grid.js +1 -1
  125. package/dist/components/GridProvider/GridProvider.js +1 -1
  126. package/dist/components/Header/Header.js +1 -1
  127. package/dist/components/HiddenInput/HiddenInput.js +1 -1
  128. package/dist/components/HotKeys/HotKeys.js +1 -1
  129. package/dist/components/IconSwitch/IconSwitch.js +1 -1
  130. package/dist/components/InfoBadge/InfoBadge.js +1 -1
  131. package/dist/components/InlineInput/InlineInput.js +1 -1
  132. package/dist/components/Input/Input.js +1 -1
  133. package/dist/components/Item/Item.js +1 -1
  134. package/dist/components/Item/ItemWithNativeLinks.js +1 -1
  135. package/dist/components/ItemAction/ItemAction.js +1 -1
  136. package/dist/components/ItemAction/ItemCloseAction.js +1 -1
  137. package/dist/components/ItemActionsWrapper/ItemActionsWrapper.js +1 -1
  138. package/dist/components/ItemBadge/ItemBadge.js +1 -1
  139. package/dist/components/ItemButton/ItemButton.js +6 -2
  140. package/dist/components/ItemButton/ItemButton.js.map +1 -1
  141. package/dist/components/ItemCard/ItemCard.js +1 -1
  142. package/dist/components/ItemTable/ItemTable.js +1 -1
  143. package/dist/components/ItemTable/ItemTableBulkBar.js +1 -1
  144. package/dist/components/ItemTable/ItemTableDragPreview.js +1 -1
  145. package/dist/components/ItemTable/ItemTableFooter.js +1 -1
  146. package/dist/components/ItemTable/ItemTableToolbar.js +1 -1
  147. package/dist/components/ItemTable/item-table-sections.js +1 -1
  148. package/dist/components/ItemTable/use-item-table-column-widths.js +1 -1
  149. package/dist/components/ItemTable/use-item-table-drag-drop.js +1 -1
  150. package/dist/components/ItemTable/use-item-table-pagination.js +1 -1
  151. package/dist/components/ItemTable/use-item-table-selection.js +1 -1
  152. package/dist/components/ItemTable/use-item-table-sort.js +1 -1
  153. package/dist/components/ItemTable/use-item-table-tree-model.js +1 -1
  154. package/dist/components/Label/Label.js +1 -1
  155. package/dist/components/Layout/GridLayout.js +1 -1
  156. package/dist/components/Layout/Layout.js +1 -1
  157. package/dist/components/Layout/LayoutBlock.js +1 -1
  158. package/dist/components/Layout/LayoutCenter.js +1 -1
  159. package/dist/components/Layout/LayoutContainer.js +1 -1
  160. package/dist/components/Layout/LayoutContent.js +1 -1
  161. package/dist/components/Layout/LayoutContext.js +1 -1
  162. package/dist/components/Layout/LayoutFlex.js +1 -1
  163. package/dist/components/Layout/LayoutFooter.js +1 -1
  164. package/dist/components/Layout/LayoutGrid.js +1 -1
  165. package/dist/components/Layout/LayoutHeader.js +1 -1
  166. package/dist/components/Layout/LayoutPane.js +1 -1
  167. package/dist/components/Layout/LayoutPanel.js +1 -1
  168. package/dist/components/Layout/LayoutPanelHeader.js +1 -1
  169. package/dist/components/Layout/LayoutPanelTransition.js +1 -1
  170. package/dist/components/Layout/LayoutResizeHandle.js +1 -1
  171. package/dist/components/Layout/LayoutToolbar.js +1 -1
  172. package/dist/components/Layout/index.js +1 -1
  173. package/dist/components/Layout/use-tiny-scrollbar.js +1 -1
  174. package/dist/components/Layout/utils.js +1 -1
  175. package/dist/components/Link/Link.js +1 -1
  176. package/dist/components/ListBox/DraggableListBox.js +1 -1
  177. package/dist/components/ListBox/ListBox.js +1 -1
  178. package/dist/components/ListBox/empty-row.js +1 -1
  179. package/dist/components/ListBox/option-id.js +1 -1
  180. package/dist/components/ListBox/use-disabled-focus-reset.js +1 -1
  181. package/dist/components/ListBoxPopover/EmptyLabelStatus.js +1 -1
  182. package/dist/components/ListBoxPopover/ListBoxPopover.js +1 -1
  183. package/dist/components/ListBoxPopover/list-navigation.js +1 -1
  184. package/dist/components/ListBoxPopover/use-composite-focus.js +1 -1
  185. package/dist/components/ListBoxPopover/use-delayed-loading.js +1 -1
  186. package/dist/components/LoadingAnimation/LoadingAnimation.js +1 -1
  187. package/dist/components/Menu/Menu.js +1 -1
  188. package/dist/components/Menu/MenuCollectionItem.js +1 -1
  189. package/dist/components/Menu/MenuContext.js +1 -1
  190. package/dist/components/Menu/MenuItem.js +1 -1
  191. package/dist/components/Menu/MenuSection.js +1 -1
  192. package/dist/components/Menu/MenuTrigger.js +1 -1
  193. package/dist/components/Menu/SubMenuTrigger.js +1 -1
  194. package/dist/components/Menu/SubmenuTriggerContext.js +1 -1
  195. package/dist/components/Menu/styled.js +1 -1
  196. package/dist/components/Menu/touch-context-menu.js +1 -1
  197. package/dist/components/Menu/use-anchored-menu.js +1 -1
  198. package/dist/components/Menu/use-context-menu.js +1 -1
  199. package/dist/components/Modal/Modal.js +1 -1
  200. package/dist/components/Modal/ModalContainmentProvider.js +1 -1
  201. package/dist/components/Modal/OpenTransitionContext.js +1 -1
  202. package/dist/components/Modal/Overlay.js +1 -1
  203. package/dist/components/Modal/Popover.js +1 -1
  204. package/dist/components/Modal/Tray.js +1 -1
  205. package/dist/components/Modal/Underlay.js +1 -1
  206. package/dist/components/NavTabs/NavTabs.js +1 -1
  207. package/dist/components/NoDataIcon/NoDataIcon.js +1 -1
  208. package/dist/components/Notifications/Notification.js +1 -1
  209. package/dist/components/Notifications/NotificationAction.js +1 -1
  210. package/dist/components/Notifications/NotificationCard.js +1 -1
  211. package/dist/components/Notifications/NotificationContext.js +1 -1
  212. package/dist/components/Notifications/NotificationItem.js +1 -1
  213. package/dist/components/Notifications/OverlayContainer.js +1 -1
  214. package/dist/components/Notifications/OverlayProvider.js +1 -1
  215. package/dist/components/Notifications/PersistentNotificationsList.js +1 -1
  216. package/dist/components/Notifications/dismissed-storage.js +1 -1
  217. package/dist/components/Notifications/format-relative-time.js +1 -1
  218. package/dist/components/Notifications/index.js +1 -1
  219. package/dist/components/Notifications/use-live-region.js +1 -1
  220. package/dist/components/Notifications/use-notification-state.js +1 -1
  221. package/dist/components/Notifications/use-notifications.js +1 -1
  222. package/dist/components/Notifications/use-overlay-timers.js +1 -1
  223. package/dist/components/Notifications/use-persistent-notifications.js +1 -1
  224. package/dist/components/Notifications/use-persistent-state.js +1 -1
  225. package/dist/components/Notifications/use-toast-state.js +1 -1
  226. package/dist/components/NumberInput/NumberInput.js +1 -1
  227. package/dist/components/NumberInput/StepButton.js +1 -1
  228. package/dist/components/Pagination/Pagination.js +5 -2
  229. package/dist/components/Pagination/Pagination.js.map +1 -1
  230. package/dist/components/Pagination/use-pagination.js +1 -1
  231. package/dist/components/Panel/Panel.js +1 -1
  232. package/dist/components/Paragraph/Paragraph.js +1 -1
  233. package/dist/components/PasswordInput/PasswordInput.js +1 -1
  234. package/dist/components/Picker/Picker.js +1 -1
  235. package/dist/components/Placeholder/Placeholder.js +1 -1
  236. package/dist/components/Portal/Portal.js +1 -1
  237. package/dist/components/Portal/PortalProvider.js +1 -1
  238. package/dist/components/Portal/use-portal.js +1 -1
  239. package/dist/components/Prefix/Prefix.js +1 -1
  240. package/dist/components/PrismCode/PrismCode.js +1 -1
  241. package/dist/components/PrismCode/prism-setup.js +1 -1
  242. package/dist/components/PrismDiffCode/PrismDiffCode.js +1 -1
  243. package/dist/components/RadioGroup/Radio.js +2 -2
  244. package/dist/components/RadioGroup/RadioContext.js +1 -1
  245. package/dist/components/RadioGroup/RadioGroup.js +2 -2
  246. package/dist/components/RadioGroup/joined-styles.js +27 -4
  247. package/dist/components/RadioGroup/joined-styles.js.map +1 -1
  248. package/dist/components/RenderCache/RenderCache.js +1 -1
  249. package/dist/components/ResizablePanel/ResizablePanel.js +1 -1
  250. package/dist/components/Result/Result.js +1 -1
  251. package/dist/components/Root/Root.js +1 -1
  252. package/dist/components/SearchComboBox/SearchComboBox.js +1 -1
  253. package/dist/components/SearchInput/SearchInput.js +1 -1
  254. package/dist/components/Select/Select.js +6 -2
  255. package/dist/components/Select/Select.js.map +1 -1
  256. package/dist/components/Skeleton/Skeleton.js +1 -1
  257. package/dist/components/Slider/Gradation.js +1 -1
  258. package/dist/components/Slider/HueSlider.js +1 -1
  259. package/dist/components/Slider/RangeSlider.js +1 -1
  260. package/dist/components/Slider/Slider.js +1 -1
  261. package/dist/components/Slider/SliderBase.js +1 -1
  262. package/dist/components/Slider/SliderThumb.js +1 -1
  263. package/dist/components/Slider/SliderTrack.js +1 -1
  264. package/dist/components/Slider/elements.js +1 -1
  265. package/dist/components/Slider/index.js +1 -1
  266. package/dist/components/Space/Space.js +1 -1
  267. package/dist/components/Spin/Cube.js +1 -1
  268. package/dist/components/Spin/InternalSpinner.js +1 -1
  269. package/dist/components/Spin/Spin.js +1 -1
  270. package/dist/components/Spin/SpinsContainer.js +1 -1
  271. package/dist/components/StatsCard/StatsCard.js +1 -1
  272. package/dist/components/Suffix/Suffix.js +1 -1
  273. package/dist/components/Switch/Switch.js +1 -1
  274. package/dist/components/TableBase/ColumnResizer.js +1 -1
  275. package/dist/components/TableBase/RowCollection.js +1 -1
  276. package/dist/components/TableBase/TableHeaderCell.js +1 -1
  277. package/dist/components/TableBase/TableRow.js +1 -1
  278. package/dist/components/TableBase/TableRowLink.js +1 -1
  279. package/dist/components/TableBase/TableView.js +1 -1
  280. package/dist/components/TableBase/TreeGridTable.js +1 -1
  281. package/dist/components/TableBase/column-header.js +1 -1
  282. package/dist/components/TableBase/column-menu.js +1 -1
  283. package/dist/components/TableBase/column-styles.js +1 -1
  284. package/dist/components/TableBase/column-tint.js +1 -1
  285. package/dist/components/TableBase/row-menu.js +1 -1
  286. package/dist/components/TableBase/styled.js +1 -1
  287. package/dist/components/TableBase/table-body-sections.js +1 -1
  288. package/dist/components/TableBase/table-tree.js +1 -1
  289. package/dist/components/TableBase/types.js +1 -1
  290. package/dist/components/TableBase/use-cell-selection.js +0 -0
  291. package/dist/components/TableBase/use-column-menu.js +1 -1
  292. package/dist/components/TableBase/use-column-order.js +1 -1
  293. package/dist/components/TableBase/use-column-window.js +1 -1
  294. package/dist/components/TableBase/use-container-width.js +1 -1
  295. package/dist/components/TableBase/use-row-move-animation.js +1 -1
  296. package/dist/components/TableBase/use-scrollability.js +1 -1
  297. package/dist/components/TableBase/use-table-columns.js +1 -1
  298. package/dist/components/TableBase/use-table-search.js +1 -1
  299. package/dist/components/TableBase/use-table-selection.js +1 -1
  300. package/dist/components/TableBase/use-table-sort.js +1 -1
  301. package/dist/components/TableBase/use-table-sorts.js +1 -1
  302. package/dist/components/TableBase/use-table-storage.js +1 -1
  303. package/dist/components/TableBase/use-table-tooltip-refresh.js +1 -1
  304. package/dist/components/TableBase/use-table-tree-state.js +1 -1
  305. package/dist/components/Tabs/BoardDragActiveProvider.js +1 -1
  306. package/dist/components/Tabs/DraggableTabList.js +1 -1
  307. package/dist/components/Tabs/TabButton.js +1 -1
  308. package/dist/components/Tabs/TabDropIndicator.js +1 -1
  309. package/dist/components/Tabs/TabPanel.js +1 -1
  310. package/dist/components/Tabs/TabPicker.js +1 -1
  311. package/dist/components/Tabs/Tabs.js +1 -1
  312. package/dist/components/Tabs/TabsAction.js +1 -1
  313. package/dist/components/Tabs/TabsContext.js +1 -1
  314. package/dist/components/Tabs/popover-placement.js +1 -1
  315. package/dist/components/Tabs/scroll-tab-into-strip.js +1 -1
  316. package/dist/components/Tabs/segmented-styles.js +1 -1
  317. package/dist/components/Tabs/styled.js +1 -1
  318. package/dist/components/Tabs/types.js +1 -1
  319. package/dist/components/Tabs/use-tab-editing.js +1 -1
  320. package/dist/components/Tabs/use-tab-indicator.js +1 -1
  321. package/dist/components/Tag/Tag.js +1 -1
  322. package/dist/components/TagInput/TagInput.js +1 -1
  323. package/dist/components/TagInput/TagList.js +1 -1
  324. package/dist/components/TagInput/use-active-option.js +1 -1
  325. package/dist/components/TagInput/use-suffix-space.js +1 -1
  326. package/dist/components/TagInput/use-tag-error.js +1 -1
  327. package/dist/components/Text/Text.js +1 -1
  328. package/dist/components/TextArea/TextArea.js +1 -1
  329. package/dist/components/TextInput/TextInput.js +1 -1
  330. package/dist/components/TextInput/TextInputBase.js +1 -1
  331. package/dist/components/TextInput/displayed-validation.js +1 -1
  332. package/dist/components/TextInput/identifier-text-services.js +1 -1
  333. package/dist/components/TextInput/password-manager-ignore.js +1 -1
  334. package/dist/components/TextInput/use-auto-size-text-area.js +1 -1
  335. package/dist/components/TextInputMapper/TextInputMapper.js +1 -1
  336. package/dist/components/TextItem/TextItem.js +1 -1
  337. package/dist/components/Title/Title.js +1 -1
  338. package/dist/components/Toast/AnnouncedToastItem.js +1 -1
  339. package/dist/components/Toast/Toast.js +1 -1
  340. package/dist/components/Toast/ToastItem.js +1 -1
  341. package/dist/components/Toast/use-progress-toast.js +1 -1
  342. package/dist/components/Toast/use-toast.js +1 -1
  343. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  344. package/dist/components/ToggleGroup/ToggleGroupContext.js +1 -1
  345. package/dist/components/ToggleGroup/ToggleGroupItem.js +1 -1
  346. package/dist/components/Tooltip/Tooltip.js +1 -1
  347. package/dist/components/Tooltip/TooltipContext.js +1 -1
  348. package/dist/components/Tooltip/TooltipProvider.js +1 -1
  349. package/dist/components/Tooltip/TooltipTrigger.js +1 -1
  350. package/dist/components/Tooltip/last-press.js +1 -1
  351. package/dist/components/Tooltip/split-trigger-props.js +1 -1
  352. package/dist/components/Tree/Tree.js +1 -1
  353. package/dist/components/Tree/TreeNode.js +1 -1
  354. package/dist/components/Tree/checked-keys.js +1 -1
  355. package/dist/components/Tree/row-id.js +1 -1
  356. package/dist/components/Tree/styled.js +1 -1
  357. package/dist/components/Tree/tree-index.js +1 -1
  358. package/dist/components/Tree/use-checkbox-tree.js +1 -1
  359. package/dist/components/Tree/use-load-data.js +1 -1
  360. package/dist/components/TriggerActions/TriggerActions.js +1 -1
  361. package/dist/components/Typography/Typography.js +1 -1
  362. package/dist/components/ValidationIndicator/InvalidIcon.js +1 -1
  363. package/dist/components/ValidationIndicator/ValidIcon.js +1 -1
  364. package/dist/components/ValidationIndicator/ValidationIndicator.js +1 -1
  365. package/dist/eslint-plugin/defaults.generated.js +1 -1
  366. package/dist/eslint-plugin/index.js +1 -1
  367. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
  368. package/dist/harness/colors-deps.js +2 -2
  369. package/dist/hooks/use-action.js +1 -1
  370. package/dist/hooks/use-auto-tooltip.js +1 -1
  371. package/dist/hooks/use-buffered-value.js +1 -1
  372. package/dist/hooks/use-combined-refs.js +1 -1
  373. package/dist/hooks/use-controlled-focus-visible.js +1 -1
  374. package/dist/hooks/use-debounced-value.js +1 -1
  375. package/dist/hooks/use-deprecation-warning.js +1 -1
  376. package/dist/hooks/use-event.js +1 -1
  377. package/dist/hooks/use-id.js +1 -1
  378. package/dist/hooks/use-is-darwin.js +1 -1
  379. package/dist/hooks/use-is-first-render.js +1 -1
  380. package/dist/hooks/use-key-symbols.js +1 -1
  381. package/dist/hooks/use-layout-effect.js +1 -1
  382. package/dist/hooks/use-local-storage.js +1 -1
  383. package/dist/hooks/use-merge-styles.js +1 -1
  384. package/dist/hooks/use-open-key.js +1 -1
  385. package/dist/hooks/use-overlay-escape-guard.js +1 -1
  386. package/dist/hooks/use-overlay-position.js +1 -1
  387. package/dist/hooks/use-popover-sync.js +1 -1
  388. package/dist/hooks/use-qa-props.js +1 -1
  389. package/dist/hooks/use-scheme.js +1 -1
  390. package/dist/hooks/use-sync-ref.js +1 -1
  391. package/dist/hooks/use-timer/Timer.js +1 -1
  392. package/dist/hooks/use-timer/use-timer.js +1 -1
  393. package/dist/hooks/use-validation-props.js +1 -1
  394. package/dist/hooks/use-viewport-size.js +1 -1
  395. package/dist/hooks/use-warn.js +1 -1
  396. package/dist/i18n/I18nProvider.js +1 -1
  397. package/dist/i18n/add-uikit-locale.js +1 -1
  398. package/dist/i18n/create-formatter.js +1 -1
  399. package/dist/i18n/instance.js +1 -1
  400. package/dist/i18n/locales/de-DE/uikit.js +1 -1
  401. package/dist/i18n/locales/en-US/uikit.js +1 -1
  402. package/dist/i18n/locales/es-ES/uikit.js +1 -1
  403. package/dist/i18n/locales/es-MX/uikit.js +1 -1
  404. package/dist/i18n/locales/fr-FR/uikit.js +1 -1
  405. package/dist/i18n/locales/it-IT/uikit.js +1 -1
  406. package/dist/i18n/locales/ja-JP/uikit.js +1 -1
  407. package/dist/i18n/locales/nb-NO/uikit.js +1 -1
  408. package/dist/i18n/locales/pt-BR/uikit.js +1 -1
  409. package/dist/i18n/locales/pt-PT/uikit.js +1 -1
  410. package/dist/i18n/locales/sv-SE/uikit.js +1 -1
  411. package/dist/i18n/locales/vi-VN/uikit.js +1 -1
  412. package/dist/i18n/locales.js +1 -1
  413. package/dist/i18n/namespace.js +1 -1
  414. package/dist/i18n/use-formatter.js +1 -1
  415. package/dist/i18n/use-i18n.js +1 -1
  416. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  417. package/dist/icons/AdjustmentsIcon.js +1 -1
  418. package/dist/icons/AiIcon.js +1 -1
  419. package/dist/icons/AreaChartIcon.js +1 -1
  420. package/dist/icons/ArrowNarrowDownIcon.js +1 -1
  421. package/dist/icons/ArrowNarrowUpIcon.js +1 -1
  422. package/dist/icons/BackwardIcon.js +1 -1
  423. package/dist/icons/BarChartIcon.js +1 -1
  424. package/dist/icons/BellFilledIcon.js +1 -1
  425. package/dist/icons/BellIcon.js +1 -1
  426. package/dist/icons/BooleanIcon.js +1 -1
  427. package/dist/icons/CalendarEditIcon.js +1 -1
  428. package/dist/icons/CalendarIcon.js +1 -1
  429. package/dist/icons/CaretDownIcon.js +1 -1
  430. package/dist/icons/CaretUpIcon.js +1 -1
  431. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  432. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  433. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  434. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  435. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  436. package/dist/icons/ChartBarLineIcon.js +1 -1
  437. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  438. package/dist/icons/ChartBarStackedIcon.js +1 -1
  439. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  440. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  441. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  442. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  443. package/dist/icons/ChartBubbleIcon.js +1 -1
  444. package/dist/icons/ChartDonut2Icon.js +1 -1
  445. package/dist/icons/ChartFunnelIcon.js +1 -1
  446. package/dist/icons/ChartHeatmapIcon.js +1 -1
  447. package/dist/icons/ChartKPIIcon.js +1 -1
  448. package/dist/icons/ChartPie2Icon.js +1 -1
  449. package/dist/icons/ChartScatterIcon.js +1 -1
  450. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  451. package/dist/icons/CheckCircleIcon.js +1 -1
  452. package/dist/icons/CheckIcon.js +1 -1
  453. package/dist/icons/CircleFilledIcon.js +1 -1
  454. package/dist/icons/ClearIcon.js +1 -1
  455. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  456. package/dist/icons/CloseCircleIcon.js +1 -1
  457. package/dist/icons/CloseIcon.js +1 -1
  458. package/dist/icons/CodeIcon.js +1 -1
  459. package/dist/icons/ColumnTotalIcon.js +1 -1
  460. package/dist/icons/CopyIcon.js +1 -1
  461. package/dist/icons/CountIcon.js +1 -1
  462. package/dist/icons/CubeIcon.js +1 -1
  463. package/dist/icons/CubePauseIcon.js +1 -1
  464. package/dist/icons/CubePlayIcon.js +1 -1
  465. package/dist/icons/CurrencyDollarIcon.js +1 -1
  466. package/dist/icons/DangerIcon.js +1 -1
  467. package/dist/icons/DashboardIcon.js +1 -1
  468. package/dist/icons/DatabaseIcon.js +1 -1
  469. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  470. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  471. package/dist/icons/DirectionIcon.js +1 -1
  472. package/dist/icons/DonutIcon.js +1 -1
  473. package/dist/icons/DownIcon.js +1 -1
  474. package/dist/icons/EditIcon.js +1 -1
  475. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  476. package/dist/icons/ExclamationCircleIcon.js +1 -1
  477. package/dist/icons/ExclamationIcon.js +1 -1
  478. package/dist/icons/EyeIcon.js +1 -1
  479. package/dist/icons/EyeInvisibleIcon.js +1 -1
  480. package/dist/icons/FilterIcon.js +1 -1
  481. package/dist/icons/FolderFilledIcon.js +1 -1
  482. package/dist/icons/FolderIcon.js +1 -1
  483. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  484. package/dist/icons/FolderOpenIcon.js +1 -1
  485. package/dist/icons/ForwardIcon.js +1 -1
  486. package/dist/icons/GripVerticalIcon.js +1 -1
  487. package/dist/icons/HierarchyIcon.js +1 -1
  488. package/dist/icons/HierarchyOpenIcon.js +1 -1
  489. package/dist/icons/Icon.js +1 -1
  490. package/dist/icons/InfoCircleIcon.js +1 -1
  491. package/dist/icons/InfoIcon.js +1 -1
  492. package/dist/icons/KeyIcon.js +1 -1
  493. package/dist/icons/LeftIcon.js +1 -1
  494. package/dist/icons/LineChartIcon.js +1 -1
  495. package/dist/icons/LoadingIcon.js +1 -1
  496. package/dist/icons/LockFilledIcon.js +1 -1
  497. package/dist/icons/LockIcon.js +1 -1
  498. package/dist/icons/MoreIcon.js +1 -1
  499. package/dist/icons/NotAllowedIcon.js +1 -1
  500. package/dist/icons/Number123Icon.js +1 -1
  501. package/dist/icons/NumberIcon.js +1 -1
  502. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  503. package/dist/icons/PauseCircleIcon.js +1 -1
  504. package/dist/icons/PauseIcon.js +1 -1
  505. package/dist/icons/PercentageIcon.js +1 -1
  506. package/dist/icons/PieChartIcon.js +1 -1
  507. package/dist/icons/PipetteIcon.js +1 -1
  508. package/dist/icons/PlayCircleIcon.js +1 -1
  509. package/dist/icons/PlayIcon.js +1 -1
  510. package/dist/icons/PlusIcon.js +1 -1
  511. package/dist/icons/ProgressBarIcon.js +1 -1
  512. package/dist/icons/ReloadIcon.js +1 -1
  513. package/dist/icons/ReportIcon.js +1 -1
  514. package/dist/icons/ReturnIcon.js +1 -1
  515. package/dist/icons/RightIcon.js +1 -1
  516. package/dist/icons/RowTotalsIcon.js +1 -1
  517. package/dist/icons/SchemeIcon.js +1 -1
  518. package/dist/icons/SearchIcon.js +1 -1
  519. package/dist/icons/SemanticQueryIcon.js +1 -1
  520. package/dist/icons/SettingsIcon.js +1 -1
  521. package/dist/icons/ShieldFilledIcon.js +1 -1
  522. package/dist/icons/ShieldIcon.js +1 -1
  523. package/dist/icons/SlashIcon.js +1 -1
  524. package/dist/icons/SparklesIcon.js +1 -1
  525. package/dist/icons/SqlIcon.js +1 -1
  526. package/dist/icons/StatsIcon.js +1 -1
  527. package/dist/icons/StopIcon.js +1 -1
  528. package/dist/icons/StringIcon.js +1 -1
  529. package/dist/icons/SubtotalsIcon.js +1 -1
  530. package/dist/icons/SwitchIcon.js +1 -1
  531. package/dist/icons/TableIcon.js +1 -1
  532. package/dist/icons/ThumbsDownIcon.js +1 -1
  533. package/dist/icons/ThumbsUpIcon.js +1 -1
  534. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  535. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  536. package/dist/icons/ThunderboltIcon.js +1 -1
  537. package/dist/icons/TimeIcon.js +1 -1
  538. package/dist/icons/TrashIcon.js +1 -1
  539. package/dist/icons/UnlockIcon.js +1 -1
  540. package/dist/icons/UpIcon.js +1 -1
  541. package/dist/icons/UserGroupIcon.js +1 -1
  542. package/dist/icons/UserIcon.js +1 -1
  543. package/dist/icons/UserLockIcon.js +1 -1
  544. package/dist/icons/ViewIcon.js +1 -1
  545. package/dist/icons/WarningFilledIcon.js +1 -1
  546. package/dist/icons/WarningIcon.js +1 -1
  547. package/dist/icons/wrap-icon.js +1 -1
  548. package/dist/index.js +1 -1
  549. package/dist/probe/canonicalize.js +1 -1
  550. package/dist/probe/css.js +1 -1
  551. package/dist/probe/index.js +1 -1
  552. package/dist/providers/ColorPopoverContext.js +1 -1
  553. package/dist/providers/EventBusProvider.js +1 -1
  554. package/dist/providers/ItemActionContext.js +1 -1
  555. package/dist/providers/Provider.js +1 -1
  556. package/dist/providers/SlotProvider.js +1 -1
  557. package/dist/providers/TrackingProvider.js +1 -1
  558. package/dist/providers/navigation-adapter.default.js +1 -1
  559. package/dist/providers/navigation-url.js +1 -1
  560. package/dist/providers/use-navigation.js +1 -1
  561. package/dist/themes/item-themes.js +1 -1
  562. package/dist/themes/themes.js +1 -1
  563. package/dist/tokens/all-tokens.js +1 -1
  564. package/dist/tokens/base.js +1 -1
  565. package/dist/tokens/color-seed.js +1 -1
  566. package/dist/tokens/color-theme.js +1 -1
  567. package/dist/tokens/colors.js +1 -1
  568. package/dist/tokens/layout.js +1 -1
  569. package/dist/tokens/lazy-styles.js +1 -1
  570. package/dist/tokens/legacy-color.js +1 -1
  571. package/dist/tokens/palette-config.js +1 -1
  572. package/dist/tokens/palette.js +1 -1
  573. package/dist/tokens/resolve.js +1 -1
  574. package/dist/tokens/shadows.js +9 -1
  575. package/dist/tokens/shadows.js.map +1 -1
  576. package/dist/tokens/sizes.js +1 -1
  577. package/dist/tokens/spacing.js +1 -1
  578. package/dist/tokens/typography.js +1 -1
  579. package/dist/utils/ResizeSensor.js +1 -1
  580. package/dist/utils/actions-run.js +1 -1
  581. package/dist/utils/chain.js +1 -1
  582. package/dist/utils/color/channels.js +1 -1
  583. package/dist/utils/color/color.js +1 -1
  584. package/dist/utils/colors.js +1 -1
  585. package/dist/utils/component-base-props.js +1 -1
  586. package/dist/utils/disabled-behavior.js +1 -1
  587. package/dist/utils/disabled-props.js +1 -1
  588. package/dist/utils/dotize.js +1 -1
  589. package/dist/utils/field-chrome.js +1 -1
  590. package/dist/utils/field-layout.js +1 -1
  591. package/dist/utils/forward-ref-with-generics.js +1 -1
  592. package/dist/utils/highlight-text.js +1 -1
  593. package/dist/utils/index.js +1 -1
  594. package/dist/utils/interactions.js +1 -1
  595. package/dist/utils/is-dev-env.js +1 -1
  596. package/dist/utils/is-text-only.js +1 -1
  597. package/dist/utils/layout-scale.js +1 -1
  598. package/dist/utils/legacy-tooltip.js +1 -1
  599. package/dist/utils/map-props.js +1 -1
  600. package/dist/utils/merge-props.js +1 -1
  601. package/dist/utils/modules.js +1 -1
  602. package/dist/utils/nullable-value.js +1 -1
  603. package/dist/utils/option-origin-press.js +1 -1
  604. package/dist/utils/overlay-key-propagation.js +1 -1
  605. package/dist/utils/pick-base-customization-props.js +1 -1
  606. package/dist/utils/popover-width.js +1 -1
  607. package/dist/utils/programmatic-focus.js +1 -1
  608. package/dist/utils/promise.js +1 -1
  609. package/dist/utils/raf.js +1 -1
  610. package/dist/utils/random.js +1 -1
  611. package/dist/utils/range.js +1 -1
  612. package/dist/utils/resolve-icon.js +1 -1
  613. package/dist/utils/resolve-validation-props.js +1 -1
  614. package/dist/utils/search-text-services.js +1 -1
  615. package/dist/utils/selection.js +1 -1
  616. package/dist/utils/shared-store.js +1 -1
  617. package/dist/utils/styles.js +1 -1
  618. package/dist/utils/tree.js +1 -1
  619. package/dist/utils/virtual-width.js +1 -1
  620. package/dist/utils/warnings.js +1 -1
  621. package/dist/utils/wrap-node-if-plain.js +1 -1
  622. package/dist/utils/wrap-with-field.js +1 -1
  623. package/dist/version.js +2 -2
  624. package/docs/Usage.md +7 -6
  625. package/docs/components/Button.md +2 -2
  626. package/docs/components/ButtonSplit.md +3 -1
  627. package/docs/components/ItemButton.md +2 -2
  628. package/docs/components/RadioGroup.md +1 -1
  629. package/docs/components/Select.md +2 -2
  630. package/docs/components/ToggleGroup.md +1 -1
  631. package/package.json +1 -1
  632. package/tasty.config.generated.ts +1 -0
@@ -1,4 +1,5 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
+ import { mergeStyles } from "@tenphi/tasty";
2
3
  //#region src/components/RadioGroup/joined-styles.ts
3
4
  /**
4
5
  * Same columns as `Item`, but none of them stretches — a button in a group is
@@ -18,6 +19,28 @@ const BUTTON_COLUMNS = "max-content max-content minmax(0, max-content) max-conte
18
19
  */
19
20
  const BUTTON_BLOCK_COLUMNS = "max-content max-content max-content max-content max-content max-content";
20
21
  /**
22
+ * A joined group of raised buttons casts one `$button-shadow` under the whole
23
+ * row, the shadow a standalone outline or primary button casts, and its buttons
24
+ * cast none. One shadow per button would break at every seam: the negative
25
+ * spread pulls each one in from its edges. The group takes the buttons' outer
26
+ * radius, so the shadow follows their corners.
27
+ *
28
+ * The children already carry their type, so the group reads it off them: an
29
+ * outline, outline-2 or primary button raises it, a `clear` row stays flat, and
30
+ * a classic radio or a tabs segment never matches. One `:has()` with the list
31
+ * inside `:is()`: jsdom 26 (nwsapi 2.2.20, still in Cube Cloud) throws on two
32
+ * `:has()` in one selector list, for every element on the page, and never
33
+ * matches a lone `:has(> [attr])` (`raised-buttons.test.tsx`).
34
+ */
35
+ const JOINED_SHADOW_STYLES = {
36
+ "@raised-buttons": ":has(> :is([data-type=\"outline\"], [data-type=\"outline-2\"], [data-type=\"primary\"]))",
37
+ radius: true,
38
+ shadow: {
39
+ "": false,
40
+ "@raised-buttons": "$button-shadow"
41
+ }
42
+ };
43
+ /**
21
44
  * The group: a row of buttons sized by their content, with the join on top.
22
45
  * The row layout is not keyed: RadioGroup uses it for its other layouts too,
23
46
  * and sets their `flow` itself. Its classic layout also replaces the sizing
@@ -31,7 +54,7 @@ const BUTTON_BLOCK_COLUMNS = "max-content max-content max-content max-content ma
31
54
  * `gap` has no `''` key: `mergeStyles(styles, JOINED_GROUP_STYLES)` appends it
32
55
  * to the group's own map, which keeps its default for the other layouts.
33
56
  */
34
- const JOINED_GROUP_STYLES = {
57
+ const JOINED_GROUP_STYLES = mergeStyles(JOINED_SHADOW_STYLES, {
35
58
  display: "flex",
36
59
  placeItems: "stretch",
37
60
  placeContent: "stretch",
@@ -46,7 +69,7 @@ const JOINED_GROUP_STYLES = {
46
69
  "": "auto",
47
70
  joined: "isolate"
48
71
  }
49
- };
72
+ });
50
73
  /**
51
74
  * One button: an `Item` sized by its content, with the join on top.
52
75
  *
@@ -96,6 +119,6 @@ const JOINED_ITEM_STYLES = {
96
119
  } }
97
120
  };
98
121
  //#endregion
99
- export { JOINED_GROUP_STYLES, JOINED_ITEM_STYLES };
122
+ export { JOINED_GROUP_STYLES, JOINED_ITEM_STYLES, JOINED_SHADOW_STYLES };
100
123
 
101
124
  //# sourceMappingURL=joined-styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"joined-styles.js","names":["Styles","BUTTON_COLUMNS","BUTTON_BLOCK_COLUMNS","JOINED_GROUP_STYLES","display","placeItems","placeContent","width","flexShrink","whiteSpace","gap","joined","isolation","JOINED_ITEM_STYLES","preset","flexGrow","gridTemplate","shadow","radius","margin","zIndex","Label","placeSelf"],"sources":["../../../src/components/RadioGroup/joined-styles.ts"],"sourcesContent":["import type { Styles } from '@tenphi/tasty';\n\n// =============================================================================\n// Joined button-group look, shared by `Radio.Group type=\"button\"` and\n// `ToggleGroup`. They keep their own semantics (radio group vs toggle buttons)\n// and keyboard behaviour, but render one control: a row of buttons sized by\n// their content that share their borders. Radio is the reference.\n//\n// The join is keyed on the `joined` mod. RadioGroup and Radio set it for\n// `type=\"button\"`; ToggleGroup and its items always set it. The button layout\n// in `JOINED_ITEM_STYLES` is not keyed: `Radio.Tabs` uses it too, under the\n// segmented look (`Tabs/segmented-styles.ts`).\n//\n// `ToggleGroup/joined.browser.test.tsx` renders both controls and fails when\n// their computed styles part.\n// =============================================================================\n\n/**\n * Same columns as `Item`, but none of them stretches — a button in a group is\n * sized by its content, not stretched like a list item. The label column still\n * has a zero minimum, the way `Item`'s `1sf` does, so a button given less room\n * than its label truncates the label instead of overflowing the button — which\n * is also what lets the auto tooltip (`tooltip` / `tooltip={true}`) fire.\n */\nconst BUTTON_COLUMNS =\n 'max-content max-content minmax(0, max-content) max-content max-content max-content';\n\n/**\n * A `block` description spans every column, and a spanning item's width goes\n * to the columns with an intrinsic minimum. With a zero-minimum label column\n * that is every column but the label's — so the description's width lands in\n * the empty icon / prefix / suffix columns and the button grows to label plus\n * description instead of the wider of the two. Only this layout keeps the\n * all-`max-content` columns, and with them a label that does not truncate.\n */\nconst BUTTON_BLOCK_COLUMNS =\n 'max-content max-content max-content max-content max-content max-content';\n\n/**\n * The group: a row of buttons sized by their content, with the join on top.\n * The row layout is not keyed: RadioGroup uses it for its other layouts too,\n * and sets their `flow` itself. Its classic layout also replaces the sizing\n * (`width`, `whiteSpace`, `flexShrink`), so its labels wrap (`RadioGroup.tsx`).\n *\n * Joined, it has no gap, so the buttons can overlap by one border width (see\n * `JOINED_ITEM_STYLES`), and it isolates its stacking, so a raised button stays\n * inside the group and never paints over a consumer's sticky header or overlay\n * — a selected button stays raised for as long as it is selected.\n *\n * `gap` has no `''` key: `mergeStyles(styles, JOINED_GROUP_STYLES)` appends it\n * to the group's own map, which keeps its default for the other layouts.\n */\nexport const JOINED_GROUP_STYLES: Styles = {\n display: 'flex',\n placeItems: 'stretch',\n placeContent: 'stretch',\n width: {\n '': 'max-content max-content initial',\n // In a field its style props size, the group fills the field as every\n // other input does.\n 'fill-width': 'auto',\n },\n flexShrink: 0,\n whiteSpace: 'nowrap',\n // oxlint-disable-next-line tasty/require-default-state -- extends the group's own map (see above)\n gap: { joined: 0 },\n isolation: { '': 'auto', joined: 'isolate' },\n};\n\n/**\n * One button: an `Item` sized by its content, with the join on top.\n *\n * The corner radius is shared, so the first and last buttons keep only their\n * outer corners and the middle ones go square. Every button but the first\n * overlaps its neighbour by one border width, so two neighbours draw one line\n * between them.\n *\n * The selected button is raised above its neighbours, so its brand-tinted\n * border shows on all four sides: otherwise the next button would paint over\n * its right edge. A keyboard-focused button goes above the selected one, so its\n * ring is never covered. Hover changes no border, so it raises nothing.\n */\nexport const JOINED_ITEM_STYLES: Styles = {\n preset: 't3m / tight',\n flexGrow: 1,\n // Same areas as `Item`. The `description` rows have to be repeated here\n // because a plain string would replace `Item`'s whole state map and leave\n // the description without a grid area to land in.\n gridTemplate: {\n '': `\"icon prefix label suffix rightIcon actions\" auto / ${BUTTON_COLUMNS}`,\n 'description=inline': `\"icon prefix description suffix rightIcon actions\" auto / ${BUTTON_COLUMNS}`,\n 'description=inline & has-label': `\"icon prefix label suffix rightIcon actions\" auto \"icon prefix description suffix rightIcon actions\" auto / ${BUTTON_COLUMNS}`,\n 'description=block': `\"icon prefix label suffix rightIcon actions\" auto \"description description description description description description\" auto / ${BUTTON_BLOCK_COLUMNS}`,\n },\n placeContent: 'center',\n shadow: {\n '': false,\n },\n radius: {\n '': true,\n 'joined & !:last-child': '1r left',\n 'joined & !:first-child': '1r right',\n 'joined & !:first-child & !:last-child': 0,\n },\n margin: {\n '': 0,\n 'joined & !:first-child': '-1bw left',\n },\n // Extends `Item`'s `width`. A neighbour covers one border width of each side,\n // so a joined xsmall button (24px) would keep less than the 24px target WCAG\n // 2.5.8 asks for; two border widths more keep it whole. `Item`'s wider minimum\n // for an icon with a right icon moves after it, so it still wins.\n // oxlint-disable-next-line tasty/require-default-state -- extends `Item`'s own map\n width: {\n 'joined & size=xsmall': 'min ($size + 2bw)',\n 'has-icon & (has-right-icon | (has-actions & inside-wrapper))': '@inherit',\n },\n zIndex: {\n '': 'auto',\n 'joined & selected': 1,\n 'joined & focused': 2,\n },\n\n Label: {\n placeSelf: {\n '': 'center start',\n '!has-prefix & !has-suffix & !has-icon & !has-right-icon': 'center',\n },\n },\n};\n"],"mappings":";;;;;;;;;AAwBA,MAAMC,iBACJ;;;;;;;;;AAUF,MAAMC,uBACJ;;;;;;;;;;;;;;;AAgBF,MAAaC,sBAA8B;CACzCC,SAAS;CACTC,YAAY;CACZC,cAAc;CACdC,OAAO;EACL,IAAI;EAGJ,cAAc;CAChB;CACAC,YAAY;CACZC,YAAY;CAEZC,KAAK,EAAEC,QAAQ,EAAE;CACjBC,WAAW;EAAE,IAAI;EAAQD,QAAQ;CAAU;AAC7C;;;;;;;;;;;;;;AAeA,MAAaE,qBAA6B;CACxCC,QAAQ;CACRC,UAAU;CAIVC,cAAc;EACZ,IAAI,uDAAuDf;EAC3D,sBAAsB,6DAA6DA;EACnF,kCAAkC,+GAA+GA;EACjJ,qBAAqB,sIAAsIC;CAC7J;CACAI,cAAc;CACdW,QAAQ,EACN,IAAI,MACN;CACAC,QAAQ;EACN,IAAI;EACJ,yBAAyB;EACzB,0BAA0B;EAC1B,yCAAyC;CAC3C;CACAC,QAAQ;EACN,IAAI;EACJ,0BAA0B;CAC5B;CAMAZ,OAAO;EACL,wBAAwB;EACxB,gEAAgE;CAClE;CACAa,QAAQ;EACN,IAAI;EACJ,qBAAqB;EACrB,oBAAoB;CACtB;CAEAC,OAAO,EACLC,WAAW;EACT,IAAI;EACJ,2DAA2D;CAC7D,EACF;AACF"}
1
+ {"version":3,"file":"joined-styles.js","names":["mergeStyles","Styles","BUTTON_COLUMNS","BUTTON_BLOCK_COLUMNS","JOINED_SHADOW_STYLES","radius","shadow","JOINED_GROUP_STYLES","display","placeItems","placeContent","width","flexShrink","whiteSpace","gap","joined","isolation","JOINED_ITEM_STYLES","preset","flexGrow","gridTemplate","margin","zIndex","Label","placeSelf"],"sources":["../../../src/components/RadioGroup/joined-styles.ts"],"sourcesContent":["import { mergeStyles } from '@tenphi/tasty';\n\nimport type { Styles } from '@tenphi/tasty';\n\n// =============================================================================\n// Joined button-group look, shared by `Radio.Group type=\"button\"` and\n// `ToggleGroup`. They keep their own semantics (radio group vs toggle buttons)\n// and keyboard behaviour, but render one control: a row of buttons sized by\n// their content that share their borders. Radio is the reference.\n// `Button.Split` shares only its shadow (`JOINED_SHADOW_STYLES`).\n//\n// The join is keyed on the `joined` mod. RadioGroup and Radio set it for\n// `type=\"button\"`; ToggleGroup and its items always set it. The button layout\n// in `JOINED_ITEM_STYLES` is not keyed: `Radio.Tabs` uses it too, under the\n// segmented look (`Tabs/segmented-styles.ts`).\n//\n// `ToggleGroup/joined.browser.test.tsx` renders both controls and fails when\n// their computed styles part.\n// =============================================================================\n\n/**\n * Same columns as `Item`, but none of them stretches — a button in a group is\n * sized by its content, not stretched like a list item. The label column still\n * has a zero minimum, the way `Item`'s `1sf` does, so a button given less room\n * than its label truncates the label instead of overflowing the button — which\n * is also what lets the auto tooltip (`tooltip` / `tooltip={true}`) fire.\n */\nconst BUTTON_COLUMNS =\n 'max-content max-content minmax(0, max-content) max-content max-content max-content';\n\n/**\n * A `block` description spans every column, and a spanning item's width goes\n * to the columns with an intrinsic minimum. With a zero-minimum label column\n * that is every column but the label's — so the description's width lands in\n * the empty icon / prefix / suffix columns and the button grows to label plus\n * description instead of the wider of the two. Only this layout keeps the\n * all-`max-content` columns, and with them a label that does not truncate.\n */\nconst BUTTON_BLOCK_COLUMNS =\n 'max-content max-content max-content max-content max-content max-content';\n\n/**\n * A joined group of raised buttons casts one `$button-shadow` under the whole\n * row, the shadow a standalone outline or primary button casts, and its buttons\n * cast none. One shadow per button would break at every seam: the negative\n * spread pulls each one in from its edges. The group takes the buttons' outer\n * radius, so the shadow follows their corners.\n *\n * The children already carry their type, so the group reads it off them: an\n * outline, outline-2 or primary button raises it, a `clear` row stays flat, and\n * a classic radio or a tabs segment never matches. One `:has()` with the list\n * inside `:is()`: jsdom 26 (nwsapi 2.2.20, still in Cube Cloud) throws on two\n * `:has()` in one selector list, for every element on the page, and never\n * matches a lone `:has(> [attr])` (`raised-buttons.test.tsx`).\n */\nexport const JOINED_SHADOW_STYLES: Styles = {\n '@raised-buttons':\n ':has(> :is([data-type=\"outline\"], [data-type=\"outline-2\"], [data-type=\"primary\"]))',\n radius: true,\n shadow: {\n '': false,\n '@raised-buttons': '$button-shadow',\n },\n};\n\n/**\n * The group: a row of buttons sized by their content, with the join on top.\n * The row layout is not keyed: RadioGroup uses it for its other layouts too,\n * and sets their `flow` itself. Its classic layout also replaces the sizing\n * (`width`, `whiteSpace`, `flexShrink`), so its labels wrap (`RadioGroup.tsx`).\n *\n * Joined, it has no gap, so the buttons can overlap by one border width (see\n * `JOINED_ITEM_STYLES`), and it isolates its stacking, so a raised button stays\n * inside the group and never paints over a consumer's sticky header or overlay\n * — a selected button stays raised for as long as it is selected.\n *\n * `gap` has no `''` key: `mergeStyles(styles, JOINED_GROUP_STYLES)` appends it\n * to the group's own map, which keeps its default for the other layouts.\n */\nexport const JOINED_GROUP_STYLES: Styles = mergeStyles(JOINED_SHADOW_STYLES, {\n display: 'flex',\n placeItems: 'stretch',\n placeContent: 'stretch',\n width: {\n '': 'max-content max-content initial',\n // In a field its style props size, the group fills the field as every\n // other input does.\n 'fill-width': 'auto',\n },\n flexShrink: 0,\n whiteSpace: 'nowrap',\n // oxlint-disable-next-line tasty/require-default-state -- extends the group's own map (see above)\n gap: { joined: 0 },\n isolation: { '': 'auto', joined: 'isolate' },\n});\n\n/**\n * One button: an `Item` sized by its content, with the join on top.\n *\n * The corner radius is shared, so the first and last buttons keep only their\n * outer corners and the middle ones go square. Every button but the first\n * overlaps its neighbour by one border width, so two neighbours draw one line\n * between them.\n *\n * The selected button is raised above its neighbours, so its brand-tinted\n * border shows on all four sides: otherwise the next button would paint over\n * its right edge. A keyboard-focused button goes above the selected one, so its\n * ring is never covered. Hover changes no border, so it raises nothing.\n */\nexport const JOINED_ITEM_STYLES: Styles = {\n preset: 't3m / tight',\n flexGrow: 1,\n // Same areas as `Item`. The `description` rows have to be repeated here\n // because a plain string would replace `Item`'s whole state map and leave\n // the description without a grid area to land in.\n gridTemplate: {\n '': `\"icon prefix label suffix rightIcon actions\" auto / ${BUTTON_COLUMNS}`,\n 'description=inline': `\"icon prefix description suffix rightIcon actions\" auto / ${BUTTON_COLUMNS}`,\n 'description=inline & has-label': `\"icon prefix label suffix rightIcon actions\" auto \"icon prefix description suffix rightIcon actions\" auto / ${BUTTON_COLUMNS}`,\n 'description=block': `\"icon prefix label suffix rightIcon actions\" auto \"description description description description description description\" auto / ${BUTTON_BLOCK_COLUMNS}`,\n },\n placeContent: 'center',\n shadow: {\n '': false,\n },\n radius: {\n '': true,\n 'joined & !:last-child': '1r left',\n 'joined & !:first-child': '1r right',\n 'joined & !:first-child & !:last-child': 0,\n },\n margin: {\n '': 0,\n 'joined & !:first-child': '-1bw left',\n },\n // Extends `Item`'s `width`. A neighbour covers one border width of each side,\n // so a joined xsmall button (24px) would keep less than the 24px target WCAG\n // 2.5.8 asks for; two border widths more keep it whole. `Item`'s wider minimum\n // for an icon with a right icon moves after it, so it still wins.\n // oxlint-disable-next-line tasty/require-default-state -- extends `Item`'s own map\n width: {\n 'joined & size=xsmall': 'min ($size + 2bw)',\n 'has-icon & (has-right-icon | (has-actions & inside-wrapper))': '@inherit',\n },\n zIndex: {\n '': 'auto',\n 'joined & selected': 1,\n 'joined & focused': 2,\n },\n\n Label: {\n placeSelf: {\n '': 'center start',\n '!has-prefix & !has-suffix & !has-icon & !has-right-icon': 'center',\n },\n },\n};\n"],"mappings":";;;;;;;;;;AA2BA,MAAME,iBACJ;;;;;;;;;AAUF,MAAMC,uBACJ;;;;;;;;;;;;;;;AAgBF,MAAaC,uBAA+B;CAC1C,mBACE;CACFC,QAAQ;CACRC,QAAQ;EACN,IAAI;EACJ,mBAAmB;CACrB;AACF;;;;;;;;;;;;;;;AAgBA,MAAaC,sBAA8BP,YAAYI,sBAAsB;CAC3EI,SAAS;CACTC,YAAY;CACZC,cAAc;CACdC,OAAO;EACL,IAAI;EAGJ,cAAc;CAChB;CACAC,YAAY;CACZC,YAAY;CAEZC,KAAK,EAAEC,QAAQ,EAAE;CACjBC,WAAW;EAAE,IAAI;EAAQD,QAAQ;CAAU;AAC7C,CAAC;;;;;;;;;;;;;;AAeD,MAAaE,qBAA6B;CACxCC,QAAQ;CACRC,UAAU;CAIVC,cAAc;EACZ,IAAI,uDAAuDlB;EAC3D,sBAAsB,6DAA6DA;EACnF,kCAAkC,+GAA+GA;EACjJ,qBAAqB,sIAAsIC;CAC7J;CACAO,cAAc;CACdJ,QAAQ,EACN,IAAI,MACN;CACAD,QAAQ;EACN,IAAI;EACJ,yBAAyB;EACzB,0BAA0B;EAC1B,yCAAyC;CAC3C;CACAgB,QAAQ;EACN,IAAI;EACJ,0BAA0B;CAC5B;CAMAV,OAAO;EACL,wBAAwB;EACxB,gEAAgE;CAClE;CACAW,QAAQ;EACN,IAAI;EACJ,qBAAqB;EACrB,oBAAoB;CACtB;CAEAC,OAAO,EACLC,WAAW;EACT,IAAI;EACJ,2DAA2D;CAC7D,EACF;AACF"}
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { useRef } from "react";
3
3
  import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
4
4
  //#region src/components/RenderCache/RenderCache.tsx
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { useCombinedRefs } from "../../hooks/use-combined-refs.js";
4
4
  import { useEvent } from "../../hooks/use-event.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { extractStyles } from "../../utils/styles.js";
3
3
  import { mergeProps } from "../../utils/merge-props.js";
4
4
  import { Title as _Title } from "../Title/Title.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { extractStyles } from "../../utils/styles.js";
3
3
  import { PortalProvider } from "../Portal/PortalProvider.js";
4
4
  import { TASTY_VERSION, VERSION } from "../../version.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { useCombinedRefs } from "../../hooks/use-combined-refs.js";
4
4
  import { pickBaseCustomizationProps } from "../../utils/pick-base-customization-props.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { chain } from "../../utils/chain.js";
3
3
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
4
4
  import { useProviderProps } from "../../providers/Provider.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { mergeStyleLayers } from "../../utils/styles.js";
3
3
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
4
4
  import { Text as _Text } from "../Text/Text.js";
@@ -85,6 +85,10 @@ const ListBoxElement = tasty({
85
85
  outline: 0
86
86
  }
87
87
  });
88
+ const TRIGGER_STYLES = { shadow: {
89
+ "": false,
90
+ "type=outline | type=outline-2 | type=primary": "$button-shadow"
91
+ } };
88
92
  const OptionItem = tasty(_Item, {
89
93
  as: "li",
90
94
  disableActionsFocus: true,
@@ -315,7 +319,7 @@ function Select(rawProps, ref) {
315
319
  "data-popover-trigger": true,
316
320
  showActions,
317
321
  skipActionsWidthTransition,
318
- styles: mergeStyleLayers(inputStyles, triggerStyles),
322
+ styles: mergeStyleLayers(TRIGGER_STYLES, inputStyles, triggerStyles),
319
323
  theme,
320
324
  size,
321
325
  shape,
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["AriaLabelingProps","CollectionBase","Key","Styles","tasty","React","cloneElement","ForwardedRef","forwardRef","ForwardRefRenderFunction","KeyboardEvent","ReactElement","ReactNode","RefObject","useEffect","useEffectEvent","useLayoutEffect","useMemo","useRef","useState","AriaSelectProps","DismissButton","FocusScope","HiddenSelect","useButton","useHover","useListBox","useListBoxSection","useOption","useOverlay","useSelect","Section","BaseSection","SelectState","useSelectState","mergeRefs","useCombinedRefs","useOpenKey","useOverlayEscapeGuard","useOverlayPosition","usePopoverSync","useI18n","CloseIcon","DirectionIcon","LoadingIcon","FieldBaseProps","isOwnActionsPress","isItemDisabled","FieldLayoutStyleProps","splitFieldLayout","useFocus","mergeProps","useOptionOriginPress","pickBaseCustomizationProps","focusProgrammatically","generateRandomId","getValidationMods","mergeStyleLayers","wrapWithField","CollectionItem","filterCollectionItemProps","filterSelectionItemProps","getValueSelectionState","DisplayTransition","useFieldProps","CubeItemProps","Item","ItemAction","ItemActionsWrapper","useDisabledFocusReset","StyledDivider","ListDivider","StyledSectionHeading","ListSectionHeading","StyledSection","ListSectionWrapper","useModalLayerRef","Portal","Text","CubeTooltipProviderProps","TriggerActions","TriggerIcon","getValidationIcon","Placement","Props","ComponentBasePropsWithoutChildren","SelectWrapperElement","qa","styles","display","position","radius","fill","disabled","color","focused","invalid","ListBoxElement","as","section","gap","sections","flow","margin","padding","listStyle","overflow","scrollbar","outline","OptionItem","disableActionsFocus","SelectOverlayWrapper","zIndex","width","side","OverlayElement","gridRows","height","shadow","border","boxSizing","transition","translate","transformOrigin","scale","opacity","CubeSelectBaseProps","T","Omit","selectedKey","defaultSelectedKey","onSelectionChange","key","icon","rightIcon","prefix","suffix","triggerDescription","descriptionPlacement","hotkeys","tooltip","auto","triggerRef","HTMLButtonElement","isLoading","loadingIndicator","overlayOffset","hideTrigger","inputStyles","optionStyles","triggerStyles","listBoxStyles","listGap","overlayStyles","direction","targetRef","HTMLElement","placement","shouldFlip","containerPadding","inputProps","type","shape","suffixPosition","theme","isClearable","clearLabel","onClear","actions","onOpenChange","isOpen","CubeSelectProps","popoverRef","listBoxRef","size","placeholder","ignore","lockSelectState","state","S","open","toggle","setSelectedKey","setValue","Select","rawProps","ref","HTMLDivElement","props","defaultValidationTrigger","valuePropsMapper","value","onChange","label","extra","labelStyles","isRequired","necessityIndicator","isInvalid","isValid","isDisabled","autoFocus","triggerRefProp","message","placementProp","labelSuffix","form","t","disabledBehavior","isLocked","isReadOnly","selectId","isInert","closeList","close","fieldLayout","menuId","onClose","containerRef","popover","current","active","document","activeElement","contains","preventScroll","labelProps","triggerProps","valueProps","menuProps","undefined","overlayProps","overlayRef","scrollRef","offset","isFocused","focusProps","hoverProps","isHovered","buttonProps","validationIcon","hasSelection","selectedItem","showClearButton","clearValue","triggerWidth","setTriggerWidth","offsetWidth","loadingIcon","showPlaceholder","trim","modifiers","loading","hovered","hasCustomRightIcon","triggerRightIcon","hasTriggerActions","triggerActions","pressed","selectField","name","showActions","skipActionsWidthTransition","mods","rendered","field","ListBoxPopup","t0","$","_c","minWidth","otherProps","parentOverlayProps","t1","t2","t3","shouldUseVirtualFocus","t4","t5","el","menuTriggerEl","closest","setTimeout","t6","shouldCloseOnBlur","isDismissable","shouldCloseOnInteractOutside","rawOverlayProps","layerRef","t7","split","placementDirection","isListShown","openKey","t8","t9","phase","isShown","isExiting","transitionRef","style","getEdgeOptionKey","edge","keys","collection","getKeys","reverse","find","getItem","selectionManager","canSelectItem","getOpeningFocusKey","focusStrategy","scrollIntoList","list","option","top","node","offsetParent","offsetTop","bottom","offsetHeight","scrollTop","clientHeight","focusOpeningOption","manager","setFocused","setFocusedKey","Array","from","querySelectorAll","element","dataset","String","focus","SelectListBox","listItemSize","listGapTokens","listBoxProps","focusOnOpen","Symbol","for","hasSections","renderedItems","item","push","Option","isSelected","isVirtualFocused","focusedKey","optionProps","isPressed","descriptionProps","shouldSelectOnPressUp","shouldFocusOnHover","originPress","onPointerUp","ariaOptionProps","filteredItemProps","keyboardProps","onKeyDown","event","ctrlKey","target","currentTarget","preventDefault","onPointerDown","wrapPointerUp","listboxitem","selected","SelectSectionProps","headingStyles","sectionStyles","SelectSection","heading","itemProps","headingProps","groupProps","childNodes","filter","map","node_0","_Select","cubeInputType","SectionComponent","SelectSectionComponent","Object","assign","displayName","__Select","Action","Item","useOverlayPosition","useFocus","TriggerIcon","mergeProps","Text","_c","ListDivider","ListSectionHeading","ListSectionWrapper","BaseSection","CollectionItem"],"sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":["import { AriaLabelingProps, CollectionBase, Key } from '@react-types/shared';\nimport { Styles, tasty } from '@tenphi/tasty';\nimport React, {\n cloneElement,\n ForwardedRef,\n forwardRef,\n ForwardRefRenderFunction,\n KeyboardEvent,\n ReactElement,\n ReactNode,\n RefObject,\n useEffect,\n useEffectEvent,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport {\n AriaSelectProps,\n DismissButton,\n FocusScope,\n HiddenSelect,\n useButton,\n useHover,\n useListBox,\n useListBoxSection,\n useOption,\n useOverlay,\n useSelect,\n} from 'react-aria';\nimport {\n Section as BaseSection,\n SelectState,\n useSelectState,\n} from 'react-stately';\n\nimport { mergeRefs, useCombinedRefs } from '../../hooks/use-combined-refs';\nimport { useOpenKey } from '../../hooks/use-open-key';\nimport { useOverlayEscapeGuard } from '../../hooks/use-overlay-escape-guard';\nimport { useOverlayPosition } from '../../hooks/use-overlay-position';\nimport { usePopoverSync } from '../../hooks/use-popover-sync';\nimport { useI18n } from '../../i18n/use-i18n';\nimport { CloseIcon } from '../../icons/CloseIcon';\nimport { DirectionIcon } from '../../icons/DirectionIcon';\nimport { LoadingIcon } from '../../icons/LoadingIcon';\nimport { FieldBaseProps } from '../../types/form';\nimport { isOwnActionsPress } from '../../utils/actions-run';\nimport { isItemDisabled } from '../../utils/disabled-behavior';\nimport {\n FieldLayoutStyleProps,\n splitFieldLayout,\n} from '../../utils/field-layout';\nimport { useFocus } from '../../utils/interactions';\nimport { mergeProps } from '../../utils/merge-props';\nimport { useOptionOriginPress } from '../../utils/option-origin-press';\nimport { pickBaseCustomizationProps } from '../../utils/pick-base-customization-props';\nimport { focusProgrammatically } from '../../utils/programmatic-focus';\nimport { generateRandomId } from '../../utils/random';\nimport { getValidationMods } from '../../utils/resolve-validation-props';\nimport { mergeStyleLayers } from '../../utils/styles';\nimport { wrapWithField } from '../../utils/wrap-with-field';\nimport {\n CollectionItem,\n filterCollectionItemProps,\n filterSelectionItemProps,\n getValueSelectionState,\n} from '../CollectionItem/CollectionItem';\nimport { DisplayTransition } from '../DisplayTransition/DisplayTransition';\nimport { useFieldProps } from '../Form/use-field/use-field-props';\nimport { CubeItemProps, Item } from '../Item/Item';\nimport { ItemAction } from '../ItemAction/ItemAction';\nimport { ItemActionsWrapper } from '../ItemActionsWrapper/ItemActionsWrapper';\nimport { useDisabledFocusReset } from '../ListBox/use-disabled-focus-reset';\nimport {\n StyledDivider as ListDivider,\n StyledSectionHeading as ListSectionHeading,\n StyledSection as ListSectionWrapper,\n} from '../Menu/styled';\nimport { useModalLayerRef } from '../Modal/ModalContainmentProvider';\nimport { Portal } from '../Portal/Portal';\nimport { Text } from '../Text/Text';\nimport { CubeTooltipProviderProps } from '../Tooltip/TooltipProvider';\nimport { TriggerActions, TriggerIcon } from '../TriggerActions/TriggerActions';\nimport { getValidationIcon } from '../ValidationIndicator/ValidationIndicator';\n\nimport type { Placement } from 'react-aria';\nimport type { Props } from '../../types/props';\nimport type { ComponentBasePropsWithoutChildren } from '../../utils/component-base-props';\n\nconst SelectWrapperElement = tasty({\n qa: 'SelectWrapper',\n styles: {\n display: 'grid',\n position: 'relative',\n radius: true,\n fill: {\n '': '#surface',\n disabled: '#disabled-surface',\n 'theme=special': '#clear',\n },\n color: {\n '': '#dark.85',\n focused: '#dark.85',\n invalid: '#danger-text',\n disabled: '#disabled-surface-text',\n },\n },\n});\n\nexport const ListBoxElement = tasty({\n qa: 'ListBox',\n as: 'ul',\n styles: {\n // Set from `listGap`. A section's list inherits it from the popup's.\n '$list-gap': { '': '$item-gap', section: false },\n display: 'flex',\n // It spaces options: sections and dividers keep a hairline.\n gap: { '': '$list-gap', sections: '$item-gap' },\n flow: 'column',\n margin: '0',\n padding: '0',\n listStyle: 'none',\n // The popup's list is the scroll container and the element its height\n // limit lands on, so React Aria's page navigation measures what is\n // actually visible. A section's list grows with its options.\n overflow: { '': 'auto', section: false },\n // Options measure their scroll offset against the list.\n position: 'relative',\n scrollbar: 'styled',\n // The listbox is programmatically focused when the popover opens\n // (so keyboard nav works immediately) but it should never display a\n // focus ring — only the focused option does. Without this, the\n // browser draws its native outline around the whole listbox when\n // it receives focus.\n outline: 0,\n },\n});\n\n// Use Item for options to unify item visuals and reduce custom styling\nconst OptionItem = tasty(Item, {\n as: 'li',\n disableActionsFocus: true,\n qa: 'Option',\n styles: {\n '$inline-compensation': '0px',\n },\n});\n\nconst SelectOverlayWrapper = tasty({\n qa: 'SelectOverlayWrapper',\n styles: {\n position: 'absolute',\n zIndex: 1000,\n // Above or below its trigger, as wide as the popup wherever React Aria\n // puts it. Left to shrink, the width ends at the screen edge, and React\n // Aria measures that squeezed width: a list that grows while open then\n // crept a few pixels per frame instead of moving once. The cap is the room\n // React Aria leaves inside the viewport (`%`, unlike `vw`, leaves out a\n // page scrollbar). Beside its trigger, React Aria never moves the list\n // along the edge it would cross, so the list keeps shrinking to the room\n // there and stays on screen.\n width: {\n '': 'initial max-content (100% - 2 * $select-overlay-padding)',\n side: false,\n },\n // React Aria writes the room left in the viewport as this element's\n // `max-height`; a flex column lets the popup shrink to it.\n display: 'flex',\n flow: 'column',\n },\n});\n\nconst OverlayElement = tasty({\n qa: 'SelectOverlay',\n styles: {\n width: 'min $overlay-min-width',\n display: 'grid',\n gridRows: '1sf',\n height: 'initial max-content (50vh - 5x)',\n overflow: 'auto',\n fill: '#surface',\n radius: '1cr',\n shadow: true,\n padding: '.5x',\n border: true,\n boxSizing: 'border-box',\n transition:\n 'translate $transition ease-out, scale $transition ease-out, theme $transition ease-out',\n translate: {\n '': '0 0',\n 'open & [data-placement=\"top\"]': '0 0',\n '!open & [data-placement=\"top\"]': '0 1x',\n 'open & ([data-placement=\"bottom\"] | ![data-placement])': '0 0',\n '!open & ([data-placement=\"bottom\"] | ![data-placement])': '0 -1x',\n },\n transformOrigin: {\n '': 'top center',\n '[data-placement=\"top\"]': 'bottom center',\n },\n scale: {\n '': '1 1',\n '!open': '1 .9',\n },\n opacity: {\n '': 1,\n '!open': 0.001,\n },\n },\n});\n\nexport interface CubeSelectBaseProps<T>\n extends\n ComponentBasePropsWithoutChildren,\n AriaLabelingProps,\n FieldLayoutStyleProps,\n FieldBaseProps<Key | null | undefined>,\n CollectionBase<T>,\n Omit<\n AriaSelectProps<T>,\n | 'errorMessage'\n | 'form'\n | 'name'\n | 'selectedKey'\n | 'defaultSelectedKey'\n | 'onSelectionChange'\n > {\n /** The currently selected key in the collection (controlled). */\n selectedKey?: Key | null;\n /** The initial selected key in the collection (uncontrolled). */\n defaultSelectedKey?: Key;\n /** Handler that is called when the selection changes. */\n onSelectionChange?: (key: Key | null) => void;\n icon?: ReactElement;\n rightIcon?: ReactNode;\n prefix?: ReactNode;\n suffix?: ReactNode;\n /** Description text for the trigger. Note: Different from field-level description. */\n triggerDescription?: ReactNode;\n descriptionPlacement?: 'inline' | 'block';\n /** Keyboard shortcut that triggers the select when pressed */\n hotkeys?: string;\n /**\n * Tooltip content and configuration for the trigger. The info badge next to\n * the field's label is `labelTooltip`.\n * - string: simple tooltip text\n * - true: auto tooltip on overflow (shows selected value as tooltip when truncated)\n * - object: advanced configuration with optional auto property\n */\n tooltip?:\n | string\n | boolean\n | (Omit<CubeTooltipProviderProps, 'children'> & { auto?: boolean });\n triggerRef?: RefObject<HTMLButtonElement>;\n /**\n * Shows a loading indicator in the trigger. The value can't change while\n * loading: the list doesn't open and typeahead is ignored.\n */\n isLoading?: boolean;\n /** Replaces the default loading icon shown while `isLoading` is set. */\n loadingIndicator?: ReactNode;\n overlayOffset?: number;\n /**\n * @deprecated Has no effect: the whole Select is its trigger. To hide the\n * dropdown caret, pass `rightIcon={null}`.\n */\n hideTrigger?: boolean;\n /**\n * @deprecated Use `triggerStyles` instead\n */\n inputStyles?: Styles;\n optionStyles?: Styles;\n triggerStyles?: Styles;\n listBoxStyles?: Styles;\n /** Space between options, in pixels. Defaults to a hairline (`$item-gap`, `1px`). */\n listGap?: number;\n overlayStyles?: Styles;\n direction?: 'top' | 'bottom';\n /**\n * The ref of the element the popover should visually attach itself to.\n * Defaults to the trigger button.\n *\n * Only the popover's POSITION follows this ref. The trigger keeps its own\n * ref for focus, outside-click and dismiss logic, so anchoring to a wider\n * container does not make clicks inside that container count as trigger\n * presses. The popover's `minWidth` also stays tied to the trigger, not to\n * this element.\n */\n targetRef?: RefObject<HTMLElement | null>;\n /**\n * Placement of the popover relative to the anchor.\n * Accepts React Aria's `Placement` strings (e.g. `'bottom start'`,\n * `'top start'`, `'right top'`, `'left top'`).\n *\n * Overrides `direction` when both are given.\n * @default `${direction} end`\n */\n placement?: Placement;\n shouldFlip?: boolean;\n /** Minimum padding in pixels between the popover and viewport edges */\n containerPadding?: number;\n /** Additional props for the trigger button element. */\n inputProps?: Props;\n type?: 'outline' | 'outline-2' | 'clear' | 'primary' | (string & {});\n /**\n * Shape of the trigger's border radius.\n * - `card` - Card shape with larger border radius (`1cr`)\n * - `button` - Button shape with default border radius (default)\n * - `sharp` - Sharp corners with no border radius (`0`)\n * - `pill` - Pill shape with fully rounded ends (`round`)\n * @default \"button\"\n */\n shape?: 'card' | 'button' | 'sharp' | 'pill';\n suffixPosition?: 'before' | 'after';\n theme?: 'default' | 'special';\n /** Whether the select is clearable using a clear button in the rightIcon slot */\n isClearable?: boolean;\n /** Accessible name for the built-in clear button. Defaults to a localized \"Clear value\". */\n clearLabel?: string;\n /** Callback called when the clear button is pressed */\n onClear?: () => void;\n /**\n * Custom actions rendered inside the trigger, to the left of the built-in\n * clear button and dropdown caret. Use `Select.Action` so they match the\n * trigger's size and theme.\n *\n * Pressing one runs its handler without opening or closing the popover —\n * including while the popover is open. Actions follow the trigger's disabled\n * state but NOT `isReadOnly`, since a read-only field can still host an\n * action that does not change the value; pass `isDisabled` yourself for one\n * that does.\n */\n actions?: ReactNode;\n /** Callback called when the popover open state changes */\n onOpenChange?: (isOpen: boolean) => void;\n}\n\nexport interface CubeSelectProps<T> extends CubeSelectBaseProps<T> {\n /** The ref for the popover element. */\n popoverRef?: RefObject<HTMLElement | null>;\n /** The ref for the list box. */\n listBoxRef?: RefObject<HTMLElement>;\n size?: 'small' | 'medium' | 'large' | (string & {});\n placeholder?: string;\n}\n\nconst ignore = () => {};\n\n/**\n * A state whose value can't change. React Aria's trigger opens the list,\n * steps with `ArrowLeft`/`ArrowRight` and typeaheads through these methods,\n * so ignoring them fixes the value while the trigger stays focusable.\n */\nfunction lockSelectState<S extends SelectState<object>>(state: S): S {\n return {\n ...state,\n open: ignore,\n toggle: ignore,\n setSelectedKey: ignore,\n setValue: ignore,\n };\n}\n\nfunction Select<T extends object>(\n rawProps: CubeSelectProps<T>,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n let props = useFieldProps(rawProps, {\n defaultValidationTrigger: 'onChange',\n valuePropsMapper: ({ value, onChange }) => ({\n selectedKey: value ?? null,\n onSelectionChange: onChange,\n }),\n });\n\n let {\n qa,\n label,\n extra,\n icon,\n rightIcon,\n labelStyles,\n isRequired,\n necessityIndicator,\n isInvalid,\n isValid,\n prefix,\n isDisabled = props.isLoading || false,\n autoFocus,\n inputProps,\n triggerRef: triggerRefProp,\n popoverRef,\n listBoxRef,\n isLoading,\n loadingIndicator,\n overlayOffset = 8,\n inputStyles,\n triggerStyles,\n optionStyles,\n listBoxStyles,\n listGap,\n overlayStyles,\n suffix,\n actions,\n message,\n triggerDescription,\n descriptionPlacement,\n hotkeys,\n direction = 'bottom',\n targetRef,\n placement: placementProp,\n shouldFlip = true,\n containerPadding = 8,\n placeholder,\n tooltip,\n size = 'medium',\n shape,\n styles,\n type = 'outline',\n theme = 'default',\n labelSuffix,\n suffixPosition = 'before',\n isClearable,\n clearLabel,\n onOpenChange,\n form,\n } = props;\n const { t } = useI18n();\n // `useSelectState` reports `onOpenChange` itself, once per transition. A\n // disabled option stays focusable in the open list, as WAI-ARIA keeps a\n // disabled option reachable; `Option` keeps it inert.\n let state = getValueSelectionState(\n useSelectState({ ...props, disabledBehavior: 'selection' } as typeof props),\n );\n useDisabledFocusReset(state);\n // Read-only and loading keep the trigger focusable, but its value is fixed.\n const isLocked = !!props.isReadOnly || !!isLoading;\n\n if (isLocked) state = lockSelectState(state);\n\n // Generate a unique ID for this select instance\n const selectId = useMemo(() => generateRandomId(), []);\n\n // A list that can no longer change the value closes rather than staying open\n // behind a hidden popup, so `aria-expanded` follows and enabling the field\n // again doesn't bring the list back.\n const isInert = isLocked || isDisabled;\n const closeList = useEffectEvent(() => state.close());\n\n useEffect(() => {\n if (isInert && state.isOpen) closeList();\n }, [isInert, state.isOpen]);\n\n const fieldLayout = splitFieldLayout(props);\n\n styles = fieldLayout.styles;\n\n ref = useCombinedRefs(ref);\n const triggerRef = useCombinedRefs(triggerRefProp);\n popoverRef = useCombinedRefs(popoverRef);\n listBoxRef = useCombinedRefs(listBoxRef);\n\n usePopoverSync({\n menuId: selectId,\n isOpen: state.isOpen,\n onClose: () => state.close(),\n triggerRef: triggerRef as RefObject<HTMLElement | null>,\n containerRef: popoverRef as RefObject<HTMLElement | null>,\n });\n\n // Hand focus back to the trigger the moment the list closes, rather than\n // leaving it to the popup's `FocusScope`, which only restores when it\n // UNMOUNTS — at the end of the exit transition (CUB-4839).\n //\n // For the length of that transition focus would otherwise sit on an option\n // inside a popup that is going away, and the key a user presses next can\n // land nowhere at all: once the option is detached focus drops to `<body>`,\n // which takes the event out of the React tree entirely.\n //\n // `focusProgrammatically` so the trigger's tooltip does not read this as the\n // user arriving and pop up — it would then swallow that next `Escape`.\n //\n // Guarded on focus still being INSIDE the popup, so this only finishes a\n // hand-off the popup had already started: closing by clicking elsewhere\n // leaves focus wherever the user put it.\n useEffect(() => {\n if (state.isOpen) return;\n\n const popover = popoverRef.current;\n const active = document.activeElement;\n\n if (!popover || !active || !popover.contains(active)) return;\n\n focusProgrammatically(triggerRef.current, { preventScroll: true });\n // Both refs come from `useCombinedRefs`, so their identity never changes;\n // listing them satisfies the rule without re-running this.\n }, [state.isOpen, popoverRef, triggerRef]);\n\n // React Aria hands `form` to `HiddenSelect` as the id of its `<form>`, so the\n // form instance would render as `form=\"[object Object]\"` on the `<select>`.\n let { labelProps, triggerProps, valueProps, menuProps } = useSelect(\n { ...props, form: undefined },\n state,\n triggerRef,\n );\n\n let { overlayProps, placement } = useOverlayPosition({\n // Position only. `triggerRef` stays the dismiss/focus anchor below, so a\n // consumer can line this popover up with a row without that row's clicks\n // reading as presses on the trigger.\n targetRef: (targetRef ?? triggerRef) as RefObject<HTMLElement>,\n overlayRef: popoverRef,\n scrollRef: listBoxRef,\n placement: placementProp ?? (`${direction} end` as Placement),\n shouldFlip: shouldFlip,\n isOpen: state.isOpen,\n onClose: state.close,\n offset: overlayOffset,\n containerPadding: containerPadding,\n });\n\n let { isFocused, focusProps } = useFocus(true);\n let { hoverProps, isHovered } = useHover({ isDisabled });\n\n // Get props for the button based on the trigger props from useSelect\n let { buttonProps } = useButton({ ...triggerProps, autoFocus }, triggerRef);\n\n let validationIcon = getValidationIcon({ isInvalid, isValid });\n\n // Clear button logic\n let hasSelection = state.selectedItem != null;\n let showClearButton = isClearable && hasSelection && !isInert;\n\n function clearValue() {\n // Reports the change through `onSelectionChange`.\n state.setSelectedKey(null);\n\n if (state.isOpen) {\n state.close();\n }\n\n // Back to the trigger, without its tooltip reading this as the user\n // arriving there and then swallowing the next `Escape`.\n focusProgrammatically(triggerRef.current);\n\n props.onClear?.();\n }\n\n // The popup is at least as wide as the trigger. Measured as the list opens,\n // before the popup mounts and is positioned, rather than during render, so a\n // trigger resized while the list was closed is read fresh.\n const [triggerWidth, setTriggerWidth] = useState<number>();\n\n useLayoutEffect(() => {\n if (state.isOpen) setTriggerWidth(triggerRef.current?.offsetWidth);\n }, [state.isOpen, triggerRef]);\n\n const loadingIcon = loadingIndicator ?? <LoadingIcon />;\n\n const showPlaceholder = !!placeholder?.trim() && !state.selectedItem;\n\n const modifiers = useMemo(\n () => ({\n ...getValidationMods({ isInvalid, isValid }),\n disabled: isDisabled,\n loading: isLoading,\n hovered: isHovered,\n focused: isFocused,\n placeholder: showPlaceholder,\n prefix: !!prefix,\n suffix: true,\n }),\n [\n isInvalid,\n isValid,\n isDisabled,\n isLoading,\n isHovered,\n isFocused,\n showPlaceholder,\n prefix,\n ],\n );\n\n suffix = useMemo(() => {\n if (!suffix && !validationIcon) {\n return null;\n }\n\n return (\n <>\n {suffix}\n {validationIcon}\n </>\n );\n }, [suffix, validationIcon]);\n\n // A caller's `rightIcon` keeps the `rightIcon` slot: it accepts a render\n // function resolved against the trigger's mods, which only that slot does, and\n // it is also what a caller's `RightIcon` styles target. It replaces the\n // built-in control, exactly as before.\n const hasCustomRightIcon = rightIcon !== undefined;\n const triggerRightIcon = hasCustomRightIcon\n ? isLoading\n ? loadingIcon\n : rightIcon\n : undefined;\n\n // With a caller's own `rightIcon` the built-in control moves into that slot,\n // leaving the run with whatever the caller passed — possibly nothing. The run\n // is still rendered, so the trigger does not restructure if actions arrive\n // later, but the row stops counting it as end content — which is what keeps an\n // icon-only trigger with `rightIcon={null}` square.\n const hasTriggerActions = !hasCustomRightIcon || !!actions;\n\n // Everything trailing that is NOT the caller's own icon goes into the actions\n // run — a sibling of the `<button>`, so the clear button is no longer nested\n // inside one. See `TriggerActions`.\n const triggerActions = (\n <TriggerActions\n actions={actions}\n builtIn={\n hasCustomRightIcon ? null : showClearButton ? (\n <ItemAction\n icon={<CloseIcon />}\n size={size}\n qa=\"SelectClearButton\"\n // `ItemAction` derives its accessible name from `aria-label` or a\n // string `tooltip` and warns for neither, so an icon-only clear\n // button without this reaches a screen reader unnamed.\n aria-label={clearLabel ?? t('select.clearValue', 'Clear value')}\n // No explicit `type`/`theme`: the default `current` type paints\n // from the trigger's own inherited text color, so the button\n // matches whatever the field is showing instead of one palette.\n //\n // NOTE: this trigger keeps NEUTRAL label text when invalid, so\n // the button reads neutral there too. `Picker` and `FilterPicker`\n // are also `Item`-based but do tint theirs, which is the actual\n // inconsistency to fix — in `Select`, not here.\n mods={{ pressed: false }}\n onPress={clearValue}\n />\n ) : isLoading ? (\n <TriggerIcon>{loadingIcon}</TriggerIcon>\n ) : (\n <TriggerIcon>\n <DirectionIcon to={state.isOpen ? 'up' : 'down'} />\n </TriggerIcon>\n )\n }\n />\n );\n\n let selectField = (\n <SelectWrapperElement\n ref={ref}\n mods={modifiers}\n styles={styles}\n data-size={size}\n data-type={type}\n data-theme={theme}\n >\n <HiddenSelect\n state={state}\n triggerRef={triggerRef}\n label={props.label}\n name={props.name}\n />\n {/*\n The trigger's trailing controls are rendered as a SIBLING of the\n `<button>` — the same layout `ItemButton` uses for its actions, shared\n through `ItemActionsWrapper`. `Select` builds its trigger from `Item`\n rather than `ItemButton` because `useSelect`/`useButton` already own the\n button props, so it reaches for the wrapper directly.\n\n The RAW theme, unlike `Picker` / `FilterPicker` which forward\n `getValidationTheme(...)`: this trigger is painted with the raw theme too\n and surfaces validation through `SelectWrapperElement` rather than by\n switching theme. What the wrapper hands its actions must always match\n what the trigger paints with.\n */}\n <ItemActionsWrapper\n type={type}\n theme={theme}\n size={size}\n isDisabled={isDisabled || isLoading}\n mods={modifiers}\n actions={triggerActions}\n >\n {({ showActions, skipActionsWidthTransition }) => (\n <Item\n actions={hasTriggerActions || undefined}\n insideWrapper\n as=\"button\"\n {...pickBaseCustomizationProps(props)}\n qa={qa || 'Select'}\n data-input-type=\"select\"\n {...mergeProps(buttonProps, hoverProps, focusProps, inputProps)}\n // For a dialog kept mounted while closed, as on `Button`.\n {...(autoFocus ? { 'data-autofocus': '' } : undefined)}\n ref={triggerRef}\n data-popover-trigger\n showActions={showActions}\n skipActionsWidthTransition={skipActionsWidthTransition}\n styles={mergeStyleLayers(inputStyles, triggerStyles)}\n theme={theme}\n size={size}\n shape={shape}\n // Ensure this button never submits a surrounding form in tests or runtime\n htmlType=\"button\"\n // Preserve visual variant via data attribute instead of conflicting with HTML attribute\n type={type}\n mods={{ ...modifiers, ...props.mods }}\n prefix={prefix}\n suffix={suffix}\n icon={icon}\n rightIcon={triggerRightIcon}\n description={triggerDescription}\n descriptionPlacement={descriptionPlacement}\n hotkeys={hotkeys}\n tooltip={tooltip}\n labelProps={valueProps}\n >\n {state.selectedItem ? (\n state.selectedItem.rendered\n ) : placeholder ? (\n <Text.Placeholder>{placeholder}</Text.Placeholder>\n ) : null}\n </Item>\n )}\n </ItemActionsWrapper>\n <ListBoxPopup\n {...menuProps}\n popoverRef={popoverRef}\n listBoxRef={listBoxRef}\n overlayProps={overlayProps}\n placement={placement}\n state={state}\n listBoxStyles={listBoxStyles}\n listGap={listGap}\n overlayStyles={overlayStyles}\n optionStyles={optionStyles}\n minWidth={triggerWidth}\n containerPadding={containerPadding}\n size={size}\n triggerRef={triggerRef}\n isDisabled={isDisabled}\n />\n </SelectWrapperElement>\n );\n\n return wrapWithField<Omit<CubeSelectProps<T>, 'children' | 'tooltip'>>(\n selectField,\n mergeProps(\n {\n ...props,\n ...fieldLayout.field,\n // The trigger's own. Handed on, it read as the legacy field `tooltip`.\n tooltip: undefined,\n },\n { labelProps },\n ),\n );\n}\n\nexport function ListBoxPopup({\n state,\n popoverRef,\n listBoxRef,\n listBoxStyles,\n listGap,\n overlayStyles,\n optionStyles,\n overlayProps: parentOverlayProps,\n shouldUseVirtualFocus = false,\n placement,\n minWidth,\n containerPadding = 8,\n size = 'small',\n triggerRef,\n isDisabled,\n ...otherProps\n}) {\n // Handle events that should cause the popup to close,\n // e.g. blur, clicking outside, or pressing the escape key.\n let { overlayProps: rawOverlayProps } = useOverlay(\n {\n onClose: () => state.close(),\n shouldCloseOnBlur: true,\n isOpen: state.isOpen,\n isDismissable: true,\n shouldCloseOnInteractOutside: (el) => {\n // The trigger owns interactive controls of its own — the clear button\n // and any custom `actions`. They sit in the actions run, a SIBLING of\n // the trigger, so the lookup below would read them as a press outside\n // and dismiss, swallowing the press: the first press on `Reset` while\n // the list was open only closed the list and the action never ran. Same\n // guard as `DialogTrigger`, which `Picker` / `FilterPicker` go through.\n if (isOwnActionsPress(el, triggerRef?.current)) return false;\n\n const menuTriggerEl = el.closest('[data-popover-trigger]');\n if (!menuTriggerEl) {\n if (el.closest('[data-popover-keep]')) return false;\n // Plain interactive controls (Button, ItemButton) opt in via\n // `data-popover-dismiss` to dismiss us without losing their click\n // to useOverlay's stopPropagation. Schedule the close after the\n // click finishes so the button's onPress runs first.\n if (el.closest('[data-popover-dismiss]')) {\n setTimeout(() => state.close(), 0);\n return false;\n }\n return true;\n }\n // If the same trigger that opened this select was clicked, allow closing\n if (menuTriggerEl === triggerRef?.current) return true;\n // Otherwise, don't close (let event mechanism handle it)\n return false;\n },\n },\n popoverRef,\n );\n\n // A list that has already closed must not swallow the `Escape` meant for\n // whatever surrounds it — see `useOverlayEscapeGuard`.\n const overlayProps = useOverlayEscapeGuard(rawOverlayProps, state.isOpen);\n\n // Opened inside a modal, the list stays readable while the modal hides the\n // page.\n const layerRef = useModalLayerRef();\n\n // Extract primary placement direction for consistent styling\n const placementDirection = placement?.split(' ')[0] || 'bottom';\n\n // Wrap in <FocusScope> so that focus is restored back to the\n // trigger when the popup is closed. In addition, add hidden\n // <DismissButton> components at the start and end of the list\n // to allow screen reader users to dismiss the popup easily.\n //\n // `SelectListBox` puts focus in the list as it mounts, which happens on\n // every open: the scope is keyed per opening, so a list reopened while it\n // still plays its exit mounts afresh too — see `useOpenKey`. `autoFocus` on\n // the scope then finds focus already inside and only registers the scope as\n // the active one, so an outer contained Dialog FocusScope (e.g. a popover\n // Dialog wrapping the Select) recognises focus moving into the Select\n // popover and doesn't yank it back to the trigger.\n const isListShown = state.isOpen && !isDisabled;\n const openKey = useOpenKey(isListShown);\n\n return (\n <Portal>\n <DisplayTransition isShown={isListShown}>\n {({ phase, isShown, isExiting, ref: transitionRef }) => (\n <SelectOverlayWrapper\n {...overlayProps}\n {...parentOverlayProps}\n ref={mergeRefs(popoverRef, layerRef)}\n tokens={{ '$select-overlay-padding': `${containerPadding}px` }}\n mods={{\n side:\n placementDirection === 'left' || placementDirection === 'right',\n }}\n // oxlint-disable-next-line tasty/no-style-prop -- React Aria's overlay positioning computes these coordinates\n style={parentOverlayProps?.style}\n // A press on the list while it fades out must not close the\n // overlay under it (CUB-5293) — see `Overlay`.\n data-react-aria-top-layer={isExiting || undefined}\n >\n <OverlayElement\n ref={transitionRef}\n data-placement={placementDirection}\n data-phase={phase}\n mods={{\n open: isShown,\n }}\n styles={overlayStyles}\n tokens={{\n '$overlay-min-width': minWidth ? `${minWidth}px` : 'initial',\n }}\n >\n <FocusScope key={openKey} autoFocus restoreFocus>\n <DismissButton onDismiss={() => state.close()} />\n <SelectListBox\n {...otherProps}\n state={state}\n listBoxRef={listBoxRef}\n listBoxStyles={listBoxStyles}\n listGap={listGap}\n optionStyles={optionStyles}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n size={size}\n />\n <DismissButton onDismiss={() => state.close()} />\n </FocusScope>\n </OverlayElement>\n </SelectOverlayWrapper>\n )}\n </DisplayTransition>\n </Portal>\n );\n}\n\n/** The first or last option that can take focus. */\nfunction getEdgeOptionKey(\n state: SelectState<object>,\n edge: 'first' | 'last',\n): Key | null {\n const keys = [...state.collection.getKeys()];\n\n if (edge === 'last') keys.reverse();\n\n // The list opens on an option the user can pick; the arrow keys still reach\n // a disabled one from there.\n return (\n keys.find(\n (key) =>\n state.collection.getItem(key)?.type === 'item' &&\n state.selectionManager.canSelectItem(key),\n ) ?? null\n );\n}\n\n/**\n * Where focus lands as the list opens. `ArrowUp` opens on the last option;\n * `ArrowDown`, `Enter` and `Space` on the selected option, or else the first.\n * A pointer opens on the selected option, or else on the list itself, as in\n * React Aria, so a click highlights nothing the user didn't pick.\n */\nfunction getOpeningFocusKey(state: SelectState<object>): Key | null {\n const { focusStrategy, selectedKey, selectionManager } = state;\n\n if (focusStrategy === 'last') return getEdgeOptionKey(state, 'last');\n\n if (selectedKey != null && selectionManager.canSelectItem(selectedKey)) {\n return selectedKey;\n }\n\n return focusStrategy === 'first' ? getEdgeOptionKey(state, 'first') : null;\n}\n\n/**\n * Scrolls `list` so `option` is in view. Layout offsets rather than client\n * rects: on its first frames the popup is scaled by its enter transition,\n * which would skew a rect-based scroll. The list is positioned, so the offset\n * chain ends at it.\n */\nfunction scrollIntoList(list: HTMLElement, option: HTMLElement) {\n let top = 0;\n\n for (\n let node: HTMLElement | null = option;\n node && node !== list;\n node = node.offsetParent as HTMLElement | null\n ) {\n top += node.offsetTop;\n }\n\n const bottom = top + option.offsetHeight;\n\n if (top < list.scrollTop) {\n list.scrollTop = top;\n } else if (bottom > list.scrollTop + list.clientHeight) {\n list.scrollTop = bottom - list.clientHeight;\n }\n}\n\nfunction focusOpeningOption(\n state: SelectState<object>,\n list: HTMLElement | null,\n shouldUseVirtualFocus: boolean,\n) {\n const key = getOpeningFocusKey(state);\n const manager = state.selectionManager;\n\n manager.setFocused(true);\n manager.setFocusedKey(key);\n\n if (!list || shouldUseVirtualFocus) return;\n\n const option =\n key == null\n ? undefined\n : Array.from(list.querySelectorAll<HTMLElement>('[role=\"option\"]')).find(\n (element) => element.dataset.key === String(key),\n );\n\n if (!option) {\n list.focus({ preventScroll: true });\n\n return;\n }\n\n scrollIntoList(list, option);\n // Focused here rather than left to the option, which would only follow on\n // the next render: the scope's `autoFocus` runs first and would otherwise\n // focus whichever option was tabbable from the last opening.\n option.focus({ preventScroll: true });\n}\n\n/**\n * The list inside the popup. It decides where focus lands when it mounts,\n * rather than inheriting the last opening. It mounts on every opening: the\n * popup unmounts it once it has closed, and a reopen during the exit\n * transition remounts it through the popup's per-opening key.\n */\nfunction SelectListBox({\n state,\n listBoxRef,\n listBoxStyles,\n listGap,\n optionStyles,\n shouldUseVirtualFocus,\n size,\n ...otherProps\n}) {\n // For trigger+popover components, map 'small' size to 'medium' for list items\n // while preserving 'medium' and 'large' sizes\n const listItemSize = size === 'small' ? 'medium' : size;\n const listGapTokens =\n listGap == null ? undefined : { '$list-gap': `${listGap}px` };\n\n let { listBoxProps } = useListBox(\n // Opening focus is `focusOpeningOption`'s: React Aria's own `autoFocus`\n // lets a selection win over the last option `ArrowUp` asks for.\n { ...otherProps, shouldUseVirtualFocus, autoFocus: false },\n state,\n listBoxRef,\n );\n\n const focusOnOpen = useEffectEvent(() =>\n focusOpeningOption(state, listBoxRef.current, shouldUseVirtualFocus),\n );\n\n useEffect(() => {\n focusOnOpen();\n }, []);\n\n const renderedItems: React.ReactNode[] = [];\n let hasSections = false;\n\n for (const item of state.collection) {\n if (item.type === 'section') {\n if (hasSections) {\n // A listbox may only own options and groups, so the divider between\n // sections is presentation only.\n renderedItems.push(\n <ListDivider\n key={`divider-${String(item.key)}`}\n as=\"li\"\n role=\"presentation\"\n />,\n );\n }\n\n renderedItems.push(\n <SelectSection\n key={item.key}\n item={item}\n state={state}\n optionStyles={optionStyles}\n sectionStyles={undefined}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n size={listItemSize}\n />,\n );\n\n hasSections = true;\n } else {\n renderedItems.push(\n <Option\n key={item.key}\n item={item}\n state={state}\n styles={optionStyles}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n size={listItemSize}\n />,\n );\n }\n }\n\n return (\n <ListBoxElement\n styles={listBoxStyles}\n tokens={listGapTokens}\n mods={{ sections: hasSections }}\n {...listBoxProps}\n ref={listBoxRef}\n >\n {renderedItems}\n </ListBoxElement>\n );\n}\n\nfunction Option({ item, state, styles, shouldUseVirtualFocus, size }) {\n let ref = useRef<HTMLLIElement>(null);\n // The list keeps a disabled option focusable, so the selection manager no\n // longer reports it as disabled.\n let isDisabled = isItemDisabled(state, item.key);\n let isSelected = state.selectionManager.isSelected(item.key);\n let isVirtualFocused = state.selectionManager.focusedKey === item.key;\n\n // Not disabled for React Aria, which would drop focus from the option. The\n // state refuses to select a disabled option, `useOptionOriginPress` ignores\n // its press, and a pointer does not focus it.\n let { optionProps, isPressed, labelProps, descriptionProps } = useOption(\n {\n key: item.key,\n isSelected,\n shouldSelectOnPressUp: true,\n shouldFocusOnHover: !isDisabled,\n shouldUseVirtualFocus,\n },\n state,\n ref,\n );\n\n // A mouse press picks the option it started on, even if the list moved\n // under the pointer before the release.\n const originPress = useOptionOriginPress({\n key: item.key,\n ref,\n manager: state.selectionManager,\n isDisabled,\n });\n const { onPointerUp, ...ariaOptionProps } =\n filterSelectionItemProps(optionProps);\n\n // Handle focus events, so we can apply highlighted\n // style to the focused option\n let { isFocused, focusProps } = useFocus();\n\n // Filter out service props - all remaining props can be passed to Item\n const filteredItemProps = filterSelectionItemProps(\n filterCollectionItemProps(item.props),\n );\n\n const keyboardProps = {\n onKeyDown(event: KeyboardEvent<HTMLLIElement>) {\n // Committing an option refocuses the trigger during keydown. Cancel\n // Enter's native activation there, preserving Control+Enter context\n // menus and activation of links or controls inside the option.\n if (\n event.key === 'Enter' &&\n !event.ctrlKey &&\n event.target === event.currentTarget\n ) {\n event.preventDefault();\n }\n },\n };\n\n return (\n <OptionItem\n {...mergeProps(\n ariaOptionProps,\n {\n onPointerDown: originPress.onPointerDown,\n onPointerUp: originPress.wrapPointerUp(onPointerUp),\n },\n focusProps,\n filteredItemProps,\n keyboardProps,\n // React Aria no longer marks a disabled option, which the list keeps\n // focusable. Only the attribute: controls inside the option, such as a\n // form or an action, keep working as they did.\n { 'aria-disabled': isDisabled || undefined },\n )}\n ref={ref}\n mods={{\n listboxitem: true,\n selected: isSelected,\n focused: shouldUseVirtualFocus ? isVirtualFocused : isFocused,\n disabled: isDisabled,\n pressed: isPressed,\n }}\n data-size={size}\n styles={mergeStyleLayers(\n styles as Styles,\n filteredItemProps.styles as Styles,\n )}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n defaultTooltipPlacement=\"right\"\n >\n {item.rendered}\n </OptionItem>\n );\n}\n\ninterface SelectSectionProps<T> {\n item: any; // react-stately Node<T>\n state: any; // TreeState<T>\n optionStyles?: Styles;\n headingStyles?: Styles;\n sectionStyles?: Styles;\n shouldUseVirtualFocus?: boolean;\n size?: string;\n}\n\nfunction SelectSection<T>(props: SelectSectionProps<T>) {\n const {\n item,\n state,\n optionStyles,\n headingStyles,\n sectionStyles,\n shouldUseVirtualFocus,\n size,\n } = props;\n\n const heading = item.rendered;\n\n const { itemProps, headingProps, groupProps } = useListBoxSection({\n heading,\n 'aria-label': item['aria-label'],\n });\n\n return (\n <ListSectionWrapper {...itemProps} styles={sectionStyles}>\n {heading && (\n <ListSectionHeading\n {...headingProps}\n size={size}\n styles={mergeStyleLayers(headingStyles, {\n '$inline-compensation': '0px',\n })}\n >\n {heading}\n </ListSectionHeading>\n )}\n <ListBoxElement {...groupProps} mods={{ section: true }}>\n {[...item.childNodes]\n .filter((node: any) => state.collection.getItem(node.key))\n .map((node: any) => (\n <Option\n key={node.key}\n item={node}\n state={state}\n styles={optionStyles}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n size={size}\n />\n ))}\n </ListBoxElement>\n </ListSectionWrapper>\n );\n}\n\n// `forwardRef` can't carry the item generic, so the cast restores it, as in\n// ComboBox and Picker.\nconst _Select = forwardRef(\n Select as ForwardRefRenderFunction<HTMLDivElement, any>,\n) as unknown as <T>(\n props: CubeSelectProps<T> & { ref?: ForwardedRef<HTMLDivElement> },\n) => ReactElement;\n\n(_Select as any).cubeInputType = 'Select';\n\ntype SectionComponent = typeof BaseSection;\n\nconst SelectSectionComponent = Object.assign(BaseSection, {\n displayName: 'Section',\n}) as SectionComponent;\n\nconst __Select = Object.assign(\n _Select as typeof _Select & {\n Item: typeof CollectionItem;\n Section: typeof SelectSectionComponent;\n Action: typeof ItemAction;\n },\n {\n Item: CollectionItem,\n Section: SelectSectionComponent,\n Action: ItemAction,\n },\n);\n\n(__Select as any).displayName = 'Select';\n\nexport { __Select as Select };\n\nexport type { AriaSelectProps };\nexport { useSelectState };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FA,MAAMsF,uBAAuBlF,MAAM;CACjCmF,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,UAAU;EACVC,QAAQ;EACRC,MAAM;GACJ,IAAI;GACJC,UAAU;GACV,iBAAiB;EACnB;EACAC,OAAO;GACL,IAAI;GACJC,SAAS;GACTC,SAAS;GACTH,UAAU;EACZ;CACF;AACF,CAAC;AAED,MAAaI,iBAAiB7F,MAAM;CAClCmF,IAAI;CACJW,IAAI;CACJV,QAAQ;EAEN,aAAa;GAAE,IAAI;GAAaW,SAAS;EAAM;EAC/CV,SAAS;EAETW,KAAK;GAAE,IAAI;GAAaC,UAAU;EAAY;EAC9CC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,WAAW;EAIXC,UAAU;GAAE,IAAI;GAAQP,SAAS;EAAM;EAEvCT,UAAU;EACViB,WAAW;EAMXC,SAAS;CACX;AACF,CAAC;AAGD,MAAMC,aAAazG,MAAM8D,OAAM;CAC7BgC,IAAI;CACJY,qBAAqB;CACrBvB,IAAI;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;GACC7B,QAAAA;GACe+H;GACjBtG;EAAI,GALL+I,OAAIzL,GAKC,CAEb;EAACwI,EAAA,MAAAvH;EAAAuH,EAAA,MAAAQ;EAAAR,EAAA,MAAA9F;EAAA8F,EAAA,MAAA1F;EAAA0F,EAAA,MAAAS;EAAAT,EAAA,MAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,IAAAe;CAAA,IAAAf,EAAA,QAAA6G,cAAA7G,EAAA,QAAAU,IAAA;EAZNK,KAAA,oBAAC,gBAAD;GAAe,GAAK8F;GAAkB,MAAAtG;GACnCG,UAAAA;EADY,CAAA;EAaEV,EAAA,MAAA6G;EAAA7G,EAAA,MAAAU;EAAAV,EAAA,MAAAe;CAAA,OAAAA,KAAAf,EAAA;CAAA,IAAAqB;CAAA,IAAArB,EAAA,QAAA2G,aAAA3G,EAAA,QAAAwG,iBAAAxG,EAAA,QAAAM,MAAAN,EAAA,QAAAe,IAAA;EAzBnBM,KAAA,qBAAC+G,eAAD;GAAmB,GAAKzB;GAAmBH,QAAAA;GAA3C,UAAA,CACGlG,IAWDS,EAZiB;;EA0BEf,EAAA,MAAA2G;EAAA3G,EAAA,MAAAwG;EAAAxG,EAAA,MAAAM;EAAAN,EAAA,MAAAe;EAAAf,EAAA,MAAAqB;CAAA,OAAAA,KAAArB,EAAA;CAAA,OA1BrBqB;AA0BqB;AAMzB,MAAM6F,UAAUtX,WACdgL,MACF;AAIA,QAAiBuM,gBAAgB;AAIjC,MAAME,yBAAyBC,OAAOC,OAAOnW,SAAa,EACxDoW,aAAa,UACf,CAAC;AAED,MAAMC,WAAWH,OAAOC,OACtBL,SAKA;CACE5T,MAAMP;CACN5B,SAASkW;CACTK,QAAQnU;AACV,CACF;AAEA,SAAkBiU,cAAc"}
1
+ {"version":3,"file":"Select.js","names":["AriaLabelingProps","CollectionBase","Key","Styles","tasty","React","cloneElement","ForwardedRef","forwardRef","ForwardRefRenderFunction","KeyboardEvent","ReactElement","ReactNode","RefObject","useEffect","useEffectEvent","useLayoutEffect","useMemo","useRef","useState","AriaSelectProps","DismissButton","FocusScope","HiddenSelect","useButton","useHover","useListBox","useListBoxSection","useOption","useOverlay","useSelect","Section","BaseSection","SelectState","useSelectState","mergeRefs","useCombinedRefs","useOpenKey","useOverlayEscapeGuard","useOverlayPosition","usePopoverSync","useI18n","CloseIcon","DirectionIcon","LoadingIcon","FieldBaseProps","isOwnActionsPress","isItemDisabled","FieldLayoutStyleProps","splitFieldLayout","useFocus","mergeProps","useOptionOriginPress","pickBaseCustomizationProps","focusProgrammatically","generateRandomId","getValidationMods","mergeStyleLayers","wrapWithField","CollectionItem","filterCollectionItemProps","filterSelectionItemProps","getValueSelectionState","DisplayTransition","useFieldProps","CubeItemProps","Item","ItemAction","ItemActionsWrapper","useDisabledFocusReset","StyledDivider","ListDivider","StyledSectionHeading","ListSectionHeading","StyledSection","ListSectionWrapper","useModalLayerRef","Portal","Text","CubeTooltipProviderProps","TriggerActions","TriggerIcon","getValidationIcon","Placement","Props","ComponentBasePropsWithoutChildren","SelectWrapperElement","qa","styles","display","position","radius","fill","disabled","color","focused","invalid","ListBoxElement","as","section","gap","sections","flow","margin","padding","listStyle","overflow","scrollbar","outline","TRIGGER_STYLES","shadow","OptionItem","disableActionsFocus","SelectOverlayWrapper","zIndex","width","side","OverlayElement","gridRows","height","border","boxSizing","transition","translate","transformOrigin","scale","opacity","CubeSelectBaseProps","T","Omit","selectedKey","defaultSelectedKey","onSelectionChange","key","icon","rightIcon","prefix","suffix","triggerDescription","descriptionPlacement","hotkeys","tooltip","auto","triggerRef","HTMLButtonElement","isLoading","loadingIndicator","overlayOffset","hideTrigger","inputStyles","optionStyles","triggerStyles","listBoxStyles","listGap","overlayStyles","direction","targetRef","HTMLElement","placement","shouldFlip","containerPadding","inputProps","type","shape","suffixPosition","theme","isClearable","clearLabel","onClear","actions","onOpenChange","isOpen","CubeSelectProps","popoverRef","listBoxRef","size","placeholder","ignore","lockSelectState","state","S","open","toggle","setSelectedKey","setValue","Select","rawProps","ref","HTMLDivElement","props","defaultValidationTrigger","valuePropsMapper","value","onChange","label","extra","labelStyles","isRequired","necessityIndicator","isInvalid","isValid","isDisabled","autoFocus","triggerRefProp","message","placementProp","labelSuffix","form","t","disabledBehavior","isLocked","isReadOnly","selectId","isInert","closeList","close","fieldLayout","menuId","onClose","containerRef","popover","current","active","document","activeElement","contains","preventScroll","labelProps","triggerProps","valueProps","menuProps","undefined","overlayProps","overlayRef","scrollRef","offset","isFocused","focusProps","hoverProps","isHovered","buttonProps","validationIcon","hasSelection","selectedItem","showClearButton","clearValue","triggerWidth","setTriggerWidth","offsetWidth","loadingIcon","showPlaceholder","trim","modifiers","loading","hovered","hasCustomRightIcon","triggerRightIcon","hasTriggerActions","triggerActions","pressed","selectField","name","showActions","skipActionsWidthTransition","mods","rendered","field","ListBoxPopup","t0","$","_c","minWidth","otherProps","parentOverlayProps","t1","t2","t3","shouldUseVirtualFocus","t4","t5","el","menuTriggerEl","closest","setTimeout","t6","shouldCloseOnBlur","isDismissable","shouldCloseOnInteractOutside","rawOverlayProps","layerRef","t7","split","placementDirection","isListShown","openKey","t8","t9","phase","isShown","isExiting","transitionRef","style","getEdgeOptionKey","edge","keys","collection","getKeys","reverse","find","getItem","selectionManager","canSelectItem","getOpeningFocusKey","focusStrategy","scrollIntoList","list","option","top","node","offsetParent","offsetTop","bottom","offsetHeight","scrollTop","clientHeight","focusOpeningOption","manager","setFocused","setFocusedKey","Array","from","querySelectorAll","element","dataset","String","focus","SelectListBox","listItemSize","listGapTokens","listBoxProps","focusOnOpen","Symbol","for","hasSections","renderedItems","item","push","Option","isSelected","isVirtualFocused","focusedKey","optionProps","isPressed","descriptionProps","shouldSelectOnPressUp","shouldFocusOnHover","originPress","onPointerUp","ariaOptionProps","filteredItemProps","keyboardProps","onKeyDown","event","ctrlKey","target","currentTarget","preventDefault","onPointerDown","wrapPointerUp","listboxitem","selected","SelectSectionProps","headingStyles","sectionStyles","SelectSection","heading","itemProps","headingProps","groupProps","childNodes","filter","map","node_0","_Select","cubeInputType","SectionComponent","SelectSectionComponent","Object","assign","displayName","__Select","Action","Item","useOverlayPosition","useFocus","TriggerIcon","mergeProps","Text","_c","ListDivider","ListSectionHeading","ListSectionWrapper","BaseSection","CollectionItem"],"sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":["import { AriaLabelingProps, CollectionBase, Key } from '@react-types/shared';\nimport { Styles, tasty } from '@tenphi/tasty';\nimport React, {\n cloneElement,\n ForwardedRef,\n forwardRef,\n ForwardRefRenderFunction,\n KeyboardEvent,\n ReactElement,\n ReactNode,\n RefObject,\n useEffect,\n useEffectEvent,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport {\n AriaSelectProps,\n DismissButton,\n FocusScope,\n HiddenSelect,\n useButton,\n useHover,\n useListBox,\n useListBoxSection,\n useOption,\n useOverlay,\n useSelect,\n} from 'react-aria';\nimport {\n Section as BaseSection,\n SelectState,\n useSelectState,\n} from 'react-stately';\n\nimport { mergeRefs, useCombinedRefs } from '../../hooks/use-combined-refs';\nimport { useOpenKey } from '../../hooks/use-open-key';\nimport { useOverlayEscapeGuard } from '../../hooks/use-overlay-escape-guard';\nimport { useOverlayPosition } from '../../hooks/use-overlay-position';\nimport { usePopoverSync } from '../../hooks/use-popover-sync';\nimport { useI18n } from '../../i18n/use-i18n';\nimport { CloseIcon } from '../../icons/CloseIcon';\nimport { DirectionIcon } from '../../icons/DirectionIcon';\nimport { LoadingIcon } from '../../icons/LoadingIcon';\nimport { FieldBaseProps } from '../../types/form';\nimport { isOwnActionsPress } from '../../utils/actions-run';\nimport { isItemDisabled } from '../../utils/disabled-behavior';\nimport {\n FieldLayoutStyleProps,\n splitFieldLayout,\n} from '../../utils/field-layout';\nimport { useFocus } from '../../utils/interactions';\nimport { mergeProps } from '../../utils/merge-props';\nimport { useOptionOriginPress } from '../../utils/option-origin-press';\nimport { pickBaseCustomizationProps } from '../../utils/pick-base-customization-props';\nimport { focusProgrammatically } from '../../utils/programmatic-focus';\nimport { generateRandomId } from '../../utils/random';\nimport { getValidationMods } from '../../utils/resolve-validation-props';\nimport { mergeStyleLayers } from '../../utils/styles';\nimport { wrapWithField } from '../../utils/wrap-with-field';\nimport {\n CollectionItem,\n filterCollectionItemProps,\n filterSelectionItemProps,\n getValueSelectionState,\n} from '../CollectionItem/CollectionItem';\nimport { DisplayTransition } from '../DisplayTransition/DisplayTransition';\nimport { useFieldProps } from '../Form/use-field/use-field-props';\nimport { CubeItemProps, Item } from '../Item/Item';\nimport { ItemAction } from '../ItemAction/ItemAction';\nimport { ItemActionsWrapper } from '../ItemActionsWrapper/ItemActionsWrapper';\nimport { useDisabledFocusReset } from '../ListBox/use-disabled-focus-reset';\nimport {\n StyledDivider as ListDivider,\n StyledSectionHeading as ListSectionHeading,\n StyledSection as ListSectionWrapper,\n} from '../Menu/styled';\nimport { useModalLayerRef } from '../Modal/ModalContainmentProvider';\nimport { Portal } from '../Portal/Portal';\nimport { Text } from '../Text/Text';\nimport { CubeTooltipProviderProps } from '../Tooltip/TooltipProvider';\nimport { TriggerActions, TriggerIcon } from '../TriggerActions/TriggerActions';\nimport { getValidationIcon } from '../ValidationIndicator/ValidationIndicator';\n\nimport type { Placement } from 'react-aria';\nimport type { Props } from '../../types/props';\nimport type { ComponentBasePropsWithoutChildren } from '../../utils/component-base-props';\n\nconst SelectWrapperElement = tasty({\n qa: 'SelectWrapper',\n styles: {\n display: 'grid',\n position: 'relative',\n radius: true,\n fill: {\n '': '#surface',\n disabled: '#disabled-surface',\n 'theme=special': '#clear',\n },\n color: {\n '': '#dark.85',\n focused: '#dark.85',\n invalid: '#danger-text',\n disabled: '#disabled-surface-text',\n },\n },\n});\n\nexport const ListBoxElement = tasty({\n qa: 'ListBox',\n as: 'ul',\n styles: {\n // Set from `listGap`. A section's list inherits it from the popup's.\n '$list-gap': { '': '$item-gap', section: false },\n display: 'flex',\n // It spaces options: sections and dividers keep a hairline.\n gap: { '': '$list-gap', sections: '$item-gap' },\n flow: 'column',\n margin: '0',\n padding: '0',\n listStyle: 'none',\n // The popup's list is the scroll container and the element its height\n // limit lands on, so React Aria's page navigation measures what is\n // actually visible. A section's list grows with its options.\n overflow: { '': 'auto', section: false },\n // Options measure their scroll offset against the list.\n position: 'relative',\n scrollbar: 'styled',\n // The listbox is programmatically focused when the popover opens\n // (so keyboard nav works immediately) but it should never display a\n // focus ring — only the focused option does. Without this, the\n // browser draws its native outline around the whole listbox when\n // it receives focus.\n outline: 0,\n },\n});\n\n// A raised outline or primary trigger, as `Picker`'s `ItemButton` is. The\n// first layer, so `inputStyles` and `triggerStyles` still replace it.\nconst TRIGGER_STYLES: Styles = {\n shadow: {\n '': false,\n 'type=outline | type=outline-2 | type=primary': '$button-shadow',\n },\n};\n\n// Use Item for options to unify item visuals and reduce custom styling\nconst OptionItem = tasty(Item, {\n as: 'li',\n disableActionsFocus: true,\n qa: 'Option',\n styles: {\n '$inline-compensation': '0px',\n },\n});\n\nconst SelectOverlayWrapper = tasty({\n qa: 'SelectOverlayWrapper',\n styles: {\n position: 'absolute',\n zIndex: 1000,\n // Above or below its trigger, as wide as the popup wherever React Aria\n // puts it. Left to shrink, the width ends at the screen edge, and React\n // Aria measures that squeezed width: a list that grows while open then\n // crept a few pixels per frame instead of moving once. The cap is the room\n // React Aria leaves inside the viewport (`%`, unlike `vw`, leaves out a\n // page scrollbar). Beside its trigger, React Aria never moves the list\n // along the edge it would cross, so the list keeps shrinking to the room\n // there and stays on screen.\n width: {\n '': 'initial max-content (100% - 2 * $select-overlay-padding)',\n side: false,\n },\n // React Aria writes the room left in the viewport as this element's\n // `max-height`; a flex column lets the popup shrink to it.\n display: 'flex',\n flow: 'column',\n },\n});\n\nconst OverlayElement = tasty({\n qa: 'SelectOverlay',\n styles: {\n width: 'min $overlay-min-width',\n display: 'grid',\n gridRows: '1sf',\n height: 'initial max-content (50vh - 5x)',\n overflow: 'auto',\n fill: '#surface',\n radius: '1cr',\n shadow: true,\n padding: '.5x',\n border: true,\n boxSizing: 'border-box',\n transition:\n 'translate $transition ease-out, scale $transition ease-out, theme $transition ease-out',\n translate: {\n '': '0 0',\n 'open & [data-placement=\"top\"]': '0 0',\n '!open & [data-placement=\"top\"]': '0 1x',\n 'open & ([data-placement=\"bottom\"] | ![data-placement])': '0 0',\n '!open & ([data-placement=\"bottom\"] | ![data-placement])': '0 -1x',\n },\n transformOrigin: {\n '': 'top center',\n '[data-placement=\"top\"]': 'bottom center',\n },\n scale: {\n '': '1 1',\n '!open': '1 .9',\n },\n opacity: {\n '': 1,\n '!open': 0.001,\n },\n },\n});\n\nexport interface CubeSelectBaseProps<T>\n extends\n ComponentBasePropsWithoutChildren,\n AriaLabelingProps,\n FieldLayoutStyleProps,\n FieldBaseProps<Key | null | undefined>,\n CollectionBase<T>,\n Omit<\n AriaSelectProps<T>,\n | 'errorMessage'\n | 'form'\n | 'name'\n | 'selectedKey'\n | 'defaultSelectedKey'\n | 'onSelectionChange'\n > {\n /** The currently selected key in the collection (controlled). */\n selectedKey?: Key | null;\n /** The initial selected key in the collection (uncontrolled). */\n defaultSelectedKey?: Key;\n /** Handler that is called when the selection changes. */\n onSelectionChange?: (key: Key | null) => void;\n icon?: ReactElement;\n rightIcon?: ReactNode;\n prefix?: ReactNode;\n suffix?: ReactNode;\n /** Description text for the trigger. Note: Different from field-level description. */\n triggerDescription?: ReactNode;\n descriptionPlacement?: 'inline' | 'block';\n /** Keyboard shortcut that triggers the select when pressed */\n hotkeys?: string;\n /**\n * Tooltip content and configuration for the trigger. The info badge next to\n * the field's label is `labelTooltip`.\n * - string: simple tooltip text\n * - true: auto tooltip on overflow (shows selected value as tooltip when truncated)\n * - object: advanced configuration with optional auto property\n */\n tooltip?:\n | string\n | boolean\n | (Omit<CubeTooltipProviderProps, 'children'> & { auto?: boolean });\n triggerRef?: RefObject<HTMLButtonElement>;\n /**\n * Shows a loading indicator in the trigger. The value can't change while\n * loading: the list doesn't open and typeahead is ignored.\n */\n isLoading?: boolean;\n /** Replaces the default loading icon shown while `isLoading` is set. */\n loadingIndicator?: ReactNode;\n overlayOffset?: number;\n /**\n * @deprecated Has no effect: the whole Select is its trigger. To hide the\n * dropdown caret, pass `rightIcon={null}`.\n */\n hideTrigger?: boolean;\n /**\n * @deprecated Use `triggerStyles` instead\n */\n inputStyles?: Styles;\n optionStyles?: Styles;\n triggerStyles?: Styles;\n listBoxStyles?: Styles;\n /** Space between options, in pixels. Defaults to a hairline (`$item-gap`, `1px`). */\n listGap?: number;\n overlayStyles?: Styles;\n direction?: 'top' | 'bottom';\n /**\n * The ref of the element the popover should visually attach itself to.\n * Defaults to the trigger button.\n *\n * Only the popover's POSITION follows this ref. The trigger keeps its own\n * ref for focus, outside-click and dismiss logic, so anchoring to a wider\n * container does not make clicks inside that container count as trigger\n * presses. The popover's `minWidth` also stays tied to the trigger, not to\n * this element.\n */\n targetRef?: RefObject<HTMLElement | null>;\n /**\n * Placement of the popover relative to the anchor.\n * Accepts React Aria's `Placement` strings (e.g. `'bottom start'`,\n * `'top start'`, `'right top'`, `'left top'`).\n *\n * Overrides `direction` when both are given.\n * @default `${direction} end`\n */\n placement?: Placement;\n shouldFlip?: boolean;\n /** Minimum padding in pixels between the popover and viewport edges */\n containerPadding?: number;\n /** Additional props for the trigger button element. */\n inputProps?: Props;\n type?: 'outline' | 'outline-2' | 'clear' | 'primary' | (string & {});\n /**\n * Shape of the trigger's border radius.\n * - `card` - Card shape with larger border radius (`1cr`)\n * - `button` - Button shape with default border radius (default)\n * - `sharp` - Sharp corners with no border radius (`0`)\n * - `pill` - Pill shape with fully rounded ends (`round`)\n * @default \"button\"\n */\n shape?: 'card' | 'button' | 'sharp' | 'pill';\n suffixPosition?: 'before' | 'after';\n theme?: 'default' | 'special';\n /** Whether the select is clearable using a clear button in the rightIcon slot */\n isClearable?: boolean;\n /** Accessible name for the built-in clear button. Defaults to a localized \"Clear value\". */\n clearLabel?: string;\n /** Callback called when the clear button is pressed */\n onClear?: () => void;\n /**\n * Custom actions rendered inside the trigger, to the left of the built-in\n * clear button and dropdown caret. Use `Select.Action` so they match the\n * trigger's size and theme.\n *\n * Pressing one runs its handler without opening or closing the popover —\n * including while the popover is open. Actions follow the trigger's disabled\n * state but NOT `isReadOnly`, since a read-only field can still host an\n * action that does not change the value; pass `isDisabled` yourself for one\n * that does.\n */\n actions?: ReactNode;\n /** Callback called when the popover open state changes */\n onOpenChange?: (isOpen: boolean) => void;\n}\n\nexport interface CubeSelectProps<T> extends CubeSelectBaseProps<T> {\n /** The ref for the popover element. */\n popoverRef?: RefObject<HTMLElement | null>;\n /** The ref for the list box. */\n listBoxRef?: RefObject<HTMLElement>;\n size?: 'small' | 'medium' | 'large' | (string & {});\n placeholder?: string;\n}\n\nconst ignore = () => {};\n\n/**\n * A state whose value can't change. React Aria's trigger opens the list,\n * steps with `ArrowLeft`/`ArrowRight` and typeaheads through these methods,\n * so ignoring them fixes the value while the trigger stays focusable.\n */\nfunction lockSelectState<S extends SelectState<object>>(state: S): S {\n return {\n ...state,\n open: ignore,\n toggle: ignore,\n setSelectedKey: ignore,\n setValue: ignore,\n };\n}\n\nfunction Select<T extends object>(\n rawProps: CubeSelectProps<T>,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n let props = useFieldProps(rawProps, {\n defaultValidationTrigger: 'onChange',\n valuePropsMapper: ({ value, onChange }) => ({\n selectedKey: value ?? null,\n onSelectionChange: onChange,\n }),\n });\n\n let {\n qa,\n label,\n extra,\n icon,\n rightIcon,\n labelStyles,\n isRequired,\n necessityIndicator,\n isInvalid,\n isValid,\n prefix,\n isDisabled = props.isLoading || false,\n autoFocus,\n inputProps,\n triggerRef: triggerRefProp,\n popoverRef,\n listBoxRef,\n isLoading,\n loadingIndicator,\n overlayOffset = 8,\n inputStyles,\n triggerStyles,\n optionStyles,\n listBoxStyles,\n listGap,\n overlayStyles,\n suffix,\n actions,\n message,\n triggerDescription,\n descriptionPlacement,\n hotkeys,\n direction = 'bottom',\n targetRef,\n placement: placementProp,\n shouldFlip = true,\n containerPadding = 8,\n placeholder,\n tooltip,\n size = 'medium',\n shape,\n styles,\n type = 'outline',\n theme = 'default',\n labelSuffix,\n suffixPosition = 'before',\n isClearable,\n clearLabel,\n onOpenChange,\n form,\n } = props;\n const { t } = useI18n();\n // `useSelectState` reports `onOpenChange` itself, once per transition. A\n // disabled option stays focusable in the open list, as WAI-ARIA keeps a\n // disabled option reachable; `Option` keeps it inert.\n let state = getValueSelectionState(\n useSelectState({ ...props, disabledBehavior: 'selection' } as typeof props),\n );\n useDisabledFocusReset(state);\n // Read-only and loading keep the trigger focusable, but its value is fixed.\n const isLocked = !!props.isReadOnly || !!isLoading;\n\n if (isLocked) state = lockSelectState(state);\n\n // Generate a unique ID for this select instance\n const selectId = useMemo(() => generateRandomId(), []);\n\n // A list that can no longer change the value closes rather than staying open\n // behind a hidden popup, so `aria-expanded` follows and enabling the field\n // again doesn't bring the list back.\n const isInert = isLocked || isDisabled;\n const closeList = useEffectEvent(() => state.close());\n\n useEffect(() => {\n if (isInert && state.isOpen) closeList();\n }, [isInert, state.isOpen]);\n\n const fieldLayout = splitFieldLayout(props);\n\n styles = fieldLayout.styles;\n\n ref = useCombinedRefs(ref);\n const triggerRef = useCombinedRefs(triggerRefProp);\n popoverRef = useCombinedRefs(popoverRef);\n listBoxRef = useCombinedRefs(listBoxRef);\n\n usePopoverSync({\n menuId: selectId,\n isOpen: state.isOpen,\n onClose: () => state.close(),\n triggerRef: triggerRef as RefObject<HTMLElement | null>,\n containerRef: popoverRef as RefObject<HTMLElement | null>,\n });\n\n // Hand focus back to the trigger the moment the list closes, rather than\n // leaving it to the popup's `FocusScope`, which only restores when it\n // UNMOUNTS — at the end of the exit transition (CUB-4839).\n //\n // For the length of that transition focus would otherwise sit on an option\n // inside a popup that is going away, and the key a user presses next can\n // land nowhere at all: once the option is detached focus drops to `<body>`,\n // which takes the event out of the React tree entirely.\n //\n // `focusProgrammatically` so the trigger's tooltip does not read this as the\n // user arriving and pop up — it would then swallow that next `Escape`.\n //\n // Guarded on focus still being INSIDE the popup, so this only finishes a\n // hand-off the popup had already started: closing by clicking elsewhere\n // leaves focus wherever the user put it.\n useEffect(() => {\n if (state.isOpen) return;\n\n const popover = popoverRef.current;\n const active = document.activeElement;\n\n if (!popover || !active || !popover.contains(active)) return;\n\n focusProgrammatically(triggerRef.current, { preventScroll: true });\n // Both refs come from `useCombinedRefs`, so their identity never changes;\n // listing them satisfies the rule without re-running this.\n }, [state.isOpen, popoverRef, triggerRef]);\n\n // React Aria hands `form` to `HiddenSelect` as the id of its `<form>`, so the\n // form instance would render as `form=\"[object Object]\"` on the `<select>`.\n let { labelProps, triggerProps, valueProps, menuProps } = useSelect(\n { ...props, form: undefined },\n state,\n triggerRef,\n );\n\n let { overlayProps, placement } = useOverlayPosition({\n // Position only. `triggerRef` stays the dismiss/focus anchor below, so a\n // consumer can line this popover up with a row without that row's clicks\n // reading as presses on the trigger.\n targetRef: (targetRef ?? triggerRef) as RefObject<HTMLElement>,\n overlayRef: popoverRef,\n scrollRef: listBoxRef,\n placement: placementProp ?? (`${direction} end` as Placement),\n shouldFlip: shouldFlip,\n isOpen: state.isOpen,\n onClose: state.close,\n offset: overlayOffset,\n containerPadding: containerPadding,\n });\n\n let { isFocused, focusProps } = useFocus(true);\n let { hoverProps, isHovered } = useHover({ isDisabled });\n\n // Get props for the button based on the trigger props from useSelect\n let { buttonProps } = useButton({ ...triggerProps, autoFocus }, triggerRef);\n\n let validationIcon = getValidationIcon({ isInvalid, isValid });\n\n // Clear button logic\n let hasSelection = state.selectedItem != null;\n let showClearButton = isClearable && hasSelection && !isInert;\n\n function clearValue() {\n // Reports the change through `onSelectionChange`.\n state.setSelectedKey(null);\n\n if (state.isOpen) {\n state.close();\n }\n\n // Back to the trigger, without its tooltip reading this as the user\n // arriving there and then swallowing the next `Escape`.\n focusProgrammatically(triggerRef.current);\n\n props.onClear?.();\n }\n\n // The popup is at least as wide as the trigger. Measured as the list opens,\n // before the popup mounts and is positioned, rather than during render, so a\n // trigger resized while the list was closed is read fresh.\n const [triggerWidth, setTriggerWidth] = useState<number>();\n\n useLayoutEffect(() => {\n if (state.isOpen) setTriggerWidth(triggerRef.current?.offsetWidth);\n }, [state.isOpen, triggerRef]);\n\n const loadingIcon = loadingIndicator ?? <LoadingIcon />;\n\n const showPlaceholder = !!placeholder?.trim() && !state.selectedItem;\n\n const modifiers = useMemo(\n () => ({\n ...getValidationMods({ isInvalid, isValid }),\n disabled: isDisabled,\n loading: isLoading,\n hovered: isHovered,\n focused: isFocused,\n placeholder: showPlaceholder,\n prefix: !!prefix,\n suffix: true,\n }),\n [\n isInvalid,\n isValid,\n isDisabled,\n isLoading,\n isHovered,\n isFocused,\n showPlaceholder,\n prefix,\n ],\n );\n\n suffix = useMemo(() => {\n if (!suffix && !validationIcon) {\n return null;\n }\n\n return (\n <>\n {suffix}\n {validationIcon}\n </>\n );\n }, [suffix, validationIcon]);\n\n // A caller's `rightIcon` keeps the `rightIcon` slot: it accepts a render\n // function resolved against the trigger's mods, which only that slot does, and\n // it is also what a caller's `RightIcon` styles target. It replaces the\n // built-in control, exactly as before.\n const hasCustomRightIcon = rightIcon !== undefined;\n const triggerRightIcon = hasCustomRightIcon\n ? isLoading\n ? loadingIcon\n : rightIcon\n : undefined;\n\n // With a caller's own `rightIcon` the built-in control moves into that slot,\n // leaving the run with whatever the caller passed — possibly nothing. The run\n // is still rendered, so the trigger does not restructure if actions arrive\n // later, but the row stops counting it as end content — which is what keeps an\n // icon-only trigger with `rightIcon={null}` square.\n const hasTriggerActions = !hasCustomRightIcon || !!actions;\n\n // Everything trailing that is NOT the caller's own icon goes into the actions\n // run — a sibling of the `<button>`, so the clear button is no longer nested\n // inside one. See `TriggerActions`.\n const triggerActions = (\n <TriggerActions\n actions={actions}\n builtIn={\n hasCustomRightIcon ? null : showClearButton ? (\n <ItemAction\n icon={<CloseIcon />}\n size={size}\n qa=\"SelectClearButton\"\n // `ItemAction` derives its accessible name from `aria-label` or a\n // string `tooltip` and warns for neither, so an icon-only clear\n // button without this reaches a screen reader unnamed.\n aria-label={clearLabel ?? t('select.clearValue', 'Clear value')}\n // No explicit `type`/`theme`: the default `current` type paints\n // from the trigger's own inherited text color, so the button\n // matches whatever the field is showing instead of one palette.\n //\n // NOTE: this trigger keeps NEUTRAL label text when invalid, so\n // the button reads neutral there too. `Picker` and `FilterPicker`\n // are also `Item`-based but do tint theirs, which is the actual\n // inconsistency to fix — in `Select`, not here.\n mods={{ pressed: false }}\n onPress={clearValue}\n />\n ) : isLoading ? (\n <TriggerIcon>{loadingIcon}</TriggerIcon>\n ) : (\n <TriggerIcon>\n <DirectionIcon to={state.isOpen ? 'up' : 'down'} />\n </TriggerIcon>\n )\n }\n />\n );\n\n let selectField = (\n <SelectWrapperElement\n ref={ref}\n mods={modifiers}\n styles={styles}\n data-size={size}\n data-type={type}\n data-theme={theme}\n >\n <HiddenSelect\n state={state}\n triggerRef={triggerRef}\n label={props.label}\n name={props.name}\n />\n {/*\n The trigger's trailing controls are rendered as a SIBLING of the\n `<button>` — the same layout `ItemButton` uses for its actions, shared\n through `ItemActionsWrapper`. `Select` builds its trigger from `Item`\n rather than `ItemButton` because `useSelect`/`useButton` already own the\n button props, so it reaches for the wrapper directly.\n\n The RAW theme, unlike `Picker` / `FilterPicker` which forward\n `getValidationTheme(...)`: this trigger is painted with the raw theme too\n and surfaces validation through `SelectWrapperElement` rather than by\n switching theme. What the wrapper hands its actions must always match\n what the trigger paints with.\n */}\n <ItemActionsWrapper\n type={type}\n theme={theme}\n size={size}\n isDisabled={isDisabled || isLoading}\n mods={modifiers}\n actions={triggerActions}\n >\n {({ showActions, skipActionsWidthTransition }) => (\n <Item\n actions={hasTriggerActions || undefined}\n insideWrapper\n as=\"button\"\n {...pickBaseCustomizationProps(props)}\n qa={qa || 'Select'}\n data-input-type=\"select\"\n {...mergeProps(buttonProps, hoverProps, focusProps, inputProps)}\n // For a dialog kept mounted while closed, as on `Button`.\n {...(autoFocus ? { 'data-autofocus': '' } : undefined)}\n ref={triggerRef}\n data-popover-trigger\n showActions={showActions}\n skipActionsWidthTransition={skipActionsWidthTransition}\n styles={mergeStyleLayers(\n TRIGGER_STYLES,\n inputStyles,\n triggerStyles,\n )}\n theme={theme}\n size={size}\n shape={shape}\n // Ensure this button never submits a surrounding form in tests or runtime\n htmlType=\"button\"\n // Preserve visual variant via data attribute instead of conflicting with HTML attribute\n type={type}\n mods={{ ...modifiers, ...props.mods }}\n prefix={prefix}\n suffix={suffix}\n icon={icon}\n rightIcon={triggerRightIcon}\n description={triggerDescription}\n descriptionPlacement={descriptionPlacement}\n hotkeys={hotkeys}\n tooltip={tooltip}\n labelProps={valueProps}\n >\n {state.selectedItem ? (\n state.selectedItem.rendered\n ) : placeholder ? (\n <Text.Placeholder>{placeholder}</Text.Placeholder>\n ) : null}\n </Item>\n )}\n </ItemActionsWrapper>\n <ListBoxPopup\n {...menuProps}\n popoverRef={popoverRef}\n listBoxRef={listBoxRef}\n overlayProps={overlayProps}\n placement={placement}\n state={state}\n listBoxStyles={listBoxStyles}\n listGap={listGap}\n overlayStyles={overlayStyles}\n optionStyles={optionStyles}\n minWidth={triggerWidth}\n containerPadding={containerPadding}\n size={size}\n triggerRef={triggerRef}\n isDisabled={isDisabled}\n />\n </SelectWrapperElement>\n );\n\n return wrapWithField<Omit<CubeSelectProps<T>, 'children' | 'tooltip'>>(\n selectField,\n mergeProps(\n {\n ...props,\n ...fieldLayout.field,\n // The trigger's own. Handed on, it read as the legacy field `tooltip`.\n tooltip: undefined,\n },\n { labelProps },\n ),\n );\n}\n\nexport function ListBoxPopup({\n state,\n popoverRef,\n listBoxRef,\n listBoxStyles,\n listGap,\n overlayStyles,\n optionStyles,\n overlayProps: parentOverlayProps,\n shouldUseVirtualFocus = false,\n placement,\n minWidth,\n containerPadding = 8,\n size = 'small',\n triggerRef,\n isDisabled,\n ...otherProps\n}) {\n // Handle events that should cause the popup to close,\n // e.g. blur, clicking outside, or pressing the escape key.\n let { overlayProps: rawOverlayProps } = useOverlay(\n {\n onClose: () => state.close(),\n shouldCloseOnBlur: true,\n isOpen: state.isOpen,\n isDismissable: true,\n shouldCloseOnInteractOutside: (el) => {\n // The trigger owns interactive controls of its own — the clear button\n // and any custom `actions`. They sit in the actions run, a SIBLING of\n // the trigger, so the lookup below would read them as a press outside\n // and dismiss, swallowing the press: the first press on `Reset` while\n // the list was open only closed the list and the action never ran. Same\n // guard as `DialogTrigger`, which `Picker` / `FilterPicker` go through.\n if (isOwnActionsPress(el, triggerRef?.current)) return false;\n\n const menuTriggerEl = el.closest('[data-popover-trigger]');\n if (!menuTriggerEl) {\n if (el.closest('[data-popover-keep]')) return false;\n // Plain interactive controls (Button, ItemButton) opt in via\n // `data-popover-dismiss` to dismiss us without losing their click\n // to useOverlay's stopPropagation. Schedule the close after the\n // click finishes so the button's onPress runs first.\n if (el.closest('[data-popover-dismiss]')) {\n setTimeout(() => state.close(), 0);\n return false;\n }\n return true;\n }\n // If the same trigger that opened this select was clicked, allow closing\n if (menuTriggerEl === triggerRef?.current) return true;\n // Otherwise, don't close (let event mechanism handle it)\n return false;\n },\n },\n popoverRef,\n );\n\n // A list that has already closed must not swallow the `Escape` meant for\n // whatever surrounds it — see `useOverlayEscapeGuard`.\n const overlayProps = useOverlayEscapeGuard(rawOverlayProps, state.isOpen);\n\n // Opened inside a modal, the list stays readable while the modal hides the\n // page.\n const layerRef = useModalLayerRef();\n\n // Extract primary placement direction for consistent styling\n const placementDirection = placement?.split(' ')[0] || 'bottom';\n\n // Wrap in <FocusScope> so that focus is restored back to the\n // trigger when the popup is closed. In addition, add hidden\n // <DismissButton> components at the start and end of the list\n // to allow screen reader users to dismiss the popup easily.\n //\n // `SelectListBox` puts focus in the list as it mounts, which happens on\n // every open: the scope is keyed per opening, so a list reopened while it\n // still plays its exit mounts afresh too — see `useOpenKey`. `autoFocus` on\n // the scope then finds focus already inside and only registers the scope as\n // the active one, so an outer contained Dialog FocusScope (e.g. a popover\n // Dialog wrapping the Select) recognises focus moving into the Select\n // popover and doesn't yank it back to the trigger.\n const isListShown = state.isOpen && !isDisabled;\n const openKey = useOpenKey(isListShown);\n\n return (\n <Portal>\n <DisplayTransition isShown={isListShown}>\n {({ phase, isShown, isExiting, ref: transitionRef }) => (\n <SelectOverlayWrapper\n {...overlayProps}\n {...parentOverlayProps}\n ref={mergeRefs(popoverRef, layerRef)}\n tokens={{ '$select-overlay-padding': `${containerPadding}px` }}\n mods={{\n side:\n placementDirection === 'left' || placementDirection === 'right',\n }}\n // oxlint-disable-next-line tasty/no-style-prop -- React Aria's overlay positioning computes these coordinates\n style={parentOverlayProps?.style}\n // A press on the list while it fades out must not close the\n // overlay under it (CUB-5293) — see `Overlay`.\n data-react-aria-top-layer={isExiting || undefined}\n >\n <OverlayElement\n ref={transitionRef}\n data-placement={placementDirection}\n data-phase={phase}\n mods={{\n open: isShown,\n }}\n styles={overlayStyles}\n tokens={{\n '$overlay-min-width': minWidth ? `${minWidth}px` : 'initial',\n }}\n >\n <FocusScope key={openKey} autoFocus restoreFocus>\n <DismissButton onDismiss={() => state.close()} />\n <SelectListBox\n {...otherProps}\n state={state}\n listBoxRef={listBoxRef}\n listBoxStyles={listBoxStyles}\n listGap={listGap}\n optionStyles={optionStyles}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n size={size}\n />\n <DismissButton onDismiss={() => state.close()} />\n </FocusScope>\n </OverlayElement>\n </SelectOverlayWrapper>\n )}\n </DisplayTransition>\n </Portal>\n );\n}\n\n/** The first or last option that can take focus. */\nfunction getEdgeOptionKey(\n state: SelectState<object>,\n edge: 'first' | 'last',\n): Key | null {\n const keys = [...state.collection.getKeys()];\n\n if (edge === 'last') keys.reverse();\n\n // The list opens on an option the user can pick; the arrow keys still reach\n // a disabled one from there.\n return (\n keys.find(\n (key) =>\n state.collection.getItem(key)?.type === 'item' &&\n state.selectionManager.canSelectItem(key),\n ) ?? null\n );\n}\n\n/**\n * Where focus lands as the list opens. `ArrowUp` opens on the last option;\n * `ArrowDown`, `Enter` and `Space` on the selected option, or else the first.\n * A pointer opens on the selected option, or else on the list itself, as in\n * React Aria, so a click highlights nothing the user didn't pick.\n */\nfunction getOpeningFocusKey(state: SelectState<object>): Key | null {\n const { focusStrategy, selectedKey, selectionManager } = state;\n\n if (focusStrategy === 'last') return getEdgeOptionKey(state, 'last');\n\n if (selectedKey != null && selectionManager.canSelectItem(selectedKey)) {\n return selectedKey;\n }\n\n return focusStrategy === 'first' ? getEdgeOptionKey(state, 'first') : null;\n}\n\n/**\n * Scrolls `list` so `option` is in view. Layout offsets rather than client\n * rects: on its first frames the popup is scaled by its enter transition,\n * which would skew a rect-based scroll. The list is positioned, so the offset\n * chain ends at it.\n */\nfunction scrollIntoList(list: HTMLElement, option: HTMLElement) {\n let top = 0;\n\n for (\n let node: HTMLElement | null = option;\n node && node !== list;\n node = node.offsetParent as HTMLElement | null\n ) {\n top += node.offsetTop;\n }\n\n const bottom = top + option.offsetHeight;\n\n if (top < list.scrollTop) {\n list.scrollTop = top;\n } else if (bottom > list.scrollTop + list.clientHeight) {\n list.scrollTop = bottom - list.clientHeight;\n }\n}\n\nfunction focusOpeningOption(\n state: SelectState<object>,\n list: HTMLElement | null,\n shouldUseVirtualFocus: boolean,\n) {\n const key = getOpeningFocusKey(state);\n const manager = state.selectionManager;\n\n manager.setFocused(true);\n manager.setFocusedKey(key);\n\n if (!list || shouldUseVirtualFocus) return;\n\n const option =\n key == null\n ? undefined\n : Array.from(list.querySelectorAll<HTMLElement>('[role=\"option\"]')).find(\n (element) => element.dataset.key === String(key),\n );\n\n if (!option) {\n list.focus({ preventScroll: true });\n\n return;\n }\n\n scrollIntoList(list, option);\n // Focused here rather than left to the option, which would only follow on\n // the next render: the scope's `autoFocus` runs first and would otherwise\n // focus whichever option was tabbable from the last opening.\n option.focus({ preventScroll: true });\n}\n\n/**\n * The list inside the popup. It decides where focus lands when it mounts,\n * rather than inheriting the last opening. It mounts on every opening: the\n * popup unmounts it once it has closed, and a reopen during the exit\n * transition remounts it through the popup's per-opening key.\n */\nfunction SelectListBox({\n state,\n listBoxRef,\n listBoxStyles,\n listGap,\n optionStyles,\n shouldUseVirtualFocus,\n size,\n ...otherProps\n}) {\n // For trigger+popover components, map 'small' size to 'medium' for list items\n // while preserving 'medium' and 'large' sizes\n const listItemSize = size === 'small' ? 'medium' : size;\n const listGapTokens =\n listGap == null ? undefined : { '$list-gap': `${listGap}px` };\n\n let { listBoxProps } = useListBox(\n // Opening focus is `focusOpeningOption`'s: React Aria's own `autoFocus`\n // lets a selection win over the last option `ArrowUp` asks for.\n { ...otherProps, shouldUseVirtualFocus, autoFocus: false },\n state,\n listBoxRef,\n );\n\n const focusOnOpen = useEffectEvent(() =>\n focusOpeningOption(state, listBoxRef.current, shouldUseVirtualFocus),\n );\n\n useEffect(() => {\n focusOnOpen();\n }, []);\n\n const renderedItems: React.ReactNode[] = [];\n let hasSections = false;\n\n for (const item of state.collection) {\n if (item.type === 'section') {\n if (hasSections) {\n // A listbox may only own options and groups, so the divider between\n // sections is presentation only.\n renderedItems.push(\n <ListDivider\n key={`divider-${String(item.key)}`}\n as=\"li\"\n role=\"presentation\"\n />,\n );\n }\n\n renderedItems.push(\n <SelectSection\n key={item.key}\n item={item}\n state={state}\n optionStyles={optionStyles}\n sectionStyles={undefined}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n size={listItemSize}\n />,\n );\n\n hasSections = true;\n } else {\n renderedItems.push(\n <Option\n key={item.key}\n item={item}\n state={state}\n styles={optionStyles}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n size={listItemSize}\n />,\n );\n }\n }\n\n return (\n <ListBoxElement\n styles={listBoxStyles}\n tokens={listGapTokens}\n mods={{ sections: hasSections }}\n {...listBoxProps}\n ref={listBoxRef}\n >\n {renderedItems}\n </ListBoxElement>\n );\n}\n\nfunction Option({ item, state, styles, shouldUseVirtualFocus, size }) {\n let ref = useRef<HTMLLIElement>(null);\n // The list keeps a disabled option focusable, so the selection manager no\n // longer reports it as disabled.\n let isDisabled = isItemDisabled(state, item.key);\n let isSelected = state.selectionManager.isSelected(item.key);\n let isVirtualFocused = state.selectionManager.focusedKey === item.key;\n\n // Not disabled for React Aria, which would drop focus from the option. The\n // state refuses to select a disabled option, `useOptionOriginPress` ignores\n // its press, and a pointer does not focus it.\n let { optionProps, isPressed, labelProps, descriptionProps } = useOption(\n {\n key: item.key,\n isSelected,\n shouldSelectOnPressUp: true,\n shouldFocusOnHover: !isDisabled,\n shouldUseVirtualFocus,\n },\n state,\n ref,\n );\n\n // A mouse press picks the option it started on, even if the list moved\n // under the pointer before the release.\n const originPress = useOptionOriginPress({\n key: item.key,\n ref,\n manager: state.selectionManager,\n isDisabled,\n });\n const { onPointerUp, ...ariaOptionProps } =\n filterSelectionItemProps(optionProps);\n\n // Handle focus events, so we can apply highlighted\n // style to the focused option\n let { isFocused, focusProps } = useFocus();\n\n // Filter out service props - all remaining props can be passed to Item\n const filteredItemProps = filterSelectionItemProps(\n filterCollectionItemProps(item.props),\n );\n\n const keyboardProps = {\n onKeyDown(event: KeyboardEvent<HTMLLIElement>) {\n // Committing an option refocuses the trigger during keydown. Cancel\n // Enter's native activation there, preserving Control+Enter context\n // menus and activation of links or controls inside the option.\n if (\n event.key === 'Enter' &&\n !event.ctrlKey &&\n event.target === event.currentTarget\n ) {\n event.preventDefault();\n }\n },\n };\n\n return (\n <OptionItem\n {...mergeProps(\n ariaOptionProps,\n {\n onPointerDown: originPress.onPointerDown,\n onPointerUp: originPress.wrapPointerUp(onPointerUp),\n },\n focusProps,\n filteredItemProps,\n keyboardProps,\n // React Aria no longer marks a disabled option, which the list keeps\n // focusable. Only the attribute: controls inside the option, such as a\n // form or an action, keep working as they did.\n { 'aria-disabled': isDisabled || undefined },\n )}\n ref={ref}\n mods={{\n listboxitem: true,\n selected: isSelected,\n focused: shouldUseVirtualFocus ? isVirtualFocused : isFocused,\n disabled: isDisabled,\n pressed: isPressed,\n }}\n data-size={size}\n styles={mergeStyleLayers(\n styles as Styles,\n filteredItemProps.styles as Styles,\n )}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n defaultTooltipPlacement=\"right\"\n >\n {item.rendered}\n </OptionItem>\n );\n}\n\ninterface SelectSectionProps<T> {\n item: any; // react-stately Node<T>\n state: any; // TreeState<T>\n optionStyles?: Styles;\n headingStyles?: Styles;\n sectionStyles?: Styles;\n shouldUseVirtualFocus?: boolean;\n size?: string;\n}\n\nfunction SelectSection<T>(props: SelectSectionProps<T>) {\n const {\n item,\n state,\n optionStyles,\n headingStyles,\n sectionStyles,\n shouldUseVirtualFocus,\n size,\n } = props;\n\n const heading = item.rendered;\n\n const { itemProps, headingProps, groupProps } = useListBoxSection({\n heading,\n 'aria-label': item['aria-label'],\n });\n\n return (\n <ListSectionWrapper {...itemProps} styles={sectionStyles}>\n {heading && (\n <ListSectionHeading\n {...headingProps}\n size={size}\n styles={mergeStyleLayers(headingStyles, {\n '$inline-compensation': '0px',\n })}\n >\n {heading}\n </ListSectionHeading>\n )}\n <ListBoxElement {...groupProps} mods={{ section: true }}>\n {[...item.childNodes]\n .filter((node: any) => state.collection.getItem(node.key))\n .map((node: any) => (\n <Option\n key={node.key}\n item={node}\n state={state}\n styles={optionStyles}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n size={size}\n />\n ))}\n </ListBoxElement>\n </ListSectionWrapper>\n );\n}\n\n// `forwardRef` can't carry the item generic, so the cast restores it, as in\n// ComboBox and Picker.\nconst _Select = forwardRef(\n Select as ForwardRefRenderFunction<HTMLDivElement, any>,\n) as unknown as <T>(\n props: CubeSelectProps<T> & { ref?: ForwardedRef<HTMLDivElement> },\n) => ReactElement;\n\n(_Select as any).cubeInputType = 'Select';\n\ntype SectionComponent = typeof BaseSection;\n\nconst SelectSectionComponent = Object.assign(BaseSection, {\n displayName: 'Section',\n}) as SectionComponent;\n\nconst __Select = Object.assign(\n _Select as typeof _Select & {\n Item: typeof CollectionItem;\n Section: typeof SelectSectionComponent;\n Action: typeof ItemAction;\n },\n {\n Item: CollectionItem,\n Section: SelectSectionComponent,\n Action: ItemAction,\n },\n);\n\n(__Select as any).displayName = 'Select';\n\nexport { __Select as Select };\n\nexport type { AriaSelectProps };\nexport { useSelectState };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FA,MAAMsF,uBAAuBlF,MAAM;CACjCmF,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,UAAU;EACVC,QAAQ;EACRC,MAAM;GACJ,IAAI;GACJC,UAAU;GACV,iBAAiB;EACnB;EACAC,OAAO;GACL,IAAI;GACJC,SAAS;GACTC,SAAS;GACTH,UAAU;EACZ;CACF;AACF,CAAC;AAED,MAAaI,iBAAiB7F,MAAM;CAClCmF,IAAI;CACJW,IAAI;CACJV,QAAQ;EAEN,aAAa;GAAE,IAAI;GAAaW,SAAS;EAAM;EAC/CV,SAAS;EAETW,KAAK;GAAE,IAAI;GAAaC,UAAU;EAAY;EAC9CC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,WAAW;EAIXC,UAAU;GAAE,IAAI;GAAQP,SAAS;EAAM;EAEvCT,UAAU;EACViB,WAAW;EAMXC,SAAS;CACX;AACF,CAAC;AAID,MAAMC,iBAAyB,EAC7BC,QAAQ;CACN,IAAI;CACJ,gDAAgD;AAClD,EACF;AAGA,MAAMC,aAAa3G,MAAM8D,OAAM;CAC7BgC,IAAI;CACJc,qBAAqB;CACrBzB,IAAI;CACJC,QAAQ,EACN,wBAAwB,MAC1B;AACF,CAAC;AAED,MAAMyB,uBAAuB7G,MAAM;CACjCmF,IAAI;CACJC,QAAQ;EACNE,UAAU;EACVwB,QAAQ;EASRC,OAAO;GACL,IAAI;GACJC,MAAM;EACR;EAGA3B,SAAS;EACTa,MAAM;CACR;AACF,CAAC;AAED,MAAMe,iBAAiBjH,MAAM;CAC3BmF,IAAI;CACJC,QAAQ;EACN2B,OAAO;EACP1B,SAAS;EACT6B,UAAU;EACVC,QAAQ;EACRb,UAAU;EACVd,MAAM;EACND,QAAQ;EAC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G,UAAAA;EADY,CAAA;EAaEV,EAAA,MAAA6G;EAAA7G,EAAA,MAAAU;EAAAV,EAAA,MAAAe;CAAA,OAAAA,KAAAf,EAAA;CAAA,IAAAqB;CAAA,IAAArB,EAAA,QAAA2G,aAAA3G,EAAA,QAAAwG,iBAAAxG,EAAA,QAAAM,MAAAN,EAAA,QAAAe,IAAA;EAzBnBM,KAAA,qBAAC+G,eAAD;GAAmB,GAAKzB;GAAmBH,QAAAA;GAA3C,UAAA,CACGlG,IAWDS,EAZiB;;EA0BEf,EAAA,MAAA2G;EAAA3G,EAAA,MAAAwG;EAAAxG,EAAA,MAAAM;EAAAN,EAAA,MAAAe;EAAAf,EAAA,MAAAqB;CAAA,OAAAA,KAAArB,EAAA;CAAA,OA1BrBqB;AA0BqB;AAMzB,MAAM6F,UAAUvX,WACdiL,MACF;AAIA,QAAiBuM,gBAAgB;AAIjC,MAAME,yBAAyBC,OAAOC,OAAOpW,SAAa,EACxDqW,aAAa,UACf,CAAC;AAED,MAAMC,WAAWH,OAAOC,OACtBL,SAKA;CACE7T,MAAMP;CACN5B,SAASmW;CACTK,QAAQpU;AACV,CACF;AAEA,SAAkBkU,cAAc"}
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { useI18n } from "../../i18n/use-i18n.js";
3
3
  import { Space } from "../Space/Space.js";
4
4
  import { Grid } from "../Grid/Grid.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { SliderGradationElement, SliderGradeElement } from "./elements.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { mergeStyleLayers } from "../../utils/styles.js";
3
3
  import { Slider as __Slider } from "./Slider.js";
4
4
  import { c } from "react/compiler-runtime";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { Gradation } from "./Gradation.js";
3
3
  import { SliderBase as _SliderBase } from "./SliderBase.js";
4
4
  import { SliderThumb } from "./SliderThumb.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { mergeProps } from "../../utils/merge-props.js";
3
3
  import { Gradation } from "./Gradation.js";
4
4
  import { SliderBase as _SliderBase } from "./SliderBase.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { Text as _Text } from "../Text/Text.js";
4
4
  import { pickBaseCustomizationProps } from "../../utils/pick-base-customization-props.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { getValidationMods } from "../../utils/resolve-validation-props.js";
4
4
  import { SliderThumbElement } from "./elements.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { getValidationMods } from "../../utils/resolve-validation-props.js";
3
3
  import { SliderTrackContainerElement } from "./elements.js";
4
4
  import { c } from "react/compiler-runtime";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9e84d51 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef259f7 | Cube Dev Team */
2
2
  import { tasty } from "@tenphi/tasty";
3
3
  //#region src/components/Slider/elements.ts
4
4
  const SliderThumbElement = tasty({