@povio/ui 3.4.0-rc.25 → 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 (136) 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-BNGGxiX7.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/{Calendar-CzDZnIF0.js → Calendar-Dc1UbbAq.js} +4 -4
  7. package/dist/{DatePicker-O55fFlKg.js → DatePicker-BdRp_rG7.js} +4 -4
  8. package/dist/{DatePickerInput-CQKtbsQd.js → DatePickerInput-D3kmFpMZ.js} +1 -1
  9. package/dist/{DateRangePicker-CnxuqAB1.js → DateRangePicker-XhfuEunT.js} +4 -4
  10. package/dist/{DateTimePicker-B39ywgjx.js → DateTimePicker-_PD3JGVy.js} +4 -4
  11. package/dist/{Dialog-DpLXaUXz.js → Dialog-CXVxCqvL.js} +1 -1
  12. package/dist/Drawer-XaAwht0J.js +98 -0
  13. package/dist/{Form-DsbBBmgz.d.ts → Form-BX_x2VGS.d.ts} +1 -1
  14. package/dist/{InputItem-D4UmXpyc.js → InputItem-DWuSzs16.js} +5 -5
  15. package/dist/{Inputs-CnwGtVmt.d.ts → Inputs-B5F_klPo.d.ts} +1 -1
  16. package/dist/{Inputs-4vWHEAZ1.js → Inputs-D4duTr-F.js} +1 -1
  17. package/dist/{ListBox-BCW74bzR.js → ListBox-lSDt9Q4j.js} +1 -1
  18. package/dist/{Menu-DF3r5ssn.js → Menu-DDKo6fUO.js} +3 -3
  19. package/dist/{Menu-CVgRPAB3.d.ts → Menu-ucX0h-jq.d.ts} +1 -1
  20. package/dist/{MenuDesktop-CEftscnb.js → MenuDesktop-AnvU8TNb.js} +1 -1
  21. package/dist/{MenuItem-xJq_qdIf.d.ts → MenuItem--lQvt0VV.d.ts} +1 -1
  22. package/dist/{Modal-DdKOgTpG.js → Modal-BrOOpTQ4.js} +2 -2
  23. package/dist/{Modal-HBOqpsZ3.js → Modal-CAAJgOQb.js} +1 -1
  24. package/dist/{QuerySelect-CuZjxrle.d.ts → QuerySelect-tupQOlAT.d.ts} +2 -2
  25. package/dist/{ResponsivePopover-C8IriWcI.d.ts → ResponsivePopover-B-Z9sFxq.d.ts} +2 -1
  26. package/dist/{Select-C_cXfp8z.js → Select-BXhqcKAI.js} +1 -1
  27. package/dist/{Select-BQ9YJzFg.d.ts → Select-Do5qWHLj.d.ts} +1 -1
  28. package/dist/{SelectBase-Ds3nqzVg.d.ts → SelectBase-aSvWd7Cx.d.ts} +1 -1
  29. package/dist/{SplitButton-Cv9ej6Or.d.ts → SplitButton-DxrWH3EX.d.ts} +1 -1
  30. package/dist/TableDnd-CuHxANWh.js +133 -0
  31. package/dist/{TextEditor-CAh3oyK3.js → TextEditor-Co_gbkPT.js} +4 -4
  32. package/dist/{TimePicker-BY6IMP4p.js → TimePicker-dftQtlWT.js} +2 -2
  33. package/dist/Toast-BDoTQFr5.js +49 -0
  34. package/dist/{Toast-DDkev3SZ.d.ts → Toast-JL9yaI35.d.ts} +1 -2
  35. package/dist/ToastContainer-9OS5SK5K.d.ts +5 -0
  36. package/dist/ToastContainer-TRM91co1.js +23 -0
  37. package/dist/ToastRenderer-Dpax9sKV.js +40 -0
  38. package/dist/{autocomplete-NiLahf70.d.ts → autocomplete-bNuG6_dG.d.ts} +2 -2
  39. package/dist/components/action-modal.js +1 -1
  40. package/dist/components/autocomplete.d.ts +1 -1
  41. package/dist/components/autocomplete.js +1 -1
  42. package/dist/components/bottom-sheet.d.ts +3 -2
  43. package/dist/components/bottom-sheet.js +108 -1
  44. package/dist/components/breadcrumbs.js +1 -1
  45. package/dist/components/date-picker.js +1 -1
  46. package/dist/components/date-range-picker.js +1 -1
  47. package/dist/components/date-time-picker.js +1 -1
  48. package/dist/components/drawer.d.ts +5 -2
  49. package/dist/components/drawer.js +80 -87
  50. package/dist/components/file-upload-container.js +1 -1
  51. package/dist/components/file-upload.js +1 -1
  52. package/dist/components/input-upload.js +1 -1
  53. package/dist/components/menu.d.ts +2 -2
  54. package/dist/components/menu.js +2 -2
  55. package/dist/components/modal.js +1 -1
  56. package/dist/components/query-autocomplete.d.ts +2 -2
  57. package/dist/components/query-select.d.ts +1 -1
  58. package/dist/components/query-select.js +1 -1
  59. package/dist/components/responsive-popover.d.ts +1 -1
  60. package/dist/components/responsive-popover.js +2 -2
  61. package/dist/components/select.d.ts +2 -2
  62. package/dist/components/select.js +1 -1
  63. package/dist/components/split-button.d.ts +1 -1
  64. package/dist/components/split-button.js +1 -1
  65. package/dist/components/time-picker.js +1 -1
  66. package/dist/components/toast.d.ts +3 -2
  67. package/dist/components/toast.js +3 -2
  68. package/dist/components/use-toast.d.ts +1 -1
  69. package/dist/components/use-toast.js +37 -64
  70. package/dist/config/confirmation.js +1 -1
  71. package/dist/config/ui-config.d.ts +1 -1
  72. package/dist/confirmation.context-2-6G831n.js +117 -0
  73. package/dist/confirmation.dialog-Cveu3s5D.js +16 -0
  74. package/dist/{datePickerValue.utils-BoOLaZk_.js → datePickerValue.utils-469FeRCl.js} +1 -1
  75. package/dist/{Toast-trOdO6gl.js → dist-B4xyoAhc.js} +1 -288
  76. package/dist/dom.utils-CeVnXH-T.js +49 -0
  77. package/dist/{dynamicInputs-CiJNkz3F.d.ts → dynamicInputs-CecPNXsF.d.ts} +18 -18
  78. package/dist/index.d.ts +20 -18
  79. package/dist/index.js +21 -18
  80. package/dist/{logger-BPhG2izn.js → logger-WPC6ostp.js} +1 -1
  81. package/dist/{query-autocomplete-B3qBhSDk.d.ts → query-autocomplete-CHtcx_ND.d.ts} +2 -2
  82. package/dist/{query-select-BNNjF0Bc.d.ts → query-select-CD0iFQqR.d.ts} +2 -2
  83. package/dist/{queryAutocomplete.types-CpLHyvqN.d.ts → queryAutocomplete.types-DaTDttX5.d.ts} +2 -2
  84. package/dist/rhf/autocomplete.d.ts +2 -2
  85. package/dist/rhf/date-picker.js +1 -1
  86. package/dist/rhf/date-range-picker.js +1 -1
  87. package/dist/rhf/date-time-picker.js +1 -1
  88. package/dist/rhf/file-upload.js +1 -1
  89. package/dist/rhf/input-upload.js +1 -1
  90. package/dist/rhf/inputs.d.ts +1 -1
  91. package/dist/rhf/query-autocomplete.d.ts +1 -1
  92. package/dist/rhf/query-select.d.ts +1 -1
  93. package/dist/rhf/select.d.ts +2 -2
  94. package/dist/rhf/select.js +1 -1
  95. package/dist/rhf/text-editor.js +1 -1
  96. package/dist/rhf/time-picker.js +1 -1
  97. package/dist/rhf.d.ts +20 -18
  98. package/dist/rhf.js +21 -18
  99. package/dist/{rolldown-runtime-DUp30N8C.js → rolldown-runtime-B-lAHAz2.js} +10 -1
  100. package/dist/{select-CYuTeweS.d.ts → select-D80pWSgi.d.ts} +2 -2
  101. package/dist/{staticDateTimeSegments-CAEX9ogz.js → staticDateTimeSegments-BOFCK9Ub.js} +4 -4
  102. package/dist/{staticSelect.utils-Blrqx6Y6.js → staticSelect.utils-Bh1OVHuT.js} +5 -5
  103. package/dist/tanstack/autocomplete.d.ts +1 -1
  104. package/dist/tanstack/date-picker.js +1 -1
  105. package/dist/tanstack/date-range-picker.js +1 -1
  106. package/dist/tanstack/date-time-picker.js +1 -1
  107. package/dist/tanstack/file-upload.js +1 -1
  108. package/dist/tanstack/form.d.ts +1 -1
  109. package/dist/tanstack/form.js +1 -1
  110. package/dist/tanstack/input-upload.js +1 -1
  111. package/dist/tanstack/inputs.d.ts +2 -2
  112. package/dist/tanstack/inputs.js +1 -1
  113. package/dist/tanstack/query-select.d.ts +1 -1
  114. package/dist/tanstack/select.d.ts +1 -1
  115. package/dist/tanstack/select.js +1 -1
  116. package/dist/tanstack/table.d.ts +1 -1
  117. package/dist/tanstack/table.js +1 -1
  118. package/dist/tanstack/text-editor.js +1 -1
  119. package/dist/tanstack/time-picker.js +1 -1
  120. package/dist/tanstack.d.ts +19 -17
  121. package/dist/tanstack.js +28 -25
  122. package/dist/text-editor.js +1 -1
  123. package/dist/toast.cva-BGJCi2qq.js +211 -0
  124. package/dist/toast.runtime--mTw_-fT.js +18 -0
  125. package/dist/toastActivation.store-BELtcr76.js +16 -0
  126. package/dist/{uiConfig.context-bpfilZZ_.d.ts → uiConfig.context-B27wINPD.d.ts} +3 -3
  127. package/dist/{useFilter-BQRb0JpC.js → useFilter-DjR64hmy.js} +1 -1
  128. package/dist/{useFormAutosave-DJJdcgK-.js → useFormAutosave-DtYELduH.js} +1 -1
  129. package/dist/{useTableColumnConfig-DaAi30uc.js → useTableColumnConfig-CR0gk7hI.js} +53 -71
  130. package/dist/{useTableNav-BoQOVqZF.d.ts → useTableNav-CFHbvYvu.d.ts} +1 -1
  131. package/dist/{useToast-gQ9gzrbt.d.ts → useToast-B55ZUvwy.d.ts} +1 -1
  132. package/dist/utils/logger.js +1 -1
  133. package/package.json +1 -1
  134. package/dist/confirmation.context-C1-ZF9CW.js +0 -80
  135. package/dist/{FileUpload-CnYu5cmB.js → FileUpload-CNM9dv4D.js} +1 -1
  136. package/dist/{InputUpload-CAk3IStC.js → InputUpload-BQpUaRQl.js} +1 -1
