@misael703/ui 1.48.0 → 1.50.0

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 (148) hide show
  1. package/dist/{chunk-KW76HGQL.js → chunk-2IKGRN2O.js} +54 -12
  2. package/dist/chunk-2IKGRN2O.js.map +1 -0
  3. package/dist/{chunk-IRKLU5NI.js → chunk-2XIFGGF2.js} +7 -7
  4. package/dist/{chunk-IRKLU5NI.js.map → chunk-2XIFGGF2.js.map} +1 -1
  5. package/dist/{chunk-7EBAE24K.mjs → chunk-3TS54SJB.mjs} +5 -5
  6. package/dist/{chunk-7EBAE24K.mjs.map → chunk-3TS54SJB.mjs.map} +1 -1
  7. package/dist/{chunk-PBA3F3M7.mjs → chunk-4LU36CNV.mjs} +3 -3
  8. package/dist/{chunk-PBA3F3M7.mjs.map → chunk-4LU36CNV.mjs.map} +1 -1
  9. package/dist/{chunk-3SOVR6JL.js → chunk-5UBYEEOF.js} +8 -8
  10. package/dist/{chunk-3SOVR6JL.js.map → chunk-5UBYEEOF.js.map} +1 -1
  11. package/dist/{chunk-JLIAKJCK.js → chunk-64YL7DN5.js} +4 -4
  12. package/dist/{chunk-JLIAKJCK.js.map → chunk-64YL7DN5.js.map} +1 -1
  13. package/dist/{chunk-V6VOF4DT.js → chunk-AKUGR3AX.js} +7 -7
  14. package/dist/{chunk-V6VOF4DT.js.map → chunk-AKUGR3AX.js.map} +1 -1
  15. package/dist/{chunk-TCTMCVHJ.mjs → chunk-AP655IUN.mjs} +3 -3
  16. package/dist/{chunk-TCTMCVHJ.mjs.map → chunk-AP655IUN.mjs.map} +1 -1
  17. package/dist/{chunk-YHRTDEEI.mjs → chunk-C4XPGEU2.mjs} +4 -4
  18. package/dist/{chunk-YHRTDEEI.mjs.map → chunk-C4XPGEU2.mjs.map} +1 -1
  19. package/dist/{chunk-UCEPFTZV.js → chunk-CJLCPURD.js} +5 -5
  20. package/dist/{chunk-UCEPFTZV.js.map → chunk-CJLCPURD.js.map} +1 -1
  21. package/dist/{chunk-VKVWIEDG.mjs → chunk-D6YFA5HW.mjs} +117 -6
  22. package/dist/chunk-D6YFA5HW.mjs.map +1 -0
  23. package/dist/{chunk-FXXYC73W.mjs → chunk-EE3VOAU4.mjs} +4 -4
  24. package/dist/{chunk-FXXYC73W.mjs.map → chunk-EE3VOAU4.mjs.map} +1 -1
  25. package/dist/{chunk-OZEYZNU6.js → chunk-EI2V2GGG.js} +6 -6
  26. package/dist/{chunk-OZEYZNU6.js.map → chunk-EI2V2GGG.js.map} +1 -1
  27. package/dist/{chunk-7IHOZOXC.mjs → chunk-FI5U4TL5.mjs} +4 -4
  28. package/dist/{chunk-7IHOZOXC.mjs.map → chunk-FI5U4TL5.mjs.map} +1 -1
  29. package/dist/{chunk-WWAUCHWD.mjs → chunk-H6ZT2DJ2.mjs} +4 -2
  30. package/dist/chunk-H6ZT2DJ2.mjs.map +1 -0
  31. package/dist/{chunk-7EHLO6NI.js → chunk-JDK4GEME.js} +2 -2
  32. package/dist/chunk-JDK4GEME.js.map +1 -0
  33. package/dist/{chunk-ECLG6BQ6.mjs → chunk-JL77KUET.mjs} +3 -3
  34. package/dist/{chunk-ECLG6BQ6.mjs.map → chunk-JL77KUET.mjs.map} +1 -1
  35. package/dist/{chunk-YRR6BOGQ.js → chunk-L5R6FKHH.js} +4 -4
  36. package/dist/{chunk-YRR6BOGQ.js.map → chunk-L5R6FKHH.js.map} +1 -1
  37. package/dist/{chunk-CSALA64D.mjs → chunk-LDCG4KDI.mjs} +3 -3
  38. package/dist/{chunk-CSALA64D.mjs.map → chunk-LDCG4KDI.mjs.map} +1 -1
  39. package/dist/{chunk-HNVTREZD.mjs → chunk-LPKS5CM5.mjs} +48 -7
  40. package/dist/chunk-LPKS5CM5.mjs.map +1 -0
  41. package/dist/{chunk-Z54MFDON.mjs → chunk-MG4MFZL3.mjs} +4 -4
  42. package/dist/{chunk-Z54MFDON.mjs.map → chunk-MG4MFZL3.mjs.map} +1 -1
  43. package/dist/{chunk-7MGAHY2M.js → chunk-MIUDP3FD.js} +8 -8
  44. package/dist/{chunk-7MGAHY2M.js.map → chunk-MIUDP3FD.js.map} +1 -1
  45. package/dist/{chunk-U2Z6DGHD.js → chunk-MJMLNETS.js} +4 -2
  46. package/dist/chunk-MJMLNETS.js.map +1 -0
  47. package/dist/{chunk-PPFIVMB7.mjs → chunk-MMFYXM3J.mjs} +4 -4
  48. package/dist/{chunk-PPFIVMB7.mjs.map → chunk-MMFYXM3J.mjs.map} +1 -1
  49. package/dist/{chunk-5RG53WIK.js → chunk-MR2KQSBB.js} +10 -10
  50. package/dist/{chunk-5RG53WIK.js.map → chunk-MR2KQSBB.js.map} +1 -1
  51. package/dist/{chunk-RO5ZFFUR.js → chunk-N5N5K36B.js} +6 -6
  52. package/dist/{chunk-RO5ZFFUR.js.map → chunk-N5N5K36B.js.map} +1 -1
  53. package/dist/{chunk-PNG74DNV.js → chunk-OG4IEN7J.js} +8 -8
  54. package/dist/{chunk-PNG74DNV.js.map → chunk-OG4IEN7J.js.map} +1 -1
  55. package/dist/{chunk-ZX5SLGGV.mjs → chunk-OSR32MPG.mjs} +4 -4
  56. package/dist/{chunk-ZX5SLGGV.mjs.map → chunk-OSR32MPG.mjs.map} +1 -1
  57. package/dist/{chunk-FPDVVACE.mjs → chunk-PDZN6KBV.mjs} +4 -4
  58. package/dist/{chunk-FPDVVACE.mjs.map → chunk-PDZN6KBV.mjs.map} +1 -1
  59. package/dist/{chunk-QHH6MT2S.js → chunk-Q4MSQLMS.js} +13 -13
  60. package/dist/{chunk-QHH6MT2S.js.map → chunk-Q4MSQLMS.js.map} +1 -1
  61. package/dist/{chunk-QFXRHPBU.mjs → chunk-QMBSDSSN.mjs} +3 -3
  62. package/dist/{chunk-QFXRHPBU.mjs.map → chunk-QMBSDSSN.mjs.map} +1 -1
  63. package/dist/{chunk-QBT62V5L.js → chunk-QUP2GEPF.js} +4 -4
  64. package/dist/{chunk-QBT62V5L.js.map → chunk-QUP2GEPF.js.map} +1 -1
  65. package/dist/{chunk-B7KVAKHG.mjs → chunk-RHS4E3R7.mjs} +4 -4
  66. package/dist/{chunk-B7KVAKHG.mjs.map → chunk-RHS4E3R7.mjs.map} +1 -1
  67. package/dist/{chunk-4FPZQCWI.mjs → chunk-RSU5CPC7.mjs} +4 -4
  68. package/dist/{chunk-4FPZQCWI.mjs.map → chunk-RSU5CPC7.mjs.map} +1 -1
  69. package/dist/{chunk-H7MLCJ27.mjs → chunk-SDR7JKDF.mjs} +2 -2
  70. package/dist/chunk-SDR7JKDF.mjs.map +1 -0
  71. package/dist/{chunk-5VRVKCOW.js → chunk-T3IZPDGQ.js} +5 -5
  72. package/dist/{chunk-5VRVKCOW.js.map → chunk-T3IZPDGQ.js.map} +1 -1
  73. package/dist/{chunk-CKYOOJGR.mjs → chunk-TS4UIWRG.mjs} +3 -3
  74. package/dist/{chunk-CKYOOJGR.mjs.map → chunk-TS4UIWRG.mjs.map} +1 -1
  75. package/dist/{chunk-NYZXNKMS.js → chunk-UWKP36N6.js} +121 -9
  76. package/dist/chunk-UWKP36N6.js.map +1 -0
  77. package/dist/{chunk-WRQWJDO2.js → chunk-WXWEZQLX.js} +6 -6
  78. package/dist/{chunk-WRQWJDO2.js.map → chunk-WXWEZQLX.js.map} +1 -1
  79. package/dist/{chunk-CN4WRFCH.js → chunk-Y6WOMG2H.js} +6 -6
  80. package/dist/{chunk-CN4WRFCH.js.map → chunk-Y6WOMG2H.js.map} +1 -1
  81. package/dist/{chunk-M7BOLJLW.mjs → chunk-YEIU5W7E.mjs} +4 -4
  82. package/dist/{chunk-M7BOLJLW.mjs.map → chunk-YEIU5W7E.mjs.map} +1 -1
  83. package/dist/{chunk-V6YCJSYT.js → chunk-Z3GT7VB2.js} +10 -10
  84. package/dist/{chunk-V6YCJSYT.js.map → chunk-Z3GT7VB2.js.map} +1 -1
  85. package/dist/components/AdvancedPickers.js +7 -7
  86. package/dist/components/AdvancedPickers.mjs +3 -3
  87. package/dist/components/AppShell.js +4 -4
  88. package/dist/components/AppShell.mjs +2 -2
  89. package/dist/components/Comments.js +6 -6
  90. package/dist/components/Comments.mjs +3 -3
  91. package/dist/components/Commerce.js +15 -15
  92. package/dist/components/Commerce.mjs +4 -4
  93. package/dist/components/DataTable.d.mts +35 -2
  94. package/dist/components/DataTable.d.ts +35 -2
  95. package/dist/components/DataTable.js +20 -10
  96. package/dist/components/DataTable.mjs +10 -4
  97. package/dist/components/Display.js +13 -13
  98. package/dist/components/Display.mjs +2 -2
  99. package/dist/components/Display3.js +8 -8
  100. package/dist/components/Display3.mjs +2 -2
  101. package/dist/components/Editing.d.mts +40 -1
  102. package/dist/components/Editing.d.ts +40 -1
  103. package/dist/components/Editing.js +12 -8
  104. package/dist/components/Editing.mjs +3 -3
  105. package/dist/components/Filters.js +9 -9
  106. package/dist/components/Filters.mjs +3 -3
  107. package/dist/components/Gallery.js +5 -5
  108. package/dist/components/Gallery.mjs +3 -3
  109. package/dist/components/Inputs.js +7 -7
  110. package/dist/components/Inputs.mjs +3 -3
  111. package/dist/components/InputsExtra.js +12 -12
  112. package/dist/components/InputsExtra.mjs +3 -3
  113. package/dist/components/Notifications.js +4 -4
  114. package/dist/components/Notifications.mjs +3 -3
  115. package/dist/components/Overlay.js +4 -4
  116. package/dist/components/Overlay.mjs +2 -2
  117. package/dist/components/Permissions.js +4 -4
  118. package/dist/components/Permissions.mjs +3 -3
  119. package/dist/components/Pickers.js +8 -8
  120. package/dist/components/Pickers.mjs +3 -3
  121. package/dist/components/TimeAgo.js +6 -6
  122. package/dist/components/TimeAgo.mjs +4 -4
  123. package/dist/components/Toast.js +4 -4
  124. package/dist/components/Toast.mjs +2 -2
  125. package/dist/index.d.mts +3 -3
  126. package/dist/index.d.ts +3 -3
  127. package/dist/index.js +125 -117
  128. package/dist/index.mjs +23 -23
  129. package/dist/locale/index.d.mts +2 -2
  130. package/dist/locale/index.d.ts +2 -2
  131. package/dist/locale/index.js +6 -6
  132. package/dist/locale/index.mjs +2 -2
  133. package/dist/{messages-K0Cw7IAD.d.ts → messages-D7YiIzCG.d.mts} +4 -0
  134. package/dist/{messages-K0Cw7IAD.d.mts → messages-D7YiIzCG.d.ts} +4 -0
  135. package/dist/styles.css +1 -1
  136. package/dist/utils/smartTime.d.mts +1 -1
  137. package/dist/utils/smartTime.d.ts +1 -1
  138. package/dist/utils/smartTime.js +6 -6
  139. package/dist/utils/smartTime.mjs +2 -2
  140. package/package.json +1 -1
  141. package/dist/chunk-7EHLO6NI.js.map +0 -1
  142. package/dist/chunk-H7MLCJ27.mjs.map +0 -1
  143. package/dist/chunk-HNVTREZD.mjs.map +0 -1
  144. package/dist/chunk-KW76HGQL.js.map +0 -1
  145. package/dist/chunk-NYZXNKMS.js.map +0 -1
  146. package/dist/chunk-U2Z6DGHD.js.map +0 -1
  147. package/dist/chunk-VKVWIEDG.mjs.map +0 -1
  148. package/dist/chunk-WWAUCHWD.mjs.map +0 -1
