@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
@@ -0,0 +1,211 @@
1
+ import { t as clsx } from "./clsx-CnD0nOiA.js";
2
+ import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
3
+ import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
4
+ //#region src/components/status/Toast/toast.cva.ts
5
+ const toastContainerDefinition = UIOverrides.defineConfig({
6
+ 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"],
7
+ config: { variants: { position: {
8
+ "bottom-right": "right-0 bottom-0",
9
+ "bottom-left": "bottom-0 left-0",
10
+ "top-right": "top-0 right-0",
11
+ "top-left": "top-0 left-0",
12
+ "bottom-center": "bottom-0",
13
+ "top-center": "top-0"
14
+ } } }
15
+ });
16
+ const toastWrapper = clsx("m-0! min-h-0! w-auto! max-w-toast bg-transparent! p-0! shadow-none!");
17
+ const toastDefinition = UIOverrides.defineConfig({
18
+ base: ["m-0 inline-flex w-auto flex-col items-center overflow-hidden rounded-toast-rounding-default shadow-4 md:flex-row"],
19
+ config: {
20
+ variants: {
21
+ variant: {
22
+ outlined: "border bg-elevation-fill-default-1 text-text-default-1",
23
+ contained: "text-text-inverted-1"
24
+ },
25
+ color: {
26
+ neutral: "",
27
+ success: "",
28
+ warning: "",
29
+ error: ""
30
+ },
31
+ position: {
32
+ "bottom-right": "",
33
+ "bottom-left": "",
34
+ "bottom-center": "",
35
+ "top-right": "",
36
+ "top-left": "",
37
+ "top-center": ""
38
+ }
39
+ },
40
+ compoundVariants: [
41
+ {
42
+ variant: "outlined",
43
+ color: "neutral",
44
+ className: "border-elevation-outline-default-1"
45
+ },
46
+ {
47
+ variant: "outlined",
48
+ color: "success",
49
+ className: "border-elevation-outline-success-1"
50
+ },
51
+ {
52
+ variant: "outlined",
53
+ color: "warning",
54
+ className: "border-elevation-outline-warning-1"
55
+ },
56
+ {
57
+ variant: "outlined",
58
+ color: "error",
59
+ className: "border-elevation-outline-error-1"
60
+ },
61
+ {
62
+ variant: "contained",
63
+ color: "neutral",
64
+ className: "bg-elevation-fill-inverted-1"
65
+ },
66
+ {
67
+ variant: "contained",
68
+ color: "success",
69
+ className: "bg-elevation-fill-success-1"
70
+ },
71
+ {
72
+ variant: "contained",
73
+ color: "warning",
74
+ className: "bg-elevation-fill-warning-1"
75
+ },
76
+ {
77
+ variant: "contained",
78
+ color: "error",
79
+ className: "bg-elevation-fill-error-1"
80
+ }
81
+ ],
82
+ defaultVariants: {
83
+ variant: "outlined",
84
+ color: "neutral"
85
+ }
86
+ }
87
+ });
88
+ const buttonColorVariant = compoundMapper({
89
+ compoundVariants: [
90
+ {
91
+ variant: "outlined",
92
+ color: "neutral",
93
+ value: { color: "secondary" }
94
+ },
95
+ {
96
+ variant: "outlined",
97
+ color: "success",
98
+ value: { color: "success" }
99
+ },
100
+ {
101
+ variant: "outlined",
102
+ color: "warning",
103
+ value: { color: "warning" }
104
+ },
105
+ {
106
+ variant: "outlined",
107
+ color: "error",
108
+ value: { color: "error" }
109
+ },
110
+ {
111
+ variant: "contained",
112
+ color: "neutral",
113
+ value: {
114
+ color: "primary",
115
+ inverted: true
116
+ }
117
+ },
118
+ {
119
+ variant: "contained",
120
+ color: "success",
121
+ value: {
122
+ color: "success",
123
+ inverted: true
124
+ }
125
+ },
126
+ {
127
+ variant: "contained",
128
+ color: "warning",
129
+ value: {
130
+ color: "warning",
131
+ inverted: true
132
+ }
133
+ },
134
+ {
135
+ variant: "contained",
136
+ color: "error",
137
+ value: {
138
+ color: "error",
139
+ inverted: true
140
+ }
141
+ }
142
+ ],
143
+ defaultVariants: {
144
+ variant: "outlined",
145
+ color: "neutral"
146
+ },
147
+ default: { color: "secondary" }
148
+ });
149
+ const statusIconDefinition = UIOverrides.defineConfig({
150
+ base: ["size-6 shrink-0"],
151
+ config: {
152
+ variants: {
153
+ variant: {
154
+ outlined: "",
155
+ contained: "text-text-inverted-1"
156
+ },
157
+ color: {
158
+ neutral: "",
159
+ success: "",
160
+ warning: "",
161
+ error: ""
162
+ }
163
+ },
164
+ compoundVariants: [
165
+ {
166
+ variant: "outlined",
167
+ color: "neutral",
168
+ className: "text-text-default-2"
169
+ },
170
+ {
171
+ variant: "outlined",
172
+ color: "success",
173
+ className: "text-text-success-1"
174
+ },
175
+ {
176
+ variant: "outlined",
177
+ color: "warning",
178
+ className: "text-text-warning-1"
179
+ },
180
+ {
181
+ variant: "outlined",
182
+ color: "error",
183
+ className: "text-text-error-1"
184
+ }
185
+ ],
186
+ defaultVariants: {
187
+ variant: "outlined",
188
+ color: "neutral"
189
+ }
190
+ }
191
+ });
192
+ const statusSeparatorDefinition = UIOverrides.defineConfig({
193
+ base: ["h-px shrink-0 self-stretch md:h-auto md:w-px"],
194
+ config: {
195
+ variants: {
196
+ variant: {
197
+ outlined: "",
198
+ contained: "hidden"
199
+ },
200
+ color: {
201
+ neutral: "bg-elevation-outline-default-1",
202
+ success: "bg-elevation-outline-success-1",
203
+ warning: "bg-elevation-outline-warning-1",
204
+ error: "bg-elevation-outline-error-1"
205
+ }
206
+ },
207
+ defaultVariants: { color: "neutral" }
208
+ }
209
+ });
210
+ //#endregion
211
+ export { toastDefinition as a, toastContainerDefinition as i, statusIconDefinition as n, toastWrapper as o, statusSeparatorDefinition as r, buttonColorVariant as t };
@@ -0,0 +1,18 @@
1
+ import { t as Toast } from "./Toast-ZFTj3GGo.js";
2
+ import { n as y } from "./dist-B4xyoAhc.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/components/status/Toast/toast.runtime.tsx
5
+ const showToast = (id, color, params, options) => {
6
+ (color === "neutral" ? y.info : y[color])(/* @__PURE__ */ jsx(Toast, {
7
+ color,
8
+ ...params
9
+ }), {
10
+ ...options,
11
+ toastId: id,
12
+ position: params.position,
13
+ data: { variant: params.variant }
14
+ });
15
+ };
16
+ const dismissToast = (id) => y.dismiss(id);
17
+ //#endregion
18
+ export { dismissToast, showToast };
@@ -0,0 +1,16 @@
1
+ //#region src/components/status/Toast/toastActivation.store.ts
2
+ let active = false;
3
+ const listeners = /* @__PURE__ */ new Set();
4
+ const activateToastRenderer = () => {
5
+ if (active) return;
6
+ active = true;
7
+ listeners.forEach((listener) => listener());
8
+ };
9
+ const subscribeToToastActivation = (listener) => {
10
+ listeners.add(listener);
11
+ return () => listeners.delete(listener);
12
+ };
13
+ const isToastRendererActive = () => active;
14
+ const isToastRendererInactive = () => false;
15
+ //#endregion
16
+ export { subscribeToToastActivation as i, isToastRendererActive as n, isToastRendererInactive as r, activateToastRenderer as t };
@@ -0,0 +1,5 @@
1
+ import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
2
+ //#region src/components/inputs/shared/tooltipWrapper.cva.ts
3
+ const tooltipWrapperTriggerDefinition = UIOverrides.defineConfig({ base: ["inline-flex"] });
4
+ //#endregion
5
+ export { tooltipWrapperTriggerDefinition as t };
@@ -0,0 +1,13 @@
1
+ import { t as createLucideIcon } from "./createLucideIcon-CskCrR9z.js";
2
+ /**
3
+ * @license lucide-react v1.28.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const Triangle = createLucideIcon("triangle", [["path", {
9
+ d: "M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",
10
+ key: "14u9p9"
11
+ }]]);
12
+ //#endregion
13
+ export { Triangle as t };
@@ -1,15 +1,15 @@
1
- import { n as BottomSheetProps } from "./BottomSheet-BWKej2PR.js";
1
+ import { t as BottomSheetProps } from "./BottomSheet-BZXBtOHF.js";
2
2
  import { r as ButtonProps } from "./Button-OxjPE7Hf.js";
3
3
  import { i as CheckboxProps } from "./Checkbox-Di3VlWJj.js";
4
4
  import { o as TextInputProps } from "./FormField-CpPQoyv_.js";
5
5
  import { i as NumberInputProps } from "./NumberInput-Cr_nD98h.js";
6
6
  import { r as RadioGroupProps } from "./RadioGroup-iry4UYlW.js";
7
- import { t as SelectBaseProps } from "./SelectBase-Ds3nqzVg.js";
7
+ import { t as SelectBaseProps } from "./SelectBase-aSvWd7Cx.js";
8
8
  import { r as SliderProps } from "./Slider-CdZdFERe.js";
9
9
  import { r as ToggleProps } from "./Toggle-vHKDihtx.js";
10
10
  import { n as ActionModalProps } from "./ActionModal-C4lfhfPx.js";
11
11
  import { r as ToastPosition } from "./index-B8r_kiw4.js";
12
- import { i as ToastProps } from "./Toast-DDkev3SZ.js";
12
+ import { r as ToastProps } from "./Toast-JL9yaI35.js";
13
13
  import { n as TagProps } from "./Tag-DkTx1S7H.js";
14
14
  import { r as DatePickerProps } from "./DatePicker-EJTAeVRc.js";
15
15
  import { i as DateRangeRelativeOption } from "./DateRangePicker-CMWUdyh1.js";
@@ -1,4 +1,5 @@
1
- import { g as $3ef42575df84b30b$export$9d1611c77c2fe928, h as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-CuNJ25EP.js";
1
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-D-KKbY-n.js";
2
+ import { a as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-BXAtbYEe.js";
2
3
  import { useFocusable, usePress } from "@react-aria/interactions";
3
4
  //#region ../../node_modules/.bun/@react-aria+button@3.14.4+67f6792bdf102c28/node_modules/@react-aria/button/dist/useButton.mjs
4
5
  function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
@@ -1,4 +1,4 @@
1
- import { S as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./import-CuNJ25EP.js";
1
+ import { _ as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-D-KKbY-n.js";
2
2
  import { useState } from "react";
3
3
  //#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/useDescription.mjs
4
4
  let $ef06256079686ba0$var$descriptionId = 0;
@@ -1,4 +1,4 @@
1
- import { S as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./import-CuNJ25EP.js";
1
+ import { _ as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-D-KKbY-n.js";
2
2
  import $HgANd$react, { useCallback, useRef } from "react";
3
3
  //#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/useEffectEvent.mjs
4
4
  var $8ae05eaa5c114e9c$var$_React_useInsertionEffect;
@@ -1,4 +1,4 @@
1
- import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-DAMDuWzz.js";
1
+ import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-BdzIyMdT.js";
2
2
  import { useEffect } from "react";
3
3
  //#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/useEvent.mjs
4
4
  function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
@@ -1,10 +1,10 @@
1
- import { r as FormFieldLabel } from "./FormField-ChDNTHr4.js";
2
1
  import { t as clsx } from "./clsx-CnD0nOiA.js";
3
2
  import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
4
3
  import { t as typographyDefinition } from "./typography.cva-BI0FyIqm.js";
5
4
  import { t as Loader } from "./Loader-C6YkWZOO.js";
6
5
  import { InlineIconButton } from "./components/inline-icon-button.js";
7
- import { r as InputClear } from "./TooltipWrapper-eCF5-eNP.js";
6
+ import { r as FormFieldLabel } from "./FormField-Cl-t5Wi1.js";
7
+ import { n as InputClear } from "./TooltipWrapper-V0A1TdyC.js";
8
8
  import { a as inputSizeDefinition, r as inputContentWrapperDefinition } from "./input.cva-KYGD4Bdz.js";
9
9
  import { isValidElement, useId } from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { R as $325a3faab7a68acd$export$a16aca283550c30d } from "./Dialog-DpLXaUXz.js";
1
+ import { R as $325a3faab7a68acd$export$a16aca283550c30d } from "./Dialog-Bl7F9FUP.js";
2
2
  import { useCallback, useMemo } from "react";
3
3
  //#region ../../node_modules/.bun/@react-aria+i18n@3.12.15+67f6792bdf102c28/node_modules/@react-aria/i18n/dist/useFilter.mjs
4
4
  function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
@@ -3,7 +3,7 @@ import { t as ZodArray } from "./schemas-BkfyFvBp.js";
3
3
  import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
4
4
  import { t as ZodUtils } from "./zod.utils-Nz_Tbo_v.js";
5
5
  import { n as getDefaultInputComponentType } from "./dynamicInputs-D8j0ko24.js";
6
- import { t as InputItem } from "./InputItem-D4UmXpyc.js";
6
+ import { t as InputItem } from "./InputItem-DY7YW-n3.js";
7
7
  import { useCallback, useEffect, useMemo, useRef } from "react";
8
8
  import { c } from "react/compiler-runtime";
9
9
  import { jsx } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-DAMDuWzz.js";
1
+ import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-BdzIyMdT.js";
2
2
  import { useEffect } from "react";
3
3
  //#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/useFormReset.mjs
4
4
  function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
@@ -1,5 +1,5 @@
1
- import { S as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./import-CuNJ25EP.js";
2
- import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-DAMDuWzz.js";
1
+ import { _ as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-D-KKbY-n.js";
2
+ import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-BdzIyMdT.js";
3
3
  import { useEffect, useRef } from "react";
4
4
  import { setInteractionModality } from "@react-aria/interactions";
5
5
  //#region ../../node_modules/.bun/@react-aria+form@3.1.4+67f6792bdf102c28/node_modules/@react-aria/form/dist/useFormValidation.mjs
@@ -1,4 +1,4 @@
1
- import { b as $bdb11010cef70236$export$f680877a34711e37 } from "./import-CuNJ25EP.js";
1
+ import { h as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-D-KKbY-n.js";
2
2
  //#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/useLabels.mjs
3
3
  function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
4
4
  let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
@@ -1,4 +1,4 @@
1
- import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-HV79Qf_F.js";
1
+ import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-74MZZLC0.js";
2
2
  import { useMemo } from "react";
3
3
  //#region ../../node_modules/.bun/@internationalized+string@3.2.7/node_modules/@internationalized/string/dist/LocalizedStringDictionary.mjs
4
4
  const $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
@@ -1,4 +1,4 @@
1
- import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-HV79Qf_F.js";
1
+ import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-74MZZLC0.js";
2
2
  import { t as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-KUrW7GbE.js";
3
3
  import { useMemo } from "react";
4
4
  //#region ../../node_modules/.bun/@react-aria+i18n@3.12.15+67f6792bdf102c28/node_modules/@react-aria/i18n/dist/useNumberFormatter.mjs
@@ -1,7 +1,7 @@
1
1
  import { t as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./useGlobalListeners-DuENtiaD.js";
2
- import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-DAMDuWzz.js";
3
- import { i as $319e236875307eab$export$d10ae4f68404609a, r as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-oSE-CM83.js";
4
- import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-D9TmTRN_.js";
2
+ import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-BdzIyMdT.js";
3
+ import { i as $319e236875307eab$export$d10ae4f68404609a, r as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-D09S1dNt.js";
4
+ import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-tBB7tXBj.js";
5
5
  import { t as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-KUrW7GbE.js";
6
6
  import { useCallback, useEffect, useRef, useState } from "react";
7
7
  //#region ../../node_modules/.bun/@internationalized+number@3.6.5/node_modules/@internationalized/number/dist/NumberParser.mjs
@@ -1,11 +1,11 @@
1
1
  import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
2
- import { r as FormFieldLabel, t as FormField } from "./FormField-ChDNTHr4.js";
3
2
  import { t as clsx } from "./clsx-CnD0nOiA.js";
4
3
  import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
5
4
  import { t as typographyDefinition } from "./typography.cva-BI0FyIqm.js";
6
5
  import { t as Loader } from "./Loader-C6YkWZOO.js";
7
6
  import { InlineIconButton } from "./components/inline-icon-button.js";
8
- import { r as InputClear, t as TooltipWrapper } from "./TooltipWrapper-eCF5-eNP.js";
7
+ import { r as FormFieldLabel, t as FormField } from "./FormField-Cl-t5Wi1.js";
8
+ import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-V0A1TdyC.js";
9
9
  import { a as inputSizeDefinition, r as inputContentWrapperDefinition, t as inputBaseDefinition } from "./input.cva-KYGD4Bdz.js";
10
10
  import { isValidElement, useId, useLayoutEffect, useRef, useState } from "react";
11
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -3,7 +3,7 @@ import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
3
3
  import { t as ChevronDown } from "./chevron-down-Ciz9yP9R.js";
4
4
  import { t as ChevronUp } from "./chevron-up-CHRnDSA3.js";
5
5
  import { t as clsx } from "./clsx-CnD0nOiA.js";
6
- import { t as Checkbox } from "./Checkbox-Feyideqw.js";
6
+ import { t as Checkbox } from "./Checkbox-B0w_4Ri0.js";
7
7
  import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
8
8
  import { t as Typography } from "./Typography-AcUd9df8.js";
9
9
  import { t as Loader } from "./Loader-C6YkWZOO.js";
@@ -15,20 +15,16 @@ import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
15
15
  import { f as ZodISODateTime, i as ZodEnum, l as ZodString, n as ZodBoolean, o as ZodNumber, s as ZodObject, t as ZodArray } from "./schemas-BkfyFvBp.js";
16
16
  import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
17
17
  import { t as ZodUtils } from "./zod.utils-Nz_Tbo_v.js";
18
- import { t as Modal } from "./Modal-DdKOgTpG.js";
18
+ import { t as Modal } from "./Modal-zrXMGm_L.js";
19
19
  import { Pagination } from "./components/pagination.js";
20
- import { t as logger } from "./logger-BPhG2izn.js";
20
+ import { t as logger } from "./logger-WPC6ostp.js";
21
21
  import { t as useTranslationMemo } from "./useTranslationMemo-CrZbeyBv.js";
22
22
  import { t as UIRouter } from "./router.context-VhvhlIvV.js";
23
23
  import { t as RoutingUtils } from "./routing.utils-UTQonIhB.js";
24
- import { useCallback, useEffect, useMemo, useRef, useState } from "react";
24
+ import { Suspense, lazy, useCallback, useEffect, useMemo, useRef, useState } from "react";
25
25
  import { c } from "react/compiler-runtime";
26
26
  import { jsx, jsxs } from "react/jsx-runtime";
27
27
  import { useTranslation } from "react-i18next";
28
- import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
29
- import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
30
- import { SortableContext, arrayMove, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
31
- import { CSS } from "@dnd-kit/utilities";
32
28
  import { createPaginatedRowModel, createSortedRowModel, flexRender, stockFeatures, tableFeatures, useTable } from "@tanstack/react-table";
33
29
  import i18next from "i18next";
34
30
  /**
@@ -518,6 +514,10 @@ function useTableNav(options) {
518
514
  }
519
515
  //#endregion
520
516
  //#region src/components/table/Table.tsx
517
+ const DndProvider = lazy(() => import("./TableDnd-CuHxANWh.js").then((module) => ({ default: module.DndProvider })));
518
+ const SortableRows = lazy(() => import("./TableDnd-CuHxANWh.js").then((module) => ({ default: module.SortableRows })));
519
+ const DraggableRow = lazy(() => import("./TableDnd-CuHxANWh.js").then((module) => ({ default: module.DraggableRow })));
520
+ const DragHandle = lazy(() => import("./TableDnd-CuHxANWh.js").then((module) => ({ default: module.DragHandle })));
521
521
  const tableFeaturesConfig = tableFeatures({
522
522
  ...stockFeatures,
523
523
  sortedRowModel: createSortedRowModel(),
@@ -536,49 +536,17 @@ const renderCell = (Comp, props) => {
536
536
  return typeof rendered === "string" ? /* @__PURE__ */ jsx(CellText, { children: rendered }) : rendered;
