@pnx-mixtape/ids-shape 0.0.9 → 0.0.11

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 (2) hide show
  1. package/index.ts +80 -32
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -101,6 +101,30 @@ export type Media = {
101
101
  align?: MediaAlignmentTypes
102
102
  }
103
103
 
104
+ export type InlineSvg = {
105
+ className?: string
106
+ height?: string
107
+ width?: string
108
+ viewBox?: string
109
+ content?: string
110
+ title?: string
111
+ }
112
+
113
+ export type LinkedImage = {
114
+ image: Image | InlineSvg
115
+ href: string
116
+ }
117
+
118
+ export type FormItem = {
119
+ id: string
120
+ label: string
121
+ fields?: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | (HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement)[]
122
+ status?: "default" | "valid" | "invalid"
123
+ description?: string
124
+ error?: string
125
+ as?: "div" | "fieldset"
126
+ }
127
+
104
128
  export type FormControl = {
105
129
  id: string
106
130
  name: string
@@ -109,6 +133,12 @@ export type FormControl = {
109
133
  checked?: boolean
110
134
  }
111
135
 
136
+ export type Form = {
137
+ action: string
138
+ items: FormItem | FormItem[]
139
+ actions?: Button | Button[]
140
+ }
141
+
112
142
  export type WysiwygText = HTMLElement[] // just an example.
113
143
 
114
144
  /**
@@ -121,30 +151,6 @@ export type WayfindingBlock = {
121
151
  link?: Link | Button
122
152
  }
123
153
 
124
- /**
125
- * Layout.
126
- */
127
-
128
- export type GridItem = {
129
- item: string | HTMLElement
130
- container?: boolean
131
- modifiers?: GridModifiers[]
132
- as?: AsTypes
133
- }
134
-
135
- export type Grid = {
136
- items: GridItem[]
137
- modifiers?: GridModifiers[]
138
- as?: SectionTypes
139
- }
140
-
141
- export type Section = WayfindingBlock & {
142
- background?: string
143
- container?: boolean
144
- as?: SectionTypes
145
- modifiers?: SectionModifiers[]
146
- }
147
-
148
154
  /**
149
155
  * Navigation.
150
156
  */
@@ -184,6 +190,52 @@ export type SideNavigation = Navigation & {
184
190
  parent: Link
185
191
  }
186
192
 
193
+ /**
194
+ * Layout.
195
+ */
196
+
197
+ export type GridItem = {
198
+ item: string | HTMLElement
199
+ container?: boolean
200
+ modifiers?: GridModifiers[]
201
+ as?: AsTypes
202
+ }
203
+
204
+ export type Grid = {
205
+ items: GridItem[]
206
+ modifiers?: GridModifiers[]
207
+ as?: SectionTypes
208
+ }
209
+
210
+ export type Section = WayfindingBlock & {
211
+ background?: string
212
+ container?: boolean
213
+ as?: SectionTypes
214
+ modifiers?: SectionModifiers[]
215
+ }
216
+
217
+ export type Masthead = {
218
+ content?: string
219
+ links?: Link[]
220
+ skipLinks?: Link[]
221
+ }
222
+
223
+ export type Header = {
224
+ logo: LinkedImage | LinkedImage[]
225
+ title?: string
226
+ description?: string
227
+ search?: Form
228
+ navigation?: Navigation
229
+ controls?: Button[]
230
+ }
231
+
232
+ export type Footer = {
233
+ navigation?: Navigation
234
+ aoc?: string
235
+ links?: Link[]
236
+ socials?: SocialLinks
237
+ }
238
+
187
239
  /**
188
240
  * Components.
189
241
  */
@@ -281,7 +333,7 @@ export type InPageAlert = {
281
333
  export type ListItem = {
282
334
  link: Link
283
335
  content: string | WysiwygText
284
- tags?: string[]
336
+ tags?: Tags
285
337
  label?: string
286
338
  info?: string
287
339
  infoBefore?: boolean
@@ -313,13 +365,8 @@ export type Steps = {
313
365
  counters?: boolean
314
366
  }
315
367
 
316
- export type Logo = {
317
- link: Link
318
- image: Image
319
- }
320
-
321
368
  export type SupportList = {
322
- logos: Logo[]
369
+ logos: LinkedImage[]
323
370
  title?: Heading
324
371
  links?: Link[]
325
372
  showBrand?: boolean
@@ -345,7 +392,7 @@ export type Tags = {
345
392
 
346
393
  export type SocialLinks = {
347
394
  title?: Heading
348
- items: Link[]
395
+ items: Link[] | LinkedImage[]
349
396
  }
350
397
 
351
398
  export type SocialShare = {
@@ -382,4 +429,5 @@ export {
382
429
  SectionTypes,
383
430
  StepsModifier,
384
431
  TagTypes,
432
+ ListItemModifiers,
385
433
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnx-mixtape/ids-shape",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "shape details for ids project",
5
5
  "main": "./index.ts",
6
6
  "type": "module",