@loadsmart/miranda-react 4.0.0-alpha.6 → 4.0.0-alpha.8
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/CHANGELOG.md +1 -0
- package/dist/index.d.ts +36 -59
- package/dist/index.js +33 -1
- package/dist/tokens.d.ts +11 -11
- package/package.json +67 -66
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Please check our [releases](https://github.com/loadsmart/miranda-wc/releases?q=miranda-react) page for the complete CHANGELOG.
|
package/dist/index.d.ts
CHANGED
|
@@ -44,9 +44,14 @@ import { ReactElement } from 'react';
|
|
|
44
44
|
import { ReactNode } from 'react';
|
|
45
45
|
import { ReactWebComponent } from '@lit/react';
|
|
46
46
|
import { RefAttributes } from 'react';
|
|
47
|
+
import { SelectionProps } from 'utils/SelectionProps';
|
|
47
48
|
import { SelectionType } from '@loadsmart/miranda-wc';
|
|
48
49
|
import { SelectionValue } from '@loadsmart/miranda-wc';
|
|
49
50
|
import { SideNavigationTrigger as SideNavigationTrigger_2 } from '@loadsmart/miranda-wc';
|
|
51
|
+
import { Skeleton as Skeleton_2 } from '@loadsmart/miranda-wc';
|
|
52
|
+
import { SkeletonAvatar as SkeletonAvatar_2 } from '@loadsmart/miranda-wc';
|
|
53
|
+
import { SkeletonTag as SkeletonTag_2 } from '@loadsmart/miranda-wc';
|
|
54
|
+
import { SkeletonText as SkeletonText_2 } from '@loadsmart/miranda-wc';
|
|
50
55
|
import { StepChangeEventDetail } from '@loadsmart/miranda-wc';
|
|
51
56
|
import { StepNavigateEventDetail } from '@loadsmart/miranda-wc';
|
|
52
57
|
import { SwitchSize } from '@loadsmart/miranda-wc';
|
|
@@ -338,11 +343,6 @@ export declare type BannerProps = ComponentProps<typeof Banner>;
|
|
|
338
343
|
|
|
339
344
|
export { BannerVariant }
|
|
340
345
|
|
|
341
|
-
declare interface BaseProps<TValue> {
|
|
342
|
-
type?: SelectionType;
|
|
343
|
-
value?: TValue;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
346
|
export declare const Box: ReactWebComponent<WCBox, {}>;
|
|
347
347
|
|
|
348
348
|
export declare type BoxProps = ComponentProps<typeof Box>;
|
|
@@ -734,12 +734,6 @@ export declare type LogoLoaderProps = ComponentProps<typeof LogoLoader>;
|
|
|
734
734
|
*/
|
|
735
735
|
export declare type MirandaChangeEvent<T = Element> = ChangeEvent<T> & Event;
|
|
736
736
|
|
|
737
|
-
/**
|
|
738
|
-
* This is a patch type to make our components compatible to React's
|
|
739
|
-
* synthetic event types.
|
|
740
|
-
*/
|
|
741
|
-
declare type MirandaChangeEvent_2<T = Element> = ChangeEvent<T> & Event;
|
|
742
|
-
|
|
743
737
|
export declare const Page: ReactWebComponent<WCPage, {}> & {
|
|
744
738
|
Content: ReactWebComponent<WCPageContent, {}> & {
|
|
745
739
|
Body: ReactWebComponent<WCBody, {}>;
|
|
@@ -823,43 +817,6 @@ export declare namespace Select {
|
|
|
823
817
|
var Option: default_2.ForwardRefExoticComponent<Omit<SelectOptionProps, "ref"> & default_2.RefAttributes<WCSelectOption>>;
|
|
824
818
|
}
|
|
825
819
|
|
|
826
|
-
declare type SelectionChangeEventHandler<TComponent, T> = (
|
|
827
|
-
event: MirandaChangeEvent_2<Omit<TComponent, 'value'> & { value: T }>,
|
|
828
|
-
) => void;
|
|
829
|
-
|
|
830
|
-
declare type SelectionOption<TValue extends string = string> = {
|
|
831
|
-
value: TValue;
|
|
832
|
-
};
|
|
833
|
-
|
|
834
|
-
declare type SelectionProps<
|
|
835
|
-
TComponent,
|
|
836
|
-
TProps extends BaseProps<SelectionValue<string>>,
|
|
837
|
-
TSelectionType extends SelectionType = SelectionType,
|
|
838
|
-
OptionValue extends string = string,
|
|
839
|
-
TSelectionOption extends SelectionOption<OptionValue> = SelectionOption<OptionValue>,
|
|
840
|
-
TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>,
|
|
841
|
-
> = Omit<TProps, 'type' | 'value' | 'options' | 'onChange'> & {
|
|
842
|
-
type?: TSelectionType;
|
|
843
|
-
value?: TSelectionType extends 'single'
|
|
844
|
-
? TOptions[number]['value'] | null
|
|
845
|
-
: TSelectionType extends 'single-strict'
|
|
846
|
-
? TOptions[number]['value']
|
|
847
|
-
: TSelectionType extends 'multiple'
|
|
848
|
-
? ReadonlyArray<TOptions[number]['value']> | null
|
|
849
|
-
: SelectionValue<TOptions[number]['value']>; // Infer value type from options
|
|
850
|
-
options?: TOptions;
|
|
851
|
-
onChange?: SelectionChangeEventHandler<
|
|
852
|
-
TComponent,
|
|
853
|
-
TSelectionType extends 'single'
|
|
854
|
-
? TOptions[number]['value'] | null
|
|
855
|
-
: TSelectionType extends 'single-strict'
|
|
856
|
-
? TOptions[number]['value']
|
|
857
|
-
: TSelectionType extends 'multiple'
|
|
858
|
-
? Array<TOptions[number]['value']> | null
|
|
859
|
-
: SelectionValue<TOptions[number]['value']>
|
|
860
|
-
>;
|
|
861
|
-
};
|
|
862
|
-
|
|
863
820
|
export { SelectionType }
|
|
864
821
|
|
|
865
822
|
export { SelectionValue }
|
|
@@ -947,6 +904,26 @@ export declare const SideNavigationTrigger: ReactWebComponent<SideNavigationTrig
|
|
|
947
904
|
|
|
948
905
|
export declare type SideNavigationTriggerProps = ComponentProps<typeof SideNavigationTrigger>;
|
|
949
906
|
|
|
907
|
+
export declare const Skeleton: ReactWebComponent<Skeleton_2, {}> & {
|
|
908
|
+
Text: ReactWebComponent<SkeletonText_2, {}>;
|
|
909
|
+
Tag: ReactWebComponent<SkeletonTag_2, {}>;
|
|
910
|
+
Avatar: ReactWebComponent<SkeletonAvatar_2, {}>;
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
export declare const SkeletonAvatar: ReactWebComponent<SkeletonAvatar_2, {}>;
|
|
914
|
+
|
|
915
|
+
export declare type SkeletonAvatarProps = ComponentProps<typeof SkeletonAvatar>;
|
|
916
|
+
|
|
917
|
+
export declare type SkeletonProps = ComponentProps<typeof Skeleton>;
|
|
918
|
+
|
|
919
|
+
export declare const SkeletonTag: ReactWebComponent<SkeletonTag_2, {}>;
|
|
920
|
+
|
|
921
|
+
export declare type SkeletonTagProps = ComponentProps<typeof SkeletonTag>;
|
|
922
|
+
|
|
923
|
+
export declare const SkeletonText: ReactWebComponent<SkeletonText_2, {}>;
|
|
924
|
+
|
|
925
|
+
export declare type SkeletonTextProps = ComponentProps<typeof SkeletonText>;
|
|
926
|
+
|
|
950
927
|
export declare const SpinnerWheel: ReactWebComponent<WCSpinnerWheel, {}>;
|
|
951
928
|
|
|
952
929
|
export declare type SpinnerWheelProps = ComponentProps<typeof SpinnerWheel>;
|
|
@@ -1801,17 +1778,20 @@ declare module 'react' {
|
|
|
1801
1778
|
|
|
1802
1779
|
declare module 'react' {
|
|
1803
1780
|
interface CSSProperties {
|
|
1804
|
-
'--m-
|
|
1805
|
-
'--m-
|
|
1806
|
-
'--m-
|
|
1781
|
+
'--m-table-border-radius'?: string;
|
|
1782
|
+
'--m-table-border-top-left-radius'?: string;
|
|
1783
|
+
'--m-table-border-top-right-radius'?: string;
|
|
1784
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
1785
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
1807
1786
|
}
|
|
1808
1787
|
}
|
|
1809
1788
|
|
|
1810
1789
|
|
|
1811
1790
|
declare module 'react' {
|
|
1812
1791
|
interface CSSProperties {
|
|
1813
|
-
'--m-
|
|
1814
|
-
'--m-
|
|
1792
|
+
'--m-divider-margin-top'?: string;
|
|
1793
|
+
'--m-divider-margin-bottom'?: string;
|
|
1794
|
+
'--m-divider-margin-y'?: string;
|
|
1815
1795
|
}
|
|
1816
1796
|
}
|
|
1817
1797
|
|
|
@@ -1823,18 +1803,14 @@ declare module 'react' {
|
|
|
1823
1803
|
'--m-table-border-top-right-radius'?: string;
|
|
1824
1804
|
'--m-table-border-bottom-left-radius'?: string;
|
|
1825
1805
|
'--m-table-border-bottom-right-radius'?: string;
|
|
1826
|
-
'--m-table-border-width'?: string;
|
|
1827
1806
|
}
|
|
1828
1807
|
}
|
|
1829
1808
|
|
|
1830
1809
|
|
|
1831
1810
|
declare module 'react' {
|
|
1832
1811
|
interface CSSProperties {
|
|
1833
|
-
'--m-
|
|
1834
|
-
'--m-
|
|
1835
|
-
'--m-table-border-top-right-radius'?: string;
|
|
1836
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
1837
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
1812
|
+
'--m-text-display'?: string;
|
|
1813
|
+
'--m-text-max-width'?: string;
|
|
1838
1814
|
}
|
|
1839
1815
|
}
|
|
1840
1816
|
|
|
@@ -1846,5 +1822,6 @@ declare module 'react' {
|
|
|
1846
1822
|
'--m-table-border-top-right-radius'?: string;
|
|
1847
1823
|
'--m-table-border-bottom-left-radius'?: string;
|
|
1848
1824
|
'--m-table-border-bottom-right-radius'?: string;
|
|
1825
|
+
'--m-table-border-width'?: string;
|
|
1849
1826
|
}
|
|
1850
1827
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccordionTitle as AccordionTitle$1, AccordionContent as AccordionContent$1, Accordion as Accordion$1, Avatar as Avatar$1, BackButton as BackButton$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, DropdownDivider as DropdownDivider$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, 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, Page as Page$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, SideNavigationBody as SideNavigationBody$1, SideNavigationDivider as SideNavigationDivider$1, SideNavigationFooter as SideNavigationFooter$1, SideNavigationHeader as SideNavigationHeader$1, SideNavigationItem as SideNavigationItem$1, SideNavigationSubNav as SideNavigationSubNav$1, SideNavigationSubNavContent as SideNavigationSubNavContent$1, SideNavigationSubNavItem as SideNavigationSubNavItem$1, SideNavigationSubNavTitle as SideNavigationSubNavTitle$1, SideNavigationTrigger as SideNavigationTrigger$1, SideNavigation as SideNavigation$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, TagRemove as TagRemove$1, TagExpand as TagExpand$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, 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, TopNavigationItem as TopNavigationItem$1, TopNavigation as TopNavigation$1, LogoLoader as LogoLoader$1, DotsLoader as DotsLoader$1, FileItem, FilePicker as FilePicker$1 } from "@loadsmart/miranda-wc";
|
|
1
|
+
import { AccordionTitle as AccordionTitle$1, AccordionContent as AccordionContent$1, Accordion as Accordion$1, Avatar as Avatar$1, BackButton as BackButton$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, DropdownDivider as DropdownDivider$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, 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, Page as Page$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, SideNavigationBody as SideNavigationBody$1, SideNavigationDivider as SideNavigationDivider$1, SideNavigationFooter as SideNavigationFooter$1, SideNavigationHeader as SideNavigationHeader$1, SideNavigationItem as SideNavigationItem$1, SideNavigationSubNav as SideNavigationSubNav$1, SideNavigationSubNavContent as SideNavigationSubNavContent$1, SideNavigationSubNavItem as SideNavigationSubNavItem$1, SideNavigationSubNavTitle as SideNavigationSubNavTitle$1, SideNavigationTrigger as SideNavigationTrigger$1, SideNavigation as SideNavigation$1, SkeletonText as SkeletonText$1, SkeletonTag as SkeletonTag$1, SkeletonAvatar as SkeletonAvatar$1, Skeleton as Skeleton$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, TagRemove as TagRemove$1, TagExpand as TagExpand$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, 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, TopNavigationItem as TopNavigationItem$1, TopNavigation as TopNavigation$1, LogoLoader as LogoLoader$1, DotsLoader as DotsLoader$1, FileItem, FilePicker as FilePicker$1 } from "@loadsmart/miranda-wc";
|
|
2
2
|
import { DIALOG_SIZES, DIALOG_VARIANTS, DRAWER_SIZES, EMPTY_STATE_VARIANTS, Accordion, AccordionContent, AccordionTitle, ActionableTag, Avatar, BackButton, Badge, Banner, BannerActionPrimary, BannerActionSecondary, BannerActions, BannerDescription, BannerIcon, BannerTitle, Body, Box, Button, Card, CardActionPrimary, CardActionSecondary, CardActionTertiary, CardBody, CardDivider, CardFooter, CardSubtitle, CardTitle, CaretButton, Checkbox, CloseButton, 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, FilePicker, Grid, Group, Header, HeaderActions, HeaderContent, HeaderTitle, Icon, Label, LabeledValue, LabeledValueLabel, LabeledValueValue, Link, LogoLoader, Page, PageContent, Pagination, ProgressBar, ProgressBarCountdown, Radio, RadioGroup, Row, Section, SectionTitle, Select, SelectOption, SideNavigation, SideNavigationBody, SideNavigationDivider, SideNavigationFooter, SideNavigationHeader, SideNavigationItem, SideNavigationSubNav, SideNavigationSubNavContent, SideNavigationSubNavItem, SideNavigationSubNavTitle, Sidebar, SpinnerWheel, Stack, Step, Steps, SubHeader, Switch, Switcher, Tab, TabPanel, Table, TableActions, TableBody, TableCell, TableFeedback, TableFoot, TableHead, TableHeadCell, TableRow, TableToolbar, TableV2 as TableV22, Tabs, Tag, Text, TextArea, TextField, Timeline, 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,6 +831,34 @@ const SideNavigation2 = createComponent({
|
|
|
831
831
|
Trigger: SideNavigationTrigger
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
|
+
const SkeletonTextComponent = createComponent({
|
|
835
|
+
tagName: "m-skeleton-text",
|
|
836
|
+
elementClass: SkeletonText$1,
|
|
837
|
+
displayName: "Skeleton.Text"
|
|
838
|
+
});
|
|
839
|
+
const SkeletonText = SkeletonTextComponent;
|
|
840
|
+
const SkeletonTagComponent = createComponent({
|
|
841
|
+
tagName: "m-skeleton-tag",
|
|
842
|
+
elementClass: SkeletonTag$1,
|
|
843
|
+
displayName: "Skeleton.Tag"
|
|
844
|
+
});
|
|
845
|
+
const SkeletonTag = SkeletonTagComponent;
|
|
846
|
+
const SkeletonAvatarComponent = createComponent({
|
|
847
|
+
tagName: "m-skeleton-avatar",
|
|
848
|
+
elementClass: SkeletonAvatar$1,
|
|
849
|
+
displayName: "Skeleton.Avatar"
|
|
850
|
+
});
|
|
851
|
+
const SkeletonAvatar = SkeletonAvatarComponent;
|
|
852
|
+
const Skeleton = createComponent({
|
|
853
|
+
tagName: "m-skeleton",
|
|
854
|
+
elementClass: Skeleton$1,
|
|
855
|
+
displayName: "Skeleton",
|
|
856
|
+
subComponents: {
|
|
857
|
+
Text: SkeletonText,
|
|
858
|
+
Tag: SkeletonTag,
|
|
859
|
+
Avatar: SkeletonAvatar
|
|
860
|
+
}
|
|
861
|
+
});
|
|
834
862
|
const SpinnerWheel2 = createComponent({
|
|
835
863
|
tagName: "m-spinner-wheel",
|
|
836
864
|
elementClass: SpinnerWheel$1,
|
|
@@ -1445,6 +1473,10 @@ export {
|
|
|
1445
1473
|
SideNavigationSubNavTitle2 as SideNavigationSubNavTitle,
|
|
1446
1474
|
SideNavigationTrigger,
|
|
1447
1475
|
Sidebar2 as Sidebar,
|
|
1476
|
+
Skeleton,
|
|
1477
|
+
SkeletonAvatar,
|
|
1478
|
+
SkeletonTag,
|
|
1479
|
+
SkeletonText,
|
|
1448
1480
|
SpinnerWheel2 as SpinnerWheel,
|
|
1449
1481
|
Stack2 as Stack,
|
|
1450
1482
|
Step2 as Step,
|
package/dist/tokens.d.ts
CHANGED
|
@@ -27,17 +27,20 @@ declare module 'react' {
|
|
|
27
27
|
|
|
28
28
|
declare module 'react' {
|
|
29
29
|
interface CSSProperties {
|
|
30
|
-
'--m-
|
|
31
|
-
'--m-
|
|
32
|
-
'--m-
|
|
30
|
+
'--m-table-border-radius'?: string;
|
|
31
|
+
'--m-table-border-top-left-radius'?: string;
|
|
32
|
+
'--m-table-border-top-right-radius'?: string;
|
|
33
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
34
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
|
|
37
39
|
declare module 'react' {
|
|
38
40
|
interface CSSProperties {
|
|
39
|
-
'--m-
|
|
40
|
-
'--m-
|
|
41
|
+
'--m-divider-margin-top'?: string;
|
|
42
|
+
'--m-divider-margin-bottom'?: string;
|
|
43
|
+
'--m-divider-margin-y'?: string;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -49,18 +52,14 @@ declare module 'react' {
|
|
|
49
52
|
'--m-table-border-top-right-radius'?: string;
|
|
50
53
|
'--m-table-border-bottom-left-radius'?: string;
|
|
51
54
|
'--m-table-border-bottom-right-radius'?: string;
|
|
52
|
-
'--m-table-border-width'?: string;
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
|
|
57
59
|
declare module 'react' {
|
|
58
60
|
interface CSSProperties {
|
|
59
|
-
'--m-
|
|
60
|
-
'--m-
|
|
61
|
-
'--m-table-border-top-right-radius'?: string;
|
|
62
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
63
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
61
|
+
'--m-text-display'?: string;
|
|
62
|
+
'--m-text-max-width'?: string;
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
|
|
@@ -72,5 +71,6 @@ declare module 'react' {
|
|
|
72
71
|
'--m-table-border-top-right-radius'?: string;
|
|
73
72
|
'--m-table-border-bottom-left-radius'?: string;
|
|
74
73
|
'--m-table-border-bottom-right-radius'?: string;
|
|
74
|
+
'--m-table-border-width'?: string;
|
|
75
75
|
}
|
|
76
76
|
}
|
package/package.json
CHANGED
|
@@ -1,67 +1,68 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
2
|
+
"name": "@loadsmart/miranda-react",
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
|
+
"description": "React component library based on Miranda Web Components",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build-docs": "storybook build -o ./docs",
|
|
13
|
+
"dev": "storybook dev -p 7007",
|
|
14
|
+
"test": "cypress run --component --browser chrome",
|
|
15
|
+
"cypress": "cypress open --component --browser chrome",
|
|
16
|
+
"build": "vite build",
|
|
17
|
+
"release": "semantic-release",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"figma:create": "dotenvx run -- figma connect create --outDir src/components",
|
|
20
|
+
"figma:parse": "dotenvx run -- figma connect parse",
|
|
21
|
+
"figma:publish": "dotenvx run -- figma connect publish",
|
|
22
|
+
"figma:unpublish": "dotenvx run -- figma connect unpublish",
|
|
23
|
+
"figma:build-icons": "tsx ./src/scripts/build-icons-figma-connect.ts"
|
|
24
|
+
},
|
|
25
|
+
"author": "Loadsmart",
|
|
26
|
+
"license": "UNLICENSED",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@figma/code-connect": "^1.3.6",
|
|
29
|
+
"@loadsmart/miranda-utils": "0.0.0",
|
|
30
|
+
"@types/node": "^24.1.0",
|
|
31
|
+
"@types/react": "^18.3.24",
|
|
32
|
+
"@types/react-dom": "^18.3.7",
|
|
33
|
+
"@types/react-is": "^18.3.1",
|
|
34
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
35
|
+
"react": "^18.3.1",
|
|
36
|
+
"react-dom": "^18.3.1",
|
|
37
|
+
"ts-loader": "^9.4.2",
|
|
38
|
+
"tsx": "^4.19.4",
|
|
39
|
+
"typescript": "~5.8.3",
|
|
40
|
+
"vite": "^6.3.2",
|
|
41
|
+
"vite-plugin-dts": "^4.5.3"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": ">=16.8.0",
|
|
45
|
+
"react-dom": ">=16.8.0"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@lit/react": "^1.0.5",
|
|
52
|
+
"@loadsmart/miranda-tokens": "5.0.0-alpha.8",
|
|
53
|
+
"@loadsmart/miranda-wc": "4.0.0-alpha.8",
|
|
54
|
+
"react-is": "^18.3.1"
|
|
55
|
+
},
|
|
56
|
+
"directories": {
|
|
57
|
+
"test": "tests"
|
|
58
|
+
},
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "git+https://github.com/loadsmart/miranda-wc.git"
|
|
62
|
+
},
|
|
63
|
+
"bugs": {
|
|
64
|
+
"url": "https://github.com/loadsmart/miranda-wc/issues"
|
|
65
|
+
},
|
|
66
|
+
"homepage": "https://github.com/loadsmart/miranda-wc#readme",
|
|
67
|
+
"stableVersion": "0.0.0"
|
|
68
|
+
}
|