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