537
537
  };
538
538
  const RowDragHandleCell = ({ rowId }) => {
539
- const { attributes, listeners } = useSortable({ id: rowId });
540
- return /* @__PURE__ */ jsx(InlineIconButton, {
541
- ...attributes,
542
- ...listeners,
543
- className: "cursor-move p-1",
544
- label: "Drag handle",
545
- icon: GripVertical
546
- });
547
- };
548
- const AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
549
- const DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCva, tableDataCva, hasOnClick, ...props }) => {
550
- const { transform, transition, setNodeRef, isDragging } = useSortable({ id: row.id });
551
- const style = {
552
- transform: CSS.Transform.toString(transform),
553
- transition,
554
- opacity: isDragging ? .8 : 1,
555
- zIndex: isDragging ? 1 : 0,
556
- position: "relative"
557
- };
558
- return /* @__PURE__ */ jsx("tr", {
559
- ref: setNodeRef,
560
- style,
561
- "data-clickable": hasOnClick || row.getCanSelect() || void 0,
562
- "data-selected": row.getIsSelected() || void 0,
563
- className: clsx(tableRowCva(props)),
564
- onClick: () => {
565
- if (onRowClick) {
566
- onRowClick(row.original);
567
- return;
568
- }
569
- if (row.getCanSelect()) row.toggleSelected();
570
- },
571
- onDoubleClick: () => onDoubleClick?.(row.original),
572
- children: row.getVisibleCells().map((cell, cellIndex) => {
573
- const columnMeta = cell.column.columnDef.meta ?? {};
574
- return /* @__PURE__ */ jsx("td", {
575
- tabIndex: -1,
576
- className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta.cellClass, columnMeta.width),
577
- children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
578
- }, cell.id);
539
+ return /* @__PURE__ */ jsx(DragHandle, {
540
+ id: rowId,
541
+ children: (dragProps) => /* @__PURE__ */ jsx(InlineIconButton, {
542
+ ...dragProps,
543
+ className: "cursor-move p-1",
544
+ label: "Drag handle",
545
+ icon: GripVertical
579
546
  })
580
547
  });
581
548
  };
549
+ const AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
582
550
  const Table$1 = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange, ...props }) => {
583
551
  const tableRowCva = UIOverrides.useCva("table.rowCva", tableRowDefinition);
584
552
  const theadCva = UIOverrides.useCva("table.theadCva", theadDefinition);
@@ -659,7 +627,12 @@ const Table$1 = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, cl
659
627
  if (onReorder) {
660
628
  const oldIndex = items.findIndex((item_0) => getRowId(item_0) === active.id);
661
629
  const newIndex = items.findIndex((item_1) => getRowId(item_1) === over.id);
662
- if (oldIndex !== -1 && newIndex !== -1) onReorder(arrayMove(items, oldIndex, newIndex));
630
+ if (oldIndex !== -1 && newIndex !== -1) {
631
+ const reorderedItems = [...items];
632
+ const [movedItem] = reorderedItems.splice(oldIndex, 1);
633
+ reorderedItems.splice(newIndex, 0, movedItem);
634
+ onReorder(reorderedItems);
635
+ }
663
636
  }
664
637
  onDragEnd?.(event);
665
638
  }
@@ -669,7 +642,6 @@ const Table$1 = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, cl
669
642
  items,
670
643
  getRowId
671
644
  ]);
