-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdrupal.d.ts
82 lines (78 loc) · 1.82 KB
/
drupal.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import {DayHours} from "@/lib/hooks/useLibraryHours"
import {Maybe} from "@/lib/gql/__generated__/drupal.d"
export type ParagraphBehaviors = {
layout_paragraphs?: {
layout?: "sul_helper_1_column" | "sul_helper_2_column" | "sul_helper_3_column"
parent_uuid?: string
region?: string
config?: Record<string, string>
}
sul_button_styles?: {
background?: Maybe<string>
}
sul_feat_collections_styles?: {
link_display_style?: Maybe<string>
}
sul_teaser_styles?: {
orientation?: Maybe<string>
background?: Maybe<string>
}
hero_pattern?: {
overlay_position?: string
heading?: "h2" | "h3" | "h4" | "div.su-font-splash"
hide_heading?: boolean
}
su_card_styles?: {
heading?: "h2" | "h3" | "h4" | "div.su-font-splash"
hide_heading?: boolean
}
sul_card_styles?: {
background_color?: "fog_light" | "cardinal_red"
orientation?: string
link_display_style?: string
}
list_paragraph?: {
hide_empty?: Maybe<boolean>
empty_message?: Maybe<string>
heading_behavior?: Maybe<"show" | "hide" | "remove">
}
sul_list_styles?: {link_display_style?: Maybe<string>}
stanford_teaser?: {heading_behavior?: Maybe<"show" | "hide" | "remove">}
faq_accordions?: {heading?: "h2" | "h3" | "h4"}
}
export type LibGuide = {
id: string
title: string
url: string
type: string
}
export type Breadcrumb = {
href: string
text: string
}
export type LibraryHours = {
type: string
id: string
name: string
primary_location: string
locations: {
type: string
id: string
name: string
primary: boolean
hours: DayHours[]
links: {
self: string
}
library: {
type: string
id: string
name: string
primary_location: string
hours: DayHours[]
links: [object]
locations: []
}
}[]
hours: DayHours[]
}