@povio/ui 3.4.0-rc.24 → 3.4.0-rc.26

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 (197) hide show
  1. package/dist/{Autocomplete-Ce3ygKxG.d.ts → Autocomplete-0tckACUz.d.ts} +1 -1
  2. package/dist/{BottomSheet-BWKej2PR.d.ts → BottomSheet-BZXBtOHF.d.ts} +1 -2
  3. package/dist/{BottomSheet-DNnVqMw9.js → BottomSheet-CEyxZ2Nd.js} +6 -50
  4. package/dist/BottomSheet.lazy-DT02808T.d.ts +5 -0
  5. package/dist/{Breadcrumbs-DentRJc_.js → Breadcrumbs-Cbl2-M7J.js} +2 -2
  6. package/dist/{Button-B8T7AjGP.js → Button-CtPMeT8f.js} +1 -1
  7. package/dist/{Calendar-B7OLjVV9.js → Calendar-Dc1UbbAq.js} +5 -5
  8. package/dist/{Checkbox-B7f8NgnO.js → Checkbox-Feyideqw.js} +1 -1
  9. package/dist/{DatePicker-p5zEtFfc.js → DatePicker-BdRp_rG7.js} +7 -7
  10. package/dist/{DatePickerInput-BLL4-Sqj.js → DatePickerInput-D3kmFpMZ.js} +16 -9
  11. package/dist/{DateRangePicker-CjOo8S9R.d.ts → DateRangePicker-CMWUdyh1.d.ts} +25 -12
  12. package/dist/{DateRangePicker-BELkyFZ3.js → DateRangePicker-XhfuEunT.js} +123 -32
  13. package/dist/{DateTimePicker-YxEZH7Kk.js → DateTimePicker-_PD3JGVy.js} +7 -7
  14. package/dist/{Dialog-DpLXaUXz.js → Dialog-CXVxCqvL.js} +1 -1
  15. package/dist/Drawer-XaAwht0J.js +98 -0
  16. package/dist/{FileUpload-uqaBcMUE.js → FileUpload-CNM9dv4D.js} +3 -3
  17. package/dist/{Form-BO5xLioQ.d.ts → Form-BX_x2VGS.d.ts} +1 -1
  18. package/dist/{InputItem-C_njDXaE.js → InputItem-DWuSzs16.js} +10 -10
  19. package/dist/{InputUpload-BEda9AO8.js → InputUpload-BQpUaRQl.js} +3 -3
  20. package/dist/{Inputs-6bq2_53x.d.ts → Inputs-B5F_klPo.d.ts} +1 -1
  21. package/dist/{Inputs-CTywD5sa.js → Inputs-D4duTr-F.js} +1 -1
  22. package/dist/{ListBox-BCW74bzR.js → ListBox-lSDt9Q4j.js} +1 -1
  23. package/dist/{Menu-DTiZS3t_.js → Menu-DDKo6fUO.js} +4 -4
  24. package/dist/{Menu-CVgRPAB3.d.ts → Menu-ucX0h-jq.d.ts} +1 -1
  25. package/dist/{MenuDesktop-CEftscnb.js → MenuDesktop-AnvU8TNb.js} +1 -1
  26. package/dist/{MenuItem-xJq_qdIf.d.ts → MenuItem--lQvt0VV.d.ts} +1 -1
  27. package/dist/{Modal-DdKOgTpG.js → Modal-BrOOpTQ4.js} +2 -2
  28. package/dist/{Modal-HBOqpsZ3.js → Modal-CAAJgOQb.js} +1 -1
  29. package/dist/{NumberRangeInput-vrceL7KX.js → NumberRangeInput-CBM_ycX_.js} +3 -3
  30. package/dist/{PaginationList-DwPkbMEh.js → PaginationList-B27QL6gG.js} +1 -1
  31. package/dist/{QuerySelect-CuZjxrle.d.ts → QuerySelect-tupQOlAT.d.ts} +2 -2
  32. package/dist/{RadioGroup-DopLBNzi.js → RadioGroup-DbMmwkLQ.js} +1 -1
  33. package/dist/{ResponsivePopover-C8IriWcI.d.ts → ResponsivePopover-B-Z9sFxq.d.ts} +2 -1
  34. package/dist/{Select-T4am7u5p.js → Select-BXhqcKAI.js} +3 -3
  35. package/dist/{Select-BQ9YJzFg.d.ts → Select-Do5qWHLj.d.ts} +1 -1
  36. package/dist/{SelectBase-Ds3nqzVg.d.ts → SelectBase-aSvWd7Cx.d.ts} +1 -1
  37. package/dist/{Slider-RhB5Rcwv.js → Slider-YdD68ygp.js} +1 -1
  38. package/dist/{SplitButton-Cv9ej6Or.d.ts → SplitButton-DxrWH3EX.d.ts} +1 -1
  39. package/dist/TableDnd-CuHxANWh.js +133 -0
  40. package/dist/{Tag-BspEXTbs.js → Tag-BAFkwLDe.js} +1 -1
  41. package/dist/{TextArea-Dqg717Gx.js → TextArea-B8TIZZ5i.js} +2 -2
  42. package/dist/{TextEditor-DXFlGnkW.js → TextEditor-Co_gbkPT.js} +6 -6
  43. package/dist/{TimePicker-lAn8yzYJ.js → TimePicker-dftQtlWT.js} +5 -5
  44. package/dist/Toast-BDoTQFr5.js +49 -0
  45. package/dist/{Toast-DDkev3SZ.d.ts → Toast-JL9yaI35.d.ts} +1 -2
  46. package/dist/ToastContainer-9OS5SK5K.d.ts +5 -0
  47. package/dist/ToastContainer-TRM91co1.js +23 -0
  48. package/dist/ToastRenderer-Dpax9sKV.js +40 -0
  49. package/dist/{Toggle-BZCEmMGO.js → Toggle-Bw15KIly.js} +1 -1
  50. package/dist/{TooltipWrapper-D8gfa-pC.js → TooltipWrapper-eCF5-eNP.js} +1 -1
  51. package/dist/{autocomplete-NiLahf70.d.ts → autocomplete-bNuG6_dG.d.ts} +2 -2
  52. package/dist/components/action-modal.js +3 -3
  53. package/dist/components/autocomplete.d.ts +1 -1
  54. package/dist/components/autocomplete.js +3 -3
  55. package/dist/components/bottom-sheet.d.ts +3 -2
  56. package/dist/components/bottom-sheet.js +108 -1
  57. package/dist/components/breadcrumbs.js +1 -1
  58. package/dist/components/button.js +1 -1
  59. package/dist/components/checkbox-group.js +2 -2
  60. package/dist/components/checkbox.js +1 -1
  61. package/dist/components/date-picker.js +1 -1
  62. package/dist/components/date-range-picker.d.ts +2 -2
  63. package/dist/components/date-range-picker.js +1 -1
  64. package/dist/components/date-time-picker.js +1 -1
  65. package/dist/components/drawer.d.ts +5 -2
  66. package/dist/components/drawer.js +80 -87
  67. package/dist/components/file-upload-container.js +1 -1
  68. package/dist/components/file-upload.js +1 -1
  69. package/dist/components/icon-button.js +1 -1
  70. package/dist/components/inline-icon-button.js +1 -1
  71. package/dist/components/input-upload.js +1 -1
  72. package/dist/components/menu.d.ts +2 -2
  73. package/dist/components/menu.js +2 -2
  74. package/dist/components/modal.js +1 -1
  75. package/dist/components/number-input.js +4 -4
  76. package/dist/components/number-range-input.js +1 -1
  77. package/dist/components/pagination-list.js +1 -1
  78. package/dist/components/pagination.js +1 -1
  79. package/dist/components/pill.js +1 -1
  80. package/dist/components/query-autocomplete.d.ts +2 -2
  81. package/dist/components/query-autocomplete.js +1 -1
  82. package/dist/components/query-select.d.ts +1 -1
  83. package/dist/components/query-select.js +2 -2
  84. package/dist/components/radio-group.js +1 -1
  85. package/dist/components/responsive-popover.d.ts +1 -1
  86. package/dist/components/responsive-popover.js +3 -3
  87. package/dist/components/select.d.ts +2 -2
  88. package/dist/components/select.js +1 -1
  89. package/dist/components/slider.js +1 -1
  90. package/dist/components/split-button.d.ts +1 -1
  91. package/dist/components/split-button.js +2 -2
  92. package/dist/components/tag.js +1 -1
  93. package/dist/components/text-area.js +1 -1
  94. package/dist/components/text-button.js +1 -1
  95. package/dist/components/text-input.js +4 -4
  96. package/dist/components/time-picker.js +1 -1
  97. package/dist/components/toast.d.ts +3 -2
  98. package/dist/components/toast.js +3 -2
  99. package/dist/components/toggle-button.js +1 -1
  100. package/dist/components/toggle.js +1 -1
  101. package/dist/components/use-toast.d.ts +1 -1
  102. package/dist/components/use-toast.js +37 -64
  103. package/dist/config/confirmation.js +1 -1
  104. package/dist/config/ui-config.d.ts +3 -2
  105. package/dist/config/ui-config.js +1 -1
  106. package/dist/confirmation.context-2-6G831n.js +117 -0
  107. package/dist/confirmation.dialog-Cveu3s5D.js +16 -0
  108. package/dist/{date-range-picker-DaLQYShd.d.ts → date-range-picker-BYdeSyMU.d.ts} +1 -1
  109. package/dist/{datePickerValue.utils-BqdbvGFL.js → datePickerValue.utils-469FeRCl.js} +2 -2
  110. package/dist/{Toast-DycxJVq5.js → dist-B4xyoAhc.js} +1 -288
  111. package/dist/dom.utils-CeVnXH-T.js +49 -0
  112. package/dist/{dynamicInputs-BoAqswLw.d.ts → dynamicInputs-CecPNXsF.d.ts} +21 -21
  113. package/dist/{fieldAdapter-C_3uizcT.js → fieldAdapter-C1EWUhUl.js} +1 -1
  114. package/dist/index.d.ts +22 -20
  115. package/dist/index.js +31 -28
  116. package/dist/{logger-BPhG2izn.js → logger-WPC6ostp.js} +1 -1
  117. package/dist/{query-autocomplete-B3qBhSDk.d.ts → query-autocomplete-CHtcx_ND.d.ts} +2 -2
  118. package/dist/{query-select-BNNjF0Bc.d.ts → query-select-CD0iFQqR.d.ts} +2 -2
  119. package/dist/{queryAutocomplete.types-CpLHyvqN.d.ts → queryAutocomplete.types-DaTDttX5.d.ts} +2 -2
  120. package/dist/rhf/autocomplete.d.ts +2 -2
  121. package/dist/rhf/autocomplete.js +1 -1
  122. package/dist/rhf/checkbox-group.js +1 -1
  123. package/dist/rhf/checkbox.js +2 -2
  124. package/dist/rhf/date-picker.js +2 -2
  125. package/dist/rhf/date-range-picker.d.ts +3 -3
  126. package/dist/rhf/date-range-picker.js +2 -2
  127. package/dist/rhf/date-time-picker.js +2 -2
  128. package/dist/rhf/file-upload.js +2 -2
  129. package/dist/rhf/input-upload.js +2 -2
  130. package/dist/rhf/inputs.d.ts +1 -1
  131. package/dist/rhf/number-input.js +1 -1
  132. package/dist/rhf/number-range-input.js +2 -2
  133. package/dist/rhf/password-input.js +1 -1
  134. package/dist/rhf/query-autocomplete.d.ts +1 -1
  135. package/dist/rhf/query-autocomplete.js +1 -1
  136. package/dist/rhf/query-select.d.ts +1 -1
  137. package/dist/rhf/query-select.js +1 -1
  138. package/dist/rhf/radio-group.js +2 -2
  139. package/dist/rhf/segment.js +1 -1
  140. package/dist/rhf/select.d.ts +2 -2
  141. package/dist/rhf/select.js +2 -2
  142. package/dist/rhf/slider.js +2 -2
  143. package/dist/rhf/text-area.js +2 -2
  144. package/dist/rhf/text-editor.js +2 -2
  145. package/dist/rhf/text-input.js +1 -1
  146. package/dist/rhf/time-picker.js +2 -2
  147. package/dist/rhf/toggle.js +2 -2
  148. package/dist/{rhf-Ca72CryM.js → rhf-oYBHBWj-.js} +1 -1
  149. package/dist/rhf.d.ts +22 -20
  150. package/dist/rhf.js +31 -28
  151. package/dist/{rolldown-runtime-DUp30N8C.js → rolldown-runtime-B-lAHAz2.js} +10 -1
  152. package/dist/{select-CYuTeweS.d.ts → select-D80pWSgi.d.ts} +2 -2
  153. package/dist/{staticDateTimeSegments-C8AOKnEO.js → staticDateTimeSegments-BOFCK9Ub.js} +5 -5
  154. package/dist/{staticSelect.utils-CYV-eubF.js → staticSelect.utils-Bh1OVHuT.js} +9 -9
  155. package/dist/tanstack/autocomplete.d.ts +1 -1
  156. package/dist/tanstack/checkbox.js +1 -1
  157. package/dist/tanstack/date-picker.js +1 -1
  158. package/dist/tanstack/date-range-picker.d.ts +2 -2
  159. package/dist/tanstack/date-range-picker.js +1 -1
  160. package/dist/tanstack/date-time-picker.js +1 -1
  161. package/dist/tanstack/file-upload.js +1 -1
  162. package/dist/tanstack/form.d.ts +1 -1
  163. package/dist/tanstack/form.js +1 -1
  164. package/dist/tanstack/input-upload.js +1 -1
  165. package/dist/tanstack/inputs.d.ts +2 -2
  166. package/dist/tanstack/inputs.js +1 -1
  167. package/dist/tanstack/number-range-input.js +1 -1
  168. package/dist/tanstack/query-select.d.ts +1 -1
  169. package/dist/tanstack/radio-group.js +1 -1
  170. package/dist/tanstack/select.d.ts +1 -1
  171. package/dist/tanstack/select.js +1 -1
  172. package/dist/tanstack/slider.js +1 -1
  173. package/dist/tanstack/table.d.ts +1 -1
  174. package/dist/tanstack/table.js +1 -1
  175. package/dist/tanstack/text-area.js +1 -1
  176. package/dist/tanstack/text-editor.js +1 -1
  177. package/dist/tanstack/time-picker.js +1 -1
  178. package/dist/tanstack/toggle.js +1 -1
  179. package/dist/tanstack.d.ts +20 -18
  180. package/dist/tanstack.js +40 -37
  181. package/dist/text-editor.js +1 -1
  182. package/dist/toast.cva-BGJCi2qq.js +211 -0
  183. package/dist/toast.runtime--mTw_-fT.js +18 -0
  184. package/dist/toastActivation.store-BELtcr76.js +16 -0
  185. package/dist/{uiConfig.context-DyCOXtaZ.d.ts → uiConfig.context-B27wINPD.d.ts} +6 -3
  186. package/dist/{uiConfig.context-SBtRegKv.js → uiConfig.context-B_wBkrQZ.js} +2 -1
  187. package/dist/{useBreakpoint-D0s71F97.js → useBreakpoint-YuMYUdpG.js} +1 -1
  188. package/dist/{useFieldAccessibility-Bdt6GY7h.js → useFieldAccessibility-BsEP3ts2.js} +1 -1
  189. package/dist/{useFilter-BQRb0JpC.js → useFilter-DjR64hmy.js} +1 -1
  190. package/dist/{useFormAutosave-CyuAM0Mh.js → useFormAutosave-DtYELduH.js} +2 -2
  191. package/dist/{useStaticInputHandoff-pnEcfX_d.js → useStaticInputHandoff-ClwANfo-.js} +2 -2
  192. package/dist/{useTableColumnConfig-BZ4H6gha.js → useTableColumnConfig-CR0gk7hI.js} +55 -73
  193. package/dist/{useTableNav-BoQOVqZF.d.ts → useTableNav-CFHbvYvu.d.ts} +1 -1
  194. package/dist/{useToast-gQ9gzrbt.d.ts → useToast-B55ZUvwy.d.ts} +1 -1
  195. package/dist/utils/logger.js +1 -1
  196. package/package.json +1 -1
  197. package/dist/confirmation.context-C1-ZF9CW.js +0 -80
