@pnx-mixtape/ids-shape 0.0.4 → 0.0.6
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/enums.ts +11 -14
- package/index.ts +4 -34
- package/package.json +1 -1
package/enums.ts
CHANGED
|
@@ -121,21 +121,18 @@ export enum TagTypes {
|
|
|
121
121
|
CHECKBOX = "checkbox"
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
export enum GridItemModifiers {
|
|
125
|
-
SPAN_2 = "span-2",
|
|
126
|
-
SPAN_3 = "span-3",
|
|
127
|
-
SPAN_4 = "span-4"
|
|
128
|
-
}
|
|
129
|
-
|
|
130
124
|
export enum GridModifiers {
|
|
131
|
-
XS_2 = "xs-2
|
|
132
|
-
SM_2 = "sm-2
|
|
133
|
-
MD_2 = "md-2
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
125
|
+
XS_2 = "xs-2",
|
|
126
|
+
SM_2 = "sm-2",
|
|
127
|
+
MD_2 = "md-2",
|
|
128
|
+
LG_2 = "lg-2",
|
|
129
|
+
XL_2 = "xl-2",
|
|
130
|
+
MD_3 = "md-3",
|
|
131
|
+
LG_3 = "lg-3",
|
|
132
|
+
XL_3 = "xl-3",
|
|
133
|
+
MD_4 = "md-4",
|
|
134
|
+
LG_4 = "lg-4",
|
|
135
|
+
XL_4 = "xl-4",
|
|
139
136
|
}
|
|
140
137
|
|
|
141
138
|
export enum CardModifier {
|
package/index.ts
CHANGED
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
ButtonTypes,
|
|
6
6
|
CardModifier,
|
|
7
7
|
GlobalAlertTypes,
|
|
8
|
-
GridItemModifiers,
|
|
9
8
|
GridModifiers,
|
|
10
9
|
HeadingTypes,
|
|
11
10
|
HeroBannerModifier,
|
|
@@ -31,7 +30,6 @@ export type Icon = {
|
|
|
31
30
|
color?: IconColourModifier
|
|
32
31
|
rotate?: IconRotateModifier
|
|
33
32
|
size?: IconSizeModifier
|
|
34
|
-
customClasses?: string[]
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
export type Link = {
|
|
@@ -42,7 +40,6 @@ export type Link = {
|
|
|
42
40
|
current?: boolean
|
|
43
41
|
download?: boolean
|
|
44
42
|
icon?: Icon
|
|
45
|
-
customClasses?: string[]
|
|
46
43
|
}
|
|
47
44
|
|
|
48
45
|
export type Button = {
|
|
@@ -52,7 +49,6 @@ export type Button = {
|
|
|
52
49
|
icon?: Icon
|
|
53
50
|
href?: string
|
|
54
51
|
disabled?: boolean
|
|
55
|
-
customClasses?: string[]
|
|
56
52
|
}
|
|
57
53
|
|
|
58
54
|
export type Heading = {
|
|
@@ -62,7 +58,6 @@ export type Heading = {
|
|
|
62
58
|
excluded?: boolean
|
|
63
59
|
srOnly?: boolean
|
|
64
60
|
icon?: Icon
|
|
65
|
-
customClasses?: string[]
|
|
66
61
|
}
|
|
67
62
|
|
|
68
63
|
export type DefinitionListItem = {
|
|
@@ -73,7 +68,6 @@ export type DefinitionListItem = {
|
|
|
73
68
|
export type DefinitionList = {
|
|
74
69
|
items: DefinitionListItem[]
|
|
75
70
|
title?: Heading
|
|
76
|
-
customClasses?: string[]
|
|
77
71
|
}
|
|
78
72
|
|
|
79
73
|
export type Video = {
|
|
@@ -103,7 +97,6 @@ export type Media = {
|
|
|
103
97
|
caption?: string
|
|
104
98
|
attribution?: string
|
|
105
99
|
align?: MediaAlignmentTypes
|
|
106
|
-
customClasses?: string[]
|
|
107
100
|
}
|
|
108
101
|
|
|
109
102
|
export type FormControl = {
|
|
@@ -124,7 +117,6 @@ export type WayfindingBlock = {
|
|
|
124
117
|
title?: Heading
|
|
125
118
|
content?: string | WysiwygText
|
|
126
119
|
link?: Link | Button
|
|
127
|
-
customClasses?: string[]
|
|
128
120
|
}
|
|
129
121
|
|
|
130
122
|
/**
|
|
@@ -132,18 +124,16 @@ export type WayfindingBlock = {
|
|
|
132
124
|
*/
|
|
133
125
|
|
|
134
126
|
export type GridItem = {
|
|
135
|
-
item: HTMLElement
|
|
127
|
+
item: string | HTMLElement
|
|
136
128
|
container?: boolean
|
|
137
|
-
modifiers?:
|
|
129
|
+
modifiers?: GridModifiers[]
|
|
138
130
|
as?: AsTypes
|
|
139
|
-
customClasses?: string[]
|
|
140
131
|
}
|
|
141
132
|
|
|
142
133
|
export type Grid = {
|
|
143
134
|
items: GridItem[]
|
|
144
135
|
modifiers?: GridModifiers[]
|
|
145
136
|
as?: SectionTypes
|
|
146
|
-
customClasses?: string[]
|
|
147
137
|
}
|
|
148
138
|
|
|
149
139
|
export type Section = WayfindingBlock & {
|
|
@@ -159,7 +149,6 @@ export type Section = WayfindingBlock & {
|
|
|
159
149
|
|
|
160
150
|
export type Breadcrumbs = {
|
|
161
151
|
items: Link[] | string
|
|
162
|
-
modifier?: string
|
|
163
152
|
}
|
|
164
153
|
|
|
165
154
|
export type InPageNavigation = {
|
|
@@ -176,7 +165,6 @@ export type Pagination = {
|
|
|
176
165
|
previous?: Link
|
|
177
166
|
next?: Link
|
|
178
167
|
pages?: PaginationItem[]
|
|
179
|
-
customClasses?: string[]
|
|
180
168
|
}
|
|
181
169
|
|
|
182
170
|
export type MenuTree = {
|
|
@@ -188,12 +176,10 @@ export type Navigation = {
|
|
|
188
176
|
id: string
|
|
189
177
|
items: MenuTree[]
|
|
190
178
|
title?: string
|
|
191
|
-
customClasses?: string[]
|
|
192
179
|
}
|
|
193
180
|
|
|
194
181
|
export type SideNavigation = Navigation & {
|
|
195
182
|
parent: Link
|
|
196
|
-
customClasses?: string[]
|
|
197
183
|
}
|
|
198
184
|
|
|
199
185
|
/**
|
|
@@ -202,7 +188,6 @@ export type SideNavigation = Navigation & {
|
|
|
202
188
|
|
|
203
189
|
export type LinkList = {
|
|
204
190
|
items: Link[]
|
|
205
|
-
customClasses?: string[]
|
|
206
191
|
}
|
|
207
192
|
|
|
208
193
|
export type AccordionItem = {
|
|
@@ -216,19 +201,17 @@ export type Accordion = {
|
|
|
216
201
|
items: AccordionItem[]
|
|
217
202
|
title?: Heading
|
|
218
203
|
toggleAll?: boolean
|
|
219
|
-
customClasses?: string[]
|
|
220
204
|
}
|
|
221
205
|
|
|
222
206
|
export type Callout = {
|
|
223
207
|
title: Heading
|
|
224
208
|
content: string
|
|
225
|
-
customClasses?: string[]
|
|
226
209
|
}
|
|
227
210
|
|
|
228
211
|
export type Card = WayfindingBlock & {
|
|
229
212
|
image?: Image
|
|
230
213
|
icon?: Icon
|
|
231
|
-
tags?:
|
|
214
|
+
tags?: Tags
|
|
232
215
|
date?: string
|
|
233
216
|
linkList?: LinkList
|
|
234
217
|
modifier?: CardModifier
|
|
@@ -261,7 +244,6 @@ export type ContactDetails = {
|
|
|
261
244
|
email?: string
|
|
262
245
|
website?: string
|
|
263
246
|
address?: WysiwygText
|
|
264
|
-
customClasses?: string[]
|
|
265
247
|
}
|
|
266
248
|
|
|
267
249
|
export type Dialog = WayfindingBlock & {
|
|
@@ -277,7 +259,6 @@ export type GlobalAlert = {
|
|
|
277
259
|
title: Heading
|
|
278
260
|
content: string | WysiwygText
|
|
279
261
|
link?: Link
|
|
280
|
-
customClasses?: string[]
|
|
281
262
|
}
|
|
282
263
|
|
|
283
264
|
export type HeroBanner = WayfindingBlock & {
|
|
@@ -285,7 +266,7 @@ export type HeroBanner = WayfindingBlock & {
|
|
|
285
266
|
image?: Image
|
|
286
267
|
linkList?: LinkList
|
|
287
268
|
highlight?: boolean
|
|
288
|
-
modifier
|
|
269
|
+
modifier?: HeroBannerModifier
|
|
289
270
|
}
|
|
290
271
|
|
|
291
272
|
export type InPageAlert = {
|
|
@@ -293,7 +274,6 @@ export type InPageAlert = {
|
|
|
293
274
|
title: Heading
|
|
294
275
|
content: string | WysiwygText
|
|
295
276
|
link?: Link
|
|
296
|
-
customClasses?: string[]
|
|
297
277
|
}
|
|
298
278
|
|
|
299
279
|
export type ListItem = WayfindingBlock & {
|
|
@@ -314,7 +294,6 @@ export type ResultsBar = {
|
|
|
314
294
|
total?: number
|
|
315
295
|
sort?: string[]
|
|
316
296
|
empty?: boolean
|
|
317
|
-
customClasses?: string[]
|
|
318
297
|
}
|
|
319
298
|
|
|
320
299
|
export type StepItem = {
|
|
@@ -328,7 +307,6 @@ export type Steps = {
|
|
|
328
307
|
fill?: boolean
|
|
329
308
|
counters?: boolean
|
|
330
309
|
progress?: boolean
|
|
331
|
-
customClasses?: string[]
|
|
332
310
|
}
|
|
333
311
|
|
|
334
312
|
export type Logo = {
|
|
@@ -341,7 +319,6 @@ export type SupportList = {
|
|
|
341
319
|
title?: Heading
|
|
342
320
|
links?: Link[]
|
|
343
321
|
showBrand?: boolean
|
|
344
|
-
customClasses?: string[]
|
|
345
322
|
}
|
|
346
323
|
|
|
347
324
|
export type TabItem = {
|
|
@@ -353,20 +330,16 @@ export type TabItem = {
|
|
|
353
330
|
|
|
354
331
|
export type Tabs = {
|
|
355
332
|
items: TabItem[]
|
|
356
|
-
modifier?: string
|
|
357
|
-
customClasses?: string[]
|
|
358
333
|
}
|
|
359
334
|
|
|
360
335
|
export type Tags = {
|
|
361
336
|
items: Link[] | string[] | FormControl[]
|
|
362
337
|
type: TagTypes
|
|
363
|
-
customClasses?: string[]
|
|
364
338
|
}
|
|
365
339
|
|
|
366
340
|
export type SocialLinks = {
|
|
367
341
|
title?: Heading
|
|
368
342
|
items: Link[]
|
|
369
|
-
customClasses?: string[]
|
|
370
343
|
}
|
|
371
344
|
|
|
372
345
|
export type SocialShare = {
|
|
@@ -374,7 +347,6 @@ export type SocialShare = {
|
|
|
374
347
|
linkedin?: boolean
|
|
375
348
|
twitter?: boolean
|
|
376
349
|
email?: boolean
|
|
377
|
-
customClasses?: string[]
|
|
378
350
|
}
|
|
379
351
|
|
|
380
352
|
export type UtilityList = {
|
|
@@ -382,7 +354,6 @@ export type UtilityList = {
|
|
|
382
354
|
print?: boolean
|
|
383
355
|
pdf?: boolean
|
|
384
356
|
share?: SocialShare
|
|
385
|
-
customClasses?: string[]
|
|
386
357
|
}
|
|
387
358
|
|
|
388
359
|
export {
|
|
@@ -392,7 +363,6 @@ export {
|
|
|
392
363
|
ButtonTypes,
|
|
393
364
|
CardModifier,
|
|
394
365
|
GlobalAlertTypes,
|
|
395
|
-
GridItemModifiers,
|
|
396
366
|
GridModifiers,
|
|
397
367
|
HeadingTypes,
|
|
398
368
|
HeroBannerModifier,
|