@loadsmart/miranda-react 3.1.0 → 3.1.2
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 +23 -13
- package/dist/index.js +13 -1
- package/dist/tokens.d.ts +13 -13
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ import { EmptyStateVariant } from '@loadsmart/miranda-wc';
|
|
|
26
26
|
import { EventName } from '@lit/react';
|
|
27
27
|
import { FieldSize } from '@loadsmart/miranda-wc';
|
|
28
28
|
import { FieldStatus } from '@loadsmart/miranda-wc';
|
|
29
|
+
import { FileItem } from '@loadsmart/miranda-wc';
|
|
30
|
+
import { FilePicker as FilePicker_2 } from '@loadsmart/miranda-wc';
|
|
29
31
|
import { ForwardRefExoticComponent } from 'react';
|
|
30
32
|
import { HeaderTabs as HeaderTabs_2 } from '@loadsmart/miranda-wc';
|
|
31
33
|
import { IconName } from '@loadsmart/miranda-wc';
|
|
@@ -591,6 +593,14 @@ export { FieldSize }
|
|
|
591
593
|
|
|
592
594
|
export { FieldStatus }
|
|
593
595
|
|
|
596
|
+
export declare const FilePicker: ReactWebComponent<FilePicker_2, {
|
|
597
|
+
onChange: EventName<MirandaChangeEvent<FilePicker_2>>;
|
|
598
|
+
}> & {
|
|
599
|
+
FileItem: typeof FileItem;
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
export declare type FilePickerProps = default_2.ComponentProps<typeof FilePicker>;
|
|
603
|
+
|
|
594
604
|
export declare const Grid: ReactWebComponent<WCGrid, {}>;
|
|
595
605
|
|
|
596
606
|
export declare type GridProps = ComponentProps<typeof Grid>;
|
|
@@ -1606,17 +1616,17 @@ declare module 'react' {
|
|
|
1606
1616
|
|
|
1607
1617
|
declare module 'react' {
|
|
1608
1618
|
interface CSSProperties {
|
|
1609
|
-
'--m-
|
|
1610
|
-
'--m-
|
|
1611
|
-
'--m-divider-margin-y'?: string;
|
|
1619
|
+
'--m-icon-size'?: string;
|
|
1620
|
+
'--m-icon-color'?: string;
|
|
1612
1621
|
}
|
|
1613
1622
|
}
|
|
1614
1623
|
|
|
1615
1624
|
|
|
1616
1625
|
declare module 'react' {
|
|
1617
1626
|
interface CSSProperties {
|
|
1618
|
-
'--m-
|
|
1619
|
-
'--m-
|
|
1627
|
+
'--m-divider-margin-top'?: string;
|
|
1628
|
+
'--m-divider-margin-bottom'?: string;
|
|
1629
|
+
'--m-divider-margin-y'?: string;
|
|
1620
1630
|
}
|
|
1621
1631
|
}
|
|
1622
1632
|
|
|
@@ -1634,8 +1644,12 @@ declare module 'react' {
|
|
|
1634
1644
|
|
|
1635
1645
|
declare module 'react' {
|
|
1636
1646
|
interface CSSProperties {
|
|
1637
|
-
'--m-
|
|
1638
|
-
'--m-
|
|
1647
|
+
'--m-table-border-radius'?: string;
|
|
1648
|
+
'--m-table-border-top-left-radius'?: string;
|
|
1649
|
+
'--m-table-border-top-right-radius'?: string;
|
|
1650
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
1651
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
1652
|
+
'--m-table-border-width'?: string;
|
|
1639
1653
|
}
|
|
1640
1654
|
}
|
|
1641
1655
|
|
|
@@ -1653,11 +1667,7 @@ declare module 'react' {
|
|
|
1653
1667
|
|
|
1654
1668
|
declare module 'react' {
|
|
1655
1669
|
interface CSSProperties {
|
|
1656
|
-
'--m-
|
|
1657
|
-
'--m-
|
|
1658
|
-
'--m-table-border-top-right-radius'?: string;
|
|
1659
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
1660
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
1661
|
-
'--m-table-border-width'?: string;
|
|
1670
|
+
'--m-text-display'?: string;
|
|
1671
|
+
'--m-text-max-width'?: string;
|
|
1662
1672
|
}
|
|
1663
1673
|
}
|
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$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";
|
|
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, 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, 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";
|
|
@@ -1245,6 +1245,17 @@ const DotsLoader = createComponent({
|
|
|
1245
1245
|
elementClass: DotsLoader$1,
|
|
1246
1246
|
displayName: "DotsLoader"
|
|
1247
1247
|
});
|
|
1248
|
+
const FilePicker = createComponent({
|
|
1249
|
+
tagName: "m-file-Picker",
|
|
1250
|
+
elementClass: FilePicker$1,
|
|
1251
|
+
displayName: "FilePicker",
|
|
1252
|
+
subComponents: {
|
|
1253
|
+
FileItem
|
|
1254
|
+
},
|
|
1255
|
+
events: {
|
|
1256
|
+
onChange: "change"
|
|
1257
|
+
}
|
|
1258
|
+
});
|
|
1248
1259
|
export {
|
|
1249
1260
|
Accordion2 as Accordion,
|
|
1250
1261
|
ActionableTag2 as ActionableTag,
|
|
@@ -1270,6 +1281,7 @@ export {
|
|
|
1270
1281
|
EMPTY_STATE_VARIANTS,
|
|
1271
1282
|
EmptyState2 as EmptyState,
|
|
1272
1283
|
Field2 as Field,
|
|
1284
|
+
FilePicker,
|
|
1273
1285
|
Grid2 as Grid,
|
|
1274
1286
|
Group2 as Group,
|
|
1275
1287
|
Header2 as Header,
|
package/dist/tokens.d.ts
CHANGED
|
@@ -19,17 +19,17 @@ declare module 'react' {
|
|
|
19
19
|
|
|
20
20
|
declare module 'react' {
|
|
21
21
|
interface CSSProperties {
|
|
22
|
-
'--m-
|
|
23
|
-
'--m-
|
|
24
|
-
'--m-divider-margin-y'?: string;
|
|
22
|
+
'--m-icon-size'?: string;
|
|
23
|
+
'--m-icon-color'?: string;
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
|
|
29
28
|
declare module 'react' {
|
|
30
29
|
interface CSSProperties {
|
|
31
|
-
'--m-
|
|
32
|
-
'--m-
|
|
30
|
+
'--m-divider-margin-top'?: string;
|
|
31
|
+
'--m-divider-margin-bottom'?: string;
|
|
32
|
+
'--m-divider-margin-y'?: string;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -47,8 +47,12 @@ declare module 'react' {
|
|
|
47
47
|
|
|
48
48
|
declare module 'react' {
|
|
49
49
|
interface CSSProperties {
|
|
50
|
-
'--m-
|
|
51
|
-
'--m-
|
|
50
|
+
'--m-table-border-radius'?: string;
|
|
51
|
+
'--m-table-border-top-left-radius'?: string;
|
|
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;
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
|
|
@@ -66,11 +70,7 @@ declare module 'react' {
|
|
|
66
70
|
|
|
67
71
|
declare module 'react' {
|
|
68
72
|
interface CSSProperties {
|
|
69
|
-
'--m-
|
|
70
|
-
'--m-
|
|
71
|
-
'--m-table-border-top-right-radius'?: string;
|
|
72
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
73
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
74
|
-
'--m-table-border-width'?: string;
|
|
73
|
+
'--m-text-display'?: string;
|
|
74
|
+
'--m-text-max-width'?: string;
|
|
75
75
|
}
|
|
76
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/miranda-react",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "React component library based on Miranda Web Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@figma/code-connect": "^1.3.3",
|
|
51
51
|
"@lit/react": "^1.0.5",
|
|
52
|
-
"@loadsmart/miranda-tokens": "4.1.
|
|
53
|
-
"@loadsmart/miranda-wc": "3.1.
|
|
52
|
+
"@loadsmart/miranda-tokens": "4.1.2",
|
|
53
|
+
"@loadsmart/miranda-wc": "3.1.2",
|
|
54
54
|
"react-is": "^18.3.1"
|
|
55
55
|
},
|
|
56
56
|
"directories": {
|