@itilite/lumina-ui 1.1.13 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/AdvancedDateRangePicker-D7xn4So6.d.mts +59 -0
  2. package/dist/AdvancedDateRangePicker-D7xn4So6.d.ts +59 -0
  3. package/dist/AdvancedDateRangePicker-D9Sdk4rK.d.mts +64 -0
  4. package/dist/AdvancedDateRangePicker-D9Sdk4rK.d.ts +64 -0
  5. package/dist/AdvancedDateRangePicker-DGg-rucL.d.mts +62 -0
  6. package/dist/AdvancedDateRangePicker-DGg-rucL.d.ts +62 -0
  7. package/dist/AdvancedDateRangePicker-DOSprRQR.d.mts +52 -0
  8. package/dist/AdvancedDateRangePicker-DOSprRQR.d.ts +52 -0
  9. package/dist/AdvancedDateRangePicker-Di3rHxqf.d.mts +64 -0
  10. package/dist/AdvancedDateRangePicker-Di3rHxqf.d.ts +64 -0
  11. package/dist/AdvancedDateRangePicker-Dxug2Mcf.d.mts +60 -0
  12. package/dist/AdvancedDateRangePicker-Dxug2Mcf.d.ts +60 -0
  13. package/dist/AdvancedDateRangePicker-ozItnkhp.d.mts +57 -0
  14. package/dist/AdvancedDateRangePicker-ozItnkhp.d.ts +57 -0
  15. package/dist/Table-BOq-_9Nr.d.mts +121 -0
  16. package/dist/Table-BOq-_9Nr.d.ts +121 -0
  17. package/dist/Table-BxaCiQmh.d.mts +82 -0
  18. package/dist/Table-BxaCiQmh.d.ts +82 -0
  19. package/dist/Table-DNvoh2P8.d.mts +127 -0
  20. package/dist/Table-DNvoh2P8.d.ts +127 -0
  21. package/dist/Table-DSFYzrpU.d.mts +129 -0
  22. package/dist/Table-DSFYzrpU.d.ts +129 -0
  23. package/dist/Table-DoCPt3ri.d.mts +129 -0
  24. package/dist/Table-DoCPt3ri.d.ts +129 -0
  25. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +2 -0
  26. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +2 -0
  27. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.js +1648 -0
  28. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.mjs +15 -0
  29. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.mts +17 -0
  30. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.ts +17 -0
  31. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.js +370 -0
  32. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.mjs +8 -0
  33. package/dist/atom/LoadingSpinner/LoadingSpinner.d.mts +2 -2
  34. package/dist/atom/LoadingSpinner/LoadingSpinner.d.ts +2 -2
  35. package/dist/atom/RangePicker/RangePicker.js +105 -102
  36. package/dist/atom/RangePicker/RangePicker.mjs +3 -3
  37. package/dist/atom/Select/Select.d.mts +1 -4
  38. package/dist/atom/Select/Select.d.ts +1 -4
  39. package/dist/atom/Select/Select.js +105 -102
  40. package/dist/atom/Select/Select.mjs +1 -1
  41. package/dist/atom/Table/Table.d.mts +3 -0
  42. package/dist/atom/Table/Table.d.ts +3 -0
  43. package/dist/atom/Table/Table.js +340 -0
  44. package/dist/atom/Table/Table.mjs +9 -0
  45. package/dist/chunk-27LRL4RO.mjs +428 -0
  46. package/dist/chunk-2IT3XM7C.mjs +473 -0
  47. package/dist/chunk-3HXZIFV6.mjs +438 -0
  48. package/dist/{chunk-Y3BIY4DW.mjs → chunk-4JX54OKI.mjs} +27 -18
  49. package/dist/chunk-53O7JM5I.mjs +424 -0
  50. package/dist/chunk-5JXIJTAS.mjs +448 -0
  51. package/dist/chunk-5PQ43JFX.mjs +440 -0
  52. package/dist/chunk-62VAYFZA.mjs +437 -0
  53. package/dist/chunk-6ON32H2N.mjs +431 -0
  54. package/dist/chunk-6RIZXTFP.mjs +290 -0
  55. package/dist/chunk-6XIT27XY.mjs +269 -0
  56. package/dist/chunk-772C454L.mjs +438 -0
  57. package/dist/chunk-7L267Y4P.mjs +429 -0
  58. package/dist/chunk-7WSVCE2C.mjs +269 -0
  59. package/dist/chunk-ANJI6SPV.mjs +283 -0
  60. package/dist/chunk-BFFLWW7N.mjs +250 -0
  61. package/dist/chunk-C5VYFNVC.mjs +441 -0
  62. package/dist/chunk-DL7BZMGE.mjs +295 -0
  63. package/dist/chunk-DXPVJNGY.mjs +284 -0
  64. package/dist/chunk-FPH63V2R.mjs +269 -0
  65. package/dist/chunk-FTL3PFC2.mjs +438 -0
  66. package/dist/chunk-G4P6XGQX.mjs +278 -0
  67. package/dist/chunk-GGWY2SYX.mjs +452 -0
  68. package/dist/{chunk-E4FCLHYA.mjs → chunk-GU5F7Z7I.mjs} +107 -104
  69. package/dist/chunk-GZ4P7OL3.mjs +429 -0
  70. package/dist/chunk-I6GLPWHS.mjs +278 -0
  71. package/dist/chunk-IPVJEGDI.mjs +476 -0
  72. package/dist/chunk-J4YYP4IZ.mjs +0 -0
  73. package/dist/chunk-J5JDQ4R6.mjs +278 -0
  74. package/dist/chunk-K2A4TWA3.mjs +430 -0
  75. package/dist/chunk-L3L42SIL.mjs +429 -0
  76. package/dist/chunk-LRNKIRH3.mjs +289 -0
  77. package/dist/chunk-MA23J4WQ.mjs +430 -0
  78. package/dist/chunk-N4DPPZVJ.mjs +269 -0
  79. package/dist/chunk-PQ3B2FEB.mjs +249 -0
  80. package/dist/{chunk-35KDS27M.mjs → chunk-PSBEYGD4.mjs} +1 -1
  81. package/dist/chunk-QRGHJP7U.mjs +437 -0
  82. package/dist/chunk-QU73KNTT.mjs +452 -0
  83. package/dist/chunk-RC6IGURJ.mjs +428 -0
  84. package/dist/chunk-SKPCOHON.mjs +473 -0
  85. package/dist/chunk-SRKN7WS7.mjs +448 -0
  86. package/dist/chunk-TQDZWJZP.mjs +269 -0
  87. package/dist/chunk-UAGSPM3T.mjs +288 -0
  88. package/dist/chunk-UC4NTBDH.mjs +439 -0
  89. package/dist/chunk-UPSQTJJ4.mjs +294 -0
  90. package/dist/chunk-V3CHJHUX.mjs +424 -0
  91. package/dist/chunk-X3NDICAU.mjs +284 -0
  92. package/dist/chunk-XECXKSTC.mjs +453 -0
  93. package/dist/chunk-XIVTXS3Y.mjs +439 -0
  94. package/dist/chunk-ZGV6QMVM.mjs +437 -0
  95. package/dist/index.d.mts +16 -13
  96. package/dist/index.d.ts +16 -13
  97. package/dist/index.js +1121 -117
  98. package/dist/index.mjs +22 -13
  99. package/dist/styles.css +1221 -130
  100. package/package.json +1 -1
  101. package/dist/Avatar-DX2JwvAs.d.mts +0 -17
  102. package/dist/Avatar-DX2JwvAs.d.ts +0 -17
  103. package/dist/Tag-l7I5oeyk.d.mts +0 -13
  104. package/dist/Tag-l7I5oeyk.d.ts +0 -13
  105. package/dist/chunk-3S4X3YO2.mjs +0 -64
  106. package/dist/chunk-DLLT6V65.mjs +0 -141
  107. package/dist/chunk-HISCHZ5H.mjs +0 -77
  108. package/dist/chunk-I5VHKSQR.mjs +0 -64
  109. package/dist/chunk-N355RJGH.mjs +0 -141
  110. package/dist/chunk-N3YFQDW7.mjs +0 -77
  111. package/dist/chunk-QWK3MYDM.mjs +0 -64
  112. package/dist/chunk-SWRFCTJW.mjs +0 -77
  113. package/dist/chunk-UUEPD2FH.mjs +0 -141
  114. package/dist/chunk-X76GNSBB.mjs +0 -87
  115. package/dist/chunk-ZGFE3OPJ.mjs +0 -678
@@ -0,0 +1,129 @@
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 };
@@ -0,0 +1,2 @@
1
+ import 'react';
2
+ export { A as AdvancedDateRangePicker, A as default } from '../../AdvancedDateRangePicker-DOSprRQR.mjs';
@@ -0,0 +1,2 @@
1
+ import 'react';
2
+ export { A as AdvancedDateRangePicker, A as default } from '../../AdvancedDateRangePicker-DOSprRQR.js';