@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
@@ -0,0 +1,133 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
4
+ import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
5
+ import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
6
+ import { CSS } from "@dnd-kit/utilities";
7
+ //#region src/components/table/TableDnd.tsx
8
+ const DndProvider = (t0) => {
9
+ const $ = c(5);
10
+ const { children, onDragEnd } = t0;
11
+ const sensors = useSensors(useSensor(MouseSensor), useSensor(TouchSensor), useSensor(KeyboardSensor));
12
+ let t1;
13
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
14
+ t1 = [restrictToVerticalAxis];
15
+ $[0] = t1;
16
+ } else t1 = $[0];
17
+ let t2;
18
+ if ($[1] !== children || $[2] !== onDragEnd || $[3] !== sensors) {
19
+ t2 = /* @__PURE__ */ jsx(DndContext, {
20
+ collisionDetection: closestCenter,
21
+ modifiers: t1,
22
+ onDragEnd,
23
+ sensors,
24
+ children
25
+ });
26
+ $[1] = children;
27
+ $[2] = onDragEnd;
28
+ $[3] = sensors;
29
+ $[4] = t2;
30
+ } else t2 = $[4];
31
+ return t2;
32
+ };
33
+ const SortableRows = (t0) => {
34
+ const $ = c(3);
35
+ const { children, items } = t0;
36
+ let t1;
37
+ if ($[0] !== children || $[1] !== items) {
38
+ t1 = /* @__PURE__ */ jsx(SortableContext, {
39
+ items,
40
+ strategy: verticalListSortingStrategy,
41
+ children
42
+ });
43
+ $[0] = children;
44
+ $[1] = items;
45
+ $[2] = t1;
46
+ } else t1 = $[2];
47
+ return t1;
48
+ };
49
+ const DraggableRow = (t0) => {
50
+ const $ = c(18);
51
+ const { id, className, isClickable, isSelected, onClick, onDoubleClick, children } = t0;
52
+ let t1;
53
+ if ($[0] !== id) {
54
+ t1 = { id };
55
+ $[0] = id;
56
+ $[1] = t1;
57
+ } else t1 = $[1];
58
+ const { transform, transition, setNodeRef, isDragging } = useSortable(t1);
59
+ let t2;
60
+ if ($[2] !== transform) {
61
+ t2 = CSS.Transform.toString(transform);
62
+ $[2] = transform;
63
+ $[3] = t2;
64
+ } else t2 = $[3];
65
+ const t3 = isDragging ? .8 : 1;
66
+ const t4 = isDragging ? 1 : 0;
67
+ let t5;
68
+ if ($[4] !== t2 || $[5] !== t3 || $[6] !== t4 || $[7] !== transition) {
69
+ t5 = {
70
+ transform: t2,
71
+ transition,
72
+ opacity: t3,
73
+ zIndex: t4,
74
+ position: "relative"
75
+ };
76
+ $[4] = t2;
77
+ $[5] = t3;
78
+ $[6] = t4;
79
+ $[7] = transition;
80
+ $[8] = t5;
81
+ } else t5 = $[8];
82
+ const style = t5;
83
+ const t6 = isClickable || void 0;
84
+ const t7 = isSelected || void 0;
85
+ let t8;
86
+ if ($[9] !== children || $[10] !== className || $[11] !== onClick || $[12] !== onDoubleClick || $[13] !== setNodeRef || $[14] !== style || $[15] !== t6 || $[16] !== t7) {
87
+ t8 = /* @__PURE__ */ jsx("tr", {
88
+ ref: setNodeRef,
89
+ style,
90
+ className,
91
+ "data-clickable": t6,
92
+ "data-selected": t7,
93
+ onClick,
94
+ onDoubleClick,
95
+ children
96
+ });
97
+ $[9] = children;
98
+ $[10] = className;
99
+ $[11] = onClick;
100
+ $[12] = onDoubleClick;
101
+ $[13] = setNodeRef;
102
+ $[14] = style;
103
+ $[15] = t6;
104
+ $[16] = t7;
105
+ $[17] = t8;
106
+ } else t8 = $[17];
107
+ return t8;
108
+ };
109
+ const DragHandle = (t0) => {
110
+ const $ = c(6);
111
+ const { id, children } = t0;
112
+ let t1;
113
+ if ($[0] !== id) {
114
+ t1 = { id };
115
+ $[0] = id;
116
+ $[1] = t1;
117
+ } else t1 = $[1];
118
+ const { attributes, listeners } = useSortable(t1);
119
+ let t2;
120
+ if ($[2] !== attributes || $[3] !== children || $[4] !== listeners) {
121
+ t2 = children({
122
+ ...attributes,
123
+ ...listeners
124
+ });
125
+ $[2] = attributes;
126
+ $[3] = children;
127
+ $[4] = listeners;
128
+ $[5] = t2;
129
+ } else t2 = $[5];
130
+ return t2;
131
+ };
132
+ //#endregion
133
+ export { DndProvider, DragHandle, DraggableRow, SortableRows };
@@ -5,9 +5,9 @@ import { r as FormFieldLabel, t as FormField } from "./FormField-ChDNTHr4.js";
5
5
  import { t as clsx } from "./clsx-CnD0nOiA.js";
6
6
  import { _ as $5dc95899b306f630$export$c9058316764c140e, b as $bdb11010cef70236$export$f680877a34711e37, d as $64fa3d84918910a7$export$df3a06d6289f983e, g as $3ef42575df84b30b$export$9d1611c77c2fe928, h as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, l as $64fa3d84918910a7$export$c245e6201fed2f75, o as $64fa3d84918910a7$export$29f1550f4b0d4415, s as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./import-CuNJ25EP.js";
7
7
  import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-HV79Qf_F.js";
8
- import { c as $07b14b47974efb58$export$5b6b19405a83ff9d, n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "./Dialog-DpLXaUXz.js";
8
+ import { c as $07b14b47974efb58$export$5b6b19405a83ff9d, n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "./Dialog-CXVxCqvL.js";
9
9
  import { c as $9446cca9a3875146$export$b6268554fba451f, s as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./OverlayArrow-Bz_8bYjT.js";
10
- import { i as $eed445e0843c11d0$export$a11e76429ed99b4, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "./ListBox-BCW74bzR.js";
10
+ import { i as $eed445e0843c11d0$export$a11e76429ed99b4, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "./ListBox-lSDt9Q4j.js";
11
11
  import { t as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-Bk39gTui.js";
12
12
  import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-oSE-CM83.js";
13
13
  import { i as $5b160d28a433310d$export$c17fa47878dc55b6, n as $fca6afa0e843324b$export$f12b703ca79dfbb1, r as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-D9TmTRN_.js";
@@ -18,12 +18,12 @@ import { t as Typography } from "./Typography-AcUd9df8.js";
18
18
  import { n as uiOutlineClass } from "./outline.clsx-50W_vNDl.js";
19
19
  import { t as Button } from "./Button-CtPMeT8f.js";
20
20
  import { InlineIconButton } from "./components/inline-icon-button.js";
21
- import "./i18n-C2TBJvnh.js";
22
21
  import { t as FieldController } from "./form.binding-DyZ4fH8l.js";
22
+ import "./i18n-C2TBJvnh.js";
23
23
  import { i as inputSideDefinition, o as useInputCva } from "./input.cva-KYGD4Bdz.js";
24
24
  import { t as popoverDefinition } from "./popover.cva-CXha_UMQ.js";
25
25
  import { TextInput } from "./components/text-input.js";
26
- import { t as Select } from "./Select-C_cXfp8z.js";
26
+ import { t as Select } from "./Select-BXhqcKAI.js";
27
27
  import { ResponsivePopover } from "./components/responsive-popover.js";
28
28
  import $HgANd$react, { createContext, forwardRef, memo, useContext, useEffect, useMemo, useRef, useState } from "react";
29
29
  import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
@@ -3,7 +3,7 @@ import { r as FormFieldLabel, t as FormField } from "./FormField-ChDNTHr4.js";
3
3
  import { t as clsx } from "./clsx-CnD0nOiA.js";
4
4
  import { _ as $5dc95899b306f630$export$c9058316764c140e } from "./import-CuNJ25EP.js";
5
5
  import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-HV79Qf_F.js";
6
- import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, g as useTimeFieldState, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog, y as $16f0b7bb276bc17e$export$4c842f6a241dc825 } from "./staticDateTimeSegments-CAEX9ogz.js";
6
+ import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, g as useTimeFieldState, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog, y as $16f0b7bb276bc17e$export$4c842f6a241dc825 } from "./staticDateTimeSegments-BOFCK9Ub.js";
7
7
  import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-oSE-CM83.js";
8
8
  import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
9
9
  import { t as Typography } from "./Typography-AcUd9df8.js";
@@ -12,7 +12,7 @@ import { t as FieldController } from "./form.binding-DyZ4fH8l.js";
12
12
  import { r as InputClear, t as TooltipWrapper } from "./TooltipWrapper-eCF5-eNP.js";
13
13
  import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-KYGD4Bdz.js";
14
14
  import { n as InputFrame, t as useStaticInputHandoff } from "./useStaticInputHandoff-ClwANfo-.js";
15
- import { n as TimePickerForm, t as normalizeDatePickerValue } from "./datePickerValue.utils-BoOLaZk_.js";
15
+ import { n as TimePickerForm, t as normalizeDatePickerValue } from "./datePickerValue.utils-469FeRCl.js";
16
16
  import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
17
17
  import { memo, useEffect, useRef, useState } from "react";
18
18
  import { getLocalTimeZone, now, toTime } from "@internationalized/date";
@@ -0,0 +1,49 @@
1
+ import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
2
+ import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
3
+ import { t as Typography } from "./Typography-AcUd9df8.js";
4
+ import { t as Loader } from "./Loader-C6YkWZOO.js";
5
+ import { t as Button } from "./Button-CtPMeT8f.js";
6
+ import { a as toastDefinition, n as statusIconDefinition, r as statusSeparatorDefinition, t as buttonColorVariant } from "./toast.cva-BGJCi2qq.js";
7
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ //#region src/components/status/Toast/Toast.tsx
9
+ const Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) => {
10
+ const uiConfig = UIConfig.useConfig();
11
+ const { variant = uiConfig.toast.variant, ...restProps } = props;
12
+ const toastCva = UIOverrides.useCva("toast.cva", toastDefinition);
13
+ const buttonColor = UIOverrides.useMapper("toast.buttonColor", buttonColorVariant);
14
+ const iconCva = UIOverrides.useCva("status.iconCva", statusIconDefinition);
15
+ const separatorCva = UIOverrides.useCva("status.separatorCva", statusSeparatorDefinition);
16
+ const variantProps = {
17
+ variant,
18
+ ...restProps
19
+ };
20
+ return /* @__PURE__ */ jsxs("div", {
21
+ className: toastCva(variantProps),
22
+ children: [/* @__PURE__ */ jsxs("div", {
23
+ className: "flex items-start gap-toast-gap-icon-to-text px-toast-side-default py-toast-height-content",
24
+ children: [
25
+ isLoading && /* @__PURE__ */ jsx(Loader, {
26
+ size: "default",
27
+ className: "shrink-0"
28
+ }),
29
+ !isLoading && Icon && /* @__PURE__ */ jsx(Icon, { className: iconCva(variantProps) }),
30
+ /* @__PURE__ */ jsx(Typography, {
31
+ size: "label-2",
32
+ children: text
33
+ })
34
+ ]
35
+ }), actions.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", { className: separatorCva(variantProps) }), /* @__PURE__ */ jsx("div", {
36
+ 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",
37
+ children: actions.map(({ text: buttonText, onPress }) => /* @__PURE__ */ jsx(Button, {
38
+ onPress,
39
+ ...buttonColor(variantProps),
40
+ variant: "text",
41
+ size: "none",
42
+ width: "hug",
43
+ children: buttonText
44
+ }, buttonText))
45
+ })] })]
46
+ });
47
+ };
48
+ //#endregion
49
+ export { Toast as t };
@@ -70,6 +70,5 @@ interface ToastProps extends ToastVariantProps {
70
70
  actions?: ToastAction[];
71
71
  }
72
72
  declare const Toast: ({ text, isLoading, actions, icon: Icon, ...props }: ToastProps) => import("react/jsx-runtime").JSX.Element;
73
- declare const ToastContainer: () => import("react/jsx-runtime").JSX.Element;
74
73
  //#endregion
75
- export { ToastVariantProps as a, toastDefinition as c, ToastProps as i, ToastAction as n, statusIconDefinition as o, ToastContainer as r, statusSeparatorDefinition as s, Toast as t };
74
+ export { statusIconDefinition as a, ToastVariantProps as i, ToastAction as n, statusSeparatorDefinition as o, ToastProps as r, toastDefinition as s, Toast as t };
@@ -0,0 +1,5 @@
1
+ //#region src/components/status/Toast/ToastContainer.d.ts
2
+ declare const ToastContainer: () => import("react/jsx-runtime").JSX.Element | null;
3
+ declare const ToastProvider: typeof ToastContainer;
4
+ //#endregion
5
+ export { ToastProvider as n, ToastContainer as t };
@@ -0,0 +1,23 @@
1
+ import { i as subscribeToToastActivation, n as isToastRendererActive, r as isToastRendererInactive } from "./toastActivation.store-BELtcr76.js";
2
+ import { Suspense, lazy, useSyncExternalStore } from "react";
3
+ import { c } from "react/compiler-runtime";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/status/Toast/ToastContainer.tsx
6
+ const ToastRenderer = lazy(() => import("./ToastRenderer-Dpax9sKV.js"));
7
+ const ToastContainer = () => {
8
+ const $ = c(2);
9
+ const isActive = useSyncExternalStore(subscribeToToastActivation, isToastRendererActive, isToastRendererInactive);
10
+ let t0;
11
+ if ($[0] !== isActive) {
12
+ t0 = isActive ? /* @__PURE__ */ jsx(Suspense, {
13
+ fallback: null,
14
+ children: /* @__PURE__ */ jsx(ToastRenderer, {})
15
+ }) : null;
16
+ $[0] = isActive;
17
+ $[1] = t0;
18
+ } else t0 = $[1];
19
+ return t0;
20
+ };
21
+ const ToastProvider = ToastContainer;
22
+ //#endregion
23
+ export { ToastProvider as n, ToastContainer as t };
@@ -0,0 +1,40 @@
1
+ import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
2
+ import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
3
+ import { i as toastContainerDefinition, o as toastWrapper } from "./toast.cva-BGJCi2qq.js";
4
+ import { t as Lt } from "./dist-B4xyoAhc.js";
5
+ import { c } from "react/compiler-runtime";
6
+ import { jsx } from "react/jsx-runtime";
7
+ //#region src/components/status/Toast/ToastRenderer.tsx
8
+ const ToastRenderer = () => {
9
+ const $ = c(6);
10
+ const uiConfig = UIConfig.useConfig();
11
+ const containerCva = UIOverrides.useCva("toast.containerCva", toastContainerDefinition);
12
+ let t0;
13
+ if ($[0] !== containerCva || $[1] !== uiConfig.toast.position) {
14
+ t0 = (params) => containerCva({
15
+ position: params?.position ?? uiConfig.toast.position,
16
+ className: params?.defaultClassName
17
+ });
18
+ $[0] = containerCva;
19
+ $[1] = uiConfig.toast.position;
20
+ $[2] = t0;
21
+ } else t0 = $[2];
22
+ let t1;
23
+ if ($[3] !== t0 || $[4] !== uiConfig.toast.position) {
24
+ t1 = /* @__PURE__ */ jsx(Lt, {
25
+ position: uiConfig.toast.position,
26
+ className: t0,
27
+ toastClassName: toastWrapper,
28
+ autoClose: 2500,
29
+ icon: false,
30
+ closeButton: false,
31
+ hideProgressBar: true
32
+ });
33
+ $[3] = t0;
34
+ $[4] = uiConfig.toast.position;
35
+ $[5] = t1;
36
+ } else t1 = $[5];
37
+ return t1;
38
+ };
39
+ //#endregion
40
+ export { ToastRenderer as default };
@@ -1,6 +1,6 @@
1
1
  import { E as Key } from "./types-BSiv-Igp.js";
2
- import { a as MultiSelectProps, c as SingleSelectProps, i as GroupedSelectProps, n as DefaultInitialSelectItem } from "./SelectBase-Ds3nqzVg.js";
3
- import { n as AutocompleteProps } from "./Autocomplete-Ce3ygKxG.js";
2
+ import { a as MultiSelectProps, c as SingleSelectProps, i as GroupedSelectProps, n as DefaultInitialSelectItem } from "./SelectBase-aSvWd7Cx.js";
3
+ import { n as AutocompleteProps } from "./Autocomplete-0tckACUz.js";
4
4
  import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
5
5
  import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
6
6
  import { FieldValues } from "react-hook-form";
@@ -2,7 +2,7 @@ import { t as UIConfig } from "../uiConfig.context-B_wBkrQZ.js";
2
2
  import { t as clsx } from "../clsx-CnD0nOiA.js";
3
3
  import { t as Typography } from "../Typography-AcUd9df8.js";
4
4
  import { t as Button } from "../Button-CtPMeT8f.js";
5
- import { t as Modal } from "../Modal-DdKOgTpG.js";
5
+ import { t as Modal } from "../Modal-BrOOpTQ4.js";
6
6
  import { c } from "react/compiler-runtime";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region src/components/overlays/ActionModal/ActionModal.tsx
@@ -1,2 +1,2 @@
1
- import { n as AutocompleteProps, r as ControlledAutocompleteProps, t as Autocomplete } from "../Autocomplete-Ce3ygKxG.js";
1
+ import { n as AutocompleteProps, r as ControlledAutocompleteProps, t as Autocomplete } from "../Autocomplete-0tckACUz.js";
2
2
  export { Autocomplete, AutocompleteProps, ControlledAutocompleteProps };
@@ -1,5 +1,5 @@
1
1
  import { t as UIConfig } from "../uiConfig.context-B_wBkrQZ.js";
2
- import { l as selectInputTagsContentWrapperDefinition, n as StaticSelectTrailingContent, r as SelectBase, t as getStaticSelectValue } from "../staticSelect.utils-Blrqx6Y6.js";
2
+ import { l as selectInputTagsContentWrapperDefinition, n as StaticSelectTrailingContent, r as SelectBase, t as getStaticSelectValue } from "../staticSelect.utils-Bh1OVHuT.js";
3
3
  import { t as clsx } from "../clsx-CnD0nOiA.js";
4
4
  import { _ as $5dc95899b306f630$export$c9058316764c140e } from "../import-CuNJ25EP.js";
5
5
  import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
@@ -1,2 +1,3 @@
1
- import { n as BottomSheetProps, t as BottomSheet } from "../BottomSheet-BWKej2PR.js";
2
- export { BottomSheet, BottomSheetProps };
1
+ import { t as BottomSheetProps } from "../BottomSheet-BZXBtOHF.js";
2
+ import { t as BottomSheet } from "../BottomSheet.lazy-DT02808T.js";
3
+ export { BottomSheet, type BottomSheetProps };
@@ -1,2 +1,109 @@
1
- import { t as BottomSheet } from "../BottomSheet-BNGGxiX7.js";
1
+ import { t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../Dialog-CXVxCqvL.js";
2
+ import { Suspense, lazy, useEffect, useState } from "react";
3
+ import { c } from "react/compiler-runtime";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/overlays/BottomSheet/BottomSheet.lazy.tsx
6
+ const BottomSheetRenderer = lazy(() => import("../BottomSheet-CEyxZ2Nd.js").then(({ BottomSheet }) => ({ default: BottomSheet })));
7
+ const BottomSheet = (t0) => {
8
+ const $ = c(26);
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];
25
+ }
26
+ const [isSheetOpen, setIsSheetOpen] = useState(Boolean(isOpen));
27
+ const hasTrigger = Boolean(trigger);
28
+ let t1;
29
+ let t2;
30
+ if ($[5] !== hasTrigger || $[6] !== isOpen) {
31
+ t1 = () => {
32
+ if (hasTrigger) setIsSheetOpen(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
+ setIsSheetOpen(open);
48
+ onOpenChange?.(open);
49
+ };
50
+ $[9] = onOpenChange;
51
+ $[10] = t3;
52
+ } else t3 = $[10];
53
+ const handleOpenChange = t3;
54
+ if (trigger) {
55
+ let t4;
56
+ if ($[11] !== handleOpenChange || $[12] !== isSheetOpen || $[13] !== props) {
57
+ t4 = isSheetOpen ? /* @__PURE__ */ jsx(Suspense, {
58
+ fallback: null,
59
+ children: /* @__PURE__ */ jsx(BottomSheetRenderer, {
60
+ ...props,
61
+ isOpen: true,
62
+ onOpenChange: handleOpenChange
63
+ })
64
+ }) : null;
65
+ $[11] = handleOpenChange;
66
+ $[12] = isSheetOpen;
67
+ $[13] = props;
68
+ $[14] = t4;
69
+ } else t4 = $[14];
70
+ let t5;
71
+ if ($[15] !== handleOpenChange || $[16] !== isSheetOpen || $[17] !== t4 || $[18] !== trigger) {
72
+ t5 = /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, {
73
+ isOpen: isSheetOpen,
74
+ onOpenChange: handleOpenChange,
75
+ children: [trigger, t4]
76
+ });
77
+ $[15] = handleOpenChange;
78
+ $[16] = isSheetOpen;
79
+ $[17] = t4;
80
+ $[18] = trigger;
81
+ $[19] = t5;
82
+ } else t5 = $[19];
83
+ return t5;
84
+ }
85
+ let t4;
86
+ if ($[20] !== isOpen || $[21] !== onOpenChange || $[22] !== props) {
87
+ t4 = isOpen ? /* @__PURE__ */ jsx(BottomSheetRenderer, {
88
+ ...props,
89
+ isOpen: true,
90
+ onOpenChange
91
+ }) : null;
92
+ $[20] = isOpen;
93
+ $[21] = onOpenChange;
94
+ $[22] = props;
95
+ $[23] = t4;
96
+ } else t4 = $[23];
97
+ let t5;
98
+ if ($[24] !== t4) {
99
+ t5 = /* @__PURE__ */ jsx(Suspense, {
100
+ fallback: null,
101
+ children: t4
102
+ });
103
+ $[24] = t4;
104
+ $[25] = t5;
105
+ } else t5 = $[25];
106
+ return t5;
107
+ };
108
+ //#endregion
2
109
  export { BottomSheet };
@@ -1,2 +1,2 @@
1
- import { t as Breadcrumbs } from "../Breadcrumbs-DentRJc_.js";
1
+ import { t as Breadcrumbs } from "../Breadcrumbs-Cbl2-M7J.js";
2
2
  export { Breadcrumbs };
@@ -1,2 +1,2 @@
1
- import { t as DatePicker } from "../DatePicker-O55fFlKg.js";
1
+ import { t as DatePicker } from "../DatePicker-BdRp_rG7.js";
2
2
  export { DatePicker };
@@ -1,2 +1,2 @@
1
- import { t as DateRangePicker } from "../DateRangePicker-CnxuqAB1.js";
1
+ import { t as DateRangePicker } from "../DateRangePicker-XhfuEunT.js";
2
2
  export { DateRangePicker };
@@ -1,2 +1,2 @@
1
- import { t as DateTimePicker } from "../DateTimePicker-B39ywgjx.js";
1
+ import { t as DateTimePicker } from "../DateTimePicker-_PD3JGVy.js";
2
2
  export { DateTimePicker };
@@ -1,2 +1,5 @@
1
- import { n as DrawerProps, t as Drawer } from "../Drawer-DnSLe85M.js";
2
- export { Drawer, DrawerProps };
1
+ import { n as DrawerProps } from "../Drawer-DnSLe85M.js";
2
+ //#region src/components/overlays/Drawer/Drawer.lazy.d.ts
3
+ declare const Drawer: ({ isOpen, onOpenChange, trigger, ...props }: DrawerProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ //#endregion
5
+ export { Drawer, type DrawerProps };