@loadsmart/miranda-react 3.0.0-beta.70 → 3.0.0-beta.72
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/dist/index.d.ts +114 -8
- package/dist/index.js +108 -26
- package/dist/tokens.d.ts +20 -8
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -51,17 +51,35 @@ import { StepNavigateEventDetail } from '@loadsmart/miranda-wc';
|
|
|
51
51
|
import { SwitchSize } from '@loadsmart/miranda-wc';
|
|
52
52
|
import { TabChangeEventDetail } from '@loadsmart/miranda-wc';
|
|
53
53
|
import { TabContentDirection } from '@loadsmart/miranda-wc';
|
|
54
|
+
import { TableBodyV2 as TableBodyV2_2 } from '@loadsmart/miranda-wc';
|
|
54
55
|
import { TableCellAlignment } from '@loadsmart/miranda-wc';
|
|
56
|
+
import { TableCellV2 as TableCellV2_2 } from '@loadsmart/miranda-wc';
|
|
57
|
+
import { TableCellV2Alignment } from '@loadsmart/miranda-wc';
|
|
58
|
+
import { TableCellV2TextAlignment } from '@loadsmart/miranda-wc';
|
|
59
|
+
import { TableExpandEventDetails } from '@loadsmart/miranda-wc/dist/components/table-v2/table.types';
|
|
60
|
+
import { TableExpandEventDetailsV2 } from '@loadsmart/miranda-wc';
|
|
61
|
+
import { TableFootV2 as TableFootV2_2 } from '@loadsmart/miranda-wc';
|
|
55
62
|
import { TableHeadCellSortEventDetails } from '@loadsmart/miranda-wc';
|
|
63
|
+
import { TableHeadCellV2 as TableHeadCellV2_2 } from '@loadsmart/miranda-wc';
|
|
64
|
+
import { TableHeadCellV2SortEventDetails } from '@loadsmart/miranda-wc';
|
|
65
|
+
import { TableHeadV2 as TableHeadV2_2 } from '@loadsmart/miranda-wc';
|
|
56
66
|
import { TableLayout as TableLayout_2 } from '@loadsmart/miranda-wc';
|
|
57
67
|
import { TableLayoutActions as TableLayoutActions_2 } from '@loadsmart/miranda-wc';
|
|
58
68
|
import { TableLayoutFeedback as TableLayoutFeedback_2 } from '@loadsmart/miranda-wc';
|
|
59
69
|
import { TableLayoutToolbar as TableLayoutToolbar_2 } from '@loadsmart/miranda-wc';
|
|
70
|
+
import { TableRowExpandV2 as TableRowExpandV2_2 } from '@loadsmart/miranda-wc';
|
|
71
|
+
import { TableRowSelectV2 as TableRowSelectV2_2 } from '@loadsmart/miranda-wc';
|
|
72
|
+
import { TableRowV2 as TableRowV2_2 } from '@loadsmart/miranda-wc';
|
|
60
73
|
import { TableSelectEventDetails } from '@loadsmart/miranda-wc';
|
|
61
74
|
import { TableSelectEventDetails as TableSelectEventDetails_2 } from '@loadsmart/miranda-wc/dist/components/table/table.types';
|
|
75
|
+
import { TableSelectEventDetails as TableSelectEventDetails_3 } from '@loadsmart/miranda-wc/dist/components/table-v2/table.types';
|
|
76
|
+
import { TableSelectEventDetailsV2 } from '@loadsmart/miranda-wc';
|
|
62
77
|
import { TableSelectionCell as TableSelectionCell_2 } from '@loadsmart/miranda-wc';
|
|
63
78
|
import { TableSize } from '@loadsmart/miranda-wc';
|
|
64
79
|
import { TableSortDirection } from '@loadsmart/miranda-wc';
|
|
80
|
+
import { TableV2 as TableV2_2 } from '@loadsmart/miranda-wc';
|
|
81
|
+
import { TableV2Size } from '@loadsmart/miranda-wc';
|
|
82
|
+
import { TableV2SortDirection } from '@loadsmart/miranda-wc';
|
|
65
83
|
import { TagSize } from '@loadsmart/miranda-wc';
|
|
66
84
|
import { TagVariant } from '@loadsmart/miranda-wc';
|
|
67
85
|
import { TimelineItemVariant } from '@loadsmart/miranda-wc';
|
|
@@ -886,12 +904,26 @@ export declare const TableBody: ReactWebComponent<WCTableBody, {}>;
|
|
|
886
904
|
|
|
887
905
|
export declare type TableBodyProps = ComponentProps<typeof TableBody>;
|
|
888
906
|
|
|
907
|
+
export declare const TableBodyV2: ReactWebComponent<TableBodyV2_2, {}>;
|
|
908
|
+
|
|
909
|
+
export declare type TableBodyV2Props = ComponentProps<typeof TableBodyV2>;
|
|
910
|
+
|
|
889
911
|
export declare const TableCell: ReactWebComponent<WCTableCell, {}>;
|
|
890
912
|
|
|
891
913
|
export { TableCellAlignment }
|
|
892
914
|
|
|
893
915
|
export declare type TableCellProps = ComponentProps<typeof TableCell>;
|
|
894
916
|
|
|
917
|
+
export declare const TableCellV2: ReactWebComponent<TableCellV2_2, {}>;
|
|
918
|
+
|
|
919
|
+
export { TableCellV2Alignment }
|
|
920
|
+
|
|
921
|
+
export declare type TableCellV2Props = ComponentProps<typeof TableCellV2>;
|
|
922
|
+
|
|
923
|
+
export { TableCellV2TextAlignment }
|
|
924
|
+
|
|
925
|
+
export { TableExpandEventDetailsV2 }
|
|
926
|
+
|
|
895
927
|
export declare const TableFeedback: ReactWebComponent<WCTableFeedback, {}>;
|
|
896
928
|
|
|
897
929
|
export declare type TableFeedbackProps = ComponentProps<typeof TableFeedback>;
|
|
@@ -900,6 +932,10 @@ export declare const TableFoot: ReactWebComponent<WCTableFoot, {}>;
|
|
|
900
932
|
|
|
901
933
|
export declare type TableFootProps = ComponentProps<typeof TableFoot>;
|
|
902
934
|
|
|
935
|
+
export declare const TableFootV2: ReactWebComponent<TableFootV2_2, {}>;
|
|
936
|
+
|
|
937
|
+
export declare type TableFootV2Props = ComponentProps<typeof TableFootV2>;
|
|
938
|
+
|
|
903
939
|
export declare const TableHead: ReactWebComponent<WCTableHead, {}>;
|
|
904
940
|
|
|
905
941
|
export declare const TableHeadCell: ReactWebComponent<WCTableHeadCell, {
|
|
@@ -910,8 +946,20 @@ export declare type TableHeadCellProps = ComponentProps<typeof TableHeadCell>;
|
|
|
910
946
|
|
|
911
947
|
export { TableHeadCellSortEventDetails }
|
|
912
948
|
|
|
949
|
+
export declare const TableHeadCellV2: ReactWebComponent<TableHeadCellV2_2, {
|
|
950
|
+
onSort: EventName<CustomEvent<TableHeadCellSortEventDetails>>;
|
|
951
|
+
}>;
|
|
952
|
+
|
|
953
|
+
export declare type TableHeadCellV2Props = ComponentProps<typeof TableHeadCellV2>;
|
|
954
|
+
|
|
955
|
+
export { TableHeadCellV2SortEventDetails }
|
|
956
|
+
|
|
913
957
|
export declare type TableHeadProps = ComponentProps<typeof TableHead>;
|
|
914
958
|
|
|
959
|
+
export declare const TableHeadV2: ReactWebComponent<TableHeadV2_2, {}>;
|
|
960
|
+
|
|
961
|
+
export declare type TableHeadV2Props = ComponentProps<typeof TableHeadV2>;
|
|
962
|
+
|
|
915
963
|
export declare const TableLayout: ReactWebComponent<TableLayout_2, {}> & {
|
|
916
964
|
Toolbar: ReactWebComponent<TableLayoutToolbar_2, {}>;
|
|
917
965
|
Feedback: ReactWebComponent<TableLayoutFeedback_2, {}>;
|
|
@@ -936,10 +984,32 @@ export declare type TableProps = ComponentProps<typeof Table>;
|
|
|
936
984
|
|
|
937
985
|
export declare const TableRow: ReactWebComponent<WCTableRow, {}>;
|
|
938
986
|
|
|
987
|
+
export declare const TableRowExpandV2: ReactWebComponent<TableRowExpandV2_2, {}>;
|
|
988
|
+
|
|
989
|
+
export declare type TableRowExpandV2Props = ComponentProps<typeof TableRowExpandV2>;
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* this component should ensure that all children include the attribute slot = "expansion"
|
|
993
|
+
* so they can be rendered in the expansion content of the table row.
|
|
994
|
+
*/
|
|
995
|
+
declare function TableRowExpansion(props: {
|
|
996
|
+
children: ReactNode;
|
|
997
|
+
}): default_2.JSX.Element;
|
|
998
|
+
|
|
939
999
|
export declare type TableRowProps = ComponentProps<typeof TableRow>;
|
|
940
1000
|
|
|
1001
|
+
export declare const TableRowSelectV2: ReactWebComponent<TableRowSelectV2_2, {}>;
|
|
1002
|
+
|
|
1003
|
+
export declare type TableRowSelectV2Props = ComponentProps<typeof TableRowSelectV2>;
|
|
1004
|
+
|
|
1005
|
+
export declare const TableRowV2: ReactWebComponent<TableRowV2_2, {}>;
|
|
1006
|
+
|
|
1007
|
+
export declare type TableRowV2Props = ComponentProps<typeof TableRowV2>;
|
|
1008
|
+
|
|
941
1009
|
export { TableSelectEventDetails }
|
|
942
1010
|
|
|
1011
|
+
export { TableSelectEventDetailsV2 }
|
|
1012
|
+
|
|
943
1013
|
export declare const TableSelectionCell: ReactWebComponent<TableSelectionCell_2, {}>;
|
|
944
1014
|
|
|
945
1015
|
export declare type TableSelectionCellProps = ComponentProps<typeof TableSelectionCell>;
|
|
@@ -952,6 +1022,30 @@ export declare const TableToolbar: ReactWebComponent<WCTableToolbar, {}>;
|
|
|
952
1022
|
|
|
953
1023
|
export declare type TableToolbarProps = ComponentProps<typeof TableToolbar>;
|
|
954
1024
|
|
|
1025
|
+
export declare const TableV2: ReactWebComponent<TableV2_2, {
|
|
1026
|
+
onSelect: EventName<CustomEvent<TableSelectEventDetails_3>>;
|
|
1027
|
+
onExpand: EventName<CustomEvent<TableExpandEventDetails>>;
|
|
1028
|
+
onCollapse: EventName<CustomEvent<TableExpandEventDetails>>;
|
|
1029
|
+
}> & {
|
|
1030
|
+
Head: ReactWebComponent<TableHeadV2_2, {}>;
|
|
1031
|
+
Body: ReactWebComponent<TableBodyV2_2, {}>;
|
|
1032
|
+
Foot: ReactWebComponent<TableFootV2_2, {}>;
|
|
1033
|
+
Row: ReactWebComponent<TableRowV2_2, {}>;
|
|
1034
|
+
HeadCell: ReactWebComponent<TableHeadCellV2_2, {
|
|
1035
|
+
onSort: EventName<CustomEvent<TableHeadCellSortEventDetails>>;
|
|
1036
|
+
}>;
|
|
1037
|
+
Cell: ReactWebComponent<TableCellV2_2, {}>;
|
|
1038
|
+
RowSelect: ReactWebComponent<TableRowSelectV2_2, {}>;
|
|
1039
|
+
RowExpand: ReactWebComponent<TableRowExpandV2_2, {}>;
|
|
1040
|
+
RowExpansion: typeof TableRowExpansion;
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
export declare type TableV2Props = ComponentProps<typeof TableV2>;
|
|
1044
|
+
|
|
1045
|
+
export { TableV2Size }
|
|
1046
|
+
|
|
1047
|
+
export { TableV2SortDirection }
|
|
1048
|
+
|
|
955
1049
|
export declare const TabPanel: ReactWebComponent<WCTabPanel, {}>;
|
|
956
1050
|
|
|
957
1051
|
export declare type TabPanelProps = ComponentProps<typeof TabPanel>;
|
|
@@ -1498,6 +1592,14 @@ declare const WiredTooltip: ReactWebComponent<WCTooltip, {}>;
|
|
|
1498
1592
|
export { }
|
|
1499
1593
|
|
|
1500
1594
|
|
|
1595
|
+
declare module 'react' {
|
|
1596
|
+
interface CSSProperties {
|
|
1597
|
+
'--m-icon-size'?: string;
|
|
1598
|
+
'--m-icon-color'?: string;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
|
|
1501
1603
|
declare module 'react' {
|
|
1502
1604
|
interface CSSProperties {
|
|
1503
1605
|
'--m-divider-margin-top'?: string;
|
|
@@ -1519,14 +1621,6 @@ declare module 'react' {
|
|
|
1519
1621
|
}
|
|
1520
1622
|
|
|
1521
1623
|
|
|
1522
|
-
declare module 'react' {
|
|
1523
|
-
interface CSSProperties {
|
|
1524
|
-
'--m-icon-size'?: string;
|
|
1525
|
-
'--m-icon-color'?: string;
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
1624
|
declare module 'react' {
|
|
1531
1625
|
interface CSSProperties {
|
|
1532
1626
|
'--m-table-border-radius'?: string;
|
|
@@ -1546,6 +1640,18 @@ declare module 'react' {
|
|
|
1546
1640
|
}
|
|
1547
1641
|
|
|
1548
1642
|
|
|
1643
|
+
declare module 'react' {
|
|
1644
|
+
interface CSSProperties {
|
|
1645
|
+
'--m-table-border-radius'?: string;
|
|
1646
|
+
'--m-table-border-top-left-radius'?: string;
|
|
1647
|
+
'--m-table-border-top-right-radius'?: string;
|
|
1648
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
1649
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
1650
|
+
'--m-table-border-width'?: string;
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
|
|
1549
1655
|
declare module 'react' {
|
|
1550
1656
|
interface CSSProperties {
|
|
1551
1657
|
'--m-table-border-radius'?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccordionTitle as AccordionTitle$1, AccordionContent as AccordionContent$1, Accordion as Accordion$1, Badge as Badge$1, BannerActionPrimary as BannerActionPrimary$1, BannerActions as BannerActions$1, BannerActionSecondary as BannerActionSecondary$1, BannerDescription as BannerDescription$1, BannerIcon as BannerIcon$1, BannerTitle as BannerTitle$1, Banner as Banner$1, Button as Button$1, CardTitle as CardTitle$1, CardSubtitle as CardSubtitle$1, CardBody as CardBody$1, CardDivider as CardDivider$1, CardActionPrimary as CardActionPrimary$1, CardActionSecondary as CardActionSecondary$1, CardActionTertiary as CardActionTertiary$1, CardFooter as CardFooter$1, Card as Card$1, Checkbox as Checkbox$1, DialogActionPrimary as DialogActionPrimary$1, DialogActionSecondary as DialogActionSecondary$1, DialogActionTertiary as DialogActionTertiary$1, DialogActions as DialogActions$1, DialogBody as DialogBody$1, DialogClose as DialogClose$1, DialogFooter as DialogFooter$1, DialogHeader as DialogHeader$1, Dialog as Dialog$1, Divider as Divider$1, DrawerActionPrimary as DrawerActionPrimary$1, DrawerActionSecondary as DrawerActionSecondary$1, DrawerActionTertiary as DrawerActionTertiary$1, DrawerActions as DrawerActions$1, DrawerBody as DrawerBody$1, DrawerClose as DrawerClose$1, DrawerHeader as DrawerHeader$1, Drawer as Drawer$1, DropdownItem as DropdownItem$1, DropdownMenu as DropdownMenu$1, DropdownTrigger as DropdownTrigger$1, Dropdown as Dropdown$1, EmptyStateIllustration as EmptyStateIllustration$1, EmptyStateHeader as EmptyStateHeader$1, EmptyStateMessage as EmptyStateMessage$1, EmptyStateAction as EmptyStateAction$1, EmptyState as EmptyState$1, FieldLabel as FieldLabel$1, FieldHint as FieldHint$1, Field as Field$1, HeaderActions as HeaderActions$1, HeaderContent as HeaderContent$1, HeaderTitle as HeaderTitle$1, SubHeader as SubHeader$1, BackButton, HeaderTabs as HeaderTabs$1, Header as Header$1, Icon as Icon$1, LabeledValueLabel as LabeledValueLabel$1, LabeledValueValue as LabeledValueValue$1, LabeledValue as LabeledValue$1, Box as Box$1, Group as Group$1, Stack as Stack$1, Grid as Grid$1, Sidebar as Sidebar$1, Switcher as Switcher$1, Container as Container$1, Row as Row$1, Column as Column$1, Link as Link$1, Body as Body$1, PageContent as PageContent$1, Pagination as Pagination$1, ProgressBar as ProgressBar$1, ProgressBarCountdown as ProgressBarCountdown$1, Radio as Radio$1, RadioGroup as RadioGroup$1, SectionTitle as SectionTitle$1, Section as Section$1, SelectOption as SelectOption$1, Select as Select$1, SpinnerWheel as SpinnerWheel$1, Step as Step$1, Steps as Steps$1, Switch as Switch$1, TableHead as TableHead$
|
|
1
|
+
import { AccordionTitle as AccordionTitle$1, AccordionContent as AccordionContent$1, Accordion as Accordion$1, Badge as Badge$1, BannerActionPrimary as BannerActionPrimary$1, BannerActions as BannerActions$1, BannerActionSecondary as BannerActionSecondary$1, BannerDescription as BannerDescription$1, BannerIcon as BannerIcon$1, BannerTitle as BannerTitle$1, Banner as Banner$1, Button as Button$1, CardTitle as CardTitle$1, CardSubtitle as CardSubtitle$1, CardBody as CardBody$1, CardDivider as CardDivider$1, CardActionPrimary as CardActionPrimary$1, CardActionSecondary as CardActionSecondary$1, CardActionTertiary as CardActionTertiary$1, CardFooter as CardFooter$1, Card as Card$1, Checkbox as Checkbox$1, DialogActionPrimary as DialogActionPrimary$1, DialogActionSecondary as DialogActionSecondary$1, DialogActionTertiary as DialogActionTertiary$1, DialogActions as DialogActions$1, DialogBody as DialogBody$1, DialogClose as DialogClose$1, DialogFooter as DialogFooter$1, DialogHeader as DialogHeader$1, Dialog as Dialog$1, Divider as Divider$1, DrawerActionPrimary as DrawerActionPrimary$1, DrawerActionSecondary as DrawerActionSecondary$1, DrawerActionTertiary as DrawerActionTertiary$1, DrawerActions as DrawerActions$1, DrawerBody as DrawerBody$1, DrawerClose as DrawerClose$1, DrawerHeader as DrawerHeader$1, Drawer as Drawer$1, DropdownItem as DropdownItem$1, DropdownMenu as DropdownMenu$1, DropdownTrigger as DropdownTrigger$1, Dropdown as Dropdown$1, EmptyStateIllustration as EmptyStateIllustration$1, EmptyStateHeader as EmptyStateHeader$1, EmptyStateMessage as EmptyStateMessage$1, EmptyStateAction as EmptyStateAction$1, EmptyState as EmptyState$1, FieldLabel as FieldLabel$1, FieldHint as FieldHint$1, Field as Field$1, HeaderActions as HeaderActions$1, HeaderContent as HeaderContent$1, HeaderTitle as HeaderTitle$1, SubHeader as SubHeader$1, BackButton, HeaderTabs as HeaderTabs$1, Header as Header$1, Icon as Icon$1, LabeledValueLabel as LabeledValueLabel$1, LabeledValueValue as LabeledValueValue$1, LabeledValue as LabeledValue$1, Box as Box$1, Group as Group$1, Stack as Stack$1, Grid as Grid$1, Sidebar as Sidebar$1, Switcher as Switcher$1, Container as Container$1, Row as Row$1, Column as Column$1, Link as Link$1, Body as Body$1, PageContent as PageContent$1, Pagination as Pagination$1, ProgressBar as ProgressBar$1, ProgressBarCountdown as ProgressBarCountdown$1, Radio as Radio$1, RadioGroup as RadioGroup$1, SectionTitle as SectionTitle$1, Section as Section$1, SelectOption as SelectOption$1, Select as Select$1, SpinnerWheel as SpinnerWheel$1, Step as Step$1, Steps as Steps$1, Switch as Switch$1, TableHead as TableHead$2, TableBody as TableBody$2, TableFoot as TableFoot$2, TableRow as TableRow$2, TableCell as TableCell$2, TableToolbar as TableToolbar$1, TableHeadCell as TableHeadCell$2, TableFeedback as TableFeedback$1, TableActions as TableActions$1, TableSelectionCell as TableSelectionCell$1, Table as Table$2, TableHeadV2, TableBodyV2, TableFootV2, TableRowV2, TableCellV2, TableHeadCellV2, TableRowSelectV2, TableRowExpandV2, TableV2, TableLayoutToolbar as TableLayoutToolbar$1, TableLayoutFeedback as TableLayoutFeedback$1, TableLayoutActions as TableLayoutActions$1, TableLayout as TableLayout$1, Tab as Tab$1, TabPanel as TabPanel$1, Tabs as Tabs$1, Tag as Tag$1, ActionableTag as ActionableTag$1, Text as Text$1, TextArea as TextArea$1, TextField as TextField$1, TimelineItem as TimelineItem$1, TimelineExpandableItem as TimelineExpandableItem$1, TimelineItemBody as TimelineItemBody$1, TimelineItemFooter as TimelineItemFooter$1, TimelineItemHeader as TimelineItemHeader$1, TimelineItemHeaderSubtitle as TimelineItemHeaderSubtitle$1, TimelineItemHeaderTitle as TimelineItemHeaderTitle$1, TimelineItemIcon as TimelineItemIcon$1, Timeline as Timeline$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1, LogoLoader as LogoLoader$1, DotsLoader as DotsLoader$1 } from "@loadsmart/miranda-wc";
|
|
2
2
|
import { DIALOG_SIZES, DIALOG_VARIANTS, DRAWER_SIZES, EMPTY_STATE_VARIANTS, Accordion, AccordionContent, AccordionTitle, ActionableTag, Badge, Banner, BannerActionPrimary, BannerActionSecondary, BannerActions, BannerDescription, BannerIcon, BannerTitle, Box, Button, Card, CardActionPrimary, CardActionSecondary, CardActionTertiary, CardBody, CardDivider, CardFooter, CardSubtitle, CardTitle, Checkbox, Column, Container, Dialog, DialogActionPrimary, DialogActionSecondary, DialogActionTertiary, DialogActions, DialogBody, DialogClose, DialogFooter, DialogHeader, Divider, Drawer, DrawerActionPrimary, DrawerActionSecondary, DrawerActionTertiary, DrawerActions, DrawerBody, DrawerClose, DrawerHeader, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, EmptyState, EmptyStateAction, EmptyStateHeader, EmptyStateIllustration, EmptyStateMessage, Field, FieldHint, FieldLabel, Grid, Group, Header, HeaderActions, HeaderContent, HeaderTitle, Icon, LabeledValue, LabeledValueLabel, LabeledValueValue, Link, LogoLoader, PageContent, Pagination, ProgressBar, ProgressBarCountdown, Radio, RadioGroup, Row, Section, SectionTitle, Select, SelectOption, Sidebar, SpinnerWheel, Stack, Step, Steps, SubHeader, Switch, Switcher, Tab, TabPanel, Table, TableActions, TableBody, TableCell, TableFeedback, TableFoot, TableHead, TableHeadCell, TableRow, TableToolbar, Tabs, Tag, Text, TextArea, TextField, Timeline, TimelineExpandableItem, TimelineItem, TimelineItemBody, TimelineItemFooter, TimelineItemHeader, TimelineItemHeaderSubtitle, TimelineItemHeaderTitle, TimelineItemIcon, Toggle, ToggleGroup, Tooltip } from "@loadsmart/miranda-wc";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import React__default, { forwardRef, useState, useCallback, Children, isValidElement, cloneElement } from "react";
|
|
@@ -831,29 +831,29 @@ const Switch2 = createComponent({
|
|
|
831
831
|
onChange: "change"
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
|
-
const
|
|
834
|
+
const TableHead$1 = createComponent({
|
|
835
835
|
tagName: "m-table-head",
|
|
836
|
-
elementClass: TableHead$
|
|
836
|
+
elementClass: TableHead$2,
|
|
837
837
|
displayName: "TableHead"
|
|
838
838
|
});
|
|
839
|
-
const
|
|
839
|
+
const TableBody$1 = createComponent({
|
|
840
840
|
tagName: "m-table-body",
|
|
841
|
-
elementClass: TableBody$
|
|
841
|
+
elementClass: TableBody$2,
|
|
842
842
|
displayName: "TableBody"
|
|
843
843
|
});
|
|
844
|
-
const
|
|
844
|
+
const TableFoot$1 = createComponent({
|
|
845
845
|
tagName: "m-table-foot",
|
|
846
|
-
elementClass: TableFoot$
|
|
846
|
+
elementClass: TableFoot$2,
|
|
847
847
|
displayName: "TableFoot"
|
|
848
848
|
});
|
|
849
|
-
const
|
|
849
|
+
const TableRow$1 = createComponent({
|
|
850
850
|
tagName: "m-table-row",
|
|
851
|
-
elementClass: TableRow$
|
|
851
|
+
elementClass: TableRow$2,
|
|
852
852
|
displayName: "TableRow"
|
|
853
853
|
});
|
|
854
|
-
const
|
|
854
|
+
const TableCell$1 = createComponent({
|
|
855
855
|
tagName: "m-table-cell",
|
|
856
|
-
elementClass: TableCell$
|
|
856
|
+
elementClass: TableCell$2,
|
|
857
857
|
displayName: "TableCell"
|
|
858
858
|
});
|
|
859
859
|
const TableToolbar2 = createComponent({
|
|
@@ -861,9 +861,9 @@ const TableToolbar2 = createComponent({
|
|
|
861
861
|
elementClass: TableToolbar$1,
|
|
862
862
|
displayName: "TableToolbar"
|
|
863
863
|
});
|
|
864
|
-
const
|
|
864
|
+
const TableHeadCell$1 = createComponent({
|
|
865
865
|
tagName: "m-table-head-cell",
|
|
866
|
-
elementClass: TableHeadCell$
|
|
866
|
+
elementClass: TableHeadCell$2,
|
|
867
867
|
displayName: "TableHeadCell",
|
|
868
868
|
events: {
|
|
869
869
|
onSort: "columnsort"
|
|
@@ -884,13 +884,87 @@ const TableSelectionCell = createComponent({
|
|
|
884
884
|
elementClass: TableSelectionCell$1,
|
|
885
885
|
displayName: "TableSelectionCell"
|
|
886
886
|
});
|
|
887
|
-
const
|
|
887
|
+
const Table$1 = createComponent({
|
|
888
888
|
tagName: "m-table",
|
|
889
|
-
elementClass: Table$
|
|
889
|
+
elementClass: Table$2,
|
|
890
890
|
displayName: "Table",
|
|
891
891
|
events: {
|
|
892
892
|
onSelect: "select"
|
|
893
893
|
},
|
|
894
|
+
subComponents: {
|
|
895
|
+
Head: TableHead$1,
|
|
896
|
+
Body: TableBody$1,
|
|
897
|
+
Foot: TableFoot$1,
|
|
898
|
+
Row: TableRow$1,
|
|
899
|
+
HeadCell: TableHeadCell$1,
|
|
900
|
+
Cell: TableCell$1,
|
|
901
|
+
SelectionCell: TableSelectionCell,
|
|
902
|
+
Toolbar: TableToolbar2,
|
|
903
|
+
Feedback: TableFeedback2,
|
|
904
|
+
Actions: TableActions2
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
const TableHead2 = createComponent({
|
|
908
|
+
tagName: "m-table-head-v2",
|
|
909
|
+
elementClass: TableHeadV2,
|
|
910
|
+
displayName: "TableHeadV2"
|
|
911
|
+
});
|
|
912
|
+
const TableBody2 = createComponent({
|
|
913
|
+
tagName: "m-table-body-v2",
|
|
914
|
+
elementClass: TableBodyV2,
|
|
915
|
+
displayName: "TableBodyV2"
|
|
916
|
+
});
|
|
917
|
+
const TableFoot2 = createComponent({
|
|
918
|
+
tagName: "m-table-foot-v2",
|
|
919
|
+
elementClass: TableFootV2,
|
|
920
|
+
displayName: "TableFootV2"
|
|
921
|
+
});
|
|
922
|
+
const TableRow2 = createComponent({
|
|
923
|
+
tagName: "m-table-row-v2",
|
|
924
|
+
elementClass: TableRowV2,
|
|
925
|
+
displayName: "TableRowV2"
|
|
926
|
+
});
|
|
927
|
+
const TableCell2 = createComponent({
|
|
928
|
+
tagName: "m-table-cell-v2",
|
|
929
|
+
elementClass: TableCellV2,
|
|
930
|
+
displayName: "TableCellV2"
|
|
931
|
+
});
|
|
932
|
+
const TableHeadCell2 = createComponent({
|
|
933
|
+
tagName: "m-table-head-cell-v2",
|
|
934
|
+
elementClass: TableHeadCellV2,
|
|
935
|
+
displayName: "TableHeadCellV2",
|
|
936
|
+
events: {
|
|
937
|
+
onSort: "columnsort"
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
const TableRowSelect = createComponent({
|
|
941
|
+
tagName: "m-table-row-select-v2",
|
|
942
|
+
elementClass: TableRowSelectV2,
|
|
943
|
+
displayName: "TableRowSelectV2"
|
|
944
|
+
});
|
|
945
|
+
const TableRowExpand = createComponent({
|
|
946
|
+
tagName: "m-table-row-expand-v2",
|
|
947
|
+
elementClass: TableRowExpandV2,
|
|
948
|
+
displayName: "TableRowExpandV2"
|
|
949
|
+
});
|
|
950
|
+
function TableRowExpansion(props) {
|
|
951
|
+
const { children } = props;
|
|
952
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, React__default.Children.map(children, (child) => {
|
|
953
|
+
if (React__default.isValidElement(child)) {
|
|
954
|
+
return React__default.cloneElement(child, { slot: "expansion" });
|
|
955
|
+
}
|
|
956
|
+
return child;
|
|
957
|
+
}));
|
|
958
|
+
}
|
|
959
|
+
const Table2 = createComponent({
|
|
960
|
+
tagName: "m-table-v2",
|
|
961
|
+
elementClass: TableV2,
|
|
962
|
+
displayName: "TableV2",
|
|
963
|
+
events: {
|
|
964
|
+
onSelect: "select",
|
|
965
|
+
onExpand: "expand",
|
|
966
|
+
onCollapse: "collapse"
|
|
967
|
+
},
|
|
894
968
|
subComponents: {
|
|
895
969
|
Head: TableHead2,
|
|
896
970
|
Body: TableBody2,
|
|
@@ -898,10 +972,9 @@ const Table2 = createComponent({
|
|
|
898
972
|
Row: TableRow2,
|
|
899
973
|
HeadCell: TableHeadCell2,
|
|
900
974
|
Cell: TableCell2,
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
Actions: TableActions2
|
|
975
|
+
RowSelect: TableRowSelect,
|
|
976
|
+
RowExpand: TableRowExpand,
|
|
977
|
+
RowExpansion: TableRowExpansion
|
|
905
978
|
}
|
|
906
979
|
});
|
|
907
980
|
const TableLayoutToolbar = createComponent({
|
|
@@ -1222,21 +1295,30 @@ export {
|
|
|
1222
1295
|
Switcher2 as Switcher,
|
|
1223
1296
|
Tab2 as Tab,
|
|
1224
1297
|
TabPanel2 as TabPanel,
|
|
1225
|
-
|
|
1298
|
+
Table$1 as Table,
|
|
1226
1299
|
TableActions2 as TableActions,
|
|
1227
|
-
|
|
1228
|
-
|
|
1300
|
+
TableBody$1 as TableBody,
|
|
1301
|
+
TableBody2 as TableBodyV2,
|
|
1302
|
+
TableCell$1 as TableCell,
|
|
1303
|
+
TableCell2 as TableCellV2,
|
|
1229
1304
|
TableFeedback2 as TableFeedback,
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1305
|
+
TableFoot$1 as TableFoot,
|
|
1306
|
+
TableFoot2 as TableFootV2,
|
|
1307
|
+
TableHead$1 as TableHead,
|
|
1308
|
+
TableHeadCell$1 as TableHeadCell,
|
|
1309
|
+
TableHeadCell2 as TableHeadCellV2,
|
|
1310
|
+
TableHead2 as TableHeadV2,
|
|
1233
1311
|
TableLayout,
|
|
1234
1312
|
TableLayoutActions,
|
|
1235
1313
|
TableLayoutFeedback,
|
|
1236
1314
|
TableLayoutToolbar,
|
|
1237
|
-
|
|
1315
|
+
TableRow$1 as TableRow,
|
|
1316
|
+
TableRowExpand as TableRowExpandV2,
|
|
1317
|
+
TableRowSelect as TableRowSelectV2,
|
|
1318
|
+
TableRow2 as TableRowV2,
|
|
1238
1319
|
TableSelectionCell,
|
|
1239
1320
|
TableToolbar2 as TableToolbar,
|
|
1321
|
+
Table2 as TableV2,
|
|
1240
1322
|
Tabs2 as Tabs,
|
|
1241
1323
|
Tag2 as Tag,
|
|
1242
1324
|
Text2 as Text,
|
package/dist/tokens.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ export * from "@loadsmart/miranda-tokens/dist/themes.js";
|
|
|
5
5
|
export { }
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
declare module 'react' {
|
|
9
|
+
interface CSSProperties {
|
|
10
|
+
'--m-icon-size'?: string;
|
|
11
|
+
'--m-icon-color'?: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
8
16
|
declare module 'react' {
|
|
9
17
|
interface CSSProperties {
|
|
10
18
|
'--m-divider-margin-top'?: string;
|
|
@@ -26,14 +34,6 @@ declare module 'react' {
|
|
|
26
34
|
}
|
|
27
35
|
|
|
28
36
|
|
|
29
|
-
declare module 'react' {
|
|
30
|
-
interface CSSProperties {
|
|
31
|
-
'--m-icon-size'?: string;
|
|
32
|
-
'--m-icon-color'?: string;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
37
|
declare module 'react' {
|
|
38
38
|
interface CSSProperties {
|
|
39
39
|
'--m-table-border-radius'?: string;
|
|
@@ -53,6 +53,18 @@ declare module 'react' {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
56
|
+
declare module 'react' {
|
|
57
|
+
interface CSSProperties {
|
|
58
|
+
'--m-table-border-radius'?: string;
|
|
59
|
+
'--m-table-border-top-left-radius'?: string;
|
|
60
|
+
'--m-table-border-top-right-radius'?: string;
|
|
61
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
62
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
63
|
+
'--m-table-border-width'?: string;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
56
68
|
declare module 'react' {
|
|
57
69
|
interface CSSProperties {
|
|
58
70
|
'--m-table-border-radius'?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/miranda-react",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.72",
|
|
4
4
|
"description": "React component library based on Miranda Web Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@lit/react": "^1.0.5",
|
|
44
|
-
"@loadsmart/miranda-tokens": "4.0.0-beta.
|
|
45
|
-
"@loadsmart/miranda-wc": "3.0.0-beta.
|
|
44
|
+
"@loadsmart/miranda-tokens": "4.0.0-beta.72",
|
|
45
|
+
"@loadsmart/miranda-wc": "3.0.0-beta.72",
|
|
46
46
|
"react-is": "^18.3.1"
|
|
47
47
|
},
|
|
48
48
|
"directories": {
|