@@ -1,69 +1,42 @@
1
- import { o as y, t as Toast } from "../Toast-DycxJVq5.js";
2
- import { c } from "react/compiler-runtime";
3
- import { jsx } from "react/jsx-runtime";
1
+ import { t as activateToastRenderer } from "../toastActivation.store-BELtcr76.js";
2
+ import { useCallback, useMemo } from "react";
4
3
  //#region src/components/status/Toast/useToast.tsx
4
+ let nextToastId = 0;
5
+ const enqueueToast = (color, params, options) => {
6
+ const id = `povio-toast-${++nextToastId}`;
7
+ activateToastRenderer();
8
+ import("../toast.runtime--mTw_-fT.js").then(({ showToast }) => showToast(id, color, params, options));
9
+ return id;
10
+ };
5
11
  const useToast = () => {
6
- const $ = c(1);
7
- const successToast = _temp;
8
- const errorToast = _temp2;
9
- const warningToast = _temp3;
10
- const neutralToast = _temp4;
11
- const closeToast = _temp5;
12
- let t0;
13
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
14
- t0 = {
15
- successToast,
16
- errorToast,
17
- warningToast,
18
- neutralToast,
19
- closeToast
20
- };
21
- $[0] = t0;
22
- } else t0 = $[0];
23
- return t0;
12
+ const successToast = useCallback((params, options) => {
13
+ return enqueueToast("success", params, options);
14
+ }, []);
15
+ const errorToast = useCallback((params_0, options_0) => {
16
+ return enqueueToast("error", params_0, options_0);
17
+ }, []);
18
+ const warningToast = useCallback((params_1, options_1) => {
19
+ return enqueueToast("warning", params_1, options_1);
20
+ }, []);
21
+ const neutralToast = useCallback((params_2, options_2) => {
22
+ return enqueueToast("neutral", params_2, options_2);
23
+ }, []);
24
+ const closeToast = useCallback((id) => {
25
+ import("../toast.runtime--mTw_-fT.js").then(({ dismissToast }) => dismissToast(id));
26
+ }, []);
27
+ return useMemo(() => ({
28
+ successToast,
29
+ errorToast,
30
+ warningToast,
31
+ neutralToast,
32
+ closeToast
33
+ }), [
34
+ successToast,
35
+ errorToast,
36
+ warningToast,
37
+ neutralToast,
38
+ closeToast
39
+ ]);
24
40
  };
