@loadsmart/miranda-react 4.0.0-alpha.1 → 4.0.0-alpha.10
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/tokens.d.ts +20 -20
- 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
|
@@ -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,6 +1775,25 @@ declare const WiredTooltip: ReactWebComponent<WCTooltip, {}>;
|
|
|
1785
1775
|
export { }
|
|
1786
1776
|
|
|
1787
1777
|
|
|
1778
|
+
declare module 'react' {
|
|
1779
|
+
interface CSSProperties {
|
|
1780
|
+
'--m-table-border-radius'?: string;
|
|
1781
|
+
'--m-table-border-top-left-radius'?: string;
|
|
1782
|
+
'--m-table-border-top-right-radius'?: string;
|
|
1783
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
1784
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
declare module 'react' {
|
|
1790
|
+
interface CSSProperties {
|
|
1791
|
+
'--m-icon-size'?: string;
|
|
1792
|
+
'--m-icon-color'?: string;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
|
|
1788
1797
|
declare module 'react' {
|
|
1789
1798
|
interface CSSProperties {
|
|
1790
1799
|
'--m-card-body-padding'?: string;
|
|
@@ -1806,14 +1815,6 @@ declare module 'react' {
|
|
|
1806
1815
|
}
|
|
1807
1816
|
|
|
1808
1817
|
|
|
1809
|
-
declare module 'react' {
|
|
1810
|
-
interface CSSProperties {
|
|
1811
|
-
'--m-icon-size'?: string;
|
|
1812
|
-
'--m-icon-color'?: string;
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
1818
|
declare module 'react' {
|
|
1818
1819
|
interface CSSProperties {
|
|
1819
1820
|
'--m-table-border-radius'?: string;
|
|
@@ -1821,6 +1822,7 @@ declare module 'react' {
|
|
|
1821
1822
|
'--m-table-border-top-right-radius'?: string;
|
|
1822
1823
|
'--m-table-border-bottom-left-radius'?: string;
|
|
1823
1824
|
'--m-table-border-bottom-right-radius'?: string;
|
|
1825
|
+
'--m-table-border-width'?: string;
|
|
1824
1826
|
}
|
|
1825
1827
|
}
|
|
1826
1828
|
|
|
@@ -1832,7 +1834,6 @@ declare module 'react' {
|
|
|
1832
1834
|
'--m-table-border-top-right-radius'?: string;
|
|
1833
1835
|
'--m-table-border-bottom-left-radius'?: string;
|
|
1834
1836
|
'--m-table-border-bottom-right-radius'?: string;
|
|
1835
|
-
'--m-table-border-width'?: string;
|
|
1836
1837
|
}
|
|
1837
1838
|
}
|
|
1838
1839
|
|
|
@@ -1843,14 +1844,3 @@ declare module 'react' {
|
|
|
1843
1844
|
'--m-text-max-width'?: string;
|
|
1844
1845
|
}
|
|
1845
1846
|
}
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
declare module 'react' {
|
|
1849
|
-
interface CSSProperties {
|
|
1850
|
-
'--m-table-border-radius'?: string;
|
|
1851
|
-
'--m-table-border-top-left-radius'?: string;
|
|
1852
|
-
'--m-table-border-top-right-radius'?: string;
|
|
1853
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
1854
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
1855
|
-
}
|
|
1856
|
-
}
|
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,6 +5,25 @@ export * from "@loadsmart/miranda-tokens/dist/themes.js";
|
|
|
5
5
|
export { }
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
declare module 'react' {
|
|
9
|
+
interface CSSProperties {
|
|
10
|
+
'--m-table-border-radius'?: string;
|
|
11
|
+
'--m-table-border-top-left-radius'?: string;
|
|
12
|
+
'--m-table-border-top-right-radius'?: string;
|
|
13
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
14
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
declare module 'react' {
|
|
20
|
+
interface CSSProperties {
|
|
21
|
+
'--m-icon-size'?: string;
|
|
22
|
+
'--m-icon-color'?: string;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
8
27
|
declare module 'react' {
|
|
9
28
|
interface CSSProperties {
|
|
10
29
|
'--m-card-body-padding'?: string;
|
|
@@ -26,14 +45,6 @@ declare module 'react' {
|
|
|
26
45
|
}
|
|
27
46
|
|
|
28
47
|
|
|
29
|
-
declare module 'react' {
|
|
30
|
-
interface CSSProperties {
|
|
31
|
-
'--m-icon-size'?: string;
|
|
32
|
-
'--m-icon-color'?: string;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
48
|
declare module 'react' {
|
|
38
49
|
interface CSSProperties {
|
|
39
50
|
'--m-table-border-radius'?: string;
|
|
@@ -41,6 +52,7 @@ declare module 'react' {
|
|
|
41
52
|
'--m-table-border-top-right-radius'?: string;
|
|
42
53
|
'--m-table-border-bottom-left-radius'?: string;
|
|
43
54
|
'--m-table-border-bottom-right-radius'?: string;
|
|
55
|
+
'--m-table-border-width'?: string;
|
|
44
56
|
}
|
|
45
57
|
}
|
|
46
58
|
|
|
@@ -52,7 +64,6 @@ declare module 'react' {
|
|
|
52
64
|
'--m-table-border-top-right-radius'?: string;
|
|
53
65
|
'--m-table-border-bottom-left-radius'?: string;
|
|
54
66
|
'--m-table-border-bottom-right-radius'?: string;
|
|
55
|
-
'--m-table-border-width'?: string;
|
|
56
67
|
}
|
|
57
68
|
}
|
|
58
69
|
|
|
@@ -63,14 +74,3 @@ declare module 'react' {
|
|
|
63
74
|
'--m-text-max-width'?: string;
|
|
64
75
|
}
|
|
65
76
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
declare module 'react' {
|
|
69
|
-
interface CSSProperties {
|
|
70
|
-
'--m-table-border-radius'?: string;
|
|
71
|
-
'--m-table-border-top-left-radius'?: string;
|
|
72
|
-
'--m-table-border-top-right-radius'?: string;
|
|
73
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
74
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
75
|
-
}
|
|
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.10",
|
|
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.9.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.10",
|
|
53
|
+
"@loadsmart/miranda-wc": "4.0.0-alpha.10",
|
|
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
|
+
}
|