@itilite/lumina-ui 1.2.1 → 1.2.21

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 (88) hide show
  1. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.mjs +1 -1
  2. package/dist/atom/Switch/Switch.d.mts +1 -1
  3. package/dist/atom/Switch/Switch.d.ts +1 -1
  4. package/dist/atom/Switch/Switch.js +2 -2
  5. package/dist/atom/Switch/Switch.mjs +1 -1
  6. package/dist/{chunk-4JX54OKI.mjs → chunk-IIJUGDEJ.mjs} +20 -29
  7. package/dist/{chunk-QQA7KWAJ.mjs → chunk-LTP5I3GX.mjs} +4 -4
  8. package/dist/chunk-O6PQFAXN.mjs +47 -0
  9. package/dist/index.js +2 -2
  10. package/dist/index.mjs +10 -10
  11. package/dist/styles.css +826 -806
  12. package/package.json +28 -27
  13. package/dist/AdvancedDateRangePicker-D7xn4So6.d.mts +0 -59
  14. package/dist/AdvancedDateRangePicker-D7xn4So6.d.ts +0 -59
  15. package/dist/AdvancedDateRangePicker-D9Sdk4rK.d.mts +0 -64
  16. package/dist/AdvancedDateRangePicker-D9Sdk4rK.d.ts +0 -64
  17. package/dist/AdvancedDateRangePicker-DGg-rucL.d.mts +0 -62
  18. package/dist/AdvancedDateRangePicker-DGg-rucL.d.ts +0 -62
  19. package/dist/AdvancedDateRangePicker-Di3rHxqf.d.mts +0 -64
  20. package/dist/AdvancedDateRangePicker-Di3rHxqf.d.ts +0 -64
  21. package/dist/AdvancedDateRangePicker-Dxug2Mcf.d.mts +0 -60
  22. package/dist/AdvancedDateRangePicker-Dxug2Mcf.d.ts +0 -60
  23. package/dist/AdvancedDateRangePicker-ozItnkhp.d.mts +0 -57
  24. package/dist/AdvancedDateRangePicker-ozItnkhp.d.ts +0 -57
  25. package/dist/Table-BOq-_9Nr.d.mts +0 -121
  26. package/dist/Table-BOq-_9Nr.d.ts +0 -121
  27. package/dist/Table-BxaCiQmh.d.mts +0 -82
  28. package/dist/Table-BxaCiQmh.d.ts +0 -82
  29. package/dist/Table-CnzP9dkc.d.mts +0 -82
  30. package/dist/Table-CnzP9dkc.d.ts +0 -82
  31. package/dist/Table-DNvoh2P8.d.mts +0 -127
  32. package/dist/Table-DNvoh2P8.d.ts +0 -127
  33. package/dist/Table-DSFYzrpU.d.mts +0 -129
  34. package/dist/Table-DSFYzrpU.d.ts +0 -129
  35. package/dist/Table-DmfNNnuD.d.mts +0 -86
  36. package/dist/Table-DmfNNnuD.d.ts +0 -86
  37. package/dist/Table-DoCPt3ri.d.mts +0 -129
  38. package/dist/Table-DoCPt3ri.d.ts +0 -129
  39. package/dist/chunk-27LRL4RO.mjs +0 -428
  40. package/dist/chunk-2IT3XM7C.mjs +0 -473
  41. package/dist/chunk-3HXZIFV6.mjs +0 -438
  42. package/dist/chunk-53O7JM5I.mjs +0 -424
  43. package/dist/chunk-5JXIJTAS.mjs +0 -448
  44. package/dist/chunk-5OUMKJWI.mjs +0 -301
  45. package/dist/chunk-5PMUTA6S.mjs +0 -303
  46. package/dist/chunk-5PQ43JFX.mjs +0 -440
  47. package/dist/chunk-62VAYFZA.mjs +0 -437
  48. package/dist/chunk-6ON32H2N.mjs +0 -431
  49. package/dist/chunk-6RIZXTFP.mjs +0 -290
  50. package/dist/chunk-6XIT27XY.mjs +0 -269
  51. package/dist/chunk-772C454L.mjs +0 -438
  52. package/dist/chunk-7L267Y4P.mjs +0 -429
  53. package/dist/chunk-7WSVCE2C.mjs +0 -269
  54. package/dist/chunk-ANJI6SPV.mjs +0 -283
  55. package/dist/chunk-BFFLWW7N.mjs +0 -250
  56. package/dist/chunk-C5VYFNVC.mjs +0 -441
  57. package/dist/chunk-DL7BZMGE.mjs +0 -295
  58. package/dist/chunk-DXPVJNGY.mjs +0 -284
  59. package/dist/chunk-FTL3PFC2.mjs +0 -438
  60. package/dist/chunk-G4P6XGQX.mjs +0 -278
  61. package/dist/chunk-GGWY2SYX.mjs +0 -452
  62. package/dist/chunk-GZ4P7OL3.mjs +0 -429
  63. package/dist/chunk-I6GLPWHS.mjs +0 -278
  64. package/dist/chunk-IPVJEGDI.mjs +0 -476
  65. package/dist/chunk-J4YYP4IZ.mjs +0 -0
  66. package/dist/chunk-J5JDQ4R6.mjs +0 -278
  67. package/dist/chunk-K2A4TWA3.mjs +0 -430
  68. package/dist/chunk-L3L42SIL.mjs +0 -429
  69. package/dist/chunk-LRNKIRH3.mjs +0 -289
  70. package/dist/chunk-MA23J4WQ.mjs +0 -430
  71. package/dist/chunk-N4DPPZVJ.mjs +0 -269
  72. package/dist/chunk-PQ3B2FEB.mjs +0 -249
  73. package/dist/chunk-QRGHJP7U.mjs +0 -437
  74. package/dist/chunk-QU73KNTT.mjs +0 -452
  75. package/dist/chunk-RC6IGURJ.mjs +0 -428
  76. package/dist/chunk-SKPCOHON.mjs +0 -473
  77. package/dist/chunk-SRKN7WS7.mjs +0 -448
  78. package/dist/chunk-T43CWNOG.mjs +0 -283
  79. package/dist/chunk-TE5EOIIW.mjs +0 -301
  80. package/dist/chunk-TQDZWJZP.mjs +0 -269
  81. package/dist/chunk-UAGSPM3T.mjs +0 -288
  82. package/dist/chunk-UC4NTBDH.mjs +0 -439
  83. package/dist/chunk-UPSQTJJ4.mjs +0 -294
  84. package/dist/chunk-V3CHJHUX.mjs +0 -424
  85. package/dist/chunk-X3NDICAU.mjs +0 -284
  86. package/dist/chunk-XECXKSTC.mjs +0 -453
  87. package/dist/chunk-XIVTXS3Y.mjs +0 -439
  88. package/dist/chunk-ZGV6QMVM.mjs +0 -437
