math-main-components 0.0.198 → 0.0.202
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/README.md +15 -1
- package/dist/components/.Slider/Slider.d.ts +8 -0
- package/dist/components/.Slider/index.d.ts +1 -0
- package/dist/components/.StepBack/StepBack.d.ts +5 -0
- package/dist/components/.StepBack/index.d.ts +1 -0
- package/dist/components/ForwardButton/ForwardButton.stories.d.ts +2 -2
- package/dist/components/InputArea/InputArea.stories.d.ts +13 -0
- package/dist/components/InputMail/InputMail.stories.d.ts +13 -0
- package/dist/components/InputNames/InputNames.stories.d.ts +13 -0
- package/dist/components/InputNumber/InputNumber.stories.d.ts +13 -0
- package/dist/components/InputPassword/InputPassword.d.ts +1 -1
- package/dist/components/InputPassword/InputPassword.stories.d.ts +13 -0
- package/dist/components/InputPin/InputPin.stories.d.ts +13 -0
- package/dist/components/InputText/InputText.stories.d.ts +13 -0
- package/dist/components/NumberDropdown/NumberDropdown.stories.d.ts +18 -0
- package/dist/components/NumberDropdown/index.d.ts +11 -0
- package/dist/components/NumberField/NumberField.stories.d.ts +13 -0
- package/dist/components/NumberField/index.d.ts +17 -0
- package/dist/components/OptionField/OptionField.stories.d.ts +13 -0
- package/dist/components/OptionField2/OptionField2.d.ts +7 -0
- package/dist/components/OptionField2/OptionField2.stories.d.ts +13 -0
- package/dist/components/OptionField2/index.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +2 -1
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +13 -0
- package/dist/components/RadioButtons/RadioButtons.d.ts +2 -3
- package/dist/components/RadioButtons/RadioButtons.stories.d.ts +13 -0
- package/dist/components/RadioButtons/index.d.ts +1 -1
- package/dist/components/RedirectButton/RedirectButton.d.ts +4 -3
- package/dist/components/RedirectButton/RedirectButton.stories.d.ts +15 -0
- package/dist/components/SearchChips/SearchChips.d.ts +3 -4
- package/dist/components/SearchChips/Searchbar.stories.d.ts +13 -0
- package/dist/components/SearchChips/index.d.ts +1 -1
- package/dist/components/Searchbar/Searchbar.d.ts +2 -1
- package/dist/components/Searchbar/Searchbar.stories.d.ts +13 -0
- package/dist/components/Table/Table.d.ts +5 -4
- package/dist/components/Table/Table.stories.d.ts +26 -0
- package/dist/components/Tabs/Tabs.d.ts +2 -3
- package/dist/components/Tabs/Tabs.stories.d.ts +11 -0
- package/dist/components/TextWithIcon/TextWithIcon.stories.d.ts +11 -0
- package/dist/components/ToggleBox/index.d.ts +7 -0
- package/dist/components/UsageCard/UsageCard.stories.d.ts +11 -0
- package/dist/index.cjs.js +309 -275
- package/dist/index.d.ts +5 -3
- package/dist/index.esm.js +293 -258
- package/package.json +1 -1
- package/styles/theme-styles.scss +3 -1
package/README.md
CHANGED
@@ -24,4 +24,18 @@ In order to unlink the packages, run `yarn retreat math-main-components` in app
|
|
24
24
|
## Publishing
|
25
25
|
1. increment version in `package.json`
|
26
26
|
2. run `npm publish --access public`
|
27
|
-
3. run `yarn add math-main-components@0.0.1` in project
|
27
|
+
3. run `yarn add math-main-components@0.0.1` in project
|
28
|
+
|
29
|
+
|
30
|
+
## Using styles
|
31
|
+
|
32
|
+
In order to use styles you need to have 'sass' installed.
|
33
|
+
|
34
|
+
In your _app.js file, import the styles like this:
|
35
|
+
|
36
|
+
```ts
|
37
|
+
import 'math-main-components/styles/font.scss'
|
38
|
+
import 'math-main-components/styles/material-symbols.scss'
|
39
|
+
import 'math-main-components/styles/theme-colors.scss'
|
40
|
+
import 'math-main-components/styles/theme-styles.scss'
|
41
|
+
```
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Slider, type SliderCard } from './Slider';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { StepBack } from './StepBack';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
2
|
-
import {
|
2
|
+
import { ForwardButton } from './ForwardButton';
|
3
3
|
declare const meta: {
|
4
4
|
title: string;
|
5
|
-
component: typeof
|
5
|
+
component: typeof ForwardButton;
|
6
6
|
parameters: {
|
7
7
|
layout: string;
|
8
8
|
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { InputArea } from './InputArea';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof InputArea;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { InputMail } from './InputMail';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof InputMail;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { InputNames } from './InputNames';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof InputNames;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { InputNumber } from './InputNumber';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof InputNumber;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { InputPassword } from './InputPassword';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof InputPassword;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { InputPin } from './InputPin';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof InputPin;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { InputText } from './InputText';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof InputText;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: <Type extends string>({ options, unit, onChangeDropdown, onChangeInput, ...props }: {
|
6
|
+
options: import("./").NumberDropdownOption<Type>[];
|
7
|
+
onChangeDropdown?: ((value: Type) => void) | undefined;
|
8
|
+
onChangeInput?: ((value: number) => void) | undefined;
|
9
|
+
unit?: string | undefined;
|
10
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement>) => import("react").JSX.Element;
|
11
|
+
parameters: {
|
12
|
+
layout: string;
|
13
|
+
};
|
14
|
+
tags: string[];
|
15
|
+
};
|
16
|
+
export default meta;
|
17
|
+
type Story = StoryObj<typeof meta>;
|
18
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
2
|
+
export type NumberDropdownOption<Type> = {
|
3
|
+
value: Type;
|
4
|
+
label: string;
|
5
|
+
};
|
6
|
+
export declare const NumberDropdown: <Type extends string>({ options, unit, onChangeDropdown, onChangeInput, ...props }: {
|
7
|
+
options: NumberDropdownOption<Type>[];
|
8
|
+
onChangeDropdown?: ((value: Type) => void) | undefined;
|
9
|
+
onChangeInput?: ((value: number) => void) | undefined;
|
10
|
+
unit?: string | undefined;
|
11
|
+
} & React.InputHTMLAttributes<HTMLInputElement>) => React.JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { NumberField } from '../NumberField';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof NumberField;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React, { HTMLInputTypeAttribute } from 'react';
|
2
|
+
export declare function NumberField<Type>({ placeholder, type, active, onChangeActive, enableLocked, locked, onChangeLocked, title, unit, name, defaultValue, onUpdate, disabled, min, max, validate, ...props }: {
|
3
|
+
placeholder?: string;
|
4
|
+
type?: HTMLInputTypeAttribute;
|
5
|
+
title?: string;
|
6
|
+
unit?: string;
|
7
|
+
active?: boolean;
|
8
|
+
onChangeActive?: (active: boolean) => void;
|
9
|
+
name: Type;
|
10
|
+
defaultValue?: number;
|
11
|
+
disabled?: boolean;
|
12
|
+
enableLocked?: boolean;
|
13
|
+
locked?: boolean;
|
14
|
+
onChangeLocked?: (locked: boolean) => void;
|
15
|
+
onUpdate?: (value: number) => void;
|
16
|
+
validate?: (name: Type, value: number) => boolean;
|
17
|
+
} & React.InputHTMLAttributes<HTMLInputElement>): React.JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { OptionField } from './OptionField';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof OptionField;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React, { MouseEvent } from 'react';
|
2
|
+
export declare function OptionField2({ title, iconName, onClick, preselected }: {
|
3
|
+
title: string;
|
4
|
+
iconName?: string;
|
5
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
6
|
+
preselected?: boolean;
|
7
|
+
}): React.JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { OptionField2 } from './OptionField2';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof OptionField2;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { OptionField2 } from './OptionField2';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { ProgressBar } from './ProgressBar';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof ProgressBar;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import React, { ChangeEvent } from 'react';
|
2
|
-
export
|
2
|
+
export type RadioOption = {
|
3
3
|
text: string;
|
4
4
|
name: string;
|
5
|
-
|
6
|
-
}
|
5
|
+
};
|
7
6
|
export declare function RadioButtons({ options, group, selected, onClick, width }: {
|
8
7
|
options: RadioOption[];
|
9
8
|
group: string;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { RadioButtons } from './RadioButtons';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof RadioButtons;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -1 +1 @@
|
|
1
|
-
export { RadioButtons, RadioOption } from './RadioButtons';
|
1
|
+
export { RadioButtons, type RadioOption } from './RadioButtons';
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare function RedirectButton({ id, type, onClick }: {
|
1
|
+
import React, { MouseEvent, ReactNode } from 'react';
|
2
|
+
export declare function RedirectButton({ id, type, onClick, children }: {
|
3
3
|
id?: string;
|
4
4
|
type: "forward" | "back" | "middle";
|
5
|
-
onClick?:
|
5
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
6
|
+
children?: ReactNode;
|
6
7
|
}): React.JSX.Element;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { RedirectButton } from './RedirectButton';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof RedirectButton;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Forward: Story;
|
14
|
+
export declare const Backward: Story;
|
15
|
+
export declare const Middle: Story;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export
|
2
|
+
export type SearchChip = {
|
3
3
|
title: string;
|
4
4
|
value: string;
|
5
5
|
selected: boolean;
|
6
|
-
|
7
|
-
}
|
6
|
+
};
|
8
7
|
export declare function SearchChips({ items, onChange, chipsVisible }: {
|
9
8
|
items: SearchChip[];
|
10
9
|
onChange?: (chips: SearchChip[]) => void;
|
11
|
-
chipsVisible
|
10
|
+
chipsVisible?: number;
|
12
11
|
}): React.JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { SearchChips } from './SearchChips';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof SearchChips;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -1 +1 @@
|
|
1
|
-
export {
|
1
|
+
export { SearchChips, type SearchChip } from './SearchChips';
|
@@ -3,7 +3,7 @@ export type SearchResult = {
|
|
3
3
|
title: string;
|
4
4
|
data: unknown;
|
5
5
|
};
|
6
|
-
export declare function Searchbar<Type extends SearchResult>({ placeholder, title, showNoResults, errorTitle, errorMessage, errorButton, helpTitle, helpMessage, marginBottom, marginTop, errorAction, onInput, onClickResult, withButton, buttonText, suggestions, autoFocus, results }: {
|
6
|
+
export declare function Searchbar<Type extends SearchResult>({ placeholder, title, showNoResults, errorTitle, errorMessage, errorButton, helpTitle, helpMessage, width, marginBottom, marginTop, errorAction, onInput, onClickResult, withButton, buttonText, suggestions, autoFocus, results }: {
|
7
7
|
placeholder: string;
|
8
8
|
title?: string;
|
9
9
|
showNoResults?: boolean;
|
@@ -12,6 +12,7 @@ export declare function Searchbar<Type extends SearchResult>({ placeholder, titl
|
|
12
12
|
errorButton?: string;
|
13
13
|
helpTitle?: string;
|
14
14
|
helpMessage?: string;
|
15
|
+
width?: string;
|
15
16
|
marginBottom?: number;
|
16
17
|
marginTop?: number;
|
17
18
|
errorAction?: (event: MouseEvent<HTMLButtonElement>) => void;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { Searchbar } from './Searchbar';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof Searchbar;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -2,9 +2,9 @@ import React, { MouseEvent, ReactNode } from 'react';
|
|
2
2
|
export type TableActionType = "red" | "default";
|
3
3
|
export type TableItem<DataType> = {
|
4
4
|
title: string;
|
5
|
-
subtitle
|
6
|
-
moreText
|
7
|
-
iconName
|
5
|
+
subtitle?: string;
|
6
|
+
moreText?: string;
|
7
|
+
iconName?: string;
|
8
8
|
data: DataType;
|
9
9
|
};
|
10
10
|
export type TableItemAction<DataType> = {
|
@@ -13,11 +13,12 @@ export type TableItemAction<DataType> = {
|
|
13
13
|
onClick: (event: MouseEvent<HTMLDivElement>, item: TableItem<DataType>, index: number) => void;
|
14
14
|
type: TableActionType;
|
15
15
|
};
|
16
|
-
export declare function Table<DataType>({ items, title, actions, moreActions, selected, style, marginTop, emptyTitle, emptySubtitle, emptyIconName, enableEmptyCard }: {
|
16
|
+
export declare function Table<DataType>({ items, title, actions, moreActions, selected, style, marginTop, width, emptyTitle, emptySubtitle, emptyIconName, enableEmptyCard }: {
|
17
17
|
items: TableItem<DataType>[];
|
18
18
|
title: string;
|
19
19
|
selected?: number;
|
20
20
|
style?: "default" | "blue";
|
21
|
+
width?: string;
|
21
22
|
actions?: TableItemAction<DataType>[];
|
22
23
|
moreActions?: ((data: DataType, index: number) => ReactNode)[];
|
23
24
|
marginTop?: number;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: ({ items, title, actions, moreActions, selected, style, marginTop, width, emptyTitle, emptySubtitle, emptyIconName, enableEmptyCard }: {
|
6
|
+
items: import("./Table").TableItem<null>[];
|
7
|
+
title: string;
|
8
|
+
selected?: number | undefined;
|
9
|
+
style?: "blue" | "default" | undefined;
|
10
|
+
width?: string | undefined;
|
11
|
+
actions?: import("./Table").TableItemAction<null>[] | undefined;
|
12
|
+
moreActions?: ((data: null, index: number) => import("react").ReactNode)[] | undefined;
|
13
|
+
marginTop?: number | undefined;
|
14
|
+
emptyTitle?: string | undefined;
|
15
|
+
emptySubtitle?: string | undefined;
|
16
|
+
emptyIconName?: string | undefined;
|
17
|
+
enableEmptyCard?: boolean | undefined;
|
18
|
+
}) => import("react").JSX.Element;
|
19
|
+
parameters: {
|
20
|
+
layout: string;
|
21
|
+
};
|
22
|
+
tags: string[];
|
23
|
+
};
|
24
|
+
export default meta;
|
25
|
+
type Story = StoryObj<typeof meta>;
|
26
|
+
export declare const Primary: Story;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
|
2
|
+
export type TabItem = {
|
3
3
|
title: string;
|
4
4
|
value: string;
|
5
|
-
}
|
5
|
+
};
|
6
6
|
export declare function Tabs({ tabs, onSelect, selected }: {
|
7
7
|
tabs: TabItem[];
|
8
8
|
onSelect?: (value: string) => void;
|
9
9
|
selected?: string;
|
10
10
|
}): React.JSX.Element;
|
11
|
-
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { Tabs } from './Tabs';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof Tabs;
|
6
|
+
parameters: {};
|
7
|
+
tags: string[];
|
8
|
+
};
|
9
|
+
export default meta;
|
10
|
+
type Story = StoryObj<typeof meta>;
|
11
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { TextWithIcon } from './TextWithIcon';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof TextWithIcon;
|
6
|
+
parameters: {};
|
7
|
+
tags: string[];
|
8
|
+
};
|
9
|
+
export default meta;
|
10
|
+
type Story = StoryObj<typeof meta>;
|
11
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const ToggleBox: ({ defaultActive, activeIcon, inactiveIcon, onSwitch }: {
|
3
|
+
defaultActive?: boolean | undefined;
|
4
|
+
activeIcon?: string | undefined;
|
5
|
+
inactiveIcon?: string | undefined;
|
6
|
+
onSwitch?: ((active: boolean) => void) | undefined;
|
7
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { UsageCard } from './UsageCard';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof UsageCard;
|
6
|
+
parameters: {};
|
7
|
+
tags: string[];
|
8
|
+
};
|
9
|
+
export default meta;
|
10
|
+
type Story = StoryObj<typeof meta>;
|
11
|
+
export declare const Primary: Story;
|