@loadsmart/miranda-react 3.0.0-beta.70 → 3.0.0-beta.71

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 CHANGED
@@ -39,6 +39,7 @@ import { PopoverPlacement } from '@loadsmart/miranda-wc';
39
39
  import { PopoverPosition } from '@loadsmart/miranda-wc';
40
40
  import { PopoverRepositionEventDetail } from '@loadsmart/miranda-wc';
41
41
  import { ProgressBarVariant as ProgressBarVariant_2 } from '@loadsmart/miranda-wc';
42
+ import { PropsWithChildren } from 'react';
42
43
  import { RadioGroupOrientation } from '@loadsmart/miranda-wc';
43
44
  import { ReactElement } from 'react';
44
45
  import { ReactNode } from 'react';
@@ -51,17 +52,35 @@ import { StepNavigateEventDetail } from '@loadsmart/miranda-wc';
51
52
  import { SwitchSize } from '@loadsmart/miranda-wc';
52
53
  import { TabChangeEventDetail } from '@loadsmart/miranda-wc';
53
54
  import { TabContentDirection } from '@loadsmart/miranda-wc';
55
+ import { TableBodyV2 as TableBodyV2_2 } from '@loadsmart/miranda-wc';
54
56
  import { TableCellAlignment } from '@loadsmart/miranda-wc';
57
+ import { TableCellV2 as TableCellV2_2 } from '@loadsmart/miranda-wc';
58
+ import { TableCellV2Alignment } from '@loadsmart/miranda-wc';
59
+ import { TableCellV2TextAlignment } from '@loadsmart/miranda-wc';
60
+ import { TableExpandEventDetails } from '@loadsmart/miranda-wc/dist/components/table-v2/table.types';
61
+ import { TableExpandEventDetailsV2 } from '@loadsmart/miranda-wc';
62
+ import { TableFootV2 as TableFootV2_2 } from '@loadsmart/miranda-wc';
55
63
  import { TableHeadCellSortEventDetails } from '@loadsmart/miranda-wc';
64
+ import { TableHeadCellV2 as TableHeadCellV2_2 } from '@loadsmart/miranda-wc';
65
+ import { TableHeadCellV2SortEventDetails } from '@loadsmart/miranda-wc';
66
+ import { TableHeadV2 as TableHeadV2_2 } from '@loadsmart/miranda-wc';
56
67
  import { TableLayout as TableLayout_2 } from '@loadsmart/miranda-wc';
57
68
  import { TableLayoutActions as TableLayoutActions_2 } from '@loadsmart/miranda-wc';
58
69
  import { TableLayoutFeedback as TableLayoutFeedback_2 } from '@loadsmart/miranda-wc';
59
70
  import { TableLayoutToolbar as TableLayoutToolbar_2 } from '@loadsmart/miranda-wc';
71
+ import { TableRowExpandV2 as TableRowExpandV2_2 } from '@loadsmart/miranda-wc';
72
+ import { TableRowSelectV2 as TableRowSelectV2_2 } from '@loadsmart/miranda-wc';
73
+ import { TableRowV2 as TableRowV2_2 } from '@loadsmart/miranda-wc';
60
74
  import { TableSelectEventDetails } from '@loadsmart/miranda-wc';
61
75
  import { TableSelectEventDetails as TableSelectEventDetails_2 } from '@loadsmart/miranda-wc/dist/components/table/table.types';
76
+ import { TableSelectEventDetails as TableSelectEventDetails_3 } from '@loadsmart/miranda-wc/dist/components/table-v2/table.types';
77
+ import { TableSelectEventDetailsV2 } from '@loadsmart/miranda-wc';
62
78
  import { TableSelectionCell as TableSelectionCell_2 } from '@loadsmart/miranda-wc';
63
79
  import { TableSize } from '@loadsmart/miranda-wc';
64
80
  import { TableSortDirection } from '@loadsmart/miranda-wc';
81
+ import { TableV2 as TableV2_2 } from '@loadsmart/miranda-wc';
82
+ import { TableV2Size } from '@loadsmart/miranda-wc';
83
+ import { TableV2SortDirection } from '@loadsmart/miranda-wc';
65
84
  import { TagSize } from '@loadsmart/miranda-wc';
66
85
  import { TagVariant } from '@loadsmart/miranda-wc';
67
86
  import { TimelineItemVariant } from '@loadsmart/miranda-wc';
@@ -886,12 +905,26 @@ export declare const TableBody: ReactWebComponent<WCTableBody, {}>;
886
905
 
887
906
  export declare type TableBodyProps = ComponentProps<typeof TableBody>;
888
907
 
