@payfit/unity-components 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/esm/components/action-bar/ActionBar.d.ts +153 -0
  2. package/dist/esm/components/action-bar/ActionBar.js +173 -0
  3. package/dist/esm/components/action-bar/parts/ActionBarAction.d.ts +44 -0
  4. package/dist/esm/components/action-bar/parts/ActionBarAction.js +45 -0
  5. package/dist/esm/components/action-bar/parts/ActionBarRoot.d.ts +44 -0
  6. package/dist/esm/components/action-bar/parts/ActionBarRoot.js +46 -0
  7. package/dist/esm/components/actionable/Actionable.js +20 -21
  8. package/dist/esm/components/alert/Alert.d.ts +1 -1
  9. package/dist/esm/components/alert/Alert.js +1 -1
  10. package/dist/esm/components/alert/parts/AlertActions.d.ts +1 -1
  11. package/dist/esm/components/alert/parts/AlertActions.js +1 -1
  12. package/dist/esm/components/alert/parts/AlertContent.d.ts +1 -1
  13. package/dist/esm/components/alert/parts/AlertTitle.d.ts +1 -1
  14. package/dist/esm/components/anchor/Anchor.js +1 -1
  15. package/dist/esm/components/app-layout/AppLayout.js +6 -6
  16. package/dist/esm/components/app-menu/parts/AppMenuFooter.js +30 -30
  17. package/dist/esm/components/app-menu/parts/AppMenuNavContent.js +1 -1
  18. package/dist/esm/components/autocomplete/Autocomplete.d.ts +1 -1
  19. package/dist/esm/components/autocomplete/Autocomplete.js +14 -14
  20. package/dist/esm/components/autocomplete/parts/AutocompleteClearButton.js +5 -5
  21. package/dist/esm/components/autocomplete/parts/AutocompleteItem.d.ts +1 -1
  22. package/dist/esm/components/autocomplete/parts/AutocompleteItem.js +4 -4
  23. package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.d.ts +1 -1
  24. package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.js +12 -12
  25. package/dist/esm/components/autocomplete/parts/AutocompletePanel.d.ts +1 -1
  26. package/dist/esm/components/autocomplete/parts/AutocompletePanel.js +7 -7
  27. package/dist/esm/components/avatar/Avatar.d.ts +1 -1
  28. package/dist/esm/components/avatar/Avatar.js +15 -16
  29. package/dist/esm/components/avatar/Avatar.variants.js +1 -1
  30. package/dist/esm/components/avatar/parts/AvatarFallback.d.ts +1 -1
  31. package/dist/esm/components/avatar/parts/AvatarFallback.js +9 -10
  32. package/dist/esm/components/avatar/parts/AvatarImage.js +12 -12
  33. package/dist/esm/components/avatar/parts/AvatarPair.d.ts +1 -1
  34. package/dist/esm/components/avatar/parts/AvatarPair.js +4 -4
  35. package/dist/esm/components/badge/Badge.d.ts +1 -1
  36. package/dist/esm/components/badge/Badge.js +31 -35
  37. package/dist/esm/components/bottom-sheet/BottomSheet.d.ts +1 -1
  38. package/dist/esm/components/bottom-sheet/BottomSheet.js +14 -14
  39. package/dist/esm/components/bottom-sheet/parts/BottomSheetContent.d.ts +1 -1
  40. package/dist/esm/components/bottom-sheet/parts/BottomSheetContent.js +4 -4
  41. package/dist/esm/components/bottom-sheet/parts/BottomSheetDragIndicator.js +11 -11
  42. package/dist/esm/components/bottom-sheet/parts/BottomSheetFooter.d.ts +1 -1
  43. package/dist/esm/components/bottom-sheet/parts/BottomSheetFooter.js +4 -4
  44. package/dist/esm/components/bottom-sheet/parts/BottomSheetHeader.d.ts +4 -4
  45. package/dist/esm/components/bottom-sheet/parts/BottomSheetHeader.js +6 -6
  46. package/dist/esm/components/breadcrumbs/Breadcrumbs.context.d.ts +1 -1
  47. package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
  48. package/dist/esm/components/breadcrumbs/Breadcrumbs.variant.js +3 -3
  49. package/dist/esm/components/button/Button.js +33 -41
  50. package/dist/esm/components/button/Button.variants.d.ts +1 -1
  51. package/dist/esm/components/button/Button.variants.js +1 -1
  52. package/dist/esm/components/checkbox/Checkbox.js +53 -49
  53. package/dist/esm/components/checkbox/Checkbox.variants.js +1 -1
  54. package/dist/esm/components/checkbox/parts/CheckboxIndicator.js +1 -1
  55. package/dist/esm/components/checkbox-field/CheckboxField.js +39 -34
  56. package/dist/esm/components/checkbox-group/CheckboxGroup.d.ts +1 -1
  57. package/dist/esm/components/checkbox-group/CheckboxGroup.js +12 -12
  58. package/dist/esm/components/collapsible/Collapsible.js +22 -16
  59. package/dist/esm/components/collapsible/parts/CollapsibleContent.js +16 -7
  60. package/dist/esm/components/collapsible/parts/CollapsibleTitle.js +23 -23
  61. package/dist/esm/components/data-table/DataTable.d.ts +48 -17
  62. package/dist/esm/components/data-table/DataTable.js +104 -60
  63. package/dist/esm/components/data-table/mocks/employee-columns.d.ts +4 -0
  64. package/dist/esm/components/data-table/parts/DataTableBulkActions.d.ts +55 -0
  65. package/dist/esm/components/data-table/parts/DataTableBulkActions.js +65 -0
  66. package/dist/esm/components/data-table/parts/DataTableRoot.d.ts +37 -0
  67. package/dist/esm/components/data-table/parts/DataTableRoot.js +13 -0
  68. package/dist/esm/components/date-calendar/DateCalendar.js +8 -8
  69. package/dist/esm/components/date-picker/DatePicker.js +9 -9
  70. package/dist/esm/components/date-picker/parts/DateInput.js +7 -7
  71. package/dist/esm/components/date-picker-field/DatePickerField.js +12 -12
  72. package/dist/esm/components/definition-tooltip/DefinitionTooltip.js +4 -4
  73. package/dist/esm/components/dialog/Dialog.d.ts +1 -1
  74. package/dist/esm/components/dialog/Dialog.js +9 -9
  75. package/dist/esm/components/dialog/parts/DialogActions/DialogButton.d.ts +1 -1
  76. package/dist/esm/components/fieldset/Fieldset.d.ts +1 -1
  77. package/dist/esm/components/fieldset/Fieldset.js +4 -4
  78. package/dist/esm/components/flex/Flex.d.ts +1 -1
  79. package/dist/esm/components/flex/Flex.variants.js +189 -207
  80. package/dist/esm/components/flex/FlexItem.d.ts +1 -1
  81. package/dist/esm/components/form/Form.context.d.ts +1 -4
  82. package/dist/esm/components/form/Form.context.js +11 -13
  83. package/dist/esm/components/form/Form.d.ts +13 -11
  84. package/dist/esm/components/form/Form.js +45 -48
  85. package/dist/esm/components/form-field/FormField.context.d.ts +1 -6
  86. package/dist/esm/components/form-field/FormField.context.js +39 -47
  87. package/dist/esm/components/form-field/FormField.d.ts +0 -2
  88. package/dist/esm/components/form-field/FormField.js +37 -42
  89. package/dist/esm/components/form-field/parts/FormContextualLink.js +17 -17
  90. package/dist/esm/components/form-field/parts/FormControl.js +39 -35
  91. package/dist/esm/components/form-field/parts/FormFeedbackText.js +15 -17
  92. package/dist/esm/components/full-page-loader/FullPageLoader.js +7 -7
  93. package/dist/esm/components/funnel-layout/FunnelLayout.d.ts +2 -2
  94. package/dist/esm/components/funnel-layout/FunnelLayout.js +26 -26
  95. package/dist/esm/components/funnel-layout/parts/FunnelBody.d.ts +2 -2
  96. package/dist/esm/components/funnel-layout/parts/FunnelBody.js +4 -4
  97. package/dist/esm/components/funnel-layout/parts/FunnelPage.d.ts +2 -2
  98. package/dist/esm/components/funnel-layout/parts/FunnelPage.js +10 -10
  99. package/dist/esm/components/funnel-layout/parts/FunnelPageAction.d.ts +1 -1
  100. package/dist/esm/components/funnel-layout/parts/FunnelPageActions.d.ts +2 -2
  101. package/dist/esm/components/funnel-layout/parts/FunnelPageActions.js +13 -13
  102. package/dist/esm/components/funnel-layout/parts/FunnelPageContent.d.ts +2 -2
  103. package/dist/esm/components/funnel-layout/parts/FunnelPageContent.js +1 -1
  104. package/dist/esm/components/funnel-layout/parts/FunnelPageFooter.d.ts +2 -2
  105. package/dist/esm/components/funnel-layout/parts/FunnelPageFooter.js +7 -7
  106. package/dist/esm/components/funnel-layout/parts/FunnelPageHeader.d.ts +2 -2
  107. package/dist/esm/components/funnel-layout/parts/FunnelPageHeader.js +4 -4
  108. package/dist/esm/components/funnel-layout/parts/FunnelProgressBar.d.ts +1 -1
  109. package/dist/esm/components/funnel-layout/parts/FunnelProgressBar.js +4 -4
  110. package/dist/esm/components/funnel-layout/parts/FunnelSidebar.d.ts +2 -2
  111. package/dist/esm/components/funnel-layout/parts/FunnelSidebar.js +7 -7
  112. package/dist/esm/components/funnel-layout/parts/FunnelTopBar.d.ts +2 -2
  113. package/dist/esm/components/funnel-layout/parts/FunnelTopBar.js +9 -9
  114. package/dist/esm/components/grid/Grid.d.ts +1 -1
  115. package/dist/esm/components/grid/Grid.variants.d.ts +1 -1
  116. package/dist/esm/components/grid/Grid.variants.js +3 -3
  117. package/dist/esm/components/grid/GridItem.d.ts +1 -1
  118. package/dist/esm/components/icon/Icon.d.ts +1 -1
  119. package/dist/esm/components/icon/Icon.js +1 -1
  120. package/dist/esm/components/icon-button/CircularIconButton.d.ts +1 -1
  121. package/dist/esm/components/icon-button/CircularIconButton.js +21 -20
  122. package/dist/esm/components/icon-button/IconButton.variants.d.ts +1 -1
  123. package/dist/esm/components/icon-button/IconButton.variants.js +2 -2
  124. package/dist/esm/components/input/Input.js +6 -6
  125. package/dist/esm/components/label/Label.js +13 -13
  126. package/dist/esm/components/link/Link.d.ts +11 -1
  127. package/dist/esm/components/link/Link.js +32 -30
  128. package/dist/esm/components/link/Link.variants.d.ts +141 -30
  129. package/dist/esm/components/link/Link.variants.js +44 -16
  130. package/dist/esm/components/menu/parts/MenuItem.js +8 -8
  131. package/dist/esm/components/multi-select/parts/MultiSelectButton.js +14 -14
  132. package/dist/esm/components/multi-select/parts/MultiSelectOptGroup.js +5 -5
  133. package/dist/esm/components/multi-select/parts/MultiSelectOption.js +3 -3
  134. package/dist/esm/components/multi-select/parts/MultiSelectPopover.js +1 -1
  135. package/dist/esm/components/multi-select-field/MultiSelectField.js +6 -6
  136. package/dist/esm/components/nav/parts/NavGroup.js +28 -29
  137. package/dist/esm/components/nav/parts/NavItem.d.ts +1 -1
  138. package/dist/esm/components/nav/parts/NavItem.js +13 -14
  139. package/dist/esm/components/number-field/NumberField.js +14 -14
  140. package/dist/esm/components/number-input/NumberInput.d.ts +2 -2
  141. package/dist/esm/components/number-input/NumberInput.js +37 -37
  142. package/dist/esm/components/page/Page.d.ts +1 -1
  143. package/dist/esm/components/page/Page.js +5 -5
  144. package/dist/esm/components/page/parts/PageHeader.d.ts +1 -1
  145. package/dist/esm/components/page/parts/PageHeader.js +4 -4
  146. package/dist/esm/components/pagination/Pagination.d.ts +1 -1
  147. package/dist/esm/components/pagination/Pagination.js +16 -16
  148. package/dist/esm/components/pagination/parts/PaginationEllipsis.d.ts +1 -1
  149. package/dist/esm/components/pagination/parts/PaginationEllipsis.js +8 -8
  150. package/dist/esm/components/pagination/parts/PaginationJumpDialog.js +9 -9
  151. package/dist/esm/components/pagination/parts/PaginationLink.d.ts +1 -1
  152. package/dist/esm/components/pagination/parts/PaginationLink.js +6 -6
  153. package/dist/esm/components/payfit-brand/PayFitBrand.js +4 -4
  154. package/dist/esm/components/pill/Pill.d.ts +1 -1
  155. package/dist/esm/components/pill/Pill.js +1 -1
  156. package/dist/esm/components/popover/Popover.js +5 -5
  157. package/dist/esm/components/popover/parts/PopoverHeader.js +7 -7
  158. package/dist/esm/components/progress-bar/ProgressBar.js +11 -11
  159. package/dist/esm/components/radio-button-group/parts/RadioButton.d.ts +1 -1
  160. package/dist/esm/components/radio-button-group/parts/RadioButton.js +5 -5
  161. package/dist/esm/components/search/Search.d.ts +1 -1
  162. package/dist/esm/components/search/Search.js +14 -14
  163. package/dist/esm/components/segmented-button-group/parts/ToggleButton.js +10 -10
  164. package/dist/esm/components/select/Select.js +12 -12
  165. package/dist/esm/components/select/parts/SearchInput.js +7 -7
  166. package/dist/esm/components/select/parts/SelectButton.js +17 -14
  167. package/dist/esm/components/select/parts/SelectOption.js +4 -4
  168. package/dist/esm/components/select/parts/SelectOptionGroup.js +8 -8
  169. package/dist/esm/components/select/parts/SelectOptionHelper.js +1 -1
  170. package/dist/esm/components/select-field/SelectField.d.ts +1 -1
  171. package/dist/esm/components/select-field/SelectField.js +16 -16
  172. package/dist/esm/components/selectable-button-group/SelectableButtonGroup.d.ts +1 -1
  173. package/dist/esm/components/selectable-button-group/SelectableButtonGroup.js +8 -8
  174. package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +10 -10
  175. package/dist/esm/components/selectable-card/internals/Content.js +5 -5
  176. package/dist/esm/components/selectable-card/internals/Description.js +1 -1
  177. package/dist/esm/components/selectable-card/internals/Illustration.js +3 -3
  178. package/dist/esm/components/selectable-card/internals/SelectedIndicator.js +4 -4
  179. package/dist/esm/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.d.ts +1 -1
  180. package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.js +3 -3
  181. package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.d.ts +1 -1
  182. package/dist/esm/components/selectable-card/selectableCard.variant.js +1 -1
  183. package/dist/esm/components/selectable-card-radio-group-field/SelectableCardRadioGroupField.js +22 -22
  184. package/dist/esm/components/side-panel/SidePanel.d.ts +1 -1
  185. package/dist/esm/components/side-panel/SidePanel.js +6 -6
  186. package/dist/esm/components/side-panel/parts/SidePanelContent.d.ts +1 -1
  187. package/dist/esm/components/side-panel/parts/SidePanelContent.js +9 -9
  188. package/dist/esm/components/side-panel/parts/SidePanelDragIndicator.js +11 -11
  189. package/dist/esm/components/side-panel/parts/SidePanelFooter.d.ts +1 -1
  190. package/dist/esm/components/side-panel/parts/SidePanelFooter.js +4 -4
  191. package/dist/esm/components/side-panel/parts/SidePanelHeader.d.ts +4 -4
  192. package/dist/esm/components/side-panel/parts/SidePanelHeader.js +6 -6
  193. package/dist/esm/components/skip-links/SkipLinks.d.ts +79 -0
  194. package/dist/esm/components/skip-links/SkipLinks.js +80 -0
  195. package/dist/esm/components/spinner/Spinner.js +5 -5
  196. package/dist/esm/components/table/Table.js +101 -100
  197. package/dist/esm/components/table/hooks/useTableKeyboardNavigation.d.ts +1 -19
  198. package/dist/esm/components/table/hooks/useTableKeyboardNavigation.js +147 -95
  199. package/dist/esm/components/table/parts/TableBody.js +1 -1
  200. package/dist/esm/components/table/parts/TableCell.d.ts +17 -1
  201. package/dist/esm/components/table/parts/TableCell.js +45 -41
  202. package/dist/esm/components/table/parts/TableColumnHeader.d.ts +2 -1
  203. package/dist/esm/components/table/parts/TableColumnHeader.js +63 -57
  204. package/dist/esm/components/table/parts/TableEmptyState.d.ts +1 -1
  205. package/dist/esm/components/table/parts/TableEmptyState.js +1 -1
  206. package/dist/esm/components/table/parts/TableHeader.d.ts +3 -3
  207. package/dist/esm/components/table/parts/TableHeader.js +28 -26
  208. package/dist/esm/components/table/parts/TablePagination.d.ts +1 -1
  209. package/dist/esm/components/table/parts/TablePagination.js +9 -9
  210. package/dist/esm/components/table/parts/TableRow.d.ts +1 -1
  211. package/dist/esm/components/table/parts/TableRow.js +36 -34
  212. package/dist/esm/components/tabs/Tabs.context.d.ts +1 -1
  213. package/dist/esm/components/tabs/Tabs.d.ts +1 -1
  214. package/dist/esm/components/tabs/Tabs.variant.js +1 -1
  215. package/dist/esm/components/tabs/parts/NavigationButton.js +12 -12
  216. package/dist/esm/components/tabs/parts/Tab.d.ts +3 -2
  217. package/dist/esm/components/tabs/parts/Tab.js +12 -12
  218. package/dist/esm/components/tabs/parts/TabPanel.d.ts +4 -2
  219. package/dist/esm/components/tabs/parts/TabPanel.js +7 -7
  220. package/dist/esm/components/task-menu/TaskMenu.d.ts +1 -1
  221. package/dist/esm/components/task-menu/TaskMenu.js +7 -7
  222. package/dist/esm/components/task-menu/parts/Content.js +6 -6
  223. package/dist/esm/components/task-menu/parts/Header.js +7 -7
  224. package/dist/esm/components/task-menu/parts/SubTask.js +6 -6
  225. package/dist/esm/components/task-menu/parts/Task.d.ts +1 -1
  226. package/dist/esm/components/task-menu/parts/Task.js +12 -12
  227. package/dist/esm/components/task-menu/parts/TaskGroup.js +7 -7
  228. package/dist/esm/components/task-menu/parts/task.variants.js +1 -1
  229. package/dist/esm/components/text/Text.d.ts +1 -1
  230. package/dist/esm/components/text/Text.variants.js +1 -1
  231. package/dist/esm/components/text-area/TextArea.js +6 -6
  232. package/dist/esm/components/text-field/TextField.js +5 -5
  233. package/dist/esm/components/toast/UnityToast.d.ts +1 -1
  234. package/dist/esm/components/toast/UnityToast.js +11 -11
  235. package/dist/esm/components/toggle-switch/ToggleSwitch.d.ts +1 -1
  236. package/dist/esm/components/toggle-switch/ToggleSwitch.js +4 -4
  237. package/dist/esm/components/toggle-switch-field/ToggleSwitchField.js +35 -31
  238. package/dist/esm/components/toggle-switch-group/ToggleSwitchGroup.d.ts +1 -1
  239. package/dist/esm/components/toggle-switch-group/ToggleSwitchGroup.js +5 -5
  240. package/dist/esm/components/toggle-switch-group-field/ToggleSwitchGroupField.js +43 -38
  241. package/dist/esm/components/tooltip/Tooltip.d.ts +2 -0
  242. package/dist/esm/components/tooltip/Tooltip.js +27 -19
  243. package/dist/esm/hooks/use-form.js +7 -7
  244. package/dist/esm/index.d.ts +6 -1
  245. package/dist/esm/index.js +366 -352
  246. package/dist/esm/integrations/react-router/v5/UnityReactRouterV5Provider.js +28 -0
  247. package/dist/esm/integrations/react-router/v5/index.d.ts +1 -0
  248. package/dist/esm/integrations/react-router/v5.js +4 -0
  249. package/i18n/en-GB.json +6 -0
  250. package/i18n/es-ES.json +6 -0
  251. package/i18n/fr-FR.json +6 -0
  252. package/package.json +38 -35
  253. package/dist/esm/providers/router/integrations/UnityReactRouterV5Provider.js +0 -28
  254. /package/dist/esm/{providers/router/integrations → integrations/react-router/v5}/UnityReactRouterV5Provider.d.ts +0 -0
