@pnx-mixtape/ids-shape 0.0.16 → 0.0.18
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/index.ts +31 -5
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -121,8 +121,11 @@ export type InlineSvg = {
|
|
|
121
121
|
export type LinkedImage = {
|
|
122
122
|
image: Image | InlineSvg
|
|
123
123
|
href: string
|
|
124
|
+
title?: string
|
|
124
125
|
}
|
|
125
126
|
|
|
127
|
+
export type Logo = InlineSvg | Image
|
|
128
|
+
|
|
126
129
|
export type WysiwygText = HTMLElement[] // just an example.
|
|
127
130
|
|
|
128
131
|
/**
|
|
@@ -205,8 +208,8 @@ export type FormItem = {
|
|
|
205
208
|
|
|
206
209
|
export type Form = {
|
|
207
210
|
action: string
|
|
208
|
-
items: FormItem
|
|
209
|
-
actions?: Button
|
|
211
|
+
items: FormItem[]
|
|
212
|
+
actions?: Button[]
|
|
210
213
|
title?: string
|
|
211
214
|
id?: string
|
|
212
215
|
}
|
|
@@ -300,10 +303,10 @@ export type Masthead = {
|
|
|
300
303
|
}
|
|
301
304
|
|
|
302
305
|
export type Header = {
|
|
303
|
-
logo:
|
|
306
|
+
logo: Logo | Logo[]
|
|
304
307
|
title?: string
|
|
305
308
|
description?: string
|
|
306
|
-
search?:
|
|
309
|
+
search?: string
|
|
307
310
|
navigation?: Navigation
|
|
308
311
|
controls?: Button[]
|
|
309
312
|
}
|
|
@@ -315,7 +318,7 @@ export type Footer = {
|
|
|
315
318
|
socials?: SocialLinks
|
|
316
319
|
background?: FooterModifier
|
|
317
320
|
copyright?: string
|
|
318
|
-
logo?:
|
|
321
|
+
logo?: Logo | Logo[]
|
|
319
322
|
}
|
|
320
323
|
|
|
321
324
|
/**
|
|
@@ -497,6 +500,29 @@ export type UtilityList = {
|
|
|
497
500
|
share?: SocialShare
|
|
498
501
|
}
|
|
499
502
|
|
|
503
|
+
export type Collapsible = {
|
|
504
|
+
title: string
|
|
505
|
+
open?: boolean
|
|
506
|
+
counter?: boolean
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export type FilterItem = FormItem & {
|
|
510
|
+
collapsible?: Collapsible
|
|
511
|
+
shownItems?: number
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export type Filters = {
|
|
515
|
+
action: string
|
|
516
|
+
title: string
|
|
517
|
+
items: FilterItem[]
|
|
518
|
+
actions?: Button[]
|
|
519
|
+
direction: "right" | "down"
|
|
520
|
+
instant?: boolean
|
|
521
|
+
collapsible?: boolean // down in nswds - but that name is too vague, when true it's open on desktop and closed on mobile.
|
|
522
|
+
sticky?: boolean
|
|
523
|
+
counter?: boolean
|
|
524
|
+
}
|
|
525
|
+
|
|
500
526
|
export {
|
|
501
527
|
AlignmentTypes,
|
|
502
528
|
AsTypes,
|