@payfit/unity-components 2.21.13 → 2.21.15

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 (28) hide show
  1. package/dist/esm/components/date-calendar/DateCalendar.js +87 -89
  2. package/dist/esm/components/date-calendar/DateCalendar.variants.d.ts +62 -0
  3. package/dist/esm/components/date-calendar/DateCalendar.variants.js +42 -0
  4. package/dist/esm/components/date-picker/parts/DateInput.d.ts +28 -0
  5. package/dist/esm/components/date-picker/parts/DateInput.js +6 -5
  6. package/dist/esm/components/date-range-calendar/DateRangeCalendar.d.ts +22 -0
  7. package/dist/esm/components/date-range-calendar/DateRangeCalendar.js +197 -0
  8. package/dist/esm/components/date-range-picker/DateRangePicker.d.ts +68 -0
  9. package/dist/esm/components/date-range-picker/DateRangePicker.js +174 -0
  10. package/dist/esm/components/date-range-picker/TanstackDateRangePicker.d.ts +22 -0
  11. package/dist/esm/components/date-range-picker/TanstackDateRangePicker.js +53 -0
  12. package/dist/esm/components/date-range-picker/parts/DateRangeInput.d.ts +16 -0
  13. package/dist/esm/components/date-range-picker/parts/DateRangeInput.js +98 -0
  14. package/dist/esm/components/date-range-picker-field/TanstackDateRangePickerField.d.ts +64 -0
  15. package/dist/esm/components/date-range-picker-field/TanstackDateRangePickerField.js +41 -0
  16. package/dist/esm/components/date-range-picker-field/test-utils.d.ts +19 -0
  17. package/dist/esm/components/date-range-picker-field/test-utils.js +66 -0
  18. package/dist/esm/components/promo-dialog/PromoDialog.js +8 -8
  19. package/dist/esm/hooks/use-tanstack-form.d.ts +36 -0
  20. package/dist/esm/hooks/use-tanstack-form.js +72 -60
  21. package/dist/esm/index.d.ts +2 -0
  22. package/dist/esm/index.js +462 -458
  23. package/dist/esm/index.storybook-testing.d.ts +1 -0
  24. package/dist/esm/storybook-testing.js +10 -8
  25. package/i18n/en-GB.json +1 -0
  26. package/i18n/es-ES.json +1 -0
  27. package/i18n/fr-FR.json +1 -0
  28. package/package.json +7 -7
@@ -1,4 +1,5 @@
1
1
  export { getTestingUtilsDatePicker } from './components/date-picker-field/test-utils.js';
2
+ export { getTestingUtilsDateRangePicker } from './components/date-range-picker-field/test-utils.js';
2
3
  export { getTestingUtilsMultiSelect } from './components/multi-select-field/test-utils.js';
3
4
  export { getTestingUtilsSelect } from './components/select-field/test-utils.js';
4
5
  export { getTestingUtilsToast } from './components/toast/test-utils.js';
@@ -1,12 +1,14 @@
1
1
  import { getTestingUtilsDatePicker as i } from "./components/date-picker-field/test-utils.js";
2
- import { getTestingUtilsMultiSelect as g } from "./components/multi-select-field/test-utils.js";
3
- import { getTestingUtilsSelect as s } from "./components/select-field/test-utils.js";
4
- import { getTestingUtilsToast as T } from "./components/toast/test-utils.js";
5
- import { getTestingUtilsDialog as m } from "./components/dialog/test-utils.js";
2
+ import { getTestingUtilsDateRangePicker as o } from "./components/date-range-picker-field/test-utils.js";
3
+ import { getTestingUtilsMultiSelect as s } from "./components/multi-select-field/test-utils.js";
4
+ import { getTestingUtilsSelect as n } from "./components/select-field/test-utils.js";
5
+ import { getTestingUtilsToast as f } from "./components/toast/test-utils.js";
6
+ import { getTestingUtilsDialog as p } from "./components/dialog/test-utils.js";
6
7
  export {
7
8
  i as getTestingUtilsDatePicker,
8
- m as getTestingUtilsDialog,
9
- g as getTestingUtilsMultiSelect,
10
- s as getTestingUtilsSelect,
11
- T as getTestingUtilsToast
9
+ o as getTestingUtilsDateRangePicker,
10
+ p as getTestingUtilsDialog,
11
+ s as getTestingUtilsMultiSelect,
12
+ n as getTestingUtilsSelect,
13
+ f as getTestingUtilsToast
12
14
  };
