@loadsmart/miranda-react 3.0.0-beta.63 → 3.0.0-beta.64
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 +1567 -110
- package/dist/tokens.d.ts +64 -2
- package/package.json +3 -3
- package/dist/components/Accordion/Accordion.d.ts +0 -18
- 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 -34
- 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/DotsLoader/DotsLoader.d.ts +0 -13
- package/dist/components/DotsLoader/index.d.ts +0 -2
- package/dist/components/Drawer/Drawer.d.ts +0 -35
- 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 -21
- 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/HeaderTabs.d.ts +0 -14
- 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 -10
- 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 -19
- 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 -13
- 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 -15
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -14
- 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 -30
- 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 -20
- 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 -37
- 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 -14
- package/dist/components/Table/TableRow.d.ts +0 -12
- package/dist/components/Table/TableSelectionCell.d.ts +0 -12
- package/dist/components/Table/TableToolbar.d.ts +0 -12
- package/dist/components/Table/index.d.ts +0 -23
- package/dist/components/TableLayout/TableLayout.d.ts +0 -25
- package/dist/components/TableLayout/TableLayoutActions.d.ts +0 -12
- package/dist/components/TableLayout/TableLayoutFeedback.d.ts +0 -12
- package/dist/components/TableLayout/TableLayoutToolbar.d.ts +0 -12
- package/dist/components/TableLayout/index.d.ts +0 -8
- 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 -18
- 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 -18
- package/dist/components/TextArea/index.d.ts +0 -2
- package/dist/components/TextField/TextField.d.ts +0 -23
- 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 -27
- package/dist/components/ToggleGroup/index.d.ts +0 -4
- package/dist/components/Tooltip/Tooltip.d.ts +0 -23
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/utils/SelectionProps.d.ts +0 -28
- 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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,14 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { EventName, WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableHeadCellSortEventDetails, TableHeadCell as WCTableHeadCell } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-head-cell': WebComponentProps<WCTableHeadCell>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableHeadCell: import('@lit/react').ReactWebComponent<WCTableHeadCell, {
|
|
12
|
-
onSort: EventName<CustomEvent<TableHeadCellSortEventDetails>>;
|
|
13
|
-
}>;
|
|
14
|
-
export type TableHeadCellProps = ComponentProps<typeof TableHeadCell>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableSelectionCell as WCTableSelectionCell } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-selection-cell': WebComponentProps<WCTableSelectionCell>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableSelectionCell: import('@lit/react').ReactWebComponent<WCTableSelectionCell, {}>;
|
|
12
|
-
export type TableSelectionCellProps = ComponentProps<typeof TableSelectionCell>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { 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,23 +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 { TableSelectionCell } from './TableSelectionCell';
|
|
9
|
-
export { TableToolbar } from './TableToolbar';
|
|
10
|
-
export { TableFeedback } from './TableFeedback';
|
|
11
|
-
export { TableActions } from './TableActions';
|
|
12
|
-
export type { TableProps } from './Table';
|
|
13
|
-
export type { TableHeadProps } from './TableHead';
|
|
14
|
-
export type { TableBodyProps } from './TableBody';
|
|
15
|
-
export type { TableFootProps } from './TableFoot';
|
|
16
|
-
export type { TableRowProps } from './TableRow';
|
|
17
|
-
export type { TableHeadCellProps } from './TableHeadCell';
|
|
18
|
-
export type { TableCellProps } from './TableCell';
|
|
19
|
-
export type { TableToolbarProps } from './TableToolbar';
|
|
20
|
-
export type { TableFeedbackProps } from './TableFeedback';
|
|
21
|
-
export type { TableActionsProps } from './TableActions';
|
|
22
|
-
export type { TableSize, TableCellAlignment, TableSortDirection, TableHeadCellSortEventDetails, TableSelectEventDetails, } from '@loadsmart/miranda-wc';
|
|
23
|
-
export type { TableSelectionCellProps } from './TableSelectionCell';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TableLayout as WCTableLayout } from '@loadsmart/miranda-wc';
|
|
2
|
-
import { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-layout': WebComponentProps<HTMLElement>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare module 'react' {
|
|
12
|
-
interface CSSProperties {
|
|
13
|
-
'--m-table-border-radius'?: string;
|
|
14
|
-
'--m-table-border-top-left-radius'?: string;
|
|
15
|
-
'--m-table-border-top-right-radius'?: string;
|
|
16
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
17
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export declare const TableLayout: import('@lit/react').ReactWebComponent<WCTableLayout, {}> & {
|
|
21
|
-
Toolbar: import('@lit/react').ReactWebComponent<import('@loadsmart/miranda-wc').TableLayoutToolbar, {}>;
|
|
22
|
-
Feedback: import('@lit/react').ReactWebComponent<import('@loadsmart/miranda-wc').TableLayoutFeedback, {}>;
|
|
23
|
-
Actions: import('@lit/react').ReactWebComponent<import('@loadsmart/miranda-wc').TableLayoutActions, {}>;
|
|
24
|
-
};
|
|
25
|
-
export type TableLayoutProps = ComponentProps<typeof TableLayout>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableLayoutActions as WCTableLayoutActions } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-layout-actions': WebComponentProps<WCTableLayoutActions>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableLayoutActions: import('@lit/react').ReactWebComponent<WCTableLayoutActions, {}>;
|
|
12
|
-
export type TableLayoutActionsProps = ComponentProps<typeof TableLayoutActions>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableLayoutFeedback as WCTableLayoutFeedback } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-layout-feedback': WebComponentProps<WCTableLayoutFeedback>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableLayoutFeedback: import('@lit/react').ReactWebComponent<WCTableLayoutFeedback, {}>;
|
|
12
|
-
export type TableLayoutFeedbackProps = ComponentProps<typeof TableLayoutFeedback>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { WebComponentProps } from '@lit/react';
|
|
3
|
-
import { TableLayoutToolbar as WCTableLayoutToolbar } from '@loadsmart/miranda-wc';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-table-layout-toolbar': WebComponentProps<WCTableLayoutToolbar>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const TableLayoutToolbar: import('@lit/react').ReactWebComponent<WCTableLayoutToolbar, {}>;
|
|
12
|
-
export type TableLayoutToolbarProps = ComponentProps<typeof TableLayoutToolbar>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { TableLayoutToolbar } from './TableLayoutToolbar';
|
|
2
|
-
export { TableLayoutFeedback } from './TableLayoutFeedback';
|
|
3
|
-
export { TableLayoutActions } from './TableLayoutActions';
|
|
4
|
-
export { TableLayout } from './TableLayout';
|
|
5
|
-
export type { TableLayoutToolbarProps } from './TableLayoutToolbar';
|
|
6
|
-
export type { TableLayoutFeedbackProps } from './TableLayoutFeedback';
|
|
7
|
-
export type { TableLayoutActionsProps } from './TableLayoutActions';
|
|
8
|
-
export type { TableLayoutProps } from './TableLayout';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React, ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import { 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: React.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React.RefAttributes<WCTab>>;
|
|
16
|
-
export default Tab;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { 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,18 +0,0 @@
|
|
|
1
|
-
import { Tabs as WCTabs, TabChangeEventDetail } from '@loadsmart/miranda-wc';
|
|
2
|
-
import { EventName, WebComponentProps } from '@lit/react';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-tabs': WebComponentProps<HTMLElement>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare const Tabs: import('@lit/react').ReactWebComponent<WCTabs, {
|
|
12
|
-
onTabChange: EventName<CustomEvent<TabChangeEventDetail>>;
|
|
13
|
-
}> & {
|
|
14
|
-
Tab: import('react').ForwardRefExoticComponent<Omit<import('./Tab').TabProps, "ref"> & import('react').RefAttributes<import('@loadsmart/miranda-wc').Tab>>;
|
|
15
|
-
Panel: import('@lit/react').ReactWebComponent<import('@loadsmart/miranda-wc').TabPanel, {}>;
|
|
16
|
-
};
|
|
17
|
-
export type TabsProps = ComponentProps<typeof Tabs>;
|
|
18
|
-
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 { default as React, ReactNode, ComponentProps } from 'react';
|
|
2
|
-
import { ActionableTag as WCActionableTag } from '@loadsmart/miranda-wc';
|
|
3
|
-
import { EventName, WebComponentProps } from '@lit/react';
|
|
4
|
-
import { 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>;
|
|
15
|
-
}>;
|
|
16
|
-
export type ActionableTagProps = ComponentProps<typeof WiredActionableTag> & {
|
|
17
|
-
leading?: ReactNode;
|
|
18
|
-
};
|
|
19
|
-
declare const ActionableTag: React.ForwardRefExoticComponent<Omit<ActionableTagProps, "ref"> & React.RefAttributes<WCActionableTag>>;
|
|
20
|
-
export default ActionableTag;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode, ComponentProps } from 'react';
|
|
2
|
-
import { 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: React.ForwardRefExoticComponent<Omit<TagProps, "ref"> & React.RefAttributes<WCTag>>;
|
|
16
|
-
export default Tag;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { 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,18 +0,0 @@
|
|
|
1
|
-
import { default as React, ComponentProps } from 'react';
|
|
2
|
-
import { TextArea as WCTextArea, TextAreaProps as WCTextAreaProps } from '@loadsmart/miranda-wc';
|
|
3
|
-
import { EventName, WebComponentProps } from '@lit/react';
|
|
4
|
-
import { MirandaChangeEvent } from '../../utils/types';
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
'm-text-area': WebComponentProps<WCTextArea> & WCTextAreaProps;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
declare const WiredTextArea: import('@lit/react').ReactWebComponent<WCTextArea, {
|
|
13
|
-
onInput: EventName<MirandaChangeEvent<WCTextArea>>;
|
|
14
|
-
onChange: EventName<MirandaChangeEvent<WCTextArea>>;
|
|
15
|
-
}>;
|
|
16
|
-
export type TextAreaProps = ComponentProps<typeof WiredTextArea>;
|
|
17
|
-
declare function TextArea(props: TextAreaProps): React.JSX.Element;
|
|
18
|
-
export default TextArea;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode, ComponentProps, InputHTMLAttributes } from 'react';
|
|
2
|
-
import { TextField as WCTextField } from '@loadsmart/miranda-wc';
|
|
3
|
-
import { EventName, WebComponentProps } from '@lit/react';
|
|
4
|
-
import { 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>;
|
|
16
|
-
}>;
|
|
17
|
-
export type TextFieldProps = Omit<ComponentProps<typeof WiredTextField>, 'value'> & {
|
|
18
|
-
value?: InputHTMLAttributes<HTMLInputElement>['value'];
|
|
19
|
-
leading?: ReactNode;
|
|
20
|
-
trailing?: ReactNode;
|
|
21
|
-
};
|
|
22
|
-
declare const TextField: React.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React.RefAttributes<WCTextField>>;
|
|
23
|
-
export default TextField;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { ComponentProps } from 'react';
|
|
2
|
-
import { 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 { default as React, ReactNode, ComponentProps } from 'react';
|
|
2
|
-
import { 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: React.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React.RefAttributes<WCToggle>>;
|
|
16
|
-
export default Toggle;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { ToggleGroup as WCToggleGroup, SelectionType } from '@loadsmart/miranda-wc';
|
|
3
|
-
import { EventName, WebComponentProps } from '@lit/react';
|
|
4
|
-
import { SelectionProps } from 'utils/SelectionProps';
|
|
5
|
-
import { MirandaChangeEvent } from '../../utils/types';
|
|
6
|
-
declare global {
|
|
7
|
-
namespace JSX {
|
|
8
|
-
interface IntrinsicElements {
|
|
9
|
-
'm-toggle-group': WebComponentProps<WCToggleGroup>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
declare const WiredToggleGroup: import('@lit/react').ReactWebComponent<WCToggleGroup, {
|
|
14
|
-
onChange: EventName<MirandaChangeEvent<WCToggleGroup>>;
|
|
15
|
-
}>;
|
|
16
|
-
export type ToggleGroupOption<TValue extends string> = {
|
|
17
|
-
value: TValue;
|
|
18
|
-
label?: string;
|
|
19
|
-
leading?: ReactNode;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
};
|
|
22
|
-
export type ToggleGroupProps<TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string> = SelectionProps<typeof WiredToggleGroup, TSelectionType, OptionValue, ToggleGroupOption<OptionValue>>;
|
|
23
|
-
declare function ToggleGroup<TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string>({ options, children, onChange, ...rest }: ToggleGroupProps<TSelectionType, OptionValue>): React.JSX.Element;
|
|
24
|
-
declare namespace ToggleGroup {
|
|
25
|
-
var Toggle: React.ForwardRefExoticComponent<Omit<import("./Toggle").ToggleProps, "ref"> & React.RefAttributes<import("@loadsmart/miranda-wc").Toggle>>;
|
|
26
|
-
}
|
|
27
|
-
export default ToggleGroup;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactElement, ReactNode, ComponentProps } from 'react';
|
|
2
|
-
import { Tooltip as WCTooltip, TooltipPlacement, TooltipTrigger } from '@loadsmart/miranda-wc';
|
|
3
|
-
import { WebComponentProps } from '@lit/react';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
'm-tooltip': WebComponentProps<WCTooltip>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare const WiredTooltip: import('@lit/react').ReactWebComponent<WCTooltip, {}>;
|
|
12
|
-
export type TooltipProps = ComponentProps<typeof WiredTooltip> & {
|
|
13
|
-
message: ReactNode;
|
|
14
|
-
children: ReactElement;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Render the tooltip component.
|
|
18
|
-
*
|
|
19
|
-
* **Warning**: This component will throw if the provided `children` is not a single child,
|
|
20
|
-
* and will not render if the children is not valid or is a fragment.
|
|
21
|
-
*/
|
|
22
|
-
export declare function Tooltip(props: TooltipProps): React.JSX.Element | null;
|
|
23
|
-
export type { TooltipPlacement, TooltipTrigger };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SelectionType, SelectionValue } from '@loadsmart/miranda-wc';
|
|
2
|
-
import { ComponentProps, JSXElementConstructor } from 'react';
|
|
3
|
-
import { MirandaChangeEvent } from './types';
|
|
4
|
-
export type OnChangeEvent<TComponent extends JSXElementConstructor<any>, T> = (event: MirandaChangeEvent<Omit<TComponent, 'value'> & {
|
|
5
|
-
value: T;
|
|
6
|
-
}>) => void;
|
|
7
|
-
interface BaseProps<TComponent extends JSXElementConstructor<any>, TValue> {
|
|
8
|
-
type?: string;
|
|
9
|
-
value?: TValue;
|
|
10
|
-
onChange?: OnChangeEvent<TComponent, TValue>;
|
|
11
|
-
}
|
|
12
|
-
interface SingleProps<TComponent extends JSXElementConstructor<any>, OptionValue extends string, TValue = OptionValue | null> extends BaseProps<TComponent, TValue> {
|
|
13
|
-
type?: 'single';
|
|
14
|
-
}
|
|
15
|
-
interface SingleStrictProps<TComponent extends JSXElementConstructor<any>, OptionValue extends string, TValue = OptionValue> extends BaseProps<TComponent, TValue> {
|
|
16
|
-
type?: 'single-strict';
|
|
17
|
-
}
|
|
18
|
-
interface MultipleProps<TComponent extends JSXElementConstructor<any>, OptionValue extends string, TValue = Array<OptionValue> | ReadonlyArray<OptionValue> | null> extends BaseProps<TComponent, Extract<TValue, ReadonlyArray<OptionValue>>> {
|
|
19
|
-
type?: 'multiple';
|
|
20
|
-
}
|
|
21
|
-
type SelectionOption<TValue extends string = string> = {
|
|
22
|
-
value: TValue;
|
|
23
|
-
};
|
|
24
|
-
export type SelectionProps<TComponent extends JSXElementConstructor<any>, TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string, TSelectionOption extends SelectionOption<OptionValue> = SelectionOption<OptionValue>, TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>> = Omit<ComponentProps<TComponent>, 'type' | 'value' | 'onChange'> & {
|
|
25
|
-
type?: TSelectionType;
|
|
26
|
-
options?: TOptions;
|
|
27
|
-
} & (TSelectionType extends 'single' ? SingleProps<TComponent, OptionValue> : TSelectionType extends 'single-strict' ? SingleStrictProps<TComponent, OptionValue> : TSelectionType extends 'multiple' ? MultipleProps<TComponent, OptionValue> : BaseProps<TComponent, SelectionValue<OptionValue>>);
|
|
28
|
-
export {};
|