@payfit/unity-components 2.25.4 → 2.25.6

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 (223) hide show
  1. package/dist/esm/components/action-bar/ActionBar.js +4 -3
  2. package/dist/esm/components/action-bar/parts/ActionBarPrefixArea.js +1 -1
  3. package/dist/esm/components/actionable/Actionable.d.ts +1 -1
  4. package/dist/esm/components/actionable/Actionable.js +13 -14
  5. package/dist/esm/components/app-menu/parts/AppMenuHeader.js +1 -1
  6. package/dist/esm/components/autocomplete/Autocomplete.d.ts +1 -1
  7. package/dist/esm/components/autocomplete/Autocomplete.js +5 -5
  8. package/dist/esm/components/autocomplete/parts/AutocompleteClearButton.js +1 -1
  9. package/dist/esm/components/autocomplete/parts/AutocompleteItem.d.ts +1 -1
  10. package/dist/esm/components/autocomplete/parts/AutocompleteItem.js +1 -1
  11. package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.d.ts +1 -1
  12. package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.js +21 -18
  13. package/dist/esm/components/autocomplete/parts/AutocompletePanel.d.ts +1 -1
  14. package/dist/esm/components/autocomplete/parts/AutocompletePanel.js +8 -7
  15. package/dist/esm/components/bottom-sheet/BottomSheet.js +15 -14
  16. package/dist/esm/components/bottom-sheet/parts/BottomSheetDragIndicator.js +1 -1
  17. package/dist/esm/components/bottom-sheet/parts/BottomSheetHeader.js +1 -1
  18. package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +2 -2
  19. package/dist/esm/components/breadcrumbs/Breadcrumbs.js +1 -1
  20. package/dist/esm/components/breadcrumbs/parts/Breadcrumb.d.ts +1 -1
  21. package/dist/esm/components/breadcrumbs/parts/Breadcrumb.js +1 -1
  22. package/dist/esm/components/button/Button.d.ts +1 -1
  23. package/dist/esm/components/button/Button.js +1 -1
  24. package/dist/esm/components/card/Card.js +1 -1
  25. package/dist/esm/components/card/parts/CardTitle.js +1 -1
  26. package/dist/esm/components/carousel/hooks/useCarouselAccessibility.js +1 -1
  27. package/dist/esm/components/checkbox/Checkbox.d.ts +1 -1
  28. package/dist/esm/components/checkbox/Checkbox.js +4 -4
  29. package/dist/esm/components/checkbox/CheckboxStandalone.d.ts +1 -1
  30. package/dist/esm/components/checkbox/CheckboxStandalone.js +4 -4
  31. package/dist/esm/components/checkbox-group/CheckboxGroup.d.ts +1 -1
  32. package/dist/esm/components/checkbox-group/CheckboxGroup.js +1 -1
  33. package/dist/esm/components/client-side-pagination/ClientSidePagination.js +2 -2
  34. package/dist/esm/components/client-side-pagination/parts/PaginationEllipsis.d.ts +1 -1
  35. package/dist/esm/components/client-side-pagination/parts/PaginationEllipsis.js +1 -1
  36. package/dist/esm/components/client-side-pagination/parts/PaginationJumpDialog.d.ts +1 -1
  37. package/dist/esm/components/client-side-pagination/parts/PaginationJumpDialog.js +15 -13
  38. package/dist/esm/components/client-side-pagination/parts/RawPaginationLink.d.ts +1 -1
  39. package/dist/esm/components/client-side-pagination/parts/RawPaginationLink.js +1 -1
  40. package/dist/esm/components/collapsible/Collapsible.d.ts +1 -1
  41. package/dist/esm/components/collapsible/Collapsible.js +1 -1
  42. package/dist/esm/components/collapsible/parts/CollapsibleContent.js +1 -1
  43. package/dist/esm/components/collapsible/parts/CollapsibleTitle.js +11 -9
  44. package/dist/esm/components/data-table/DataTable.js +1 -1
  45. package/dist/esm/components/date-calendar/DateCalendar.d.ts +1 -1
  46. package/dist/esm/components/date-calendar/DateCalendar.js +1 -1
  47. package/dist/esm/components/date-calendar/hooks/useMonthsList.js +1 -1
  48. package/dist/esm/components/date-calendar/hooks/useYearsList.js +1 -1
  49. package/dist/esm/components/date-calendar/parts/DateSegmentSelect.js +1 -1
  50. package/dist/esm/components/date-picker/DatePicker.d.ts +1 -1
  51. package/dist/esm/components/date-picker/DatePicker.js +2 -1
  52. package/dist/esm/components/date-picker/parts/DateInput.d.ts +1 -1
  53. package/dist/esm/components/date-picker/parts/DateInput.js +1 -1
  54. package/dist/esm/components/date-range-calendar/DateRangeCalendar.d.ts +1 -1
  55. package/dist/esm/components/date-range-calendar/DateRangeCalendar.js +4 -3
  56. package/dist/esm/components/date-range-picker/DateRangePicker.d.ts +1 -1
  57. package/dist/esm/components/date-range-picker/DateRangePicker.js +2 -1
  58. package/dist/esm/components/date-range-picker/parts/DateRangeInput.js +1 -1
  59. package/dist/esm/components/definition-tooltip/DefinitionTooltip.js +1 -1
  60. package/dist/esm/components/dialog/Dialog.d.ts +1 -1
  61. package/dist/esm/components/dialog/Dialog.js +12 -11
  62. package/dist/esm/components/dialog/parts/DialogActions/DialogButton.js +1 -1
  63. package/dist/esm/components/dialog/parts/DialogContent.js +5 -4
  64. package/dist/esm/components/dialog/parts/DialogTitle.js +1 -1
  65. package/dist/esm/components/error-state/parts/Collapsible.js +9 -8
  66. package/dist/esm/components/fieldset/Fieldset.js +1 -1
  67. package/dist/esm/components/filter/Filter.controls.d.ts +1 -1
  68. package/dist/esm/components/filter/Filter.js +1 -1
  69. package/dist/esm/components/filter/hooks/useFilterIds.js +1 -1
  70. package/dist/esm/components/filter/parts/FilterPopover.js +11 -9
  71. package/dist/esm/components/filter-toolbar/FilterToolbar.js +11 -10
  72. package/dist/esm/components/filter-toolbar/parts/AddFilter.d.ts +1 -1
  73. package/dist/esm/components/filter-toolbar/parts/AddFilter.js +18 -15
  74. package/dist/esm/components/filter-toolbar/parts/AddFilterItem.d.ts +1 -1
  75. package/dist/esm/components/filter-toolbar/parts/AddFilterItem.js +1 -1
  76. package/dist/esm/components/floating-action-bar/FloatingActionBar.js +1 -1
  77. package/dist/esm/components/form/Form.d.ts +1 -1
  78. package/dist/esm/components/form-field/parts/FormControl.js +1 -1
  79. package/dist/esm/components/form-field/parts/RawFormContextualLink.js +1 -1
  80. package/dist/esm/components/form-field/parts/TanstackRawFormContextualLink.d.ts +1 -1
  81. package/dist/esm/components/form-field/parts/TanstackRawFormContextualLink.js +1 -1
  82. package/dist/esm/components/full-page-loader/FullPageLoader.js +1 -1
  83. package/dist/esm/components/funnel-layout/FunnelLayout.js +1 -1
  84. package/dist/esm/components/funnel-layout/parts/FunnelProgressBar.js +1 -1
  85. package/dist/esm/components/icon-button/CircularIconButton.d.ts +1 -1
  86. package/dist/esm/components/icon-button/CircularIconButton.js +6 -5
  87. package/dist/esm/components/icon-button/IconButton.d.ts +1 -1
  88. package/dist/esm/components/icon-button/IconButton.js +1 -1
  89. package/dist/esm/components/inline-field/parts/InlineFieldEditView.js +15 -14
  90. package/dist/esm/components/inline-field-group/InlineFieldGroup.js +15 -13
  91. package/dist/esm/components/input/Input.d.ts +1 -1
  92. package/dist/esm/components/input/Input.js +1 -1
  93. package/dist/esm/components/label/Label.d.ts +1 -1
  94. package/dist/esm/components/label/Label.js +15 -13
  95. package/dist/esm/components/link/RawLink.d.ts +1 -1
  96. package/dist/esm/components/link/RawLink.js +1 -1
  97. package/dist/esm/components/link-button/RawLinkButton.d.ts +1 -1
  98. package/dist/esm/components/link-button/RawLinkButton.js +1 -1
  99. package/dist/esm/components/list-view/ListView.d.ts +1 -1
  100. package/dist/esm/components/list-view/ListView.js +8 -7
  101. package/dist/esm/components/list-view/parts/ListViewSection.d.ts +1 -1
  102. package/dist/esm/components/list-view/parts/ListViewSection.js +14 -12
  103. package/dist/esm/components/list-view/parts/RawListViewItem.d.ts +1 -1
  104. package/dist/esm/components/list-view/parts/RawListViewItem.js +1 -1
  105. package/dist/esm/components/menu/Menu.d.ts +1 -1
  106. package/dist/esm/components/menu/Menu.js +1 -1
  107. package/dist/esm/components/menu/parts/MenuContent.d.ts +1 -1
  108. package/dist/esm/components/menu/parts/MenuContent.js +1 -1
  109. package/dist/esm/components/menu/parts/MenuHeader.js +5 -4
  110. package/dist/esm/components/menu/parts/MenuSeparator.js +1 -1
  111. package/dist/esm/components/menu/parts/MenuTrigger.js +1 -1
  112. package/dist/esm/components/menu/parts/RawMenuItem.d.ts +1 -1
  113. package/dist/esm/components/menu/parts/RawMenuItem.js +1 -1
  114. package/dist/esm/components/multi-select/hooks/use-combobox-filter.js +1 -1
  115. package/dist/esm/components/multi-select/parts/MultiSelectButton.js +1 -1
  116. package/dist/esm/components/nav/parts/NavGroup.js +1 -1
  117. package/dist/esm/components/nav/parts/RawNavItem.d.ts +1 -1
  118. package/dist/esm/components/nav/parts/RawNavItem.js +3 -2
  119. package/dist/esm/components/navigation-card/NavigationCard.js +9 -8
  120. package/dist/esm/components/navigation-card/NavigationCard.types.d.ts +2 -1
  121. package/dist/esm/components/navigation-card/parts/NavigationCardGroup.js +1 -1
  122. package/dist/esm/components/number-input/NumberInput.d.ts +1 -1
  123. package/dist/esm/components/number-input/NumberInput.js +6 -4
  124. package/dist/esm/components/pagination/Pagination.js +2 -2
  125. package/dist/esm/components/pagination/parts/PaginationEllipsis.d.ts +1 -1
  126. package/dist/esm/components/pagination/parts/PaginationEllipsis.js +1 -1
  127. package/dist/esm/components/pagination/parts/RawPaginationLink.d.ts +1 -1
  128. package/dist/esm/components/pagination/parts/RawPaginationLink.js +1 -1
  129. package/dist/esm/components/pagination/parts/RawPaginationNext.d.ts +1 -1
  130. package/dist/esm/components/pagination/parts/RawPaginationNext.js +1 -1
  131. package/dist/esm/components/pagination/parts/RawPaginationPrevious.d.ts +1 -1
  132. package/dist/esm/components/pagination/parts/RawPaginationPrevious.js +1 -1
  133. package/dist/esm/components/password-field/parts/PasswordInput.d.ts +1 -1
  134. package/dist/esm/components/password-field/parts/PasswordInput.js +1 -1
  135. package/dist/esm/components/phone-number/PhoneNumberInput.d.ts +1 -1
  136. package/dist/esm/components/phone-number/PhoneNumberInput.js +17 -10
  137. package/dist/esm/components/phone-number/parts/PhoneNumberItem.d.ts +1 -1
  138. package/dist/esm/components/phone-number/parts/PhoneNumberItem.js +1 -1
  139. package/dist/esm/components/popover/Popover.d.ts +2 -1
  140. package/dist/esm/components/popover/Popover.js +9 -8
  141. package/dist/esm/components/popover/parts/PopoverHeader.d.ts +1 -1
  142. package/dist/esm/components/popover/parts/PopoverHeader.js +2 -1
  143. package/dist/esm/components/progress-bar/ProgressBar.js +1 -1
  144. package/dist/esm/components/promo-dialog/PromoDialog.js +8 -7
  145. package/dist/esm/components/promo-dialog/parts/PromoDialogTitle.js +1 -1
  146. package/dist/esm/components/radio-button-group/RadioButtonGroup.d.ts +1 -1
  147. package/dist/esm/components/radio-button-group/RadioButtonGroup.js +1 -1
  148. package/dist/esm/components/radio-button-group/parts/RadioButton.d.ts +1 -1
  149. package/dist/esm/components/radio-button-group/parts/RadioButton.js +1 -1
  150. package/dist/esm/components/search/Search.d.ts +1 -1
  151. package/dist/esm/components/search/Search.js +5 -3
  152. package/dist/esm/components/segmented-button-group/SegmentedButtonGroup.d.ts +1 -1
  153. package/dist/esm/components/segmented-button-group/SegmentedButtonGroup.js +2 -2
  154. package/dist/esm/components/segmented-button-group/SegmentedButtonGroups.context.d.ts +1 -1
  155. package/dist/esm/components/segmented-button-group/parts/ToggleButton.d.ts +1 -1
  156. package/dist/esm/components/segmented-button-group/parts/ToggleButton.js +24 -21
  157. package/dist/esm/components/select/Select.d.ts +1 -1
  158. package/dist/esm/components/select/Select.js +18 -16
  159. package/dist/esm/components/select/parts/SearchInput.js +8 -7
  160. package/dist/esm/components/select/parts/SelectButton.js +2 -1
  161. package/dist/esm/components/select/parts/SelectOption.d.ts +1 -1
  162. package/dist/esm/components/select/parts/SelectOption.js +1 -1
  163. package/dist/esm/components/select/parts/SelectOptionGroup.d.ts +1 -1
  164. package/dist/esm/components/select/parts/SelectOptionGroup.js +17 -14
  165. package/dist/esm/components/select-list/SelectList.d.ts +1 -1
  166. package/dist/esm/components/select-list/SelectList.js +12 -9
  167. package/dist/esm/components/select-list/SelectList.types.d.ts +1 -1
  168. package/dist/esm/components/select-list/constants.d.ts +1 -1
  169. package/dist/esm/components/select-list/constants.js +1 -1
  170. package/dist/esm/components/select-list/helpers.d.ts +1 -1
  171. package/dist/esm/components/select-list/hooks/useControlledSelection.d.ts +2 -1
  172. package/dist/esm/components/select-list/hooks/useSelectedFirstSorting.d.ts +1 -1
  173. package/dist/esm/components/select-list/parts/SelectListOptGroup.d.ts +1 -1
  174. package/dist/esm/components/select-list/parts/SelectListOptGroup.js +18 -15
  175. package/dist/esm/components/select-list/parts/SelectListOption.d.ts +1 -1
  176. package/dist/esm/components/select-list/parts/SelectListOption.js +1 -1
  177. package/dist/esm/components/select-list/parts/SelectListSearchInput.js +11 -10
  178. package/dist/esm/components/select-list/parts/SelectedItemsSection.d.ts +2 -1
  179. package/dist/esm/components/select-list/parts/SelectedItemsSection.js +1 -1
  180. package/dist/esm/components/selectable-button-group/SelectableButtonGroup.context.d.ts +1 -1
  181. package/dist/esm/components/selectable-button-group/SelectableButtonGroup.d.ts +1 -1
  182. package/dist/esm/components/selectable-button-group/SelectableButtonGroup.js +2 -2
  183. package/dist/esm/components/selectable-button-group/parts/SelectableButton.d.ts +2 -2
  184. package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +1 -1
  185. package/dist/esm/components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.d.ts +1 -1
  186. package/dist/esm/components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.js +1 -1
  187. package/dist/esm/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.d.ts +1 -1
  188. package/dist/esm/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.js +4 -4
  189. package/dist/esm/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.d.ts +1 -1
  190. package/dist/esm/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.js +1 -1
  191. package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.d.ts +1 -1
  192. package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.js +1 -1
  193. package/dist/esm/components/side-panel/SidePanel.js +6 -5
  194. package/dist/esm/components/side-panel/parts/SidePanelDragIndicator.js +1 -1
  195. package/dist/esm/components/side-panel/parts/SidePanelHeader.js +1 -1
  196. package/dist/esm/components/skip-links/SkipLinks.js +1 -1
  197. package/dist/esm/components/table/parts/TablePagination.js +1 -1
  198. package/dist/esm/components/tabs/Tabs.d.ts +1 -1
  199. package/dist/esm/components/tabs/Tabs.js +1 -1
  200. package/dist/esm/components/tabs/parts/NavigationButton.d.ts +1 -1
  201. package/dist/esm/components/tabs/parts/NavigationButton.js +1 -1
  202. package/dist/esm/components/tabs/parts/RawTab.d.ts +1 -1
  203. package/dist/esm/components/tabs/parts/RawTab.js +1 -1
  204. package/dist/esm/components/tabs/parts/TabList.js +1 -1
  205. package/dist/esm/components/tabs/parts/TabPanel.d.ts +1 -1
  206. package/dist/esm/components/tabs/parts/TabPanel.js +1 -1
  207. package/dist/esm/components/task-menu/TaskMenu.context.d.ts +2 -2
  208. package/dist/esm/components/task-menu/TaskMenu.context.js +16 -15
  209. package/dist/esm/components/task-menu/parts/Content.js +17 -15
  210. package/dist/esm/components/task-menu/parts/RawSubTask.js +16 -15
  211. package/dist/esm/components/task-menu/parts/RawTask.d.ts +1 -1
  212. package/dist/esm/components/task-menu/parts/RawTask.js +22 -21
  213. package/dist/esm/components/task-menu/parts/TaskGroup.js +4 -4
  214. package/dist/esm/components/text-area/TextArea.d.ts +1 -1
  215. package/dist/esm/components/text-area/TextArea.js +1 -1
  216. package/dist/esm/components/timeline/Timeline.js +1 -1
  217. package/dist/esm/components/toggle-switch/ToggleSwitch.d.ts +1 -1
  218. package/dist/esm/components/toggle-switch/ToggleSwitch.js +1 -1
  219. package/dist/esm/components/tooltip/Tooltip.js +8 -7
  220. package/dist/esm/hooks/use-async-list.d.ts +1 -1
  221. package/dist/esm/index.js +2 -2
  222. package/dist/esm/integrations/tanstack-router/components/tabs/parts/TabPanel.js +1 -1
  223. package/package.json +7 -7
