@pnx-mixtape/ids-shape 0.0.3 → 0.0.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.
Files changed (3) hide show
  1. package/enums.ts +5 -1
  2. package/index.ts +3 -30
  3. package/package.json +1 -1
package/enums.ts CHANGED
@@ -14,6 +14,8 @@ export enum IconColourModifier {
14
14
  ERROR = "error",
15
15
  WARNING = "warning",
16
16
  SUCCESS = "success",
17
+ BRAND = "brand",
18
+ ACCENT = "accent"
17
19
  }
18
20
 
19
21
  export enum IconRotateModifier {
@@ -33,6 +35,8 @@ export enum ButtonTypes {
33
35
  INPUT = "input",
34
36
  BUTTON = "button",
35
37
  LINK = "link",
38
+ SUBMIT = "submit",
39
+ RESET = "reset",
36
40
  }
37
41
 
38
42
  export enum ButtonModifiers {
@@ -40,7 +44,7 @@ export enum ButtonModifiers {
40
44
  LIGHT = "light",
41
45
  WHITE = "white",
42
46
  DESTRUCTIVE = "destructive",
43
- WIDE = "wide",
47
+ FULL_WIDTH = "full-width",
44
48
  OUTLINE = "outline",
45
49
  }
46
50
 
package/index.ts CHANGED
@@ -31,7 +31,6 @@ export type Icon = {
31
31
  color?: IconColourModifier
32
32
  rotate?: IconRotateModifier
33
33
  size?: IconSizeModifier
34
- customClasses?: string[]
35
34
  }
36
35
 
37
36
  export type Link = {
@@ -42,7 +41,6 @@ export type Link = {
42
41
  current?: boolean
43
42
  download?: boolean
44
43
  icon?: Icon
45
- customClasses?: string[]
46
44
  }
47
45
 
48
46
  export type Button = {
@@ -52,7 +50,6 @@ export type Button = {
52
50
  icon?: Icon
53
51
  href?: string
54
52
  disabled?: boolean
55
- customClasses?: string[]
56
53
  }
57
54
 
58
55
  export type Heading = {
@@ -62,7 +59,6 @@ export type Heading = {
62
59
  excluded?: boolean
63
60
  srOnly?: boolean
64
61
  icon?: Icon
65
- customClasses?: string[]
66
62
  }
67
63
 
68
64
  export type DefinitionListItem = {
@@ -73,7 +69,6 @@ export type DefinitionListItem = {
73
69
  export type DefinitionList = {
74
70
  items: DefinitionListItem[]
75
71
  title?: Heading
76
- customClasses?: string[]
77
72
  }
78
73
 
79
74
  export type Video = {
@@ -99,10 +94,10 @@ export type Image = {
99
94
 
100
95
  export type Media = {
101
96
  item: Image | Video
97
+ type?: "image" | "video"
102
98
  caption?: string
103
99
  attribution?: string
104
100
  align?: MediaAlignmentTypes
105
- customClasses?: string[]
106
101
  }
107
102
 
108
103
  export type FormControl = {
@@ -123,7 +118,6 @@ export type WayfindingBlock = {
123
118
  title?: Heading
124
119
  content?: string | WysiwygText
125
120
  link?: Link | Button
126
- customClasses?: string[]
127
121
  }
128
122
 
129
123
  /**
@@ -135,14 +129,12 @@ export type GridItem = {
135
129
  container?: boolean
136
130
  modifiers?: GridItemModifiers[]
137
131
  as?: AsTypes
138
- customClasses?: string[]
139
132
  }
140
133
 
141
134
  export type Grid = {
142
135
  items: GridItem[]
143
136
  modifiers?: GridModifiers[]
144
137
  as?: SectionTypes
145
- customClasses?: string[]
146
138
  }
147
139
 
148
140
  export type Section = WayfindingBlock & {
@@ -158,7 +150,6 @@ export type Section = WayfindingBlock & {
158
150
 
159
151
  export type Breadcrumbs = {
160
152
  items: Link[] | string
161
- modifier?: string
162
153
  }
163
154
 
164
155
  export type InPageNavigation = {
@@ -175,7 +166,6 @@ export type Pagination = {
175
166
  previous?: Link
176
167
  next?: Link
177
168
  pages?: PaginationItem[]
178
- customClasses?: string[]
179
169
  }
180
170
 
181
171
  export type MenuTree = {
@@ -187,12 +177,10 @@ export type Navigation = {
187
177
  id: string
188
178
  items: MenuTree[]
189
179
  title?: string
190
- customClasses?: string[]
191
180
  }
192
181
 
193
182
  export type SideNavigation = Navigation & {
194
183
  parent: Link
195
- customClasses?: string[]
196
184
  }
197
185
 
198
186
  /**
@@ -201,7 +189,6 @@ export type SideNavigation = Navigation & {
201
189
 
202
190
  export type LinkList = {
203
191
  items: Link[]
204
- customClasses?: string[]
205
192
  }
206
193
 
207
194
  export type AccordionItem = {
@@ -215,19 +202,17 @@ export type Accordion = {
215
202
  items: AccordionItem[]
216
203
  title?: Heading
217
204
  toggleAll?: boolean
218
- customClasses?: string[]
219
205
  }
220
206
 
221
207
  export type Callout = {
222
208
  title: Heading
223
209
  content: string
224
- customClasses?: string[]
225
210
  }
226
211
 
227
212
  export type Card = WayfindingBlock & {
228
213
  image?: Image
229
214
  icon?: Icon
230
- tags?: string[]
215
+ tags?: Tags
231
216
  date?: string
232
217
  linkList?: LinkList
233
218
  modifier?: CardModifier
@@ -260,7 +245,6 @@ export type ContactDetails = {
260
245
  email?: string
261
246
  website?: string
262
247
  address?: WysiwygText
263
- customClasses?: string[]
264
248
  }
265
249
 
266
250
  export type Dialog = WayfindingBlock & {
@@ -276,7 +260,6 @@ export type GlobalAlert = {
276
260
  title: Heading
277
261
  content: string | WysiwygText
278
262
  link?: Link
279
- customClasses?: string[]
280
263
  }
281
264
 
282
265
  export type HeroBanner = WayfindingBlock & {
@@ -284,7 +267,7 @@ export type HeroBanner = WayfindingBlock & {
284
267
  image?: Image
285
268
  linkList?: LinkList
286
269
  highlight?: boolean
287
- modifier: HeroBannerModifier
270
+ modifier?: HeroBannerModifier
288
271
  }
289
272
 
290
273
  export type InPageAlert = {
@@ -292,7 +275,6 @@ export type InPageAlert = {
292
275
  title: Heading
293
276
  content: string | WysiwygText
294
277
  link?: Link
295
- customClasses?: string[]
296
278
  }
297
279
 
298
280
  export type ListItem = WayfindingBlock & {
@@ -313,7 +295,6 @@ export type ResultsBar = {
313
295
  total?: number
314
296
  sort?: string[]
315
297
  empty?: boolean
316
- customClasses?: string[]
317
298
  }
318
299
 
319
300
  export type StepItem = {
@@ -327,7 +308,6 @@ export type Steps = {
327
308
  fill?: boolean
328
309
  counters?: boolean
329
310
  progress?: boolean
330
- customClasses?: string[]
331
311
  }
332
312
 
333
313
  export type Logo = {
@@ -340,7 +320,6 @@ export type SupportList = {
340
320
  title?: Heading
341
321
  links?: Link[]
342
322
  showBrand?: boolean
343
- customClasses?: string[]
344
323
  }
345
324
 
346
325
  export type TabItem = {
@@ -352,20 +331,16 @@ export type TabItem = {
352
331
 
353
332
  export type Tabs = {
354
333
  items: TabItem[]
355
- modifier?: string
356
- customClasses?: string[]
357
334
  }
358
335
 
359
336
  export type Tags = {
360
337
  items: Link[] | string[] | FormControl[]
361
338
  type: TagTypes
362
- customClasses?: string[]
363
339
  }
364
340
 
365
341
  export type SocialLinks = {
366
342
  title?: Heading
367
343
  items: Link[]
368
- customClasses?: string[]
369
344
  }
370
345
 
371
346
  export type SocialShare = {
@@ -373,7 +348,6 @@ export type SocialShare = {
373
348
  linkedin?: boolean
374
349
  twitter?: boolean
375
350
  email?: boolean
376
- customClasses?: string[]
377
351
  }
378
352
 
379
353
  export type UtilityList = {
@@ -381,7 +355,6 @@ export type UtilityList = {
381
355
  print?: boolean
382
356
  pdf?: boolean
383
357
  share?: SocialShare
384
- customClasses?: string[]
385
358
  }
386
359
 
387
360
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnx-mixtape/ids-shape",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "shape details for ids project",
5
5
  "main": "./index.ts",
6
6
  "type": "module",