@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,77 +0,0 @@
1
- import * as React from 'react';
2
- import { TableProps as TableProps$1, TablePaginationConfig } from 'antd';
3
-
4
- type SortOrder = "ascend" | "descend" | undefined;
5
- interface TableColumnHeaderProps {
6
- /** Column label text */
7
- label: string;
8
- /** Show sort icon and enable sort cycling. Defaults to false. */
9
- sortable?: boolean;
10
- /**
11
- * Current sort direction.
12
- * - `undefined` → unsorted; shows ↑↓ icon when sortable
13
- * - `"ascend"` → shows ↑ icon
14
- * - `"descend"` → shows ↓ icon
15
- */
16
- sortOrder?: SortOrder;
17
- /**
18
- * Called when the user clicks the sort area.
19
- * Cycles: undefined → ascend → descend → undefined
20
- */
21
- onSortChange?: (order: SortOrder) => void;
22
- /**
23
- * Number of active filters applied to this column.
24
- * > 0 turns the filter icon red and shows a count badge.
25
- */
26
- filterCount?: number;
27
- /**
28
- * Filter dropdown content supplied by the consumer.
29
- * Providing this prop renders the filter icon button.
30
- * Clicking the icon toggles visibility of this content.
31
- */
32
- children?: React.ReactNode;
33
- }
34
- interface TableProps<RecordType = any> extends Omit<TableProps$1<RecordType>, "size" | "bordered" | "pagination"> {
35
- /**
36
- * Lumina UI table variant.
37
- * - `default` – standalone table card with rounded border
38
- * - `hover` – row highlight on mouse-over
39
- * - `selectable` – use with `rowSelection` for checkbox rows
40
- * - `accordion-child` – strips outer card chrome; place inside your own accordion wrapper
41
- * - `toolbar-child` – strips outer card chrome; place inside your own toolbar/container wrapper
42
- */
43
- variant?: "default" | "hover" | "selectable" | "accordion-child" | "toolbar-child";
44
- /**
45
- * Table size. Defaults to 'middle'.
46
- */
47
- size?: "small" | "middle" | "large";
48
- /**
49
- * Extra class applied on the outermost wrapper div.
50
- */
51
- className?: string;
52
- /**
53
- * AntD pagination config. Pass `false` to hide pagination.
54
- */
55
- pagination?: TablePaginationConfig | boolean;
56
- /**
57
- * Analytics metadata forwarded to the consuming app's tracking layer.
58
- */
59
- analytics?: Record<string, unknown>;
60
- }
61
-
62
- /**
63
- * Lumina Table component.
64
- *
65
- * Variants:
66
- * - `default` – standalone table card with rounded border
67
- * - `hover` – row highlight on mouse-over
68
- * - `selectable` – use with `rowSelection` for checkbox rows
69
- * - `accordion-child` – strips outer card chrome; place inside your own accordion wrapper
70
- * - `toolbar-child` – strips outer card chrome; place inside your own toolbar/container wrapper
71
- */
72
- declare function Table<RecordType extends object = any>(props: TableProps<RecordType>): React.JSX.Element;
73
- declare namespace Table {
74
- var displayName: string;
75
- }
76
-
77
- export { type SortOrder as S, type TableColumnHeaderProps as T, Table as a, type TableProps as b };
@@ -1,13 +0,0 @@
1
- import * as React$1 from 'react';
2
-
3
- interface TagProps {
4
- type?: "success" | "warning" | "blue" | "processing" | "failed";
5
- className?: string;
6
- title?: string;
7
- icon?: React.ReactElement;
8
- size?: string;
9
- }
10
-
11
- declare const Tag: React$1.FC<TagProps>;
12
-
13
- export { type TagProps as T, Tag as a };
@@ -1,13 +0,0 @@
1
- import * as React$1 from 'react';
2
-
3
- interface TagProps {
4
- type?: "success" | "warning" | "blue" | "processing" | "failed";
5
- className?: string;
6
- title?: string;
7
- icon?: React.ReactElement;
8
- size?: string;
9
- }
10
-
11
- declare const Tag: React$1.FC<TagProps>;
12
-
13
- export { type TagProps as T, Tag as a };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { L as LuminaPaginationProps } from '../../types-CncMmuJM.mjs';
3
- import 'antd';
4
-
5
- declare function LuminaPagination({ total, page, pageSize, pageSizeOptions, onChange, }: LuminaPaginationProps): React.JSX.Element;
6
-
7
- export { LuminaPagination, LuminaPagination as default };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { L as LuminaPaginationProps } from '../../types-CncMmuJM.js';
3
- import 'antd';
4
-
5
- declare function LuminaPagination({ total, page, pageSize, pageSizeOptions, onChange, }: LuminaPaginationProps): React.JSX.Element;
6
-
7
- export { LuminaPagination, LuminaPagination as default };
@@ -1,153 +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/Table/LuminaPagination.tsx
31
- var LuminaPagination_exports = {};
32
- __export(LuminaPagination_exports, {
33
- LuminaPagination: () => LuminaPagination,
34
- default: () => LuminaPagination_default
35
- });
36
- module.exports = __toCommonJS(LuminaPagination_exports);
37
- var import_clsx = __toESM(require("clsx"));
38
-
39
- // src/atom/Table/LuminaPagination.module.scss
40
- var LuminaPagination_module_default = { "paginationBar": "LuminaPagination-module__paginationBar___RD-LQ", "rowsPerPage": "LuminaPagination-module__rowsPerPage___wziAf", "rowsLabel": "LuminaPagination-module__rowsLabel___jmJoT", "pageSizeSelectWrapper": "LuminaPagination-module__pageSizeSelectWrapper___ZvJtE", "pageSizeSelect": "LuminaPagination-module__pageSizeSelect___LH1Fq", "selectChevron": "LuminaPagination-module__selectChevron___-IHgm", "itemRange": "LuminaPagination-module__itemRange___O04k7", "pageButtons": "LuminaPagination-module__pageButtons___0S2om", "pageBtn": "LuminaPagination-module__pageBtn___zJcg-", "activePage": "LuminaPagination-module__activePage___HCrmx", "ellipsis": "LuminaPagination-module__ellipsis___AmnuL" };
41
-
42
- // src/atom/Table/LuminaPagination.tsx
43
- var import_jsx_runtime = require("react/jsx-runtime");
44
- var DEFAULT_PAGE_SIZE_OPTIONS = [10, 25, 50];
45
- function getPageNumbers(page, totalPages) {
46
- if (totalPages <= 7) {
47
- return Array.from({ length: totalPages }, (_, i) => i + 1);
48
- }
49
- const pages = [1];
50
- if (page > 3) {
51
- pages.push("ellipsis-start");
52
- }
53
- const start = Math.max(2, page - 1);
54
- const end = Math.min(totalPages - 1, page + 1);
55
- for (let i = start; i <= end; i++) {
56
- pages.push(i);
57
- }
58
- if (page < totalPages - 2) {
59
- pages.push("ellipsis-end");
60
- }
61
- pages.push(totalPages);
62
- return pages;
63
- }
64
- function LuminaPagination({
65
- total,
66
- page,
67
- pageSize,
68
- pageSizeOptions = DEFAULT_PAGE_SIZE_OPTIONS,
69
- onChange
70
- }) {
71
- const totalPages = Math.max(1, Math.ceil(total / pageSize));
72
- const startItem = (page - 1) * pageSize + 1;
73
- const endItem = Math.min(page * pageSize, total);
74
- const pageNumbers = getPageNumbers(page, totalPages);
75
- const handlePageSizeChange = (e) => {
76
- const newPageSize = Number(e.target.value);
77
- onChange(1, newPageSize);
78
- };
79
- const handlePageClick = (p) => {
80
- if (p !== page && p >= 1 && p <= totalPages) {
81
- onChange(p, pageSize);
82
- }
83
- };
84
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: LuminaPagination_module_default.paginationBar, "data-testid": "lumina-pagination", children: [
85
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: LuminaPagination_module_default.rowsPerPage, children: [
86
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: LuminaPagination_module_default.rowsLabel, children: "Rows per page:" }),
87
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: LuminaPagination_module_default.pageSizeSelectWrapper, children: [
88
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
- "select",
90
- {
91
- className: LuminaPagination_module_default.pageSizeSelect,
92
- value: pageSize,
93
- onChange: handlePageSizeChange,
94
- "aria-label": "Rows per page",
95
- children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: size, children: size }, size))
96
- }
97
- ),
98
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: LuminaPagination_module_default.selectChevron, "aria-hidden": "true", children: "\u25BE" })
99
- ] })
100
- ] }),
101
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: LuminaPagination_module_default.itemRange, "aria-live": "polite", children: [
102
- startItem,
103
- "\u2013",
104
- endItem,
105
- " of ",
106
- total,
107
- " items"
108
- ] }),
109
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: LuminaPagination_module_default.pageButtons, role: "navigation", "aria-label": "Pagination", children: [
110
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
111
- "button",
112
- {
113
- className: LuminaPagination_module_default.pageBtn,
114
- onClick: () => handlePageClick(page - 1),
115
- disabled: page === 1,
116
- "aria-label": "Previous page",
117
- children: "\u2039"
118
- }
119
- ),
120
- pageNumbers.map((p, idx) => {
121
- if (p === "ellipsis-start" || p === "ellipsis-end") {
122
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: LuminaPagination_module_default.ellipsis, "aria-hidden": "true", children: "\u2026" }, `ellipsis-${idx}`);
123
- }
124
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
125
- "button",
126
- {
127
- className: (0, import_clsx.default)(LuminaPagination_module_default.pageBtn, { [LuminaPagination_module_default.activePage]: p === page }),
128
- onClick: () => handlePageClick(p),
129
- "aria-label": `Page ${p}`,
130
- "aria-current": p === page ? "page" : void 0,
131
- children: p
132
- },
133
- p
134
- );
135
- }),
136
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
137
- "button",
138
- {
139
- className: LuminaPagination_module_default.pageBtn,
140
- onClick: () => handlePageClick(page + 1),
141
- disabled: page === totalPages,
142
- "aria-label": "Next page",
143
- children: "\u203A"
144
- }
145
- )
146
- ] })
147
- ] });
148
- }
149
- var LuminaPagination_default = LuminaPagination;
150
- // Annotate the CommonJS export names for ESM import in node:
151
- 0 && (module.exports = {
152
- LuminaPagination
153
- });
@@ -1,9 +0,0 @@
1
- import {
2
- LuminaPagination,
3
- LuminaPagination_default
4
- } from "../../chunk-WUVS6S7N.mjs";
5
- import "../../chunk-FWCSY2DS.mjs";
6
- export {
7
- LuminaPagination,
8
- LuminaPagination_default as default
9
- };
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { T as TableAccordionProps } from '../../types-CA0Wby2L.mjs';
3
- import 'antd';
4
-
5
- declare const TableAccordion: React.FC<TableAccordionProps & {
6
- children: React.ReactNode;
7
- }>;
8
-
9
- export { TableAccordion, TableAccordion as default };
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { T as TableAccordionProps } from '../../types-CA0Wby2L.js';
3
- import 'antd';
4
-
5
- declare const TableAccordion: React.FC<TableAccordionProps & {
6
- children: React.ReactNode;
7
- }>;
8
-
9
- export { TableAccordion, 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/Table/TableAccordion.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/Table/Table.module.scss
41
- var Table_module_default = { "tableWrapper": "Table-module__tableWrapper___3cqiD", "childVariant": "Table-module__childVariant___z8tqO", "table": "Table-module__table___5d7g0", "showHoverEffect": "Table-module__showHoverEffect___IyKyO", "accordionWrapper": "Table-module__accordionWrapper___z-G2o", "accordionHeader": "Table-module__accordionHeader___4U0V1", "accordionHeaderText": "Table-module__accordionHeaderText___EkVJ6", "accordionTitle": "Table-module__accordionTitle___slxlB", "accordionSubtitle": "Table-module__accordionSubtitle___3SHXt", "accordionChevron": "Table-module__accordionChevron___VuP4t", "accordionChevronOpen": "Table-module__accordionChevronOpen___-IBPL", "accordionContent": "Table-module__accordionContent___yRE5i", "accordionContentOpen": "Table-module__accordionContentOpen___IYOrw", "toolbarWrapper": "Table-module__toolbarWrapper___5Lydt", "toolbarTopRow": "Table-module__toolbarTopRow___-uHIo", "toolbarSearchInputWrapper": "Table-module__toolbarSearchInputWrapper___fhdis", "toolbarSearchIcon": "Table-module__toolbarSearchIcon___gQO6D", "toolbarSearchInput": "Table-module__toolbarSearchInput___9IqZ4", "toolbarEditColumnsBtn": "Table-module__toolbarEditColumnsBtn___MQlCZ", "toolbarFilterRow": "Table-module__toolbarFilterRow___Ewi4o", "toolbarAddFilterBtn": "Table-module__toolbarAddFilterBtn___QKMiQ", "toolbarTableSlot": "Table-module__toolbarTableSlot___DMBBH" };
42
-
43
- // src/atom/Table/TableAccordion.tsx
44
- var import_jsx_runtime = require("react/jsx-runtime");
45
- var 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)(Table_module_default.accordionWrapper, className), "data-testid": "lumina-table-accordion", children: [
54
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
55
- "button",
56
- {
57
- className: Table_module_default.accordionHeader,
58
- onClick: () => setOpen((prev) => !prev),
59
- "aria-expanded": open,
60
- type: "button",
61
- children: [
62
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: Table_module_default.accordionHeaderText, children: [
63
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: Table_module_default.accordionTitle, children: title }),
64
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: Table_module_default.accordionSubtitle, children: subtitle })
65
- ] }),
66
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
- "span",
68
- {
69
- className: (0, import_clsx.default)(Table_module_default.accordionChevron, { [Table_module_default.accordionChevronOpen]: 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)(Table_module_default.accordionContent, { [Table_module_default.accordionContentOpen]: 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,10 +0,0 @@
1
- import {
2
- TableAccordion,
3
- TableAccordion_default
4
- } from "../../chunk-M2ZM3X5Y.mjs";
5
- import "../../chunk-ZYPWQ53U.mjs";
6
- import "../../chunk-HWQBE6PT.mjs";
7
- export {
8
- TableAccordion,
9
- TableAccordion_default as default
10
- };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { T as TableColumnHeaderProps } from '../../types-D4fdeMWQ.mjs';
3
- import 'antd';
4
-
5
- declare const TableColumnHeader: React.FC<TableColumnHeaderProps>;
6
-
7
- export { TableColumnHeader, TableColumnHeader as default };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { T as TableColumnHeaderProps } from '../../types-D4fdeMWQ.js';
3
- import 'antd';
4
-
5
- declare const TableColumnHeader: React.FC<TableColumnHeaderProps>;
6
-
7
- export { TableColumnHeader, TableColumnHeader as default };
@@ -1,151 +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/Table/TableColumnHeader.tsx
31
- var TableColumnHeader_exports = {};
32
- __export(TableColumnHeader_exports, {
33
- TableColumnHeader: () => TableColumnHeader,
34
- default: () => TableColumnHeader_default
35
- });
36
- module.exports = __toCommonJS(TableColumnHeader_exports);
37
- var React = __toESM(require("react"));
38
- var import_clsx = __toESM(require("clsx"));
39
-
40
- // src/atom/Table/Table.module.scss
41
- var Table_module_default = { "tableWrapper": "Table-module__tableWrapper___3cqiD", "childVariant": "Table-module__childVariant___z8tqO", "table": "Table-module__table___5d7g0", "showHoverEffect": "Table-module__showHoverEffect___IyKyO", "columnHeader": "Table-module__columnHeader___Unr6d", "columnHeaderSortArea": "Table-module__columnHeaderSortArea___jrIYo", "columnHeaderLabel": "Table-module__columnHeaderLabel___A-mRu", "columnHeaderSortIcon": "Table-module__columnHeaderSortIcon___mWVZN", "columnHeaderSortIconActive": "Table-module__columnHeaderSortIconActive___wHAqC", "columnHeaderFilterWrapper": "Table-module__columnHeaderFilterWrapper___DnSve", "columnHeaderFilterBtn": "Table-module__columnHeaderFilterBtn___NR7DY", "columnHeaderFilterBtnActive": "Table-module__columnHeaderFilterBtnActive___JdO11", "columnHeaderFilterBadge": "Table-module__columnHeaderFilterBadge___-Q2T2", "columnHeaderFilterDropdown": "Table-module__columnHeaderFilterDropdown___M-fD4" };
42
-
43
- // src/atom/Table/TableColumnHeader.tsx
44
- var import_jsx_runtime = require("react/jsx-runtime");
45
- function nextOrder(current) {
46
- if (current === void 0) return "ascend";
47
- if (current === "ascend") return "descend";
48
- return void 0;
49
- }
50
- function SortBothIcon() {
51
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: [
52
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3.5 7.5L6 10L8.5 7.5", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round" }),
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3.5 4.5L6 2L8.5 4.5", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round" })
54
- ] });
55
- }
56
- function SortAscIcon() {
57
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3.5 7.5L6 2L8.5 7.5", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round" }) });
58
- }
59
- function SortDescIcon() {
60
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3.5 4.5L6 10L8.5 4.5", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round" }) });
61
- }
62
- function FilterIcon() {
63
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: "13", height: "11", viewBox: "0 0 13 11", fill: "none", "aria-hidden": "true", children: [
64
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M1 1H12", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" }),
65
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M2.5 4.5H10.5", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" }),
66
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 8H8.5", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" })
67
- ] });
68
- }
69
- var TableColumnHeader = ({
70
- label,
71
- sortable = false,
72
- sortOrder,
73
- onSortChange,
74
- filterCount = 0,
75
- children
76
- }) => {
77
- const [filterOpen, setFilterOpen] = React.useState(false);
78
- const wrapperRef = React.useRef(null);
79
- const hasFilter = children !== void 0;
80
- const filterActive = filterCount > 0;
81
- React.useEffect(() => {
82
- if (!filterOpen) return;
83
- const onOutside = (e) => {
84
- if (wrapperRef.current && !wrapperRef.current.contains(e.target)) {
85
- setFilterOpen(false);
86
- }
87
- };
88
- document.addEventListener("mousedown", onOutside);
89
- return () => document.removeEventListener("mousedown", onOutside);
90
- }, [filterOpen]);
91
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: Table_module_default.columnHeader, ref: wrapperRef, children: [
92
- sortable ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
93
- "button",
94
- {
95
- type: "button",
96
- className: Table_module_default.columnHeaderSortArea,
97
- onClick: () => onSortChange == null ? void 0 : onSortChange(nextOrder(sortOrder)),
98
- "aria-label": `Sort by ${label}`,
99
- children: [
100
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: Table_module_default.columnHeaderLabel, children: label }),
101
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
102
- "span",
103
- {
104
- className: (0, import_clsx.default)(Table_module_default.columnHeaderSortIcon, {
105
- [Table_module_default.columnHeaderSortIconActive]: sortOrder !== void 0
106
- }),
107
- children: [
108
- sortOrder === "ascend" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SortAscIcon, {}),
109
- sortOrder === "descend" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SortDescIcon, {}),
110
- sortOrder === void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SortBothIcon, {})
111
- ]
112
- }
113
- )
114
- ]
115
- }
116
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: Table_module_default.columnHeaderLabel, children: label }),
117
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: Table_module_default.columnHeaderFilterWrapper, children: [
118
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
119
- "button",
120
- {
121
- type: "button",
122
- className: (0, import_clsx.default)(Table_module_default.columnHeaderFilterBtn, {
123
- [Table_module_default.columnHeaderFilterBtnActive]: filterActive
124
- }),
125
- onClick: () => setFilterOpen((v) => !v),
126
- "aria-label": `Filter ${label}`,
127
- "aria-expanded": filterOpen,
128
- "aria-haspopup": "dialog",
129
- children: [
130
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FilterIcon, {}),
131
- filterActive && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: Table_module_default.columnHeaderFilterBadge, children: filterCount })
132
- ]
133
- }
134
- ),
135
- filterOpen && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
136
- "div",
137
- {
138
- className: Table_module_default.columnHeaderFilterDropdown,
139
- role: "dialog",
140
- "aria-label": `${label} filter options`,
141
- children
142
- }
143
- )
144
- ] })
145
- ] });
146
- };
147
- var TableColumnHeader_default = TableColumnHeader;
148
- // Annotate the CommonJS export names for ESM import in node:
149
- 0 && (module.exports = {
150
- TableColumnHeader
151
- });
@@ -1,10 +0,0 @@
1
- import {
2
- TableColumnHeader,
3
- TableColumnHeader_default
4
- } from "../../chunk-LROMXY35.mjs";
5
- import "../../chunk-VY3QH43W.mjs";
6
- import "../../chunk-HWQBE6PT.mjs";
7
- export {
8
- TableColumnHeader,
9
- TableColumnHeader_default as default
10
- };
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { a as TableToolbarProps } from '../../types-CA0Wby2L.mjs';
3
- import 'antd';
4
-
5
- declare const TableToolbar: React.FC<TableToolbarProps & {
6
- children: React.ReactNode;
7
- }>;
8
-
9
- export { TableToolbar, TableToolbar as default };
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { a as TableToolbarProps } from '../../types-CA0Wby2L.js';
3
- import 'antd';
4
-
5
- declare const TableToolbar: React.FC<TableToolbarProps & {
6
- children: React.ReactNode;
7
- }>;
8
-
9
- export { TableToolbar, TableToolbar as default };