25
- function _temp(params, options) {
26
- return y.success(/* @__PURE__ */ jsx(Toast, {
27
- color: "success",
28
- ...params
29
- }), {
30
- ...options,
31
- position: params.position,
32
- data: { variant: params.variant }
33
- });
34
- }
35
- function _temp2(params_0, options_0) {
36
- return y.error(/* @__PURE__ */ jsx(Toast, {
37
- color: "error",
38
- ...params_0
39
- }), {
40
- ...options_0,
41
- position: params_0.position,
42
- data: { variant: params_0.variant }
43
- });
44
- }
45
- function _temp3(params_1, options_1) {
46
- return y.warning(/* @__PURE__ */ jsx(Toast, {
47
- color: "warning",
48
- ...params_1
49
- }), {
50
- ...options_1,
51
- position: params_1.position,
52
- data: { variant: params_1.variant }
53
- });
54
- }
55
- function _temp4(params_2, options_2) {
56
- return y.info(/* @__PURE__ */ jsx(Toast, {
57
- color: "neutral",
58
- ...params_2
59
- }), {
60
- ...options_2,
61
- position: params_2.position,
62
- data: { variant: params_2.variant }
63
- });
64
- }
65
- function _temp5(id) {
66
- y.dismiss(id);
67
- }
68
41
  //#endregion
