@loadsmart/miranda-react 4.0.0-alpha.1 → 4.0.0-alpha.11
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 +57 -67
- package/dist/index.js +33 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/tokens.d.ts +20 -20
- package/package.json +74 -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
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { AccordionToggleEventDetails } from '@loadsmart/miranda-wc';
|
|
2
1
|
import { ActionableTagVariant } from '@loadsmart/miranda-wc';
|
|
3
2
|
import { AlignItemsValue } from '@loadsmart/miranda-wc';
|
|
4
3
|
import { BannerVariant } from '@loadsmart/miranda-wc';
|
|
5
4
|
import { ButtonSize } from '@loadsmart/miranda-wc';
|
|
6
5
|
import { ButtonType } from '@loadsmart/miranda-wc';
|
|
7
6
|
import { ButtonVariant } from '@loadsmart/miranda-wc';
|
|
8
|
-
import { CardToggleEventDetails } from '@loadsmart/miranda-wc';
|
|
9
7
|
import { ChangeEvent } from 'react';
|
|
10
8
|
import { ColumnSize } from '@loadsmart/miranda-wc';
|
|
11
9
|
import { ComponentProps } from 'react';
|
|
@@ -49,6 +47,10 @@ import { RefAttributes } from 'react';
|
|
|
49
47
|
import { SelectionType } from '@loadsmart/miranda-wc';
|
|
50
48
|
import { SelectionValue } from '@loadsmart/miranda-wc';
|
|
51
49
|
import { SideNavigationTrigger as SideNavigationTrigger_2 } from '@loadsmart/miranda-wc';
|
|
50
|
+
import { Skeleton as Skeleton_2 } from '@loadsmart/miranda-wc';
|
|
51
|
+
import { SkeletonAvatar as SkeletonAvatar_2 } from '@loadsmart/miranda-wc';
|
|
52
|
+
import { SkeletonTag as SkeletonTag_2 } from '@loadsmart/miranda-wc';
|
|
53
|
+
import { SkeletonText as SkeletonText_2 } from '@loadsmart/miranda-wc';
|
|
52
54
|
import { StepChangeEventDetail } from '@loadsmart/miranda-wc';
|
|
53
55
|
import { StepNavigateEventDetail } from '@loadsmart/miranda-wc';
|
|
54
56
|
import { SwitchSize } from '@loadsmart/miranda-wc';
|
|
@@ -281,7 +283,7 @@ import { Tooltip as WCTooltip } from '@loadsmart/miranda-wc';
|
|
|
281
283
|
import { TooltipProps as WCTooltipProps } from '@loadsmart/miranda-wc';
|
|
282
284
|
|
|
283
285
|
export declare const Accordion: ReactWebComponent<WCAccordion, {
|
|
284
|
-
onToggle:
|
|
286
|
+
onToggle: string;
|
|
285
287
|
}> & {
|
|
286
288
|
Title: ForwardRefExoticComponent<Omit<AccordionTitleProps, "ref"> & RefAttributes<WCAccordionTitle>>;
|
|
287
289
|
Content: ReactWebComponent<WCAccordionContent, {}>;
|
|
@@ -293,8 +295,6 @@ declare type AccordionTitleProps = Omit<ComponentProps<typeof WiredAccordionTitl
|
|
|
293
295
|
leading?: ReactNode;
|
|
294
296
|
};
|
|
295
297
|
|
|
296
|
-
export { AccordionToggleEventDetails }
|
|
297
|
-
|
|
298
298
|
export declare const ActionableTag: default_2.ForwardRefExoticComponent<Omit<ActionableTagProps, "ref"> & default_2.RefAttributes<WCActionableTag>>;
|
|
299
299
|
|
|
300
300
|
export declare type ActionableTagProps = ComponentProps<typeof WiredActionableTag> & {
|
|
@@ -343,8 +343,8 @@ export declare type BannerProps = ComponentProps<typeof Banner>;
|
|
|
343
343
|
export { BannerVariant }
|
|
344
344
|
|
|
345
345
|
declare interface BaseProps<TValue> {
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
type?: SelectionType;
|
|
347
|
+
value?: TValue;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
export declare const Box: ReactWebComponent<WCBox, {}>;
|
|
@@ -365,7 +365,7 @@ export { ButtonType }
|
|
|
365
365
|
export { ButtonVariant }
|
|
366
366
|
|
|
367
367
|
export declare const Card: ReactWebComponent<WCCard, {
|
|
368
|
-
onToggle:
|
|
368
|
+
onToggle: string;
|
|
369
369
|
}> & {
|
|
370
370
|
Title: ForwardRefExoticComponent<Omit<CardTitleProps, "ref"> & RefAttributes<WCCardTitle>>;
|
|
371
371
|
Subtitle: ReactWebComponent<WCCardSubtitle, {}>;
|
|
@@ -398,8 +398,6 @@ declare type CardTitleProps = Omit<ComponentProps<typeof WiredCardTitle>, 'slot'
|
|
|
398
398
|
leading?: ReactNode;
|
|
399
399
|
};
|
|
400
400
|
|
|
401
|
-
export { CardToggleEventDetails }
|
|
402
|
-
|
|
403
401
|
export declare const Checkbox: default_2.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & default_2.RefAttributes<WCCheckbox>>;
|
|
404
402
|
|
|
405
403
|
export declare type CheckboxProps = ComponentProps<typeof WiredCheckbox> & {
|
|
@@ -740,12 +738,6 @@ export declare type LogoLoaderProps = ComponentProps<typeof LogoLoader>;
|
|
|
740
738
|
*/
|
|
741
739
|
export declare type MirandaChangeEvent<T = Element> = ChangeEvent<T> & Event;
|
|
742
740
|
|
|
743
|
-
/**
|
|
744
|
-
* This is a patch type to make our components compatible to React's
|
|
745
|
-
* synthetic event types.
|
|
746
|
-
*/
|
|
747
|
-
declare type MirandaChangeEvent_2<T = Element> = ChangeEvent<T> & Event;
|
|
748
|
-
|
|
749
741
|
export declare const Page: ReactWebComponent<WCPage, {}> & {
|
|
750
742
|
Content: ReactWebComponent<WCPageContent, {}> & {
|
|
751
743
|
Body: ReactWebComponent<WCBody, {}>;
|
|
@@ -829,41 +821,19 @@ export declare namespace Select {
|
|
|
829
821
|
var Option: default_2.ForwardRefExoticComponent<Omit<SelectOptionProps, "ref"> & default_2.RefAttributes<WCSelectOption>>;
|
|
830
822
|
}
|
|
831
823
|
|
|
832
|
-
declare type SelectionChangeEventHandler<TComponent, T> = (
|
|
833
|
-
|
|
834
|
-
) => void;
|
|
824
|
+
declare type SelectionChangeEventHandler<TComponent, T> = (event: MirandaChangeEvent<Omit<TComponent, 'value'> & {
|
|
825
|
+
value: T;
|
|
826
|
+
}>) => void;
|
|
835
827
|
|
|
836
828
|
declare type SelectionOption<TValue extends string = string> = {
|
|
837
|
-
|
|
829
|
+
value: TValue;
|
|
838
830
|
};
|
|
839
831
|
|
|
840
|
-
declare type SelectionProps<
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
TSelectionOption extends SelectionOption<OptionValue> = SelectionOption<OptionValue>,
|
|
846
|
-
TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>,
|
|
847
|
-
> = Omit<TProps, 'type' | 'value' | 'options' | 'onChange'> & {
|
|
848
|
-
type?: TSelectionType;
|
|
849
|
-
value?: TSelectionType extends 'single'
|
|
850
|
-
? TOptions[number]['value'] | null
|
|
851
|
-
: TSelectionType extends 'single-strict'
|
|
852
|
-
? TOptions[number]['value']
|
|
853
|
-
: TSelectionType extends 'multiple'
|
|
854
|
-
? ReadonlyArray<TOptions[number]['value']> | null
|
|
855
|
-
: SelectionValue<TOptions[number]['value']>; // Infer value type from options
|
|
856
|
-
options?: TOptions;
|
|
857
|
-
onChange?: SelectionChangeEventHandler<
|
|
858
|
-
TComponent,
|
|
859
|
-
TSelectionType extends 'single'
|
|
860
|
-
? TOptions[number]['value'] | null
|
|
861
|
-
: TSelectionType extends 'single-strict'
|
|
862
|
-
? TOptions[number]['value']
|
|
863
|
-
: TSelectionType extends 'multiple'
|
|
864
|
-
? Array<TOptions[number]['value']> | null
|
|
865
|
-
: SelectionValue<TOptions[number]['value']>
|
|
866
|
-
>;
|
|
832
|
+
declare type SelectionProps<TComponent, TProps extends BaseProps<SelectionValue<string>>, TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string, TSelectionOption extends SelectionOption<OptionValue> = SelectionOption<OptionValue>, TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>> = Omit<TProps, 'type' | 'value' | 'options' | 'onChange'> & {
|
|
833
|
+
type?: TSelectionType;
|
|
834
|
+
value?: TSelectionType extends 'single' ? TOptions[number]['value'] | null : TSelectionType extends 'single-strict' ? TOptions[number]['value'] : TSelectionType extends 'multiple' ? ReadonlyArray<TOptions[number]['value']> | null : SelectionValue<TOptions[number]['value']>;
|
|
835
|
+
options?: TOptions;
|
|
836
|
+
onChange?: SelectionChangeEventHandler<TComponent, TSelectionType extends 'single' ? TOptions[number]['value'] | null : TSelectionType extends 'single-strict' ? TOptions[number]['value'] : TSelectionType extends 'multiple' ? Array<TOptions[number]['value']> | null : SelectionValue<TOptions[number]['value']>>;
|
|
867
837
|
};
|
|
868
838
|
|
|
869
839
|
export { SelectionType }
|
|
@@ -953,6 +923,26 @@ export declare const SideNavigationTrigger: ReactWebComponent<SideNavigationTrig
|
|
|
953
923
|
|
|
954
924
|
export declare type SideNavigationTriggerProps = ComponentProps<typeof SideNavigationTrigger>;
|
|
955
925
|
|
|
926
|
+
export declare const Skeleton: ReactWebComponent<Skeleton_2, {}> & {
|
|
927
|
+
Text: ReactWebComponent<SkeletonText_2, {}>;
|
|
928
|
+
Tag: ReactWebComponent<SkeletonTag_2, {}>;
|
|
929
|
+
Avatar: ReactWebComponent<SkeletonAvatar_2, {}>;
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
export declare const SkeletonAvatar: ReactWebComponent<SkeletonAvatar_2, {}>;
|
|
933
|
+
|
|
934
|
+
export declare type SkeletonAvatarProps = ComponentProps<typeof SkeletonAvatar>;
|
|
935
|
+
|
|
936
|
+
export declare type SkeletonProps = ComponentProps<typeof Skeleton>;
|
|
937
|
+
|
|
938
|
+
export declare const SkeletonTag: ReactWebComponent<SkeletonTag_2, {}>;
|
|
939
|
+
|
|
940
|
+
export declare type SkeletonTagProps = ComponentProps<typeof SkeletonTag>;
|
|
941
|
+
|
|
942
|
+
export declare const SkeletonText: ReactWebComponent<SkeletonText_2, {}>;
|
|
943
|
+
|
|
944
|
+
export declare type SkeletonTextProps = ComponentProps<typeof SkeletonText>;
|
|
945
|
+
|
|
956
946
|
export declare const SpinnerWheel: ReactWebComponent<WCSpinnerWheel, {}>;
|
|
957
947
|
|
|
958
948
|
export declare type SpinnerWheelProps = ComponentProps<typeof SpinnerWheel>;
|
|
@@ -1785,18 +1775,6 @@ declare const WiredTooltip: ReactWebComponent<WCTooltip, {}>;
|
|
|
1785
1775
|
export { }
|
|
1786
1776
|
|
|
1787
1777
|
|
|
1788
|
-
declare module 'react' {
|
|
1789
|
-
interface CSSProperties {
|
|
1790
|
-
'--m-card-body-padding'?: string;
|
|
1791
|
-
'--m-card-border-top'?: string;
|
|
1792
|
-
'--m-card-border-left'?: string;
|
|
1793
|
-
'--m-card-border-bottom'?: string;
|
|
1794
|
-
'--m-card-border-right'?: string;
|
|
1795
|
-
'--m-card-border-radius'?: string;
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
1778
|
declare module 'react' {
|
|
1801
1779
|
interface CSSProperties {
|
|
1802
1780
|
'--m-divider-margin-top'?: string;
|
|
@@ -1808,8 +1786,12 @@ declare module 'react' {
|
|
|
1808
1786
|
|
|
1809
1787
|
declare module 'react' {
|
|
1810
1788
|
interface CSSProperties {
|
|
1811
|
-
'--m-
|
|
1812
|
-
'--m-
|
|
1789
|
+
'--m-table-border-radius'?: string;
|
|
1790
|
+
'--m-table-border-top-left-radius'?: string;
|
|
1791
|
+
'--m-table-border-top-right-radius'?: string;
|
|
1792
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
1793
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
1794
|
+
'--m-table-border-width'?: string;
|
|
1813
1795
|
}
|
|
1814
1796
|
}
|
|
1815
1797
|
|
|
@@ -1827,12 +1809,8 @@ declare module 'react' {
|
|
|
1827
1809
|
|
|
1828
1810
|
declare module 'react' {
|
|
1829
1811
|
interface CSSProperties {
|
|
1830
|
-
'--m-
|
|
1831
|
-
'--m-
|
|
1832
|
-
'--m-table-border-top-right-radius'?: string;
|
|
1833
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
1834
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
1835
|
-
'--m-table-border-width'?: string;
|
|
1812
|
+
'--m-icon-size'?: string;
|
|
1813
|
+
'--m-icon-color'?: string;
|
|
1836
1814
|
}
|
|
1837
1815
|
}
|
|
1838
1816
|
|
|
@@ -1845,6 +1823,18 @@ declare module 'react' {
|
|
|
1845
1823
|
}
|
|
1846
1824
|
|
|
1847
1825
|
|
|
1826
|
+
declare module 'react' {
|
|
1827
|
+
interface CSSProperties {
|
|
1828
|
+
'--m-card-body-padding'?: string;
|
|
1829
|
+
'--m-card-border-top'?: string;
|
|
1830
|
+
'--m-card-border-left'?: string;
|
|
1831
|
+
'--m-card-border-bottom'?: string;
|
|
1832
|
+
'--m-card-border-right'?: string;
|
|
1833
|
+
'--m-card-border-radius'?: string;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
|
|
1848
1838
|
declare module 'react' {
|
|
1849
1839
|
interface CSSProperties {
|
|
1850
1840
|
'--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, 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
|
@@ -5,18 +5,6 @@ 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
|
-
|
|
20
8
|
declare module 'react' {
|
|
21
9
|
interface CSSProperties {
|
|
22
10
|
'--m-divider-margin-top'?: string;
|
|
@@ -28,8 +16,12 @@ declare module 'react' {
|
|
|
28
16
|
|
|
29
17
|
declare module 'react' {
|
|
30
18
|
interface CSSProperties {
|
|
31
|
-
'--m-
|
|
32
|
-
'--m-
|
|
19
|
+
'--m-table-border-radius'?: string;
|
|
20
|
+
'--m-table-border-top-left-radius'?: string;
|
|
21
|
+
'--m-table-border-top-right-radius'?: string;
|
|
22
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
23
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
24
|
+
'--m-table-border-width'?: string;
|
|
33
25
|
}
|
|
34
26
|
}
|
|
35
27
|
|
|
@@ -47,12 +39,8 @@ declare module 'react' {
|
|
|
47
39
|
|
|
48
40
|
declare module 'react' {
|
|
49
41
|
interface CSSProperties {
|
|
50
|
-
'--m-
|
|
51
|
-
'--m-
|
|
52
|
-
'--m-table-border-top-right-radius'?: string;
|
|
53
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
54
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
55
|
-
'--m-table-border-width'?: string;
|
|
42
|
+
'--m-icon-size'?: string;
|
|
43
|
+
'--m-icon-color'?: string;
|
|
56
44
|
}
|
|
57
45
|
}
|
|
58
46
|
|
|
@@ -65,6 +53,18 @@ declare module 'react' {
|
|
|
65
53
|
}
|
|
66
54
|
|
|
67
55
|
|
|
56
|
+
declare module 'react' {
|
|
57
|
+
interface CSSProperties {
|
|
58
|
+
'--m-card-body-padding'?: string;
|
|
59
|
+
'--m-card-border-top'?: string;
|
|
60
|
+
'--m-card-border-left'?: string;
|
|
61
|
+
'--m-card-border-bottom'?: string;
|
|
62
|
+
'--m-card-border-right'?: string;
|
|
63
|
+
'--m-card-border-radius'?: string;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
68
|
declare module 'react' {
|
|
69
69
|
interface CSSProperties {
|
|
70
70
|
'--m-table-border-radius'?: string;
|
package/package.json
CHANGED
|
@@ -1,67 +1,75 @@
|
|
|
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.11",
|
|
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
|
+
"@storybook/addon-actions": "^8.6.15",
|
|
31
|
+
"@storybook/addon-essentials": "^8.6.15",
|
|
32
|
+
"@storybook/addon-interactions": "^8.6.15",
|
|
33
|
+
"@storybook/react": "^8.6.15",
|
|
34
|
+
"@storybook/react-vite": "^8.6.15",
|
|
35
|
+
"@storybook/test": "^8.6.15",
|
|
36
|
+
"@testing-library/cypress": "^10.0.3",
|
|
37
|
+
"@types/react": "^18.3.24",
|
|
38
|
+
"@types/react-dom": "^18.3.7",
|
|
39
|
+
"@types/react-is": "^18.3.1",
|
|
40
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
41
|
+
"cypress": "15.0.0",
|
|
42
|
+
"react": "^18.3.1",
|
|
43
|
+
"react-dom": "^18.3.1",
|
|
44
|
+
"storybook": "^8.6.15",
|
|
45
|
+
"tsx": "^4.19.4",
|
|
46
|
+
"typescript": "~5.9.3",
|
|
47
|
+
"vite": "^6.3.2",
|
|
48
|
+
"vite-plugin-dts": "^4.5.3"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": ">=16.8.0",
|
|
52
|
+
"react-dom": ">=16.8.0"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@lit/react": "^1.0.5",
|
|
59
|
+
"@loadsmart/miranda-tokens": "5.0.0-alpha.11",
|
|
60
|
+
"@loadsmart/miranda-wc": "4.0.0-alpha.11",
|
|
61
|
+
"react-is": "^18.3.1"
|
|
62
|
+
},
|
|
63
|
+
"directories": {
|
|
64
|
+
"test": "tests"
|
|
65
|
+
},
|
|
66
|
+
"repository": {
|
|
67
|
+
"type": "git",
|
|
68
|
+
"url": "git+https://github.com/loadsmart/miranda-wc.git"
|
|
69
|
+
},
|
|
70
|
+
"bugs": {
|
|
71
|
+
"url": "https://github.com/loadsmart/miranda-wc/issues"
|
|
72
|
+
},
|
|
73
|
+
"homepage": "https://github.com/loadsmart/miranda-wc#readme",
|
|
74
|
+
"stableVersion": "0.0.0"
|
|
75
|
+
}
|