@ledgerhq/lumen-ui-react 0.1.16 → 0.1.18
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 +7 -1
- package/dist/index.js +148 -142
- package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
- package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
- package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
- package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
- package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
- package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
- package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/Avatar.js +8 -9
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +66 -73
- package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +14 -15
- package/dist/lib/Components/Button/Button.d.ts +1 -4
- package/dist/lib/Components/Button/Button.d.ts.map +1 -1
- package/dist/lib/Components/Button/Button.js +6 -7
- package/dist/lib/Components/Card/Card.d.ts +10 -40
- package/dist/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +115 -134
- package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
- package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +10 -11
- package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
- package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
- package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
- package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
- package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
- package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
- package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/lib/Components/DataTable/DataTable.js +84 -97
- package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
- package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +44 -50
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
- package/dist/lib/Components/Divider/Divider.d.ts +1 -4
- package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
- package/dist/lib/Components/Divider/Divider.js +10 -11
- package/dist/lib/Components/Icon/Icon.d.ts +1 -4
- package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Components/Icon/Icon.js +6 -7
- package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
- package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/lib/Components/IconButton/IconButton.js +5 -6
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
- package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
- package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.d.ts +1 -4
- package/dist/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.js +13 -14
- package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +60 -63
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
- package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
- package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
- package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
- package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
- package/dist/lib/Components/MediaImage/MediaImage.d.ts +16 -0
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -0
- package/dist/lib/Components/MediaImage/MediaImage.js +74 -0
- package/dist/lib/Components/MediaImage/index.d.ts +3 -0
- package/dist/lib/Components/MediaImage/index.d.ts.map +1 -0
- package/dist/lib/Components/MediaImage/types.d.ts +38 -0
- package/dist/lib/Components/MediaImage/types.d.ts.map +1 -0
- package/dist/lib/Components/Menu/Menu.d.ts +11 -38
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +100 -116
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
- package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
- package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/NavBar.js +25 -34
- package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
- package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
- package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
- package/dist/lib/Components/Popover/Popover.d.ts +1 -4
- package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
- package/dist/lib/Components/Popover/Popover.js +5 -7
- package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
- package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.js +23 -20
- package/dist/lib/Components/SearchInput/types.d.ts +1 -1
- package/dist/lib/Components/SearchInput/types.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +0 -6
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
- package/dist/lib/Components/Select/Select.d.ts +13 -28
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +339 -207
- package/dist/lib/Components/Select/SelectContext.d.ts +3 -1
- package/dist/lib/Components/Select/SelectContext.d.ts.map +1 -1
- package/dist/lib/Components/Select/index.d.ts +1 -1
- package/dist/lib/Components/Select/index.d.ts.map +1 -1
- package/dist/lib/Components/Select/types.d.ts +171 -140
- package/dist/lib/Components/Select/types.d.ts.map +1 -1
- package/dist/lib/Components/Select/useSelectItems/index.d.ts +2 -0
- package/dist/lib/Components/Select/useSelectItems/index.d.ts.map +1 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +30 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.js +42 -0
- package/dist/lib/Components/Select/utils/groupItems.d.ts +13 -0
- package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -0
- package/dist/lib/Components/Select/utils/groupItems.js +16 -0
- package/dist/lib/Components/Select/utils/index.d.ts +2 -0
- package/dist/lib/Components/Select/utils/index.d.ts.map +1 -0
- package/dist/lib/Components/SideBar/SideBar.d.ts +5 -20
- package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
- package/dist/lib/Components/SideBar/SideBar.js +44 -53
- package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
- package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
- package/dist/lib/Components/Spot/Spot.d.ts +1 -4
- package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +11 -12
- package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
- package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/Stepper/Stepper.js +10 -11
- package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
- package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/Subheader.js +14 -15
- package/dist/lib/Components/Subheader/types.d.ts +1 -1
- package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.d.ts +1 -4
- package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.js +2 -3
- package/dist/lib/Components/Table/Table.d.ts +16 -64
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +146 -176
- package/dist/lib/Components/Tag/Tag.d.ts +1 -4
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +10 -11
- package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
- package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/lib/Components/TextInput/TextInput.js +4 -5
- package/dist/lib/Components/Tile/Tile.d.ts +6 -24
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +58 -71
- package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.js +12 -13
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
- package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
- 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 +151 -124
- package/dist/node_modules/@base-ui/react/esm/combobox/chips/ComboboxChipsContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js +17 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/collection/GroupCollectionContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js +26 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js +34 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroupContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js +27 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js +221 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js +113 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItemContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js +52 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js +65 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/popup/ComboboxPopup.js +76 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js +24 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortalContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js +102 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositionerContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/AriaCombobox.js +596 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRootContext.js +41 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/constants.js +8 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/index.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/useFilter.js +43 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/row/ComboboxRowContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/store.js +74 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js +135 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/utils/ComboboxInternalDismissButton.js +32 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/utils/stateAttributesMapping.js +15 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js +19 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeList.js +81 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeListContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/useCompositeListItem.js +55 -0
- package/dist/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/field/root/FieldRootContext.js +53 -0
- package/dist/node_modules/@base-ui/react/esm/field/useField.js +51 -0
- package/dist/node_modules/@base-ui/react/esm/field/utils/constants.js +37 -0
- package/dist/node_modules/@base-ui/react/esm/field/utils/getCombinedFieldValidityData.js +12 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js +287 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js +71 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js +218 -4
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js +7 -3
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js +3 -3
- package/dist/node_modules/@base-ui/react/esm/form/FormContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/labelable-provider/LabelableContext.js +19 -0
- package/dist/node_modules/@base-ui/react/esm/labelable-provider/useLabelableId.js +44 -0
- package/dist/node_modules/@base-ui/react/esm/utils/constants.js +11 -8
- package/dist/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.js +22 -13
- package/dist/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js +18 -0
- package/dist/node_modules/@base-ui/react/esm/utils/itemEquality.js +20 -0
- package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.js +13 -6
- package/dist/node_modules/@base-ui/react/esm/utils/resolveAriaLabelledBy.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/utils/resolveValueLabel.js +73 -0
- package/dist/node_modules/@base-ui/react/esm/utils/serializeValue.js +14 -0
- package/dist/node_modules/@base-ui/utils/esm/detectBrowser.js +8 -7
- package/dist/node_modules/@base-ui/utils/esm/empty.js +3 -2
- package/dist/node_modules/@base-ui/utils/esm/useControlled.js +31 -0
- package/dist/node_modules/@base-ui/utils/esm/visuallyHidden.js +5 -1
- package/dist/package.json +1 -2
- package/package.json +1 -2
|
@@ -20,71 +20,41 @@ import { TableBodyProps, TableCellProps, TableHeaderCellProps, TableHeaderRowPro
|
|
|
20
20
|
* </Table>
|
|
21
21
|
* </TableRoot>
|
|
22
22
|
*/
|
|
23
|
-
export declare const TableRoot: {
|
|
24
|
-
|
|
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
|
-
};
|
|
23
|
+
export declare const TableRoot: ({ children, appearance, className, onScrollBottom, loading, ref, ...props }: TableRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const Table: ({ children, className, ref, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
25
|
/**
|
|
32
26
|
* Table head component. Wraps the HTML `<thead>` element.
|
|
33
27
|
*/
|
|
34
|
-
export declare const TableHeader: {
|
|
35
|
-
({ children, className, ref, ...props }: TableHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
displayName: string;
|
|
37
|
-
};
|
|
28
|
+
export declare const TableHeader: ({ children, className, ref, ...props }: TableHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
29
|
/**
|
|
39
30
|
* Table body component. Wraps the HTML `<tbody>` element.
|
|
40
31
|
*/
|
|
41
|
-
export declare const TableBody: {
|
|
42
|
-
({ children, className, ref, ...props }: TableBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
displayName: string;
|
|
44
|
-
};
|
|
32
|
+
export declare const TableBody: ({ children, className, ref, ...props }: TableBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
33
|
/**
|
|
46
34
|
* Table row component for body rows. Wraps the HTML `<tr>` element.
|
|
47
35
|
*/
|
|
48
|
-
export declare const TableRow: {
|
|
49
|
-
({ children, className, clickable, onClick, ref, ...props }: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
displayName: string;
|
|
51
|
-
};
|
|
36
|
+
export declare const TableRow: ({ children, className, clickable, onClick, ref, ...props }: TableRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
37
|
/**
|
|
53
38
|
* Table header row component. Wraps the HTML `<tr>` element with header-specific styles.
|
|
54
39
|
*/
|
|
55
|
-
export declare const TableHeaderRow: {
|
|
56
|
-
({ children, className, ref, ...props }: TableHeaderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
-
displayName: string;
|
|
58
|
-
};
|
|
40
|
+
export declare const TableHeaderRow: ({ children, className, ref, ...props }: TableHeaderRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
41
|
/**
|
|
60
42
|
* Table Group Header row component. Wraps the HTML `<tr> + <td>` element with header sub-section for a table.
|
|
61
43
|
*/
|
|
62
|
-
export declare const TableGroupHeaderRow: {
|
|
63
|
-
({ children, className, colSpan, ref, ...props }: TableGroupHeaderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
-
displayName: string;
|
|
65
|
-
};
|
|
44
|
+
export declare const TableGroupHeaderRow: ({ children, className, colSpan, ref, ...props }: TableGroupHeaderRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
66
45
|
/**
|
|
67
46
|
* Table data cell component. Wraps the HTML `<td>` element.
|
|
68
47
|
*/
|
|
69
|
-
export declare const TableCell: {
|
|
70
|
-
({ children, className, hideBelow, align, ref, ...props }: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
-
displayName: string;
|
|
72
|
-
};
|
|
48
|
+
export declare const TableCell: ({ children, className, hideBelow, align, ref, ...props }: TableCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
73
49
|
/**
|
|
74
50
|
* Cell content component. To be used inside a TableCell or inside tanstack column render.
|
|
75
51
|
*/
|
|
76
|
-
export declare const TableCellContent: {
|
|
77
|
-
({ className, align, leadingContent, title, description, ref, ...props }: TableCellContentProps): import("react/jsx-runtime").JSX.Element;
|
|
78
|
-
displayName: string;
|
|
79
|
-
};
|
|
52
|
+
export declare const TableCellContent: ({ className, align, leadingContent, title, description, ref, ...props }: TableCellContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
80
53
|
/**
|
|
81
54
|
* Table header cell component. Wraps the HTML `<th>` element.
|
|
82
55
|
* Use TableSortButton for sortable columns; other children are trailing content.
|
|
83
56
|
*/
|
|
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
|
-
};
|
|
57
|
+
export declare const TableHeaderCell: ({ children, className, scope, hideBelow, align, trailingContent, ref, ...props }: TableHeaderCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
88
58
|
/**
|
|
89
59
|
* Action bar component for table controls. Positioned above the table.
|
|
90
60
|
*
|
|
@@ -98,45 +68,27 @@ export declare const TableHeaderCell: {
|
|
|
98
68
|
* </TableActionBarTrailing>
|
|
99
69
|
* </TableActionBar>
|
|
100
70
|
*/
|
|
101
|
-
export declare const TableActionBar: {
|
|
102
|
-
({ children, className, ref, ...props }: TableActionBarProps): import("react/jsx-runtime").JSX.Element;
|
|
103
|
-
displayName: string;
|
|
104
|
-
};
|
|
71
|
+
export declare const TableActionBar: ({ children, className, ref, ...props }: TableActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
105
72
|
/**
|
|
106
73
|
* Leading section of the action bar. Contains left-aligned actions.
|
|
107
74
|
*/
|
|
108
|
-
export declare const TableActionBarLeading: {
|
|
109
|
-
({ children, className, ref, ...props }: TableActionBarLeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
110
|
-
displayName: string;
|
|
111
|
-
};
|
|
75
|
+
export declare const TableActionBarLeading: ({ children, className, ref, ...props }: TableActionBarLeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
112
76
|
/**
|
|
113
77
|
* Trailing section of the action bar. Contains right-aligned actions.
|
|
114
78
|
*/
|
|
115
|
-
export declare const TableActionBarTrailing: {
|
|
116
|
-
({ children, className, ref, ...props }: TableActionBarTrailingProps): import("react/jsx-runtime").JSX.Element;
|
|
117
|
-
displayName: string;
|
|
118
|
-
};
|
|
79
|
+
export declare const TableActionBarTrailing: ({ children, className, ref, ...props }: TableActionBarTrailingProps) => import("react/jsx-runtime").JSX.Element;
|
|
119
80
|
/**
|
|
120
81
|
* Loading row component displayed at the bottom of the table during infinite scroll loading.
|
|
121
82
|
*/
|
|
122
|
-
export declare const TableLoadingRow: {
|
|
123
|
-
({ className, ref, ...props }: TableLoadingRowProps): import("react/jsx-runtime").JSX.Element | null;
|
|
124
|
-
displayName: string;
|
|
125
|
-
};
|
|
83
|
+
export declare const TableLoadingRow: ({ className, ref, ...props }: TableLoadingRowProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
126
84
|
/**
|
|
127
85
|
* Clickable sort control for table header columns.
|
|
128
86
|
* Displays the current sort state (asc/desc/idle) and triggers sort changes on click.
|
|
129
87
|
*/
|
|
130
|
-
export declare const TableInfoIcon: {
|
|
131
|
-
({ className, ref, ...props }: TableInfoIconProps): import("react/jsx-runtime").JSX.Element;
|
|
132
|
-
displayName: string;
|
|
133
|
-
};
|
|
88
|
+
export declare const TableInfoIcon: ({ className, ref, ...props }: TableInfoIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
134
89
|
/**
|
|
135
90
|
* Sortable header label + icon. Renders a single button (label + sort icon) for accessibility.
|
|
136
91
|
* Use as the first child of TableHeaderCell; other children are trailing content.
|
|
137
92
|
*/
|
|
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
|
-
};
|
|
93
|
+
export declare const TableSortButton: ({ children, sortDirection, align, onToggleSort, className, onClick, ref, ...props }: TableSortButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
142
94
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,GAAI,6EAQvB,cAAc,4CAkBhB,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,wCAAwC,UAAU,4CAUvE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,wCAKzB,gBAAgB,4CAMlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,wCAKvB,cAAc,4CAMhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,4DAOtB,aAAa,4CAgBf,CAAC;AAWF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CAcrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,iDAMjC,wBAAwB,4CAmB1B,CAAC;AA2BF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,0DAOvB,cAAc,4CAUhB,CAAC;AAWF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,yEAQ9B,qBAAqB,4CAcvB,CAAC;AA2BF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,kFAS7B,oBAAoB,4CAoBtB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CAUrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,wCAKnC,0BAA0B,4CAU5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,wCAKpC,2BAA2B,4CAU7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,8BAI7B,oBAAoB,mDAsBtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,8BAI3B,kBAAkB,4CAWpB,CAAC;AAiCF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,qFAS7B,oBAAoB,4CA8BtB,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { createSafeContext as N, cn as c } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as s } from "class-variance-authority";
|
|
4
|
-
import { useThrottledScrollBottom as
|
|
5
|
-
import { Spot as
|
|
4
|
+
import { useThrottledScrollBottom as y } from "./utils/useThrottledScrollBottom.js";
|
|
5
|
+
import { Spot as T } from "../Spot/Spot.js";
|
|
6
6
|
import { Information as w } from "../../Symbols/Icons/Information.js";
|
|
7
7
|
import { useCommonTranslation as C } from "../../../i18n/useCommonTranslation.js";
|
|
8
8
|
import { ChevronUpDown as R } from "../../Symbols/Icons/ChevronUpDown.js";
|
|
9
|
-
import { ChevronDescending as
|
|
10
|
-
import { ChevronAscending as
|
|
11
|
-
import { InteractiveIcon as
|
|
12
|
-
const [
|
|
9
|
+
import { ChevronDescending as j } from "../../Symbols/Icons/ChevronDescending.js";
|
|
10
|
+
import { ChevronAscending as B } from "../../Symbols/Icons/ChevronAscending.js";
|
|
11
|
+
import { InteractiveIcon as I } from "../InteractiveIcon/InteractiveIcon.js";
|
|
12
|
+
const [S, m] = N("Table"), A = s(
|
|
13
13
|
"relative scrollbar-none w-full max-w-full border-collapse overflow-x-auto rounded-lg",
|
|
14
14
|
{
|
|
15
15
|
variants: {
|
|
@@ -19,129 +19,115 @@ const [A, u] = N("Table"), I = s(
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
),
|
|
23
|
-
children:
|
|
22
|
+
), O = ({
|
|
23
|
+
children: a,
|
|
24
24
|
appearance: e = "no-background",
|
|
25
|
-
className:
|
|
25
|
+
className: t,
|
|
26
26
|
onScrollBottom: n,
|
|
27
|
-
loading:
|
|
27
|
+
loading: l,
|
|
28
28
|
ref: o,
|
|
29
29
|
...i
|
|
30
30
|
}) => {
|
|
31
|
-
const d =
|
|
31
|
+
const d = y({
|
|
32
32
|
onScrollBottom: n,
|
|
33
|
-
loading:
|
|
33
|
+
loading: l
|
|
34
34
|
});
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ r(S, { value: { appearance: e, loading: l }, children: /* @__PURE__ */ r(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
...i,
|
|
39
39
|
ref: o,
|
|
40
|
-
className:
|
|
40
|
+
className: A({ appearance: e, className: t }),
|
|
41
41
|
onScroll: d,
|
|
42
|
-
children:
|
|
42
|
+
children: a
|
|
43
43
|
}
|
|
44
44
|
) });
|
|
45
|
-
}
|
|
46
|
-
L.displayName = "TableRoot";
|
|
47
|
-
const S = ({ children: t, className: e, ref: a, ...n }) => /* @__PURE__ */ l(
|
|
45
|
+
}, Q = ({ children: a, className: e, ref: t, ...n }) => /* @__PURE__ */ r(
|
|
48
46
|
"table",
|
|
49
47
|
{
|
|
50
48
|
...n,
|
|
51
49
|
className: c("w-full max-w-full table-fixed", e),
|
|
52
|
-
ref:
|
|
53
|
-
children:
|
|
50
|
+
ref: t,
|
|
51
|
+
children: a
|
|
54
52
|
}
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
const V = ({
|
|
58
|
-
children: t,
|
|
53
|
+
), W = ({
|
|
54
|
+
children: a,
|
|
59
55
|
className: e,
|
|
60
|
-
ref:
|
|
56
|
+
ref: t,
|
|
61
57
|
...n
|
|
62
|
-
}) => /* @__PURE__ */
|
|
63
|
-
|
|
64
|
-
const k = ({
|
|
65
|
-
children: t,
|
|
58
|
+
}) => /* @__PURE__ */ r("thead", { ref: t, className: e, ...n, children: a }), X = ({
|
|
59
|
+
children: a,
|
|
66
60
|
className: e,
|
|
67
|
-
ref:
|
|
61
|
+
ref: t,
|
|
68
62
|
...n
|
|
69
|
-
}) => /* @__PURE__ */
|
|
70
|
-
|
|
71
|
-
const z = ({
|
|
72
|
-
children: t,
|
|
63
|
+
}) => /* @__PURE__ */ r("tbody", { ref: t, className: e, ...n, children: a }), Y = ({
|
|
64
|
+
children: a,
|
|
73
65
|
className: e,
|
|
74
|
-
clickable:
|
|
66
|
+
clickable: t = !1,
|
|
75
67
|
onClick: n,
|
|
76
|
-
ref:
|
|
68
|
+
ref: l,
|
|
77
69
|
...o
|
|
78
|
-
}) => /* @__PURE__ */
|
|
70
|
+
}) => /* @__PURE__ */ r(
|
|
79
71
|
"tr",
|
|
80
72
|
{
|
|
81
|
-
ref:
|
|
73
|
+
ref: l,
|
|
82
74
|
onClick: n,
|
|
83
|
-
role:
|
|
75
|
+
role: t ? "button" : void 0,
|
|
84
76
|
className: c(
|
|
85
|
-
|
|
77
|
+
t && "cursor-pointer outline-none select-none hover:bg-base-transparent-hover active:bg-base-transparent-pressed",
|
|
86
78
|
e
|
|
87
79
|
),
|
|
88
80
|
...o,
|
|
89
|
-
children:
|
|
81
|
+
children: a
|
|
90
82
|
}
|
|
91
|
-
)
|
|
92
|
-
z.displayName = "TableRow";
|
|
93
|
-
const q = s("sticky top-0", {
|
|
83
|
+
), H = s("sticky top-0", {
|
|
94
84
|
variants: {
|
|
95
85
|
appearance: {
|
|
96
86
|
"no-background": "bg-canvas",
|
|
97
87
|
plain: "bg-surface"
|
|
98
88
|
}
|
|
99
89
|
}
|
|
100
|
-
}),
|
|
101
|
-
children:
|
|
90
|
+
}), Z = ({
|
|
91
|
+
children: a,
|
|
102
92
|
className: e,
|
|
103
|
-
ref:
|
|
93
|
+
ref: t,
|
|
104
94
|
...n
|
|
105
95
|
}) => {
|
|
106
|
-
const { appearance:
|
|
96
|
+
const { appearance: l } = m({
|
|
107
97
|
consumerName: "TableHeaderRow",
|
|
108
98
|
contextRequired: !0
|
|
109
99
|
});
|
|
110
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ r(
|
|
111
101
|
"tr",
|
|
112
102
|
{
|
|
113
|
-
ref:
|
|
114
|
-
className:
|
|
103
|
+
ref: t,
|
|
104
|
+
className: H({ appearance: l, className: e }),
|
|
115
105
|
...n,
|
|
116
|
-
children:
|
|
106
|
+
children: a
|
|
117
107
|
}
|
|
118
108
|
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const M = ({
|
|
122
|
-
children: t,
|
|
109
|
+
}, _ = ({
|
|
110
|
+
children: a,
|
|
123
111
|
className: e,
|
|
124
|
-
colSpan:
|
|
112
|
+
colSpan: t = 1,
|
|
125
113
|
ref: n,
|
|
126
|
-
...
|
|
114
|
+
...l
|
|
127
115
|
}) => {
|
|
128
|
-
const { appearance: o } =
|
|
116
|
+
const { appearance: o } = m({
|
|
129
117
|
consumerName: "TableGroupHeaderRow",
|
|
130
118
|
contextRequired: !0
|
|
131
119
|
});
|
|
132
|
-
return /* @__PURE__ */
|
|
120
|
+
return /* @__PURE__ */ r("tr", { ref: n, className: c("h-40", e), ...l, children: /* @__PURE__ */ r("td", { colSpan: t, children: /* @__PURE__ */ r(
|
|
133
121
|
"div",
|
|
134
122
|
{
|
|
135
123
|
className: c(
|
|
136
124
|
"flex h-32 w-full items-center bg-muted px-12 body-3 text-base",
|
|
137
125
|
o === "no-background" && "rounded-sm"
|
|
138
126
|
),
|
|
139
|
-
children:
|
|
127
|
+
children: a
|
|
140
128
|
}
|
|
141
129
|
) }) });
|
|
142
|
-
}
|
|
143
|
-
M.displayName = "TableGroupHeaderRow";
|
|
144
|
-
const p = {
|
|
130
|
+
}, p = {
|
|
145
131
|
root: s(
|
|
146
132
|
"h-64 truncate p-12 body-3 text-base first:rounded-l-md last:rounded-r-md",
|
|
147
133
|
{
|
|
@@ -164,55 +150,51 @@ const p = {
|
|
|
164
150
|
}
|
|
165
151
|
}
|
|
166
152
|
})
|
|
167
|
-
},
|
|
168
|
-
children:
|
|
153
|
+
}, $ = ({
|
|
154
|
+
children: a,
|
|
169
155
|
className: e,
|
|
170
|
-
hideBelow:
|
|
156
|
+
hideBelow: t,
|
|
171
157
|
align: n = "start",
|
|
172
|
-
ref:
|
|
158
|
+
ref: l,
|
|
173
159
|
...o
|
|
174
|
-
}) => /* @__PURE__ */
|
|
160
|
+
}) => /* @__PURE__ */ r(
|
|
175
161
|
"td",
|
|
176
162
|
{
|
|
177
|
-
ref:
|
|
178
|
-
className: p.root({ hideBelow:
|
|
163
|
+
ref: l,
|
|
164
|
+
className: p.root({ hideBelow: t, className: e }),
|
|
179
165
|
...o,
|
|
180
|
-
children: /* @__PURE__ */
|
|
166
|
+
children: /* @__PURE__ */ r("div", { className: p.inner({ align: n }), children: a })
|
|
181
167
|
}
|
|
182
|
-
)
|
|
183
|
-
P.displayName = "TableCell";
|
|
184
|
-
const U = s("flex items-center gap-12 truncate", {
|
|
168
|
+
), L = s("flex items-center gap-12 truncate", {
|
|
185
169
|
variants: {
|
|
186
170
|
align: {
|
|
187
171
|
start: "text-start",
|
|
188
172
|
end: "text-end"
|
|
189
173
|
}
|
|
190
174
|
}
|
|
191
|
-
}),
|
|
192
|
-
className:
|
|
175
|
+
}), D = ({
|
|
176
|
+
className: a,
|
|
193
177
|
align: e = "start",
|
|
194
|
-
leadingContent:
|
|
178
|
+
leadingContent: t,
|
|
195
179
|
title: n,
|
|
196
|
-
description:
|
|
180
|
+
description: l,
|
|
197
181
|
ref: o,
|
|
198
182
|
...i
|
|
199
|
-
}) => /* @__PURE__ */
|
|
183
|
+
}) => /* @__PURE__ */ u(
|
|
200
184
|
"div",
|
|
201
185
|
{
|
|
202
186
|
ref: o,
|
|
203
|
-
className:
|
|
187
|
+
className: L({ align: e, className: a }),
|
|
204
188
|
...i,
|
|
205
189
|
children: [
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ r("div", { children: t }),
|
|
191
|
+
/* @__PURE__ */ u("div", { className: "flex flex-col gap-4 truncate", children: [
|
|
192
|
+
/* @__PURE__ */ r("div", { className: "truncate body-2 text-base", children: n }),
|
|
193
|
+
/* @__PURE__ */ r("div", { className: "truncate body-3 text-muted", children: l })
|
|
210
194
|
] })
|
|
211
195
|
]
|
|
212
196
|
}
|
|
213
|
-
)
|
|
214
|
-
E.displayName = "TableCellContent";
|
|
215
|
-
const f = {
|
|
197
|
+
), f = {
|
|
216
198
|
root: s("group h-40 truncate p-12 body-3 text-base", {
|
|
217
199
|
variants: {
|
|
218
200
|
hideBelow: {
|
|
@@ -235,115 +217,104 @@ const f = {
|
|
|
235
217
|
trailingContent: s(
|
|
236
218
|
"flex items-center justify-center opacity-0 group-hover:opacity-100"
|
|
237
219
|
)
|
|
238
|
-
},
|
|
239
|
-
children:
|
|
220
|
+
}, ee = ({
|
|
221
|
+
children: a,
|
|
240
222
|
className: e,
|
|
241
|
-
scope:
|
|
223
|
+
scope: t = "col",
|
|
242
224
|
hideBelow: n,
|
|
243
|
-
align:
|
|
225
|
+
align: l = "start",
|
|
244
226
|
trailingContent: o,
|
|
245
227
|
ref: i,
|
|
246
228
|
...d
|
|
247
|
-
}) => /* @__PURE__ */
|
|
229
|
+
}) => /* @__PURE__ */ r(
|
|
248
230
|
"th",
|
|
249
231
|
{
|
|
250
232
|
ref: i,
|
|
251
|
-
scope:
|
|
233
|
+
scope: t,
|
|
252
234
|
className: f.root({ hideBelow: n, className: e }),
|
|
253
235
|
...d,
|
|
254
|
-
children: /* @__PURE__ */
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
/* @__PURE__ */
|
|
236
|
+
children: /* @__PURE__ */ r("div", { className: "min-w-0", children: /* @__PURE__ */ u("div", { className: f.content({ align: l }), children: [
|
|
237
|
+
/* @__PURE__ */ r("span", { className: c("truncate", l === "end" && "order-1"), children: a }),
|
|
238
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: o })
|
|
257
239
|
] }) })
|
|
258
240
|
}
|
|
259
|
-
)
|
|
260
|
-
|
|
261
|
-
const J = ({
|
|
262
|
-
children: t,
|
|
241
|
+
), te = ({
|
|
242
|
+
children: a,
|
|
263
243
|
className: e,
|
|
264
|
-
ref:
|
|
244
|
+
ref: t,
|
|
265
245
|
...n
|
|
266
|
-
}) => /* @__PURE__ */
|
|
246
|
+
}) => /* @__PURE__ */ r(
|
|
267
247
|
"div",
|
|
268
248
|
{
|
|
269
|
-
ref:
|
|
249
|
+
ref: t,
|
|
270
250
|
className: c("flex items-center gap-8 py-12", e),
|
|
271
251
|
...n,
|
|
272
|
-
children:
|
|
252
|
+
children: a
|
|
273
253
|
}
|
|
274
|
-
)
|
|
275
|
-
|
|
276
|
-
const K = ({
|
|
277
|
-
children: t,
|
|
254
|
+
), ae = ({
|
|
255
|
+
children: a,
|
|
278
256
|
className: e,
|
|
279
|
-
ref:
|
|
257
|
+
ref: t,
|
|
280
258
|
...n
|
|
281
|
-
}) => /* @__PURE__ */
|
|
259
|
+
}) => /* @__PURE__ */ r(
|
|
282
260
|
"div",
|
|
283
261
|
{
|
|
284
|
-
ref:
|
|
262
|
+
ref: t,
|
|
285
263
|
className: c("flex items-center gap-8", e),
|
|
286
264
|
...n,
|
|
287
|
-
children:
|
|
265
|
+
children: a
|
|
288
266
|
}
|
|
289
|
-
)
|
|
290
|
-
|
|
291
|
-
const O = ({
|
|
292
|
-
children: t,
|
|
267
|
+
), ne = ({
|
|
268
|
+
children: a,
|
|
293
269
|
className: e,
|
|
294
|
-
ref:
|
|
270
|
+
ref: t,
|
|
295
271
|
...n
|
|
296
|
-
}) => /* @__PURE__ */
|
|
272
|
+
}) => /* @__PURE__ */ r(
|
|
297
273
|
"div",
|
|
298
274
|
{
|
|
299
|
-
ref:
|
|
275
|
+
ref: t,
|
|
300
276
|
className: c("ml-auto flex items-center gap-8", e),
|
|
301
277
|
...n,
|
|
302
|
-
children:
|
|
278
|
+
children: a
|
|
303
279
|
}
|
|
304
|
-
)
|
|
305
|
-
|
|
306
|
-
const Q = ({
|
|
307
|
-
className: t,
|
|
280
|
+
), re = ({
|
|
281
|
+
className: a,
|
|
308
282
|
ref: e,
|
|
309
|
-
...
|
|
283
|
+
...t
|
|
310
284
|
}) => {
|
|
311
|
-
const { loading: n } =
|
|
285
|
+
const { loading: n } = m({
|
|
312
286
|
consumerName: "TableLoadingRow",
|
|
313
287
|
contextRequired: !0
|
|
314
288
|
});
|
|
315
|
-
return n ? /* @__PURE__ */
|
|
289
|
+
return n ? /* @__PURE__ */ r(
|
|
316
290
|
"div",
|
|
317
291
|
{
|
|
318
|
-
...
|
|
292
|
+
...t,
|
|
319
293
|
ref: e,
|
|
320
294
|
className: c(
|
|
321
295
|
"flex h-80 w-full items-center justify-center p-12",
|
|
322
|
-
|
|
296
|
+
a
|
|
323
297
|
),
|
|
324
|
-
children: /* @__PURE__ */
|
|
298
|
+
children: /* @__PURE__ */ r(T, { appearance: "loader", size: 48 })
|
|
325
299
|
}
|
|
326
300
|
) : null;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
const W = ({
|
|
330
|
-
className: t,
|
|
301
|
+
}, le = ({
|
|
302
|
+
className: a,
|
|
331
303
|
ref: e,
|
|
332
|
-
...
|
|
333
|
-
}) => /* @__PURE__ */
|
|
334
|
-
|
|
304
|
+
...t
|
|
305
|
+
}) => /* @__PURE__ */ r(
|
|
306
|
+
I,
|
|
335
307
|
{
|
|
336
|
-
...
|
|
308
|
+
...t,
|
|
337
309
|
iconType: "filled",
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
310
|
+
icon: w,
|
|
311
|
+
size: 20,
|
|
312
|
+
className: a,
|
|
313
|
+
ref: e
|
|
341
314
|
}
|
|
342
|
-
)
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
asc: j,
|
|
346
|
-
desc: B,
|
|
315
|
+
), V = {
|
|
316
|
+
asc: B,
|
|
317
|
+
desc: j,
|
|
347
318
|
idle: R
|
|
348
319
|
}, v = {
|
|
349
320
|
root: s(
|
|
@@ -368,34 +339,34 @@ const X = {
|
|
|
368
339
|
}
|
|
369
340
|
}
|
|
370
341
|
})
|
|
371
|
-
},
|
|
372
|
-
children:
|
|
342
|
+
}, oe = ({
|
|
343
|
+
children: a,
|
|
373
344
|
sortDirection: e,
|
|
374
|
-
align:
|
|
345
|
+
align: t = "start",
|
|
375
346
|
onToggleSort: n,
|
|
376
|
-
className:
|
|
347
|
+
className: l,
|
|
377
348
|
onClick: o,
|
|
378
349
|
ref: i,
|
|
379
350
|
...d
|
|
380
351
|
}) => {
|
|
381
|
-
const { t: b } = C(), x =
|
|
352
|
+
const { t: b } = C(), x = V[e || "idle"], h = {
|
|
382
353
|
asc: b("table.ascAriaLabel"),
|
|
383
354
|
desc: b("table.descAriaLabel")
|
|
384
355
|
};
|
|
385
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ u(
|
|
386
357
|
"button",
|
|
387
358
|
{
|
|
388
359
|
...d,
|
|
389
360
|
ref: i,
|
|
390
361
|
type: "button",
|
|
391
|
-
className: v.root({ align:
|
|
362
|
+
className: v.root({ align: t, className: l }),
|
|
392
363
|
"aria-label": e ? h[e] : void 0,
|
|
393
|
-
onClick: (
|
|
394
|
-
o?.(
|
|
364
|
+
onClick: (g) => {
|
|
365
|
+
o?.(g), n?.(e === "asc" ? "desc" : "asc");
|
|
395
366
|
},
|
|
396
367
|
children: [
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ r("span", { className: "min-w-0 truncate", children: a }),
|
|
369
|
+
/* @__PURE__ */ r(
|
|
399
370
|
x,
|
|
400
371
|
{
|
|
401
372
|
size: 20,
|
|
@@ -408,22 +379,21 @@ const X = {
|
|
|
408
379
|
}
|
|
409
380
|
);
|
|
410
381
|
};
|
|
411
|
-
Y.displayName = "TableSortButton";
|
|
412
382
|
export {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
383
|
+
Q as Table,
|
|
384
|
+
te as TableActionBar,
|
|
385
|
+
ae as TableActionBarLeading,
|
|
386
|
+
ne as TableActionBarTrailing,
|
|
387
|
+
X as TableBody,
|
|
388
|
+
$ as TableCell,
|
|
389
|
+
D as TableCellContent,
|
|
390
|
+
_ as TableGroupHeaderRow,
|
|
391
|
+
W as TableHeader,
|
|
392
|
+
ee as TableHeaderCell,
|
|
393
|
+
Z as TableHeaderRow,
|
|
394
|
+
le as TableInfoIcon,
|
|
395
|
+
re as TableLoadingRow,
|
|
396
|
+
O as TableRoot,
|
|
397
|
+
Y as TableRow,
|
|
398
|
+
oe as TableSortButton
|
|
429
399
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { TagProps } from './types';
|
|
2
|
-
export declare const Tag: {
|
|
3
|
-
({ ref, className, appearance, size, icon, label, disabled: disabledProp, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
2
|
+
export declare const Tag: ({ ref, className, appearance, size, icon, label, disabled: disabledProp, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
//# sourceMappingURL=Tag.d.ts.map
|