@@ -1,12 +1,12 @@
1
1
  import { jsxs as n, Fragment as N, jsx as o } from "react/jsx-runtime";
2
2
  import { useRef as l } from "react";
3
- import { useOverlayTrigger as O, useButton as P, useOverlay as D } from "react-aria";
4
- import { useIntl as B } from "react-intl";
5
- import { tv as I } from "tailwind-variants";
3
+ import { uyTv as O } from "@payfit/unity-themes";
4
+ import { useOverlayTrigger as P, useButton as D, useOverlay as B } from "react-aria";
5
+ import { useIntl as I } from "react-intl";
6
6
  import { Button as c } from "../../button/Button.js";
7
7
  import { Icon as J } from "../../icon/Icon.js";
8
8
  import { Label as R } from "../../label/Label.js";
9
- const k = I({
9
+ const k = O({
10
10
  slots: {
11
11
  jumpButton: "uy:sr-only uy:outline-none uy:focus:not-sr-only uy:focus:absolute uy:focus:bottom-full uy:focus:z-10 uy:focus:m-100 uy:focus:rounded-50 uy:focus:underline uy:focus:bg-transparent uy:focus:text-content-primary uy:focus:typography-action uy:focus:ring-2 uy:focus:ring-offset-2 uy:focus:ring-utility-focus-ring",
12
12
  jumpPopover: "uy:fixed uy:top-1/2 uy:left-1/2 uy:z-20 uy:transform uy:-translate-x-1/2 uy:-translate-y-1/2 uy:bg-surface-neutral uy:p-200 uy:rounded-200 uy:shadow-floating",
@@ -17,16 +17,16 @@ const k = I({
17
17
  jumpActions: "uy:flex uy:gap-150 uy:justify-end uy:mt-100"
18
18
  }
19
19
  });
20
- function G({
20
+ function $({
21
21
  pageCount: t,
22
22
  onJumpToPage: f,
23
23
  state: e
24
24
  }) {
25
- const u = B(), i = l(null), p = l(null), m = l(null), { triggerProps: d } = O(
25
+ const u = I(), i = l(null), p = l(null), m = l(null), { triggerProps: d } = P(
26
26
  { type: "dialog" },
27
27
  e,
28
28
  i
29
- ), { buttonProps: g } = P(
29
+ ), { buttonProps: g } = D(
30
30
  {
31
31
  ...d,
32
32
  "aria-label": u.formatMessage({
@@ -35,7 +35,7 @@ function G({
35
35
  })
36
36
  },
37
37
  i
38
- ), { overlayProps: a } = D(
38
+ ), { overlayProps: a } = B(
39
39
  {
40
40
  isOpen: e.isOpen,
41
41
  onClose: e.close.bind(e),
@@ -139,5 +139,5 @@ function G({
139
139
  ] });
140
140
  }
141
141
  export {
142
- G as PaginationJumpDialog
142
+ $ as PaginationJumpDialog
143
143
  };
@@ -1,5 +1,5 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { LinkProps } from 'react-aria-components';
2
- import { VariantProps } from 'tailwind-variants';
3
3
  export declare const paginationLink: import('tailwind-variants').TVReturnType<{
4
4
  isActive: {
5
5
  true: string;
@@ -1,9 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
- import { Link as s } from "react-aria-components";
4
- import { useIntl as o } from "react-intl";
5
- import { tv as l } from "tailwind-variants";
6
- const d = l({
3
+ import { uyTv as s } from "@payfit/unity-themes";
4
+ import { Link as o } from "react-aria-components";
5
+ import { useIntl as l } from "react-intl";
6
+ const d = s({
7
7
  base: [
8
8
  "uy:min-w-300 uy:h-300 uy:p-25 uy:flex uy:justify-center uy:items-center uy:typography-action uy:rounded-pill uy:transition-colors",
9
9
  "uy:enabled:text-content-neutral-enabled uy:enabled:bg-transparent uy:cursor-pointer",
@@ -20,9 +20,9 @@ const d = l({
20
20
  }
21
21
  }), y = i(
22
22
  ({ isActive: e, isDisabled: a, ...t }, n) => {
23
- const u = o();
23
+ const u = l();
24
24
  return /* @__PURE__ */ r(
25
- s,
25
+ o,
26
26
  {
27
27
  ref: n,
28
28
  className: d({ isActive: e }),
@@ -1,8 +1,8 @@
1
1
  import { jsxs as y, jsx as c } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { tv as f } from "tailwind-variants";
4
- import g from "../../hooks/use-id.js";
5
- const u = f({
3
+ import { uyTv as f } from "@payfit/unity-themes";
4
+ import u from "../../hooks/use-id.js";
5
+ const g = f({
6
6
  slots: {
7
7
  base: "uy:min-w-[104px] uy:aspect-[13/4]",
8
8
  monogram: "",
@@ -29,7 +29,7 @@ const u = f({
29
29
  }
30
30
  }), Z = p(
31
31
  ({ color: l, label: n, description: a, ...r }, i) => {
32
- const o = g(), t = `payfit-brand-title-${o}`, e = `payfit-brand-desc-${o}`, { base: h, monogram: m, logotype: s } = u({ color: l }), d = {
32
+ const o = u(), t = `payfit-brand-title-${o}`, e = `payfit-brand-desc-${o}`, { base: h, monogram: m, logotype: s } = g({ color: l }), d = {
33
33
  focusable: !1,
34
34
  role: "img",
35
35
  "aria-labelledby": t,
@@ -1,5 +1,5 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { AriaAttributes } from 'react';
2
- import { VariantProps } from 'tailwind-variants';
3
3
  declare const pill: import('tailwind-variants').TVReturnType<{
4
4
  variant: {
5
5
  critical: string;
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as c } from "react";
3
- import { tv as o } from "tailwind-variants";
3
+ import { uyTv as o } from "@payfit/unity-themes";
4
4
  const y = o({
5
5
  base: "uy:min-w-200 uy:max-w-400 uy:inline-flex uy:items-center uy:justify-center uy:text-center uy:typography-body-small",
6
6
  variants: {
@@ -1,10 +1,10 @@
1
1
  import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
2
  import { forwardRef as s } from "react";
3
- import { Popover as p, Dialog as g, DialogTrigger as m } from "react-aria-components";
3
+ import { uyTv as p } from "@payfit/unity-themes";
4
+ import { Popover as g, Dialog as m, DialogTrigger as c } from "react-aria-components";
4
5
  import { DialogTrigger as j } from "react-aria-components";
5
- import { tv as c } from "tailwind-variants";
6
6
  import { PopoverHeader as f } from "./parts/PopoverHeader.js";
7
- const x = c({
7
+ const x = p({
8
8
  slots: {
9
9
  base: [
10
10
  "uy:border uy:border-solid uy:border-border-neutral uy:bg-surface-neutral uy:rounded-200 uy:p-200 uy:shadow-floating uy:min-w-[320px] uy:max-w-[800px] uy:overflow-auto",
@@ -21,7 +21,7 @@ const x = c({
21
21
  }
22
22
  }), b = s((a, e) => {
23
23
  const { children: o, title: r, isTitleSrOnly: n, displayCloseButton: i, ...l } = a, { base: u, dialog: d } = x();
24
- return /* @__PURE__ */ t(p, { ref: e, className: u(), offset: 8, ...l, children: /* @__PURE__ */ y(g, { className: d(), role: "dialog", children: [
24
+ return /* @__PURE__ */ t(g, { ref: e, className: u(), offset: 8, ...l, children: /* @__PURE__ */ y(m, { className: d(), role: "dialog", children: [
25
25
  /* @__PURE__ */ t(
26
26
  f,
27
27
  {
@@ -34,7 +34,7 @@ const x = c({
34
34
  ] }) });
35
35
  });
36
36
  b.displayName = "Popover";
37
- m.displayName = "PopoverTrigger";
37
+ c.displayName = "PopoverTrigger";
38
38
  export {
39
39
  b as Popover,
40
40
  j as PopoverTrigger
@@ -1,10 +1,10 @@
1
1
  import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as u, useContext as d } from "react";
3
- import { OverlayTriggerStateContext as y, Heading as p } from "react-aria-components";
4
- import { useIntl as f } from "react-intl";
5
- import { tv as g } from "tailwind-variants";
2
+ import { forwardRef as u, useContext as y } from "react";
3
+ import { uyTv as d } from "@payfit/unity-themes";
4
+ import { OverlayTriggerStateContext as p, Heading as f } from "react-aria-components";
5
+ import { useIntl as g } from "react-intl";
6
6
  import { IconButton as h } from "../../icon-button/IconButton.js";
7
- const v = g({
7
+ const v = d({
8
8
  slots: {
9
9
  base: "uy:flex uy:justify-between",
10
10
  heading: "uy:content-center",
@@ -23,10 +23,10 @@ const v = g({
23
23
  }
24
24
  }), b = u(
25
25
  ({ title: t, isTitleSrOnly: n, displayCloseButton: a }, r) => {
26
- const e = d(y), s = f(), { base: l, heading: i, iconButton: c } = v({ isTitleSrOnly: n });
26
+ const e = y(p), s = g(), { base: l, heading: i, iconButton: c } = v({ isTitleSrOnly: n });
27
27
  return /* @__PURE__ */ m("div", { className: l(), children: [
28
28
  /* @__PURE__ */ o(
29
- p,
29
+ f,
30
30
  {
31
31
  ref: r,
32
32
  slot: "title",
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as y } from "react";
3
- import { ProgressBar as d } from "react-aria-components";
4
- import { tv as c } from "tailwind-variants";
5
- const f = c({
2
+ import { forwardRef as n } from "react";
3
+ import { uyTv as d } from "@payfit/unity-themes";
4
+ import { ProgressBar as c } from "react-aria-components";
5
+ const f = d({
6
6
  slots: {
7
7
  base: "uy:rounded-150 uy:bg-surface-neutral-disabled uy:h-150 uy:top-[50%] uy:transform uy:translate-y-[-50%] uy:w-full",
8
8
  meter: "uy:rounded-l-150 uy:absolute uy:h-full uy:top-[50%] uy:transform uy:translate-y-[-50%] uy:bg-surface-success"
@@ -17,19 +17,19 @@ const f = c({
17
17
  defaultVariants: {
18
18
  isFull: !1
19
19
  }
20
- }), p = y(
21
- ({ value: a, range: e = [0, 100], ...t }, l) => {
22
- const [u, s] = e, o = a >= s, { base: i, meter: m } = f({ isFull: o });
20
+ }), p = n(
21
+ ({ value: a, range: e = [0, 100], ...u }, l) => {
22
+ const [t, s] = e, o = a >= s, { base: i, meter: y } = f({ isFull: o });
23
23
  return /* @__PURE__ */ r(
24
- d,
24
+ c,
25
25
  {
26
26
  ref: l,
27
27
  value: a,
28
- minValue: u,
28
+ minValue: t,
29
29
  maxValue: s,
30
- "aria-label": t["aria-label"],
30
+ "aria-label": u["aria-label"],
31
31
  "data-dd-privacy": "allow",
32
- children: ({ percentage: n }) => /* @__PURE__ */ r("div", { className: i(), children: /* @__PURE__ */ r("div", { className: m(), style: { width: `${n}%` } }) })
32
+ children: ({ percentage: m }) => /* @__PURE__ */ r("div", { className: i(), children: /* @__PURE__ */ r("div", { className: y(), style: { width: `${m}%` } }) })
33
33
  }
34
34
  );
35
35
  }
@@ -1,6 +1,6 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { ReactNode } from 'react';
2
3
  import { RadioProps } from 'react-aria-components';
3
- import { VariantProps } from 'tailwind-variants';
4
4
  export declare const radioButton: import('tailwind-variants').TVReturnType<{
5
5
  isFocusVisible: {
6
6
  true: string;
@@ -1,13 +1,13 @@
1
1
  import { jsxs as a, jsx as o, Fragment as m } from "react/jsx-runtime";
2
2
  import { forwardRef as b, useContext as f, useMemo as p } from "react";
3
- import { RadioGroupStateContext as g, Radio as v } from "react-aria-components";
4
- import { tv as x } from "tailwind-variants";
3
+ import { uyTv as g } from "@payfit/unity-themes";
4
+ import { RadioGroupStateContext as v, Radio as x } from "react-aria-components";
5
5
  import { Flex as R } from "../../flex/Flex.js";
6
6
  import { Text as S } from "../../text/Text.js";
7
7
  import B from "./radio-input-selected.svg.js";
8
8
  import h from "./radio-input-unselected.svg.js";
9
9
  import { RadioButtonHelper as w } from "./RadioButtonHelper.js";
10
- const F = x({
10
+ const F = g({
11
11
  slots: {
12
12
  base: [
13
13
  "uy:group uy:flex uy:gap-100 uy:rounded-50 uy:items-center uy:cursor-pointer",
@@ -31,7 +31,7 @@ const F = x({
31
31
  }
32
32
  }), N = b(
33
33
  ({ children: t, value: l, isDisabled: i, helperText: d, ...u }, n) => {
34
- const { base: c, label: s } = F(), r = f(g), y = p(() => r != null && r.isReadOnly ? {
34
+ const { base: c, label: s } = F(), r = f(v), y = p(() => r != null && r.isReadOnly ? {
35
35
  "--radio-fill-color": "var(--uy-color-border-form-read-only)",
36
36
  "--radio-border-color": "var(--uy-color-border-form-disabled)"
37
37
  } : {
@@ -40,7 +40,7 @@ const F = x({
40
40
  }, [r == null ? void 0 : r.isReadOnly]);
41
41
  return /* @__PURE__ */ a(R, { direction: "col", gap: "50", children: [
42
42
  /* @__PURE__ */ o(
43
- v,
43
+ x,
44
44
  {
45
45
  ...u,
46
46
  value: l,
@@ -1,6 +1,6 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { ReactNode } from 'react';
2
3
  import { SearchFieldProps } from 'react-aria-components';
3
- import { VariantProps } from 'tailwind-variants';
4
4
  export declare const search: import('tailwind-variants').TVReturnType<{
5
5
  isReadOnly: {
6
6
  true: {
@@ -1,12 +1,12 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as w } from "react";
3
- import { SearchField as M, Input as N, FieldError as S } from "react-aria-components";
4
- import { useIntl as I } from "react-intl";
5
- import { tv as k } from "tailwind-variants";
3
+ import { uyTv as M } from "@payfit/unity-themes";
4
+ import { SearchField as N, Input as S, FieldError as I } from "react-aria-components";
5
+ import { useIntl as k } from "react-intl";
6
6
  import { CircularIconButton as C } from "../icon-button/CircularIconButton.js";
7
7
  import { Icon as l } from "../icon/Icon.js";
8
- import { Spinner as B } from "../spinner/Spinner.js";
9
- const E = k({
8
+ import { Spinner as T } from "../spinner/Spinner.js";
9
+ const B = M({
10
10
  slots: {
11
11
  base: [
12
12
  "uy:w-full uy:flex uy:gap-100 uy:border uy:border-solid uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150 uy:rounded-75 uy:border-border-form-enabled uy:items-center",
@@ -54,7 +54,7 @@ const E = k({
54
54
  }
55
55
  }
56
56
  }
57
- }), T = ({
57
+ }), E = ({
58
58
  intl: a,
59
59
  placeholder: r,
60
60
  isDisabled: o
@@ -81,11 +81,11 @@ const E = k({
81
81
  wrapperState: v,
82
82
  feedbackText: h,
83
83
  closeButton: x
84
- } = E({
84
+ } = B({
85
85
  isReadOnly: u
86
- }), t = I();
86
+ }), t = k();
87
87
  return /* @__PURE__ */ n(
88
- M,
88
+ N,
89
89
  {
90
90
  "aria-label": c,
91
91
  className: "uy:group",
@@ -106,10 +106,10 @@ const E = k({
106
106
  }
107
107
  ),
108
108
  /* @__PURE__ */ e(
109
- N,
109
+ S,
110
110
  {
111
111
  className: p(),
112
- placeholder: T({ intl: t, placeholder: s, isDisabled: o })
112
+ placeholder: E({ intl: t, placeholder: s, isDisabled: o })
113
113
  }
114
114
  ),
115
115
  /* @__PURE__ */ n("div", { className: v(), children: [
@@ -126,7 +126,7 @@ const E = k({
126
126
  }
127
127
  ),
128
128
  a && /* @__PURE__ */ e(
129
- B,
129
+ T,
130
130
  {
131
131
  label: t.formatMessage({
132
132
  id: "unity:component:common:loading:label",
@@ -151,7 +151,7 @@ const E = k({
151
151
  )
152
152
  ] })
153
153
  ] }),
154
- /* @__PURE__ */ e(S, { className: h(), children: d })
154
+ /* @__PURE__ */ e(I, { className: h(), children: d })
155
155
  ]
156
156
  }
157
157
  );
@@ -160,5 +160,5 @@ const E = k({
160
160
  j.displayName = "Search";
161
161
  export {
162
162
  j as Search,
163
- E as search
163
+ B as search
164
164
  };
@@ -1,12 +1,12 @@
1
1
  import { jsxs as c, jsx as t, Fragment as b } from "react/jsx-runtime";
2
2
  import { forwardRef as h, useContext as x, useRef as v } from "react";
3
- import { useRadio as w, useFocusRing as P, VisuallyHidden as L, mergeProps as I } from "react-aria";
4
- import { useIntl as N } from "react-intl";
5
- import { tv as V } from "tailwind-variants";
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";
5
+ import { useIntl as V } from "react-intl";
6
6
  import { Icon as F } from "../../icon/Icon.js";
7
7
  import { Spinner as R } from "../../spinner/Spinner.js";
8
8
  import { SegmentedButtonGroupContext as S } from "../SegmentedButtonGroups.context.js";
9
- const B = V({
9
+ const B = w({
10
10
  slots: {
11
11
  base: [
12
12
  "uy:rounded-50 uy:pt-50 uy:pb-50 uy:pr-150 uy:flex uy:gap-25",
@@ -95,19 +95,19 @@ const B = V({
95
95
  }
96
96
  ) : null,
97
97
  n
98
- ] }), j = h(
98
+ ] }), T = h(
99
99
  (r, n) => {
100
- const { children: o, value: e, prefixIcon: s, isLoading: a } = r, { state: u } = x(S), i = v(null), { inputProps: d } = w(r, u, i), { focusProps: f, isFocusVisible: p } = P(), y = N(), l = u.selectedValue === e, { base: g, wrapper: m } = B({
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: f, isFocusVisible: p } = L(), y = V(), l = u.selectedValue === e, { base: g, wrapper: m } = B({
101
101
  isSelected: l,
102
102
  hasPrefixIcon: !!s,
103
103
  isLoading: a,
104
104
  isFocusVisible: p
105
105
  });
106
106
  return /* @__PURE__ */ c("label", { ref: n, className: g(), "aria-disabled": a, children: [
107
- /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(
107
+ /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(
108
108
  "input",
109
109
  {
110
- ...I(d, f),
110
+ ...N(d, f),
111
111
  ref: i,
112
112
  disabled: a
113
113
  }
@@ -116,7 +116,7 @@ const B = V({
116
116
  ] });
117
117
  }
118
118
  );
119
- j.displayName = "ToggleButton";
119
+ T.displayName = "ToggleButton";
120
120
  export {
121
- j as ToggleButton
121
+ T as ToggleButton
122
122
  };
@@ -1,16 +1,16 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as P, useState as j } from "react";
3
- import { useFilter as B, Select as F, Popover as K, Autocomplete as O, ListBox as i } from "react-aria-components";
4
- import { tv as A } from "tailwind-variants";
3
+ import { uyTv as B } from "@payfit/unity-themes";
4
+ import { useFilter as F, Select as K, Popover as O, Autocomplete as A, ListBox as i } from "react-aria-components";
5
5
  import { SearchInput as I } from "./parts/SearchInput.js";
6
6
  import { SelectButton as L } from "./parts/SelectButton.js";
7
- const U = A({
7
+ const T = B({
8
8
  slots: {
9
9
  base: "uy:flex uy:flex-col uy:gap-100 uy:w-full",
10
10
  popover: "uy:rounded-75 uy:border uy:border-solid uy:border-border-neutral uy:w-[var(--trigger-width)] uy:bg-surface-neutral",
11
11
  listbox: "uy:overflow-y-auto uy:max-h-[296px] uy:pt-100 uy:pb-100 uy:pl-100 uy:pr-100"
12
12
  }
13
- }), $ = ({
13
+ }), U = ({
14
14
  children: t,
15
15
  items: o,
16
16
  placeholder: r,
@@ -26,12 +26,12 @@ const U = A({
26
26
  placement: S,
27
27
  ...b
28
28
  }, x) => {
29
- const [v, h] = j(!1), { contains: g } = B({ sensitivity: "base" }), { base: w, popover: N, listbox: a } = U(), C = n !== void 0 || u !== void 0 ? {
29
+ const [v, h] = j(!1), { contains: g } = F({ sensitivity: "base" }), { base: w, popover: N, listbox: a } = T(), C = n !== void 0 || u !== void 0 ? {
30
30
  selectedKey: n,
31
31
  onSelectionChange: u
32
32
  } : { defaultSelectedKey: y };
33
33
  return /* @__PURE__ */ p(
34
- F,
34
+ K,
35
35
  {
36
36
  onOpenChange: h,
37
37
  ...b,
@@ -54,13 +54,13 @@ const U = A({
54
54
  }
55
55
  ),
56
56
  /* @__PURE__ */ e(
57
- K,
57
+ O,
58
58
  {
59
59
  offset: 1,
60
60
  containerPadding: 8,
61
61
  className: N(),
62
62
  placement: S,
63
- children: f ? /* @__PURE__ */ p(O, { filter: g, children: [
63
+ children: f ? /* @__PURE__ */ p(A, { filter: g, children: [
64
64
  /* @__PURE__ */ e(I, {}),
65
65
  /* @__PURE__ */ e(i, { items: o, className: a(), children: t })
66
66
  ] }) : /* @__PURE__ */ e(i, { items: o, className: a(), children: t })
@@ -69,10 +69,10 @@ const U = A({
69
69
  ]
70
70
  }
71
71
  );
72
- }, k = P(function(o, r) {
73
- return $(o, r);
72
+ }, $ = P(function(o, r) {
73
+ return U(o, r);
74
74
  });
75
- k.displayName = "Select";
75
+ $.displayName = "Select";
76
76
  export {
77
- k as Select
77
+ $ as Select
78
78
  };
@@ -1,11 +1,11 @@
1
1
  import { jsxs as e, Fragment as i, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as l } from "react";
3
- import { SearchField as m, Input as c } from "react-aria-components";
4
- import { useIntl as y } from "react-intl";
5
- import { tv as d } from "tailwind-variants";
3
+ import { uyTv as m } from "@payfit/unity-themes";
4
+ import { SearchField as y, Input as c } from "react-aria-components";
5
+ import { useIntl as d } from "react-intl";
6
6
  import { CircularIconButton as p } from "../../icon-button/CircularIconButton.js";
7
7
  import { Icon as f } from "../../icon/Icon.js";
8
- const b = d({
8
+ const b = m({
9
9
  slots: {
10
10
  base: "uy:flex uy:gap-100 uy:border uy:border-solid uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150 uy:rounded-75 uy:border-border-form-active uy:text-content-form-active uy:mt-100 uy:mb-100 uy:ml-100 uy:mr-100 uy:typography-body",
11
11
  input: "uy:flex-grow uy:outline-none uy:[&::-webkit-search-cancel-button]:hidden",
@@ -13,11 +13,11 @@ const b = d({
13
13
  separator: "uy:h-[1px] uy:bg-surface-neutral-lowest uy:w-full uy:mt-100"
14
14
  }
15
15
  }), h = l((g, r) => {
16
- const o = y(), { base: a, input: u, button: n, separator: s } = b();
16
+ const o = d(), { base: u, input: a, button: n, separator: s } = b();
17
17
  return /* @__PURE__ */ e(i, { children: [
18
- /* @__PURE__ */ e(m, { className: a(), ref: r, "data-dd-privacy": "mask", children: [
18
+ /* @__PURE__ */ e(y, { className: u(), ref: r, "data-dd-privacy": "mask", children: [
19
19
  /* @__PURE__ */ t(f, { src: "MagnifyingGlassOutlined", "aria-hidden": "true" }),
20
- /* @__PURE__ */ t(c, { className: u() }),
20
+ /* @__PURE__ */ t(c, { className: a() }),
21
21
  /* @__PURE__ */ t(
22
22
  p,
23
23
  {
@@ -1,13 +1,16 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as f } from "react";
3
- import { Button as b, SelectValue as m } from "react-aria-components";
4
- import { useIntl as p } from "react-intl";
5
- import { tv as v } from "tailwind-variants";
3
+ import { uyTv as b } from "@payfit/unity-themes";
4
+ import { Button as m, SelectValue as p } from "react-aria-components";
5
+ import { useIntl as v } from "react-intl";
6
6
  import { Icon as a } from "../../icon/Icon.js";
7
- const x = v({
7
+ const x = b({
8
8
  slots: {
9
9
  base: "uy:flex uy:flex-row uy:gap-100 uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150 uy:rounded-75 uy:border-solid uy:focus-visible:ring-2 uy:focus-visible:ring-utility-focus-ring uy:focus-visible:ring-offset-2 uy:outline-none uy:border",
10
- selectValue: "uy:whitespace-nowrap uy:text-ellipsis uy:typography-body uy:flex-grow uy:text-left uy:data-[placeholder]:text-content-neutral-lowest",
10
+ selectValue: [
11
+ "uy:whitespace-nowrap uy:text-ellipsis uy:typography-body uy:flex-grow uy:text-left uy:overflow-hidden",
12
+ "uy:data-[placeholder]:text-content-neutral-lowest"
13
+ ],
11
14
  iconWrapper: "uy:flex uy:gap-50",
12
15
  icon: ""
13
16
  },
@@ -49,23 +52,23 @@ const x = v({
49
52
  isReadOnly: !1
50
53
  }
51
54
  }), g = f(
52
- ({ isDisabled: r, isInvalid: t, isReadOnly: l, isOpen: s }, u) => {
53
- const n = p(), { base: i, selectValue: d, iconWrapper: c, icon: y } = x({
55
+ ({ isDisabled: r, isInvalid: o, isReadOnly: l, isOpen: s }, u) => {
56
+ const n = v(), { base: i, selectValue: d, iconWrapper: c, icon: y } = x({
54
57
  isDisabled: r,
55
- isInvalid: t,
58
+ isInvalid: o,
56
59
  isReadOnly: l
57
60
  });
58
- return /* @__PURE__ */ o(
59
- b,
61
+ return /* @__PURE__ */ t(
62
+ m,
60
63
  {
61
64
  "data-dd-privacy": "mask",
62
65
  className: i(),
63
66
  ref: u,
64
67
  isDisabled: r,
65
68
  children: [
66
- /* @__PURE__ */ e(m, { className: d() }),
67
- /* @__PURE__ */ o("div", { className: c(), children: [
68
- t && /* @__PURE__ */ e(
69
+ /* @__PURE__ */ e(p, { className: d() }),
70
+ /* @__PURE__ */ t("div", { className: c(), children: [
71
+ o && /* @__PURE__ */ e(
69
72
  a,
70
73
  {
71
74
  src: "WarningCircleOutlined",
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as d, Fragment as i } from "react/jsx-runtime";
2
2
  import { forwardRef as y } from "react";
3
- import { ListBoxItem as f } from "react-aria-components";
4
- import { tv as m } from "tailwind-variants";
3
+ import { uyTv as f } from "@payfit/unity-themes";
4
+ import { ListBoxItem as m } from "react-aria-components";
5
5
  import { Icon as p } from "../../icon/Icon.js";
6
6
  import { SelectOptionProvider as b } from "./SelectOption.context.js";
7
- const x = m({
7
+ const x = f({
8
8
  base: "uy:flex uy:flex-col uy:typography-body uy:rounded-50 uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150 uy:outline-none",
9
9
  variants: {
10
10
  isFocusVisible: {
@@ -37,7 +37,7 @@ const x = m({
37
37
  (s, l) => {
38
38
  const { children: u, isDisabled: r, textValue: n } = s;
39
39
  return /* @__PURE__ */ e(
40
- f,
40
+ m,
41
41
  {
42
42
  ...s,
43
43
  ref: l,
@@ -1,21 +1,21 @@
1
1
  import { jsxs as n, Fragment as a, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
- import { ListBoxSection as c, Header as y, Collection as m, Separator as d } from "react-aria-components";
4
- import { tv as f } from "tailwind-variants";
5
- const h = f({
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({
6
6
  slots: {
7
7
  base: "",
8
8
  header: "uy:text-content-neutral-enabled uy:typography-body-strong uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150",
9
9
  separator: "uy:h-[1px] uy:bg-surface-neutral-lowest uy:w-full uy:mb-100 uy:mt-100 uy:last:hidden"
10
10
  }
11
11
  }), b = ({ label: r, children: o, items: t }, p) => {
12
- const { base: s, header: u, separator: l } = h();
12
+ const { base: u, header: s, separator: l } = h();
13
13
  return /* @__PURE__ */ n(a, { children: [
14
- /* @__PURE__ */ n(c, { ref: p, className: s(), id: r, items: t, children: [
15
- /* @__PURE__ */ e(y, { className: u(), children: r }),
16
- t ? /* @__PURE__ */ e(m, { items: t, children: o }) : /* @__PURE__ */ e(a, { children: o })
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 })
17
17
  ] }),
18
- /* @__PURE__ */ e(d, { orientation: "horizontal", className: l() })
18
+ /* @__PURE__ */ e(f, { orientation: "horizontal", className: l() })
19
19
  ] });
20
20
  }, x = i(function(o, t) {
21
21
  return b(o, t);
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as s } from "react";
3
- import { tv as n } from "tailwind-variants";
3
+ import { uyTv as n } from "@payfit/unity-themes";
4
4
  import { useSelectOptionContext as l } from "./SelectOption.context.js";
5
5
  const p = n({
6
6
  base: "uy:typography-body",
@@ -32,7 +32,7 @@ type SelectFieldComponent = (<TItems extends object, TSchema extends Schema>(pro
32
32
  *
33
33
  * return (
34
34
  * <Form action={handleSubmit}>
35
- * <SelectField<typeof schema>
35
+ * <SelectField<{id?: string, name:string}, typeof schema>
36
36
  * name="vegetable"
37
37
  * label="Vegetables"
38
38
  * >