672
- const sensors = useSensors(useSensor(MouseSensor, {}), useSensor(TouchSensor, {}), useSensor(KeyboardSensor, {}));
673
645
  const selectedRows = table.getSelectedRowModel().rows;
674
646
  const columnCount = table.getHeaderGroups()[0].headers.length;
675
647
  const isAnyRowSelected = selectedRows.length > 0 && !!ActionHeader;
@@ -716,19 +688,29 @@ const Table$1 = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, cl
716
688
  }), /* @__PURE__ */ jsx("tbody", {
717
689
  ref,
718
690
  className: "relative",
719
- children: enableDragDrop ? /* @__PURE__ */ jsx(SortableContext, {
691
+ children: enableDragDrop ? /* @__PURE__ */ jsx(SortableRows, {
720
692
  items: dataIds,
721
- strategy: verticalListSortingStrategy,
722
693
  children: table.getRowModel().rows.map((row_0) => /* @__PURE__ */ jsx(DraggableRow, {
723
- row: row_0,
724
- showCellBorder,
725
- onRowClick,
726
- onDoubleClick,
727
- tableRowCva,
728
- tableHeadDataCva,
729
- tableDataCva,
730
- hasOnClick,
731
- ...props
694
+ id: row_0.id,
695
+ className: clsx(tableRowCva({ ...props })),
696
+ isClickable: hasOnClick || row_0.getCanSelect(),
697
+ isSelected: row_0.getIsSelected(),
698
+ onClick: () => {
699
+ if (onRowClick) {
700
+ onRowClick(row_0.original);
701
+ return;
702
+ }
703
+ if (row_0.getCanSelect()) row_0.toggleSelected();
704
+ },
705
+ onDoubleClick: () => onDoubleClick?.(row_0.original),
706
+ children: row_0.getVisibleCells().map((cell, cellIndex) => {
707
+ const columnMeta_0 = cell.column.columnDef.meta ?? {};
708
+ return /* @__PURE__ */ jsx("td", {
709
+ tabIndex: -1,
710
+ className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta_0.cellClass, columnMeta_0.width),
711
+ children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
712
+ }, cell.id);
713
+ })
732
714
  }, row_0.id))
733
715
  }) : table.getRowModel().rows.map((row_1) => {
734
716
  return /* @__PURE__ */ jsx("tr", {
@@ -743,24 +725,24 @@ const Table$1 = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, cl
743
725
  onDoubleClick: () => onDoubleClick?.(row_1.original),
744
726
  "data-clickable": hasOnClick || row_1.getCanSelect() || void 0,
745
727
  "data-selected": row_1.getIsSelected() || void 0,
746
- children: row_1.getVisibleCells().map((cell, cellIndex) => {
747
- const columnMeta_0 = cell.column.columnDef.meta ?? {};
728
+ children: row_1.getVisibleCells().map((cell_0, cellIndex_0) => {
729
+ const columnMeta_1 = cell_0.column.columnDef.meta ?? {};
748
730
  return /* @__PURE__ */ jsx("td", {
749
731
  tabIndex: -1,
750
- className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta_0.cellClass, columnMeta_0.width),
751
- children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
752
- }, cell.id);
732
+ className: clsx(tableDataCva({ hasRightBorder: cellIndex_0 > 0 && showCellBorder }), columnMeta_1.cellClass, columnMeta_1.width),
733
+ children: renderCell(cell_0.column.columnDef.cell, CustomCellContext(cell_0.getContext()))
734
+ }, cell_0.id);
753
735
  })
754
736
  }, row_1.id);
755
737
  })
756
738
  })]
