@egov3/system-design 1.0.36 → 1.0.37
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 +2 -6
- package/dist/cjs/components/Typography/index.d.ts +2 -2
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/stories/Accordion.stories.d.ts +7 -0
- package/dist/cjs/stories/Button.stories.d.ts +28 -8
- package/dist/cjs/stories/CardWrapperItem.d.ts +4 -0
- package/dist/cjs/stories/InputField.stories.d.ts +21 -0
- package/dist/cjs/stories/RadioGroup.stories.d.ts +23 -0
- package/dist/cjs/stories/RadioToggle.stories.d.ts +13 -0
- package/dist/cjs/stories/Typography.stories.d.ts +12 -0
- package/dist/esm/components/Typography/index.d.ts +2 -2
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stories/Accordion.stories.d.ts +7 -0
- package/dist/esm/stories/Button.stories.d.ts +28 -8
- package/dist/esm/stories/CardWrapperItem.d.ts +4 -0
- package/dist/esm/stories/InputField.stories.d.ts +21 -0
- package/dist/esm/stories/RadioGroup.stories.d.ts +23 -0
- package/dist/esm/stories/RadioToggle.stories.d.ts +13 -0
- package/dist/esm/stories/Typography.stories.d.ts +12 -0
- package/package.json +74 -65
- package/dist/cjs/stories/Button.d.ts +0 -28
- package/dist/cjs/stories/Header.d.ts +0 -9
- package/dist/cjs/stories/Header.stories.d.ts +0 -6
- package/dist/cjs/stories/Page.d.ts +0 -9
- package/dist/cjs/stories/Page.stories.d.ts +0 -6
- package/dist/esm/stories/Button.d.ts +0 -28
- package/dist/esm/stories/Header.d.ts +0 -9
- package/dist/esm/stories/Header.stories.d.ts +0 -6
- package/dist/esm/stories/Page.d.ts +0 -9
- package/dist/esm/stories/Page.stories.d.ts +0 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const AccordionStory: () => React.JSX.Element;
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ open, setOpen, children, title, }: import("../components/Accordion").IAccordionProps) => React.JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, }: import("../components/Button").IButtonProps) => import("react").JSX.Element;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const IsRounded: Story;
|
|
18
|
+
export declare const NotRounded: Story;
|
|
19
|
+
export declare const Large: Story;
|
|
20
|
+
export declare const Medium: Story;
|
|
21
|
+
export declare const Small: Story;
|
|
22
|
+
export declare const Mini: Story;
|
|
23
|
+
export declare const VariantDefault: Story;
|
|
24
|
+
export declare const VariantTinted: Story;
|
|
25
|
+
export declare const VariantSecondary: Story;
|
|
26
|
+
export declare const VariantDefaultDisabled: Story;
|
|
27
|
+
export declare const VariantTintedDisabled: Story;
|
|
28
|
+
export declare const VariantSecondaryDisabled: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ onFocus, onBlur, onChange, onEnterPress, value, inputLeftIcon, placeholder, className, style, isClearable, type, id, labelText, ariaLabel, focused, setFocused, }: import("../components/InputField").IInputFieldProps) => React.ReactNode;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
13
|
+
ariaLabel: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
export declare const LeftIcon: Story;
|
|
20
|
+
export declare const IsClearable: Story;
|
|
21
|
+
export declare const Label: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ RadioGroupItems, invokeCustomOnChange, setSelectedOption, selectedOption, }: import("../components/RadioGroup").IRadioGroupProps) => import("react").JSX.Element;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
RadioGroupItems: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
invokeCustomOnChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
17
|
+
setSelectedOption: () => void;
|
|
18
|
+
selectedOption: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof meta>;
|
|
23
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ lock, setLock }: import("../components/RadioToggle").IRadioToggleProps) => React.JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export declare const Unlock: () => React.JSX.Element;
|
|
13
|
+
export declare const Lock: () => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("../components/Typography").ITypographyProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export declare const Typography: () => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
|
-
type
|
|
2
|
+
type TFontClass = "Heading1" | "Heading3" | "Subtitles3" | "Body1Medium" | "Body1Regular" | "Body2Medium" | "Body2Regular" | "Body3Regular" | "Caption1Medium" | "Caption1Regular" | "Caption1Semibold" | "Caption2Medium" | "Caption2Regular";
|
|
3
3
|
export interface ITypographyProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
4
|
tag: keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>;
|
|
5
|
-
fontClass:
|
|
5
|
+
fontClass: TFontClass;
|
|
6
6
|
}
|
|
7
7
|
export declare const Typography: FC<ITypographyProps>;
|
|
8
8
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Button } from "./Button";
|
|
2
3
|
export declare const Сomponents: {
|
|
3
4
|
Button: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, }: import("./Button").IButtonProps) => import("react").JSX.Element;
|
|
4
5
|
InputField: ({ onFocus, onBlur, onChange, onEnterPress, value, inputLeftIcon, placeholder, className, style, isClearable, type, id, labelText, ariaLabel, focused, setFocused, }: import("./InputField").IInputFieldProps) => import("react").ReactNode;
|
|
@@ -8,3 +9,4 @@ export declare const Сomponents: {
|
|
|
8
9
|
RadioToggle: ({ lock, setLock }: import("./RadioToggle").IRadioToggleProps) => import("react").JSX.Element;
|
|
9
10
|
Typography: import("react").FC<import("./Typography").ITypographyProps>;
|
|
10
11
|
};
|
|
12
|
+
export { Button };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { Dispatch, SetStateAction, HTMLInputTypeAttribute } from 'react';
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
type TFontClass = "Heading1" | "Heading3" | "Subtitles3" | "Body1Medium" | "Body1Regular" | "Body2Medium" | "Body2Regular" | "Body3Regular" | "Caption1Medium" | "Caption1Regular" | "Caption1Semibold" | "Caption2Medium" | "Caption2Regular";
|
|
6
6
|
interface ITypographyProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
7
7
|
tag: keyof JSX.IntrinsicElements | React__default.JSXElementConstructor<any>;
|
|
8
|
-
fontClass:
|
|
8
|
+
fontClass: TFontClass;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
interface IRadioToggleProps {
|
package/dist/esm/index.js
CHANGED
|
@@ -2965,7 +2965,7 @@ styleInject(css_248z);
|
|
|
2965
2965
|
|
|
2966
2966
|
var Typography = function (_a) {
|
|
2967
2967
|
var tag = _a.tag, fontClass = _a.fontClass, className = _a.className, children = _a.children, restProps = __rest(_a, ["tag", "fontClass", "className", "children"]);
|
|
2968
|
-
return React.createElement(tag, __assign(__assign({}, restProps), { className: CombineClassNames(className, fontClass ? styles[fontClass] :
|
|
2968
|
+
return React.createElement(tag, __assign(__assign({}, restProps), { className: CombineClassNames(className, fontClass ? styles[fontClass] : "") }), children);
|
|
2969
2969
|
};
|
|
2970
2970
|
|
|
2971
2971
|
var Сomponents = {
|