@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,6 +1,6 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { useRef as v } from "react";
3
- import { tv as x } from "tailwind-variants";
3
+ import { uyTv as x } from "@payfit/unity-themes";
4
4
  import { useResizeObserver as g } from "usehooks-ts";
5
5
  const w = x({
6
6
  slots: {
@@ -40,11 +40,11 @@ function R({
40
40
  children: y,
41
41
  menu: l,
42
42
  header: a,
43
- footer: r,
43
+ footer: u,
44
44
  withoutContentPadding: n = !1
45
45
  }) {
46
- const u = v(null), { height: o = 0 } = g({
47
- ref: u,
46
+ const r = v(null), { height: o = 0 } = g({
47
+ ref: r,
48
48
  box: "border-box"
49
49
  }), { body: p, header: s, menu: d, layoutWrapper: i, contentWrapper: c, content: f, footer: h } = w({
50
50
  withoutContentPadding: n
@@ -56,7 +56,7 @@ function R({
56
56
  a && /* @__PURE__ */ e(
57
57
  "div",
58
58
  {
59
- ref: u,
59
+ ref: r,
60
60
  className: s(),
61
61
  role: "alert",
62
62
  "aria-live": "assertive",
@@ -67,7 +67,7 @@ function R({
67
67
  /* @__PURE__ */ e("div", { className: d(), children: l }),
68
68
  /* @__PURE__ */ t("div", { className: c(), children: [
69
69
  /* @__PURE__ */ e("div", { className: f(), children: y }),
70
- r && /* @__PURE__ */ e("footer", { className: h(), children: r })
70
+ u && /* @__PURE__ */ e("footer", { className: h(), children: u })
71
71
  ] })
72
72
  ] })
73
73
  ] });
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { useState as g, useRef as I, isValidElement as O, cloneElement as V } from "react";
3
- import { uyMerge as v } from "@payfit/unity-themes";
2
+ import { useState as v, useRef as I, isValidElement as O, cloneElement as V } from "react";
3
+ import { uyMerge as g } from "@payfit/unity-themes";
4
4
  import { FormattedMessage as h, useIntl as z } from "react-intl";
5
5
  import { Actionable as x } from "../../actionable/Actionable.js";
6
6
  import { Avatar as F } from "../../avatar/Avatar.js";
@@ -30,15 +30,15 @@ const N = (t) => /* @__PURE__ */ l(
30
30
  ), R = ({
31
31
  avatar: t,
32
32
  avatarPair: r,
33
- title: a,
33
+ title: o,
34
34
  uploadAvatarCallback: u,
35
35
  uploadAvatarLabel: c,
36
- uploadAvatarDescription: n
36
+ uploadAvatarDescription: a
37
37
  }) => {
38
- const [o, s] = g(!0), y = z(), i = () => {
38
+ const [n, s] = v(!0), y = z(), i = () => {
39
39
  r && s((f) => !f);
40
- }, d = v(
41
- "uy:group uy:cursor-pointer uy:relative uy:leading-[0] uy:rounded-75 uy:focus-visible:outline-none uy:focus-visible:ring-2 uy:focus-visible:ring-utility-focus-ring uy:focus-visible:ring-offset-2"
40
+ }, d = g(
41
+ "uy:group/avatar uy:cursor-pointer uy:relative uy:leading-[0] uy:rounded-75 uy:focus-visible:outline-none uy:focus-visible:ring-2 uy:focus-visible:ring-utility-focus-ring uy:focus-visible:ring-offset-2"
42
42
  );
43
43
  return /* @__PURE__ */ l(
44
44
  x,
@@ -62,11 +62,11 @@ const N = (t) => /* @__PURE__ */ l(
62
62
  {
63
63
  avatar: t,
64
64
  avatarPair: r,
65
- title: a,
66
- isPairAvatarVisible: o
65
+ title: o,
66
+ isPairAvatarVisible: n
67
67
  }
68
68
  ),
69
- /* @__PURE__ */ l("div", { className: "uy:flex uy:pointer-events-none uy:opacity-0 uy:group-hover:opacity-70 uy:group-hover:pointer-events-auto uy:group-focus-visible:opacity-70 uy:group-focus-visible:pointer-events-auto uy:bg-utility-backdrop uy:rounded-circle uy:absolute uy:top-0 uy:left-0 uy:w-full uy:h-full uy:transition-all uy:duration-200 uy:items-center uy:justify-center", children: [
69
+ /* @__PURE__ */ l("div", { className: "uy:flex uy:pointer-events-none uy:opacity-0 uy:group-hover/avatar:opacity-70 uy:group-hover/avatar:pointer-events-auto uy:group-focus-visible/avatar:opacity-70 uy:group-focus-visible/avatar:pointer-events-auto uy:bg-utility-backdrop uy:rounded-circle uy:absolute uy:top-0 uy:left-0 uy:w-full uy:h-full uy:transition-all uy:duration-200 uy:items-center uy:justify-center", children: [
70
70
  /* @__PURE__ */ e(
71
71
  M,
72
72
  {
@@ -76,7 +76,7 @@ const N = (t) => /* @__PURE__ */ l(
76
76
  src: "CameraOutlined"
77
77
  }
78
78
  ),
79
- /* @__PURE__ */ e("span", { className: "uy:sr-only", id: "profile-picture-change-desc", children: n || /* @__PURE__ */ e(
79
+ /* @__PURE__ */ e("span", { className: "uy:sr-only", id: "profile-picture-change-desc", children: a || /* @__PURE__ */ e(
80
80
  h,
81
81
  {
82
82
  id: "unity:component:app-menu:footer:profile-button:avatar:change-description",
@@ -90,11 +90,11 @@ const N = (t) => /* @__PURE__ */ l(
90
90
  }, b = ({
91
91
  asMenuHeader: t = !1,
92
92
  avatar: r,
93
- avatarPair: a,
93
+ avatarPair: o,
94
94
  badgeLabel: u,
95
95
  description: c,
96
- menuTriggerDescription: n,
97
- title: o,
96
+ menuTriggerDescription: a,
97
+ title: n,
98
98
  uploadAvatarCallback: s,
99
99
  uploadAvatarLabel: y,
100
100
  uploadAvatarDescription: i
@@ -103,8 +103,8 @@ const N = (t) => /* @__PURE__ */ l(
103
103
  R,
104
104
  {
105
105
  avatar: r,
106
- avatarPair: a,
107
- title: o,
106
+ avatarPair: o,
107
+ title: n,
108
108
  uploadAvatarLabel: y,
109
109
  uploadAvatarDescription: i,
110
110
  uploadAvatarCallback: s
@@ -113,8 +113,8 @@ const N = (t) => /* @__PURE__ */ l(
113
113
  N,
114
114
  {
115
115
  avatar: r,
116
- avatarPair: a,
117
- title: o,
116
+ avatarPair: o,
117
+ title: n,
118
118
  isPairAvatarVisible: !0
119
119
  }
120
120
  ) }),
@@ -125,7 +125,7 @@ const N = (t) => /* @__PURE__ */ l(
125
125
  id: "profile-button-label",
126
126
  className: "uy:typography-body-strong uy:text-content-neutral uy:text-wrap",
127
127
  "data-dd-privacy": "mask",
128
- children: o
128
+ children: n
129
129
  }
130
130
  ),
131
131
  /* @__PURE__ */ e(
@@ -136,7 +136,7 @@ const N = (t) => /* @__PURE__ */ l(
136
136
  children: c
137
137
  }
138
138
  ),
139
- !t && /* @__PURE__ */ e("span", { id: "profile-button-description", className: "uy:sr-only", children: n || /* @__PURE__ */ e(
139
+ !t && /* @__PURE__ */ e("span", { id: "profile-button-description", className: "uy:sr-only", children: a || /* @__PURE__ */ e(
140
140
  h,
141
141
  {
142
142
  id: "unity:component:app-menu:footer:profile-button:description",
@@ -156,17 +156,17 @@ const N = (t) => /* @__PURE__ */ l(
156
156
  ] }), D = ({
157
157
  avatar: t,
158
158
  avatarPair: r,
159
- badgeLabel: a,
159
+ badgeLabel: o,
160
160
  children: u,
161
161
  computeSlot: c,
162
- description: n,
163
- title: o,
162
+ description: a,
163
+ title: n,
164
164
  menuTriggerDescription: s,
165
165
  uploadAvatarCallback: y,
166
166
  uploadAvatarLabel: i,
167
167
  uploadAvatarDescription: d
168
168
  }) => {
169
- const { isMobileMenuOpen: f } = C(), [w, m] = g(!1), p = I(null), P = v(
169
+ const { isMobileMenuOpen: f } = C(), [w, m] = v(!1), p = I(null), P = g(
170
170
  "uy:fixed uy:bottom-0 uy:left-0 uy:right-0 uy:z-10 uy:bg-canvas",
171
171
  "uy:p-150",
172
172
  "uy:md:static uy:md:mt-auto uy:md:p-0 uy:md:bg-[transparent]",
@@ -195,10 +195,10 @@ const N = (t) => /* @__PURE__ */ l(
195
195
  {
196
196
  avatar: t,
197
197
  avatarPair: r,
198
- badgeLabel: a,
199
- description: n,
198
+ badgeLabel: o,
199
+ description: a,
200
200
  menuTriggerDescription: s,
201
- title: o,
201
+ title: n,
202
202
  uploadAvatarCallback: y,
203
203
  uploadAvatarLabel: i,
204
204
  uploadAvatarDescription: d
@@ -213,10 +213,10 @@ const N = (t) => /* @__PURE__ */ l(
213
213
  asMenuHeader: !0,
214
214
  avatar: t,
215
215
  avatarPair: r,
216
- badgeLabel: a,
217
- description: n,
216
+ badgeLabel: o,
217
+ description: a,
218
218
  menuTriggerDescription: s,
219
- title: o,
219
+ title: n,
220
220
  uploadAvatarCallback: y,
221
221
  uploadAvatarLabel: i,
222
222
  uploadAvatarDescription: d
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { twMerge as y } from "tailwind-merge";
2
+ import { uyMerge as y } from "@payfit/unity-themes";
3
3
  import { useAppMenuContext as a } from "./AppMenu.context.js";
4
4
  const r = ({ children: e }) => {
5
5
  const { isMobileMenuOpen: u } = a(), o = y(
@@ -1,7 +1,7 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { LoadingState } from '@react-types/shared';
2
3
  import { ForwardedRef, ReactNode } from 'react';
3
4
  import { ComboBoxProps, ListBoxProps } from 'react-aria-components';
4
- import { VariantProps } from 'tailwind-variants';
5
5
  declare const autocomplete: import('tailwind-variants').TVReturnType<{
6
6
  isReadOnly: {
7
7
  true: {
@@ -1,16 +1,16 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as R, useRef as A, useState as B, useCallback as O } from "react";
3
- import { useId as W } from "react-aria";
4
- import { ComboBox as k, Input as C } from "react-aria-components";
5
- import { useIntl as z } from "react-intl";
6
- import { tv as j } from "tailwind-variants";
7
- import { useResizeObserver as D } from "usehooks-ts";
3
+ import { uyTv as W } from "@payfit/unity-themes";
4
+ import { useId as k } from "react-aria";
5
+ import { ComboBox as C, Input as z } from "react-aria-components";
6
+ import { useIntl as T } from "react-intl";
7
+ import { useResizeObserver as j } from "usehooks-ts";
8
8
  import { Icon as f } from "../icon/Icon.js";
9
- import { Spinner as P } from "../spinner/Spinner.js";
10
- import { Text as T } from "../text/Text.js";
9
+ import { Spinner as D } from "../spinner/Spinner.js";
10
+ import { Text as P } from "../text/Text.js";
11
11
  import { AutocompleteClearButton as E } from "./parts/AutocompleteClearButton.js";
12
12
  import { AutocompletePanel as G } from "./parts/AutocompletePanel.js";
13
- const L = j({
13
+ const L = W({
14
14
  slots: {
15
15
  base: [
16
16
  "uy:group 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",
@@ -77,16 +77,16 @@ const L = j({
77
77
  name: b,
78
78
  feedbackText: p,
79
79
  ...g
80
- } = a, n = z(), o = A(null), [h, v] = B(null), c = W(), x = O(() => {
80
+ } = a, n = T(), o = A(null), [h, v] = B(null), c = k(), x = O(() => {
81
81
  o.current && v(`${o.current.offsetWidth}px`);
82
82
  }, [o]);
83
- D({ ref: o, onResize: x });
83
+ j({ ref: o, onResize: x });
84
84
  const { base: w, input: I, icon: M, invalidIcon: N, wrapperState: S, clearButton: F } = L({
85
85
  isReadOnly: u
86
86
  });
87
87
  return /* @__PURE__ */ s("search", { ref: r, children: [
88
88
  /* @__PURE__ */ s(
89
- k,
89
+ C,
90
90
  {
91
91
  className: w(),
92
92
  name: b,
@@ -110,7 +110,7 @@ const L = j({
110
110
  }
111
111
  ),
112
112
  /* @__PURE__ */ e(
113
- C,
113
+ z,
114
114
  {
115
115
  className: I(),
116
116
  "aria-describedby": c,
@@ -131,7 +131,7 @@ const L = j({
131
131
  }
132
132
  ),
133
133
  i && i !== "error" && i !== "idle" && /* @__PURE__ */ e("span", { className: "uy:px-50", children: /* @__PURE__ */ e(
134
- P,
134
+ D,
135
135
  {
136
136
  label: n.formatMessage({
137
137
  id: "unity:component:common:loading:label",
@@ -155,7 +155,7 @@ const L = j({
155
155
  }
156
156
  ),
157
157
  d && /* @__PURE__ */ e(
158
- T,
158
+ P,
159
159
  {
160
160
  id: c,
161
161
  className: "uy:typography-body-small-strong uy:text-content-form-invalid",
@@ -1,15 +1,15 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { useContext as u } from "react";
3
- import { ComboBoxStateContext as m } from "react-aria-components";
4
- import { useIntl as a } from "react-intl";
5
- import { twMerge as i } from "tailwind-merge";
3
+ import { uyMerge as m } from "@payfit/unity-themes";
4
+ import { ComboBoxStateContext as a } from "react-aria-components";
5
+ import { useIntl as i } from "react-intl";
6
6
  import { CircularIconButton as s } from "../../icon-button/CircularIconButton.js";
7
7
  const c = ({
8
8
  className: e,
9
9
  isReadOnly: o,
10
10
  isDisabled: n
11
11
  }) => {
12
- const t = u(m), r = a();
12
+ const t = u(a), r = i();
13
13
  return !(t != null && t.inputValue) || o || n ? null : /* @__PURE__ */ l(
14
14
  s,
15
15
  {
@@ -18,7 +18,7 @@ const c = ({
18
18
  id: "unity:component:common:clear:title",
19
19
  defaultMessage: "Clear"
20
20
  }),
21
- className: i(
21
+ className: m(
22
22
  e,
23
23
  "uy:text-content-neutral-enabled uy:group-data-[empty=true]:hidden"
24
24
  ),
@@ -1,5 +1,5 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { ListBoxItemProps } from 'react-aria-components';
2
- import { VariantProps } from 'tailwind-variants';
3
3
  export declare const autocompleteItem: import('tailwind-variants').TVReturnType<{
4
4
  isDisabled: {
5
5
  false: string;
@@ -1,8 +1,8 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as r } from "react";
3
- import { ListBoxItem as n } from "react-aria-components";
4
- import { tv as d } from "tailwind-variants";
5
- const i = d({
3
+ import { uyTv as n } from "@payfit/unity-themes";
4
+ import { ListBoxItem as d } from "react-aria-components";
5
+ const i = n({
6
6
  base: [
7
7
  "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 uy:bg-surface-neutral-enabled uy:enabled:text-content-neutral-enabled",
8
8
  "uy:enabled:bg-surface-neutral-enabled uy:enabled:text-content-neutral-enabled",
@@ -18,7 +18,7 @@ const i = d({
18
18
  }
19
19
  }), y = r(
20
20
  ({ children: e, isDisabled: t, textValue: u, ...a }, o) => /* @__PURE__ */ l(
21
- n,
21
+ d,
22
22
  {
23
23
  ...a,
24
24
  isDisabled: t,
@@ -1,6 +1,6 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { ForwardedRef } from 'react';
2
3
  import { ListBoxSectionProps } from 'react-aria-components';
3
- import { VariantProps } from 'tailwind-variants';
4
4
  export declare const autocompleteItemGroup: import('tailwind-variants').TVReturnType<{
5
5
  [key: string]: {
6
6
  [key: string]: import('tailwind-merge').ClassNameValue | {
@@ -1,23 +1,23 @@
1
- import { jsxs as a, jsx as e, Fragment as u } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as e, Fragment as n } from "react/jsx-runtime";
2
2
  import { forwardRef as c } from "react";
3
- import { ListBoxSection as i, Header as y, Collection as d, Separator as p } from "react-aria-components";
4
- import { tv as h } from "tailwind-variants";
5
- const f = h({
3
+ import { uyTv as i } from "@payfit/unity-themes";
4
+ import { ListBoxSection as y, Header as d, Collection as h, Separator as p } from "react-aria-components";
5
+ const f = i({
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:[section:last-child_&]:hidden"
10
10
  }
11
11
  }), b = ({ label: r, children: o, items: t }, l) => {
12
- const { base: s, header: m, separator: n } = f();
13
- return /* @__PURE__ */ a(i, { ref: l, className: s(), id: r, items: t, children: [
14
- /* @__PURE__ */ e(y, { className: m(), children: r }),
15
- t ? /* @__PURE__ */ a(u, { children: [
16
- /* @__PURE__ */ e(d, { items: t, children: o }),
17
- /* @__PURE__ */ e(p, { orientation: "horizontal", className: n() })
18
- ] }) : /* @__PURE__ */ a(u, { children: [
12
+ const { base: s, header: m, separator: u } = f();
13
+ return /* @__PURE__ */ a(y, { ref: l, className: s(), id: r, items: t, children: [
14
+ /* @__PURE__ */ e(d, { className: m(), children: r }),
15
+ t ? /* @__PURE__ */ a(n, { children: [
16
+ /* @__PURE__ */ e(h, { items: t, children: o }),
17
+ /* @__PURE__ */ e(p, { orientation: "horizontal", className: u() })
18
+ ] }) : /* @__PURE__ */ a(n, { children: [
19
19
  o,
20
- /* @__PURE__ */ e(p, { orientation: "horizontal", className: n() })
20
+ /* @__PURE__ */ e(p, { orientation: "horizontal", className: u() })
21
21
  ] })
22
22
  ] });
23
23
  }, x = c(function(o, t) {
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
+ import { VariantProps } from '@payfit/unity-themes';
2
3
  import { PopoverProps } from 'react-aria-components';
3
- import { VariantProps } from 'tailwind-variants';
4
4
  import { AutocompleteProps } from '../Autocomplete.js';
5
5
  export declare const autocompletePanel: import('tailwind-variants').TVReturnType<{
6
6
  [key: string]: {
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { Popover as y, ListBox as m } from "react-aria-components";
3
- import { FormattedMessage as c } from "react-intl";
4
- import { tv as d } from "tailwind-variants";
2
+ import { uyTv as y } from "@payfit/unity-themes";
3
+ import { Popover as m, ListBox as c } from "react-aria-components";
4
+ import { FormattedMessage as d } from "react-intl";
5
5
  import { Icon as p } from "../../icon/Icon.js";
6
6
  import { Text as t } from "../../text/Text.js";
7
- const f = d({
7
+ const f = y({
8
8
  slots: {
9
9
  base: "uy:rounded-75 uy:border uy:border-solid uy:border-border-neutral uy:w-[var(--trigger-width)] uy:bg-surface-neutral uy:max-h-[312px] uy:shadow-floating",
10
10
  list: "uy:overflow-y-auto uy:max-h-[296px] uy:p-100"
@@ -19,7 +19,7 @@ const f = d({
19
19
  }
20
20
  ),
21
21
  /* @__PURE__ */ e(t, { variant: "bodyLarge", children: /* @__PURE__ */ e(
22
- c,
22
+ d,
23
23
  {
24
24
  id: "unity:component:autocomplete:panel:empty:label",
25
25
  defaultMessage: "No results found"
@@ -28,7 +28,7 @@ const f = d({
28
28
  ] }), h = (r) => {
29
29
  const { children: o, panelWidth: s, searchRef: a, ...u } = r, { base: l, list: n } = f();
30
30
  return /* @__PURE__ */ e(
31
- y,
31
+ m,
32
32
  {
33
33
  ...u,
34
34
  className: l(),
@@ -36,7 +36,7 @@ const f = d({
36
36
  triggerRef: a,
37
37
  isNonModal: !0,
38
38
  style: { "--trigger-width": s },
39
- children: /* @__PURE__ */ e(m, { className: n(), renderEmptyState: g, children: o })
39
+ children: /* @__PURE__ */ e(c, { className: n(), renderEmptyState: g, children: o })
40
40
  }
41
41
  );
42
42
  };
@@ -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
  import * as React from 'react';
4
4
  declare const avatarRoot: import('tailwind-variants').TVReturnType<{} | {
5
5
  size: {
@@ -1,33 +1,32 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import * as o from "@radix-ui/react-avatar";
4
- import { twMerge as d } from "tailwind-merge";
5
- import { tv as f } from "tailwind-variants";
6
- import { AvatarProvider as n } from "./Avatar.context.js";
7
- import { avatarBase as p } from "./Avatar.variants.js";
8
- const v = f({
9
- extend: p,
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { uyTv as c } from "@payfit/unity-themes";
4
+ import * as t from "@radix-ui/react-avatar";
5
+ import { AvatarProvider as d } from "./Avatar.context.js";
6
+ import { avatarBase as f } from "./Avatar.variants.js";
7
+ const n = c({
8
+ extend: f,
10
9
  base: "uy:inline-block uy:relative uy:shrink-0",
11
10
  defaultVariants: {
12
11
  size: "md",
13
12
  variant: "circle"
14
13
  }
15
- }), y = c.forwardRef(
14
+ }), p = l.forwardRef(
16
15
  ({ size: a = "md", variant: r = "circle", className: e, ...i }, m) => {
17
- const s = v({ variant: r, size: a }), l = d(s, e);
18
- return /* @__PURE__ */ t(n, { variant: r, size: a, hasPair: !1, children: /* @__PURE__ */ t(
19
- o.Root,
16
+ const s = n({ variant: r, size: a, className: e });
17
+ return /* @__PURE__ */ o(d, { variant: r, size: a, hasPair: !1, children: /* @__PURE__ */ o(
18
+ t.Root,
20
19
  {
21
20
  ref: m,
22
21
  role: "img",
23
- className: l,
22
+ className: s,
24
23
  "data-dd-privacy": "allow",
25
24
  ...i
26
25
  }
27
26
  ) });
28
27
  }
29
28
  );
30
- y.displayName = o.Root.displayName;
29
+ p.displayName = t.Root.displayName;
31
30
  export {
32
- y as Avatar
31
+ p as Avatar
33
32
  };
@@ -1,4 +1,4 @@
1
- import { tv as a } from "tailwind-variants";
1
+ import { uyTv as a } from "@payfit/unity-themes";
2
2
  const e = a({
3
3
  variants: {
4
4
  size: {
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'tailwind-variants';
1
+ import { VariantProps } from '@payfit/unity-themes';
2
2
  import * as React from 'react';
3
3
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
4
4
  declare const avatarPlaceholder: import('tailwind-variants').TVReturnType<{
@@ -1,12 +1,11 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
- import * as t from "@radix-ui/react-avatar";
4
- import { twMerge as f } from "tailwind-merge";
5
- import { tv as l } from "tailwind-variants";
3
+ import { uyTv as t, uyMerge as f } from "@payfit/unity-themes";
4
+ import * as l from "@radix-ui/react-avatar";
6
5
  import { useAvatarContext as b } from "../Avatar.context.js";
7
6
  import { avatarBase as n } from "../Avatar.variants.js";
8
7
  import { getInitials as v } from "../utils.js";
9
- const h = l({
8
+ const h = t({
10
9
  extend: n,
11
10
  slots: {
12
11
  base: "uy:absolute uy:overflow-hidden",
@@ -29,7 +28,7 @@ const h = l({
29
28
  }
30
29
  }
31
30
  }
32
- }), w = l({
31
+ }), w = t({
33
32
  extend: n,
34
33
  base: "uy:absolute uy:flex uy:h-full uy:w-full uy:items-center uy:justify-center uy:text-content-neutral uy:bg-surface-neutral-low",
35
34
  variants: {
@@ -41,11 +40,11 @@ const h = l({
41
40
  xl: "uy:typography-h2"
42
41
  }
43
42
  }
44
- }), x = p.forwardRef(({ variant: s, color: u, children: i, ...r }, y) => {
43
+ }), x = p.forwardRef(({ variant: u, color: s, children: i, ...r }, y) => {
45
44
  const c = b(), { size: e, variant: o } = c;
46
- if (s === "placeholder") {
45
+ if (u === "placeholder") {
47
46
  const { base: d, background: g, foreground: m } = h({
48
- color: u,
47
+ color: s,
49
48
  size: e,
50
49
  variant: o
51
50
  });
@@ -71,7 +70,7 @@ const h = l({
71
70
  );
72
71
  }
73
72
  return /* @__PURE__ */ a(
74
- t.Fallback,
73
+ l.Fallback,
75
74
  {
76
75
  ref: y,
77
76
  role: "presentation",
@@ -81,7 +80,7 @@ const h = l({
81
80
  }
82
81
  );
83
82
  });
84
- x.displayName = t.Fallback.displayName;
83
+ x.displayName = l.Fallback.displayName;
85
84
  export {
86
85
  x as AvatarFallback
87
86
  };
@@ -1,21 +1,21 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
+ import { uyTv as u } from "@payfit/unity-themes";
3
4
  import * as a from "@radix-ui/react-avatar";
4
- import { twMerge as p } from "tailwind-merge";
5
- import { tv as f } from "tailwind-variants";
6
- import { useAvatarContext as u } from "../Avatar.context.js";
5
+ import { useAvatarContext as p } from "../Avatar.context.js";
7
6
  import { avatarBase as c } from "../Avatar.variants.js";
8
- const l = f({
7
+ const f = u({
9
8
  extend: c,
10
9
  base: "uy:aspect-square uy:w-full uy:h-full uy:object-cover uy:bg-surface-neutral-lowest"
11
- }), v = n.forwardRef(({ className: r, ...t }, e) => {
12
- const { variant: o, size: s } = u(), m = p(
13
- l({ variant: o, size: s }),
14
- r
15
- );
16
- return /* @__PURE__ */ i(a.Image, { ref: e, className: m, ...t });
10
+ }), l = n.forwardRef(({ className: r, ...e }, t) => {
11
+ const { variant: s, size: o } = p(), m = f({
12
+ variant: s,
13
+ size: o,
14
+ className: r
15
+ });
16
+ return /* @__PURE__ */ i(a.Image, { ref: t, className: m, ...e });
17
17
  });
18
- v.displayName = a.Image.displayName;
18
+ l.displayName = a.Image.displayName;
19
19
  export {
20
- v as AvatarImage
20
+ l as AvatarImage
21
21
  };
@@ -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
  import { avatarBase } from '../Avatar.variants.js';
4
4
  import * as React from 'react';
5
5
  export type AvatarPairProps = PropsWithChildren<{
@@ -1,10 +1,10 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
- import * as l from "@radix-ui/react-avatar";
4
- import { tv as c } from "tailwind-variants";
3
+ import { uyTv as l } from "@payfit/unity-themes";
4
+ import * as c from "@radix-ui/react-avatar";
5
5
  import { useAvatarContext as y, AvatarProvider as p } from "../Avatar.context.js";
6
6
  import { avatarBase as v } from "../Avatar.variants.js";
7
- const z = c({
7
+ const z = l({
8
8
  extend: v,
9
9
  base: "uy:absolute uy:overflow-hidden uy:leading-[0] uy:border uy:border-solid uy:border-content-inverted uy:-bottom-[var(--pair-offset)] uy:-right-[var(--pair-offset)] uy:transition-transform uy:origin-center",
10
10
  variants: {
@@ -26,7 +26,7 @@ const z = c({
26
26
  ({ variant: r, isHidden: a, children: i, ...o }, n) => {
27
27
  const { size: f } = y(), e = f === "xl", t = e ? "sm" : "xs", m = e ? 0 : 4, u = z({ variant: r, size: t, isHidden: a });
28
28
  return /* @__PURE__ */ s(p, { variant: r, size: t, hasPair: !0, children: /* @__PURE__ */ s(
29
- l.Root,
29
+ c.Root,
30
30
  {
31
31
  ref: n,
32
32
  role: "img",
@@ -1,5 +1,5 @@
1
+ import { VariantProps } from '@payfit/unity-themes';
1
2
  import { AriaRole, PropsWithChildren } from 'react';
2
- import { VariantProps } from 'tailwind-variants';
3
3
  declare const badge: import('tailwind-variants').TVReturnType<{
4
4
  variant: {
5
5
  success: string;