69
42
  export { useToast };
@@ -1,2 +1,2 @@
1
- import { t as Confirmation } from "../confirmation.context-C1-ZF9CW.js";
1
+ import { t as Confirmation } from "../confirmation.context-2-6G831n.js";
2
2
  export { Confirmation };
@@ -1,2 +1,3 @@
1
- import { t as UIConfig } from "../uiConfig.context-DyCOXtaZ.js";
2
- export { UIConfig };
1
+ import { i as DateRangeRelativeOption } from "../DateRangePicker-CMWUdyh1.js";
2
+ import { t as UIConfig } from "../uiConfig.context-B27wINPD.js";
3
+ export { type DateRangeRelativeOption, UIConfig };
@@ -1,2 +1,2 @@
1
- import { t as UIConfig } from "../uiConfig.context-SBtRegKv.js";
1
+ import { t as UIConfig } from "../uiConfig.context-B_wBkrQZ.js";
2
2
  export { UIConfig };
@@ -0,0 +1,117 @@
1
+ import "./i18n-C2TBJvnh.js";
2
+ import { Suspense, createContext, lazy, use, useRef, useState } from "react";
3
+ import { c } from "react/compiler-runtime";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { useTranslation } from "react-i18next";
6
+ //#region src/config/confirmation.context.tsx
7
+ const ConfirmationDialog = lazy(() => import("./confirmation.dialog-Cveu3s5D.js"));
8
+ let Confirmation;
9
+ (function(_Confirmation) {
10
+ const Context = createContext(null);
11
+ _Confirmation.Provider = (t0) => {
12
+ const $ = c(14);
13
+ const { children } = t0;
14
+ let t1;
15
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
16
+ t1 = [];
17
+ $[0] = t1;
18
+ } else t1 = $[0];
19
+ const [requests, setRequests] = useState(t1);
20
+ const nextRequestId = useRef(0);
21
+ const { t } = useTranslation("ui");
22
+ let t2;
23
+ if ($[1] !== t) {
24
+ t2 = async (input) => new Promise((resolve) => {
25
+ setRequests((current) => [...current, {
26
+ id: nextRequestId.current = nextRequestId.current + 1,
27
+ input: {
28
+ ...input,
29
+ cancelLabel: input.cancelLabel ?? t(_temp),
30
+ confirmLabel: input.confirmLabel ?? t(_temp2)
31
+ },
32
+ resolve
33
+ }]);
34
+ });
35
+ $[1] = t;
36
+ $[2] = t2;
37
+ } else t2 = $[2];
38
+ const confirm = t2;
39
+ const activeRequest = requests[0];
40
+ let t3;
41
+ if ($[3] !== activeRequest) {
42
+ t3 = (result) => {
43
+ if (!activeRequest) return;
44
+ activeRequest.resolve(result);
45
+ setRequests((current_0) => current_0.filter((t4) => {
46
+ const { id } = t4;
47
+ return id !== activeRequest.id;
48
+ }));
49
+ };
50
+ $[3] = activeRequest;
51
+ $[4] = t3;
52
+ } else t3 = $[4];
53
+ const settle = t3;
54
+ let t4;
55
+ if ($[5] !== confirm) {
56
+ t4 = { confirm };
57
+ $[5] = confirm;
58
+ $[6] = t4;
59
+ } else t4 = $[6];
60
+ const value = t4;
61
+ let t5;
62
+ if ($[7] !== activeRequest || $[8] !== settle) {
63
+ t5 = activeRequest ? /* @__PURE__ */ jsx(Suspense, {
64
+ fallback: null,
65
+ children: /* @__PURE__ */ jsx(ConfirmationDialog, {
66
+ heading: activeRequest.input.heading,
67
+ description: activeRequest.input.description,
68
+ buttonSize: activeRequest.input.buttonSize,
69
+ textAlign: activeRequest.input.textAlign,
70
+ modalClassName: activeRequest.input.modalClassName,
71
+ isOpen: true,
72
+ onClose: () => settle(false),
73
+ primaryAction: {
74
+ label: activeRequest.input.confirmLabel ?? "",
75
+ variant: activeRequest.input.confirmVariant,
76
+ color: activeRequest.input.confirmColor,
77
+ onPress: () => settle(true)
78
+ },
79
+ secondaryAction: {
80
+ label: activeRequest.input.cancelLabel ?? "",
81
+ variant: activeRequest.input.cancelVariant,
82
+ color: activeRequest.input.cancelColor,
83
+ onPress: () => settle(false)
84
+ }
85
+ })
86
+ }) : null;
87
+ $[7] = activeRequest;
88
+ $[8] = settle;
89
+ $[9] = t5;
90
+ } else t5 = $[9];
91
+ let t6;
92
+ if ($[10] !== children || $[11] !== t5 || $[12] !== value) {
93
+ t6 = /* @__PURE__ */ jsxs(Context.Provider, {
94
+ value,
95
+ children: [t5, children]
96
+ });
97
+ $[10] = children;
98
+ $[11] = t5;
99
+ $[12] = value;
100
+ $[13] = t6;
101
+ } else t6 = $[13];
102
+ return t6;
103
+ };
104
+ _Confirmation.useConfirmation = () => {
105
+ const context = use(Context);
106
+ if (!context) throw new Error("Confirmation.useConfirmation must be used within a Confirmation.Provider");
107
+ return context;
108
+ };
109
+ })(Confirmation || (Confirmation = {}));
110
+ function _temp($) {
111
+ return $.ui.confirmation.cancel;
112
+ }
113
+ function _temp2($_0) {
114
+ return $_0.ui.confirmation.confirm;
115
+ }
116
+ //#endregion
117
+ export { Confirmation as t };
@@ -0,0 +1,16 @@
1
+ import { ActionModal } from "./components/action-modal.js";
2
+ import { c } from "react/compiler-runtime";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/config/confirmation.dialog.tsx
5
+ const ConfirmationDialog = (props) => {
6
+ const $ = c(2);
7
+ let t0;
8
+ if ($[0] !== props) {
9
+ t0 = /* @__PURE__ */ jsx(ActionModal, { ...props });
10
+ $[0] = props;
11
+ $[1] = t0;
12
+ } else t0 = $[1];
13
+ return t0;
14
+ };
15
+ //#endregion
16
+ export { ConfirmationDialog as default };
@@ -1,4 +1,4 @@
1
- import { r as DateRangePickerProps } from "./DateRangePicker-CjOo8S9R.js";
1
+ import { r as DateRangePickerProps } from "./DateRangePicker-CMWUdyh1.js";
2
2
  import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
