@scbt-ecom/ui 0.31.4 → 0.31.5

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.
@@ -3,14 +3,13 @@ import { ColumnClasses } from './ui';
3
3
  import { AccordionProps } from '../../shared/ui';
4
4
  export type InterLinkingClasses = {
5
5
  root?: string;
6
- heading?: string;
6
+ headline?: string;
7
7
  columnsWrapper?: string;
8
8
  column?: ColumnClasses;
9
9
  };
10
- export interface InterLinkingProps {
11
- data: InterLinkingSchema;
10
+ export interface InterLinkingProps extends InterLinkingSchema {
12
11
  mobileAccordionProps?: AccordionProps;
13
12
  rootAccordionProps?: AccordionProps;
14
13
  classes?: InterLinkingClasses;
15
14
  }
16
- export declare const InterLinking: ({ data, mobileAccordionProps, rootAccordionProps, classes }: InterLinkingProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const InterLinking: ({ columns, variant, headline, mobileAccordionProps, rootAccordionProps, classes }: InterLinkingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,15 @@
1
1
  import { z } from 'zod';
2
- export declare const columnGroupSchema: z.ZodArray<z.ZodObject<{
2
+ export declare const linkSchema: z.ZodObject<{
3
+ label: z.ZodString;
4
+ path: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ path: string;
7
+ label: string;
8
+ }, {
9
+ path: string;
10
+ label: string;
11
+ }>;
12
+ export declare const groupSchema: z.ZodObject<{
3
13
  groupLabel: z.ZodString;
4
14
  links: z.ZodArray<z.ZodObject<{
5
15
  label: z.ZodString;
@@ -23,9 +33,9 @@ export declare const columnGroupSchema: z.ZodArray<z.ZodObject<{
23
33
  path: string;
24
34
  label: string;
25
35
  }[];
26
- }>, "many">;
27
- export declare const columnsSchema: z.ZodArray<z.ZodObject<{
28
- columnsGroup: z.ZodArray<z.ZodObject<{
36
+ }>;
37
+ export declare const columnsSchema: z.ZodObject<{
38
+ column: z.ZodArray<z.ZodObject<{
29
39
  groupLabel: z.ZodString;
30
40
  links: z.ZodArray<z.ZodObject<{
31
41
  label: z.ZodString;
@@ -51,7 +61,7 @@ export declare const columnsSchema: z.ZodArray<z.ZodObject<{
51
61
  }[];
52
62
  }>, "many">;
53
63
  }, "strip", z.ZodTypeAny, {
54
- columnsGroup: {
64
+ column: {
55
65
  groupLabel: string;
56
66
  links: {
57
67
  path: string;
@@ -59,19 +69,19 @@ export declare const columnsSchema: z.ZodArray<z.ZodObject<{
59
69
  }[];
60
70
  }[];
61
71
  }, {
62
- columnsGroup: {
72
+ column: {
63
73
  groupLabel: string;
64
74
  links: {
65
75
  path: string;
66
76
  label: string;
67
77
  }[];
68
78
  }[];
69
- }>, "many">;
79
+ }>;
70
80
  export declare const interLinkingSchema: z.ZodObject<{
71
- intent: z.ZodEnum<["twoCols", "threeCols", "fourCols"]>;
72
- heading: z.ZodString;
81
+ headline: z.ZodString;
82
+ variant: z.ZodEnum<["twoCols", "threeCols", "fourCols"]>;
73
83
  columns: z.ZodArray<z.ZodObject<{
74
- columnsGroup: z.ZodArray<z.ZodObject<{
84
+ column: z.ZodArray<z.ZodObject<{
75
85
  groupLabel: z.ZodString;
76
86
  links: z.ZodArray<z.ZodObject<{
77
87
  label: z.ZodString;
@@ -97,7 +107,7 @@ export declare const interLinkingSchema: z.ZodObject<{
97
107
  }[];
98
108
  }>, "many">;
99
109
  }, "strip", z.ZodTypeAny, {
100
- columnsGroup: {
110
+ column: {
101
111
  groupLabel: string;
102
112
  links: {
103
113
  path: string;
@@ -105,7 +115,7 @@ export declare const interLinkingSchema: z.ZodObject<{
105
115
  }[];
106
116
  }[];
107
117
  }, {
108
- columnsGroup: {
118
+ column: {
109
119
  groupLabel: string;
110
120
  links: {
111
121
  path: string;
@@ -114,10 +124,8 @@ export declare const interLinkingSchema: z.ZodObject<{
114
124
  }[];
115
125
  }>, "many">;
116
126
  }, "strip", z.ZodTypeAny, {
117
- heading: string;
118
- intent: "twoCols" | "threeCols" | "fourCols";
119
127
  columns: {
120
- columnsGroup: {
128
+ column: {
121
129
  groupLabel: string;
122
130
  links: {
123
131
  path: string;
@@ -125,11 +133,11 @@ export declare const interLinkingSchema: z.ZodObject<{
125
133
  }[];
126
134
  }[];
127
135
  }[];
136
+ variant: "twoCols" | "threeCols" | "fourCols";
137
+ headline: string;
128
138
  }, {
129
- heading: string;
130
- intent: "twoCols" | "threeCols" | "fourCols";
131
139
  columns: {
132
- columnsGroup: {
140
+ column: {
133
141
  groupLabel: string;
134
142
  links: {
135
143
  path: string;
@@ -137,4 +145,6 @@ export declare const interLinkingSchema: z.ZodObject<{
137
145
  }[];
138
146
  }[];
139
147
  }[];
148
+ variant: "twoCols" | "threeCols" | "fourCols";
149
+ headline: string;
140
150
  }>;
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { columnGroupSchema, interLinkingSchema } from './helpers';
3
- export type TColumnGroupSchema = z.infer<typeof columnGroupSchema>;
2
+ import { groupSchema, interLinkingSchema, linkSchema } from './helpers';
4
3
  export type InterLinkingSchema = z.infer<typeof interLinkingSchema>;
5
- export type ColumnsLinks = TColumnGroupSchema[number]['links'];
6
- export type ColumnsGroupLabel = TColumnGroupSchema[number]['groupLabel'];
4
+ export type ColumnGroupSchema = z.infer<typeof groupSchema>;
5
+ export type GroupLinkSchema = z.infer<typeof linkSchema>;
@@ -1,13 +1,13 @@
1
- import { AccordionProps } from '../../../shared/ui';
2
- import { TColumnGroupSchema } from '../model/types';
1
+ import { ColumnGroupSchema } from '../model/types';
3
2
  import { ColumnGroupClasses } from './ColumnGroup';
3
+ import { AccordionProps } from '../../../shared/ui';
4
4
  export type ColumnClasses = {
5
5
  column?: string;
6
6
  columnGroup?: ColumnGroupClasses;
7
7
  };
8
8
  export interface ColumnProps {
9
- columnsGroup: TColumnGroupSchema;
9
+ column: ColumnGroupSchema[];
10
10
  mobileAccordionProps?: AccordionProps;
11
11
  classes?: ColumnClasses;
12
12
  }
13
- export declare const Column: ({ columnsGroup, mobileAccordionProps, classes }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Column: ({ column, mobileAccordionProps, classes }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ColumnsGroupLabel, ColumnsLinks } from '../model/types';
1
+ import { ColumnGroupSchema } from '../model/types';
2
2
  import { LinksListClasses } from './LinksList';
3
3
  import { AccordionProps } from '../../../shared/ui';
4
4
  export type ColumnGroupClasses = {
@@ -6,9 +6,7 @@ export type ColumnGroupClasses = {
6
6
  columnGroupHeading?: string;
7
7
  linksList?: LinksListClasses;
8
8
  };
9
- export interface ColumnGroupProps {
10
- groupLabel: ColumnsGroupLabel;
11
- links: ColumnsLinks;
9
+ export interface ColumnGroupProps extends ColumnGroupSchema {
12
10
  mobileAccordionProps?: AccordionProps;
13
11
  classes?: ColumnGroupClasses;
14
12
  }
@@ -1,11 +1,11 @@
1
- import { ColumnsLinks } from '../model/types';
1
+ import { GroupLinkSchema } from '../model/types';
2
2
  export type LinksListClasses = {
3
3
  linksWrapper?: string;
4
4
  linkText?: string;
5
5
  linkIcon?: string;
6
6
  };
7
7
  export interface LinksListProps {
8
- links: ColumnsLinks;
8
+ links: GroupLinkSchema[];
9
9
  classes?: LinksListClasses;
10
10
  }
11
11
  export declare const LinksList: ({ links, classes }: LinksListProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.31.4",
3
+ "version": "0.31.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {