@povio/ui 3.4.0-rc.25 → 3.4.0-rc.27

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 (225) hide show
  1. package/dist/{Accordion-BLPm2118.js → Accordion-BKBl-2EO.js} +4 -3
  2. package/dist/{Autocomplete-Ce3ygKxG.d.ts → Autocomplete-0tckACUz.d.ts} +1 -1
  3. package/dist/{BottomSheet-BWKej2PR.d.ts → BottomSheet-BZXBtOHF.d.ts} +1 -2
  4. package/dist/{BottomSheet-BNGGxiX7.js → BottomSheet-CUIKvr7g.js} +8 -52
  5. package/dist/BottomSheet.lazy-DT02808T.d.ts +5 -0
  6. package/dist/{Breadcrumbs-DentRJc_.js → Breadcrumbs-D0mblHwu.js} +8 -7
  7. package/dist/{Button-oSE-CM83.js → Button-D09S1dNt.js} +3 -2
  8. package/dist/{Button-CtPMeT8f.js → Button-D9J5wkMv.js} +3 -3
  9. package/dist/{Calendar-CzDZnIF0.js → Calendar-HJ-cFPap.js} +13 -11
  10. package/dist/{Checkbox-Feyideqw.js → Checkbox-B0w_4Ri0.js} +6 -5
  11. package/dist/DOMFunctions-BrQjsnDh.js +52 -0
  12. package/dist/{DatePicker-O55fFlKg.js → DatePicker-DZgmU61j.js} +9 -9
  13. package/dist/{DatePickerInput-CQKtbsQd.js → DatePickerInput-97Ks0udv.js} +6 -6
  14. package/dist/{DateRangePicker-CnxuqAB1.js → DateRangePicker-LFJ2iqWM.js} +15 -13
  15. package/dist/{DateTimePicker-B39ywgjx.js → DateTimePicker-Bk1R38wj.js} +9 -9
  16. package/dist/{Dialog-DpLXaUXz.js → Dialog-Bl7F9FUP.js} +13 -11
  17. package/dist/Drawer-BkPPB5DQ.js +98 -0
  18. package/dist/{FileTrigger-BSzrj50r.js → FileTrigger-CjvQGNXu.js} +11 -10
  19. package/dist/{FileUpload-CnYu5cmB.js → FileUpload-DWqPr5wM.js} +6 -6
  20. package/dist/{Form-DsbBBmgz.d.ts → Form-BX_x2VGS.d.ts} +1 -1
  21. package/dist/{FormField-ChDNTHr4.js → FormField-Cl-t5Wi1.js} +10 -34
  22. package/dist/FormFieldHeaderTooltip-C3nmuFKW.js +38 -0
  23. package/dist/InlineTooltipWrapper-7ePcpH9g.js +24 -0
  24. package/dist/{Input-B4FVIWxn.js → Input-BefLtZJe.js} +2 -1
  25. package/dist/{InputItem-D4UmXpyc.js → InputItem-DY7YW-n3.js} +11 -11
  26. package/dist/{InputUpload-CAk3IStC.js → InputUpload-BoAAS7eC.js} +6 -6
  27. package/dist/{Inputs-CnwGtVmt.d.ts → Inputs-B5F_klPo.d.ts} +1 -1
  28. package/dist/{Inputs-4vWHEAZ1.js → Inputs-BbCxYUZh.js} +1 -1
  29. package/dist/{Label-a10cLlQM.js → Label-BVczUvgv.js} +1 -1
  30. package/dist/{Link-iPOFlrxY.js → Link-BWbPxs6p.js} +2 -1
  31. package/dist/{Link-vPV4s0c3.js → Link-EHxXHf53.js} +1 -1
  32. package/dist/{ListBox-BCW74bzR.js → ListBox-Ck1UjeGo.js} +6 -5
  33. package/dist/{Menu-DF3r5ssn.js → Menu-fXWnROTU.js} +4 -4
  34. package/dist/{Menu-CVgRPAB3.d.ts → Menu-ucX0h-jq.d.ts} +1 -1
  35. package/dist/{MenuDesktop-CEftscnb.js → MenuDesktop-C3_I4fdd.js} +1 -1
  36. package/dist/{MenuItem-xJq_qdIf.d.ts → MenuItem--lQvt0VV.d.ts} +1 -1
  37. package/dist/{Modal-HBOqpsZ3.js → Modal-UhtruHmf.js} +4 -3
  38. package/dist/{Modal-DdKOgTpG.js → Modal-zrXMGm_L.js} +2 -2
  39. package/dist/{NumberRangeInput-CBM_ycX_.js → NumberRangeInput-C9svqxJ9.js} +7 -7
  40. package/dist/{OverlayArrow-Bz_8bYjT.js → OverlayArrow-CyFI2DhX.js} +11 -44
  41. package/dist/{PaginationList-B27QL6gG.js → PaginationList-DcArYsq1.js} +1 -1
  42. package/dist/{QuerySelect-CuZjxrle.d.ts → QuerySelect-tupQOlAT.d.ts} +2 -2
  43. package/dist/{RadioGroup-DbMmwkLQ.js → RadioGroup-lA8iM1Ry.js} +10 -8
  44. package/dist/{ResponsivePopover-C8IriWcI.d.ts → ResponsivePopover-B-Z9sFxq.d.ts} +2 -1
  45. package/dist/{Segment--coTx1BD.js → Segment-BAVcQyuY.js} +3 -3
  46. package/dist/{Select-C_cXfp8z.js → Select-BZFSEGvs.js} +3 -3
  47. package/dist/{Select-BQ9YJzFg.d.ts → Select-Do5qWHLj.d.ts} +1 -1
  48. package/dist/{SelectBase-Ds3nqzVg.d.ts → SelectBase-aSvWd7Cx.d.ts} +1 -1
  49. package/dist/{SelectionIndicator-BiAHPBz2.js → SelectionIndicator-BvWiZS2N.js} +2 -2
  50. package/dist/{Slider-YdD68ygp.js → Slider-CGESXeRj.js} +9 -8
  51. package/dist/{SplitButton-Cv9ej6Or.d.ts → SplitButton-DxrWH3EX.d.ts} +1 -1
  52. package/dist/{Stepper-Cc7qNjch.js → Stepper-CSfhZBK1.js} +1 -1
  53. package/dist/TableDnd-CuHxANWh.js +133 -0
  54. package/dist/{Tag-BAFkwLDe.js → Tag-ClrrGr1a.js} +1 -1
  55. package/dist/{TextArea-B8TIZZ5i.js → TextArea-2yGnVaG6.js} +4 -3
  56. package/dist/{TextEditor-CAh3oyK3.js → TextEditor-BmvUimyG.js} +12 -11
  57. package/dist/{TimePicker-BY6IMP4p.js → TimePicker-DRDEIb-p.js} +8 -8
  58. package/dist/{Toast-DDkev3SZ.d.ts → Toast-JL9yaI35.d.ts} +1 -2
  59. package/dist/Toast-ZFTj3GGo.js +49 -0
  60. package/dist/ToastContainer-9OS5SK5K.d.ts +5 -0
  61. package/dist/ToastContainer-TRM91co1.js +23 -0
  62. package/dist/ToastRenderer-Dpax9sKV.js +40 -0
  63. package/dist/{Toggle-Bw15KIly.js → Toggle-bWM3RSXY.js} +4 -3
  64. package/dist/{ToggleButton-DYVFkuEk.js → ToggleButton-C01P8reg.js} +6 -4
  65. package/dist/{Tooltip-CVBOnHy-.js → Tooltip-D8YNkKCl.js} +5 -13
  66. package/dist/{TooltipWrapper-eCF5-eNP.js → TooltipWrapper-V0A1TdyC.js} +6 -20
  67. package/dist/{VisuallyHidden-src7PN5r.js → VisuallyHidden-CWgME09A.js} +1 -1
  68. package/dist/{autocomplete-NiLahf70.d.ts → autocomplete-bNuG6_dG.d.ts} +2 -2
  69. package/dist/components/accordion.js +1 -1
  70. package/dist/components/action-modal.js +2 -2
  71. package/dist/components/autocomplete.d.ts +1 -1
  72. package/dist/components/autocomplete.js +3 -3
  73. package/dist/components/bottom-sheet.d.ts +3 -2
  74. package/dist/components/bottom-sheet.js +108 -1
  75. package/dist/components/breadcrumbs.js +1 -1
  76. package/dist/components/button.js +1 -1
  77. package/dist/components/checkbox-group.js +3 -3
  78. package/dist/components/checkbox.js +1 -1
  79. package/dist/components/date-picker.js +1 -1
  80. package/dist/components/date-range-picker.js +1 -1
  81. package/dist/components/date-time-picker.js +1 -1
  82. package/dist/components/drawer.d.ts +5 -2
  83. package/dist/components/drawer.js +80 -87
  84. package/dist/components/file-upload-container.js +1 -1
  85. package/dist/components/file-upload.js +1 -1
  86. package/dist/components/form-field.js +1 -1
  87. package/dist/components/icon-button.js +2 -2
  88. package/dist/components/inline-icon-button.js +1 -1
  89. package/dist/components/input-upload.js +1 -1
  90. package/dist/components/link.js +1 -1
  91. package/dist/components/menu.d.ts +2 -2
  92. package/dist/components/menu.js +2 -2
  93. package/dist/components/modal.js +1 -1
  94. package/dist/components/number-input.js +8 -8
  95. package/dist/components/number-range-input.js +1 -1
  96. package/dist/components/pagination-list.js +1 -1
  97. package/dist/components/pagination.js +1 -1
  98. package/dist/components/pill-button.js +2 -2
  99. package/dist/components/pill.js +1 -1
  100. package/dist/components/query-autocomplete.d.ts +2 -2
  101. package/dist/components/query-autocomplete.js +1 -1
  102. package/dist/components/query-select.d.ts +1 -1
  103. package/dist/components/query-select.js +2 -2
  104. package/dist/components/radio-group.js +1 -1
  105. package/dist/components/responsive-popover.d.ts +1 -1
  106. package/dist/components/responsive-popover.js +2 -2
  107. package/dist/components/segment.js +1 -1
  108. package/dist/components/select.d.ts +2 -2
  109. package/dist/components/select.js +1 -1
  110. package/dist/components/slider.js +1 -1
  111. package/dist/components/split-button.d.ts +1 -1
  112. package/dist/components/split-button.js +2 -2
  113. package/dist/components/stepper.js +1 -1
  114. package/dist/components/tag.js +1 -1
  115. package/dist/components/text-area.js +1 -1
  116. package/dist/components/text-button.js +1 -1
  117. package/dist/components/text-input.js +6 -6
  118. package/dist/components/time-picker.js +1 -1
  119. package/dist/components/toast.d.ts +3 -2
  120. package/dist/components/toast.js +3 -2
  121. package/dist/components/toggle-button.js +1 -1
  122. package/dist/components/toggle.js +1 -1
  123. package/dist/components/tooltip-ellipsis.js +1 -1
  124. package/dist/components/tooltip.js +1 -1
  125. package/dist/components/use-toast.d.ts +1 -1
  126. package/dist/components/use-toast.js +37 -64
  127. package/dist/config/confirmation.js +1 -1
  128. package/dist/config/ui-config.d.ts +1 -1
  129. package/dist/confirmation.context-2-6G831n.js +117 -0
  130. package/dist/confirmation.dialog-Cveu3s5D.js +16 -0
  131. package/dist/{context-HV79Qf_F.js → context-74MZZLC0.js} +2 -53
  132. package/dist/{datePickerValue.utils-BoOLaZk_.js → datePickerValue.utils-PgERc6lT.js} +2 -2
  133. package/dist/{Toast-trOdO6gl.js → dist-B4xyoAhc.js} +1 -288
  134. package/dist/dom.utils-CeVnXH-T.js +49 -0
  135. package/dist/{dynamicInputs-CiJNkz3F.d.ts → dynamicInputs-CecPNXsF.d.ts} +18 -18
  136. package/dist/import-BXAtbYEe.js +73 -0
  137. package/dist/index.d.ts +20 -18
  138. package/dist/index.js +34 -31
  139. package/dist/{logger-BPhG2izn.js → logger-WPC6ostp.js} +1 -1
  140. package/dist/number-DTwXo26a.js +40 -0
  141. package/dist/{numberStatic.utils-CWkou4ca.js → numberStatic.utils-DcnGigJ6.js} +7 -6
  142. package/dist/{query-autocomplete-B3qBhSDk.d.ts → query-autocomplete-CHtcx_ND.d.ts} +2 -2
  143. package/dist/{query-select-BNNjF0Bc.d.ts → query-select-CD0iFQqR.d.ts} +2 -2
  144. package/dist/{queryAutocomplete.types-CpLHyvqN.d.ts → queryAutocomplete.types-DaTDttX5.d.ts} +2 -2
  145. package/dist/rhf/autocomplete.d.ts +2 -2
  146. package/dist/rhf/checkbox.js +1 -1
  147. package/dist/rhf/date-picker.js +1 -1
  148. package/dist/rhf/date-range-picker.js +1 -1
  149. package/dist/rhf/date-time-picker.js +1 -1
  150. package/dist/rhf/file-upload.js +1 -1
  151. package/dist/rhf/input-upload.js +1 -1
  152. package/dist/rhf/inputs.d.ts +1 -1
  153. package/dist/rhf/number-range-input.js +1 -1
  154. package/dist/rhf/query-autocomplete.d.ts +1 -1
  155. package/dist/rhf/query-select.d.ts +1 -1
  156. package/dist/rhf/radio-group.js +1 -1
  157. package/dist/rhf/segment.js +1 -1
  158. package/dist/rhf/select.d.ts +2 -2
  159. package/dist/rhf/select.js +1 -1
  160. package/dist/rhf/slider.js +1 -1
  161. package/dist/rhf/text-area.js +1 -1
  162. package/dist/rhf/text-editor.js +1 -1
  163. package/dist/rhf/time-picker.js +1 -1
  164. package/dist/rhf/toggle.js +1 -1
  165. package/dist/rhf.d.ts +20 -18
  166. package/dist/rhf.js +34 -31
  167. package/dist/{rolldown-runtime-DUp30N8C.js → rolldown-runtime-B-lAHAz2.js} +10 -1
  168. package/dist/{select-CYuTeweS.d.ts → select-D80pWSgi.d.ts} +2 -2
  169. package/dist/{staticDateTimeSegments-CAEX9ogz.js → staticDateTimeSegments-CMj4NHoq.js} +16 -14
  170. package/dist/{staticSelect.utils-Blrqx6Y6.js → staticSelect.utils-DQo-_Fe6.js} +22 -20
  171. package/dist/tanstack/autocomplete.d.ts +1 -1
  172. package/dist/tanstack/checkbox.js +1 -1
  173. package/dist/tanstack/date-picker.js +1 -1
  174. package/dist/tanstack/date-range-picker.js +1 -1
  175. package/dist/tanstack/date-time-picker.js +1 -1
  176. package/dist/tanstack/file-upload.js +1 -1
  177. package/dist/tanstack/form.d.ts +1 -1
  178. package/dist/tanstack/form.js +1 -1
  179. package/dist/tanstack/input-upload.js +1 -1
  180. package/dist/tanstack/inputs.d.ts +2 -2
  181. package/dist/tanstack/inputs.js +1 -1
  182. package/dist/tanstack/number-range-input.js +1 -1
  183. package/dist/tanstack/query-select.d.ts +1 -1
  184. package/dist/tanstack/radio-group.js +1 -1
  185. package/dist/tanstack/segment.js +1 -1
  186. package/dist/tanstack/select.d.ts +1 -1
  187. package/dist/tanstack/select.js +1 -1
  188. package/dist/tanstack/slider.js +1 -1
  189. package/dist/tanstack/table.d.ts +1 -1
  190. package/dist/tanstack/table.js +1 -1
  191. package/dist/tanstack/text-area.js +1 -1
  192. package/dist/tanstack/text-editor.js +1 -1
  193. package/dist/tanstack/time-picker.js +1 -1
  194. package/dist/tanstack/toggle.js +1 -1
  195. package/dist/tanstack.d.ts +19 -17
  196. package/dist/tanstack.js +44 -41
  197. package/dist/text-editor.js +1 -1
  198. package/dist/toast.cva-BGJCi2qq.js +211 -0
  199. package/dist/toast.runtime-CzHEhKmm.js +18 -0
  200. package/dist/toastActivation.store-BELtcr76.js +16 -0
  201. package/dist/tooltipWrapper.cva-CUu8pI-a.js +5 -0
  202. package/dist/triangle-B5uw3vnc.js +13 -0
  203. package/dist/{uiConfig.context-bpfilZZ_.d.ts → uiConfig.context-B27wINPD.d.ts} +3 -3
  204. package/dist/{useButton-STC3gJBt.js → useButton-CTZ6UEfP.js} +2 -1
  205. package/dist/{useDescription-D8raJPFb.js → useDescription-4EIEr0rR.js} +1 -1
  206. package/dist/{useEffectEvent-DAMDuWzz.js → useEffectEvent-BdzIyMdT.js} +1 -1
  207. package/dist/{useEvent-5X8yPLOx.js → useEvent-CjGFQh-l.js} +1 -1
  208. package/dist/{useFieldAccessibility-BsEP3ts2.js → useFieldAccessibility-DepfU-ce.js} +2 -2
  209. package/dist/{useFilter-BQRb0JpC.js → useFilter-CI4X6urj.js} +1 -1
  210. package/dist/{useFormAutosave-DJJdcgK-.js → useFormAutosave-DKfqSqXM.js} +1 -1
  211. package/dist/{useFormReset-CFgV1v57.js → useFormReset-BmSQIMid.js} +1 -1
  212. package/dist/{useFormValidation-DWqb1ZeB.js → useFormValidation-DlNyD6aD.js} +2 -2
  213. package/dist/{useLabels-CUjKpeKj.js → useLabels-Bt2BXuQ6.js} +1 -1
  214. package/dist/{useLocalizedStringFormatter-D9TmTRN_.js → useLocalizedStringFormatter-tBB7tXBj.js} +1 -1
  215. package/dist/{useNumberFormatter-BiWwqIo9.js → useNumberFormatter-Dgd8W1FX.js} +1 -1
  216. package/dist/{useSpinButton-BxGKzVHd.js → useSpinButton-Ba23Hqso.js} +3 -3
  217. package/dist/{useStaticInputHandoff-ClwANfo-.js → useStaticInputHandoff-Cssvz3nr.js} +2 -2
  218. package/dist/{useTableColumnConfig-DaAi30uc.js → useTableColumnConfig-C0IeB82M.js} +54 -72
  219. package/dist/{useTableNav-BoQOVqZF.d.ts → useTableNav-CFHbvYvu.d.ts} +1 -1
  220. package/dist/{useToast-gQ9gzrbt.d.ts → useToast-B55ZUvwy.d.ts} +1 -1
  221. package/dist/{useToggle-ingqhLIQ.js → useToggle-D8aP2d5t.js} +3 -2
  222. package/dist/utils/logger.js +1 -1
  223. package/dist/{import-CuNJ25EP.js → utils-D-KKbY-n.js} +1 -73
  224. package/package.json +1 -1
  225. package/dist/confirmation.context-C1-ZF9CW.js +0 -80
@@ -1,2 +1,2 @@
1
- import { t as TimePicker } from "../TimePicker-BY6IMP4p.js";
1
+ import { t as TimePicker } from "../TimePicker-DRDEIb-p.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-ZFTj3GGo.js";
2
+ import { n as ToastProvider, t as ToastContainer } from "../ToastContainer-TRM91co1.js";
3
+ export { Toast, ToastContainer, ToastProvider };
@@ -1,4 +1,4 @@
1
- import { t as Button } from "../Button-CtPMeT8f.js";
1
+ import { t as Button } from "../Button-D9J5wkMv.js";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/buttons/ToggleButton/ToggleButton.tsx
@@ -1,2 +1,2 @@
1
- import { t as Toggle } from "../Toggle-Bw15KIly.js";
1
+ import { t as Toggle } from "../Toggle-bWM3RSXY.js";
2
2
  export { Toggle };
@@ -1,4 +1,4 @@
1
- import { t as Tooltip } from "../Tooltip-CVBOnHy-.js";
1
+ import { t as Tooltip } from "../Tooltip-D8YNkKCl.js";
2
2
  import { useState } from "react";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as Tooltip } from "../Tooltip-CVBOnHy-.js";
1
+ import { t as Tooltip } from "../Tooltip-D8YNkKCl.js";
2
2
  export { Tooltip };