package/i18n/en-GB.json CHANGED
@@ -74,6 +74,7 @@
74
74
  "unity:component:form-field:date-picker:segment-select:month:description": "Press Enter or Space to change month, then use up and down arrows to select a month",
75
75
  "unity:component:form-field:date-picker:segment-select:year:label": "Change current year",
76
76
  "unity:component:form-field:date-picker:segment-select:year:description": "Press Enter or Space to change year, then use up and down arrows to select a year",
77
+ "unity:component:form-field:date-range-picker:calendar-button": "Open calendar",
77
78
  "unity:component:form-field:form-input:spinner:label": "Loading",
78
79
  "unity:component:form-field:form-input:error:alt": "Error",
79
80
  "unity:component:form-field:number-input:decrement:title": "decrement",
package/i18n/es-ES.json CHANGED
@@ -74,6 +74,7 @@
74
74
  "unity:component:form-field:date-picker:segment-select:month:description": "Presione Enter o Espacio para cambiar el mes, luego use las flechas para seleccionar un mes",
75
75
  "unity:component:form-field:date-picker:segment-select:year:label": "Cambiar año actual",
76
76
  "unity:component:form-field:date-picker:segment-select:year:description": "Presione Enter o Espacio para cambiar el año, luego use las flechas para seleccionar un año",
77
+ "unity:component:form-field:date-range-picker:calendar-button": "Abrir el calendario",
77
78
  "unity:component:form-field:form-input:spinner:label": "Cargando",
78
79
  "unity:component:form-field:form-input:error:alt": "Error",
79
80
  "unity:component:form-field:number-input:decrement:title": "decremento",
package/i18n/fr-FR.json CHANGED
@@ -74,6 +74,7 @@
74
74
  "unity:component:form-field:date-picker:segment-select:month:description": "Appuyez sur Entrée ou Espace pour changer de mois, puis utilisez les flèches pour sélectionner un mois",
75
75
  "unity:component:form-field:date-picker:segment-select:year:label": "Changer l'année actuelle",
76
76
  "unity:component:form-field:date-picker:segment-select:year:description": "Appuyez sur Entrée ou Espace pour changer d'année, puis utilisez les flèches pour sélectionner une année",
77
+ "unity:component:form-field:date-range-picker:calendar-button": "Ouvrir le calendrier",
77
78
  "unity:component:form-field:form-input:spinner:label": "Chargement",
78
79
  "unity:component:form-field:form-input:error:alt": "Erreur",
79
80
  "unity:component:form-field:number-input:decrement:title": "Décrémenter",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.21.13",
3
+ "version": "2.21.15",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -42,7 +42,7 @@
42
42
  "@hookform/devtools": "4.4.0",
43
43
  "@hookform/resolvers": "5.2.1",
44
44
  "@internationalized/date": "3.12.0",
45
- "@payfit/unity-illustrations": "2.21.13",
45
+ "@payfit/unity-illustrations": "2.21.15",
46
46
  "@radix-ui/react-avatar": "1.1.11",
47
47
  "@radix-ui/react-slot": "1.2.4",
48
48
  "@react-aria/interactions": "3.27.1",
@@ -74,8 +74,8 @@
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@hookform/devtools": "^4",
77
- "@payfit/unity-icons": "2.21.13",
78
- "@payfit/unity-themes": "2.21.13",
77
+ "@payfit/unity-icons": "2.21.15",
78
+ "@payfit/unity-themes": "2.21.15",
79
79
  "@storybook/react-vite": "^10.3.2",
80
80
  "@tanstack/react-query": "^5",
81
81
  "@tanstack/react-router": "^1.131",
@@ -95,9 +95,9 @@
95
95
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
96
96
  "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
97
97
  "@payfit/storybook-config": "0.0.0-use.local",
98
- "@payfit/unity-icons": "2.21.13",
99
- "@payfit/unity-illustrations": "2.21.13",
100
- "@payfit/unity-themes": "2.21.13",
98
+ "@payfit/unity-icons": "2.21.15",
99
+ "@payfit/unity-illustrations": "2.21.15",
100
+ "@payfit/unity-themes": "2.21.15",
101
101
  "@payfit/vite-configs": "0.0.0-use.local",
102
102
  "@storybook/addon-a11y": "10.3.3",
103
103
  "@storybook/addon-designs": "11.1.3",