@itilite/lumina-ui 1.0.0-alpha → 1.0.1-alpha

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 (185) hide show
  1. package/dist/{AdvancedDateRangePicker-Eh6n4ne0.d.mts → AdvancedDateRangePicker-ozItnkhp.d.mts} +1 -1
  2. package/dist/{AdvancedDateRangePicker-Eh6n4ne0.d.ts → AdvancedDateRangePicker-ozItnkhp.d.ts} +1 -1
  3. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +1 -1
  4. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +1 -1
  5. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.mts +1 -2
  6. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.ts +1 -2
  7. package/dist/atom/LoadingSpinner/LoadingSpinner.d.mts +2 -2
  8. package/dist/atom/LoadingSpinner/LoadingSpinner.d.ts +2 -2
  9. package/dist/index.d.mts +14 -15
  10. package/dist/index.d.ts +14 -15
  11. package/dist/index.mjs +8 -8
  12. package/dist/styles.css +328 -312
  13. package/package.json +1 -1
  14. package/dist/AdvancedDateRangePicker-CN9WN0rH.d.mts +0 -56
  15. package/dist/AdvancedDateRangePicker-CN9WN0rH.d.ts +0 -56
  16. package/dist/AdvancedDateRangePicker-CzN1HGsC.d.mts +0 -57
  17. package/dist/AdvancedDateRangePicker-CzN1HGsC.d.ts +0 -57
  18. package/dist/AdvancedDateRangePicker-DAPxgRl3.d.mts +0 -54
  19. package/dist/AdvancedDateRangePicker-DAPxgRl3.d.ts +0 -54
  20. package/dist/AdvancedDateRangePicker-DW94285G.d.mts +0 -56
  21. package/dist/AdvancedDateRangePicker-DW94285G.d.ts +0 -56
  22. package/dist/Avatar-DX2JwvAs.d.mts +0 -17
  23. package/dist/Avatar-DX2JwvAs.d.ts +0 -17
  24. package/dist/Table-BA0D3p1m.d.mts +0 -78
  25. package/dist/Table-BA0D3p1m.d.ts +0 -78
  26. package/dist/Table-BLZ6c46U.d.mts +0 -77
  27. package/dist/Table-BLZ6c46U.d.ts +0 -77
  28. package/dist/Table-BMqYnFi4.d.mts +0 -25
  29. package/dist/Table-BMqYnFi4.d.ts +0 -25
  30. package/dist/Table-BRcthrYV.d.mts +0 -98
  31. package/dist/Table-BRcthrYV.d.ts +0 -98
  32. package/dist/Table-BWlFCfBG.d.mts +0 -106
  33. package/dist/Table-BWlFCfBG.d.ts +0 -106
  34. package/dist/Table-CHFmNrme.d.mts +0 -77
  35. package/dist/Table-CHFmNrme.d.ts +0 -77
  36. package/dist/Table-CX6UwQiD.d.mts +0 -116
  37. package/dist/Table-CX6UwQiD.d.ts +0 -116
  38. package/dist/Table-Chud2XSq.d.mts +0 -99
  39. package/dist/Table-Chud2XSq.d.ts +0 -99
  40. package/dist/Table-D5QRe_j3.d.mts +0 -121
  41. package/dist/Table-D5QRe_j3.d.ts +0 -121
  42. package/dist/Table-DAgFGahx.d.mts +0 -39
  43. package/dist/Table-DAgFGahx.d.ts +0 -39
  44. package/dist/Table-DWniK7At.d.mts +0 -87
  45. package/dist/Table-DWniK7At.d.ts +0 -87
  46. package/dist/Table-PyFlnUDu.d.mts +0 -47
  47. package/dist/Table-PyFlnUDu.d.ts +0 -47
  48. package/dist/Table-wqyg13Y9.d.mts +0 -77
  49. package/dist/Table-wqyg13Y9.d.ts +0 -77
  50. package/dist/Tag-l7I5oeyk.d.mts +0 -13
  51. package/dist/Tag-l7I5oeyk.d.ts +0 -13
  52. package/dist/atom/Table/LuminaPagination.d.mts +0 -7
  53. package/dist/atom/Table/LuminaPagination.d.ts +0 -7
  54. package/dist/atom/Table/LuminaPagination.js +0 -153
  55. package/dist/atom/Table/LuminaPagination.mjs +0 -9
  56. package/dist/atom/Table/TableAccordion.d.mts +0 -9
  57. package/dist/atom/Table/TableAccordion.d.ts +0 -9
  58. package/dist/atom/Table/TableAccordion.js +0 -91
  59. package/dist/atom/Table/TableAccordion.mjs +0 -10
  60. package/dist/atom/Table/TableColumnHeader.d.mts +0 -7
  61. package/dist/atom/Table/TableColumnHeader.d.ts +0 -7
  62. package/dist/atom/Table/TableColumnHeader.js +0 -151
  63. package/dist/atom/Table/TableColumnHeader.mjs +0 -10
  64. package/dist/atom/Table/TableToolbar.d.mts +0 -9
  65. package/dist/atom/Table/TableToolbar.d.ts +0 -9
  66. package/dist/atom/Table/TableToolbar.js +0 -114
  67. package/dist/atom/Table/TableToolbar.mjs +0 -10
  68. package/dist/atom/Table/__tests__/Table.test.d.mts +0 -2
  69. package/dist/atom/Table/__tests__/Table.test.d.ts +0 -2
  70. package/dist/atom/Table/__tests__/Table.test.js +0 -61133
  71. package/dist/atom/Table/__tests__/Table.test.mjs +0 -59522
  72. package/dist/atom/TableAccordion/index.d.mts +0 -17
  73. package/dist/atom/TableAccordion/index.d.ts +0 -17
  74. package/dist/atom/TableAccordion/index.js +0 -91
  75. package/dist/atom/TableAccordion/index.mjs +0 -9
  76. package/dist/atom/TableToolbar/index.d.mts +0 -23
  77. package/dist/atom/TableToolbar/index.d.ts +0 -23
  78. package/dist/atom/TableToolbar/index.js +0 -114
  79. package/dist/atom/TableToolbar/index.mjs +0 -9
  80. package/dist/chunk-2PIFDGVK.mjs +0 -420
  81. package/dist/chunk-35KDS27M.mjs +0 -618
  82. package/dist/chunk-3S4X3YO2.mjs +0 -64
  83. package/dist/chunk-3XUHGVYA.mjs +0 -77
  84. package/dist/chunk-5HF6Y37C.mjs +0 -642
  85. package/dist/chunk-5OGQ4YIR.mjs +0 -238
  86. package/dist/chunk-6FCSXN7R.mjs +0 -388
  87. package/dist/chunk-7W72LPSU.mjs +0 -66
  88. package/dist/chunk-A66QDQHK.mjs +0 -627
  89. package/dist/chunk-ABLIL47F.mjs +0 -618
  90. package/dist/chunk-AEPDEUGY.mjs +0 -627
  91. package/dist/chunk-AFLEGUF3.mjs +0 -232
  92. package/dist/chunk-APCEITHQ.mjs +0 -232
  93. package/dist/chunk-AVQBFGBT.mjs +0 -141
  94. package/dist/chunk-B5BOBELW.mjs +0 -213
  95. package/dist/chunk-BQ4PVLJ4.mjs +0 -262
  96. package/dist/chunk-DBNLBCQK.mjs +0 -64
  97. package/dist/chunk-DLLT6V65.mjs +0 -141
  98. package/dist/chunk-DOQQRYTS.mjs +0 -73
  99. package/dist/chunk-DSVR2DVF.mjs +0 -660
  100. package/dist/chunk-DXUPULDI.mjs +0 -424
  101. package/dist/chunk-E465D6OH.mjs +0 -644
  102. package/dist/chunk-E4FCLHYA.mjs +0 -678
  103. package/dist/chunk-ENQN5BAN.mjs +0 -225
  104. package/dist/chunk-F6VMSH4N.mjs +0 -79
  105. package/dist/chunk-FKGGN3FA.mjs +0 -412
  106. package/dist/chunk-GFTO2N3Q.mjs +0 -432
  107. package/dist/chunk-GM6H6RPJ.mjs +0 -232
  108. package/dist/chunk-HF3VJBMY.mjs +0 -244
  109. package/dist/chunk-HISCHZ5H.mjs +0 -77
  110. package/dist/chunk-HWQBE6PT.mjs +0 -99
  111. package/dist/chunk-HXM657YW.mjs +0 -115
  112. package/dist/chunk-I5VHKSQR.mjs +0 -64
  113. package/dist/chunk-ICSZZNTY.mjs +0 -384
  114. package/dist/chunk-IZGLD7U3.mjs +0 -667
  115. package/dist/chunk-J7X2PZG6.mjs +0 -232
  116. package/dist/chunk-JUXBLRMQ.mjs +0 -50
  117. package/dist/chunk-JXFSGADI.mjs +0 -678
  118. package/dist/chunk-KGKRSR6D.mjs +0 -388
  119. package/dist/chunk-KQKNFGWZ.mjs +0 -388
  120. package/dist/chunk-LCH4DXJY.mjs +0 -92
  121. package/dist/chunk-LCXU3K57.mjs +0 -232
  122. package/dist/chunk-LRN4XOIR.mjs +0 -71
  123. package/dist/chunk-LROMXY35.mjs +0 -116
  124. package/dist/chunk-LUNPHYAR.mjs +0 -681
  125. package/dist/chunk-LVOTEPLC.mjs +0 -64
  126. package/dist/chunk-M2ZM3X5Y.mjs +0 -56
  127. package/dist/chunk-M4MIYHAV.mjs +0 -43
  128. package/dist/chunk-M7F7DOC4.mjs +0 -41
  129. package/dist/chunk-MHWFVML4.mjs +0 -115
  130. package/dist/chunk-MPTVYTYS.mjs +0 -0
  131. package/dist/chunk-MQFW3LZR.mjs +0 -111
  132. package/dist/chunk-N355RJGH.mjs +0 -141
  133. package/dist/chunk-N3YFQDW7.mjs +0 -77
  134. package/dist/chunk-NGCBOOIE.mjs +0 -225
  135. package/dist/chunk-NWQQYJSP.mjs +0 -688
  136. package/dist/chunk-NYQV556V.mjs +0 -667
  137. package/dist/chunk-O5C3355V.mjs +0 -246
  138. package/dist/chunk-OCP43S7U.mjs +0 -241
  139. package/dist/chunk-OHLFRULE.mjs +0 -432
  140. package/dist/chunk-PLO46EKV.mjs +0 -65
  141. package/dist/chunk-PSBEYGD4.mjs +0 -618
  142. package/dist/chunk-PWIBJI6Z.mjs +0 -115
  143. package/dist/chunk-Q5KPXEH5.mjs +0 -223
  144. package/dist/chunk-QC34HHAY.mjs +0 -57
  145. package/dist/chunk-QVWV36BK.mjs +0 -73
  146. package/dist/chunk-QWK3MYDM.mjs +0 -64
  147. package/dist/chunk-RE44YAMD.mjs +0 -47
  148. package/dist/chunk-RH6DAYBU.mjs +0 -369
  149. package/dist/chunk-RSSEJENT.mjs +0 -269
  150. package/dist/chunk-SJBS5QCJ.mjs +0 -225
  151. package/dist/chunk-SWRFCTJW.mjs +0 -77
  152. package/dist/chunk-T4XNCAIB.mjs +0 -231
  153. package/dist/chunk-TCX5IFQ4.mjs +0 -627
  154. package/dist/chunk-TSAUBT2F.mjs +0 -74
  155. package/dist/chunk-U7Q7ILSE.mjs +0 -690
  156. package/dist/chunk-UHTUJJH7.mjs +0 -112
  157. package/dist/chunk-UOHYCMUS.mjs +0 -53
  158. package/dist/chunk-UQZBL3F7.mjs +0 -0
  159. package/dist/chunk-URGYNKJM.mjs +0 -229
  160. package/dist/chunk-UTMZY37A.mjs +0 -141
  161. package/dist/chunk-UUEPD2FH.mjs +0 -141
  162. package/dist/chunk-VQOUJQIF.mjs +0 -249
  163. package/dist/chunk-VY3QH43W.mjs +0 -6
  164. package/dist/chunk-W2N3AWY6.mjs +0 -80
  165. package/dist/chunk-WUVS6S7N.mjs +0 -119
  166. package/dist/chunk-WZS2K7X3.mjs +0 -688
  167. package/dist/chunk-X76GNSBB.mjs +0 -87
  168. package/dist/chunk-XG7CZXBW.mjs +0 -244
  169. package/dist/chunk-XXKIBYXD.mjs +0 -109
  170. package/dist/chunk-XXTUVMAY.mjs +0 -51
  171. package/dist/chunk-Y3BIY4DW.mjs +0 -618
  172. package/dist/chunk-Y7FP6ZMW.mjs +0 -225
  173. package/dist/chunk-YELLXCMY.mjs +0 -265
  174. package/dist/chunk-YQEEM26W.mjs +0 -232
  175. package/dist/chunk-ZGFE3OPJ.mjs +0 -678
  176. package/dist/chunk-ZMJ3KDDY.mjs +0 -618
  177. package/dist/chunk-ZYPWQ53U.mjs +0 -6
  178. package/dist/dist-U2IPN4FB.mjs +0 -567
  179. package/dist/magic-string.es-XOWQCRDO.mjs +0 -1311
  180. package/dist/types-CA0Wby2L.d.mts +0 -67
  181. package/dist/types-CA0Wby2L.d.ts +0 -67
  182. package/dist/types-CncMmuJM.d.mts +0 -44
  183. package/dist/types-CncMmuJM.d.ts +0 -44
  184. package/dist/types-D4fdeMWQ.d.mts +0 -62
  185. package/dist/types-D4fdeMWQ.d.ts +0 -62
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface TableAccordionProps {
4
- /** Accordion header title */
5
- title: string;
6
- /** Optional subtitle rendered below the title */
7
- subtitle?: string;
8
- /** Start expanded. Defaults to true */
9
- defaultOpen?: boolean;
10
- /** Extra class on the root wrapper */
11
- className?: string;
12
- /** Slot for <Table variant="accordion-child" /> */
13
- children: React.ReactNode;
14
- }
15
- declare function TableAccordion({ title, subtitle, defaultOpen, className, children, }: TableAccordionProps): React.JSX.Element;
16
-
17
- export { TableAccordion, type TableAccordionProps, TableAccordion as default };
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface TableAccordionProps {
4
- /** Accordion header title */
5
- title: string;
6
- /** Optional subtitle rendered below the title */
7
- subtitle?: string;
8
- /** Start expanded. Defaults to true */
9
- defaultOpen?: boolean;
10
- /** Extra class on the root wrapper */
11
- className?: string;
12
- /** Slot for <Table variant="accordion-child" /> */
13
- children: React.ReactNode;
14
- }
15
- declare function TableAccordion({ title, subtitle, defaultOpen, className, children, }: TableAccordionProps): React.JSX.Element;
16
-
17
- export { TableAccordion, type TableAccordionProps, TableAccordion as default };
@@ -1,91 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/atom/TableAccordion/index.tsx
31
- var TableAccordion_exports = {};
32
- __export(TableAccordion_exports, {
33
- TableAccordion: () => TableAccordion,
34
- default: () => TableAccordion_default
35
- });
36
- module.exports = __toCommonJS(TableAccordion_exports);
37
- var React = __toESM(require("react"));
38
- var import_clsx = __toESM(require("clsx"));
39
-
40
- // src/atom/TableAccordion/TableAccordion.module.scss
41
- var TableAccordion_module_default = { "accordionWrapper": "TableAccordion-module__accordionWrapper___7AVVU", "header": "TableAccordion-module__header___tvlp6", "headerText": "TableAccordion-module__headerText___Kq2HA", "title": "TableAccordion-module__title___A-9HK", "subtitle": "TableAccordion-module__subtitle___4BHJL", "chevron": "TableAccordion-module__chevron___KP0um", "chevronOpen": "TableAccordion-module__chevronOpen___3GVQq", "content": "TableAccordion-module__content___XKuR1", "contentOpen": "TableAccordion-module__contentOpen___K2XM6" };
42
-
43
- // src/atom/TableAccordion/index.tsx
44
- var import_jsx_runtime = require("react/jsx-runtime");
45
- function TableAccordion({
46
- title,
47
- subtitle,
48
- defaultOpen = true,
49
- className,
50
- children
51
- }) {
52
- const [open, setOpen] = React.useState(defaultOpen);
53
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_clsx.default)(TableAccordion_module_default.accordionWrapper, className), "data-testid": "lumina-table-accordion", children: [
54
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
55
- "button",
56
- {
57
- className: TableAccordion_module_default.header,
58
- onClick: () => setOpen((prev) => !prev),
59
- "aria-expanded": open,
60
- type: "button",
61
- children: [
62
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: TableAccordion_module_default.headerText, children: [
63
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: TableAccordion_module_default.title, children: title }),
64
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: TableAccordion_module_default.subtitle, children: subtitle })
65
- ] }),
66
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
- "span",
68
- {
69
- className: (0, import_clsx.default)(TableAccordion_module_default.chevron, { [TableAccordion_module_default.chevronOpen]: open }),
70
- "aria-hidden": "true",
71
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 6.75L9 11.25L13.5 6.75", stroke: "#6B7280", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
72
- }
73
- )
74
- ]
75
- }
76
- ),
77
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
78
- "div",
79
- {
80
- className: (0, import_clsx.default)(TableAccordion_module_default.content, { [TableAccordion_module_default.contentOpen]: open }),
81
- "aria-hidden": !open,
82
- children
83
- }
84
- )
85
- ] });
86
- }
87
- var TableAccordion_default = TableAccordion;
88
- // Annotate the CommonJS export names for ESM import in node:
89
- 0 && (module.exports = {
90
- TableAccordion
91
- });
@@ -1,9 +0,0 @@
1
- import {
2
- TableAccordion,
3
- TableAccordion_default
4
- } from "../../chunk-QC34HHAY.mjs";
5
- import "../../chunk-FWCSY2DS.mjs";
6
- export {
7
- TableAccordion,
8
- TableAccordion_default as default
9
- };
@@ -1,23 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface TableToolbarProps {
4
- /** Placeholder for the search input */
5
- searchPlaceholder?: string;
6
- /** Called when search value changes */
7
- onSearch?: (value: string) => void;
8
- /** Label for the Edit Columns button */
9
- editColumnsLabel?: string;
10
- /** Called when Edit Columns is clicked */
11
- onEditColumns?: () => void;
12
- /** Label for the Add Filter button */
13
- addFilterLabel?: string;
14
- /** Called when Add Filter is clicked */
15
- onAddFilter?: () => void;
16
- /** Extra class on the root wrapper */
17
- className?: string;
18
- /** Slot for <Table variant="toolbar-child" /> */
19
- children: React.ReactNode;
20
- }
21
- declare function TableToolbar({ searchPlaceholder, onSearch, editColumnsLabel, onEditColumns, addFilterLabel, onAddFilter, className, children, }: TableToolbarProps): React.JSX.Element;
22
-
23
- export { TableToolbar, type TableToolbarProps, TableToolbar as default };
@@ -1,23 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface TableToolbarProps {
4
- /** Placeholder for the search input */
5
- searchPlaceholder?: string;
6
- /** Called when search value changes */
7
- onSearch?: (value: string) => void;
8
- /** Label for the Edit Columns button */
9
- editColumnsLabel?: string;
10
- /** Called when Edit Columns is clicked */
11
- onEditColumns?: () => void;
12
- /** Label for the Add Filter button */
13
- addFilterLabel?: string;
14
- /** Called when Add Filter is clicked */
15
- onAddFilter?: () => void;
16
- /** Extra class on the root wrapper */
17
- className?: string;
18
- /** Slot for <Table variant="toolbar-child" /> */
19
- children: React.ReactNode;
20
- }
21
- declare function TableToolbar({ searchPlaceholder, onSearch, editColumnsLabel, onEditColumns, addFilterLabel, onAddFilter, className, children, }: TableToolbarProps): React.JSX.Element;
22
-
23
- export { TableToolbar, type TableToolbarProps, TableToolbar as default };
@@ -1,114 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/atom/TableToolbar/index.tsx
31
- var TableToolbar_exports = {};
32
- __export(TableToolbar_exports, {
33
- TableToolbar: () => TableToolbar,
34
- default: () => TableToolbar_default
35
- });
36
- module.exports = __toCommonJS(TableToolbar_exports);
37
- var React = __toESM(require("react"));
38
- var import_clsx = __toESM(require("clsx"));
39
-
40
- // src/atom/TableToolbar/TableToolbar.module.scss
41
- var TableToolbar_module_default = { "toolbarWrapper": "TableToolbar-module__toolbarWrapper___gMA4G", "topRow": "TableToolbar-module__topRow___fbhSu", "searchInputWrapper": "TableToolbar-module__searchInputWrapper___ymI3E", "searchIcon": "TableToolbar-module__searchIcon___b6Czq", "searchInput": "TableToolbar-module__searchInput___EJDfa", "editColumnsBtn": "TableToolbar-module__editColumnsBtn___ed--8", "filterRow": "TableToolbar-module__filterRow___-oQV7", "addFilterBtn": "TableToolbar-module__addFilterBtn___-ZJ3M", "tableSlot": "TableToolbar-module__tableSlot___OxBU1" };
42
-
43
- // src/atom/TableToolbar/index.tsx
44
- var import_jsx_runtime = require("react/jsx-runtime");
45
- function TableToolbar({
46
- searchPlaceholder = "Search...",
47
- onSearch,
48
- editColumnsLabel = "Edit Columns",
49
- onEditColumns,
50
- addFilterLabel = "+ Add filter",
51
- onAddFilter,
52
- className,
53
- children
54
- }) {
55
- const [searchValue, setSearchValue] = React.useState("");
56
- const handleSearchChange = (e) => {
57
- setSearchValue(e.target.value);
58
- onSearch == null ? void 0 : onSearch(e.target.value);
59
- };
60
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_clsx.default)(TableToolbar_module_default.toolbarWrapper, className), "data-testid": "lumina-table-toolbar", children: [
61
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: TableToolbar_module_default.topRow, children: [
62
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: TableToolbar_module_default.searchInputWrapper, children: [
63
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: TableToolbar_module_default.searchIcon, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
64
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "7", cy: "7", r: "4.5", stroke: "#9CA3AF", strokeWidth: "1.5" }),
65
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M10.5 10.5L13.5 13.5", stroke: "#9CA3AF", strokeWidth: "1.5", strokeLinecap: "round" })
66
- ] }) }),
67
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
68
- "input",
69
- {
70
- className: TableToolbar_module_default.searchInput,
71
- type: "text",
72
- placeholder: searchPlaceholder,
73
- value: searchValue,
74
- onChange: handleSearchChange,
75
- "aria-label": "Search"
76
- }
77
- )
78
- ] }),
79
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
80
- "button",
81
- {
82
- className: TableToolbar_module_default.editColumnsBtn,
83
- onClick: onEditColumns,
84
- type: "button",
85
- "data-testid": "edit-columns-btn",
86
- children: [
87
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
88
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "2", y: "3", width: "3", height: "10", rx: "1", stroke: "#374151", strokeWidth: "1.25" }),
89
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "6.5", y: "3", width: "3", height: "10", rx: "1", stroke: "#374151", strokeWidth: "1.25" }),
90
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "11", y: "3", width: "3", height: "10", rx: "1", stroke: "#374151", strokeWidth: "1.25" })
91
- ] }),
92
- editColumnsLabel
93
- ]
94
- }
95
- )
96
- ] }),
97
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: TableToolbar_module_default.filterRow, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
98
- "button",
99
- {
100
- className: TableToolbar_module_default.addFilterBtn,
101
- onClick: onAddFilter,
102
- type: "button",
103
- "data-testid": "add-filter-btn",
104
- children: addFilterLabel
105
- }
106
- ) }),
107
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: TableToolbar_module_default.tableSlot, children })
108
- ] });
109
- }
110
- var TableToolbar_default = TableToolbar;
111
- // Annotate the CommonJS export names for ESM import in node:
112
- 0 && (module.exports = {
113
- TableToolbar
114
- });
@@ -1,9 +0,0 @@
1
- import {
2
- TableToolbar,
3
- TableToolbar_default
4
- } from "../../chunk-W2N3AWY6.mjs";
5
- import "../../chunk-FWCSY2DS.mjs";
6
- export {
7
- TableToolbar,
8
- TableToolbar_default as default
9
- };