@loadsmart/miranda-react 3.0.0-beta.9 → 3.0.1
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 +1663 -107
- package/dist/index.js +1345 -1166
- package/dist/tokens.d.ts +76 -2
- package/dist/tokens.js +2 -2
- package/package.json +20 -13
- package/dist/components/Accordion/Accordion.d.ts +0 -19
- package/dist/components/Accordion/AccordionContent.d.ts +0 -10
- package/dist/components/Accordion/AccordionTitle.d.ts +0 -16
- package/dist/components/Accordion/index.d.ts +0 -2
- package/dist/components/Badge/Badge.d.ts +0 -12
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Banner/Banner.d.ts +0 -22
- package/dist/components/Banner/BannerActionPrimary.d.ts +0 -17
- package/dist/components/Banner/BannerActionSecondary.d.ts +0 -17
- package/dist/components/Banner/BannerActions.d.ts +0 -12
- package/dist/components/Banner/BannerDescription.d.ts +0 -12
- package/dist/components/Banner/BannerIcon.d.ts +0 -12
- package/dist/components/Banner/BannerTitle.d.ts +0 -12
- package/dist/components/Banner/index.d.ts +0 -2
- package/dist/components/Button/Button.d.ts +0 -17
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -35
- package/dist/components/Card/CardActionPrimary.d.ts +0 -17
- package/dist/components/Card/CardActionSecondary.d.ts +0 -17
- package/dist/components/Card/CardActionTertiary.d.ts +0 -17
- package/dist/components/Card/CardBody.d.ts +0 -12
- package/dist/components/Card/CardDivider.d.ts +0 -12
- package/dist/components/Card/CardFooter.d.ts +0 -12
- package/dist/components/Card/CardSubtitle.d.ts +0 -12
- package/dist/components/Card/CardTitle.d.ts +0 -16
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -19
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Dialog/Dialog.d.ts +0 -37
- package/dist/components/Dialog/DialogActionPrimary.d.ts +0 -17
- package/dist/components/Dialog/DialogActionSecondary.d.ts +0 -17
- package/dist/components/Dialog/DialogActionTertiary.d.ts +0 -17
- package/dist/components/Dialog/DialogActions.d.ts +0 -12
- package/dist/components/Dialog/DialogBody.d.ts +0 -12
- package/dist/components/Dialog/DialogClose.d.ts +0 -14
- package/dist/components/Dialog/DialogFooter.d.ts +0 -12
- package/dist/components/Dialog/DialogHeader.d.ts +0 -12
- package/dist/components/Dialog/index.d.ts +0 -4
- package/dist/components/Divider/Divider.d.ts +0 -19
- package/dist/components/Divider/index.d.ts +0 -2
- package/dist/components/Drawer/Drawer.d.ts +0 -38
- package/dist/components/Drawer/DrawerActionPrimary.d.ts +0 -17
- package/dist/components/Drawer/DrawerActionSecondary.d.ts +0 -17
- package/dist/components/Drawer/DrawerActionTertiary.d.ts +0 -17
- package/dist/components/Drawer/DrawerActions.d.ts +0 -12
- package/dist/components/Drawer/DrawerBody.d.ts +0 -12
- package/dist/components/Drawer/DrawerClose.d.ts +0 -14
- package/dist/components/Drawer/DrawerHeader.d.ts +0 -12
- package/dist/components/Drawer/index.d.ts +0 -4
- package/dist/components/Dropdown/Dropdown.d.ts +0 -22
- package/dist/components/Dropdown/DropdownItem.d.ts +0 -16
- package/dist/components/Dropdown/DropdownMenu.d.ts +0 -12
- package/dist/components/Dropdown/DropdownTrigger.d.ts +0 -15
- package/dist/components/Dropdown/index.d.ts +0 -5
- package/dist/components/EmptyState/EmptyState.d.ts +0 -23
- package/dist/components/EmptyState/EmptyStateAction.d.ts +0 -17
- package/dist/components/EmptyState/EmptyStateHeader.d.ts +0 -12
- package/dist/components/EmptyState/EmptyStateIllustration.d.ts +0 -12
- package/dist/components/EmptyState/EmptyStateMessage.d.ts +0 -12
- package/dist/components/EmptyState/index.d.ts +0 -4
- package/dist/components/Field/Field.d.ts +0 -16
- package/dist/components/Field/FieldHint.d.ts +0 -16
- package/dist/components/Field/FieldLabel.d.ts +0 -12
- package/dist/components/Field/index.d.ts +0 -2
- package/dist/components/Header/Header.d.ts +0 -18
- package/dist/components/Header/HeaderActions.d.ts +0 -12
- package/dist/components/Header/HeaderBackButton.d.ts +0 -10
- package/dist/components/Header/HeaderContent.d.ts +0 -12
- package/dist/components/Header/HeaderTitle.d.ts +0 -12
- package/dist/components/Header/SubHeader.d.ts +0 -12
- package/dist/components/Header/index.d.ts +0 -8
- package/dist/components/Icon/Icon.d.ts +0 -19
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/Label/Label.d.ts +0 -12
- package/dist/components/LabeledValue/LabeledValue.d.ts +0 -25
- package/dist/components/LabeledValue/index.d.ts +0 -1
- package/dist/components/Layout/Box.d.ts +0 -13
- package/dist/components/Layout/Grid.d.ts +0 -13
- package/dist/components/Layout/Group.d.ts +0 -13
- package/dist/components/Layout/Layout.d.ts +0 -16
- package/dist/components/Layout/Row.d.ts +0 -18
- package/dist/components/Layout/Sidebar.d.ts +0 -20
- package/dist/components/Layout/Stack.d.ts +0 -13
- package/dist/components/Layout/Switcher.d.ts +0 -13
- package/dist/components/Layout/index.d.ts +0 -9
- package/dist/components/Link/Link.d.ts +0 -14
- package/dist/components/Link/index.d.ts +0 -2
- package/dist/components/LogoLoader/LogoLoader.d.ts +0 -13
- package/dist/components/LogoLoader/index.d.ts +0 -2
- package/dist/components/PageContent/Body.d.ts +0 -12
- package/dist/components/PageContent/PageContent.d.ts +0 -14
- package/dist/components/PageContent/index.d.ts +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -16
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -15
- package/dist/components/ProgressBar/index.d.ts +0 -2
- package/dist/components/ProgressBarCountdown/ProgressBarCountdown.d.ts +0 -13
- package/dist/components/ProgressBarCountdown/index.d.ts +0 -2
- package/dist/components/RadioGroup/Radio.d.ts +0 -16
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -18
- package/dist/components/RadioGroup/index.d.ts +0 -4
- package/dist/components/Section/Section.d.ts +0 -15
- package/dist/components/Section/SectionTitle.d.ts +0 -16
- package/dist/components/Section/index.d.ts +0 -2
- package/dist/components/Select/Select.d.ts +0 -31
- package/dist/components/Select/SelectOption.d.ts +0 -16
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/SpinnerWheel/SpinnerWheel.d.ts +0 -13
- package/dist/components/SpinnerWheel/index.d.ts +0 -2
- package/dist/components/Steps/Step.d.ts +0 -12
- package/dist/components/Steps/Steps.d.ts +0 -21
- package/dist/components/Steps/index.d.ts +0 -5
- package/dist/components/Steps/useSteps.d.ts +0 -10
- package/dist/components/Switch/Switch.d.ts +0 -15
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Table/Table.d.ts +0 -33
- package/dist/components/Table/TableActions.d.ts +0 -12
- package/dist/components/Table/TableBody.d.ts +0 -12
- package/dist/components/Table/TableCell.d.ts +0 -12
- package/dist/components/Table/TableFeedback.d.ts +0 -12
- package/dist/components/Table/TableFoot.d.ts +0 -12
- package/dist/components/Table/TableHead.d.ts +0 -12
- package/dist/components/Table/TableHeadCell.d.ts +0 -15
- package/dist/components/Table/TableRow.d.ts +0 -12
- package/dist/components/Table/TableToolbar.d.ts +0 -12
- package/dist/components/Table/index.d.ts +0 -21
- package/dist/components/Tabs/Tab.d.ts +0 -16
- package/dist/components/Tabs/TabPanel.d.ts +0 -13
- package/dist/components/Tabs/Tabs.d.ts +0 -19
- package/dist/components/Tabs/index.d.ts +0 -7
- package/dist/components/Tag/ActionableTag.d.ts +0 -20
- package/dist/components/Tag/Tag.d.ts +0 -16
- package/dist/components/Tag/index.d.ts +0 -4
- package/dist/components/Text/Text.d.ts +0 -19
- package/dist/components/Text/index.d.ts +0 -2
- package/dist/components/TextArea/TextArea.d.ts +0 -19
- package/dist/components/TextArea/index.d.ts +0 -2
- package/dist/components/TextField/TextField.d.ts +0 -22
- package/dist/components/TextField/index.d.ts +0 -2
- package/dist/components/Timeline/Timeline.d.ts +0 -22
- package/dist/components/Timeline/TimelineExpandableItem.d.ts +0 -12
- package/dist/components/Timeline/TimelineItem.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemBody.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemFooter.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemHeader.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemHeaderSubtitle.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemHeaderTitle.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemIcon.d.ts +0 -12
- package/dist/components/Timeline/index.d.ts +0 -10
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -16
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +0 -28
- package/dist/components/ToggleGroup/index.d.ts +0 -4
- package/dist/components/Tooltip/Tooltip.d.ts +0 -24
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/tests/constants.d.ts +0 -12
- package/dist/tests/types.d.ts +0 -5
- package/dist/utils/createComponent.d.ts +0 -6
- package/dist/utils/types.d.ts +0 -15
- package/dist/utils/utils.d.ts +0 -5
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableFeedback as WCTableFeedback } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-feedback': WebComponentProps<WCTableFeedback>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableFeedback: import("@lit/react").ReactWebComponent<WCTableFeedback, {}>;
|
|
12
|
-
export type TableFeedbackProps = ComponentProps<typeof TableFeedback>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableFoot as WCTableFoot } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-foot': WebComponentProps<WCTableFoot>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableFoot: import("@lit/react").ReactWebComponent<WCTableFoot, {}>;
|
|
12
|
-
export type TableFootProps = ComponentProps<typeof TableFoot>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableHead as WCTableHead } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-head': WebComponentProps<WCTableHead>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableHead: import("@lit/react").ReactWebComponent<WCTableHead, {}>;
|
|
12
|
-
export type TableHeadProps = ComponentProps<typeof TableHead>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { EventName, WebComponentProps } from '@lit/react';
|
|
3
|
-
import type { TableHeadCellSortEventDetails } from '@loadsmart/miranda-wc';
|
|
4
|
-
import { TableHeadCell as WCTableHeadCell } from '@loadsmart/miranda-wc';
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
'm-table-head-cell': WebComponentProps<WCTableHeadCell>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export declare const TableHeadCell: import("@lit/react").ReactWebComponent<WCTableHeadCell, {
|
|
13
|
-
onSort: EventName<CustomEvent<TableHeadCellSortEventDetails>>;
|
|
14
|
-
}>;
|
|
15
|
-
export type TableHeadCellProps = ComponentProps<typeof TableHeadCell>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableRow as WCTableRow } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-row': WebComponentProps<WCTableRow>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableRow: import("@lit/react").ReactWebComponent<WCTableRow, {}>;
|
|
12
|
-
export type TableRowProps = ComponentProps<typeof TableRow>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableToolbar as WCTableToolbar } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-toolbar': WebComponentProps<WCTableToolbar>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableToolbar: import("@lit/react").ReactWebComponent<WCTableToolbar, {}>;
|
|
12
|
-
export type TableToolbarProps = ComponentProps<typeof TableToolbar>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { Table } from './Table';
|
|
2
|
-
export { TableHead } from './TableHead';
|
|
3
|
-
export { TableBody } from './TableBody';
|
|
4
|
-
export { TableFoot } from './TableFoot';
|
|
5
|
-
export { TableRow } from './TableRow';
|
|
6
|
-
export { TableHeadCell } from './TableHeadCell';
|
|
7
|
-
export { TableCell } from './TableCell';
|
|
8
|
-
export { TableToolbar } from './TableToolbar';
|
|
9
|
-
export { TableFeedback } from './TableFeedback';
|
|
10
|
-
export { TableActions } from './TableActions';
|
|
11
|
-
export type { TableProps } from './Table';
|
|
12
|
-
export type { TableHeadProps } from './TableHead';
|
|
13
|
-
export type { TableBodyProps } from './TableBody';
|
|
14
|
-
export type { TableFootProps } from './TableFoot';
|
|
15
|
-
export type { TableRowProps } from './TableRow';
|
|
16
|
-
export type { TableHeadCellProps } from './TableHeadCell';
|
|
17
|
-
export type { TableCellProps } from './TableCell';
|
|
18
|
-
export type { TableToolbarProps } from './TableToolbar';
|
|
19
|
-
export type { TableFeedbackProps } from './TableFeedback';
|
|
20
|
-
export type { TableActionsProps } from './TableActions';
|
|
21
|
-
export type { TableSize, TableCellAlignment, TableSortDirection, TableHeadCellSortEventDetails, } from '@loadsmart/miranda-wc';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { Tab as WCTab } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-tab': WebComponentProps<WCTab> & TabProps;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare const WiredTab: import("@lit/react").ReactWebComponent<WCTab, {}>;
|
|
12
|
-
export interface TabProps extends ComponentProps<typeof WiredTab> {
|
|
13
|
-
leading?: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
declare const Tab: import("react").ForwardRefExoticComponent<Omit<TabProps, "ref"> & import("react").RefAttributes<WCTab>>;
|
|
16
|
-
export default Tab;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TabPanel as WCTabPanel } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-tab-panel': WebComponentProps<WCTabPanel>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare const TabPanel: import("@lit/react").ReactWebComponent<WCTabPanel, {}>;
|
|
12
|
-
export type TabPanelProps = ComponentProps<typeof TabPanel>;
|
|
13
|
-
export default TabPanel;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Tabs as WCTabs } from '@loadsmart/miranda-wc';
|
|
2
|
-
import type { EventName, WebComponentProps } from '@lit/react';
|
|
3
|
-
import type { ComponentProps } from 'react';
|
|
4
|
-
import type { TabChangeEventDetail } from '@loadsmart/miranda-wc';
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
'm-tabs': WebComponentProps<HTMLElement>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
declare const Tabs: import("@lit/react").ReactWebComponent<WCTabs, {
|
|
13
|
-
onTabChange: EventName<CustomEvent<TabChangeEventDetail>>;
|
|
14
|
-
}> & {
|
|
15
|
-
Tab: import("react").ForwardRefExoticComponent<Omit<import("./Tab").TabProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").Tab>>;
|
|
16
|
-
Panel: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TabPanel, {}>;
|
|
17
|
-
};
|
|
18
|
-
export type TabsProps = ComponentProps<typeof Tabs>;
|
|
19
|
-
export default Tabs;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Tabs } from './Tabs';
|
|
2
|
-
export { default as Tab } from './Tab';
|
|
3
|
-
export { default as TabPanel } from './TabPanel';
|
|
4
|
-
export type { TabsProps } from './Tabs';
|
|
5
|
-
export type { TabProps } from './Tab';
|
|
6
|
-
export type { TabPanelProps } from './TabPanel';
|
|
7
|
-
export type { TabContentDirection } from '@loadsmart/miranda-wc';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ActionableTag as WCActionableTag } from '@loadsmart/miranda-wc';
|
|
2
|
-
import type { EventName, WebComponentProps } from '@lit/react';
|
|
3
|
-
import type { ReactNode, ComponentProps } from 'react';
|
|
4
|
-
import type { MirandaChangeEvent } from '../../utils/types';
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
'm-actionable-tag': WebComponentProps<WCActionableTag>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
declare const WiredActionableTag: import("@lit/react").ReactWebComponent<WCActionableTag, {
|
|
13
|
-
onChange: EventName<MirandaChangeEvent<WCActionableTag>>;
|
|
14
|
-
onRemove: EventName<CustomEvent<any>>;
|
|
15
|
-
}>;
|
|
16
|
-
export type ActionableTagProps = ComponentProps<typeof WiredActionableTag> & {
|
|
17
|
-
leading?: ReactNode;
|
|
18
|
-
};
|
|
19
|
-
declare const ActionableTag: import("react").ForwardRefExoticComponent<Omit<ActionableTagProps, "ref"> & import("react").RefAttributes<WCActionableTag>>;
|
|
20
|
-
export default ActionableTag;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReactNode, ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { Tag as WCTag } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-tag': WebComponentProps<WCTag>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare const WiredTag: import("@lit/react").ReactWebComponent<WCTag, {}>;
|
|
12
|
-
export type TagProps = ComponentProps<typeof WiredTag> & {
|
|
13
|
-
leading?: ReactNode;
|
|
14
|
-
};
|
|
15
|
-
declare const Tag: import("react").ForwardRefExoticComponent<Omit<TagProps, "ref"> & import("react").RefAttributes<WCTag>>;
|
|
16
|
-
export default Tag;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { Text as WCText } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-text': WebComponentProps<WCText>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare module 'react' {
|
|
12
|
-
interface CSSProperties {
|
|
13
|
-
'--m-text-display'?: string;
|
|
14
|
-
'--m-text-max-width'?: string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
declare const Text: import("@lit/react").ReactWebComponent<WCText, {}>;
|
|
18
|
-
export type TextProps = ComponentProps<typeof Text>;
|
|
19
|
-
export default Text;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TextArea as WCTextArea } from '@loadsmart/miranda-wc';
|
|
2
|
-
import type { ComponentProps } from 'react';
|
|
3
|
-
import type { EventName, WebComponentProps } from '@lit/react';
|
|
4
|
-
import type { TextAreaProps as WCTextAreaProps } from '@loadsmart/miranda-wc';
|
|
5
|
-
import type { MirandaChangeEvent } from '../../utils/types';
|
|
6
|
-
declare global {
|
|
7
|
-
namespace JSX {
|
|
8
|
-
interface IntrinsicElements {
|
|
9
|
-
'm-text-area': WebComponentProps<WCTextArea> & WCTextAreaProps;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
declare const WiredTextArea: import("@lit/react").ReactWebComponent<WCTextArea, {
|
|
14
|
-
onInput: EventName<MirandaChangeEvent<WCTextArea>>;
|
|
15
|
-
onChange: EventName<MirandaChangeEvent<WCTextArea>>;
|
|
16
|
-
}>;
|
|
17
|
-
export type TextAreaProps = ComponentProps<typeof WiredTextArea>;
|
|
18
|
-
declare function TextArea(props: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export default TextArea;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TextField as WCTextField } from '@loadsmart/miranda-wc';
|
|
2
|
-
import type { EventName, WebComponentProps } from '@lit/react';
|
|
3
|
-
import type { ReactNode, ComponentProps } from 'react';
|
|
4
|
-
import type { MirandaChangeEvent } from '../../utils/types';
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
'm-text-field': WebComponentProps<WCTextField>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
declare const WiredTextField: import("@lit/react").ReactWebComponent<WCTextField, {
|
|
13
|
-
onInput: EventName<MirandaChangeEvent<WCTextField>>;
|
|
14
|
-
onChange: EventName<MirandaChangeEvent<WCTextField>>;
|
|
15
|
-
onClear: EventName<CustomEvent<any>>;
|
|
16
|
-
}>;
|
|
17
|
-
export type TextFieldProps = ComponentProps<typeof WiredTextField> & {
|
|
18
|
-
leading?: ReactNode;
|
|
19
|
-
trailing?: ReactNode;
|
|
20
|
-
};
|
|
21
|
-
declare const TextField: import("react").ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & import("react").RefAttributes<WCTextField>>;
|
|
22
|
-
export default TextField;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { Timeline as WCTimeline } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline': WebComponentProps<WCTimeline>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const Timeline: import("@lit/react").ReactWebComponent<WCTimeline, {}> & {
|
|
12
|
-
Item: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TimelineItem, {}>;
|
|
13
|
-
ExpandableItem: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TimelineExpandableItem, {}>;
|
|
14
|
-
ItemBody: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TimelineItemBody, {}>;
|
|
15
|
-
ItemFooter: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TimelineItemFooter, {}>;
|
|
16
|
-
ItemHeader: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TimelineItemHeader, {}>;
|
|
17
|
-
ItemHeaderTitle: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TimelineItemHeaderTitle, {}>;
|
|
18
|
-
ItemHeaderSubtitle: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TimelineItemHeaderSubtitle, {}>;
|
|
19
|
-
ItemIcon: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").TimelineItemIcon, {}>;
|
|
20
|
-
};
|
|
21
|
-
export type TimelineProps = ComponentProps<typeof Timeline>;
|
|
22
|
-
export type { TimelineItemProps } from './TimelineItem';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TimelineExpandableItem as WCTimelineExpandableItem } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline-expandable-item': WebComponentProps<WCTimelineExpandableItem>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineExpandableItem: import("@lit/react").ReactWebComponent<WCTimelineExpandableItem, {}>;
|
|
12
|
-
export type TimelineExpandableItemProps = ComponentProps<typeof TimelineExpandableItem>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TimelineItem as WCTimelineItem } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline-item': WebComponentProps<WCTimelineItem>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineItem: import("@lit/react").ReactWebComponent<WCTimelineItem, {}>;
|
|
12
|
-
export type TimelineItemProps = ComponentProps<typeof TimelineItem>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TimelineItemBody as WCTimelineItemBody } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline-item-body': WebComponentProps<WCTimelineItemBody>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineItemBody: import("@lit/react").ReactWebComponent<WCTimelineItemBody, {}>;
|
|
12
|
-
export type TimelineItemBodyProps = ComponentProps<typeof TimelineItemBody>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TimelineItemFooter as WCTimelineItemFooter } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline-item-footer': WebComponentProps<WCTimelineItemFooter>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineItemFooter: import("@lit/react").ReactWebComponent<WCTimelineItemFooter, {}>;
|
|
12
|
-
export type TimelineItemFooterProps = ComponentProps<typeof TimelineItemFooter>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TimelineItemHeader as WCTimelineItemHeader } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline-item-header': WebComponentProps<WCTimelineItemHeader>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineItemHeader: import("@lit/react").ReactWebComponent<WCTimelineItemHeader, {}>;
|
|
12
|
-
export type TimelineItemHeaderProps = ComponentProps<typeof TimelineItemHeader>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TimelineItemHeaderSubtitle as WCTimelineItemHeaderSubtitle } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline-item-header-subtitle': WebComponentProps<WCTimelineItemHeaderSubtitle>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineItemHeaderSubtitle: import("@lit/react").ReactWebComponent<WCTimelineItemHeaderSubtitle, {}>;
|
|
12
|
-
export type TimelineItemHeaderSubtitleProps = ComponentProps<typeof TimelineItemHeaderSubtitle>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TimelineItemHeaderTitle as WCTimelineItemHeaderTitle } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline-item-header-title': WebComponentProps<WCTimelineItemHeaderTitle>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineItemHeaderTitle: import("@lit/react").ReactWebComponent<WCTimelineItemHeaderTitle, {}>;
|
|
12
|
-
export type TimelineItemHeaderTitleProps = ComponentProps<typeof TimelineItemHeaderTitle>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TimelineItemIcon as WCTimelineItemIcon } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-timeline-item-icon': WebComponentProps<WCTimelineItemIcon>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineItemIcon: import("@lit/react").ReactWebComponent<WCTimelineItemIcon, {}>;
|
|
12
|
-
export type TimelineItemIconProps = ComponentProps<typeof TimelineItemIcon>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { Timeline } from './Timeline';
|
|
2
|
-
export { TimelineItem } from './TimelineItem';
|
|
3
|
-
export { TimelineExpandableItem } from './TimelineExpandableItem';
|
|
4
|
-
export { TimelineItemBody } from './TimelineItemBody';
|
|
5
|
-
export { TimelineItemFooter } from './TimelineItemFooter';
|
|
6
|
-
export { TimelineItemHeader } from './TimelineItemHeader';
|
|
7
|
-
export { TimelineItemHeaderSubtitle } from './TimelineItemHeaderSubtitle';
|
|
8
|
-
export { TimelineItemHeaderTitle } from './TimelineItemHeaderTitle';
|
|
9
|
-
export { TimelineItemIcon } from './TimelineItemIcon';
|
|
10
|
-
export type { TimelineProps, TimelineItemProps } from './Timeline';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReactNode, ComponentProps } from 'react';
|
|
2
|
-
import type { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { Toggle as WCToggle } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-toggle': WebComponentProps<WCToggle>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare const WiredToggle: import("@lit/react").ReactWebComponent<WCToggle, {}>;
|
|
12
|
-
export type ToggleProps = ComponentProps<typeof WiredToggle> & {
|
|
13
|
-
leading?: ReactNode;
|
|
14
|
-
};
|
|
15
|
-
declare const Toggle: import("react").ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & import("react").RefAttributes<WCToggle>>;
|
|
16
|
-
export default Toggle;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ToggleGroup as WCToggleGroup } from '@loadsmart/miranda-wc';
|
|
2
|
-
import type { EventName, WebComponentProps } from '@lit/react';
|
|
3
|
-
import type { ReactNode, ComponentProps } from 'react';
|
|
4
|
-
import type { MirandaChangeEvent } from '../../utils/types';
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
'm-toggle-group': WebComponentProps<WCToggleGroup>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
declare const WiredToggleGroup: import("@lit/react").ReactWebComponent<WCToggleGroup, {
|
|
13
|
-
onChange: EventName<MirandaChangeEvent<WCToggleGroup>>;
|
|
14
|
-
}>;
|
|
15
|
-
export type ToggleGroupOption = {
|
|
16
|
-
value: string;
|
|
17
|
-
label?: string;
|
|
18
|
-
leading?: ReactNode;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type ToggleGroupProps = ComponentProps<typeof WiredToggleGroup> & {
|
|
22
|
-
options?: ToggleGroupOption[];
|
|
23
|
-
};
|
|
24
|
-
declare function ToggleGroup(props: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
declare namespace ToggleGroup {
|
|
26
|
-
var Toggle: import("react").ForwardRefExoticComponent<Omit<import("./Toggle").ToggleProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").Toggle>>;
|
|
27
|
-
}
|
|
28
|
-
export default ToggleGroup;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Tooltip as WCTooltip } from '@loadsmart/miranda-wc';
|
|
2
|
-
import type { ReactElement, ReactNode, ComponentProps } from 'react';
|
|
3
|
-
import type { WebComponentProps } from '@lit/react';
|
|
4
|
-
import type { TooltipPlacement, TooltipTrigger } from '@loadsmart/miranda-wc';
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
'm-tooltip': WebComponentProps<WCTooltip>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
declare const WiredTooltip: import("@lit/react").ReactWebComponent<WCTooltip, {}>;
|
|
13
|
-
export type TooltipProps = ComponentProps<typeof WiredTooltip> & {
|
|
14
|
-
message: ReactNode;
|
|
15
|
-
children: ReactElement;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Render the tooltip component.
|
|
19
|
-
*
|
|
20
|
-
* **Warning**: This component will throw if the provided `children` is not a single child,
|
|
21
|
-
* and will not render if the children is not valid or is a fragment.
|
|
22
|
-
*/
|
|
23
|
-
export declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
-
export type { TooltipPlacement, TooltipTrigger };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { OptionType } from './types';
|
|
2
|
-
export declare const OPTIONS: readonly [{
|
|
3
|
-
readonly label: "Change";
|
|
4
|
-
readonly value: "change";
|
|
5
|
-
}, {
|
|
6
|
-
readonly label: "Accept";
|
|
7
|
-
readonly value: "accept";
|
|
8
|
-
}, {
|
|
9
|
-
readonly label: "Leave";
|
|
10
|
-
readonly value: "leave";
|
|
11
|
-
}];
|
|
12
|
-
export declare const optionsTypes: OptionType[];
|
package/dist/tests/types.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { EventName, Options } from '@lit/react';
|
|
2
|
-
type EventNames = Record<string, EventName | string>;
|
|
3
|
-
export declare const createComponent: <I extends HTMLElement, E extends EventNames = {}, SubComponents extends Record<string, unknown> = {}>({ subComponents, ...options }: Omit<Options<I, E>, "react"> & {
|
|
4
|
-
subComponents?: SubComponents | undefined;
|
|
5
|
-
}) => import("@lit/react").ReactWebComponent<I, E> & SubComponents;
|
|
6
|
-
export {};
|
package/dist/utils/types.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ChangeEvent } from 'react';
|
|
2
|
-
export type Mutable<T> = {
|
|
3
|
-
-readonly [P in keyof T]: T[P] extends ReadonlyArray<infer U> ? U[] : T[P];
|
|
4
|
-
};
|
|
5
|
-
export type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
6
|
-
/**
|
|
7
|
-
* Allows creating a union type by combining primitive types and literal types while keeping auto-completion
|
|
8
|
-
* in IDEs for the literal type part of the union.
|
|
9
|
-
*/
|
|
10
|
-
export type LiteralUnion<LiteralType, BaseType extends Primitive> = LiteralType | (BaseType & Record<never, never>);
|
|
11
|
-
/**
|
|
12
|
-
* This is a patch type to make our components compatible to React's
|
|
13
|
-
* synthetic event types.
|
|
14
|
-
*/
|
|
15
|
-
export type MirandaChangeEvent<T = Element> = ChangeEvent<T> & Event;
|
package/dist/utils/utils.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { OPTIONS } from '../tests/constants';
|
|
2
|
-
import type { Mutable } from './types';
|
|
3
|
-
import type { OptionType, TestOption } from '../tests/types';
|
|
4
|
-
export declare function getOptions(overrides?: Partial<Record<OptionType, TestOption>>): TestOption[] | Mutable<typeof OPTIONS>;
|
|
5
|
-
export declare const noop: () => undefined;
|