@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.
- package/dist/{AdvancedDateRangePicker-Eh6n4ne0.d.mts → AdvancedDateRangePicker-ozItnkhp.d.mts} +1 -1
- package/dist/{AdvancedDateRangePicker-Eh6n4ne0.d.ts → AdvancedDateRangePicker-ozItnkhp.d.ts} +1 -1
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +1 -1
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +1 -1
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.mts +1 -2
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.ts +1 -2
- package/dist/atom/LoadingSpinner/LoadingSpinner.d.mts +2 -2
- package/dist/atom/LoadingSpinner/LoadingSpinner.d.ts +2 -2
- package/dist/index.d.mts +14 -15
- package/dist/index.d.ts +14 -15
- package/dist/index.mjs +8 -8
- package/dist/styles.css +328 -312
- package/package.json +1 -1
- package/dist/AdvancedDateRangePicker-CN9WN0rH.d.mts +0 -56
- package/dist/AdvancedDateRangePicker-CN9WN0rH.d.ts +0 -56
- package/dist/AdvancedDateRangePicker-CzN1HGsC.d.mts +0 -57
- package/dist/AdvancedDateRangePicker-CzN1HGsC.d.ts +0 -57
- package/dist/AdvancedDateRangePicker-DAPxgRl3.d.mts +0 -54
- package/dist/AdvancedDateRangePicker-DAPxgRl3.d.ts +0 -54
- package/dist/AdvancedDateRangePicker-DW94285G.d.mts +0 -56
- package/dist/AdvancedDateRangePicker-DW94285G.d.ts +0 -56
- package/dist/Avatar-DX2JwvAs.d.mts +0 -17
- package/dist/Avatar-DX2JwvAs.d.ts +0 -17
- package/dist/Table-BA0D3p1m.d.mts +0 -78
- package/dist/Table-BA0D3p1m.d.ts +0 -78
- package/dist/Table-BLZ6c46U.d.mts +0 -77
- package/dist/Table-BLZ6c46U.d.ts +0 -77
- package/dist/Table-BMqYnFi4.d.mts +0 -25
- package/dist/Table-BMqYnFi4.d.ts +0 -25
- package/dist/Table-BRcthrYV.d.mts +0 -98
- package/dist/Table-BRcthrYV.d.ts +0 -98
- package/dist/Table-BWlFCfBG.d.mts +0 -106
- package/dist/Table-BWlFCfBG.d.ts +0 -106
- package/dist/Table-CHFmNrme.d.mts +0 -77
- package/dist/Table-CHFmNrme.d.ts +0 -77
- package/dist/Table-CX6UwQiD.d.mts +0 -116
- package/dist/Table-CX6UwQiD.d.ts +0 -116
- package/dist/Table-Chud2XSq.d.mts +0 -99
- package/dist/Table-Chud2XSq.d.ts +0 -99
- package/dist/Table-D5QRe_j3.d.mts +0 -121
- package/dist/Table-D5QRe_j3.d.ts +0 -121
- package/dist/Table-DAgFGahx.d.mts +0 -39
- package/dist/Table-DAgFGahx.d.ts +0 -39
- package/dist/Table-DWniK7At.d.mts +0 -87
- package/dist/Table-DWniK7At.d.ts +0 -87
- package/dist/Table-PyFlnUDu.d.mts +0 -47
- package/dist/Table-PyFlnUDu.d.ts +0 -47
- package/dist/Table-wqyg13Y9.d.mts +0 -77
- package/dist/Table-wqyg13Y9.d.ts +0 -77
- package/dist/Tag-l7I5oeyk.d.mts +0 -13
- package/dist/Tag-l7I5oeyk.d.ts +0 -13
- package/dist/atom/Table/LuminaPagination.d.mts +0 -7
- package/dist/atom/Table/LuminaPagination.d.ts +0 -7
- package/dist/atom/Table/LuminaPagination.js +0 -153
- package/dist/atom/Table/LuminaPagination.mjs +0 -9
- package/dist/atom/Table/TableAccordion.d.mts +0 -9
- package/dist/atom/Table/TableAccordion.d.ts +0 -9
- package/dist/atom/Table/TableAccordion.js +0 -91
- package/dist/atom/Table/TableAccordion.mjs +0 -10
- package/dist/atom/Table/TableColumnHeader.d.mts +0 -7
- package/dist/atom/Table/TableColumnHeader.d.ts +0 -7
- package/dist/atom/Table/TableColumnHeader.js +0 -151
- package/dist/atom/Table/TableColumnHeader.mjs +0 -10
- package/dist/atom/Table/TableToolbar.d.mts +0 -9
- package/dist/atom/Table/TableToolbar.d.ts +0 -9
- package/dist/atom/Table/TableToolbar.js +0 -114
- package/dist/atom/Table/TableToolbar.mjs +0 -10
- package/dist/atom/Table/__tests__/Table.test.d.mts +0 -2
- package/dist/atom/Table/__tests__/Table.test.d.ts +0 -2
- package/dist/atom/Table/__tests__/Table.test.js +0 -61133
- package/dist/atom/Table/__tests__/Table.test.mjs +0 -59522
- package/dist/atom/TableAccordion/index.d.mts +0 -17
- package/dist/atom/TableAccordion/index.d.ts +0 -17
- package/dist/atom/TableAccordion/index.js +0 -91
- package/dist/atom/TableAccordion/index.mjs +0 -9
- package/dist/atom/TableToolbar/index.d.mts +0 -23
- package/dist/atom/TableToolbar/index.d.ts +0 -23
- package/dist/atom/TableToolbar/index.js +0 -114
- package/dist/atom/TableToolbar/index.mjs +0 -9
- package/dist/chunk-2PIFDGVK.mjs +0 -420
- package/dist/chunk-35KDS27M.mjs +0 -618
- package/dist/chunk-3S4X3YO2.mjs +0 -64
- package/dist/chunk-3XUHGVYA.mjs +0 -77
- package/dist/chunk-5HF6Y37C.mjs +0 -642
- package/dist/chunk-5OGQ4YIR.mjs +0 -238
- package/dist/chunk-6FCSXN7R.mjs +0 -388
- package/dist/chunk-7W72LPSU.mjs +0 -66
- package/dist/chunk-A66QDQHK.mjs +0 -627
- package/dist/chunk-ABLIL47F.mjs +0 -618
- package/dist/chunk-AEPDEUGY.mjs +0 -627
- package/dist/chunk-AFLEGUF3.mjs +0 -232
- package/dist/chunk-APCEITHQ.mjs +0 -232
- package/dist/chunk-AVQBFGBT.mjs +0 -141
- package/dist/chunk-B5BOBELW.mjs +0 -213
- package/dist/chunk-BQ4PVLJ4.mjs +0 -262
- package/dist/chunk-DBNLBCQK.mjs +0 -64
- package/dist/chunk-DLLT6V65.mjs +0 -141
- package/dist/chunk-DOQQRYTS.mjs +0 -73
- package/dist/chunk-DSVR2DVF.mjs +0 -660
- package/dist/chunk-DXUPULDI.mjs +0 -424
- package/dist/chunk-E465D6OH.mjs +0 -644
- package/dist/chunk-E4FCLHYA.mjs +0 -678
- package/dist/chunk-ENQN5BAN.mjs +0 -225
- package/dist/chunk-F6VMSH4N.mjs +0 -79
- package/dist/chunk-FKGGN3FA.mjs +0 -412
- package/dist/chunk-GFTO2N3Q.mjs +0 -432
- package/dist/chunk-GM6H6RPJ.mjs +0 -232
- package/dist/chunk-HF3VJBMY.mjs +0 -244
- package/dist/chunk-HISCHZ5H.mjs +0 -77
- package/dist/chunk-HWQBE6PT.mjs +0 -99
- package/dist/chunk-HXM657YW.mjs +0 -115
- package/dist/chunk-I5VHKSQR.mjs +0 -64
- package/dist/chunk-ICSZZNTY.mjs +0 -384
- package/dist/chunk-IZGLD7U3.mjs +0 -667
- package/dist/chunk-J7X2PZG6.mjs +0 -232
- package/dist/chunk-JUXBLRMQ.mjs +0 -50
- package/dist/chunk-JXFSGADI.mjs +0 -678
- package/dist/chunk-KGKRSR6D.mjs +0 -388
- package/dist/chunk-KQKNFGWZ.mjs +0 -388
- package/dist/chunk-LCH4DXJY.mjs +0 -92
- package/dist/chunk-LCXU3K57.mjs +0 -232
- package/dist/chunk-LRN4XOIR.mjs +0 -71
- package/dist/chunk-LROMXY35.mjs +0 -116
- package/dist/chunk-LUNPHYAR.mjs +0 -681
- package/dist/chunk-LVOTEPLC.mjs +0 -64
- package/dist/chunk-M2ZM3X5Y.mjs +0 -56
- package/dist/chunk-M4MIYHAV.mjs +0 -43
- package/dist/chunk-M7F7DOC4.mjs +0 -41
- package/dist/chunk-MHWFVML4.mjs +0 -115
- package/dist/chunk-MPTVYTYS.mjs +0 -0
- package/dist/chunk-MQFW3LZR.mjs +0 -111
- package/dist/chunk-N355RJGH.mjs +0 -141
- package/dist/chunk-N3YFQDW7.mjs +0 -77
- package/dist/chunk-NGCBOOIE.mjs +0 -225
- package/dist/chunk-NWQQYJSP.mjs +0 -688
- package/dist/chunk-NYQV556V.mjs +0 -667
- package/dist/chunk-O5C3355V.mjs +0 -246
- package/dist/chunk-OCP43S7U.mjs +0 -241
- package/dist/chunk-OHLFRULE.mjs +0 -432
- package/dist/chunk-PLO46EKV.mjs +0 -65
- package/dist/chunk-PSBEYGD4.mjs +0 -618
- package/dist/chunk-PWIBJI6Z.mjs +0 -115
- package/dist/chunk-Q5KPXEH5.mjs +0 -223
- package/dist/chunk-QC34HHAY.mjs +0 -57
- package/dist/chunk-QVWV36BK.mjs +0 -73
- package/dist/chunk-QWK3MYDM.mjs +0 -64
- package/dist/chunk-RE44YAMD.mjs +0 -47
- package/dist/chunk-RH6DAYBU.mjs +0 -369
- package/dist/chunk-RSSEJENT.mjs +0 -269
- package/dist/chunk-SJBS5QCJ.mjs +0 -225
- package/dist/chunk-SWRFCTJW.mjs +0 -77
- package/dist/chunk-T4XNCAIB.mjs +0 -231
- package/dist/chunk-TCX5IFQ4.mjs +0 -627
- package/dist/chunk-TSAUBT2F.mjs +0 -74
- package/dist/chunk-U7Q7ILSE.mjs +0 -690
- package/dist/chunk-UHTUJJH7.mjs +0 -112
- package/dist/chunk-UOHYCMUS.mjs +0 -53
- package/dist/chunk-UQZBL3F7.mjs +0 -0
- package/dist/chunk-URGYNKJM.mjs +0 -229
- package/dist/chunk-UTMZY37A.mjs +0 -141
- package/dist/chunk-UUEPD2FH.mjs +0 -141
- package/dist/chunk-VQOUJQIF.mjs +0 -249
- package/dist/chunk-VY3QH43W.mjs +0 -6
- package/dist/chunk-W2N3AWY6.mjs +0 -80
- package/dist/chunk-WUVS6S7N.mjs +0 -119
- package/dist/chunk-WZS2K7X3.mjs +0 -688
- package/dist/chunk-X76GNSBB.mjs +0 -87
- package/dist/chunk-XG7CZXBW.mjs +0 -244
- package/dist/chunk-XXKIBYXD.mjs +0 -109
- package/dist/chunk-XXTUVMAY.mjs +0 -51
- package/dist/chunk-Y3BIY4DW.mjs +0 -618
- package/dist/chunk-Y7FP6ZMW.mjs +0 -225
- package/dist/chunk-YELLXCMY.mjs +0 -265
- package/dist/chunk-YQEEM26W.mjs +0 -232
- package/dist/chunk-ZGFE3OPJ.mjs +0 -678
- package/dist/chunk-ZMJ3KDDY.mjs +0 -618
- package/dist/chunk-ZYPWQ53U.mjs +0 -6
- package/dist/dist-U2IPN4FB.mjs +0 -567
- package/dist/magic-string.es-XOWQCRDO.mjs +0 -1311
- package/dist/types-CA0Wby2L.d.mts +0 -67
- package/dist/types-CA0Wby2L.d.ts +0 -67
- package/dist/types-CncMmuJM.d.mts +0 -44
- package/dist/types-CncMmuJM.d.ts +0 -44
- package/dist/types-D4fdeMWQ.d.mts +0 -62
- 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,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
|
-
});
|