908
+ export declare const TableBodyV2: ReactWebComponent<TableBodyV2_2, {}>;
909
+
910
+ export declare type TableBodyV2Props = ComponentProps<typeof TableBodyV2>;
911
+
889
912
  export declare const TableCell: ReactWebComponent<WCTableCell, {}>;
890
913
 
891
914
  export { TableCellAlignment }
892
915
 
893
916
  export declare type TableCellProps = ComponentProps<typeof TableCell>;
894
917
 
918
+ export declare const TableCellV2: ReactWebComponent<TableCellV2_2, {}>;
919
+
920
+ export { TableCellV2Alignment }
921
+
922
+ export declare type TableCellV2Props = ComponentProps<typeof TableCellV2>;
923
+
924
+ export { TableCellV2TextAlignment }
925
+
926
+ export { TableExpandEventDetailsV2 }
927
+
895
928
  export declare const TableFeedback: ReactWebComponent<WCTableFeedback, {}>;
896
929
 
897
930
  export declare type TableFeedbackProps = ComponentProps<typeof TableFeedback>;
@@ -900,6 +933,10 @@ export declare const TableFoot: ReactWebComponent<WCTableFoot, {}>;
900
933
 
901
934
  export declare type TableFootProps = ComponentProps<typeof TableFoot>;
902
935
 
936
+ export declare const TableFootV2: ReactWebComponent<TableFootV2_2, {}>;
937
+
938
+ export declare type TableFootV2Props = ComponentProps<typeof TableFootV2>;
939
+
903
940
  export declare const TableHead: ReactWebComponent<WCTableHead, {}>;
904
941
 
