@scbt-ecom/ui 0.17.4 → 0.18.0
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/CustomLink-CcSUq55J.js +4505 -0
- package/dist/CustomLink-CcSUq55J.js.map +1 -0
- package/dist/scrollToElement-B-reg4jF.js.map +1 -1
- package/dist/shared/ui/CustomLink.d.ts +1 -1
- package/dist/shared/ui/accordion/Accordion.d.ts +14 -8
- package/dist/shared/ui/accordion/ui/AccordionHeader.d.ts +3 -2
- package/dist/shared/ui/icon/sprite.gen.d.ts +1 -1
- package/dist/shared/utils/scrollToElement.d.ts +1 -1
- package/dist/sprites/arrows.svg +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +7987 -8385
- package/dist/ui.js.map +1 -1
- package/dist/utils-tailwind.css +2 -8
- package/dist/widget.js +349 -279
- package/dist/widget.js.map +1 -1
- package/dist/widgets/footer/Footer.d.ts +1 -17
- package/dist/widgets/footer/model/types.d.ts +22 -0
- package/dist/widgets/footer/ui/Copyright.d.ts +1 -2
- package/dist/widgets/footer/ui/index.d.ts +0 -1
- package/dist/widgets/index.d.ts +1 -1
- package/dist/widgets/interLinking/InterLinking.d.ts +16 -0
- package/dist/widgets/interLinking/index.d.ts +2 -0
- package/dist/widgets/interLinking/model/helpers.d.ts +140 -0
- package/dist/widgets/interLinking/model/types.d.ts +6 -0
- package/dist/widgets/interLinking/ui/Column.d.ts +13 -0
- package/dist/widgets/interLinking/ui/ColumnGroup.d.ts +15 -0
- package/dist/widgets/interLinking/ui/LinksList.d.ts +11 -0
- package/dist/widgets/interLinking/ui/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/CustomLink-DmCJLTWC.js +0 -4090
- package/dist/CustomLink-DmCJLTWC.js.map +0 -1
- package/dist/shared/ui/accordion/model/types.d.ts +0 -17
- package/dist/widgets/baseForm/BaseForm.d.ts +0 -3
- package/dist/widgets/baseForm/index.d.ts +0 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const columnGroupSchema: z.ZodArray<z.ZodObject<{
|
|
3
|
+
groupLabel: z.ZodString;
|
|
4
|
+
links: z.ZodArray<z.ZodObject<{
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
path: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
path: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}, {
|
|
11
|
+
path: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}>, "many">;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
groupLabel: string;
|
|
16
|
+
links: {
|
|
17
|
+
path: string;
|
|
18
|
+
label: string;
|
|
19
|
+
}[];
|
|
20
|
+
}, {
|
|
21
|
+
groupLabel: string;
|
|
22
|
+
links: {
|
|
23
|
+
path: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
}>, "many">;
|
|
27
|
+
export declare const columnsSchema: z.ZodArray<z.ZodObject<{
|
|
28
|
+
columnsGroup: z.ZodArray<z.ZodObject<{
|
|
29
|
+
groupLabel: z.ZodString;
|
|
30
|
+
links: z.ZodArray<z.ZodObject<{
|
|
31
|
+
label: z.ZodString;
|
|
32
|
+
path: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
path: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}, {
|
|
37
|
+
path: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}>, "many">;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
groupLabel: string;
|
|
42
|
+
links: {
|
|
43
|
+
path: string;
|
|
44
|
+
label: string;
|
|
45
|
+
}[];
|
|
46
|
+
}, {
|
|
47
|
+
groupLabel: string;
|
|
48
|
+
links: {
|
|
49
|
+
path: string;
|
|
50
|
+
label: string;
|
|
51
|
+
}[];
|
|
52
|
+
}>, "many">;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
columnsGroup: {
|
|
55
|
+
groupLabel: string;
|
|
56
|
+
links: {
|
|
57
|
+
path: string;
|
|
58
|
+
label: string;
|
|
59
|
+
}[];
|
|
60
|
+
}[];
|
|
61
|
+
}, {
|
|
62
|
+
columnsGroup: {
|
|
63
|
+
groupLabel: string;
|
|
64
|
+
links: {
|
|
65
|
+
path: string;
|
|
66
|
+
label: string;
|
|
67
|
+
}[];
|
|
68
|
+
}[];
|
|
69
|
+
}>, "many">;
|
|
70
|
+
export declare const interLinkingSchema: z.ZodObject<{
|
|
71
|
+
intent: z.ZodEnum<["twoCols", "threeCols", "fourCols"]>;
|
|
72
|
+
heading: z.ZodString;
|
|
73
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
74
|
+
columnsGroup: z.ZodArray<z.ZodObject<{
|
|
75
|
+
groupLabel: z.ZodString;
|
|
76
|
+
links: z.ZodArray<z.ZodObject<{
|
|
77
|
+
label: z.ZodString;
|
|
78
|
+
path: z.ZodString;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
path: string;
|
|
81
|
+
label: string;
|
|
82
|
+
}, {
|
|
83
|
+
path: string;
|
|
84
|
+
label: string;
|
|
85
|
+
}>, "many">;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
groupLabel: string;
|
|
88
|
+
links: {
|
|
89
|
+
path: string;
|
|
90
|
+
label: string;
|
|
91
|
+
}[];
|
|
92
|
+
}, {
|
|
93
|
+
groupLabel: string;
|
|
94
|
+
links: {
|
|
95
|
+
path: string;
|
|
96
|
+
label: string;
|
|
97
|
+
}[];
|
|
98
|
+
}>, "many">;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
columnsGroup: {
|
|
101
|
+
groupLabel: string;
|
|
102
|
+
links: {
|
|
103
|
+
path: string;
|
|
104
|
+
label: string;
|
|
105
|
+
}[];
|
|
106
|
+
}[];
|
|
107
|
+
}, {
|
|
108
|
+
columnsGroup: {
|
|
109
|
+
groupLabel: string;
|
|
110
|
+
links: {
|
|
111
|
+
path: string;
|
|
112
|
+
label: string;
|
|
113
|
+
}[];
|
|
114
|
+
}[];
|
|
115
|
+
}>, "many">;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
heading: string;
|
|
118
|
+
intent: "twoCols" | "threeCols" | "fourCols";
|
|
119
|
+
columns: {
|
|
120
|
+
columnsGroup: {
|
|
121
|
+
groupLabel: string;
|
|
122
|
+
links: {
|
|
123
|
+
path: string;
|
|
124
|
+
label: string;
|
|
125
|
+
}[];
|
|
126
|
+
}[];
|
|
127
|
+
}[];
|
|
128
|
+
}, {
|
|
129
|
+
heading: string;
|
|
130
|
+
intent: "twoCols" | "threeCols" | "fourCols";
|
|
131
|
+
columns: {
|
|
132
|
+
columnsGroup: {
|
|
133
|
+
groupLabel: string;
|
|
134
|
+
links: {
|
|
135
|
+
path: string;
|
|
136
|
+
label: string;
|
|
137
|
+
}[];
|
|
138
|
+
}[];
|
|
139
|
+
}[];
|
|
140
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { columnGroupSchema, interLinkingSchema } from './helpers';
|
|
3
|
+
export type TColumnGroupSchema = z.infer<typeof columnGroupSchema>;
|
|
4
|
+
export type TInterLinkingSchema = z.infer<typeof interLinkingSchema>;
|
|
5
|
+
export type TColumnsLinks = TColumnGroupSchema[number]['links'];
|
|
6
|
+
export type TColumnsGroupLabel = TColumnGroupSchema[number]['groupLabel'];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAccordionProps } from '../../../shared/ui';
|
|
2
|
+
import { TColumnGroupSchema } from '../model/types';
|
|
3
|
+
import { TColumnGroupClasses } from './ColumnGroup';
|
|
4
|
+
export type TColumnClasses = {
|
|
5
|
+
column?: string;
|
|
6
|
+
columnGroup?: TColumnGroupClasses;
|
|
7
|
+
};
|
|
8
|
+
export interface IColumnProps {
|
|
9
|
+
columnsGroup: TColumnGroupSchema;
|
|
10
|
+
mobileAccordionProps?: IAccordionProps;
|
|
11
|
+
classes?: TColumnClasses;
|
|
12
|
+
}
|
|
13
|
+
export declare const Column: ({ columnsGroup, mobileAccordionProps, classes }: IColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TColumnsGroupLabel, TColumnsLinks } from '../model/types';
|
|
2
|
+
import { TLinksListClasses } from './LinksList';
|
|
3
|
+
import { IAccordionProps } from '../../../shared/ui';
|
|
4
|
+
export type TColumnGroupClasses = {
|
|
5
|
+
columnGroup?: string;
|
|
6
|
+
columnGroupHeading?: string;
|
|
7
|
+
linksList?: TLinksListClasses;
|
|
8
|
+
};
|
|
9
|
+
export interface IColumnGroupProps {
|
|
10
|
+
groupLabel: TColumnsGroupLabel;
|
|
11
|
+
links: TColumnsLinks;
|
|
12
|
+
mobileAccordionProps?: IAccordionProps;
|
|
13
|
+
classes?: TColumnGroupClasses;
|
|
14
|
+
}
|
|
15
|
+
export declare const ColumnGroup: ({ groupLabel, links, mobileAccordionProps, classes }: IColumnGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TColumnsLinks } from '../model/types';
|
|
2
|
+
export type TLinksListClasses = {
|
|
3
|
+
linksWrapper?: string;
|
|
4
|
+
linkText?: string;
|
|
5
|
+
linkIcon?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface ILinksListProps {
|
|
8
|
+
links: TColumnsLinks;
|
|
9
|
+
classes?: TLinksListClasses;
|
|
10
|
+
}
|
|
11
|
+
export declare const LinksList: ({ links, classes }: ILinksListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Column';
|