@scbt-ecom/ui 0.0.17 → 0.0.20
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/shared/constants/designSystem/others.d.ts +9 -1
- package/dist/shared/ui/ButtonIcon.d.ts +2 -2
- package/dist/shared/ui/CustomLink.d.ts +2 -2
- package/dist/shared/ui/Document.d.ts +13 -0
- package/dist/shared/ui/Loader.d.ts +13 -4
- package/dist/shared/ui/PhoneView.d.ts +8 -1
- package/dist/shared/ui/ProgressBar.d.ts +18 -0
- package/dist/shared/ui/Skeleton.d.ts +4 -0
- package/dist/shared/ui/TabsSwitcher.d.ts +33 -0
- package/dist/shared/ui/accordion/Accordion.d.ts +11 -5
- package/dist/shared/ui/accordion/model/types.d.ts +5 -4
- package/dist/shared/ui/accordion/ui/AccordionHeader.d.ts +2 -2
- package/dist/shared/ui/formControlElements/CheckboxControl.d.ts +3 -1
- package/dist/shared/ui/formControlElements/InputControl.d.ts +2 -2
- package/dist/shared/ui/formControlElements/InputControlMask.d.ts +2 -2
- package/dist/shared/ui/formControlElements/SelectControl.d.ts +27 -0
- package/dist/shared/ui/formControlElements/SwitchControl.d.ts +16 -0
- package/dist/shared/ui/formControlElements/TextareaControl.d.ts +11 -0
- package/dist/shared/ui/formControlElements/dadata/DadataInputControl.d.ts +2 -2
- package/dist/shared/ui/formControlElements/index.d.ts +4 -1
- package/dist/shared/ui/formControlElements/model/props-types.d.ts +4 -3
- package/dist/shared/ui/formControlElements/ui/FieldAttachment.d.ts +2 -1
- package/dist/shared/ui/formControlElements/ui/FieldContainer.d.ts +2 -1
- package/dist/shared/ui/formControlElements/ui/FieldWrapper.d.ts +2 -1
- package/dist/shared/ui/icon/Icon.d.ts +2 -2
- package/dist/shared/ui/icon/index.d.ts +1 -1
- package/dist/shared/ui/icon/sprite.gen.d.ts +4 -1
- package/dist/shared/ui/index.d.ts +6 -2
- package/dist/sprites/arrows.svg +1 -0
- package/dist/sprites/common.svg +1 -0
- package/dist/sprites/files.svg +1 -0
- package/dist/sprites/general.svg +1 -0
- package/dist/sprites/info.svg +1 -0
- package/dist/style.css +1 -1
- package/dist/ui.es.js +18606 -17589
- package/dist/ui.umd.js +98 -97
- package/dist/widgets/banner/Banner.d.ts +16 -1
- package/dist/widgets/banner/ui/BannerButtonsGroup.d.ts +7 -1
- package/dist/widgets/index.d.ts +1 -1
- package/dist/widgets/pageHeader/PageHeader.d.ts +2 -2
- package/dist/widgets/pageHeader/index.d.ts +1 -1
- package/package.json +5 -3
- package/dist/sprites/common.5922c9ad.svg +0 -1
- /package/dist/sprites/{brandLogos.aa92281d.svg → brandLogos.svg} +0 -0
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { IAdvantage } from '../Advantages';
|
|
2
|
+
import { IBannerButtonsGroupClasses } from './ui/BannerButtonsGroup';
|
|
2
3
|
import { IButtonProps } from '../../shared/ui';
|
|
4
|
+
interface IBannerClasses extends IBannerButtonsGroupClasses {
|
|
5
|
+
section: string;
|
|
6
|
+
container: string;
|
|
7
|
+
wrapper: string;
|
|
8
|
+
content: string;
|
|
9
|
+
textBlock: string;
|
|
10
|
+
title: string;
|
|
11
|
+
subtitle: string;
|
|
12
|
+
imageContainer: string;
|
|
13
|
+
image: string;
|
|
14
|
+
advantages: string;
|
|
15
|
+
}
|
|
3
16
|
export type TButtonsConfig = {
|
|
4
17
|
primary: IButtonProps;
|
|
5
18
|
secondary?: IButtonProps;
|
|
@@ -9,5 +22,7 @@ export interface IBannerProps {
|
|
|
9
22
|
subtitle: string;
|
|
10
23
|
buttonsConfig: TButtonsConfig;
|
|
11
24
|
advantagesList?: IAdvantage[];
|
|
25
|
+
classes?: Partial<IBannerClasses>;
|
|
12
26
|
}
|
|
13
|
-
export declare const Banner: ({ headTitle, subtitle, buttonsConfig, advantagesList }: IBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const Banner: ({ headTitle, subtitle, buttonsConfig, advantagesList, classes }: IBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { TButtonsConfig } from '../Banner';
|
|
2
|
+
export interface IBannerButtonsGroupClasses {
|
|
3
|
+
group: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
}
|
|
2
7
|
interface IBannerButtonsGroupProps {
|
|
3
8
|
buttonsConfig: TButtonsConfig;
|
|
9
|
+
classes?: Partial<IBannerButtonsGroupClasses>;
|
|
4
10
|
}
|
|
5
|
-
export declare const BannerButtonsGroup: ({ buttonsConfig }: IBannerButtonsGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const BannerButtonsGroup: ({ buttonsConfig, classes }: IBannerButtonsGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
12
|
export {};
|
package/dist/widgets/index.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ interface IHeaderWithPhone extends ICommonHeaderProps {
|
|
|
11
11
|
interface IHeaderWithButton extends ICommonHeaderProps {
|
|
12
12
|
variant: 'withButton';
|
|
13
13
|
}
|
|
14
|
-
export type
|
|
15
|
-
export declare const PageHeader: (props:
|
|
14
|
+
export type TPageHeaderProps = IHeaderWithButton | IHeaderWithPhone;
|
|
15
|
+
export declare const PageHeader: (props: TPageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PageHeader, type
|
|
1
|
+
export { PageHeader, type TPageHeaderProps } from './PageHeader';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scbt-ecom/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepare": "husky",
|
|
30
30
|
"pre-commit": "npm run lint",
|
|
31
31
|
"chromatic": "npx chromatic --project-token=chpt_9468dafcf1bf3e3 --only-changed --files='src/stories/**/*.stories.@(tsx)'",
|
|
32
|
-
"pre-deploy": "npm run lint
|
|
32
|
+
"pre-deploy": "npm run lint"
|
|
33
33
|
},
|
|
34
34
|
"peerDependecies": {
|
|
35
35
|
"react": "^18.3.1",
|
|
@@ -47,6 +47,8 @@
|
|
|
47
47
|
"@radix-ui/react-checkbox": "^1.1.1",
|
|
48
48
|
"@radix-ui/react-popover": "^1.1.1",
|
|
49
49
|
"@radix-ui/react-radio-group": "^1.2.0",
|
|
50
|
+
"@radix-ui/react-switch": "^1.1.0",
|
|
51
|
+
"@radix-ui/react-tabs": "^1.1.0",
|
|
50
52
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
51
53
|
"@storybook/addon-console": "^3.0.0",
|
|
52
54
|
"@storybook/addon-coverage": "^1.0.4",
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
"@storybook/addon-interactions": "^8.2.6",
|
|
55
57
|
"@storybook/addon-links": "^8.2.6",
|
|
56
58
|
"@storybook/addon-onboarding": "^8.2.6",
|
|
59
|
+
"@storybook/addon-viewport": "^8.2.9",
|
|
57
60
|
"@storybook/blocks": "^8.2.6",
|
|
58
61
|
"@storybook/react": "^8.2.6",
|
|
59
62
|
"@storybook/react-vite": "^8.2.6",
|
|
@@ -107,7 +110,6 @@
|
|
|
107
110
|
"vite": "^5.3.4",
|
|
108
111
|
"vite-plugin-checker": "^0.7.2",
|
|
109
112
|
"vite-plugin-dts": "^4.0.2",
|
|
110
|
-
"vite-plugin-static-copy": "^1.0.6",
|
|
111
113
|
"vitest": "^2.0.5",
|
|
112
114
|
"zod": "^3.23.8"
|
|
113
115
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="0" height="0"><symbol xmlns="http://www.w3.org/2000/svg" id="arrowCircle" fill="none" viewBox="0 0 32 32"><rect width="31" height="31" x=".5" y="31.5" stroke="currentColor" rx="15.5" transform="rotate(-90 .5 31.5)"/><path fill="currentColor" stroke="currentColor" d="M22.707 18.707a1 1 0 0 1-1.414 0L16 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l6-6a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="arrowLink" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M8 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V9.414l-8.293 8.293a1 1 0 0 1-1.414-1.414L14.586 8H9a1 1 0 0 1-1-1Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="arrowRight" fill="none" viewBox="0 0 16 17"><path fill="currentColor" d="M6.195 13.157a.667.667 0 0 1 0-.943l3.529-3.528-3.529-3.529a.667.667 0 1 1 .943-.943l4 4c.26.26.26.683 0 .943l-4 4a.667.667 0 0 1-.943 0Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="check" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="m4.892 13.269 4.274 4.274L18.709 8"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="close" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12 5.293 6.707a1 1 0 0 1 0-1.414Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="warningCircle" fill="none" viewBox="0 0 20 20"><path fill="currentColor" d="M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM0 10C0 4.477 4.477 0 10 0s10 4.477 10 10-4.477 10-10 10S0 15.523 0 10Z"/><path fill="currentColor" d="M10 12a1 1 0 0 1-1-1V5a1 1 0 0 1 2 0v6a1 1 0 0 1-1 1Zm-1.5 2.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"/></symbol></svg>
|
|
File without changes
|