3
3
  import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
4
4
  import { FieldValues } from "react-hook-form";
@@ -2,10 +2,10 @@ import { t as ChevronDown } from "./chevron-down-Ciz9yP9R.js";
2
2
  import { t as ChevronUp } from "./chevron-up-CHRnDSA3.js";
3
3
  import { t as clsx } from "./clsx-CnD0nOiA.js";
4
4
  import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-HV79Qf_F.js";
5
- import { _ as $32489daedd52963e$export$1315d136e6f7581, u as getPlaceholder, y as $16f0b7bb276bc17e$export$4c842f6a241dc825 } from "./staticDateTimeSegments-C8AOKnEO.js";
5
+ import { _ as $32489daedd52963e$export$1315d136e6f7581, u as getPlaceholder, y as $16f0b7bb276bc17e$export$4c842f6a241dc825 } from "./staticDateTimeSegments-BOFCK9Ub.js";
6
6
  import { t as Typography } from "./Typography-AcUd9df8.js";
7
7
  import { InlineIconButton } from "./components/inline-icon-button.js";
8
- import { t as useBreakpoint } from "./useBreakpoint-D0s71F97.js";
8
+ import { t as useBreakpoint } from "./useBreakpoint-YuMYUdpG.js";
9
9
  import { useEffect, useRef } from "react";