757
739
  });
758
- if (enableDragDrop) return /* @__PURE__ */ jsx(DndContext, {
759
- collisionDetection: closestCenter,
760
- modifiers: [restrictToVerticalAxis],
761
- onDragEnd: handleDragEnd,
762
- sensors,
763
- children: tableElement
740
+ if (enableDragDrop) return /* @__PURE__ */ jsx(Suspense, {
741
+ fallback: null,
742
+ children: /* @__PURE__ */ jsx(DndProvider, {
743
+ onDragEnd: handleDragEnd,
744
+ children: tableElement
745
+ })
764
746
  });
765
747
  return tableElement;
766
748
  };
@@ -2,9 +2,9 @@ import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-Bd
2
2
  import { c as ZodObject, h as output, i as ZodEnum } from "./schemas-CAtYiHoz.js";
3
3
  import { t as FieldPath } from "./form.binding-DWlFTecs.js";
4
4
  import { ComponentType, Dispatch, KeyboardEvent, ReactNode, SetStateAction } from "react";
5
- import { DragEndEvent, UniqueIdentifier } from "@dnd-kit/core";
6
5
  import { CellContext, ColumnDef, ColumnMeta, ColumnOrderState, ColumnVisibilityState, OnChangeFn, PaginationState, Row, RowData, RowSelectionState, SortingState, StockFeatures, Table } from "@tanstack/react-table";
7
6
  import { TFunction } from "i18next";
7
+ import { DragEndEvent, UniqueIdentifier } from "@dnd-kit/core";
8
8
  //#region src/components/table/ColumnConfig.d.ts
9
9
  type ColumnDef$4<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
10
10
  type VisibilityState$2 = ColumnVisibilityState;
@@ -1,5 +1,5 @@
1
1
  import { n as ToastOptions$1, r as ToastPosition, t as Id } from "./index-B8r_kiw4.js";
2
- import { i as ToastProps } from "./Toast-DDkev3SZ.js";
2
+ import { r as ToastProps } from "./Toast-JL9yaI35.js";
3
3
  //#region src/components/status/Toast/useToast.d.ts
4
4
  interface ToastParams extends Omit<ToastProps, "color"> {
5
5
  position?: ToastPosition;
@@ -1,5 +1,6 @@
1
- import { g as $3ef42575df84b30b$export$9d1611c77c2fe928, h as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-CuNJ25EP.js";
2
- import { t as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-CFgV1v57.js";
1
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-D-KKbY-n.js";
2
+ import { a as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-BXAtbYEe.js";
3
+ import { t as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BmSQIMid.js";
3
4
  import { useFocusable, usePress } from "@react-aria/interactions";
4
5
  //#region ../../node_modules/.bun/@react-aria+toggle@3.12.4+67f6792bdf102c28/node_modules/@react-aria/toggle/dist/useToggle.mjs
5
6
  function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {