@ledgerhq/lumen-ui-react 0.0.83 → 0.0.85
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/ai-rules/RULES.md +1 -0
- package/dist/index.js +134 -128
- package/dist/lib/Components/Button/BaseButton.js +9 -9
- package/dist/lib/Components/CardButton/CardButton.js +12 -12
- package/dist/lib/Components/DataTable/DataTable.d.ts +39 -0
- package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/DataTable.js +195 -0
- package/dist/lib/Components/DataTable/index.d.ts +4 -0
- package/dist/lib/Components/DataTable/index.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/types.d.ts +111 -0
- package/dist/lib/Components/DataTable/types.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/index.d.ts +2 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/index.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.d.ts +38 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js +10 -0
- package/dist/lib/Components/Skeleton/Skeleton.d.ts +4 -1
- package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.js +84 -98
- package/dist/lib/Components/Skeleton/types.d.ts +3 -3
- package/dist/lib/Components/Skeleton/types.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.d.ts +4 -1
- package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +23 -23
- package/dist/lib/Components/Spot/types.d.ts +2 -2
- package/dist/lib/Components/Spot/types.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.d.ts +65 -81
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +306 -267
- package/dist/lib/Components/Table/types.d.ts +17 -17
- package/dist/lib/Components/Table/types.d.ts.map +1 -1
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/libs/utils-shared/dist/index.js +59 -59
- package/dist/package.json +2 -2
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TableBodyProps, TableCellProps, TableHeaderCellProps, TableHeaderRowProps, TableHeaderProps, TableProps, TableRowProps, TableActionBarLeadingProps, TableActionBarProps, TableActionBarTrailingProps, TableCellContentProps, TableLoadingRowProps, TableRootProps, TableInfoIconProps, TableSortButtonProps, TableGroupHeaderRowProps } from './types';
|
|
1
2
|
/**
|
|
2
3
|
* Root table container component. Wraps a scrollable HTML `<div>` around the `Table` element.
|
|
3
4
|
*
|
|
@@ -19,87 +20,71 @@
|
|
|
19
20
|
* </Table>
|
|
20
21
|
* </TableRoot>
|
|
21
22
|
*/
|
|
22
|
-
export declare const TableRoot:
|
|
23
|
-
appearance
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
children: import('react').ReactNode;
|
|
31
|
-
className?: string;
|
|
32
|
-
} & import('react').HTMLAttributes<HTMLTableElement> & import('react').RefAttributes<HTMLTableElement>>;
|
|
23
|
+
export declare const TableRoot: {
|
|
24
|
+
({ children, appearance, className, onScrollBottom, loading, ref, ...props }: TableRootProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const Table: {
|
|
28
|
+
({ children, className, ref, ...props }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
33
31
|
/**
|
|
34
32
|
* Table head component. Wraps the HTML `<thead>` element.
|
|
35
33
|
*/
|
|
36
|
-
export declare const TableHeader:
|
|
37
|
-
children: import(
|
|
38
|
-
|
|
39
|
-
}
|
|
34
|
+
export declare const TableHeader: {
|
|
35
|
+
({ children, className, ref, ...props }: TableHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
40
38
|
/**
|
|
41
39
|
* Table body component. Wraps the HTML `<tbody>` element.
|
|
42
40
|
*/
|
|
43
|
-
export declare const TableBody:
|
|
44
|
-
children: import(
|
|
45
|
-
|
|
46
|
-
}
|
|
41
|
+
export declare const TableBody: {
|
|
42
|
+
({ children, className, ref, ...props }: TableBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
};
|
|
47
45
|
/**
|
|
48
46
|
* Table row component for body rows. Wraps the HTML `<tr>` element.
|
|
49
47
|
*/
|
|
50
|
-
export declare const TableRow:
|
|
51
|
-
clickable
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
className?: string;
|
|
55
|
-
} & import('react').HTMLAttributes<HTMLTableRowElement> & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
48
|
+
export declare const TableRow: {
|
|
49
|
+
({ children, className, clickable, onClick, ref, ...props }: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
displayName: string;
|
|
51
|
+
};
|
|
56
52
|
/**
|
|
57
53
|
* Table header row component. Wraps the HTML `<tr>` element with header-specific styles.
|
|
58
54
|
*/
|
|
59
|
-
export declare const TableHeaderRow:
|
|
60
|
-
children: import(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} & import('react').HTMLAttributes<HTMLTableRowElement> & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
55
|
+
export declare const TableHeaderRow: {
|
|
56
|
+
({ children, className, ref, ...props }: TableHeaderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
64
59
|
/**
|
|
65
60
|
* Table Group Header row component. Wraps the HTML `<tr> + <td>` element with header sub-section for a table.
|
|
66
61
|
*/
|
|
67
|
-
export declare const TableGroupHeaderRow:
|
|
68
|
-
children: import(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
} & import('react').HTMLAttributes<HTMLTableRowElement> & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
62
|
+
export declare const TableGroupHeaderRow: {
|
|
63
|
+
({ children, className, colSpan, ref, ...props }: TableGroupHeaderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
displayName: string;
|
|
65
|
+
};
|
|
72
66
|
/**
|
|
73
67
|
* Table data cell component. Wraps the HTML `<td>` element.
|
|
74
68
|
*/
|
|
75
|
-
export declare const TableCell:
|
|
76
|
-
hideBelow
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
align?: "start" | "end";
|
|
80
|
-
} & Omit<import('react').TdHTMLAttributes<HTMLTableCellElement>, "align"> & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
69
|
+
export declare const TableCell: {
|
|
70
|
+
({ children, className, hideBelow, align, ref, ...props }: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
81
73
|
/**
|
|
82
74
|
* Cell content component. To be used inside a TableCell or inside tanstack column render.
|
|
83
75
|
*/
|
|
84
|
-
export declare const TableCellContent:
|
|
85
|
-
align
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
title?: import('react').ReactNode;
|
|
89
|
-
description?: import('react').ReactNode;
|
|
90
|
-
} & Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
76
|
+
export declare const TableCellContent: {
|
|
77
|
+
({ className, align, leadingContent, title, description, ref, ...props }: TableCellContentProps): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
displayName: string;
|
|
79
|
+
};
|
|
91
80
|
/**
|
|
92
81
|
* Table header cell component. Wraps the HTML `<th>` element.
|
|
93
82
|
* Use TableSortButton for sortable columns; other children are trailing content.
|
|
94
83
|
*/
|
|
95
|
-
export declare const TableHeaderCell:
|
|
96
|
-
hideBelow
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
className?: string;
|
|
100
|
-
align?: "start" | "end";
|
|
101
|
-
scope?: "col" | "row" | "colgroup" | "rowgroup";
|
|
102
|
-
} & Omit<import('react').ThHTMLAttributes<HTMLTableCellElement>, "align"> & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
84
|
+
export declare const TableHeaderCell: {
|
|
85
|
+
({ children, className, scope, hideBelow, align, trailingContent, ref, ...props }: TableHeaderCellProps): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
displayName: string;
|
|
87
|
+
};
|
|
103
88
|
/**
|
|
104
89
|
* Action bar component for table controls. Positioned above the table.
|
|
105
90
|
*
|
|
@@ -113,46 +98,45 @@ export declare const TableHeaderCell: import('react').ForwardRefExoticComponent<
|
|
|
113
98
|
* </TableActionBarTrailing>
|
|
114
99
|
* </TableActionBar>
|
|
115
100
|
*/
|
|
116
|
-
export declare const TableActionBar:
|
|
117
|
-
children: import(
|
|
118
|
-
|
|
119
|
-
}
|
|
101
|
+
export declare const TableActionBar: {
|
|
102
|
+
({ children, className, ref, ...props }: TableActionBarProps): import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
displayName: string;
|
|
104
|
+
};
|
|
120
105
|
/**
|
|
121
106
|
* Leading section of the action bar. Contains left-aligned actions.
|
|
122
107
|
*/
|
|
123
|
-
export declare const TableActionBarLeading:
|
|
124
|
-
children: import(
|
|
125
|
-
|
|
126
|
-
}
|
|
108
|
+
export declare const TableActionBarLeading: {
|
|
109
|
+
({ children, className, ref, ...props }: TableActionBarLeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
displayName: string;
|
|
111
|
+
};
|
|
127
112
|
/**
|
|
128
113
|
* Trailing section of the action bar. Contains right-aligned actions.
|
|
129
114
|
*/
|
|
130
|
-
export declare const TableActionBarTrailing:
|
|
131
|
-
children: import(
|
|
132
|
-
|
|
133
|
-
}
|
|
115
|
+
export declare const TableActionBarTrailing: {
|
|
116
|
+
({ children, className, ref, ...props }: TableActionBarTrailingProps): import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
displayName: string;
|
|
118
|
+
};
|
|
134
119
|
/**
|
|
135
120
|
* Loading row component displayed at the bottom of the table during infinite scroll loading.
|
|
136
121
|
*/
|
|
137
|
-
export declare const TableLoadingRow:
|
|
138
|
-
className
|
|
139
|
-
|
|
122
|
+
export declare const TableLoadingRow: {
|
|
123
|
+
({ className, ref, ...props }: TableLoadingRowProps): import("react/jsx-runtime").JSX.Element | null;
|
|
124
|
+
displayName: string;
|
|
125
|
+
};
|
|
140
126
|
/**
|
|
141
127
|
* Clickable sort control for table header columns.
|
|
142
128
|
* Displays the current sort state (asc/desc/idle) and triggers sort changes on click.
|
|
143
129
|
*/
|
|
144
|
-
export declare const TableInfoIcon:
|
|
145
|
-
className
|
|
146
|
-
|
|
130
|
+
export declare const TableInfoIcon: {
|
|
131
|
+
({ className, ref, ...props }: TableInfoIconProps): import("react/jsx-runtime").JSX.Element;
|
|
132
|
+
displayName: string;
|
|
133
|
+
};
|
|
147
134
|
/**
|
|
148
135
|
* Sortable header label + icon. Renders a single button (label + sort icon) for accessibility.
|
|
149
136
|
* Use as the first child of TableHeaderCell; other children are trailing content.
|
|
150
137
|
*/
|
|
151
|
-
export declare const TableSortButton:
|
|
152
|
-
align
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
onToggleSort?: (sort: import('./types').TableSortValue) => void;
|
|
156
|
-
className?: string;
|
|
157
|
-
} & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "children"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
138
|
+
export declare const TableSortButton: {
|
|
139
|
+
({ children, sortDirection, align, onToggleSort, className, onClick, ref, ...props }: TableSortButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
140
|
+
displayName: string;
|
|
141
|
+
};
|
|
158
142
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Table/Table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Table/Table.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,0BAA0B,EAC1B,mBAAmB,EACnB,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAoBjB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,SAAS;kFAQnB,cAAc;;CAkBhB,CAAC;AAGF,eAAO,MAAM,KAAK;6CAA4C,UAAU;;CAUvE,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,WAAW;6CAKrB,gBAAgB;;CAMlB,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,SAAS;6CAKnB,cAAc;;CAMhB,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,QAAQ;iEAOlB,aAAa;;CAgBf,CAAC;AAYF;;GAEG;AACH,eAAO,MAAM,cAAc;6CAKxB,mBAAmB;;CAcrB,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,mBAAmB;sDAM7B,wBAAwB;;CAmB1B,CAAC;AA4BF;;GAEG;AACH,eAAO,MAAM,SAAS;+DAOnB,cAAc;;CAUhB,CAAC;AAYF;;GAEG;AACH,eAAO,MAAM,gBAAgB;8EAQ1B,qBAAqB;;CAcvB,CAAC;AA4BF;;;GAGG;AACH,eAAO,MAAM,eAAe;uFASzB,oBAAoB;;CAoBtB,CAAC;AAGF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc;6CAKxB,mBAAmB;;CAUrB,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,qBAAqB;6CAK/B,0BAA0B;;CAU5B,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,sBAAsB;6CAKhC,2BAA2B;;CAU7B,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,eAAe;mCAIzB,oBAAoB;;CAsBtB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,aAAa;mCAIvB,kBAAkB;;CAWpB,CAAC;AAkCF;;;GAGG;AACH,eAAO,MAAM,eAAe;0FASzB,oBAAoB;;CA8BtB,CAAC"}
|