@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,18 +1,18 @@
1
1
  import { jsxs as M, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as P } from "react";
3
- import { useFormContext as T } from "react-hook-form";
4
- import { tv as g } from "tailwind-variants";
2
+ import { forwardRef as T } from "react";
3
+ import { uyTv as P } from "@payfit/unity-themes";
4
+ import { useFormContext as g } from "react-hook-form";
5
5
  import { FormField as L } from "../form-field/FormField.js";
6
6
  import { FormControl as R } from "../form-field/parts/FormControl.js";
7
7
  import { FormFeedbackText as j } from "../form-field/parts/FormFeedbackText.js";
8
8
  import { FormHelperText as k } from "../form-field/parts/FormHelperText.js";
9
9
  import { FormLabel as q } from "../form-field/parts/FormLabel.js";
10
10
  import { MultiSelect as u } from "../multi-select/MultiSelect.js";
11
- const v = g({
11
+ const v = P({
12
12
  base: "uy:flex uy:flex-col uy:gap-100"
13
13
  });
14
14
  function w(e, i) {
15
- const { control: l, setValue: f } = T(), {
15
+ const { control: l, setValue: f } = g(), {
16
16
  name: o,
17
17
  label: x,
18
18
  helperText: n,
@@ -73,7 +73,7 @@ function w(e, i) {
73
73
  }
74
74
  );
75
75
  }
76
- const C = P(function(i, l) {
76
+ const C = T(function(i, l) {
77
77
  return w(i, l);
78
78
  });
79
79
  C.displayName = "MultiSelectField";
@@ -1,13 +1,12 @@
1
- import { jsxs as o, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
2
  import s, { useState as G, useCallback as j } from "react";
3
- import { Button as B } from "react-aria-components";
4
- import { twMerge as D } from "tailwind-merge";
5
- import { tv as _ } from "tailwind-variants";
6
- import $ from "../../../hooks/use-id.js";
7
- import { Icon as k } from "../../icon/Icon.js";
8
- import { navItemBase as z } from "./NavItem.js";
9
- const H = _({
10
- extend: z,
3
+ import { uyTv as B } from "@payfit/unity-themes";
4
+ import { Button as D } from "react-aria-components";
5
+ import _ from "../../../hooks/use-id.js";
6
+ import { Icon as $ } from "../../icon/Icon.js";
7
+ import { navItemBase as k } from "./NavItem.js";
8
+ const z = B({
9
+ extend: k,
11
10
  slots: {
12
11
  caret: "uy:transition-transform uy:duration-150 uy:delay-25 uy:ease-linear motion-reduce:transition-none",
13
12
  contentWrapper: "uy:transition-[max-height] uy:duration-200 uy:ease-linear motion-reduce:transition-none",
@@ -30,7 +29,7 @@ const H = _({
30
29
  }
31
30
  }
32
31
  });
33
- function M({
32
+ function H({
34
33
  children: y,
35
34
  label: p,
36
35
  prefix: i,
@@ -40,34 +39,34 @@ function M({
40
39
  onToggle: n,
41
40
  ...x
42
41
  }) {
43
- const u = $(), [h, b] = G(f), r = l !== void 0, e = r ? l : h, v = j(() => {
44
- r || b((t) => !t), n == null || n(!e);
45
- }, [r, e, n]), N = s.Children.map(y, (t) => s.isValidElement(t) ? s.cloneElement(t, { isDisabled: !e, level: 1 }) : t), c = `${u}-toggle`, d = `${u}-content`, {
42
+ const u = _(), [h, b] = G(f), o = l !== void 0, e = o ? l : h, v = j(() => {
43
+ o || b((t) => !t), n == null || n(!e);
44
+ }, [o, e, n]), N = s.Children.map(y, (t) => s.isValidElement(t) ? s.cloneElement(t, { isDisabled: !e, level: 1 }) : t), c = `${u}-toggle`, d = `${u}-content`, {
46
45
  base: I,
47
- prefix: g,
48
- label: w,
49
- suffix: E,
50
- content: S,
46
+ prefix: E,
47
+ label: S,
48
+ suffix: g,
49
+ content: w,
51
50
  contentWrapper: C,
52
51
  caret: W
53
- } = H({ level: 0, expanded: e });
54
- return /* @__PURE__ */ o("li", { className: "uy:flex uy:flex-col uy:gap-50", children: [
55
- /* @__PURE__ */ o(
56
- B,
52
+ } = z({ level: 0, expanded: e });
53
+ return /* @__PURE__ */ r("li", { className: "uy:flex uy:flex-col uy:gap-50", children: [
54
+ /* @__PURE__ */ r(
55
+ D,
57
56
  {
58
57
  id: c,
59
- className: D(I(), "uy:w-full"),
58
+ className: I({ className: "uy:w-full" }),
60
59
  onPress: v,
61
60
  "aria-expanded": e,
62
61
  "aria-controls": d,
63
62
  ...x,
64
63
  children: [
65
- i && /* @__PURE__ */ a("span", { className: g(), children: i({ isExpanded: e }) }),
66
- /* @__PURE__ */ a("span", { className: w(), children: p }),
67
- /* @__PURE__ */ o("span", { className: E(), role: "presentation", children: [
64
+ i && /* @__PURE__ */ a("span", { className: E(), children: i({ isExpanded: e }) }),
65
+ /* @__PURE__ */ a("span", { className: S(), children: p }),
66
+ /* @__PURE__ */ r("span", { className: g(), role: "presentation", children: [
68
67
  m,
69
68
  /* @__PURE__ */ a(
70
- k,
69
+ $,
71
70
  {
72
71
  src: "CaretDownOutlined",
73
72
  alt: "expand group",
@@ -89,7 +88,7 @@ function M({
89
88
  "ul",
90
89
  {
91
90
  id: d,
92
- className: S(),
91
+ className: w(),
93
92
  "aria-labelledby": c,
94
93
  "aria-hidden": !e,
95
94
  children: N
@@ -99,7 +98,7 @@ function M({
99
98
  )
100
99
  ] });
101
100
  }
102
- M.displayName = "NavGroup";
101
+ H.displayName = "NavGroup";
103
102
  export {
104
- M as NavGroup
103
+ H as NavGroup
105
104
  };
@@ -1,6 +1,6 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { PropsWithChildren, ReactNode } from 'react';
2
3
  import { ButtonProps as AriaButtonProps } from 'react-aria-components';
3
- import { VariantProps } from 'tailwind-variants';
4
4
  import { DataAttributes } from '../../../types/DataAttributes.js';
5
5
  export declare const navItemBase: import('tailwind-variants').TVReturnType<{
6
6
  level: {
@@ -1,9 +1,8 @@
1
1
  import { jsx as u, jsxs as h } from "react/jsx-runtime";
2
- import { Link as w, Button as N } from "react-aria-components";
3
- import { twMerge as I } from "tailwind-merge";
4
- import { tv as l } from "tailwind-variants";
2
+ import { uyTv as y, uyMerge as N } from "@payfit/unity-themes";
3
+ import { Link as w, Button as I } from "react-aria-components";
5
4
  import { useRouter as j } from "../../../providers/router/RouterProvider.js";
6
- const A = l({
5
+ const A = y({
7
6
  slots: {
8
7
  base: [
9
8
  "uy:group uy:grid uy:w-full uy:grid-cols-[auto_1fr_auto] uy:items-center uy:py-100 uy:px-150 uy:gap-100 uy:rounded-75 uy:outline-0 uy:transition-all",
@@ -29,7 +28,7 @@ const A = l({
29
28
  false: ""
30
29
  }
31
30
  }
32
- }), S = l({
31
+ }), S = y({
33
32
  extend: A,
34
33
  variants: {
35
34
  isActive: {
@@ -47,7 +46,7 @@ const A = l({
47
46
  }
48
47
  });
49
48
  function k({
50
- children: y,
49
+ children: o,
51
50
  level: s = 0,
52
51
  prefix: n,
53
52
  suffix: r,
@@ -58,11 +57,11 @@ function k({
58
57
  isExact: f = !1,
59
58
  ...d
60
59
  }) {
61
- const i = j(), b = e ? w : N, t = i && e ? i.isActive(e.toString(), f) : p, {
60
+ const i = j(), b = e ? w : I, t = i && e ? i.isActive(e.toString(), f) : p, {
62
61
  base: v,
63
- label: o,
64
- prefix: m,
65
- suffix: g
62
+ label: l,
63
+ prefix: g,
64
+ suffix: m
66
65
  } = S({ level: s, isActive: t, isDisabled: a }), x = Object.assign(
67
66
  {},
68
67
  t !== void 0 && {
@@ -74,7 +73,7 @@ function k({
74
73
  return /* @__PURE__ */ u("li", { children: /* @__PURE__ */ h(
75
74
  b,
76
75
  {
77
- className: I(v(), o()),
76
+ className: N(v(), l()),
78
77
  href: e,
79
78
  onPress: c,
80
79
  isDisabled: a,
@@ -82,9 +81,9 @@ function k({
82
81
  ...x,
83
82
  ...d,
84
83
  children: [
85
- n && /* @__PURE__ */ u("span", { className: m(), children: n({ isCurrent: t ?? !1 }) }),
86
- /* @__PURE__ */ u("span", { className: o(), children: y }),
87
- r && /* @__PURE__ */ u("span", { className: g(), children: r })
84
+ n && /* @__PURE__ */ u("span", { className: g(), children: n({ isCurrent: t ?? !1 }) }),
85
+ /* @__PURE__ */ u("span", { className: l(), children: o }),
86
+ r && /* @__PURE__ */ u("span", { className: m(), children: r })
88
87
  ]
89
88
  }
90
89
  ) });
@@ -1,14 +1,14 @@
1
- import { jsxs as y, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as h, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as C } from "react";
3
- import { useFormContext as I } from "react-hook-form";
4
- import { tv as j } from "tailwind-variants";
5
- import { FormField as B } from "../form-field/FormField.js";
6
- import { FormControl as P } from "../form-field/parts/FormControl.js";
7
- import { FormFeedbackText as T } from "../form-field/parts/FormFeedbackText.js";
3
+ import { uyTv as I } from "@payfit/unity-themes";
4
+ import { useFormContext as T } from "react-hook-form";
5
+ import { FormField as j } from "../form-field/FormField.js";
6
+ import { FormControl as B } from "../form-field/parts/FormControl.js";
7
+ import { FormFeedbackText as P } from "../form-field/parts/FormFeedbackText.js";
8
8
  import { FormHelperText as g } from "../form-field/parts/FormHelperText.js";
9
9
  import { FormLabel as k } from "../form-field/parts/FormLabel.js";
10
10
  import { NumberInput as v } from "../number-input/NumberInput.js";
11
- const w = j({
11
+ const w = I({
12
12
  base: "uy:flex uy:flex-col uy:gap-100"
13
13
  });
14
14
  function H({
@@ -27,17 +27,17 @@ function H({
27
27
  onClearButtonPress: d,
28
28
  ...a
29
29
  }, F) {
30
- const { control: b, setValue: x } = I(), N = {
30
+ const { control: b, setValue: x } = T(), N = {
31
31
  isRequired: l,
32
32
  isInvalid: s,
33
33
  isLoading: u,
34
34
  isDisabled: c,
35
35
  isReadOnly: p
36
- }, h = d ?? (() => {
36
+ }, y = d ?? (() => {
37
37
  x(o, NaN);
38
38
  });
39
- return /* @__PURE__ */ y(
40
- B,
39
+ return /* @__PURE__ */ h(
40
+ j,
41
41
  {
42
42
  control: b,
43
43
  name: o,
@@ -46,16 +46,16 @@ function H({
46
46
  children: [
47
47
  /* @__PURE__ */ r(k, { requiredVariant: f, children: e }),
48
48
  m && /* @__PURE__ */ r(g, { children: m }),
49
- /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(
49
+ /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r(
50
50
  v,
51
51
  {
52
52
  ref: F,
53
- onClearButtonPress: h,
53
+ onClearButtonPress: y,
54
54
  defaultValue: t,
55
55
  ...a
56
56
  }
57
57
  ) }),
58
- /* @__PURE__ */ r(T, { children: n }),
58
+ /* @__PURE__ */ r(P, { children: n }),
59
59
  i
60
60
  ]
61
61
  }
@@ -1,6 +1,6 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { ReactElement } from 'react';
2
3
  import { NumberFieldProps } from 'react-aria-components';
3
- import { VariantProps } from 'tailwind-variants';
4
4
  export declare const numberInput: import('tailwind-variants').TVReturnType<{
5
5
  isReadOnly: {
6
6
  true: {
@@ -136,5 +136,5 @@ export interface NumberProps extends VariantProps<typeof numberInput>, Omit<Numb
136
136
  * @see {@link NumberProps} for all available props
137
137
  * @remarks {@link https://www.payfit.design/24f360409/p/545bd2-number-field|Design docs}
138
138
  */
139
- declare const NumberInput: import('react').ForwardRefExoticComponent<NumberProps & import('react').RefAttributes<HTMLDivElement>>;
139
+ declare const NumberInput: import('react').ForwardRefExoticComponent<NumberProps & import('react').RefAttributes<HTMLInputElement>>;
140
140
  export { NumberInput };
@@ -1,13 +1,13 @@
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 G } from "react";
3
+ import { uyTv as T } from "@payfit/unity-themes";
3
4
  import { NumberField as W, Group as q, Input as A } from "react-aria-components";
4
- import { tv as C } from "tailwind-variants";
5
- import { Icon as H } from "../icon/Icon.js";
5
+ import { Icon as C } from "../icon/Icon.js";
6
6
  import "@payfit/unity-icons";
7
- import { useIntl as J } from "react-intl";
7
+ import { useIntl as H } from "react-intl";
8
8
  import { CircularIconButton as s } from "../icon-button/CircularIconButton.js";
9
- import { Spinner as K } from "../spinner/Spinner.js";
10
- const Q = C({
9
+ import { Spinner as J } from "../spinner/Spinner.js";
10
+ const K = T({
11
11
  slots: {
12
12
  base: [
13
13
  "uy:group uy:flex uy:h-500 uy:border uy:border-solid uy:rounded-100",
@@ -81,27 +81,27 @@ const Q = C({
81
81
  }
82
82
  }
83
83
  }
84
- }), R = G(
84
+ }), Q = G(
85
85
  ({
86
86
  withControls: b = !1,
87
87
  defaultValue: u,
88
- formatOptions: p,
88
+ formatOptions: g,
89
89
  isDisabled: f,
90
90
  isInvalid: y,
91
91
  isLoading: a,
92
92
  isReadOnly: d,
93
- isRequired: g,
93
+ isRequired: x,
94
94
  maxValue: n,
95
95
  minValue: i,
96
96
  prefix: m,
97
- onBlur: x,
98
- onChange: w,
97
+ onBlur: w,
98
+ onChange: v,
99
99
  onClearButtonPress: l,
100
- step: v,
100
+ step: h,
101
101
  suffix: c,
102
102
  value: r,
103
- ...h
104
- }, N) => {
103
+ ...N
104
+ }, p) => {
105
105
  const {
106
106
  base: M,
107
107
  wrapper: I,
@@ -110,48 +110,48 @@ const Q = C({
110
110
  suffix: O,
111
111
  state: S,
112
112
  controls: D
113
- } = Q({ isReadOnly: d }), t = J(), k = r !== void 0 && !isNaN(r), z = u !== void 0 && !isNaN(u), F = (k || z) && !b && !a && !d && !f;
114
- return /* @__PURE__ */ o(
113
+ } = K({ isReadOnly: d }), o = H(), k = r !== void 0 && !isNaN(r), z = u !== void 0 && !isNaN(u), F = (k || z) && !b && !a && !d && !f;
114
+ return /* @__PURE__ */ t(
115
115
  W,
116
116
  {
117
- ref: N,
117
+ ref: p,
118
118
  className: M(),
119
119
  value: r,
120
120
  defaultValue: u,
121
121
  minValue: i,
122
122
  maxValue: n,
123
- step: v,
123
+ step: h,
124
124
  isDisabled: f,
125
125
  isReadOnly: d,
126
126
  isInvalid: y,
127
- isRequired: g,
127
+ isRequired: x,
128
128
  "aria-busy": a,
129
- onChange: w,
130
- formatOptions: p,
131
- onBlur: x,
132
- ...h,
129
+ onChange: v,
130
+ formatOptions: g,
131
+ onBlur: w,
132
+ ...N,
133
133
  children: [
134
134
  m ? /* @__PURE__ */ e("span", { className: E(), children: m }) : null,
135
- /* @__PURE__ */ o(q, { className: I(), children: [
136
- /* @__PURE__ */ e(A, { className: j() }),
137
- /* @__PURE__ */ o("div", { className: S(), children: [
135
+ /* @__PURE__ */ t(q, { className: I(), children: [
136
+ /* @__PURE__ */ e(A, { ref: p, className: j() }),
137
+ /* @__PURE__ */ t("div", { className: S(), children: [
138
138
  a && /* @__PURE__ */ e(
139
- K,
139
+ J,
140
140
  {
141
141
  color: "inherit",
142
142
  size: "small",
143
- label: t.formatMessage({
143
+ label: o.formatMessage({
144
144
  id: "unity:component:common:loading:label",
145
145
  defaultMessage: "Loading..."
146
146
  })
147
147
  }
148
148
  ),
149
149
  y && /* @__PURE__ */ e(
150
- H,
150
+ C,
151
151
  {
152
152
  src: "WarningCircleOutlined",
153
153
  color: "content.form.invalid",
154
- alt: t.formatMessage({
154
+ alt: o.formatMessage({
155
155
  id: "unity:component:form-field:form-input:error:alt",
156
156
  defaultMessage: "Error"
157
157
  })
@@ -160,7 +160,7 @@ const Q = C({
160
160
  F && /* @__PURE__ */ e(
161
161
  s,
162
162
  {
163
- title: t.formatMessage({
163
+ title: o.formatMessage({
164
164
  id: "unity:component:common:clear:title",
165
165
  defaultMessage: "Clear"
166
166
  }),
@@ -172,7 +172,7 @@ const Q = C({
172
172
  }
173
173
  )
174
174
  ] }),
175
- b && /* @__PURE__ */ o("div", { className: D(), children: [
175
+ b && /* @__PURE__ */ t("div", { className: D(), children: [
176
176
  /* @__PURE__ */ e(
177
177
  s,
178
178
  {
@@ -180,7 +180,7 @@ const Q = C({
180
180
  icon: "MinusOutlined",
181
181
  slot: "decrement",
182
182
  isDisabled: i !== void 0 && r === i,
183
- title: t.formatMessage({
183
+ title: o.formatMessage({
184
184
  id: "unity:component:form-field:number-input:decrement:title",
185
185
  defaultMessage: "decrement"
186
186
  })
@@ -193,7 +193,7 @@ const Q = C({
193
193
  icon: "PlusOutlined",
194
194
  slot: "increment",
195
195
  isDisabled: n !== void 0 && r === n,
196
- title: t.formatMessage({
196
+ title: o.formatMessage({
197
197
  id: "unity:component:form-field:number-input:increment:title",
198
198
  defaultMessage: "increment"
199
199
  })
@@ -207,8 +207,8 @@ const Q = C({
207
207
  );
208
208
  }
209
209
  );
210
- R.displayName = "NumberInput";
210
+ Q.displayName = "NumberInput";
211
211
  export {
212
- R as NumberInput,
213
- Q as numberInput
212
+ Q as NumberInput,
213
+ K as numberInput
214
214
  };
@@ -1,5 +1,5 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { PropsWithChildren } from 'react';
2
- import { VariantProps } from 'tailwind-variants';
3
3
  export declare const page: import('tailwind-variants').TVReturnType<{
4
4
  variant: {
5
5
  default: string[];
@@ -1,6 +1,6 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { forwardRef as y } from "react";
3
- import { tv as t } from "tailwind-variants";
1
+ import { jsx as y } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { uyTv as t } from "@payfit/unity-themes";
4
4
  const o = t({
5
5
  base: "uy:min-h-dvh uy:flex uy:flex-col uy:gap-400",
6
6
  variants: {
@@ -21,10 +21,10 @@ const o = t({
21
21
  defaultVariants: {
22
22
  variant: "default"
23
23
  }
24
- }), l = y(
24
+ }), l = m(
25
25
  ({ children: r, variant: a, ...d }, u) => {
26
26
  const e = o({ variant: a });
27
- return /* @__PURE__ */ m(
27
+ return /* @__PURE__ */ y(
28
28
  "main",
29
29
  {
30
30
  ...d,
@@ -1,5 +1,5 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { PropsWithChildren, ReactNode } from 'react';
2
- import { VariantProps } from 'tailwind-variants';
3
3
  import { BreadcrumbProps } from '../../breadcrumbs/parts/Breadcrumb.js';
4
4
  export declare const pageHeader: import('tailwind-variants').TVReturnType<{
5
5
  [key: string]: {
@@ -1,9 +1,9 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { tv as n } from "tailwind-variants";
4
- import { Breadcrumbs as u } from "../../breadcrumbs/Breadcrumbs.js";
3
+ import { uyTv as u } from "@payfit/unity-themes";
4
+ import { Breadcrumbs as n } from "../../breadcrumbs/Breadcrumbs.js";
5
5
  import { Breadcrumb as y } from "../../breadcrumbs/parts/Breadcrumb.js";
6
- const x = n({
6
+ const x = u({
7
7
  slots: {
8
8
  base: "uy:flex uy:flex-col uy:gap-400",
9
9
  headingActionsWrapper: "uy:flex uy:flex-col uy:gap-400 uy:md:flex-row",
@@ -19,7 +19,7 @@ const x = n({
19
19
  actions: m
20
20
  } = x();
21
21
  return /* @__PURE__ */ o("header", { "data-dd-privacy": "allow", ...i, ref: c, className: d(), children: [
22
- r && /* @__PURE__ */ e(u, { items: r, wrap: "nowrap", children: (l) => /* @__PURE__ */ e(y, { href: l.href, label: l.label }) }),
22
+ r && /* @__PURE__ */ e(n, { items: r, wrap: "nowrap", children: (l) => /* @__PURE__ */ e(y, { href: l.href, label: l.label }) }),
23
23
  /* @__PURE__ */ o("div", { className: f(), children: [
24
24
  /* @__PURE__ */ e("div", { className: t(), children: s }),
25
25
  a && /* @__PURE__ */ e("div", { className: m(), children: a })
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'tailwind-variants';
1
+ import { VariantProps } from '@payfit/unity-themes';
2
2
  export declare const pagination: import('tailwind-variants').TVReturnType<{
3
3
  [key: string]: {
4
4
  [key: string]: import('tailwind-merge').ClassNameValue | {
@@ -1,21 +1,21 @@
1
- import { jsxs as q, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as T, useRef as E, useMemo as N } from "react";
3
- import { useId as R } from "react-aria";
4
- import { useIntl as W } from "react-intl";
5
- import { useOverlayTriggerState as $ } from "react-stately";
6
- import { tv as j } from "tailwind-variants";
1
+ import { jsxs as T, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as q, useRef as E, useMemo as N } from "react";
3
+ import { uyTv as R } from "@payfit/unity-themes";
4
+ import { useId as W } from "react-aria";
5
+ import { useIntl as $ } from "react-intl";
6
+ import { useOverlayTriggerState as j } from "react-stately";
7
7
  import { usePagination as J } from "./hooks/use-pagination.js";
8
8
  import { PaginationEllipsis as K } from "./parts/PaginationEllipsis.js";
9
9
  import { PaginationJumpDialog as O } from "./parts/PaginationJumpDialog.js";
10
10
  import { PaginationLink as S } from "./parts/PaginationLink.js";
11
11
  import { PaginationNavButton as D } from "./parts/PaginationNavButton.js";
12
12
  import { generatePaginationWithWindow as x } from "./utils/pagination-window.js";
13
- const _ = j({
13
+ const _ = R({
14
14
  slots: {
15
15
  base: "uy:flex uy:gap-100 uy:relative",
16
16
  pagesList: "uy:flex uy:gap-100 uy:list-none uy:m-0 uy:p-0"
17
17
  }
18
- }), z = 7, B = T(
18
+ }), z = 7, B = q(
19
19
  ({
20
20
  pageCount: i,
21
21
  defaultPage: p,
@@ -26,12 +26,12 @@ const _ = j({
26
26
  onPreviousPress: c,
27
27
  ...A
28
28
  }, L) => {
29
- const v = R(), u = W(), b = d !== void 0 && g !== void 0 && p === void 0, { currentPage: s, goToPage: n } = J({
29
+ const v = W(), u = $(), y = d !== void 0 && g !== void 0 && p === void 0, { currentPage: s, goToPage: n } = J({
30
30
  pageCount: i,
31
- initialPage: b ? d : p,
31
+ initialPage: y ? d : p,
32
32
  onPageChange: g,
33
- isControlled: b
34
- }), f = $({}), r = E(/* @__PURE__ */ new Map()), h = N(
33
+ isControlled: y
34
+ }), f = j({}), r = E(/* @__PURE__ */ new Map()), h = N(
35
35
  () => x(
36
36
  i,
37
37
  s,
@@ -45,7 +45,7 @@ const _ = j({
45
45
  const e = r.current.get(a);
46
46
  e && e.focus();
47
47
  });
48
- }, y = (a, e) => {
48
+ }, b = (a, e) => {
49
49
  switch (a.key) {
50
50
  case "ArrowLeft":
51
51
  case "ArrowUp":
@@ -90,7 +90,7 @@ const _ = j({
90
90
  }
91
91
  )
92
92
  }, { base: I, pagesList: M } = _();
93
- return /* @__PURE__ */ q(
93
+ return /* @__PURE__ */ T(
94
94
  "nav",
95
95
  {
96
96
  "data-dd-privacy": "allow",
@@ -136,7 +136,7 @@ const _ = j({
136
136
  t && (l == null || l(a.value));
137
137
  },
138
138
  onKeyDown: (t) => {
139
- y(t, a.value);
139
+ b(t, a.value);
140
140
  },
141
141
  isActive: a.value === s,
142
142
  value: a.value,
@@ -150,7 +150,7 @@ const _ = j({
150
150
  {
151
151
  value: a.value,
152
152
  onKeyDown: (t) => {
153
- y(t, -1);
153
+ b(t, -1);
154
154
  },
155
155
  onPress: () => {
156
156
  f.open();
@@ -1,5 +1,5 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { ButtonProps } from 'react-aria-components';
2
- import { VariantProps } from 'tailwind-variants';
3
3
  import { paginationLink } from './PaginationLink.js';
4
4
  export interface PaginationEllipsisProps extends Omit<ButtonProps, 'value' | 'children' | 'className' | 'style' | 'slot'>, VariantProps<typeof paginationLink> {
5
5
  value: [number, number];
@@ -1,16 +1,16 @@
1
- import { jsxs as u, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as r } from "react";
3
- import { Button as a } from "react-aria-components";
4
- import { useIntl as y } from "react-intl";
5
- import { tv as p } from "tailwind-variants";
6
- const c = p({
3
+ import { uyTv as a } from "@payfit/unity-themes";
4
+ import { Button as y } from "react-aria-components";
5
+ import { useIntl as p } from "react-intl";
6
+ const c = a({
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:cursor-default",
9
9
  "uy:focus-visible:outline-2 uy:focus-visible:outline-solid uy:focus-visible:outline-utility-focus-ring uy:focus-visible:outline-offset-2"
10
10
  ]
11
11
  }), f = r(({ value: s, ...e }, o) => {
12
- const t = y(), [n, l] = s;
13
- return /* @__PURE__ */ u(a, { ref: o, className: c(), ...e, children: [
12
+ const t = p(), [n, u] = s;
13
+ return /* @__PURE__ */ l(y, { ref: o, className: c(), ...e, children: [
14
14
  /* @__PURE__ */ i("span", { "aria-hidden": !0, children: "…" }),
15
15
  /* @__PURE__ */ i("span", { className: "uy:sr-only", children: t.formatMessage(
16
16
  {
@@ -19,7 +19,7 @@ const c = p({
19
19
  },
20
20
  {
21
21
  start: n,
22
- end: l
22
+ end: u
23
23
  }
24
24
  ) })
25
25
  ] });