@@ -1,8 +1,9 @@
1
1
  import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
2
  import { useRef as P, Children as m, isValidElement as l, useLayoutEffect as b } from "react";
3
3
  import { uyTv as N } from "@payfit/unity-themes";
4
- import { useId as C } from "react-aria";
5
- import { ModalOverlay as A, Modal as E, DialogContext as I, Dialog as j } from "react-aria-components";
4
+ import { DialogContext as C, Dialog as A } from "react-aria-components/Dialog";
5
+ import { ModalOverlay as E, Modal as I } from "react-aria-components/Modal";
6
+ import { useId as j } from "react-aria/useId";
6
7
  import { useIntl as z } from "react-intl";
7
8
  import { useHasScroll as M } from "../../hooks/use-has-scroll.js";
8
9
  import { DialogButton as H } from "../dialog/parts/DialogActions/DialogButton.js";
@@ -101,7 +102,7 @@ function q({
101
102
  isDismissable: p = !0,
102
103
  ...y
103
104
  }) {
104
- const f = z(), d = C(), g = P(null), { hasAnyScroll: i } = M(g, {
105
+ const f = z(), d = j(), g = P(null), { hasAnyScroll: i } = M(g, {
105
106
  strategy: "both",
106
107
  watchMutations: !0
107
108
  }), s = m.toArray(r), u = s.find(
@@ -125,20 +126,20 @@ function q({
125
126
  }, [r, y]);
126
127
  const a = k();
127
128
  return /* @__PURE__ */ t(
128
- A,
129
+ E,
129
130
  {
130
131
  isDismissable: p,
131
132
  isOpen: n,
132
133
  onOpenChange: e,
133
134
  className: a.overlay(),
134
135
  children: /* @__PURE__ */ t(
135
- E,
136
+ I,
136
137
  {
137
138
  className: a.wrapper(),
138
139
  "data-unity-promo-dialog": !0,
139
140
  "data-dd-privacy": "allow",
140
- children: /* @__PURE__ */ t(I.Provider, { value: { "aria-describedby": d }, children: /* @__PURE__ */ c(
141
- j,
141
+ children: /* @__PURE__ */ t(C.Provider, { value: { "aria-describedby": d }, children: /* @__PURE__ */ c(
142
+ A,
142
143
  {
143
144
  role: B(r) ? "alertdialog" : "dialog",
144
145
  "aria-modal": "true",
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { uyTv as a } from "@payfit/unity-themes";
3
- import { Heading as m } from "react-aria-components";
3
+ import { Heading as m } from "react-aria-components/Heading";
4
4
  const r = a({
5
5
  base: ["uy:typography-h2 uy:md:typography-h1", "uy:mb-150 uy:md:mb-250"]
6
6
  }), i = ({ children: o }) => /* @__PURE__ */ t(
@@ -1,4 +1,4 @@
1
- import { RadioGroupProps } from 'react-aria-components';
1
+ import { RadioGroupProps } from 'react-aria-components/RadioGroup';
2
2
  /**
3
3
  * Props for the RadioButtonGroup component.
4
4
  * Excludes className and style props as they are handled internally.
@@ -1,6 +1,6 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
- import { RadioGroup as d } from "react-aria-components";
3
+ import { RadioGroup as d } from "react-aria-components/RadioGroup";
4
4
  const l = i(
5
5
  ({ children: o, isReadOnly: r, isDisabled: t, value: a, onChange: p, onBlur: u, ...m }, e) => /* @__PURE__ */ f(
6
6
  d,
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from '@payfit/unity-themes';
2
2
  import { ReactNode } from 'react';
3
- import { RadioProps } from 'react-aria-components';
3
+ import { RadioProps } from 'react-aria-components/RadioGroup';
4
4
  export declare const radioButton: import('tailwind-variants').TVReturnType<{
5
5
  [key: string]: {
6
6
  [key: string]: import('tailwind-merge').ClassNameValue | {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as u, jsx as o, Fragment as x } from "react/jsx-runtime";
2
2
  import { forwardRef as g, useContext as v, useMemo as l } from "react";
3
3
  import { uyTv as R } from "@payfit/unity-themes";
4
- import { RadioGroupStateContext as S, Radio as h } from "react-aria-components";
4
+ import { RadioGroupStateContext as S, Radio as h } from "react-aria-components/RadioGroup";
5
5
  import { Flex as w } from "../../flex/Flex.js";
6
6
  import { Text as N } from "../../text/Text.js";
7
7
  import B from "./radio-input-selected.svg.js";
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from '@payfit/unity-themes';
2
2
  import { ReactNode } from 'react';
3
- import { SearchFieldProps } from 'react-aria-components';
3
+ import { SearchFieldProps } from 'react-aria-components/SearchField';
4
4
  export declare const search: import('tailwind-variants').TVReturnType<{
5
5
  isReadOnly: {
6
6
  true: {
@@ -1,7 +1,9 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as w } from "react";
3
3
  import { uyTv as M } from "@payfit/unity-themes";
4
- import { SearchField as N, Input as S, FieldError as I } from "react-aria-components";
4
+ import { FieldError as N } from "react-aria-components/FieldError";
5
+ import { Input as S } from "react-aria-components/Input";
6
+ import { SearchField as I } from "react-aria-components/SearchField";
5
7
  import { useIntl as k } from "react-intl";
6
8
  import { CircularIconButton as C } from "../icon-button/CircularIconButton.js";
7
9
  import { Icon as n } from "../icon/Icon.js";
@@ -85,7 +87,7 @@ const B = M({
85
87
  isReadOnly: u
86
88
  }), o = k();
87
89
  return /* @__PURE__ */ i(
88
- N,
90
+ I,
89
91
  {
90
92
  "aria-label": c,
91
93
  className: "uy:group",
@@ -151,7 +153,7 @@ const B = M({
151
153
  )
152
154
  ] })
153
155
  ] }),
154
- /* @__PURE__ */ e(I, { className: v(), children: s })
156
+ /* @__PURE__ */ e(N, { className: v(), children: s })
155
157
  ]
156
158
  }
157
159
  );
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { RadioGroupProps } from 'react-aria-components';
2
+ import { RadioGroupProps } from 'react-aria-components/RadioGroup';
3
3
  export interface BasedSegmentedButtonGroupProps extends Omit<RadioGroupProps, 'children' | 'style' | 'className' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'orientation' | 'validationBehavior' | 'isRequired' | 'validate' | 'defaultValue'> {
4
4
  /**
5
5
  * The content of the `SegmentedButtonGroup`. Should contain `ToggleButton` components as children.
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { useRadioGroup as n } from "react-aria";
3
- import { useRadioGroupState as i } from "react-stately";
2
+ import { useRadioGroup as n } from "react-aria/useRadioGroup";
3
+ import { useRadioGroupState as i } from "react-stately/useRadioGroupState";
4
4
  import { SegmentedButtonGroupProvider as a } from "./SegmentedButtonGroups.context.js";
5
5
  const d = (o) => {
6
6
  const { children: e } = o, t = i(o), { radioGroupProps: u } = n(
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { RadioGroupState } from 'react-stately';
2
+ import { RadioGroupState } from 'react-stately/useRadioGroupState';
3
3
  interface SegmentedButtonGroupContextValue {
4
4
  state: RadioGroupState;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { UnityIcon } from '@payfit/unity-icons';
2
- import { AriaRadioProps } from 'react-aria';
2
+ import { AriaRadioProps } from 'react-aria/useRadioGroup';
3
3
  import { IconName } from '../../../types/utils.js';
4
4
  export interface ToggleButtonProps extends AriaRadioProps {
5
5
  /**
@@ -1,7 +1,10 @@
1
- import { jsxs as c, jsx as t, Fragment as b } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as s, Fragment as b } from "react/jsx-runtime";
2
2
  import { forwardRef as h, useContext as x, useRef as v } from "react";
3
3
  import { uyTv as w } from "@payfit/unity-themes";
4
- import { useRadio as P, useFocusRing as L, VisuallyHidden as I, mergeProps as N } from "react-aria";
4
+ import { mergeProps as P } from "react-aria/mergeProps";
5
+ import { useFocusRing as L } from "react-aria/useFocusRing";
6
+ import { useRadio as I } from "react-aria/useRadioGroup";
7
+ import { VisuallyHidden as N } from "react-aria/VisuallyHidden";
5
8
  import { useIntl as V } from "react-intl";
6
9
  import { Icon as F } from "../../icon/Icon.js";
7
10
  import { Spinner as R } from "../../spinner/Spinner.js";
@@ -70,15 +73,15 @@ const B = w({
70
73
  hasPrefixIcon: !1
71
74
  }
72
75
  }), C = ({
73
- intl: r,
74
- children: n,
75
- isLoading: o,
76
+ intl: t,
77
+ children: a,
78
+ isLoading: n,
76
79
  prefixIcon: e,
77
- isSelected: s
78
- }) => o ? /* @__PURE__ */ t(
80
+ isSelected: r
81
+ }) => n ? /* @__PURE__ */ s(
79
82
  R,
80
83
  {
81
- label: r.formatMessage({
84
+ label: t.formatMessage({
82
85
  id: "unity:component:common:loading:label",
83
86
  defaultMessage: "Loading..."
84
87
  }),
@@ -86,33 +89,33 @@ const B = w({
86
89
  size: "small"
87
90
  }
88
91
  ) : /* @__PURE__ */ c(b, { children: [
89
- e ? /* @__PURE__ */ t(
92
+ e ? /* @__PURE__ */ s(
90
93
  F,
91
94
  {
92
- src: s ? `${e}Filled` : `${e}Outlined`,
93
- color: s ? "content.neutral" : "content.neutral.low",
95
+ src: r ? `${e}Filled` : `${e}Outlined`,
96
+ color: r ? "content.neutral" : "content.neutral.low",
94
97
  role: "presentation"
95
98
  }
96
99
  ) : null,
97
- n
100
+ a
98
101
  ] }), T = h(
99
- (r, n) => {
100
- const { children: o, value: e, prefixIcon: s, isLoading: a } = r, { state: u } = x(S), i = v(null), { inputProps: d } = P(r, u, i), { focusProps: p, isFocusVisible: f } = L(), y = V(), l = u.selectedValue === e, { base: g, wrapper: m } = B({
102
+ (t, a) => {
103
+ const { children: n, value: e, prefixIcon: r, isLoading: o } = t, { state: u } = x(S), i = v(null), { inputProps: d } = I(t, u, i), { focusProps: p, isFocusVisible: f } = L(), y = V(), l = u.selectedValue === e, { base: m, wrapper: g } = B({
101
104
  isSelected: l,
102
- hasPrefixIcon: !!s,
103
- isLoading: a,
105
+ hasPrefixIcon: !!r,
106
+ isLoading: o,
104
107
  isFocusVisible: f
105
108
  });
106
- return /* @__PURE__ */ c("label", { ref: n, className: g(), "aria-disabled": a, children: [
107
- /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(
109
+ return /* @__PURE__ */ c("label", { ref: a, className: m(), "aria-disabled": o, children: [
110
+ /* @__PURE__ */ s(N, { children: /* @__PURE__ */ s(
108
111
  "input",
109
112
  {
110
- ...N(d, p),
113
+ ...P(d, p),
111
114
  ref: i,
112
- disabled: a
115
+ disabled: o
113
116
  }
114
117
  ) }),
115
- /* @__PURE__ */ t("span", { className: m(), children: C({ intl: y, children: o, isLoading: a, isSelected: l, prefixIcon: s }) })
118
+ /* @__PURE__ */ s("span", { className: g(), children: C({ intl: y, children: n, isLoading: o, isSelected: l, prefixIcon: r }) })
116
119
  ] });
117
120
  }
118
121
  );
@@ -1,6 +1,6 @@
1
1
  import { Node } from '@react-types/shared';
2
2
  import { ForwardedRef, JSX, ReactNode } from 'react';
3
- import { PopoverProps as AriaPopoverProps, SelectProps as AriaSelectProps } from 'react-aria-components';
3
+ import { PopoverProps as AriaPopoverProps, SelectProps as AriaSelectProps } from 'react-aria-components/Select';
4
4
  export interface SelectProps<T extends object> extends Omit<AriaSelectProps<T>, 'children' | 'label' | 'style' | 'className' | 'value' | 'defaultValue' | 'onChange' | 'selectionMode'> {
5
5
  /** In static mode, contains <SelectOption /> and <SelectOptionGroup /> components, in dynamic mode, contains a function to render items passed to the component*/
6
6
  children: ReactNode | ((item: T) => ReactNode);
@@ -1,7 +1,9 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as C, useState as F, useMemo as I } from "react";
3
3
  import { uyTv as A } from "@payfit/unity-themes";
4
- import { useFilter as T, Select as U, Popover as V, Autocomplete as $, Virtualizer as f, ListLayout as y, ListBox as m } from "react-aria-components";
4
+ import { useFilter as T, Autocomplete as U } from "react-aria-components/Autocomplete";
5
+ import { Select as V, Popover as $, ListBox as m } from "react-aria-components/Select";
6
+ import { Virtualizer as f, ListLayout as y } from "react-aria-components/Virtualizer";
5
7
  import { useIntl as k } from "react-intl";
6
8
  import { SearchInput as q } from "./parts/SearchInput.js";
7
9
  import { SelectButton as G } from "./parts/SelectButton.js";
@@ -25,7 +27,7 @@ const H = A({
25
27
  onBlur: v,
26
28
  placement: x,
27
29
  searchInputAriaLabel: g,
28
- renderEmptyState: o,
30
+ renderEmptyState: e,
29
31
  renderValue: S,
30
32
  ...w
31
33
  }, N) => {
@@ -33,11 +35,11 @@ const H = A({
33
35
  value: a,
34
36
  onChange: u
35
37
  } : { defaultValue: b }, p = I(() => {
36
- if (o !== void 0)
37
- return typeof o == "function" ? o : () => o;
38
- }, [o]);
38
+ if (e !== void 0)
39
+ return typeof e == "function" ? e : () => e;
40
+ }, [e]);
39
41
  return /* @__PURE__ */ d(
40
- U,
42
+ V,
41
43
  {
42
44
  onOpenChange: M,
43
45
  ...w,
@@ -49,7 +51,7 @@ const H = A({
49
51
  onBlur: v,
50
52
  ...B,
51
53
  children: [
52
- /* @__PURE__ */ e(
54
+ /* @__PURE__ */ o(
53
55
  G,
54
56
  {
55
57
  isDisabled: l,
@@ -59,15 +61,15 @@ const H = A({
59
61
  renderValue: S
60
62
  }
61
63
  ),
62
- /* @__PURE__ */ e(
63
- V,
64
+ /* @__PURE__ */ o(
65
+ $,
64
66
  {
65
67
  offset: 1,
66
68
  containerPadding: 8,
67
69
  className: z(),
68
70
  placement: x,
69
- children: h ? /* @__PURE__ */ d($, { filter: P, children: [
70
- /* @__PURE__ */ e(
71
+ children: h ? /* @__PURE__ */ d(U, { filter: P, children: [
72
+ /* @__PURE__ */ o(
71
73
  q,
72
74
  {
73
75
  "aria-label": g ?? O.formatMessage({
@@ -76,14 +78,14 @@ const H = A({
76
78
  })
77
79
  }
78
80
  ),
79
- /* @__PURE__ */ e(
81
+ /* @__PURE__ */ o(
80
82
  f,
81
83
  {
82
84
  layout: y,
83
85
  layoutOptions: {
84
86
  padding: 8
85
87
  },
86
- children: /* @__PURE__ */ e(
88
+ children: /* @__PURE__ */ o(
87
89
  m,
88
90
  {
89
91
  items: t,
@@ -94,14 +96,14 @@ const H = A({
94
96
  )
95
97
  }
96
98
  )
97
- ] }) : /* @__PURE__ */ e(
99
+ ] }) : /* @__PURE__ */ o(
98
100
  f,
99
101
  {
100
102
  layout: y,
101
103
  layoutOptions: {
102
104
  padding: 8
103
105
  },
104
- children: /* @__PURE__ */ e(
106
+ children: /* @__PURE__ */ o(
105
107
  m,
106
108
  {
107
109
  items: t,
@@ -1,23 +1,24 @@
1
1
  import { jsxs as e, Fragment as l, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { uyTv as m } from "@payfit/unity-themes";
4
- import { SearchField as y, Input as d } from "react-aria-components";
2
+ import { forwardRef as m } from "react";
3
+ import { uyTv as c } from "@payfit/unity-themes";
4
+ import { Input as y } from "react-aria-components/Input";
5
+ import { SearchField as d } from "react-aria-components/SearchField";
5
6
  import { useIntl as p } from "react-intl";
6
7
  import { CircularIconButton as f } from "../../icon-button/CircularIconButton.js";
7
8
  import { Icon as b } from "../../icon/Icon.js";
8
- const h = m({
9
+ const h = c({
9
10
  slots: {
10
11
  base: "uy:flex uy:gap-100 uy:transition-colors uy:py-125 uy:sm:py-100 uy:px-150 uy:rounded-100 uy:sm:rounded-75 uy:bg-surface-form-high-enabled uy:text-content-form-active uy:mt-100 uy:mb-100 uy:ml-100 uy:mr-100 uy:typography-body uy:focus-within:border uy:focus-within:border-solid uy:focus-within:border-border-form-active",
11
12
  input: "uy:flex-grow uy:outline-none uy:[&::-webkit-search-cancel-button]:hidden uy:min-h-300",
12
13
  button: "uy:text-content-neutral-enabled",
13
14
  separator: "uy:h-[1px] uy:bg-surface-neutral-lowest uy:w-full uy:mt-100"
14
15
  }
15
- }), g = c(
16
+ }), g = m(
16
17
  ({ "aria-label": r }, o) => {
17
18
  const a = p(), { base: u, input: n, button: i, separator: s } = h();
18
19
  return /* @__PURE__ */ e(l, { children: [
19
20
  /* @__PURE__ */ e(
20
- y,
21
+ d,
21
22
  {
22
23
  className: u(),
23
24
  ref: o,
@@ -32,7 +33,7 @@ const h = m({
32
33
  color: "content.neutral.lowest"
33
34
  }
34
35
  ),
35
- /* @__PURE__ */ t(d, { className: n() }),
36
+ /* @__PURE__ */ t(y, { className: n() }),
36
37
  /* @__PURE__ */ t(
37
38
  f,
38
39
  {
@@ -1,6 +1,7 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import { uyTv as b } from "@payfit/unity-themes";
3
- import { Button as p, SelectValue as n } from "react-aria-components";
3
+ import { Button as p } from "react-aria-components/Button";
4
+ import { SelectValue as n } from "react-aria-components/Select";
4
5
  import { useIntl as v } from "react-intl";
5
6
  import { Icon as u } from "../../icon/Icon.js";
6
7
  const x = b({
@@ -1,5 +1,5 @@
1
1
  import { default as React, ReactNode } from 'react';
2
- import { ListBoxItemProps } from 'react-aria-components';
2
+ import { ListBoxItemProps } from 'react-aria-components/ListBox';
3
3
  /**
4
4
  * SelectOption component for displaying options in a Select dropdown.
5
5
  * @note The `textValue` prop (inherited from ListBoxItemProps) is used for searching when the content
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as y, Fragment as i } from "react/jsx-runtime";
2
2
  import { forwardRef as d } from "react";
3
3
  import { uyTv as f } from "@payfit/unity-themes";
4
- import { ListBoxItem as p } from "react-aria-components";
4
+ import { ListBoxItem as p } from "react-aria-components/ListBox";
5
5
  import { Icon as m } from "../../icon/Icon.js";
6
6
  import { SelectOptionProvider as b } from "./SelectOption.context.js";
7
7
  const x = f({
@@ -1,5 +1,5 @@
1
1
  import { ForwardedRef, JSX } from 'react';
2
- import { ListBoxSectionProps } from 'react-aria-components';
2
+ import { ListBoxSectionProps } from 'react-aria-components/ListBox';
3
3
  export interface SelectOptionGroupProps<T extends object> extends ListBoxSectionProps<T> {
4
4
  label: string;
5
5
  }
@@ -1,24 +1,27 @@
1
- import { jsxs as n, Fragment as a, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import { uyTv as c } from "@payfit/unity-themes";
4
- import { ListBoxSection as y, Header as m, Collection as d, Separator as f } from "react-aria-components";
5
- const h = c({
1
+ import { jsxs as p, Fragment as n, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as l } from "react";
3
+ import { uyTv as m } from "@payfit/unity-themes";
4
+ import { Collection as c } from "react-aria-components/Collection";
5
+ import { Header as y } from "react-aria-components/Header";
6
+ import { ListBoxSection as d } from "react-aria-components/ListBox";
7
+ import { Separator as f } from "react-aria-components/Separator";
8
+ const h = m({
6
9
  slots: {
7
10
  base: "",
8
11
  header: "uy:text-content-neutral-enabled uy:typography-body-strong uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150",
9
12
  separator: "uy:h-[1px] uy:bg-surface-neutral-lowest uy:w-full uy:mb-100 uy:mt-100 uy:last:hidden"
10
13
  }
11
- }), b = ({ label: r, children: o, items: t }, p) => {
12
- const { base: u, header: s, separator: l } = h();
13
- return /* @__PURE__ */ n(a, { children: [
14
- /* @__PURE__ */ n(y, { ref: p, className: u(), id: r, items: t, children: [
15
- /* @__PURE__ */ e(m, { className: s(), children: r }),
16
- t ? /* @__PURE__ */ e(d, { items: t, children: o }) : /* @__PURE__ */ e(a, { children: o })
14
+ }), b = ({ label: e, children: t, items: o }, a) => {
15
+ const { base: u, header: s, separator: i } = h();
16
+ return /* @__PURE__ */ p(n, { children: [
17
+ /* @__PURE__ */ p(d, { ref: a, className: u(), id: e, items: o, children: [
18
+ /* @__PURE__ */ r(y, { className: s(), children: e }),
19
+ o ? /* @__PURE__ */ r(c, { items: o, children: t }) : /* @__PURE__ */ r(n, { children: t })
17
20
  ] }),
18
- /* @__PURE__ */ e(f, { orientation: "horizontal", className: l() })
21
+ /* @__PURE__ */ r(f, { orientation: "horizontal", className: i() })
19
22
  ] });
20
- }, x = i(function(o, t) {
21
- return b(o, t);
23
+ }, x = l(function(t, o) {
24
+ return b(t, o);
22
25
  });
23
26
  x.displayName = "SelectOptionGroup";
24
27
  export {
@@ -1,5 +1,5 @@
1
1
  import { JSX, Ref } from 'react';
2
- import { ListBoxProps as AriaListBoxProps } from 'react-aria-components';
2
+ import { ListBoxProps as AriaListBoxProps } from 'react-aria-components/ListBox';
3
3
  /**
4
4
  * Props for the SelectList component.
5
5
  * @template TType - The type of items in the list
@@ -1,7 +1,10 @@
1
1
  import { jsx as e, jsxs as s, Fragment as E } from "react/jsx-runtime";
2
- import { forwardRef as F, useMemo as y } from "react";
2
+ import { forwardRef as F, useMemo as m } from "react";
3
3
  import { uyTv as R } from "@payfit/unity-themes";
4
- import { useFilter as T, ListBox as H, Collection as M, Autocomplete as O, Separator as _, Virtualizer as m } from "react-aria-components";
4
+ import { useFilter as T, Autocomplete as H } from "react-aria-components/Autocomplete";
5
+ import { ListBox as M, Collection as O } from "react-aria-components/ListBox";
6
+ import { Separator as _ } from "react-aria-components/Separator";
7
+ import { Virtualizer as y } from "react-aria-components/Virtualizer";
5
8
  import { DEFAULT_SEARCH_THRESHOLD as j, VIRTUALIZATION_CONFIG as d } from "./constants.js";
6
9
  import { useControlledSelection as k } from "./hooks/useControlledSelection.js";
7
10
  import { useSelectedFirstSorting as D } from "./hooks/useSelectedFirstSorting.js";
@@ -32,11 +35,11 @@ function K({
32
35
  const { contains: L } = T({ sensitivity: "base" }), { wrapper: x, inputContainer: v, list: w, separator: C, selectedListBox: A } = G(), [i, l] = k(
33
36
  f,
34
37
  h
35
- ), N = y(() => (Array.isArray(r) ? r.length : Array.from(r).length) >= j || a, [r, a]), t = D(
38
+ ), N = m(() => (Array.isArray(r) ? r.length : Array.from(r).length) >= j || a, [r, a]), t = D(
36
39
  r,
37
40
  i,
38
41
  g
39
- ), n = y(() => t.remainingItems ? !t.remainingItems[Symbol.iterator]().next().done : !1, [t.remainingItems]), u = /* @__PURE__ */ e(
42
+ ), n = m(() => t.remainingItems ? !t.remainingItems[Symbol.iterator]().next().done : !1, [t.remainingItems]), u = /* @__PURE__ */ e(
40
43
  U,
41
44
  {
42
45
  items: t.selectedItems,
@@ -49,7 +52,7 @@ function K({
49
52
  "data-is-last": !n
50
53
  }
51
54
  ), c = /* @__PURE__ */ e(
52
- H,
55
+ M,
53
56
  {
54
57
  ...o,
55
58
  className: w({ className: b }),
@@ -57,19 +60,19 @@ function K({
57
60
  selectedKeys: i,
58
61
  onSelectionChange: l,
59
62
  renderEmptyState: V,
60
- children: /* @__PURE__ */ e(M, { items: t.remainingItems, children: p })
63
+ children: /* @__PURE__ */ e(O, { items: t.remainingItems, children: p })
61
64
  }
62
65
  );
63
- return /* @__PURE__ */ e("div", { ref: I, className: x(), children: N ? /* @__PURE__ */ s(O, { filter: L, children: [
66
+ return /* @__PURE__ */ e("div", { ref: I, className: x(), children: N ? /* @__PURE__ */ s(H, { filter: L, children: [
64
67
  /* @__PURE__ */ s("div", { className: v(), "data-dd-privacy": "mask", children: [
65
68
  /* @__PURE__ */ e(z, {}),
66
69
  /* @__PURE__ */ e(_, { className: C() })
67
70
  ] }),
68
71
  u,
69
- n && /* @__PURE__ */ e(m, { ...d, children: c })
72
+ n && /* @__PURE__ */ e(y, { ...d, children: c })
70
73
  ] }) : /* @__PURE__ */ s(E, { children: [
71
74
  u,
72
- n && /* @__PURE__ */ e(m, { ...d, children: c })
75
+ n && /* @__PURE__ */ e(y, { ...d, children: c })
73
76
  ] }) });
74
77
  }
75
78
  const Z = F(K);
@@ -1,4 +1,4 @@
1
- import { Key } from 'react-aria-components';
1
+ import { Key } from 'react-aria-components/Breadcrumbs';
2
2
  /**
3
3
  * Type for items that have an id and can be selected
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ListLayout } from 'react-aria-components';
1
+ import { ListLayout } from 'react-aria-components/Virtualizer';
2
2
  /**
3
3
  * Configuration for list virtualization.
4
4
  * @remarks
@@ -1,5 +1,5 @@
1
1
  import * as t from "@payfit/unity-themes/tokens/common/spacings.json";
2
- import { ListLayout as s } from "react-aria-components";
2
+ import { ListLayout as s } from "react-aria-components/Virtualizer";
3
3
  const a = (o) => parseInt(o.replace("px", "").trim(), 10), i = a(t.spacing[500].$value), n = a(t.spacing[400].$value), p = {
4
4
  layout: s,
5
5
  layoutOptions: {
@@ -1,4 +1,4 @@
1
- import { Key } from 'react-aria-components';
1
+ import { Key } from 'react-aria-components/Breadcrumbs';
2
2
  import { ProcessedDynamicContent, ProcessedFlatDynamicContent, SectionWithChildren, SelectableItem } from './SelectList.types.js';
3
3
  /**
4
4
  * Type guard to check if an object has a children array property,
@@ -1,4 +1,5 @@
1
- import { Key, Selection } from 'react-aria-components';
1
+ import { Key } from 'react-aria-components/Breadcrumbs';
2
+ import { Selection } from 'react-aria-components/GridList';
2
3
  /**
3
4
  * Hook to manage controlled/uncontrolled selection state.
4
5
  * Follows React's controlled component pattern.
@@ -1,4 +1,4 @@
1
- import { Selection } from 'react-aria-components';
1
+ import { Selection } from 'react-aria-components/GridList';
2
2
  interface ProcessedItems<TType> {
3
3
  selectedItems: TType[];
4
4
  remainingItems: Iterable<TType> | undefined;
@@ -1,4 +1,4 @@
1
- import { ListBoxSectionProps } from 'react-aria-components';
1
+ import { ListBoxSectionProps } from 'react-aria-components/ListBox';
2
2
  export declare const selectListOptGroup: import('tailwind-variants').TVReturnType<{
3
3
  [key: string]: {
4
4
  [key: string]: import('tailwind-merge').ClassNameValue | {