10
10
  import { c } from "react/compiler-runtime";
11
11
  import { Time } from "@internationalized/date";
@@ -1,13 +1,5 @@
1
- import { t as UIConfig } from "./uiConfig.context-SBtRegKv.js";
2
1
  import { t as clsx } from "./clsx-CnD0nOiA.js";
3
- import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
4
- import { t as Typography } from "./Typography-AcUd9df8.js";
5
- import { t as Loader } from "./Loader-C6YkWZOO.js";
6
- import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
7
- import { t as Button } from "./Button-B8T7AjGP.js";
8
2
  import $HgANd$react, { cloneElement, isValidElement, useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
9
- import { c } from "react/compiler-runtime";
10
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
3
  //#region ../../node_modules/.bun/react-toastify@11.0.5+67f6792bdf102c28/node_modules/react-toastify/dist/index.mjs
12
4
  function Mt(t) {
13
5
  if (!t || typeof document == "undefined") return;
@@ -675,283 +667,4 @@ function Lt(t) {
675
667
  }));
676
668
  }
677
669
  //#endregion
678
- //#region src/components/status/Toast/toast.cva.ts
679
- const toastContainerDefinition = UIOverrides.defineConfig({
680
- base: ["m-toast-gap-margin-mobile w-auto gap-toast-gap-margin-mobile p-0 md:m-toast-gap-margin-desktop md:gap-toast-gap-margin-desktop"],
681
- config: { variants: { position: {
682
- "bottom-right": "right-0 bottom-0",
683
- "bottom-left": "bottom-0 left-0",
684
- "top-right": "top-0 right-0",
685
- "top-left": "top-0 left-0",
686
- "bottom-center": "bottom-0",
687
- "top-center": "top-0"
688
- } } }
689
- });
690
- const toastWrapper = clsx("m-0! min-h-0! w-auto! max-w-toast bg-transparent! p-0! shadow-none!");
691
- const toastDefinition = UIOverrides.defineConfig({
692
- base: ["m-0 inline-flex w-auto flex-col items-center overflow-hidden rounded-toast-rounding-default shadow-4 md:flex-row"],
693
- config: {
694
- variants: {
695
- variant: {
696
- outlined: "border bg-elevation-fill-default-1 text-text-default-1",
697
- contained: "text-text-inverted-1"
698
- },
699
- color: {
700
- neutral: "",
701
- success: "",
702
- warning: "",
703
- error: ""
704
- },
705
- position: {
706
- "bottom-right": "",
707
- "bottom-left": "",
708
- "bottom-center": "",
709
- "top-right": "",
710
- "top-left": "",
711
- "top-center": ""
712
- }
713
- },
714
- compoundVariants: [
715
- {
716
- variant: "outlined",
717
- color: "neutral",
718
- className: "border-elevation-outline-default-1"
719
- },
720
- {
721
- variant: "outlined",
722
- color: "success",
723
- className: "border-elevation-outline-success-1"
724
- },
725
- {
726
- variant: "outlined",
727
- color: "warning",
728
- className: "border-elevation-outline-warning-1"
729
- },
730
- {
731
- variant: "outlined",
732
- color: "error",
733
- className: "border-elevation-outline-error-1"
734
- },
735
- {
736
- variant: "contained",
737
- color: "neutral",
738
- className: "bg-elevation-fill-inverted-1"
739
- },
740
- {
741
- variant: "contained",
742
- color: "success",
743
- className: "bg-elevation-fill-success-1"
744
- },
745
- {
746
- variant: "contained",
747
- color: "warning",
748
- className: "bg-elevation-fill-warning-1"
749
- },
750
- {
751
- variant: "contained",
752
- color: "error",
753
- className: "bg-elevation-fill-error-1"
754
- }
755
- ],
756
- defaultVariants: {
757
- variant: "outlined",
758
- color: "neutral"
759
- }
760
- }
761
- });
762
- const buttonColorVariant = compoundMapper({
763
- compoundVariants: [
764
- {
765
- variant: "outlined",
766
- color: "neutral",
767
- value: { color: "secondary" }
768
- },
769
- {
770
- variant: "outlined",
771
- color: "success",
772
- value: { color: "success" }
773
- },
774
- {
775
- variant: "outlined",
776
- color: "warning",
777
- value: { color: "warning" }
778
- },
779
- {
780
- variant: "outlined",
781
- color: "error",
782
- value: { color: "error" }
783
- },
784
- {
785
- variant: "contained",
786
- color: "neutral",
787
- value: {
788
- color: "primary",
789
- inverted: true
790
- }
791
- },
792
- {
793
- variant: "contained",
794
- color: "success",
795
- value: {
796
- color: "success",
797
- inverted: true
798
- }
799
- },
800
- {
801
- variant: "contained",
802
- color: "warning",
803
- value: {
804
- color: "warning",
805
- inverted: true
806
- }
807
- },
808
- {
809
- variant: "contained",
810
- color: "error",
811
- value: {
812
- color: "error",
813
- inverted: true
814
- }
815
- }
816
- ],
817
- defaultVariants: {
818
- variant: "outlined",
819
- color: "neutral"
820
- },
821
- default: { color: "secondary" }
822
- });
823
- const statusIconDefinition = UIOverrides.defineConfig({
824
- base: ["size-6 shrink-0"],
825
- config: {
826
- variants: {
827
- variant: {
828
- outlined: "",
829
- contained: "text-text-inverted-1"
830
- },
831
- color: {
832
- neutral: "",
833
- success: "",
834
- warning: "",
835
- error: ""
836
- }
837
- },
838
- compoundVariants: [
839
- {
840
- variant: "outlined",
841
- color: "neutral",
842
- className: "text-text-default-2"
843
- },
844
- {
845
- variant: "outlined",
846
- color: "success",
847
- className: "text-text-success-1"
848
- },
849
- {
850
- variant: "outlined",
851
- color: "warning",
852
- className: "text-text-warning-1"
853
- },
854
- {
855
- variant: "outlined",
856
- color: "error",
857
- className: "text-text-error-1"
858
- }
859
- ],
860
- defaultVariants: {
861
- variant: "outlined",
862
- color: "neutral"
863
- }
864
- }
865
- });
866
- const statusSeparatorDefinition = UIOverrides.defineConfig({
867
- base: ["h-px shrink-0 self-stretch md:h-auto md:w-px"],
868
- config: {
869
- variants: {
870
- variant: {
871
- outlined: "",
872
- contained: "hidden"
873
- },
874
- color: {
875
- neutral: "bg-elevation-outline-default-1",
876
- success: "bg-elevation-outline-success-1",
877
- warning: "bg-elevation-outline-warning-1",
878
- error: "bg-elevation-outline-error-1"
879
- }
880
- },
881
- defaultVariants: { color: "neutral" }
882
- }
883
- });
884
- //#endregion
885
- //#region src/components/status/Toast/Toast.tsx
886
- const Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) => {
887
- const uiConfig = UIConfig.useConfig();
888
- const { variant = uiConfig.toast.variant, ...restProps } = props;
889
- const toastCva = UIOverrides.useCva("toast.cva", toastDefinition);
890
- const buttonColor = UIOverrides.useMapper("toast.buttonColor", buttonColorVariant);
891
- const iconCva = UIOverrides.useCva("status.iconCva", statusIconDefinition);
892
- const separatorCva = UIOverrides.useCva("status.separatorCva", statusSeparatorDefinition);
893
- const variantProps = {
894
- variant,
895
- ...restProps
896
- };
897
- return /* @__PURE__ */ jsxs("div", {
898
- className: toastCva(variantProps),
899
- children: [/* @__PURE__ */ jsxs("div", {
900
- className: "flex items-start gap-toast-gap-icon-to-text px-toast-side-default py-toast-height-content",
901
- children: [
902
- isLoading && /* @__PURE__ */ jsx(Loader, {
903
- size: "default",
904
- className: "shrink-0"
905
- }),
906
- !isLoading && Icon && /* @__PURE__ */ jsx(Icon, { className: iconCva(variantProps) }),
907
- /* @__PURE__ */ jsx(Typography, {
908
- size: "label-2",
909
- children: text
910
- })
911
- ]
912
- }), actions.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { className: separatorCva(variantProps) }), /* @__PURE__ */ jsx("div", {
913
- className: "flex w-full shrink-0 flex-wrap items-center justify-end gap-toast-gap-action px-toast-side-default py-toast-height-actions-mobile md:w-auto md:justify-center md:py-toast-height-actions-desktop",
914
- children: actions.map(({ text: buttonText, onPress }) => /* @__PURE__ */ jsx(Button, {
915
- onPress,
916
- ...buttonColor(variantProps),
917
- variant: "text",
918
- size: "none",
919
- width: "hug",
920
- children: buttonText
921
- }, buttonText))
922
- })] })]
923
- });
924
- };
925
- const ToastContainer = () => {
926
- const $ = c(6);
927
- const uiConfig = UIConfig.useConfig();
928
- const containerCva = UIOverrides.useCva("toast.containerCva", toastContainerDefinition);
929
- let t0;
930
- if ($[0] !== containerCva || $[1] !== uiConfig.toast.position) {
931
- t0 = (params) => containerCva({
932
- position: params?.position ?? uiConfig.toast.position,
933
- className: params?.defaultClassName
934
- });
935
- $[0] = containerCva;
936
- $[1] = uiConfig.toast.position;
937
- $[2] = t0;
938
- } else t0 = $[2];
939
- let t1;
940
- if ($[3] !== t0 || $[4] !== uiConfig.toast.position) {
941
- t1 = /* @__PURE__ */ jsx(Lt, {
942
- position: uiConfig.toast.position,
943
- className: t0,
944
- toastClassName: toastWrapper,
945
- autoClose: 2500,
946
- icon: false,
947
- closeButton: false,
948
- hideProgressBar: true
949
- });
950
- $[3] = t0;
951
- $[4] = uiConfig.toast.position;
952
- $[5] = t1;
953
- } else t1 = $[5];
954
- return t1;
955
- };
956
- //#endregion
957
- export { toastDefinition as a, statusSeparatorDefinition as i, ToastContainer as n, y as o, statusIconDefinition as r, Toast as t };
670
+ export { y as n, Lt as t };
@@ -0,0 +1,49 @@
1
+ import { o as ObjectUtils } from "./uiConfig.context-B_wBkrQZ.js";
2
+ import { useRef, useState } from "react";
3
+ import { c } from "react/compiler-runtime";
4
+ //#region src/hooks/useStateAndRef.ts
5
+ const useStateAndRef = (initialState) => {
6
+ const $ = c(3);
7
+ const [state, setState] = useState(initialState);
8
+ const ref = useRef(state);
9
+ let t0;
10
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
11
+ t0 = (value) => {
12
+ ref.current = ObjectUtils.isFunction(value) ? value(ref.current) : value;
13
+ setState(ref.current);
14
+ };
15
+ $[0] = t0;
16
+ } else t0 = $[0];
17
+ const updateValue = t0;
18
+ let t1;
19
+ if ($[1] !== state) {
20
+ t1 = [
21
+ state,
22
+ ref,
23
+ updateValue
24
+ ];
25
+ $[1] = state;
26
+ $[2] = t1;
27
+ } else t1 = $[2];
28
+ return t1;
29
+ };
30
+ //#endregion
31
+ //#region src/utils/dom.utils.ts
32
+ let DomUtils;
33
+ (function(_DomUtils) {
34
+ const KEYBOARD_INPUTS = /* @__PURE__ */ new Set([
35
+ "button",
36
+ "submit",
37
+ "checkbox",
38
+ "file",
39
+ "image"
40
+ ]);
41
+ _DomUtils.isKeyboardInput = (elem) => {
42
+ return elem.tagName === "INPUT" && !KEYBOARD_INPUTS.has(elem.type) || elem.tagName === "TEXTAREA" || elem.hasAttribute("contenteditable");
43
+ };
44
+ _DomUtils.isKeyboardEvent = (event) => {
45
+ return event.nativeEvent instanceof KeyboardEvent;
46
+ };
47
+ })(DomUtils || (DomUtils = {}));
48
+ //#endregion
49
+ export { useStateAndRef as n, DomUtils as t };