@@ -146,6 +146,15 @@ interface DataTableProps<T> {
146
146
  renderExpanded?: (row: T) => React.ReactNode;
147
147
  expandedKeys?: Set<string>;
148
148
  onExpandedChange?: (keys: Set<string>) => void;
149
+ /**
150
+ * Hides columns by key without mutating the canonical `columns` array —
151
+ * the consumer keeps ONE column definition and toggles a `Set`. Header,
152
+ * cells, totals footer, colSpans and mobile cards all follow. Pair with
153
+ * `<ColumnToggle>` in the toolbar for the ready-made visibility menu.
154
+ * Hiding every column is the consumer's foot-gun to avoid
155
+ * (`ColumnToggle` already prevents it by disabling the last one).
156
+ */
157
+ hiddenColumnKeys?: Set<string>;
149
158
  /**
150
159
  * Toolbar / filter zone that shares the table's rounded surface. When
151
160
  * set, the DataTable renders it INSIDE its own border+radius+overflow
@@ -179,7 +188,7 @@ interface DataTableProps<T> {
179
188
  * - No virtualization; tested up to ~200 rows. For large datasets, plug
180
189
  * in react-window/tanstack-virtual around the body rows.
181
190
  */
182
- declare function DataTable<T>({ columns, rows, rowKey, sort, onSortChange, selectable, selectedKeys, onSelectionChange, empty, error, loading, stickyHeader, maxHeight, mobileLayout, ariaLabel, rowLabel, className, density, rowHref, onRowClick, renderRow, toolbar, renderExpanded, expandedKeys, onExpandedChange, surface, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
191
+ declare function DataTable<T>({ columns: allColumns, rows, rowKey, sort, onSortChange, selectable, selectedKeys, onSelectionChange, empty, error, loading, stickyHeader, maxHeight, mobileLayout, ariaLabel, rowLabel, className, density, rowHref, onRowClick, renderRow, toolbar, renderExpanded, expandedKeys, onExpandedChange, hiddenColumnKeys, surface, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
183
192
  interface AccordionProps {
184
193
  multiple?: boolean;
185
194
  defaultOpen?: string[];
@@ -213,5 +222,29 @@ interface TablePaginationProps {
213
222
  }
214
223
  declare function TablePagination({ page, pageSize, total, onPageChange, onPageSizeChange, pageSizeOptions, className, }: TablePaginationProps): react_jsx_runtime.JSX.Element;
215
224
  declare const TableToolbar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
225
+ interface ColumnToggleProps {
226
+ /**
227
+ * The CANONICAL column list (pass the same array the table gets, or a
228
+ * `{key, header}` subset) — the menu lists every column regardless of
229
+ * current visibility. Non-string headers render as-is in the menu.
230
+ */
231
+ columns: Array<{
232
+ key: string;
233
+ header: React.ReactNode;
234
+ }>;
235
+ hiddenKeys: Set<string>;
236
+ onChange: (keys: Set<string>) => void;
237
+ /** Trigger label. Defaults to the `table.columns` locale string. */
238
+ label?: React.ReactNode;
239
+ className?: string;
240
+ }
241
+ /**
242
+ * Ready-made column-visibility menu for the table toolbar: a button that
243
+ * opens a checkbox list, driving `DataTable.hiddenColumnKeys`. The popover
244
+ * stays open across toggles (multi-adjust without reopening). The last
245
+ * visible column's checkbox is disabled — a table with zero columns is a
246
+ * broken state no menu should be able to reach.
247
+ */
248
+ declare function ColumnToggle({ columns, hiddenKeys, onChange, label, className }: ColumnToggleProps): react_jsx_runtime.JSX.Element;
216
249
 
217
- export { Accordion, AccordionItem, type AccordionProps, type BreadcrumbItem, Breadcrumbs, type Column, DataTable, type DataTableProps, TablePagination, type TablePaginationProps, TableToolbar };
250
+ export { Accordion, AccordionItem, type AccordionProps, type BreadcrumbItem, Breadcrumbs, type Column, ColumnToggle, type ColumnToggleProps, DataTable, type DataTableProps, TablePagination, type TablePaginationProps, TableToolbar };
@@ -1,11 +1,17 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkKW76HGQL_js = require('../chunk-KW76HGQL.js');
5
- require('../chunk-V6VOF4DT.js');
4
+ var chunk2IKGRN2O_js = require('../chunk-2IKGRN2O.js');
5
+ require('../chunk-MW7HQCFC.js');
6
+ require('../chunk-AKUGR3AX.js');
6
7
  require('../chunk-6SSTTJV4.js');
7
- require('../chunk-7EHLO6NI.js');
8
- require('../chunk-U2Z6DGHD.js');
8
+ require('../chunk-JDK4GEME.js');
9
+ require('../chunk-WAGWB35Q.js');
10
+ require('../chunk-MJMLNETS.js');
11
+ require('../chunk-XMLBKK7X.js');
12
+ require('../chunk-CRKYET66.js');
13
+ require('../chunk-AJ22SXI2.js');
14
+ require('../chunk-EUB4PHPI.js');
9
15
  require('../chunk-C4AKMVDZ.js');
10
16
  require('../chunk-PASF6T4H.js');
11
17
 
@@ -13,27 +19,31 @@ require('../chunk-PASF6T4H.js');
13
19
 
14
20
  Object.defineProperty(exports, "Accordion", {
15
21
  enumerable: true,
16
- get: function () { return chunkKW76HGQL_js.Accordion; }
22
+ get: function () { return chunk2IKGRN2O_js.Accordion; }
17
23
  });
18
24
  Object.defineProperty(exports, "AccordionItem", {
19
25
  enumerable: true,
20
- get: function () { return chunkKW76HGQL_js.AccordionItem; }
26
+ get: function () { return chunk2IKGRN2O_js.AccordionItem; }
21
27
  });
22
28
  Object.defineProperty(exports, "Breadcrumbs", {
23
29
  enumerable: true,
24
- get: function () { return chunkKW76HGQL_js.Breadcrumbs; }
30
+ get: function () { return chunk2IKGRN2O_js.Breadcrumbs; }
31
+ });
32
+ Object.defineProperty(exports, "ColumnToggle", {
33
+ enumerable: true,
34
+ get: function () { return chunk2IKGRN2O_js.ColumnToggle; }
25
35
  });
26
36
  Object.defineProperty(exports, "DataTable", {
27
37
  enumerable: true,
28
- get: function () { return chunkKW76HGQL_js.DataTable; }
38
+ get: function () { return chunk2IKGRN2O_js.DataTable; }
29
39
  });
30
40
  Object.defineProperty(exports, "TablePagination", {
31
41
  enumerable: true,
32
- get: function () { return chunkKW76HGQL_js.TablePagination; }
42
+ get: function () { return chunk2IKGRN2O_js.TablePagination; }
33
43
  });
34
44
  Object.defineProperty(exports, "TableToolbar", {
35
45
  enumerable: true,
36
- get: function () { return chunkKW76HGQL_js.TableToolbar; }
46
+ get: function () { return chunk2IKGRN2O_js.TableToolbar; }
37
47
  });
38
48
  //# sourceMappingURL=DataTable.js.map
39
49
  //# sourceMappingURL=DataTable.js.map
@@ -1,9 +1,15 @@
1
1
  'use client';
2
- export { Accordion, AccordionItem, Breadcrumbs, DataTable, TablePagination, TableToolbar } from '../chunk-HNVTREZD.mjs';
3
- import '../chunk-M7BOLJLW.mjs';
2
+ export { Accordion, AccordionItem, Breadcrumbs, ColumnToggle, DataTable, TablePagination, TableToolbar } from '../chunk-LPKS5CM5.mjs';
3
+ import '../chunk-FR4JV3JA.mjs';
4
+ import '../chunk-YEIU5W7E.mjs';
4
5
  import '../chunk-SUQLII3F.mjs';
5
- import '../chunk-H7MLCJ27.mjs';
6
- import '../chunk-WWAUCHWD.mjs';
6
+ import '../chunk-SDR7JKDF.mjs';
7
+ import '../chunk-FKBQYQQD.mjs';
8
+ import '../chunk-H6ZT2DJ2.mjs';
9
+ import '../chunk-6P2TKRTL.mjs';
10
+ import '../chunk-5XT2LX3I.mjs';
11
+ import '../chunk-NAL457NQ.mjs';
12
+ import '../chunk-IEPKSPBX.mjs';
7
13
  import '../chunk-BJGMROKL.mjs';
8
14
  import '../chunk-IEPCH3JB.mjs';
9
15
  //# sourceMappingURL=DataTable.mjs.map
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkWRQWJDO2_js = require('../chunk-WRQWJDO2.js');
5
- require('../chunk-U2Z6DGHD.js');
4
+ var chunkWXWEZQLX_js = require('../chunk-WXWEZQLX.js');
5
+ require('../chunk-MJMLNETS.js');
6
6
  require('../chunk-EUB4PHPI.js');
7
7
  require('../chunk-C4AKMVDZ.js');
8
8
  require('../chunk-PASF6T4H.js');
@@ -11,47 +11,47 @@ require('../chunk-PASF6T4H.js');
11
11
 
12
12
  Object.defineProperty(exports, "Alert", {
13
13
  enumerable: true,
14
- get: function () { return chunkWRQWJDO2_js.Alert; }
14
+ get: function () { return chunkWXWEZQLX_js.Alert; }
15
15
  });
16
16
  Object.defineProperty(exports, "Badge", {
17
17
  enumerable: true,
18
- get: function () { return chunkWRQWJDO2_js.Badge; }
18
+ get: function () { return chunkWXWEZQLX_js.Badge; }
19
19
  });
20
20
  Object.defineProperty(exports, "Card", {
21
21
  enumerable: true,
22
- get: function () { return chunkWRQWJDO2_js.Card; }
22
+ get: function () { return chunkWXWEZQLX_js.Card; }
23
23
  });
24
24
  Object.defineProperty(exports, "CardBody", {
25
25
  enumerable: true,
26
- get: function () { return chunkWRQWJDO2_js.CardBody; }
26
+ get: function () { return chunkWXWEZQLX_js.CardBody; }
27
27
  });
28
28
  Object.defineProperty(exports, "CardFooter", {
29
29
  enumerable: true,
30
- get: function () { return chunkWRQWJDO2_js.CardFooter; }
30
+ get: function () { return chunkWXWEZQLX_js.CardFooter; }
31
31
  });
32
32
  Object.defineProperty(exports, "CardHeader", {
33
33
  enumerable: true,
34
- get: function () { return chunkWRQWJDO2_js.CardHeader; }
34
+ get: function () { return chunkWXWEZQLX_js.CardHeader; }
35
35
  });
36
36
  Object.defineProperty(exports, "Chip", {
37
37
  enumerable: true,
38
- get: function () { return chunkWRQWJDO2_js.Chip; }
38
+ get: function () { return chunkWXWEZQLX_js.Chip; }
39
39
  });
40
40
  Object.defineProperty(exports, "ChipGroup", {
41
41
  enumerable: true,
42
- get: function () { return chunkWRQWJDO2_js.ChipGroup; }
42
+ get: function () { return chunkWXWEZQLX_js.ChipGroup; }
43
43
  });
44
44
  Object.defineProperty(exports, "ProductCard", {
45
45
  enumerable: true,
46
- get: function () { return chunkWRQWJDO2_js.ProductCard; }
46
+ get: function () { return chunkWXWEZQLX_js.ProductCard; }
47
47
  });
48
48
  Object.defineProperty(exports, "Skeleton", {
49
49
  enumerable: true,
50
- get: function () { return chunkWRQWJDO2_js.Skeleton; }
50
+ get: function () { return chunkWXWEZQLX_js.Skeleton; }
51
51
  });
52
52
  Object.defineProperty(exports, "Spinner", {
53
53
  enumerable: true,
54
- get: function () { return chunkWRQWJDO2_js.Spinner; }
54
+ get: function () { return chunkWXWEZQLX_js.Spinner; }
55
55
  });
56
56
  //# sourceMappingURL=Display.js.map
57
57
  //# sourceMappingURL=Display.js.map
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- export { Alert, Badge, Card, CardBody, CardFooter, CardHeader, Chip, ChipGroup, ProductCard, Skeleton, Spinner } from '../chunk-QFXRHPBU.mjs';
3
- import '../chunk-WWAUCHWD.mjs';
2
+ export { Alert, Badge, Card, CardBody, CardFooter, CardHeader, Chip, ChipGroup, ProductCard, Skeleton, Spinner } from '../chunk-QMBSDSSN.mjs';
3
+ import '../chunk-H6ZT2DJ2.mjs';
4
4
  import '../chunk-IEPKSPBX.mjs';
5
5
  import '../chunk-BJGMROKL.mjs';
6
6
  import '../chunk-IEPCH3JB.mjs';
@@ -1,12 +1,12 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkJLIAKJCK_js = require('../chunk-JLIAKJCK.js');
4
+ var chunk64YL7DN5_js = require('../chunk-64YL7DN5.js');
5
5
  require('../chunk-AGMDYCGG.js');
6
6
  require('../chunk-MVJITG75.js');
7
7
  require('../chunk-WAGWB35Q.js');
8
8
  require('../chunk-3PXYCXDW.js');
9
- require('../chunk-U2Z6DGHD.js');
9
+ require('../chunk-MJMLNETS.js');
10
10
  require('../chunk-XMLBKK7X.js');
11
11
  require('../chunk-CRKYET66.js');
12
12
  require('../chunk-C4AKMVDZ.js');
@@ -16,27 +16,27 @@ require('../chunk-PASF6T4H.js');
16
16
 
17
17
  Object.defineProperty(exports, "Calendar", {
18
18
  enumerable: true,
19
- get: function () { return chunkJLIAKJCK_js.Calendar; }
19
+ get: function () { return chunk64YL7DN5_js.Calendar; }
20
20
  });
21
21
  Object.defineProperty(exports, "StatusIndicator", {
22
22
  enumerable: true,
23
- get: function () { return chunkJLIAKJCK_js.StatusIndicator; }
23
+ get: function () { return chunk64YL7DN5_js.StatusIndicator; }
24
24
  });
25
25
  Object.defineProperty(exports, "Timeline", {
26
26
  enumerable: true,
27
- get: function () { return chunkJLIAKJCK_js.Timeline; }
27
+ get: function () { return chunk64YL7DN5_js.Timeline; }
28
28
  });
29
29
  Object.defineProperty(exports, "TimelineItem", {
30
30
  enumerable: true,
31
- get: function () { return chunkJLIAKJCK_js.TimelineItem; }
31
+ get: function () { return chunk64YL7DN5_js.TimelineItem; }
32
32
  });
33
33
  Object.defineProperty(exports, "Tree", {
34
34
  enumerable: true,
35
- get: function () { return chunkJLIAKJCK_js.Tree; }
35
+ get: function () { return chunk64YL7DN5_js.Tree; }
36
36
  });
37
37
  Object.defineProperty(exports, "UserCell", {
38
38
  enumerable: true,
39
- get: function () { return chunkJLIAKJCK_js.UserCell; }
39
+ get: function () { return chunk64YL7DN5_js.UserCell; }
40
40
  });
41
41
  //# sourceMappingURL=Display3.js.map
42
42
  //# sourceMappingURL=Display3.js.map
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- export { Calendar, StatusIndicator, Timeline, TimelineItem, Tree, UserCell } from '../chunk-PBA3F3M7.mjs';
2
+ export { Calendar, StatusIndicator, Timeline, TimelineItem, Tree, UserCell } from '../chunk-4LU36CNV.mjs';
3
3
  import '../chunk-DH3IXJRJ.mjs';
4
4
  import '../chunk-4QHE5H36.mjs';
5
5
  import '../chunk-FKBQYQQD.mjs';
6
6
  import '../chunk-5GEWIK4T.mjs';
7
- import '../chunk-WWAUCHWD.mjs';
7
+ import '../chunk-H6ZT2DJ2.mjs';
8
8
  import '../chunk-6P2TKRTL.mjs';
9
9
  import '../chunk-5XT2LX3I.mjs';
10
10
  import '../chunk-BJGMROKL.mjs';
@@ -48,5 +48,44 @@ interface TransferListProps {
48
48
  className?: string;
49
49
  }
50
50
  declare function TransferList({ source, selected, onChange, sourceTitle, selectedTitle, className, }: TransferListProps): react_jsx_runtime.JSX.Element;
51
+ interface EditableCellProps {
52
+ /** Committed value (controlled — the consumer owns it). */
53
+ value: string;
54
+ /**
55
+ * Called on commit (Enter or blur) with the edited raw value. May return
56
+ * a promise: while it's pending the input is disabled; on rejection the
57
+ * cell STAYS in edit mode with the invalid style, so the user's typing
58
+ * is never lost to a failed PATCH. Not called when the value is
59
+ * unchanged.
60
+ */
61
+ onCommit: (next: string) => void | Promise<void>;
62
+ /** Input mode. `'number'` renders a numeric input. */
63
+ type?: 'text' | 'number';
64
+ /**
65
+ * Display-mode formatter (e.g. `formatCurrency`) — editing always works
66
+ * on the RAW `value`; only the resting presentation is formatted.
67
+ */
68
+ formatDisplay?: (value: string) => React.ReactNode;
69
+ /**
70
+ * Sync validation before commit. Return an error message to block the
71
+ * commit (cell stays editing, invalid style, message via title/aria);
72
+ * return `null` to allow it.
73
+ */
74
+ validate?: (next: string) => string | null;
75
+ disabled?: boolean;
76
+ placeholder?: string;
77
+ /** Accessible name of the edit affordance (e.g. "Editar precio de Taladro"). */
78
+ ariaLabel?: string;
79
+ className?: string;
80
+ }
81
+ /**
82
+ * Click-to-edit primitive for inline editing (Airtable/Notion semantics):
83
+ * click or Enter to edit, Enter/blur commits, Escape cancels. Composable
84
+ * anywhere — typically inside a `DataTable` cell via `accessor`. The kit
85
+ * deliberately ships the CELL, not an editable-table subsystem: commit
86
+ * orchestration (optimistic update, refetch, toast) stays in the consumer,
87
+ * where the data layer lives.
88
+ */
89
+ declare function EditableCell({ value, onCommit, type, formatDisplay, validate, disabled, placeholder, ariaLabel, className, }: EditableCellProps): react_jsx_runtime.JSX.Element;
51
90
 
52
- export { ConfirmDialog, type ConfirmDialogProps, DescriptionList, DescriptionListItem, type DescriptionListItemProps, type DiffEntry, DiffViewer, type DiffViewerProps, type TransferItem, TransferList, type TransferListProps };
91
+ export { ConfirmDialog, type ConfirmDialogProps, DescriptionList, DescriptionListItem, type DescriptionListItemProps, type DiffEntry, DiffViewer, type DiffViewerProps, EditableCell, type EditableCellProps, type TransferItem, TransferList, type TransferListProps };
@@ -48,5 +48,44 @@ interface TransferListProps {
48
48
  className?: string;
49
49
  }
50
50
  declare function TransferList({ source, selected, onChange, sourceTitle, selectedTitle, className, }: TransferListProps): react_jsx_runtime.JSX.Element;
51
+ interface EditableCellProps {
52
+ /** Committed value (controlled — the consumer owns it). */
53
+ value: string;
54
+ /**
55
+ * Called on commit (Enter or blur) with the edited raw value. May return
56
+ * a promise: while it's pending the input is disabled; on rejection the
57
+ * cell STAYS in edit mode with the invalid style, so the user's typing
58
+ * is never lost to a failed PATCH. Not called when the value is
59
+ * unchanged.
60
+ */
61
+ onCommit: (next: string) => void | Promise<void>;
62
+ /** Input mode. `'number'` renders a numeric input. */
63
+ type?: 'text' | 'number';
64
+ /**
65
+ * Display-mode formatter (e.g. `formatCurrency`) — editing always works
66
+ * on the RAW `value`; only the resting presentation is formatted.
67
+ */
68
+ formatDisplay?: (value: string) => React.ReactNode;
69
+ /**
70
+ * Sync validation before commit. Return an error message to block the
71
+ * commit (cell stays editing, invalid style, message via title/aria);
72
+ * return `null` to allow it.
73
+ */
74
+ validate?: (next: string) => string | null;
75
+ disabled?: boolean;
76
+ placeholder?: string;
77
+ /** Accessible name of the edit affordance (e.g. "Editar precio de Taladro"). */
78
+ ariaLabel?: string;
79
+ className?: string;
80
+ }
81
+ /**
82
+ * Click-to-edit primitive for inline editing (Airtable/Notion semantics):
83
+ * click or Enter to edit, Enter/blur commits, Escape cancels. Composable
84
+ * anywhere — typically inside a `DataTable` cell via `accessor`. The kit
85
+ * deliberately ships the CELL, not an editable-table subsystem: commit
86
+ * orchestration (optimistic update, refetch, toast) stays in the consumer,
87
+ * where the data layer lives.
88
+ */
89
+ declare function EditableCell({ value, onCommit, type, formatDisplay, validate, disabled, placeholder, ariaLabel, className, }: EditableCellProps): react_jsx_runtime.JSX.Element;
51
90
 
52
- export { ConfirmDialog, type ConfirmDialogProps, DescriptionList, DescriptionListItem, type DescriptionListItemProps, type DiffEntry, DiffViewer, type DiffViewerProps, type TransferItem, TransferList, type TransferListProps };
91
+ export { ConfirmDialog, type ConfirmDialogProps, DescriptionList, DescriptionListItem, type DescriptionListItemProps, type DiffEntry, DiffViewer, type DiffViewerProps, EditableCell, type EditableCellProps, type TransferItem, TransferList, type TransferListProps };
@@ -1,15 +1,15 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkNYZXNKMS_js = require('../chunk-NYZXNKMS.js');
5
- require('../chunk-5VRVKCOW.js');
4
+ var chunkUWKP36N6_js = require('../chunk-UWKP36N6.js');
5
+ require('../chunk-T3IZPDGQ.js');
6
6
  require('../chunk-6SSTTJV4.js');
7
7
  require('../chunk-2KZ4NI3X.js');
8
8
  require('../chunk-D2H4VZVL.js');
9
9
  require('../chunk-FL4ZCWUF.js');
10
10
  require('../chunk-NPXEZCTA.js');
11
11
  require('../chunk-55P5FA5Q.js');
12
- require('../chunk-U2Z6DGHD.js');
12
+ require('../chunk-MJMLNETS.js');
13
13
  require('../chunk-XMLBKK7X.js');
14
14
  require('../chunk-CRKYET66.js');
15
15
  require('../chunk-C4AKMVDZ.js');
@@ -19,23 +19,27 @@ require('../chunk-PASF6T4H.js');
19
19
 
20
20
  Object.defineProperty(exports, "ConfirmDialog", {
21
21
  enumerable: true,
22
- get: function () { return chunkNYZXNKMS_js.ConfirmDialog; }
22
+ get: function () { return chunkUWKP36N6_js.ConfirmDialog; }
23
23
  });
24
24
  Object.defineProperty(exports, "DescriptionList", {
25
25
  enumerable: true,
26
- get: function () { return chunkNYZXNKMS_js.DescriptionList; }
26
+ get: function () { return chunkUWKP36N6_js.DescriptionList; }
27
27
  });
28
28
  Object.defineProperty(exports, "DescriptionListItem", {
29
29
  enumerable: true,
30
- get: function () { return chunkNYZXNKMS_js.DescriptionListItem; }
30
+ get: function () { return chunkUWKP36N6_js.DescriptionListItem; }
31
31
  });
32
32
  Object.defineProperty(exports, "DiffViewer", {
33
33
  enumerable: true,
34
- get: function () { return chunkNYZXNKMS_js.DiffViewer; }
34
+ get: function () { return chunkUWKP36N6_js.DiffViewer; }
35
+ });
36
+ Object.defineProperty(exports, "EditableCell", {
37
+ enumerable: true,
38
+ get: function () { return chunkUWKP36N6_js.EditableCell; }
35
39
  });
36
40
  Object.defineProperty(exports, "TransferList", {
37
41
  enumerable: true,
38
- get: function () { return chunkNYZXNKMS_js.TransferList; }
42
+ get: function () { return chunkUWKP36N6_js.TransferList; }
39
43
  });
40
44
  //# sourceMappingURL=Editing.js.map
41
45
  //# sourceMappingURL=Editing.js.map
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- export { ConfirmDialog, DescriptionList, DescriptionListItem, DiffViewer, TransferList } from '../chunk-VKVWIEDG.mjs';
3
- import '../chunk-TCTMCVHJ.mjs';
2
+ export { ConfirmDialog, DescriptionList, DescriptionListItem, DiffViewer, EditableCell, TransferList } from '../chunk-D6YFA5HW.mjs';
3
+ import '../chunk-AP655IUN.mjs';
4
4
  import '../chunk-SUQLII3F.mjs';
5
5
  import '../chunk-QQE3XOEM.mjs';
6
6
  import '../chunk-R5DCDEB5.mjs';
7
7
  import '../chunk-U3JH4T3A.mjs';
8
8
  import '../chunk-6W7ZGWNA.mjs';
9
9
  import '../chunk-XOV4D6J3.mjs';
10
- import '../chunk-WWAUCHWD.mjs';
10
+ import '../chunk-H6ZT2DJ2.mjs';
11
11
  import '../chunk-6P2TKRTL.mjs';
12
12
  import '../chunk-5XT2LX3I.mjs';
13
13
  import '../chunk-BJGMROKL.mjs';
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunk3SOVR6JL_js = require('../chunk-3SOVR6JL.js');
5
- require('../chunk-7EHLO6NI.js');
6
- require('../chunk-U2Z6DGHD.js');
4
+ var chunk5UBYEEOF_js = require('../chunk-5UBYEEOF.js');
5
+ require('../chunk-JDK4GEME.js');
6
+ require('../chunk-MJMLNETS.js');
7
7
  require('../chunk-C4AKMVDZ.js');
8
8
  require('../chunk-PASF6T4H.js');
9
9
 
@@ -11,27 +11,27 @@ require('../chunk-PASF6T4H.js');
11
11
 
12
12
  Object.defineProperty(exports, "BulkActionBar", {
13
13
  enumerable: true,
14
- get: function () { return chunk3SOVR6JL_js.BulkActionBar; }
14
+ get: function () { return chunk5UBYEEOF_js.BulkActionBar; }
15
15
  });
16
16
  Object.defineProperty(exports, "FilterBar", {
17
17
  enumerable: true,
18
- get: function () { return chunk3SOVR6JL_js.FilterBar; }
18
+ get: function () { return chunk5UBYEEOF_js.FilterBar; }
19
19
  });
20
20
  Object.defineProperty(exports, "FilterField", {
21
21
  enumerable: true,
22
- get: function () { return chunk3SOVR6JL_js.FilterField; }
22
+ get: function () { return chunk5UBYEEOF_js.FilterField; }
23
23
  });
24
24
  Object.defineProperty(exports, "FilterPanel", {
25
25
  enumerable: true,
26
- get: function () { return chunk3SOVR6JL_js.FilterPanel; }
26
+ get: function () { return chunk5UBYEEOF_js.FilterPanel; }
27
27
  });
28
28
  Object.defineProperty(exports, "FilterSection", {
29
29
  enumerable: true,
30
- get: function () { return chunk3SOVR6JL_js.FilterSection; }
30
+ get: function () { return chunk5UBYEEOF_js.FilterSection; }
31
31
  });
32
32
  Object.defineProperty(exports, "SortDropdown", {
33
33
  enumerable: true,
34
- get: function () { return chunk3SOVR6JL_js.SortDropdown; }
34
+ get: function () { return chunk5UBYEEOF_js.SortDropdown; }
35
35
  });
36
36
  //# sourceMappingURL=Filters.js.map
37
37
  //# sourceMappingURL=Filters.js.map
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- export { BulkActionBar, FilterBar, FilterField, FilterPanel, FilterSection, SortDropdown } from '../chunk-B7KVAKHG.mjs';
3
- import '../chunk-H7MLCJ27.mjs';
4
- import '../chunk-WWAUCHWD.mjs';
2
+ export { BulkActionBar, FilterBar, FilterField, FilterPanel, FilterSection, SortDropdown } from '../chunk-RHS4E3R7.mjs';
3
+ import '../chunk-SDR7JKDF.mjs';
4
+ import '../chunk-H6ZT2DJ2.mjs';
5
5
  import '../chunk-BJGMROKL.mjs';
6
6
  import '../chunk-IEPCH3JB.mjs';
7
7
  //# sourceMappingURL=Filters.mjs.map
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkIRKLU5NI_js = require('../chunk-IRKLU5NI.js');
5
- require('../chunk-7EHLO6NI.js');
6
- require('../chunk-U2Z6DGHD.js');
4
+ var chunk2XIFGGF2_js = require('../chunk-2XIFGGF2.js');
5
+ require('../chunk-JDK4GEME.js');
6
+ require('../chunk-MJMLNETS.js');
7
7
  require('../chunk-C4AKMVDZ.js');
8
8
  require('../chunk-PASF6T4H.js');
9
9
 
@@ -11,11 +11,11 @@ require('../chunk-PASF6T4H.js');
11
11
 
12
12
  Object.defineProperty(exports, "ImageGallery", {
13
13
  enumerable: true,
14
- get: function () { return chunkIRKLU5NI_js.ImageGallery; }
14
+ get: function () { return chunk2XIFGGF2_js.ImageGallery; }
15
15
  });
16
16
  Object.defineProperty(exports, "Lightbox", {
17
17
  enumerable: true,
18
- get: function () { return chunkIRKLU5NI_js.Lightbox; }
18
+ get: function () { return chunk2XIFGGF2_js.Lightbox; }
19
19
  });
20
20
  //# sourceMappingURL=Gallery.js.map
21
21
  //# sourceMappingURL=Gallery.js.map
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- export { ImageGallery, Lightbox } from '../chunk-ZX5SLGGV.mjs';
3
- import '../chunk-H7MLCJ27.mjs';
4
- import '../chunk-WWAUCHWD.mjs';
2
+ export { ImageGallery, Lightbox } from '../chunk-OSR32MPG.mjs';
3
+ import '../chunk-SDR7JKDF.mjs';
4
+ import '../chunk-H6ZT2DJ2.mjs';
5
5
  import '../chunk-BJGMROKL.mjs';
6
6
  import '../chunk-IEPCH3JB.mjs';
7
7
  //# sourceMappingURL=Gallery.mjs.map
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkV6VOF4DT_js = require('../chunk-V6VOF4DT.js');
5
- require('../chunk-7EHLO6NI.js');
6
- require('../chunk-U2Z6DGHD.js');
4
+ var chunkAKUGR3AX_js = require('../chunk-AKUGR3AX.js');
5
+ require('../chunk-JDK4GEME.js');
6
+ require('../chunk-MJMLNETS.js');
7
7
  require('../chunk-C4AKMVDZ.js');
8
8
  require('../chunk-PASF6T4H.js');
9
9
 
@@ -11,19 +11,19 @@ require('../chunk-PASF6T4H.js');
11
11
 
12
12
  Object.defineProperty(exports, "EmptyState", {
13
13
  enumerable: true,
14
- get: function () { return chunkV6VOF4DT_js.EmptyState; }
14
+ get: function () { return chunkAKUGR3AX_js.EmptyState; }
15
15
  });
16
16
  Object.defineProperty(exports, "Kpi", {
17
17
  enumerable: true,
18
- get: function () { return chunkV6VOF4DT_js.Kpi; }
18
+ get: function () { return chunkAKUGR3AX_js.Kpi; }
19
19
  });
20
20
  Object.defineProperty(exports, "NumberInput", {
21
21
  enumerable: true,
22
- get: function () { return chunkV6VOF4DT_js.NumberInput; }
22
+ get: function () { return chunkAKUGR3AX_js.NumberInput; }
23
23
  });
24
24
  Object.defineProperty(exports, "Pagination", {
25
25
  enumerable: true,
26
- get: function () { return chunkV6VOF4DT_js.Pagination; }
26
+ get: function () { return chunkAKUGR3AX_js.Pagination; }
27
27
  });
28
28
  //# sourceMappingURL=Inputs.js.map
29
29
  //# sourceMappingURL=Inputs.js.map
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- export { EmptyState, Kpi, NumberInput, Pagination } from '../chunk-M7BOLJLW.mjs';
3
- import '../chunk-H7MLCJ27.mjs';
4
- import '../chunk-WWAUCHWD.mjs';
2
+ export { EmptyState, Kpi, NumberInput, Pagination } from '../chunk-YEIU5W7E.mjs';
3
+ import '../chunk-SDR7JKDF.mjs';
4
+ import '../chunk-H6ZT2DJ2.mjs';
5
5
  import '../chunk-BJGMROKL.mjs';
6
6
  import '../chunk-IEPCH3JB.mjs';
7
7
  //# sourceMappingURL=Inputs.mjs.map