@loadsmart/miranda-react 3.0.0-beta.60 → 3.0.0-beta.61
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 +1 -0
- package/dist/index.js +9 -7
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export { Radio as WCRadio, RadioGroup as WCRadioGroup, } from '@loadsmart/mirand
|
|
|
80
80
|
export type { RadioProps as WCRadioProps, RadioGroupProps as WCRadioGroupProps, RadioGroupOrientation, } from '@loadsmart/miranda-wc';
|
|
81
81
|
export { Section as WCSection, SectionTitle as WCSectionTitle, } from '@loadsmart/miranda-wc';
|
|
82
82
|
export type { SectionProps as WCSectionProps } from '@loadsmart/miranda-wc';
|
|
83
|
+
export { Select as WCSelect, SelectOption as WCSelectOption, } from '@loadsmart/miranda-wc';
|
|
83
84
|
export { SpinnerWheel as WCSpinnerWheel } from '@loadsmart/miranda-wc';
|
|
84
85
|
export type { SpinnerWheelProps as WCSpinnerWheelProps } from '@loadsmart/miranda-wc';
|
|
85
86
|
export { Step as WCStep, Steps as WCSteps } from '@loadsmart/miranda-wc';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { forwardRef, useState, useCallback, Children, isValidElement, cloneElement } from "react";
|
|
3
3
|
import { AccordionTitle as AccordionTitle$1, AccordionContent as AccordionContent$1, Accordion as Accordion$1, Badge as Badge$1, BannerActionPrimary as BannerActionPrimary$1, BannerActions as BannerActions$1, BannerActionSecondary as BannerActionSecondary$1, BannerDescription as BannerDescription$1, BannerIcon as BannerIcon$1, BannerTitle as BannerTitle$1, Banner as Banner$1, Button as Button$1, CardTitle as CardTitle$1, CardSubtitle as CardSubtitle$1, CardBody as CardBody$1, CardDivider as CardDivider$1, CardActionPrimary as CardActionPrimary$1, CardActionSecondary as CardActionSecondary$1, CardActionTertiary as CardActionTertiary$1, CardFooter as CardFooter$1, Card as Card$1, Checkbox as Checkbox$1, DialogActionPrimary as DialogActionPrimary$1, DialogActionSecondary as DialogActionSecondary$1, DialogActionTertiary as DialogActionTertiary$1, DialogActions as DialogActions$1, DialogBody as DialogBody$1, DialogClose as DialogClose$1, DialogFooter as DialogFooter$1, DialogHeader as DialogHeader$1, Dialog as Dialog$1, Divider as Divider$1, DrawerActionPrimary as DrawerActionPrimary$1, DrawerActionSecondary as DrawerActionSecondary$1, DrawerActionTertiary as DrawerActionTertiary$1, DrawerActions as DrawerActions$1, DrawerBody as DrawerBody$1, DrawerClose as DrawerClose$1, DrawerHeader as DrawerHeader$1, Drawer as Drawer$1, DropdownItem as DropdownItem$1, DropdownMenu as DropdownMenu$1, DropdownTrigger as DropdownTrigger$1, Dropdown as Dropdown$1, EmptyStateIllustration as EmptyStateIllustration$1, EmptyStateHeader as EmptyStateHeader$1, EmptyStateMessage as EmptyStateMessage$1, EmptyStateAction as EmptyStateAction$1, EmptyState as EmptyState$1, FieldLabel as FieldLabel$1, FieldHint as FieldHint$1, Field as Field$1, HeaderActions as HeaderActions$1, HeaderContent as HeaderContent$1, HeaderTitle as HeaderTitle$1, SubHeader as SubHeader$1, BackButton, HeaderTabs as HeaderTabs$1, Header as Header$1, Icon as Icon$1, LabeledValueLabel as LabeledValueLabel$1, LabeledValueValue as LabeledValueValue$1, LabeledValue as LabeledValue$1, Box as Box$1, Group as Group$1, Stack as Stack$1, Grid as Grid$1, Sidebar as Sidebar$1, Switcher as Switcher$1, Container as Container$1, Row as Row$1, Column as Column$1, Link as Link$1, Body as Body$1, PageContent as PageContent$1, Pagination as Pagination$1, ProgressBar as ProgressBar$1, ProgressBarCountdown as ProgressBarCountdown$1, Radio as Radio$1, RadioGroup as RadioGroup$1, SectionTitle as SectionTitle$1, Section as Section$1, SelectOption as SelectOption$1, Select as Select$1, SpinnerWheel as SpinnerWheel$1, Step as Step$1, Steps as Steps$1, Switch as Switch$1, TableHead as TableHead$1, TableBody as TableBody$1, TableFoot as TableFoot$1, TableRow as TableRow$1, TableCell as TableCell$1, TableToolbar as TableToolbar$1, TableHeadCell as TableHeadCell$1, TableFeedback as TableFeedback$1, TableActions as TableActions$1, TableSelectionCell as TableSelectionCell$1, Table as Table$1, 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";
|
|
4
|
-
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, 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";
|
|
4
|
+
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";
|
|
5
5
|
import { createComponent as createComponent$1 } from "@lit/react";
|
|
6
6
|
import { isFragment } from "react-is";
|
|
7
7
|
const createComponent = ({
|
|
@@ -695,13 +695,13 @@ const WiredSelectOption = createComponent({
|
|
|
695
695
|
displayName: "SelectOption"
|
|
696
696
|
});
|
|
697
697
|
const SLOTTED_STYLE$3 = { display: "contents" };
|
|
698
|
-
const
|
|
698
|
+
const SelectOption2 = forwardRef(
|
|
699
699
|
(props, ref) => {
|
|
700
700
|
const { leading, trailing, children, ...rest } = props;
|
|
701
701
|
return /* @__PURE__ */ React.createElement(WiredSelectOption, { ...rest, ref }, leading != null && /* @__PURE__ */ React.createElement("span", { style: SLOTTED_STYLE$3, slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React.createElement("span", { style: SLOTTED_STYLE$3, slot: "trailing" }, trailing));
|
|
702
702
|
}
|
|
703
703
|
);
|
|
704
|
-
|
|
704
|
+
SelectOption2.displayName = "SelectOption";
|
|
705
705
|
const WiredSelect = createComponent({
|
|
706
706
|
tagName: "m-select",
|
|
707
707
|
elementClass: Select$1,
|
|
@@ -713,7 +713,7 @@ const WiredSelect = createComponent({
|
|
|
713
713
|
displayName: "Select"
|
|
714
714
|
});
|
|
715
715
|
const SLOTTED_STYLE$2 = { display: "contents" };
|
|
716
|
-
function
|
|
716
|
+
function Select2(props) {
|
|
717
717
|
const { options, children, ...rest } = props;
|
|
718
718
|
return /* @__PURE__ */ React.createElement(WiredSelect, { ...rest }, children || (options || []).map(function renderOption(option) {
|
|
719
719
|
const {
|
|
@@ -723,10 +723,10 @@ function Select(props) {
|
|
|
723
723
|
value: optionValue,
|
|
724
724
|
...others
|
|
725
725
|
} = option;
|
|
726
|
-
return /* @__PURE__ */ React.createElement(
|
|
726
|
+
return /* @__PURE__ */ React.createElement(SelectOption2, { key: optionValue, ...others, value: optionValue }, leading != null && /* @__PURE__ */ React.createElement("span", { style: SLOTTED_STYLE$2, slot: "leading" }, leading), label, trailing != null && /* @__PURE__ */ React.createElement("span", { style: SLOTTED_STYLE$2, slot: "trailing" }, trailing));
|
|
727
727
|
}));
|
|
728
728
|
}
|
|
729
|
-
|
|
729
|
+
Select2.Option = SelectOption2;
|
|
730
730
|
const SpinnerWheel2 = createComponent({
|
|
731
731
|
tagName: "m-spinner-wheel",
|
|
732
732
|
elementClass: SpinnerWheel$1,
|
|
@@ -1179,7 +1179,7 @@ export {
|
|
|
1179
1179
|
RadioGroup2 as RadioGroup,
|
|
1180
1180
|
Row2 as Row,
|
|
1181
1181
|
Section2 as Section,
|
|
1182
|
-
Select,
|
|
1182
|
+
Select2 as Select,
|
|
1183
1183
|
Sidebar2 as Sidebar,
|
|
1184
1184
|
SpinnerWheel2 as SpinnerWheel,
|
|
1185
1185
|
Stack2 as Stack,
|
|
@@ -1295,6 +1295,8 @@ export {
|
|
|
1295
1295
|
Row as WCRow,
|
|
1296
1296
|
Section as WCSection,
|
|
1297
1297
|
SectionTitle as WCSectionTitle,
|
|
1298
|
+
Select as WCSelect,
|
|
1299
|
+
SelectOption as WCSelectOption,
|
|
1298
1300
|
Sidebar as WCSidebar,
|
|
1299
1301
|
SpinnerWheel as WCSpinnerWheel,
|
|
1300
1302
|
Stack as WCStack,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/miranda-react",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.61",
|
|
4
4
|
"description": "React component library based on Miranda Web Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@lit/react": "^1.0.5",
|
|
46
|
-
"@loadsmart/miranda-tokens": "4.0.0-beta.
|
|
47
|
-
"@loadsmart/miranda-wc": "3.0.0-beta.
|
|
46
|
+
"@loadsmart/miranda-tokens": "4.0.0-beta.61",
|
|
47
|
+
"@loadsmart/miranda-wc": "3.0.0-beta.61",
|
|
48
48
|
"react-is": "^18.3.1"
|
|
49
49
|
},
|
|
50
50
|
"directories": {
|