905
942
  export declare const TableHeadCell: ReactWebComponent<WCTableHeadCell, {
@@ -910,8 +947,20 @@ export declare type TableHeadCellProps = ComponentProps<typeof TableHeadCell>;
910
947
 
911
948
  export { TableHeadCellSortEventDetails }
912
949
 
950
+ export declare const TableHeadCellV2: ReactWebComponent<TableHeadCellV2_2, {
951
+ onSort: EventName<CustomEvent<TableHeadCellSortEventDetails>>;
952
+ }>;
953
+
954
+ export declare type TableHeadCellV2Props = ComponentProps<typeof TableHeadCellV2>;
955
+
956
+ export { TableHeadCellV2SortEventDetails }
957
+
913
958
  export declare type TableHeadProps = ComponentProps<typeof TableHead>;
914
959
 
960
+ export declare const TableHeadV2: ReactWebComponent<TableHeadV2_2, {}>;
961
+
962
+ export declare type TableHeadV2Props = ComponentProps<typeof TableHeadV2>;
963
+
915
964
  export declare const TableLayout: ReactWebComponent<TableLayout_2, {}> & {
916
965
  Toolbar: ReactWebComponent<TableLayoutToolbar_2, {}>;
917
966
  Feedback: ReactWebComponent<TableLayoutFeedback_2, {}>;
@@ -936,10 +985,30 @@ export declare type TableProps = ComponentProps<typeof Table>;
936
985
 
937
986
  export declare const TableRow: ReactWebComponent<WCTableRow, {}>;
938
987
 
988
+ export declare const TableRowExpandV2: ReactWebComponent<TableRowExpandV2_2, {}>;
989
+
990
+ export declare type TableRowExpandV2Props = ComponentProps<typeof TableRowExpandV2>;
991
+
992
+ /**
993
+ * this component should ensure that all children include the attribute slot = "expansion"
994
+ * so they can be rendered in the expansion content of the table row.
995
+ */
996
+ declare function TableRowExpansion(props: PropsWithChildren<ReactNode>): default_2.JSX.Element;
997
+
939
998
  export declare type TableRowProps = ComponentProps<typeof TableRow>;
940
999
 
1000
+ export declare const TableRowSelectV2: ReactWebComponent<TableRowSelectV2_2, {}>;
1001
+
1002
+ export declare type TableRowSelectV2Props = ComponentProps<typeof TableRowSelectV2>;
1003
+
1004
+ export declare const TableRowV2: ReactWebComponent<TableRowV2_2, {}>;
1005
+
1006
+ export declare type TableRowV2Props = ComponentProps<typeof TableRowV2>;
1007
+
941
1008
  export { TableSelectEventDetails }
942
1009
 
1010
+ export { TableSelectEventDetailsV2 }
1011
+
943
1012
  export declare const TableSelectionCell: ReactWebComponent<TableSelectionCell_2, {}>;
944
1013
 
945
1014
  export declare type TableSelectionCellProps = ComponentProps<typeof TableSelectionCell>;
@@ -952,6 +1021,30 @@ export declare const TableToolbar: ReactWebComponent<WCTableToolbar, {}>;
952
1021
 
953
1022
  export declare type TableToolbarProps = ComponentProps<typeof TableToolbar>;
954
1023
 
1024
+ export declare const TableV2: ReactWebComponent<TableV2_2, {
1025
+ onSelect: EventName<CustomEvent<TableSelectEventDetails_3>>;
1026
+ onExpand: EventName<CustomEvent<TableExpandEventDetails>>;
1027
+ onCollapse: EventName<CustomEvent<TableExpandEventDetails>>;
1028
+ }> & {
1029
+ Head: ReactWebComponent<TableHeadV2_2, {}>;
1030
+ Body: ReactWebComponent<TableBodyV2_2, {}>;
1031
+ Foot: ReactWebComponent<TableFootV2_2, {}>;
1032
+ Row: ReactWebComponent<TableRowV2_2, {}>;
1033
+ HeadCell: ReactWebComponent<TableHeadCellV2_2, {
1034
+ onSort: EventName<CustomEvent<TableHeadCellSortEventDetails>>;
1035
+ }>;
1036
+ Cell: ReactWebComponent<TableCellV2_2, {}>;
1037
+ RowSelect: ReactWebComponent<TableRowSelectV2_2, {}>;
1038
+ RowExpand: ReactWebComponent<TableRowExpandV2_2, {}>;
1039
+ RowExpansion: typeof TableRowExpansion;
1040
+ };
1041
+
1042
+ export declare type TableV2Props = ComponentProps<typeof TableV2>;
1043
+
1044
+ export { TableV2Size }
1045
+
1046
+ export { TableV2SortDirection }
1047
+
955
1048
  export declare const TabPanel: ReactWebComponent<WCTabPanel, {}>;
956
1049
 
957
1050
  export declare type TabPanelProps = ComponentProps<typeof TabPanel>;
@@ -1498,6 +1591,18 @@ declare const WiredTooltip: ReactWebComponent<WCTooltip, {}>;
1498
1591
  export { }
1499
1592
 
1500
1593
 
1594
+ declare module 'react' {
1595
+ interface CSSProperties {
1596
+ '--m-card-body-padding'?: string;
1597
+ '--m-card-border-top'?: string;
1598
+ '--m-card-border-left'?: string;
1599
+ '--m-card-border-bottom'?: string;
1600
+ '--m-card-border-right'?: string;
1601
+ '--m-card-border-radius'?: string;
1602
+ }
1603
+ }
1604
+
1605
+
1501
1606
  declare module 'react' {
1502
1607
  interface CSSProperties {
1503
1608
  '--m-divider-margin-top'?: string;
@@ -1509,20 +1614,16 @@ declare module 'react' {
1509
1614
 
1510
1615
  declare module 'react' {
1511
1616
  interface CSSProperties {
1512
- '--m-card-body-padding'?: string;
1513
- '--m-card-border-top'?: string;
1514
- '--m-card-border-left'?: string;
1515
- '--m-card-border-bottom'?: string;
1516
- '--m-card-border-right'?: string;
1517
- '--m-card-border-radius'?: string;
1617
+ '--m-icon-size'?: string;
1618
+ '--m-icon-color'?: string;
1518
1619
  }
1519
1620
  }
1520
1621
 
1521
1622
 
1522
1623
  declare module 'react' {
1523
1624
  interface CSSProperties {
1524
- '--m-icon-size'?: string;
1525
- '--m-icon-color'?: string;
1625
+ '--m-text-display'?: string;
1626
+ '--m-text-max-width'?: string;
1526
1627
  }
1527
1628
  }
1528
1629
 
@@ -1540,8 +1641,11 @@ declare module 'react' {
1540
1641
 
1541
1642
  declare module 'react' {
1542
1643
  interface CSSProperties {
1543
- '--m-text-display'?: string;
1544
- '--m-text-max-width'?: string;
1644
+ '--m-table-border-radius'?: string;
1645
+ '--m-table-border-top-left-radius'?: string;
1646
+ '--m-table-border-top-right-radius'?: string;
1647
+ '--m-table-border-bottom-left-radius'?: string;
1648
+ '--m-table-border-bottom-right-radius'?: string;
1545
1649
  }
1546
1650
  }
1547
1651
 
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, TableBody as TableBody$1, TableFoot as TableFoot$1, TableRow as TableRow$1, TableCell as TableCell$1, TableToolbar as TableToolbar$1, TableHeadCell as TableHeadCell$1, TableFeedback as TableFeedback$1, TableActions as TableActions$1, TableSelectionCell as TableSelectionCell$1, Table as Table$1, 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";
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 TableHead2 = createComponent({
834
+ const TableHead$1 = createComponent({
835
835
  tagName: "m-table-head",
836
- elementClass: TableHead$1,
836
+ elementClass: TableHead$2,
837
837
  displayName: "TableHead"
838
838
  });
839
- const TableBody2 = createComponent({
839
+ const TableBody$1 = createComponent({
840
840
  tagName: "m-table-body",
841
- elementClass: TableBody$1,
841
+ elementClass: TableBody$2,
842
842
  displayName: "TableBody"
843
843
  });
844
- const TableFoot2 = createComponent({
844
+ const TableFoot$1 = createComponent({
845
845
  tagName: "m-table-foot",
846
- elementClass: TableFoot$1,
846
+ elementClass: TableFoot$2,
847
847
  displayName: "TableFoot"
848
848
  });
849
- const TableRow2 = createComponent({
849
+ const TableRow$1 = createComponent({
850
850
  tagName: "m-table-row",
851
- elementClass: TableRow$1,
851
+ elementClass: TableRow$2,
852
852
  displayName: "TableRow"
853
853
  });
854
- const TableCell2 = createComponent({
854
+ const TableCell$1 = createComponent({
855
855
  tagName: "m-table-cell",
856
- elementClass: TableCell$1,
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 TableHeadCell2 = createComponent({
864
+ const TableHeadCell$1 = createComponent({
865
865
  tagName: "m-table-head-cell",
866
- elementClass: TableHeadCell$1,
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 Table2 = createComponent({
887
+ const Table$1 = createComponent({
888
888
  tagName: "m-table",
889
- elementClass: Table$1,
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
- SelectionCell: TableSelectionCell,
902
- Toolbar: TableToolbar2,
903
- Feedback: TableFeedback2,
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
- Table2 as Table,
1298
+ Table$1 as Table,
1226
1299
  TableActions2 as TableActions,
1227
- TableBody2 as TableBody,
1228
- TableCell2 as TableCell,
1300
+ TableBody$1 as TableBody,
1301
+ TableBody2 as TableBodyV2,
1302
+ TableCell$1 as TableCell,
1303
+ TableCell2 as TableCellV2,
1229
1304
  TableFeedback2 as TableFeedback,
1230
- TableFoot2 as TableFoot,
1231
- TableHead2 as TableHead,
1232
- TableHeadCell2 as TableHeadCell,
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
- TableRow2 as TableRow,
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,18 @@ export * from "@loadsmart/miranda-tokens/dist/themes.js";
5
5
  export { }
6
6
 
7
7
 
8
+ declare module 'react' {
9
+ interface CSSProperties {
10
+ '--m-card-body-padding'?: string;
11
+ '--m-card-border-top'?: string;
12
+ '--m-card-border-left'?: string;
13
+ '--m-card-border-bottom'?: string;
14
+ '--m-card-border-right'?: string;
15
+ '--m-card-border-radius'?: string;
16
+ }
17
+ }
18
+
19
+
8
20
  declare module 'react' {
9
21
  interface CSSProperties {
10
22
  '--m-divider-margin-top'?: string;
@@ -16,20 +28,16 @@ declare module 'react' {
16
28
 
17
29
  declare module 'react' {
18
30
  interface CSSProperties {
19
- '--m-card-body-padding'?: string;
20
- '--m-card-border-top'?: string;
21
- '--m-card-border-left'?: string;
22
- '--m-card-border-bottom'?: string;
23
- '--m-card-border-right'?: string;
24
- '--m-card-border-radius'?: string;
31
+ '--m-icon-size'?: string;
32
+ '--m-icon-color'?: string;
25
33
  }
26
34
  }
27
35
 
28
36
 
29
37
  declare module 'react' {
30
38
  interface CSSProperties {
31
- '--m-icon-size'?: string;
32
- '--m-icon-color'?: string;
39
+ '--m-text-display'?: string;
40
+ '--m-text-max-width'?: string;
33
41
  }
34
42
  }
35
43
 
@@ -47,8 +55,11 @@ declare module 'react' {
47
55
 
48
56
  declare module 'react' {
49
57
  interface CSSProperties {
50
- '--m-text-display'?: string;
51
- '--m-text-max-width'?: string;
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;
52
63
  }
53
64
  }
54
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadsmart/miranda-react",
3
- "version": "3.0.0-beta.70",
3
+ "version": "3.0.0-beta.71",
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.70",
45
- "@loadsmart/miranda-wc": "3.0.0-beta.70",
44
+ "@loadsmart/miranda-tokens": "4.0.0-beta.71",
45
+ "@loadsmart/miranda-wc": "3.0.0-beta.71",
46
46
  "react-is": "^18.3.1"
47
47
  },
48
48
  "directories": {