@@ -1,96 +1,89 @@
1
- import { t as clsx } from "../clsx-CnD0nOiA.js";
2
- import { n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../Dialog-DpLXaUXz.js";
3
- import { n as $f3f84453ead64de5$export$8948f78d83984c69, t as $f3f84453ead64de5$export$2b77a92f1a5ad772 } from "../Modal-HBOqpsZ3.js";
4
- import { r as modalOverlay } from "../modal.cva-CbziPHSN.js";
1
+ import { t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../Dialog-CXVxCqvL.js";
2
+ import { Suspense, lazy, useEffect, useState } from "react";
5
3
  import { c } from "react/compiler-runtime";
6
4
  import { jsx, jsxs } from "react/jsx-runtime";
7
- //#region src/components/overlays/Drawer/Drawer.tsx
5
+ //#region src/components/overlays/Drawer/Drawer.lazy.tsx
6
+ const DrawerRenderer = lazy(() => import("../Drawer-XaAwht0J.js").then((n) => n.n).then(({ Drawer }) => ({ default: Drawer })));
8
7
  const Drawer = (t0) => {
9
- const $ = c(25);
10
- const { label, isOpen, portalContainerRef, onOpenChange, trigger, children, isDismissable, overlayClassName, dialogClassName, className, shouldCloseOnInteractOutside } = t0;
11
- if (trigger) {
12
- let t1;
13
- if ($[0] !== children || $[1] !== className || $[2] !== dialogClassName || $[3] !== isDismissable || $[4] !== label || $[5] !== overlayClassName || $[6] !== portalContainerRef || $[7] !== shouldCloseOnInteractOutside) {
14
- t1 = /* @__PURE__ */ jsx(DrawerOverlay, {
15
- label,
16
- portalContainerRef,
17
- isDismissable,
18
- overlayClassName,
19
- dialogClassName,
20
- className,
21
- shouldCloseOnInteractOutside,
22
- children
23
- });
24
- $[0] = children;
25
- $[1] = className;
26
- $[2] = dialogClassName;
27
- $[3] = isDismissable;
28
- $[4] = label;
29
- $[5] = overlayClassName;
30
- $[6] = portalContainerRef;
31
- $[7] = shouldCloseOnInteractOutside;
32
- $[8] = t1;
33
- } else t1 = $[8];
34
- let t2;
35
- if ($[9] !== isOpen || $[10] !== onOpenChange || $[11] !== t1 || $[12] !== trigger) {
36
- t2 = /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, {
37
- isOpen,
38
- onOpenChange,
39
- children: [trigger, t1]
40
- });
41
- $[9] = isOpen;
42
- $[10] = onOpenChange;
43
- $[11] = t1;
44
- $[12] = trigger;
45
- $[13] = t2;
46
- } else t2 = $[13];
47
- return t2;
8
+ const $ = c(22);
9
+ let isOpen;
10
+ let onOpenChange;
11
+ let props;
12
+ let trigger;
13
+ if ($[0] !== t0) {
14
+ ({isOpen, onOpenChange, trigger, ...props} = t0);
15
+ $[0] = t0;
16
+ $[1] = isOpen;
17
+ $[2] = onOpenChange;
18
+ $[3] = props;
19
+ $[4] = trigger;
20
+ } else {
21
+ isOpen = $[1];
22
+ onOpenChange = $[2];
23
+ props = $[3];
24
+ trigger = $[4];
48
25
  }
26
+ const [isDrawerOpen, setIsDrawerOpen] = useState(Boolean(isOpen));
27
+ const hasTrigger = Boolean(trigger);
49
28
  let t1;
50
- if ($[14] !== children || $[15] !== className || $[16] !== dialogClassName || $[17] !== isDismissable || $[18] !== isOpen || $[19] !== label || $[20] !== onOpenChange || $[21] !== overlayClassName || $[22] !== portalContainerRef || $[23] !== shouldCloseOnInteractOutside) {
51
- t1 = /* @__PURE__ */ jsx(DrawerOverlay, {
52
- isOpen,
53
- onOpenChange,
54
- portalContainerRef,
55
- isDismissable,
56
- overlayClassName,
57
- dialogClassName,
58
- className,
59
- label,
60
- shouldCloseOnInteractOutside,
61
- children
62
- });
63
- $[14] = children;
64
- $[15] = className;
65
- $[16] = dialogClassName;
66
- $[17] = isDismissable;
67
- $[18] = isOpen;
68
- $[19] = label;
69
- $[20] = onOpenChange;
70
- $[21] = overlayClassName;
71
- $[22] = portalContainerRef;
72
- $[23] = shouldCloseOnInteractOutside;
73
- $[24] = t1;
74
- } else t1 = $[24];
75
- return t1;
76
- };
77
- const DrawerOverlay = ({ label, isOpen, onOpenChange, portalContainerRef, children, isDismissable, overlayClassName, dialogClassName, className, shouldCloseOnInteractOutside }) => {
78
- return /* @__PURE__ */ jsx($f3f84453ead64de5$export$8948f78d83984c69, {
79
- isOpen,
80
- onOpenChange,
81
- UNSTABLE_portalContainer: portalContainerRef?.current,
82
- className: clsx(modalOverlay(), "z-drawer", overlayClassName),
83
- isDismissable,
84
- shouldCloseOnInteractOutside,
85
- children: /* @__PURE__ */ jsx($f3f84453ead64de5$export$2b77a92f1a5ad772, {
86
- className: clsx("fixed inset-y-0 right-0 z-drawer w-fit entering:animate-drawer-enter-right exiting:animate-drawer-exit-right bg-elevation-fill-default-1", className),
87
- children: /* @__PURE__ */ jsx($de32f1b87079253c$export$3ddf2d174ce01153, {
88
- "aria-label": label,
89
- className: clsx("outline-none", dialogClassName),
90
- children: ({ close }) => children(close)
29
+ let t2;
30
+ if ($[5] !== hasTrigger || $[6] !== isOpen) {
31
+ t1 = () => {
32
+ if (hasTrigger) setIsDrawerOpen(Boolean(isOpen));
33
+ };
34
+ t2 = [hasTrigger, isOpen];
35
+ $[5] = hasTrigger;
36
+ $[6] = isOpen;
37
+ $[7] = t1;
38
+ $[8] = t2;
39
+ } else {
40
+ t1 = $[7];
41
+ t2 = $[8];
42
+ }
43
+ useEffect(t1, t2);
44
+ let t3;
45
+ if ($[9] !== onOpenChange) {
46
+ t3 = (open) => {
47
+ setIsDrawerOpen(open);
48
+ onOpenChange?.(open);
49
+ };
50
+ $[9] = onOpenChange;
51
+ $[10] = t3;
52
+ } else t3 = $[10];
53
+ const handleOpenChange = t3;
54
+ const open_0 = trigger ? isDrawerOpen : Boolean(isOpen);
55
+ let t4;
56
+ if ($[11] !== handleOpenChange || $[12] !== onOpenChange || $[13] !== open_0 || $[14] !== props || $[15] !== trigger) {
57
+ t4 = open_0 ? /* @__PURE__ */ jsx(Suspense, {
58
+ fallback: null,
59
+ children: /* @__PURE__ */ jsx(DrawerRenderer, {
60
+ ...props,
61
+ isOpen: true,
62
+ onOpenChange: trigger ? handleOpenChange : onOpenChange
91
63
  })
92
- })
93
- });
64
+ }) : null;
65
+ $[11] = handleOpenChange;
66
+ $[12] = onOpenChange;
67
+ $[13] = open_0;
68
+ $[14] = props;
69
+ $[15] = trigger;
70
+ $[16] = t4;
71
+ } else t4 = $[16];
72
+ const renderer = t4;
73
+ let t5;
74
+ if ($[17] !== handleOpenChange || $[18] !== isDrawerOpen || $[19] !== renderer || $[20] !== trigger) {
75
+ t5 = trigger ? /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, {
76
+ isOpen: isDrawerOpen,
77
+ onOpenChange: handleOpenChange,
78
+ children: [trigger, renderer]
79
+ }) : renderer;
80
+ $[17] = handleOpenChange;
81
+ $[18] = isDrawerOpen;
82
+ $[19] = renderer;
83
+ $[20] = trigger;
84
+ $[21] = t5;
85
+ } else t5 = $[21];
86
+ return t5;
94
87
  };
95
88
  //#endregion
96
89
  export { Drawer };
@@ -1,4 +1,4 @@
1
- import { t as FileUpload } from "../FileUpload-CnYu5cmB.js";
1
+ import { t as FileUpload } from "../FileUpload-CNM9dv4D.js";
2
2
  import { memo } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/inputs/File/FileUploadContainer.tsx
@@ -1,2 +1,2 @@
1
- import { t as FileUpload } from "../FileUpload-CnYu5cmB.js";
1
+ import { t as FileUpload } from "../FileUpload-CNM9dv4D.js";
2
2
  export { FileUpload };
@@ -1,2 +1,2 @@
1
- import { t as InputUpload } from "../InputUpload-CAk3IStC.js";
1
+ import { t as InputUpload } from "../InputUpload-BQpUaRQl.js";
2
2
  export { InputUpload };
@@ -1,3 +1,3 @@
1
- import { n as MenuItem$1, r as MenuProps, t as Menu } from "../Menu-CVgRPAB3.js";
2
- import { n as MenuListItemProps, t as MenuItem } from "../MenuItem-xJq_qdIf.js";
1
+ import { n as MenuItem$1, r as MenuProps, t as Menu } from "../Menu-ucX0h-jq.js";
2
+ import { n as MenuListItemProps, t as MenuItem } from "../MenuItem--lQvt0VV.js";
3
3
  export { Menu, MenuItem, type MenuItem$1 as MenuItemDefinition, type MenuListItemProps, type MenuProps };
@@ -1,3 +1,3 @@
1
- import { t as Menu } from "../Menu-DF3r5ssn.js";
2
- import { r as MenuItem } from "../MenuDesktop-CEftscnb.js";
1
+ import { t as Menu } from "../Menu-DDKo6fUO.js";
2
+ import { r as MenuItem } from "../MenuDesktop-AnvU8TNb.js";
3
3
  export { Menu, MenuItem };
@@ -1,2 +1,2 @@
1
- import { t as Modal } from "../Modal-DdKOgTpG.js";
1
+ import { t as Modal } from "../Modal-BrOOpTQ4.js";
2
2
  export { Modal };
@@ -1,6 +1,6 @@
1
1
  import { n as FieldValues } from "../form.binding-DWlFTecs.js";
2
- import { s as SelectItem } from "../SelectBase-Ds3nqzVg.js";
3
- import { n as QueryFn, t as QueryAutocompleteProps } from "../queryAutocomplete.types-CpLHyvqN.js";
2
+ import { s as SelectItem } from "../SelectBase-aSvWd7Cx.js";
3
+ import { n as QueryFn, t as QueryAutocompleteProps } from "../queryAutocomplete.types-DaTDttX5.js";
4
4
  //#region src/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts
5
5
  declare const QueryAutocompleteComponent: <TFieldValues extends FieldValues, TSelectItem extends SelectItem<any>, TQueryFn extends QueryFn>(props: QueryAutocompleteProps<TFieldValues, TSelectItem, TQueryFn>) => import("react/jsx-runtime").JSX.Element;
6
6
  declare const QueryAutocomplete: typeof QueryAutocompleteComponent;
@@ -1,2 +1,2 @@
1
- import { n as QuerySelectProps, t as QuerySelect } from "../QuerySelect-CuZjxrle.js";
1
+ import { n as QuerySelectProps, t as QuerySelect } from "../QuerySelect-tupQOlAT.js";
2
2
  export { QuerySelect, QuerySelectProps };
@@ -1,7 +1,7 @@
1
1
  import { t as UIConfig } from "../uiConfig.context-B_wBkrQZ.js";
2
2
  import { _ as $5dc95899b306f630$export$c9058316764c140e } from "../import-CuNJ25EP.js";
3
3
  import { t as FieldController } from "../form.binding-DyZ4fH8l.js";
4
- import { t as Select } from "../Select-C_cXfp8z.js";
4
+ import { t as Select } from "../Select-BXhqcKAI.js";
5
5
  import { n as getQueryItems, r as getSelectionIdsToResolve, t as useQueryAutocomplete } from "../useQueryAutocomplete-CraXvRm_.js";
6
6
  import { memo, useCallback, useMemo, useState } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { n as ResponsivePopoverProps, t as ResponsivePopover } from "../ResponsivePopover-C8IriWcI.js";
1
+ import { n as ResponsivePopoverProps, t as ResponsivePopover } from "../ResponsivePopover-B-Z9sFxq.js";
2
2
  export { ResponsivePopover, ResponsivePopoverProps };
@@ -1,7 +1,7 @@
1
1
  import { t as clsx } from "../clsx-CnD0nOiA.js";
2
- import { c as $07b14b47974efb58$export$5b6b19405a83ff9d, n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../Dialog-DpLXaUXz.js";
2
+ import { c as $07b14b47974efb58$export$5b6b19405a83ff9d, n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../Dialog-CXVxCqvL.js";
3
3
  import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
4
- import { t as BottomSheet } from "../BottomSheet-BNGGxiX7.js";
4
+ import { BottomSheet } from "./bottom-sheet.js";
5
5
  import { t as useBreakpoint } from "../useBreakpoint-YuMYUdpG.js";
6
6
  import { t as popoverDefinition } from "../popover.cva-CXha_UMQ.js";
7
7
  import { c } from "react/compiler-runtime";
@@ -1,3 +1,3 @@
1
- import { n as DefaultInitialSelectItem, o as SelectAsyncProps, s as SelectItem, t as SelectBaseProps } from "../SelectBase-Ds3nqzVg.js";
2
- import { n as Select, r as SelectProps, t as ControlledSelectProps } from "../Select-BQ9YJzFg.js";
1
+ import { n as DefaultInitialSelectItem, o as SelectAsyncProps, s as SelectItem, t as SelectBaseProps } from "../SelectBase-aSvWd7Cx.js";
2
+ import { n as Select, r as SelectProps, t as ControlledSelectProps } from "../Select-Do5qWHLj.js";
3
3
  export { type ControlledSelectProps, type DefaultInitialSelectItem, Select, type SelectAsyncProps, type SelectBaseProps, type SelectItem, type SelectProps };
@@ -1,2 +1,2 @@
1
- import { t as Select } from "../Select-C_cXfp8z.js";
1
+ import { t as Select } from "../Select-BXhqcKAI.js";
2
2
  export { Select };
@@ -1,2 +1,2 @@
1
- import { n as SplitButtonProps, t as SplitButton } from "../SplitButton-Cv9ej6Or.js";
1
+ import { n as SplitButtonProps, t as SplitButton } from "../SplitButton-DxrWH3EX.js";
2
2
  export { SplitButton, SplitButtonProps };
@@ -1,4 +1,4 @@
1
- import { t as Menu } from "../Menu-DF3r5ssn.js";
1
+ import { t as Menu } from "../Menu-DDKo6fUO.js";
2
2
  import { t as ChevronDown } from "../chevron-down-Ciz9yP9R.js";
3
3
  import { t as clsx } from "../clsx-CnD0nOiA.js";
4
4
  import { t as Button } from "../Button-CtPMeT8f.js";
@@ -1,2 +1,2 @@
1
- import { t as TimePicker } from "../TimePicker-BY6IMP4p.js";
1
+ import { t as TimePicker } from "../TimePicker-dftQtlWT.js";
2
2
  export { TimePicker };
@@ -1,2 +1,3 @@
1
- import { a as ToastVariantProps, i as ToastProps, n as ToastAction, r as ToastContainer, t as Toast } from "../Toast-DDkev3SZ.js";
2
- export { Toast, type ToastAction, ToastContainer, type ToastProps, type ToastVariantProps };
1
+ import { i as ToastVariantProps, n as ToastAction, r as ToastProps, t as Toast } from "../Toast-JL9yaI35.js";
2
+ import { n as ToastProvider, t as ToastContainer } from "../ToastContainer-9OS5SK5K.js";
3
+ export { Toast, type ToastAction, ToastContainer, type ToastProps, ToastProvider, type ToastVariantProps };
@@ -1,2 +1,3 @@
1
- import { n as ToastContainer, t as Toast } from "../Toast-trOdO6gl.js";
2
- export { Toast, ToastContainer };
1
+ import { t as Toast } from "../Toast-BDoTQFr5.js";
2
+ import { n as ToastProvider, t as ToastContainer } from "../ToastContainer-TRM91co1.js";
3
+ export { Toast, ToastContainer, ToastProvider };
@@ -1,2 +1,2 @@
1
- import { n as ToastParams, r as useToast, t as ToastOptions } from "../useToast-gQ9gzrbt.js";
1
+ import { n as ToastParams, r as useToast, t as ToastOptions } from "../useToast-B55ZUvwy.js";
2
2
  export { ToastOptions, ToastParams, useToast };
@@ -1,69 +1,42 @@
1
- import { o as y, t as Toast } from "../Toast-trOdO6gl.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,3 +1,3 @@
1
1
  import { i as DateRangeRelativeOption } from "../DateRangePicker-CMWUdyh1.js";
2
- import { t as UIConfig } from "../uiConfig.context-bpfilZZ_.js";
2
+ import { t as UIConfig } from "../uiConfig.context-B27wINPD.js";
3
3
  export { type DateRangeRelativeOption, 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 };
@@ -2,7 +2,7 @@ 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-CAEX9ogz.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
8
  import { t as useBreakpoint } from "./useBreakpoint-YuMYUdpG.js";