@@ -1,86 +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
- type AntColumnType<RecordType> = NonNullable<TableProps$1<RecordType>["columns"]>[number];
6
- interface LuminaColumnHeaderProps {
7
- /** Clicking cycles: undefined → ascend → descend → undefined */
8
- sortable?: boolean;
9
- /** Provide to make sort controlled. */
10
- sortOrder?: SortOrder;
11
- onSortChange?: (order: SortOrder) => void;
12
- /** If not provided, dynamic default sort icon will render. */
13
- sortIcon?: React.ReactNode;
14
- /** Custom icon for ascending sort. */
15
- sortAscendIcon?: React.ReactNode;
16
- /** Custom icon for descending sort. */
17
- sortDescendIcon?: React.ReactNode;
18
- /** > 0 turns the filter icon red and shows a count badge. */
19
- filterCount?: number;
20
- /** MUST be provided if filterContent is present, otherwise no icon renders. */
21
- filterIcon?: React.ReactNode;
22
- /** Renders a filter icon button; clicking it toggles visibility of this content. */
23
- filterContent?: React.ReactNode;
24
- className?: string;
25
- }
26
- type LuminaColumnType<RecordType = any> = AntColumnType<RecordType> & {
27
- headerProps?: LuminaColumnHeaderProps;
28
- };
29
- type LuminaColumnsType<RecordType = any> = LuminaColumnType<RecordType>[];
30
- interface TableProps<RecordType = any> extends Omit<TableProps$1<RecordType>, "size" | "bordered" | "pagination" | "columns"> {
31
- /** `selectable` — clicking any row toggles its checkbox */
32
- variant?: "default" | "selectable";
33
- isAccordion?: boolean;
34
- isToolbar?: boolean;
35
- size?: "small" | "middle" | "large";
36
- className?: string;
37
- pagination?: TablePaginationConfig | boolean;
38
- /** Add `headerProps` to any column to enable sort/filter icons. */
39
- columns?: LuminaColumnsType<RecordType>;
40
- /** Total items for server-side pagination. */
41
- total?: number;
42
- /** Current page number (1-indexed). */
43
- current?: number;
44
- pageSize?: number;
45
- onPaginationChange?: TablePaginationConfig["onChange"];
46
- emptyState?: React.ReactNode;
47
- hideHeader?: boolean;
48
- loadingIndicator?: React.ReactElement;
49
- /** Extra class applied to header cells (th). */
50
- headerCellClassName?: string;
51
- /** Extra class applied to body cells (td). */
52
- bodyCellClassName?: string;
53
- /** Can be a string or a per-row function. */
54
- rowClassName?: string | ((record: RecordType, index: number) => string);
55
- }
56
-
57
- /**
58
- * Lumina Table component.
59
- *
60
- * Variants:
61
- * - `default` – standard table
62
- * - `selectable` – use with `rowSelection`; clicking any row toggles its checkbox
63
- *
64
- * Use `isAccordion` / `isToolbar` to strip outer chrome when embedded.
65
- * Row hover tint is enabled by default via styles.
66
- *
67
- * Column header icons — add `headerProps` to any column definition:
68
- * ```tsx
69
- * columns={[{
70
- * key: "name", dataIndex: "name", title: "Name",
71
- * headerProps: {
72
- * sortable: true,
73
- * sortOrder: sortOrders.name,
74
- * onSortChange: (order) => setSortOrders(prev => ({ ...prev, name: order })),
75
- * filterCount: activeFilters.name ?? 0,
76
- * filterContent: <MyFilterPanel />,
77
- * },
78
- * }]}
79
- * ```
80
- */
81
- declare function Table<RecordType extends object = any>(props: TableProps<RecordType>): React.JSX.Element;
82
- declare namespace Table {
83
- var displayName: string;
84
- }
85
-
86
- export { type LuminaColumnHeaderProps as L, type SortOrder as S, Table as T, type LuminaColumnType as a, type LuminaColumnsType as b, type TableProps as c };
@@ -1,129 +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
- type AntColumnType<RecordType> = NonNullable<TableProps$1<RecordType>["columns"]>[number];
6
- /**
7
- * Header icon configuration added to any column definition.
8
- * The Table component reads these props and renders sort/filter icons automatically.
9
- */
10
- interface LuminaColumnHeaderProps {
11
- /** Show sort icon. Clicking cycles: undefined (↑↓) → ascend (↑) → descend (↓) → undefined */
12
- sortable?: boolean;
13
- /** Current sort direction. Provide to make sort controlled. */
14
- sortOrder?: SortOrder;
15
- /** Called when the user clicks the sort icon. */
16
- onSortChange?: (order: SortOrder) => void;
17
- /**
18
- * Custom sort icon. This MUST be provided if sortable is true.
19
- * If omitted, no icon will be rendered.
20
- */
21
- sortIcon?: React.ReactNode;
22
- /** > 0 turns the filter icon red and shows a count badge. */
23
- filterCount?: number;
24
- /**
25
- * Custom filter icon. This MUST be provided if filterContent is present.
26
- * If omitted, no icon will be rendered.
27
- */
28
- filterIcon?: React.ReactNode;
29
- /**
30
- * Filter dropdown content from the consumer.
31
- * Providing this prop renders the filter icon button.
32
- * Clicking the icon toggles visibility of this content.
33
- */
34
- filterContent?: React.ReactNode;
35
- /** Optional class name to apply to the header label. */
36
- className?: string;
37
- }
38
- /**
39
- * AntD ColumnType extended with optional `headerProps` for Lumina sort/filter icons.
40
- */
41
- type LuminaColumnType<RecordType = any> = AntColumnType<RecordType> & {
42
- headerProps?: LuminaColumnHeaderProps;
43
- };
44
- type LuminaColumnsType<RecordType = any> = LuminaColumnType<RecordType>[];
45
- interface TableProps<RecordType = any> extends Omit<TableProps$1<RecordType>, "size" | "bordered" | "pagination" | "columns"> {
46
- /**
47
- * Lumina UI table variant.
48
- * - `default` – standard table
49
- * - `selectable` – checkbox rows; clicking any row toggles its checkbox
50
- */
51
- variant?: "default" | "selectable";
52
- /** If true, strips outer card chrome to fit inside an Accordion parent. */
53
- isAccordion?: boolean;
54
- /** If true, strips outer card chrome to fit inside a Toolbar/Container parent. */
55
- isToolbar?: boolean;
56
- /** Table size. Defaults to 'middle'. */
57
- size?: "small" | "middle" | "large";
58
- /** Extra class applied on the outermost wrapper div. */
59
- className?: string;
60
- /** AntD pagination config. Pass `false` to hide pagination. */
61
- pagination?: TablePaginationConfig | boolean;
62
- /**
63
- * Column definitions. Add `headerProps` to any column to get sort/filter icons
64
- * rendered automatically in the column header.
65
- */
66
- columns?: LuminaColumnsType<RecordType>;
67
- /** Total number of items in the dataset (for server-side pagination). */
68
- total?: number;
69
- /** Current page number (1-indexed). */
70
- current?: number;
71
- /** Number of rows per page. */
72
- pageSize?: number;
73
- /** Called when the page or page size changes. */
74
- onPaginationChange?: TablePaginationConfig["onChange"];
75
- /**
76
- * Custom content to show when the table has no data.
77
- * If provided, it overrides the default Ant Design "No Data" view.
78
- */
79
- emptyState?: React.ReactNode;
80
- /**
81
- * If true, the table header (the row with column labels) will be hidden.
82
- * Useful during loading or for specific visual variants.
83
- */
84
- hideHeader?: boolean;
85
- /**
86
- * Custom loading indicator (e.g. a spinner or skeleton).
87
- * If provided, this will be rendered when the table is in a loading state.
88
- */
89
- loadingIndicator?: React.ReactElement;
90
- /** Extra class applied to header cells (th). */
91
- headerCellClassName?: string;
92
- /** Extra class applied to body cells (td). */
93
- bodyCellClassName?: string;
94
- /** Custom class name for rows. Can be a string or function. */
95
- rowClassName?: string | ((record: RecordType, index: number) => string);
96
- /** Default minimum width for all columns (e.g. 144 or "144px"). */
97
- columnMinWidth?: number | string;
98
- }
99
-
100
- /**
101
- * Lumina Table component.
102
- *
103
- * Variants:
104
- * - `default` – standalone table card with rounded border
105
- * - `hover` – row highlight on mouse-over
106
- * - `selectable` – use with `rowSelection`; clicking any row toggles its checkbox
107
- * - `accordion-child` – strips outer card chrome; place inside your own accordion wrapper
108
- * - `toolbar-child` – strips outer card chrome; place inside your own toolbar/container wrapper
109
- *
110
- * Column header icons — add `headerProps` to any column definition:
111
- * ```tsx
112
- * columns={[{
113
- * key: "name", dataIndex: "name", title: "Name",
114
- * headerProps: {
115
- * sortable: true,
116
- * sortOrder: sortOrders.name,
117
- * onSortChange: (order) => setSortOrders(prev => ({ ...prev, name: order })),
118
- * filterCount: activeFilters.name ?? 0,
119
- * filterContent: <MyFilterPanel />,
120
- * },
121
- * }]}
122
- * ```
123
- */
124
- declare function Table<RecordType extends object = any>(props: TableProps<RecordType>): React.JSX.Element;
125
- declare namespace Table {
126
- var displayName: string;
127
- }
128
-
129
- export { type LuminaColumnHeaderProps as L, type SortOrder as S, Table as T, type LuminaColumnType as a, type LuminaColumnsType as b, type TableProps as c };
@@ -1,129 +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
- type AntColumnType<RecordType> = NonNullable<TableProps$1<RecordType>["columns"]>[number];
6
- /**
7
- * Header icon configuration added to any column definition.
8
- * The Table component reads these props and renders sort/filter icons automatically.
9
- */
10
- interface LuminaColumnHeaderProps {
11
- /** Show sort icon. Clicking cycles: undefined (↑↓) → ascend (↑) → descend (↓) → undefined */
12
- sortable?: boolean;
13
- /** Current sort direction. Provide to make sort controlled. */
14
- sortOrder?: SortOrder;
15
- /** Called when the user clicks the sort icon. */
16
- onSortChange?: (order: SortOrder) => void;
17
- /**
18
- * Custom sort icon. This MUST be provided if sortable is true.
19
- * If omitted, no icon will be rendered.
20
- */
21
- sortIcon?: React.ReactNode;
22
- /** > 0 turns the filter icon red and shows a count badge. */
23
- filterCount?: number;
24
- /**
25
- * Custom filter icon. This MUST be provided if filterContent is present.
26
- * If omitted, no icon will be rendered.
27
- */
28
- filterIcon?: React.ReactNode;
29
- /**
30
- * Filter dropdown content from the consumer.
31
- * Providing this prop renders the filter icon button.
32
- * Clicking the icon toggles visibility of this content.
33
- */
34
- filterContent?: React.ReactNode;
35
- /** Optional class name to apply to the header label. */
36
- className?: string;
37
- }
38
- /**
39
- * AntD ColumnType extended with optional `headerProps` for Lumina sort/filter icons.
40
- */
41
- type LuminaColumnType<RecordType = any> = AntColumnType<RecordType> & {
42
- headerProps?: LuminaColumnHeaderProps;
43
- };
44
- type LuminaColumnsType<RecordType = any> = LuminaColumnType<RecordType>[];
45
- interface TableProps<RecordType = any> extends Omit<TableProps$1<RecordType>, "size" | "bordered" | "pagination" | "columns"> {
46
- /**
47
- * Lumina UI table variant.
48
- * - `default` – standard table
49
- * - `selectable` – checkbox rows; clicking any row toggles its checkbox
50
- */
51
- variant?: "default" | "selectable";
52
- /** If true, strips outer card chrome to fit inside an Accordion parent. */
53
- isAccordion?: boolean;
54
- /** If true, strips outer card chrome to fit inside a Toolbar/Container parent. */
55
- isToolbar?: boolean;
56
- /** Table size. Defaults to 'middle'. */
57
- size?: "small" | "middle" | "large";
58
- /** Extra class applied on the outermost wrapper div. */
59
- className?: string;
60
- /** AntD pagination config. Pass `false` to hide pagination. */
61
- pagination?: TablePaginationConfig | boolean;
62
- /**
63
- * Column definitions. Add `headerProps` to any column to get sort/filter icons
64
- * rendered automatically in the column header.
65
- */
66
- columns?: LuminaColumnsType<RecordType>;
67
- /** Total number of items in the dataset (for server-side pagination). */
68
- total?: number;
69
- /** Current page number (1-indexed). */
70
- current?: number;
71
- /** Number of rows per page. */
72
- pageSize?: number;
73
- /** Called when the page or page size changes. */
74
- onPaginationChange?: TablePaginationConfig["onChange"];
75
- /**
76
- * Custom content to show when the table has no data.
77
- * If provided, it overrides the default Ant Design "No Data" view.
78
- */
79
- emptyState?: React.ReactNode;
80
- /**
81
- * If true, the table header (the row with column labels) will be hidden.
82
- * Useful during loading or for specific visual variants.
83
- */
84
- hideHeader?: boolean;
85
- /**
86
- * Custom loading indicator (e.g. a spinner or skeleton).
87
- * If provided, this will be rendered when the table is in a loading state.
88
- */
89
- loadingIndicator?: React.ReactElement;
90
- /** Extra class applied to header cells (th). */
91
- headerCellClassName?: string;
92
- /** Extra class applied to body cells (td). */
93
- bodyCellClassName?: string;
94
- /** Custom class name for rows. Can be a string or function. */
95
- rowClassName?: string | ((record: RecordType, index: number) => string);
96
- /** Default minimum width for all columns (e.g. 144 or "144px"). */
97
- columnMinWidth?: number | string;
98
- }
99
-
100
- /**
101
- * Lumina Table component.
102
- *
103
- * Variants:
104
- * - `default` – standalone table card with rounded border
105
- * - `hover` – row highlight on mouse-over
106
- * - `selectable` – use with `rowSelection`; clicking any row toggles its checkbox
107
- * - `accordion-child` – strips outer card chrome; place inside your own accordion wrapper
108
- * - `toolbar-child` – strips outer card chrome; place inside your own toolbar/container wrapper
109
- *
110
- * Column header icons — add `headerProps` to any column definition:
111
- * ```tsx
112
- * columns={[{
113
- * key: "name", dataIndex: "name", title: "Name",
114
- * headerProps: {
115
- * sortable: true,
116
- * sortOrder: sortOrders.name,
117
- * onSortChange: (order) => setSortOrders(prev => ({ ...prev, name: order })),
118
- * filterCount: activeFilters.name ?? 0,
119
- * filterContent: <MyFilterPanel />,
120
- * },
121
- * }]}
122
- * ```
123
- */
124
- declare function Table<RecordType extends object = any>(props: TableProps<RecordType>): React.JSX.Element;
125
- declare namespace Table {
126
- var displayName: string;
127
- }
128
-
129
- export { type LuminaColumnHeaderProps as L, type SortOrder as S, Table as T, type LuminaColumnType as a, type LuminaColumnsType as b, type TableProps as c };