@@ -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-CzHEhKmm.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-CzHEhKmm.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 };
@@ -1,56 +1,5 @@
1
- import { x as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./import-CuNJ25EP.js";
1
+ import { g as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-D-KKbY-n.js";
2
2
  import $HgANd$react, { useContext, useEffect, useState } from "react";
3
- //#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/domHelpers.mjs
4
- const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
5
- var _el_ownerDocument;
6
- return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
7
- };
8
- const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
9
- if (el && "window" in el && el.window === el) return el;
10
- return $431fbd86ca7dc216$export$b204af158042fbac(el).defaultView || window;
11
- };
12
- /**
13
- * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.
14
- */ function $431fbd86ca7dc216$var$isNode(value) {
15
- return value !== null && typeof value === "object" && "nodeType" in value && typeof value.nodeType === "number";
16
- }
17
- function $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {
18
- return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in node;
19
- }
20
- //#endregion
21
- //#region ../../node_modules/.bun/@react-stately+flags@3.1.2/node_modules/@react-stately/flags/dist/import.mjs
22
- let $f4e2df6bd15f8569$var$_shadowDOM = false;
23
- function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
24
- return $f4e2df6bd15f8569$var$_shadowDOM;
25
- }
26
- //#endregion
27
- //#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/DOMFunctions.mjs
28
- function $d4ee10de306f2510$export$4282f70798064fe0(node, otherNode) {
29
- if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return otherNode && node ? node.contains(otherNode) : false;
30
- if (!node || !otherNode) return false;
31
- let currentNode = otherNode;
32
- while (currentNode !== null) {
33
- if (currentNode === node) return true;
34
- if (currentNode.tagName === "SLOT" && currentNode.assignedSlot) currentNode = currentNode.assignedSlot.parentNode;
35
- else if ($431fbd86ca7dc216$export$af51f0f06c0f328a(currentNode)) currentNode = currentNode.host;
36
- else currentNode = currentNode.parentNode;
37
- }
38
- return false;
39
- }
40
- const $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document) => {
41
- var _activeElement_shadowRoot;
42
- if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return doc.activeElement;
43
- let activeElement = doc.activeElement;
44
- while (activeElement && "shadowRoot" in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement)) activeElement = activeElement.shadowRoot.activeElement;
45
- return activeElement;
46
- };
47
- function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
48
- if ($f4e2df6bd15f8569$export$98658e8c59125e6a() && event.target.shadowRoot) {
49
- if (event.composedPath) return event.composedPath()[0];
50
- }
51
- return event.target;
52
- }
53
- //#endregion
54
3
  //#region ../../node_modules/.bun/@react-aria+i18n@3.12.15+67f6792bdf102c28/node_modules/@react-aria/i18n/dist/utils.mjs
55
4
  const $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
56
5
  "Arab",
@@ -141,4 +90,4 @@ function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
141
90
  return useContext($18f2051aff69b9bf$var$I18nContext) || defaultLocale;
142
91
  }
143
92
  //#endregion
144
- export { $f4e2df6bd15f8569$export$98658e8c59125e6a as a, $d4ee10de306f2510$export$e58f029f0fbfdb29 as i, $d4ee10de306f2510$export$4282f70798064fe0 as n, $431fbd86ca7dc216$export$b204af158042fbac as o, $d4ee10de306f2510$export$cd4e5573fbe2b576 as r, $431fbd86ca7dc216$export$f21a1ffae260145a as s, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as t };
93
+ export { $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as t };
@@ -1,8 +1,8 @@
1
1
  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
- 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";
4
+ import { _ as $32489daedd52963e$export$1315d136e6f7581, u as getPlaceholder, y as $16f0b7bb276bc17e$export$4c842f6a241dc825 } from "./staticDateTimeSegments-CMj4NHoq.js";
5
+ import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-74MZZLC0.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";
@@ -1,13 +1,5 @@
1
- import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.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-CtPMeT8f.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 };