@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,8 +1,8 @@
1
- import { jsx as u } from "react/jsx-runtime";
1
+ import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as d } from "react";
3
- import { tv as o } from "tailwind-variants";
4
- import { useFunnelLayoutContext as t } from "../FunnelLayout.context.js";
5
- const i = o({
3
+ import { uyTv as o } from "@payfit/unity-themes";
4
+ import { useFunnelLayoutContext as i } from "../FunnelLayout.context.js";
5
+ const t = o({
6
6
  base: [
7
7
  "uy:group/funnelpage uy:bg-surface-neutral uy:p-100 uy:pb-500 uy:md:shadow-raising uy:md:border-border-neutral uy:md:border uy:md:border-solid uy:md:rounded-400",
8
8
  "uy:basis-full uy:shrink-0 uy:grow-1 uy:md:shrink",
@@ -10,19 +10,19 @@ const i = o({
10
10
  "uy:md:max-w-container-lg uy:lg:max-w-container-xl"
11
11
  ]
12
12
  }), l = d(
13
- ({ children: n, ...r }, a) => {
14
- const { ids: e } = t();
15
- return /* @__PURE__ */ u(
13
+ ({ children: n, ...r }, u) => {
14
+ const { ids: e } = i();
15
+ return /* @__PURE__ */ a(
16
16
  "main",
17
17
  {
18
18
  "data-dd-privacy": "mask-user-input",
19
19
  ...r,
20
- ref: a,
20
+ ref: u,
21
21
  id: e.mainContentId,
22
22
  "aria-labelledby": e.funnelTitleId,
23
23
  "aria-describedby": e.funnelDescriptionId,
24
24
  tabIndex: -1,
25
- className: i(),
25
+ className: t(),
26
26
  "data-unity-component": "FunnelPage",
27
27
  children: n
28
28
  }
@@ -32,5 +32,5 @@ const i = o({
32
32
  l.displayName = "FunnelPage";
33
33
  export {
34
34
  l as FunnelPage,
35
- i as funnelPage
35
+ t as funnelPage
36
36
  };
@@ -31,7 +31,7 @@ export interface FunnelPageActionProps extends PropsWithChildren<Omit<ButtonProp
31
31
  * - Optional actions use ghost variant for less prominent actions
32
32
  * - Automatically sets DataDog's session replay privacy to `data-dd-privacy="allow"`
33
33
  * @see {@link FunnelPageActionProps} for all available props
34
- * @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/packages/unity/components/src/components/funnel-layout/parts GitHub}
34
+ * @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
35
35
  * @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
36
36
  * @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
37
37
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funnelpage-funnelpageaction--docs unity-components.payfit.io}
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'tailwind-variants';
1
+ import { VariantProps } from '@payfit/unity-themes';
2
2
  export declare const funnelPageActions: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:flex uy:flex-col uy:gap-200 uy:md:flex-row uy:md:justify-between", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "uy:flex uy:flex-col uy:gap-200 uy:md:flex-row uy:md:justify-between", unknown, unknown, undefined>>;
3
3
  export interface FunnelPageActionsProps extends VariantProps<typeof funnelPageActions> {
4
4
  /**
@@ -38,7 +38,7 @@ export interface FunnelPageActionsProps extends VariantProps<typeof funnelPageAc
38
38
  * - Uses render functions for maximum flexibility in action content
39
39
  * - Automatically sets DataDog's session replay privacy to `data-dd-privacy="allow"`
40
40
  * @see {@link FunnelPageActionsProps} for all available props
41
- * @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/packages/unity/components/src/components/funnel-layout/parts GitHub}
41
+ * @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
42
42
  * @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
43
43
  * @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
44
44
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funnelpage-funnelpageactions--docs unity-components.payfit.io}
@@ -1,32 +1,32 @@
1
- import { jsxs as l, Fragment as g, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as t } from "react";
3
- import { tv as h } from "tailwind-variants";
4
- import { useBreakpointListener as p } from "../../../hooks/use-breakpoint-listener.js";
5
- const b = h({
1
+ import { jsxs as l, Fragment as u, jsx as s } from "react/jsx-runtime";
2
+ import { forwardRef as h } from "react";
3
+ import { uyTv as p } from "@payfit/unity-themes";
4
+ import { useBreakpointListener as t } from "../../../hooks/use-breakpoint-listener.js";
5
+ const b = p({
6
6
  base: "uy:flex uy:flex-col uy:gap-200 uy:md:flex-row uy:md:justify-between"
7
- }), w = t(
8
- ({ renderNext: f, renderPrevious: a, renderOptionalActions: m, ...u }, x) => {
9
- const y = p(), c = y === "xs" || y === "sm";
7
+ }), w = h(
8
+ ({ renderNext: y, renderPrevious: a, renderOptionalActions: m, ...g }, x) => {
9
+ const f = t(), c = f === "xs" || f === "sm";
10
10
  return /* @__PURE__ */ l(
11
11
  "div",
12
12
  {
13
13
  ref: x,
14
14
  "data-dd-privacy": "allow",
15
- ...u,
15
+ ...g,
16
16
  className: b(),
17
17
  role: "group",
18
18
  "data-unity-component": "FunnelPageActions",
19
19
  children: [
20
- c && /* @__PURE__ */ l(g, { children: [
21
- f(),
20
+ c && /* @__PURE__ */ l(u, { children: [
21
+ y(),
22
22
  a == null ? void 0 : a(),
23
23
  m == null ? void 0 : m()
24
24
  ] }),
25
- !c && /* @__PURE__ */ l(g, { children: [
25
+ !c && /* @__PURE__ */ l(u, { children: [
26
26
  /* @__PURE__ */ s("div", { className: "uy:flex uy:gap-100", children: m == null ? void 0 : m() }),
27
27
  /* @__PURE__ */ l("div", { className: "uy:flex uy:gap-100", children: [
28
28
  a == null ? void 0 : a(),
29
- f()
29
+ y()
30
30
  ] })
31
31
  ] })
32
32
  ]
@@ -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 funnelPageContent: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:flex-1 uy:px-300 uy:my-400 uy:md:px-600 uy:group-has-[[data-unity-component=\"FunnelPageHeader\"]]/funnelpage:mt-0", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "uy:flex-1 uy:px-300 uy:my-400 uy:md:px-600 uy:group-has-[[data-unity-component=\"FunnelPageHeader\"]]/funnelpage:mt-0", unknown, unknown, undefined>>;
4
4
  export type FunnelPageContentProps = PropsWithChildren<VariantProps<typeof funnelPageContent>>;
5
5
  /**
@@ -24,7 +24,7 @@ export type FunnelPageContentProps = PropsWithChildren<VariantProps<typeof funne
24
24
  * - Uses semantic section element for proper document structure
25
25
  * - Automatically sets DataDog's session replay privacy to `data-dd-privacy="mask"`
26
26
  * @see {@link FunnelPageContentProps} for all available props
27
- * @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/packages/unity/components/src/components/funnel-layout/parts GitHub}
27
+ * @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
28
28
  * @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
29
29
  * @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
30
30
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funnelpage-funnelpagecontent--docs unity-components.payfit.io}
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
- import { tv as u } from "tailwind-variants";
3
+ import { uyTv as u } from "@payfit/unity-themes";
4
4
  const m = u({
5
5
  base: 'uy:flex-1 uy:px-300 uy:my-400 uy:md:px-600 uy:group-has-[[data-unity-component="FunnelPageHeader"]]/funnelpage:mt-0'
6
6
  }), r = o(
@@ -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 funnelPageFooter: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:px-300 uy:md:px-600", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "uy:px-300 uy:md:px-600", unknown, unknown, undefined>>;
4
4
  export type FunnelPageFooterProps = PropsWithChildren<VariantProps<typeof funnelPageFooter>>;
5
5
  /**
@@ -25,7 +25,7 @@ export type FunnelPageFooterProps = PropsWithChildren<VariantProps<typeof funnel
25
25
  * - Uses semantic footer element for proper document structure
26
26
  * - Automatically sets DataDog's session replay privacy to `data-dd-privacy="allow"`
27
27
  * @see {@link FunnelPageFooterProps} for all available props
28
- * @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/packages/unity/components/src/components/funnel-layout/parts GitHub}
28
+ * @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
29
29
  * @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
30
30
  * @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
31
31
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funnelpage-funnelpagefooter--docs unity-components.payfit.io}
@@ -1,10 +1,10 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as n } from "react";
3
- import { tv as d } from "tailwind-variants";
3
+ import { uyTv as d } from "@payfit/unity-themes";
4
4
  import { useFunnelLayoutContext as m } from "../FunnelLayout.context.js";
5
- const s = d({
5
+ const u = d({
6
6
  base: "uy:px-300 uy:md:px-600"
7
- }), u = n(
7
+ }), s = n(
8
8
  ({ children: o, ...e }, t) => {
9
9
  const { ids: r } = m();
10
10
  return /* @__PURE__ */ a(
@@ -13,7 +13,7 @@ const s = d({
13
13
  ref: t,
14
14
  "data-dd-privacy": "allow",
15
15
  ...e,
16
- className: s(),
16
+ className: u(),
17
17
  "data-unity-component": "FunnelPageFooter",
18
18
  id: r.footerId,
19
19
  tabIndex: -1,
@@ -22,8 +22,8 @@ const s = d({
22
22
  );
23
23
  }
24
24
  );
25
- u.displayName = "FunnelPageFooter";
25
+ s.displayName = "FunnelPageFooter";
26
26
  export {
27
- u as FunnelPageFooter,
28
- s as funnelPageFooter
27
+ s as FunnelPageFooter,
28
+ u as funnelPageFooter
29
29
  };
@@ -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 funnelPageHeader: import('tailwind-variants').TVReturnType<{
4
4
  gradient: {
5
5
  default: {
@@ -68,7 +68,7 @@ export interface FunnelPageHeaderProps extends PropsWithChildren<VariantProps<ty
68
68
  * - Responsive image display that adapts to screen size
69
69
  * - Automatically sets DataDog's session replay privacy to `data-dd-privacy="allow"`
70
70
  * @see {@link FunnelPageHeaderProps} for all available props
71
- * @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/packages/unity/components/src/components/funnel-layout/parts GitHub}
71
+ * @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
72
72
  * @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
73
73
  * @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
74
74
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funnelpage-funnelpageheader--docs unity-components.payfit.io}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { tv as h } from "tailwind-variants";
3
+ import { uyTv as h } from "@payfit/unity-themes";
4
4
  import { Text as n } from "../../text/Text.js";
5
5
  import { useFunnelLayoutContext as x } from "../FunnelLayout.context.js";
6
6
  const b = h({
@@ -22,19 +22,19 @@ const b = h({
22
22
  }
23
23
  }), v = p(
24
24
  ({ title: t, subtitle: u, imageSlot: r, imageSlotAltText: l, children: d, style: i, ...o }, s) => {
25
- const { ids: m } = x(), { base: y, hgroup: c, figure: f, figcaption: g } = b({
25
+ const { ids: y } = x(), { base: m, hgroup: c, figure: f, figcaption: g } = b({
26
26
  gradient: i
27
27
  });
28
28
  return /* @__PURE__ */ e(
29
29
  "header",
30
30
  {
31
31
  ref: s,
32
- className: y(),
32
+ className: m(),
33
33
  "data-unity-component": "FunnelPageHeader",
34
34
  "data-dd-privacy": "allow",
35
35
  ...o,
36
36
  children: [
37
- /* @__PURE__ */ e("hgroup", { className: c(), id: m.funnelDescriptionId, children: [
37
+ /* @__PURE__ */ e("hgroup", { className: c(), id: y.funnelDescriptionId, children: [
38
38
  /* @__PURE__ */ a(n, { asElement: "h2", variant: "h1", children: t }),
39
39
  /* @__PURE__ */ a(n, { asElement: "h3", variant: "subtitle", color: "content.neutral.low", children: u }),
40
40
  d
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { VariantProps } from 'tailwind-variants';
2
+ import { VariantProps } from '@payfit/unity-themes';
3
3
  declare const progressBar: import('tailwind-variants').TVReturnType<{
4
4
  isFull: {
5
5
  true: {
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
- import { ProgressBar as n } from "react-aria-components";
4
- import { tv as d } from "tailwind-variants";
5
- const y = d({
3
+ import { uyTv as n } from "@payfit/unity-themes";
4
+ import { ProgressBar as d } from "react-aria-components";
5
+ const y = n({
6
6
  slots: {
7
7
  base: ["uy:bg-surface-neutral-disabled", "uy:w-full uy:h-50"],
8
8
  meter: [
@@ -24,7 +24,7 @@ const y = d({
24
24
  ({ value: e, ...a }, s) => {
25
25
  const l = e >= 100, { base: u, meter: o } = y({ isFull: l });
26
26
  return /* @__PURE__ */ r(
27
- n,
27
+ d,
28
28
  {
29
29
  ref: s,
30
30
  value: e,
@@ -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 funnelSidebar: import('tailwind-variants').TVReturnType<{
4
4
  isSticky: {
5
5
  true: string;
@@ -46,7 +46,7 @@ export interface FunnelSidebarProps extends PropsWithChildren<VariantProps<typeo
46
46
  * - Provides responsive sizing that adapts to content and screen size
47
47
  * - Automatically sets DataDog's session replay privacy to `data-dd-privacy="allow"`
48
48
  * @see {@link FunnelSidebarProps} for all available props
49
- * @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/packages/unity/components/src/components/funnel-layout/parts GitHub}
49
+ * @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
50
50
  * @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
51
51
  * @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
52
52
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funnelsidebar--docs unity-components.payfit.io}
@@ -1,9 +1,9 @@
1
- import { jsx as u } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as l } from "react";
3
- import { useIntl as d } from "react-intl";
4
- import { tv as o } from "tailwind-variants";
3
+ import { uyTv as d } from "@payfit/unity-themes";
4
+ import { useIntl as o } from "react-intl";
5
5
  import { useFunnelLayoutContext as y } from "../FunnelLayout.context.js";
6
- const m = o({
6
+ const m = d({
7
7
  base: "uy:w-full uy:self-start uy:shrink uy:grow-0 uy:md:top-600 uy:md:basis-1/3 uy:lg:basis-1/4 uy:md:shrink-0",
8
8
  variants: {
9
9
  isSticky: {
@@ -16,12 +16,12 @@ const m = o({
16
16
  }
17
17
  }), f = l(
18
18
  ({ children: e, isSticky: t, "aria-label": s, ...i }, r) => {
19
- const { ids: a } = y(), n = d();
20
- return /* @__PURE__ */ u(
19
+ const { ids: a } = y(), u = o();
20
+ return /* @__PURE__ */ n(
21
21
  "aside",
22
22
  {
23
23
  ref: r,
24
- "aria-label": s ?? n.formatMessage({
24
+ "aria-label": s ?? u.formatMessage({
25
25
  id: "unity:layout:funnel:sidebar:aria-label",
26
26
  defaultMessage: "Process steps"
27
27
  }),
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'tailwind-variants';
1
+ import { VariantProps } from '@payfit/unity-themes';
2
2
  export declare const funnelTopBar: import('tailwind-variants').TVReturnType<{
3
3
  [key: string]: {
4
4
  [key: string]: import('tailwind-merge').ClassNameValue | {
@@ -82,7 +82,7 @@ export interface FunnelTopBarProps extends VariantProps<typeof funnelTopBar> {
82
82
  * - Supports optional global actions in the top bar
83
83
  * - Automatically sets DataDog's session replay privacy to `data-dd-privacy="allow"`
84
84
  * @see {@link FunnelTopBarProps} for all available props
85
- * @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/packages/unity/components/src/components/funnel-layout/parts GitHub}
85
+ * @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
86
86
  * @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
87
87
  * @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
88
88
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funneltopbar--docs unity-components.payfit.io}
@@ -1,13 +1,13 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as x, useMemo as I } from "react";
3
- import { useIntl as N } from "react-intl";
4
- import { tv as w } from "tailwind-variants";
3
+ import { uyTv as N } from "@payfit/unity-themes";
4
+ import { useIntl as w } from "react-intl";
5
5
  import { useBreakpointListener as M } from "../../../hooks/use-breakpoint-listener.js";
6
6
  import { Button as P } from "../../button/Button.js";
7
- import { IconButton as B } from "../../icon-button/IconButton.js";
8
- import { useFunnelLayoutContext as F } from "../FunnelLayout.context.js";
9
- import { FunnelProgressBar as T } from "./FunnelProgressBar.js";
10
- const A = w({
7
+ import { IconButton as T } from "../../icon-button/IconButton.js";
8
+ import { useFunnelLayoutContext as B } from "../FunnelLayout.context.js";
9
+ import { FunnelProgressBar as F } from "./FunnelProgressBar.js";
10
+ const A = N({
11
11
  slots: {
12
12
  base: ["uy:bg-surface-neutral uy:shadow-raising"],
13
13
  titleWrapper: [
@@ -30,7 +30,7 @@ const A = w({
30
30
  title: m,
31
31
  ...p
32
32
  }, y) => {
33
- const a = N(), { ids: n } = F(), { base: f, titleWrapper: g, title: h } = A(), v = M(), b = !["xs", "sm"].includes(v), d = I(
33
+ const a = w(), { ids: n } = B(), { base: f, titleWrapper: g, title: h } = A(), v = M(), b = !["xs", "sm"].includes(v), d = I(
34
34
  () => ({
35
35
  navigationDescription: a.formatMessage({
36
36
  id: "unity:layout:funnel:top-bar:navigation-desc",
@@ -77,7 +77,7 @@ const A = w({
77
77
  children: i
78
78
  }
79
79
  ) : /* @__PURE__ */ e(
80
- B,
80
+ T,
81
81
  {
82
82
  variant: "ghost",
83
83
  color: "neutral",
@@ -101,7 +101,7 @@ const A = w({
101
101
  ]
102
102
  }
103
103
  ),
104
- c && /* @__PURE__ */ e("div", { "aria-hidden": "true", children: /* @__PURE__ */ e(T, { value: t ?? 0 }) }),
104
+ c && /* @__PURE__ */ e("div", { "aria-hidden": "true", children: /* @__PURE__ */ e(F, { value: t ?? 0 }) }),
105
105
  /* @__PURE__ */ e(
106
106
  "div",
107
107
  {
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'tailwind-variants';
1
+ import { VariantProps } from '@payfit/unity-themes';
2
2
  import { grid } from './Grid.variants.js';
3
3
  export type GridContainerVariantProps = VariantProps<typeof grid>;
4
4
  type ElementType = 'div' | 'span' | 'section' | 'nav' | 'aside' | 'header' | 'footer' | 'main' | 'article';
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'tailwind-variants';
1
+ import { VariantProps } from '@payfit/unity-themes';
2
2
  export declare const grid: import('tailwind-variants').TVReturnType<{
3
3
  inline: {
4
4
  true: string;
@@ -1,5 +1,5 @@
1
- import { tv as t } from "tailwind-variants";
2
- const l = t(
1
+ import { uyTv as u } from "@payfit/unity-themes";
2
+ const l = u(
3
3
  {
4
4
  base: "uy:grid-layout",
5
5
  variants: {
@@ -48,7 +48,7 @@ const l = t(
48
48
  // {
49
49
  // responsiveVariants: true,
50
50
  // },
51
- ), y = t(
51
+ ), y = u(
52
52
  {
53
53
  variants: {
54
54
  colSpan: {
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'tailwind-variants';
1
+ import { VariantProps } from '@payfit/unity-themes';
2
2
  import { gridItem } from './Grid.variants.js';
3
3
  export type GridItemVariantProps = VariantProps<typeof gridItem>;
4
4
  type ElementType = 'div' | 'span' | 'section' | 'nav' | 'aside' | 'header' | 'footer' | 'main' | 'article';
@@ -1,6 +1,6 @@
1
1
  import { UnityIcon } from '@payfit/unity-icons';
2
+ import { VariantProps } from '@payfit/unity-themes';
2
3
  import { HTMLAttributes } from 'react';
3
- import { VariantProps } from 'tailwind-variants';
4
4
  declare const icon: import('tailwind-variants').TVReturnType<{
5
5
  size: {
6
6
  20: string;
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { IconSprite as i } from "@payfit/unity-icons";
3
- import { tv as d } from "tailwind-variants";
3
+ import { uyTv as d } from "@payfit/unity-themes";
4
4
  const l = d({
5
5
  variants: {
6
6
  size: {
@@ -1,6 +1,6 @@
1
1
  import { UnityIcon } from '@payfit/unity-icons';
2
+ import { VariantProps } from '@payfit/unity-themes';
2
3
  import { ButtonProps as AriaButtonProps } from 'react-aria-components';
3
- import { VariantProps } from 'tailwind-variants';
4
4
  export declare const circularIconButton: import('tailwind-variants').TVReturnType<{
5
5
  size: {
6
6
  default: string;
@@ -1,13 +1,13 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { Button as v, Pressable as w } from "react-aria-components";
3
- import { tv as x } from "tailwind-variants";
4
- import z from "../../hooks/use-id.js";
2
+ import { uyTv as w } from "@payfit/unity-themes";
3
+ import { Button as x, Pressable as z } from "react-aria-components";
4
+ import I from "../../hooks/use-id.js";
5
5
  import { Icon as d } from "../icon/Icon.js";
6
6
  import { Spinner as y } from "../spinner/Spinner.js";
7
7
  import { Tooltip as b } from "../tooltip/Tooltip.js";
8
- const I = x({
8
+ const N = w({
9
9
  base: [
10
- "uy:rounded-circle uy:flex uy:items-center uy:justify-center uy:transition-colors",
10
+ "uy:rounded-circle uy:cursor-pointer uy:flex uy:items-center uy:justify-center uy:transition-colors",
11
11
  "uy:active:bg-surface-neutral-active",
12
12
  "uy:data-[pressed]:bg-surface-neutral-pressed",
13
13
  "uy:focus-visible:outline-2 uy:focus-visible:outline-offset-2 uy:focus-visible:outline-utility-focus-ring",
@@ -30,27 +30,28 @@ const I = x({
30
30
  color: "content.neutral.low"
31
31
  }
32
32
  });
33
- function N(m) {
34
- const f = z(), {
33
+ function B(m) {
34
+ const f = I(), {
35
35
  onPress: i,
36
36
  icon: n,
37
37
  color: p,
38
38
  size: r,
39
39
  isLoading: t,
40
- title: l,
40
+ title: a,
41
41
  isDisabled: o,
42
42
  asElement: h = "default",
43
43
  className: g,
44
+ "aria-labelledby": v,
44
45
  ...s
45
- } = m, a = `icon-button-label-${f}`, u = I({ class: g, color: p, size: r });
46
- return h === "button" ? /* @__PURE__ */ e(b, { title: l, children: /* @__PURE__ */ c(
47
- v,
46
+ } = m, l = `icon-button-label-${f}`, u = N({ class: g, color: p, size: r });
47
+ return h === "button" ? /* @__PURE__ */ e(b, { title: a, children: /* @__PURE__ */ c(
48
+ x,
48
49
  {
49
50
  "data-dd-privacy": "allow",
50
51
  ...s,
51
52
  onPress: i,
52
53
  isDisabled: o || t,
53
- "aria-labelledby": a,
54
+ "aria-labelledby": v ?? l,
54
55
  "aria-busy": t,
55
56
  className: u,
56
57
  children: [
@@ -63,17 +64,17 @@ function N(m) {
63
64
  role: "presentation"
64
65
  }
65
66
  ),
66
- /* @__PURE__ */ e("span", { id: a, className: "uy:sr-only", children: l })
67
+ /* @__PURE__ */ e("span", { id: l, className: "uy:sr-only", children: a })
67
68
  ]
68
69
  }
69
- ) }) : /* @__PURE__ */ e(b, { title: l, children: /* @__PURE__ */ e(
70
- w,
70
+ ) }) : /* @__PURE__ */ e(b, { title: a, children: /* @__PURE__ */ e(
71
+ z,
71
72
  {
72
73
  "data-dd-privacy": "allow",
73
74
  ...s,
74
75
  onPress: i,
75
76
  isDisabled: o || t,
76
- "aria-labelledby": a,
77
+ "aria-labelledby": l,
77
78
  "aria-busy": t,
78
79
  children: /* @__PURE__ */ c("div", { role: "button", "aria-disabled": o, className: u, children: [
79
80
  t ? /* @__PURE__ */ e(y, { size: "small", label: "Loading", color: "inherit" }) : /* @__PURE__ */ e(
@@ -85,13 +86,13 @@ function N(m) {
85
86
  role: "presentation"
86
87
  }
87
88
  ),
88
- /* @__PURE__ */ e("span", { id: a, className: "uy:sr-only", children: l })
89
+ /* @__PURE__ */ e("span", { id: l, className: "uy:sr-only", children: a })
89
90
  ] })
90
91
  }
91
92
  ) });
92
93
  }
93
- N.displayName = "CircularIconButton";
94
+ B.displayName = "CircularIconButton";
94
95
  export {
95
- N as CircularIconButton,
96
- I as circularIconButton
96
+ B as CircularIconButton,
97
+ N as circularIconButton
97
98
  };
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'tailwind-variants';
1
+ import { VariantProps } from '@payfit/unity-themes';
2
2
  export declare const iconButtonPrimary: import('tailwind-variants').TVReturnType<{
3
3
  variant: {
4
4
  primary: string;
@@ -1,9 +1,9 @@
1
- import { tv as e } from "tailwind-variants";
1
+ import { uyTv as e } from "@payfit/unity-themes";
2
2
  const t = e({
3
3
  slots: {
4
4
  button: [
5
5
  "uy:group",
6
- "uy:w-500 uy:min-w-500 uy:h-500 uy:min-h-500 uy:flex uy:justify-center uy:items-center uy:rounded-75",
6
+ "uy:w-500 uy:min-w-500 uy:h-500 uy:min-h-500 uy:flex uy:justify-center uy:items-center uy:rounded-75 uy:cursor-pointer",
7
7
  "uy:focus-visible:outline-2 uy:focus-visible:outline-offset-2 uy:focus-visible:outline-utility-focus-ring"
8
8
  ],
9
9
  icon: "uy:w-250 uy:h-250"
@@ -1,12 +1,12 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as v } from "react";
3
- import { Input as h } from "react-aria-components";
4
- import { useIntl as I } from "react-intl";
5
- import { tv as N } from "tailwind-variants";
3
+ import { uyTv as h } from "@payfit/unity-themes";
4
+ import { Input as I } from "react-aria-components";
5
+ import { useIntl as N } from "react-intl";
6
6
  import { CircularIconButton as W } from "../icon-button/CircularIconButton.js";
7
7
  import { Icon as M } from "../icon/Icon.js";
8
8
  import { Spinner as O } from "../spinner/Spinner.js";
9
- const S = N({
9
+ const S = h({
10
10
  slots: {
11
11
  base: "uy:flex uy:h-500 uy:border uy:border-solid uy:rounded-100 uy:focus-within:outline-none uy:focus-within:ring-2 uy:focus-within:ring-utility-focus-ring uy:focus-within:ring-offset-2 uy:active:border-border-form-active",
12
12
  prefix: "uy:flex-grow-0 uy:text-content-neutral-low uy:content-center uy:pt-100 uy:pb-100 uy:pl-150 uy:pr-150 uy:border-r uy:border-solid uy:rounded-l-100 uy:active:border-border-form-active",
@@ -72,7 +72,7 @@ const S = N({
72
72
  onClearButtonPress: t,
73
73
  ...a
74
74
  }, y) => {
75
- const d = I(), {
75
+ const d = N(), {
76
76
  base: b,
77
77
  prefix: m,
78
78
  inputWrapper: c,
@@ -88,7 +88,7 @@ const S = N({
88
88
  l ? /* @__PURE__ */ e("span", { className: m(), children: l }) : null,
89
89
  /* @__PURE__ */ n("div", { className: c(), children: [
90
90
  /* @__PURE__ */ e(
91
- h,
91
+ I,
92
92
  {
93
93
  "data-dd-privacy": "mask",
94
94
  ...a,