@dnanpm/ui-components 0.5.0 → 0.7.0
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/README.md +3 -1
- package/dist/components/Accordion/Accordion.css +4 -4
- package/dist/components/Accordion/Accordion.module.css.cjs +3 -3
- package/dist/components/Accordion/Accordion.module.css.js +3 -3
- package/dist/components/AccordionItem/AccordionItem.css +19 -19
- package/dist/components/AccordionItem/AccordionItem.module.css.cjs +11 -11
- package/dist/components/AccordionItem/AccordionItem.module.css.js +11 -11
- package/dist/components/Breadcrumb/Breadcrumb.css +11 -12
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
- package/dist/components/Button/Button.cjs +3 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.css +33 -33
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +3 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.module.css.cjs +11 -11
- package/dist/components/Button/Button.module.css.js +11 -11
- package/dist/components/Footer/Footer.cjs +272 -0
- package/dist/components/Footer/Footer.cjs.map +1 -0
- package/dist/components/Footer/Footer.css +466 -0
- package/dist/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Footer/Footer.d.ts.map +1 -0
- package/dist/components/Footer/Footer.js +272 -0
- package/dist/components/Footer/Footer.js.map +1 -0
- package/dist/components/Footer/Footer.module.css.cjs +80 -0
- package/dist/components/Footer/Footer.module.css.cjs.map +1 -0
- package/dist/components/Footer/Footer.module.css.js +80 -0
- package/dist/components/Footer/Footer.module.css.js.map +1 -0
- package/dist/components/Footer/Footer.types.d.ts +128 -0
- package/dist/components/Footer/Footer.types.d.ts.map +1 -0
- package/dist/components/Footer/Footer.utils.cjs +41 -0
- package/dist/components/Footer/Footer.utils.cjs.map +1 -0
- package/dist/components/Footer/Footer.utils.d.ts +13 -0
- package/dist/components/Footer/Footer.utils.d.ts.map +1 -0
- package/dist/components/Footer/Footer.utils.js +41 -0
- package/dist/components/Footer/Footer.utils.js.map +1 -0
- package/dist/components/Footer/assets/app-store-badge.svg.cjs +4 -0
- package/dist/components/Footer/assets/app-store-badge.svg.cjs.map +1 -0
- package/dist/components/Footer/assets/app-store-badge.svg.js +5 -0
- package/dist/components/Footer/assets/app-store-badge.svg.js.map +1 -0
- package/dist/components/Footer/assets/google-play-badge.svg.cjs +4 -0
- package/dist/components/Footer/assets/google-play-badge.svg.cjs.map +1 -0
- package/dist/components/Footer/assets/google-play-badge.svg.js +5 -0
- package/dist/components/Footer/assets/google-play-badge.svg.js.map +1 -0
- package/dist/components/Footer/index.d.ts +3 -0
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/Hero/Hero.cjs +31 -26
- package/dist/components/Hero/Hero.cjs.map +1 -1
- package/dist/components/Hero/Hero.css +96 -103
- package/dist/components/Hero/Hero.d.ts +1 -1
- package/dist/components/Hero/Hero.d.ts.map +1 -1
- package/dist/components/Hero/Hero.js +32 -27
- package/dist/components/Hero/Hero.js.map +1 -1
- package/dist/components/Hero/Hero.module.css.cjs +17 -19
- package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
- package/dist/components/Hero/Hero.module.css.js +17 -19
- package/dist/components/Hero/Hero.module.css.js.map +1 -1
- package/dist/components/Hero/Hero.types.d.ts +9 -8
- package/dist/components/Hero/Hero.types.d.ts.map +1 -1
- package/dist/components/Hero/Hero.utils.cjs +5 -7
- package/dist/components/Hero/Hero.utils.cjs.map +1 -1
- package/dist/components/Hero/Hero.utils.d.ts +2 -2
- package/dist/components/Hero/Hero.utils.d.ts.map +1 -1
- package/dist/components/Hero/Hero.utils.js +5 -7
- package/dist/components/Hero/Hero.utils.js.map +1 -1
- package/dist/components/IconButton/IconButton.cjs +21 -5
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.css +87 -83
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +22 -6
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconButton/IconButton.module.css.cjs +9 -10
- package/dist/components/IconButton/IconButton.module.css.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.module.css.js +9 -10
- package/dist/components/IconButton/IconButton.module.css.js.map +1 -1
- package/dist/components/IconButton/IconButton.types.d.ts +15 -10
- package/dist/components/IconButton/IconButton.types.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/Label/Label.css +13 -8
- package/dist/components/Label/Label.module.css.cjs +7 -7
- package/dist/components/Label/Label.module.css.js +7 -7
- package/dist/components/MainNavigation/MainNavigation.cjs +1110 -0
- package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.css +946 -0
- package/dist/components/MainNavigation/MainNavigation.d.ts +3 -0
- package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.js +1110 -0
- package/dist/components/MainNavigation/MainNavigation.js.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs +74 -0
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.module.css.js +75 -0
- package/dist/components/MainNavigation/MainNavigation.module.css.js.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.types.d.ts +149 -0
- package/dist/components/MainNavigation/MainNavigation.types.d.ts.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.utils.cjs +168 -0
- package/dist/components/MainNavigation/MainNavigation.utils.cjs.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts +29 -0
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.utils.js +168 -0
- package/dist/components/MainNavigation/MainNavigation.utils.js.map +1 -0
- package/dist/components/MainNavigation/index.d.ts +3 -0
- package/dist/components/MainNavigation/index.d.ts.map +1 -0
- package/dist/components/Notification/Notification.css +14 -14
- package/dist/components/Notification/Notification.module.css.cjs +9 -9
- package/dist/components/Notification/Notification.module.css.js +9 -9
- package/dist/components/Pictograph/Pictograph.css +69 -57
- package/dist/components/Pictograph/Pictograph.module.css.cjs +11 -11
- package/dist/components/Pictograph/Pictograph.module.css.js +11 -11
- package/dist/components/Pictograph/Pictograph.types.d.ts +2 -2
- package/dist/components/Pictograph/PictographItem.cjs +15 -4
- package/dist/components/Pictograph/PictographItem.cjs.map +1 -1
- package/dist/components/Pictograph/PictographItem.css +26 -23
- package/dist/components/Pictograph/PictographItem.d.ts.map +1 -1
- package/dist/components/Pictograph/PictographItem.js +15 -4
- package/dist/components/Pictograph/PictographItem.js.map +1 -1
- package/dist/components/Pictograph/PictographItem.module.css.cjs +3 -3
- package/dist/components/Pictograph/PictographItem.module.css.js +3 -3
- package/dist/components/Quote/Quote.cjs +32 -0
- package/dist/components/Quote/Quote.cjs.map +1 -0
- package/dist/components/Quote/Quote.css +95 -0
- package/dist/components/Quote/Quote.d.ts +3 -0
- package/dist/components/Quote/Quote.d.ts.map +1 -0
- package/dist/components/Quote/Quote.js +32 -0
- package/dist/components/Quote/Quote.js.map +1 -0
- package/dist/components/Quote/Quote.module.css.cjs +22 -0
- package/dist/components/Quote/Quote.module.css.cjs.map +1 -0
- package/dist/components/Quote/Quote.module.css.js +22 -0
- package/dist/components/Quote/Quote.module.css.js.map +1 -0
- package/dist/components/Quote/Quote.types.d.ts +12 -0
- package/dist/components/Quote/Quote.types.d.ts.map +1 -0
- package/dist/components/Quote/index.d.ts +3 -0
- package/dist/components/Quote/index.d.ts.map +1 -0
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/utils/elevation.css +20 -17
- package/dist/styles/utils/elevation.module.css.cjs +4 -4
- package/dist/styles/utils/elevation.module.css.js +4 -4
- package/dist/styles/utils/focus.css +23 -14
- package/dist/styles/utils/focus.module.css.cjs +6 -3
- package/dist/styles/utils/focus.module.css.cjs.map +1 -1
- package/dist/styles/utils/focus.module.css.js +7 -4
- package/dist/styles/utils/focus.module.css.js.map +1 -1
- package/dist/styles/utils/overlay.css +37 -0
- package/dist/styles/utils/overlay.module.css.cjs +13 -0
- package/dist/styles/utils/overlay.module.css.cjs.map +1 -0
- package/dist/styles/utils/overlay.module.css.js +13 -0
- package/dist/styles/utils/overlay.module.css.js.map +1 -0
- package/dist/styles/utils/text-decoration.css +8 -1
- package/dist/styles/utils/text-decoration.module.css.cjs +5 -2
- package/dist/styles/utils/text-decoration.module.css.cjs.map +1 -1
- package/dist/styles/utils/text-decoration.module.css.js +6 -3
- package/dist/styles/utils/text-decoration.module.css.js.map +1 -1
- package/dist/styles.css +141 -92
- package/package.json +2 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
@layer dds-components {.
|
|
1
|
+
@layer dds-components {._hero_1xib4_1 {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
width: 100%;
|
|
6
|
-
padding-top: var(--spacing-
|
|
6
|
+
padding-top: var(--spacing-space-40);
|
|
7
7
|
container-name: hero;
|
|
8
8
|
container-type: inline-size;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
._hero__background_1xib4_11 {
|
|
12
12
|
position: absolute;
|
|
13
13
|
inset-inline: 0;
|
|
14
14
|
top: 0;
|
|
15
|
-
height:
|
|
15
|
+
height: 280px;
|
|
16
16
|
background-color: var(--color-semantic-surface-primary-soft);
|
|
17
17
|
overflow: clip;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
20
|
+
._hero__backgroundImageComponent_1xib4_20 {
|
|
21
21
|
width: 100%;
|
|
22
22
|
height: 100%;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
._hero__backgroundImageComponent_1xib4_20 > * {
|
|
26
26
|
width: 100%;
|
|
27
27
|
height: 100%;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
31
|
-
.
|
|
32
|
-
.
|
|
33
|
-
.
|
|
34
|
-
.
|
|
30
|
+
._hero__backgroundImageComponent_1xib4_20 img,
|
|
31
|
+
._hero__backgroundImageComponent_1xib4_20 picture,
|
|
32
|
+
._hero__backgroundImageComponent_1xib4_20 video,
|
|
33
|
+
._hero__backgroundImageComponent_1xib4_20 canvas,
|
|
34
|
+
._hero__backgroundImageComponent_1xib4_20 svg {
|
|
35
35
|
display: block;
|
|
36
36
|
width: 100%;
|
|
37
37
|
height: 100%;
|
|
@@ -39,28 +39,24 @@
|
|
|
39
39
|
object-position: right center;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.
|
|
42
|
+
._hero__logoImage_1xib4_42 {
|
|
43
43
|
position: absolute;
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
top: 0;
|
|
45
|
+
left: 0;
|
|
46
|
+
right: 0;
|
|
46
47
|
display: flex;
|
|
47
|
-
align-items:
|
|
48
|
-
justify-content:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
margin-inline: auto;
|
|
52
|
-
padding-left: var(--spacing-layout-lg);
|
|
53
|
-
padding-right: var(--spacing-ui-xxxl);
|
|
54
|
-
padding-bottom: var(--spacing-ui-lg);
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
height: 200px;
|
|
51
|
+
padding-inline: var(--spacing-space-20);
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
.
|
|
58
|
-
width: min(430px, 43vw);
|
|
59
|
-
max-width: 100%;
|
|
54
|
+
._hero__logoImage_1xib4_42 > * {
|
|
60
55
|
height: auto;
|
|
56
|
+
max-height: 80%;
|
|
61
57
|
}
|
|
62
58
|
|
|
63
|
-
.
|
|
59
|
+
._hero__overlay_1xib4_59 {
|
|
64
60
|
position: absolute;
|
|
65
61
|
inset-inline: 0;
|
|
66
62
|
bottom: 0;
|
|
@@ -72,173 +68,170 @@
|
|
|
72
68
|
);
|
|
73
69
|
}
|
|
74
70
|
|
|
75
|
-
.
|
|
71
|
+
._hero__content_1xib4_71 {
|
|
76
72
|
position: relative;
|
|
77
73
|
z-index: 1;
|
|
78
74
|
display: flex;
|
|
79
|
-
|
|
80
|
-
align-items:
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
align-items: stretch;
|
|
81
77
|
justify-content: flex-start;
|
|
82
78
|
max-width: 1280px;
|
|
83
|
-
gap:
|
|
79
|
+
gap: 0;
|
|
84
80
|
width: 100%;
|
|
85
81
|
margin-inline: auto;
|
|
86
|
-
padding-
|
|
87
|
-
padding-
|
|
82
|
+
padding-top: 200px;
|
|
83
|
+
padding-inline: var(--spacing-space-20);
|
|
88
84
|
}
|
|
89
85
|
|
|
90
|
-
.
|
|
91
|
-
flex: 0 0 650px;
|
|
92
|
-
width: 650px;
|
|
86
|
+
._hero__card_1xib4_86 {
|
|
93
87
|
min-width: 0;
|
|
94
|
-
|
|
88
|
+
width: 100%;
|
|
95
89
|
background-color: var(--color-semantic-surface-base);
|
|
96
90
|
border: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-base);
|
|
97
91
|
border-radius: var(--radius-semantic-md);
|
|
98
|
-
padding: var(--spacing-
|
|
92
|
+
padding: var(--spacing-space-20);
|
|
99
93
|
}
|
|
100
94
|
|
|
101
|
-
.
|
|
95
|
+
._hero__main_1xib4_95 {
|
|
102
96
|
display: flex;
|
|
103
97
|
flex-direction: column;
|
|
104
|
-
gap: var(--spacing-
|
|
98
|
+
gap: var(--spacing-space-40);
|
|
105
99
|
}
|
|
106
100
|
|
|
107
|
-
.
|
|
101
|
+
._hero__text_1xib4_101 {
|
|
108
102
|
display: flex;
|
|
109
103
|
flex-direction: column;
|
|
110
|
-
gap: var(--spacing-
|
|
104
|
+
gap: var(--spacing-space-20);
|
|
111
105
|
}
|
|
112
106
|
|
|
113
|
-
.
|
|
107
|
+
._hero__header_1xib4_107 {
|
|
114
108
|
display: flex;
|
|
115
109
|
flex-direction: column;
|
|
116
|
-
gap: var(--spacing-
|
|
110
|
+
gap: var(--spacing-space-8);
|
|
117
111
|
}
|
|
118
112
|
|
|
119
|
-
.
|
|
113
|
+
._hero__label_1xib4_113 {
|
|
120
114
|
align-self: flex-start;
|
|
121
115
|
}
|
|
122
116
|
|
|
123
|
-
.
|
|
117
|
+
._hero__heading_1xib4_117 {
|
|
124
118
|
margin: 0;
|
|
125
119
|
color: var(--color-semantic-foreground-default);
|
|
126
120
|
text-wrap: balance;
|
|
127
121
|
}
|
|
128
122
|
|
|
129
|
-
._hero__heading--
|
|
130
|
-
font: var(--typography-heading-xl);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
._hero__heading--lg_905ff_133 {
|
|
123
|
+
._hero__heading--default_1xib4_123 {
|
|
134
124
|
font: var(--typography-heading-lg);
|
|
135
125
|
}
|
|
136
126
|
|
|
137
|
-
._hero__heading--
|
|
138
|
-
font: var(--typography-heading-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
._hero__heading--sm_905ff_141 {
|
|
142
|
-
font: var(--typography-heading-sm);
|
|
127
|
+
._hero__heading--large_1xib4_127 {
|
|
128
|
+
font: var(--typography-heading-xl);
|
|
143
129
|
}
|
|
144
130
|
|
|
145
|
-
._hero__heading--
|
|
146
|
-
font: var(--typography-heading-
|
|
131
|
+
._hero__heading--small_1xib4_131 {
|
|
132
|
+
font: var(--typography-heading-md);
|
|
147
133
|
}
|
|
148
134
|
|
|
149
|
-
.
|
|
135
|
+
._hero__description_1xib4_135 {
|
|
150
136
|
margin: 0;
|
|
151
137
|
color: var(--color-semantic-foreground-default);
|
|
152
|
-
font: var(--typography-body-
|
|
138
|
+
font: var(--typography-body-md);
|
|
153
139
|
text-wrap: pretty;
|
|
154
140
|
}
|
|
155
141
|
|
|
156
|
-
.
|
|
142
|
+
._hero__description_1xib4_135 p {
|
|
157
143
|
margin: 0;
|
|
158
144
|
}
|
|
159
145
|
|
|
160
|
-
.
|
|
161
|
-
margin-top: var(--spacing-
|
|
146
|
+
._hero__description_1xib4_135 p + p {
|
|
147
|
+
margin-top: var(--spacing-space-12);
|
|
162
148
|
}
|
|
163
149
|
|
|
164
|
-
.
|
|
150
|
+
._hero__actions_1xib4_150 {
|
|
165
151
|
display: flex;
|
|
166
152
|
flex-direction: row;
|
|
167
153
|
align-items: flex-start;
|
|
168
|
-
gap: var(--spacing-
|
|
169
|
-
flex-wrap:
|
|
154
|
+
gap: var(--spacing-space-16);
|
|
155
|
+
flex-wrap: wrap;
|
|
170
156
|
}
|
|
171
157
|
|
|
172
|
-
@container hero (
|
|
173
|
-
.
|
|
158
|
+
@container hero (min-width: 768px) {
|
|
159
|
+
._hero__background_1xib4_11 {
|
|
174
160
|
height: 460px;
|
|
175
161
|
}
|
|
176
162
|
|
|
177
|
-
.
|
|
163
|
+
._hero__content_1xib4_71 {
|
|
164
|
+
flex-direction: row;
|
|
165
|
+
align-items: flex-end;
|
|
178
166
|
min-height: 460px;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
._hero__card_905ff_90 {
|
|
183
|
-
flex-basis: 335px;
|
|
184
|
-
max-width: 335px;
|
|
185
|
-
padding: var(--spacing-ui-lg);
|
|
167
|
+
gap: var(--spacing-space-40);
|
|
168
|
+
padding-top: 0;
|
|
169
|
+
padding-inline: var(--spacing-space-40);
|
|
186
170
|
}
|
|
187
171
|
|
|
188
|
-
.
|
|
189
|
-
|
|
172
|
+
._hero__card_1xib4_86 {
|
|
173
|
+
width: 50%;
|
|
174
|
+
max-width: 650px;
|
|
190
175
|
}
|
|
191
176
|
|
|
192
|
-
.
|
|
193
|
-
|
|
177
|
+
._hero__logoImage_1xib4_42 {
|
|
178
|
+
position: static;
|
|
179
|
+
flex: 1 1 auto;
|
|
180
|
+
min-width: 0;
|
|
181
|
+
height: auto;
|
|
182
|
+
max-height: 460px;
|
|
183
|
+
align-items: center;
|
|
184
|
+
align-self: stretch;
|
|
185
|
+
margin-top: calc(-1 * var(--spacing-space-40));
|
|
186
|
+
padding-inline: 0;
|
|
187
|
+
padding-top: 0;
|
|
188
|
+
padding-bottom: 0;
|
|
194
189
|
}
|
|
195
190
|
|
|
196
|
-
.
|
|
197
|
-
|
|
198
|
-
|
|
191
|
+
._hero__logoImage_1xib4_42 > * {
|
|
192
|
+
width: auto;
|
|
193
|
+
max-width: 90%;
|
|
194
|
+
max-height: 100%;
|
|
199
195
|
}
|
|
200
196
|
}
|
|
201
197
|
|
|
202
|
-
@container hero (
|
|
203
|
-
.
|
|
204
|
-
height:
|
|
198
|
+
@container hero (min-width: 1024px) {
|
|
199
|
+
._hero__background_1xib4_11 {
|
|
200
|
+
height: 440px;
|
|
205
201
|
}
|
|
206
202
|
|
|
207
|
-
.
|
|
208
|
-
min-height:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
gap: 0;
|
|
212
|
-
padding-top: 200px;
|
|
213
|
-
padding-inline: var(--spacing-ui-lg);
|
|
203
|
+
._hero__content_1xib4_71 {
|
|
204
|
+
min-height: 440px;
|
|
205
|
+
padding-left: var(--spacing-space-80);
|
|
206
|
+
padding-right: var(--spacing-space-40);
|
|
214
207
|
}
|
|
215
208
|
|
|
216
|
-
.
|
|
217
|
-
|
|
218
|
-
width:
|
|
219
|
-
|
|
209
|
+
._hero__card_1xib4_86 {
|
|
210
|
+
width: 60%;
|
|
211
|
+
max-width: initial;
|
|
212
|
+
padding: var(--spacing-space-40);
|
|
220
213
|
}
|
|
221
214
|
|
|
222
|
-
.
|
|
223
|
-
|
|
215
|
+
._hero__logoImage_1xib4_42 {
|
|
216
|
+
max-height: 440px;
|
|
224
217
|
}
|
|
225
218
|
}
|
|
226
219
|
|
|
227
220
|
@media (forced-colors: active) {
|
|
228
|
-
.
|
|
221
|
+
._hero__overlay_1xib4_59 {
|
|
229
222
|
display: none;
|
|
230
223
|
}
|
|
231
224
|
|
|
232
|
-
.
|
|
225
|
+
._hero__background_1xib4_11 {
|
|
233
226
|
background-color: Canvas;
|
|
234
227
|
}
|
|
235
228
|
|
|
236
|
-
.
|
|
229
|
+
._hero__card_1xib4_86 {
|
|
237
230
|
border: var(--borderwidth-semantic-xs) solid CanvasText;
|
|
238
231
|
box-shadow: none;
|
|
239
232
|
}
|
|
240
233
|
|
|
241
|
-
.
|
|
234
|
+
._hero__logoImage_1xib4_42 {
|
|
242
235
|
display: none;
|
|
243
236
|
}
|
|
244
237
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HeroProps } from './Hero.types';
|
|
2
|
-
export declare const Hero: ({ label, heading, description, headingLevel, Image, imageProps, LogoImage, logoImageProps, backgroundColor, primaryCta, secondaryCta, className, ref, ...props }: HeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Hero: ({ label, heading, description, headingLevel, headingStyle, Image, imageProps, LogoImage, logoImageProps, backgroundColor, primaryCta, secondaryCta, className, ref, ...props }: HeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=Hero.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,eAAO,MAAM,IAAI,GAAI,
|
|
1
|
+
{"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,eAAO,MAAM,IAAI,GAAI,gLAgBlB,SAAS,4CAuEX,CAAC"}
|
|
@@ -2,13 +2,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId } from "react";
|
|
3
3
|
import elevationStyles from "../../styles/utils/elevation.module.css.js";
|
|
4
4
|
import styles from "./Hero.module.css.js";
|
|
5
|
-
import {
|
|
5
|
+
import { headingClassByStyle } from "./Hero.utils.js";
|
|
6
6
|
import { cn } from "../../utils/cn/cn.js";
|
|
7
7
|
const Hero = ({
|
|
8
8
|
label,
|
|
9
9
|
heading,
|
|
10
10
|
description,
|
|
11
11
|
headingLevel = "h1",
|
|
12
|
+
headingStyle = "default",
|
|
12
13
|
Image,
|
|
13
14
|
imageProps,
|
|
14
15
|
LogoImage,
|
|
@@ -25,45 +26,49 @@ const Hero = ({
|
|
|
25
26
|
const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? "img" : void 0);
|
|
26
27
|
const image = ResolvedImage != null ? /* @__PURE__ */ jsx(ResolvedImage, { ...imageProps }) : void 0;
|
|
27
28
|
const logoImage = ResolvedLogoImage != null ? /* @__PURE__ */ jsx(ResolvedLogoImage, { ...logoImageProps }) : void 0;
|
|
29
|
+
const HeadingLevel = headingLevel;
|
|
28
30
|
const hasActions = primaryCta != null || secondaryCta != null;
|
|
29
31
|
const backgroundStyle = image == null && backgroundColor != null ? { backgroundColor } : void 0;
|
|
30
|
-
const
|
|
32
|
+
const ariaLabelledBy = props["aria-label"] ? void 0 : props["aria-labelledby"] || headingId;
|
|
31
33
|
return /* @__PURE__ */ jsxs(
|
|
32
|
-
"
|
|
34
|
+
"section",
|
|
33
35
|
{
|
|
34
36
|
ref,
|
|
35
37
|
...props,
|
|
36
38
|
className: cn(styles.hero, className),
|
|
37
|
-
"
|
|
39
|
+
"aria-label": props["aria-label"],
|
|
40
|
+
"aria-labelledby": ariaLabelledBy,
|
|
38
41
|
children: [
|
|
39
42
|
/* @__PURE__ */ jsxs("div", { className: styles.hero__background, style: backgroundStyle, children: [
|
|
40
43
|
image != null && /* @__PURE__ */ jsx("div", { className: styles.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
|
|
41
|
-
logoImage != null && /* @__PURE__ */ jsx("div", { className: styles.hero__logoImage, "aria-hidden": "true", children: logoImage }),
|
|
42
44
|
/* @__PURE__ */ jsx("div", { className: styles.hero__overlay, "aria-hidden": "true" })
|
|
43
45
|
] }),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */ jsxs("div", { className: styles.
|
|
46
|
-
/* @__PURE__ */ jsxs("div", { className: styles.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
/* @__PURE__ */ jsxs("div", { className: styles.hero__content, children: [
|
|
47
|
+
/* @__PURE__ */ jsx("div", { className: cn(styles.hero__card, elevationStyles.elevationHigh), children: /* @__PURE__ */ jsxs("div", { className: styles.hero__main, children: [
|
|
48
|
+
/* @__PURE__ */ jsxs("div", { className: styles.hero__text, children: [
|
|
49
|
+
/* @__PURE__ */ jsxs("div", { className: styles.hero__header, children: [
|
|
50
|
+
label != null && /* @__PURE__ */ jsx("div", { className: styles.hero__label, children: label }),
|
|
51
|
+
/* @__PURE__ */ jsx(
|
|
52
|
+
HeadingLevel,
|
|
53
|
+
{
|
|
54
|
+
id: headingId,
|
|
55
|
+
className: cn(
|
|
56
|
+
styles.hero__heading,
|
|
57
|
+
headingClassByStyle[headingStyle]
|
|
58
|
+
),
|
|
59
|
+
children: heading
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] }),
|
|
63
|
+
description != null && /* @__PURE__ */ jsx("div", { className: cn(styles.hero__description, "dds-prose"), children: description })
|
|
59
64
|
] }),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
] })
|
|
65
|
+
hasActions && /* @__PURE__ */ jsxs("div", { className: styles.hero__actions, children: [
|
|
66
|
+
primaryCta != null && primaryCta,
|
|
67
|
+
secondaryCta != null && secondaryCta
|
|
68
|
+
] })
|
|
69
|
+
] }) }),
|
|
70
|
+
logoImage != null && /* @__PURE__ */ jsx("div", { className: styles.hero__logoImage, "aria-hidden": "true", children: logoImage })
|
|
71
|
+
] })
|
|
67
72
|
]
|
|
68
73
|
}
|
|
69
74
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hero.js","sources":["../../../src/components/Hero/Hero.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { cn } from '../../utils/cn';\nimport elevationStyles from '../../styles/utils/elevation.module.css';\nimport styles from './Hero.module.css';\nimport type { HeroProps } from './Hero.types';\nimport {
|
|
1
|
+
{"version":3,"file":"Hero.js","sources":["../../../src/components/Hero/Hero.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { cn } from '../../utils/cn';\nimport elevationStyles from '../../styles/utils/elevation.module.css';\nimport styles from './Hero.module.css';\nimport type { HeroProps } from './Hero.types';\nimport { headingClassByStyle } from './Hero.utils';\n\nexport const Hero = ({\n label,\n heading,\n description,\n headingLevel = 'h1',\n headingStyle = 'default',\n Image,\n imageProps,\n LogoImage,\n logoImageProps,\n backgroundColor,\n primaryCta,\n secondaryCta,\n className,\n ref,\n ...props\n}: HeroProps) => {\n const headingId = useId();\n\n const ResolvedImage = Image ?? (imageProps != null ? 'img' : undefined);\n const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? 'img' : undefined);\n const image = ResolvedImage != null ? <ResolvedImage {...imageProps} /> : undefined;\n const logoImage =\n ResolvedLogoImage != null ? <ResolvedLogoImage {...logoImageProps} /> : undefined;\n const HeadingLevel = headingLevel;\n\n const hasActions = primaryCta != null || secondaryCta != null;\n const backgroundStyle =\n image == null && backgroundColor != null ? { backgroundColor } : undefined;\n const ariaLabelledBy = props['aria-label'] ? undefined : props['aria-labelledby'] || headingId;\n\n return (\n <section\n ref={ref}\n {...props}\n className={cn(styles.hero, className)}\n aria-label={props['aria-label']}\n aria-labelledby={ariaLabelledBy}\n >\n <div className={styles.hero__background} style={backgroundStyle}>\n {image != null && (\n <div className={styles.hero__backgroundImageComponent} aria-hidden=\"true\">\n {image}\n </div>\n )}\n <div className={styles.hero__overlay} aria-hidden=\"true\" />\n </div>\n\n <div className={styles.hero__content}>\n <div className={cn(styles.hero__card, elevationStyles.elevationHigh)}>\n <div className={styles.hero__main}>\n <div className={styles.hero__text}>\n <div className={styles.hero__header}>\n {label != null && <div className={styles.hero__label}>{label}</div>}\n <HeadingLevel\n id={headingId}\n className={cn(\n styles.hero__heading,\n headingClassByStyle[headingStyle],\n )}\n >\n {heading}\n </HeadingLevel>\n </div>\n {description != null && (\n <div className={cn(styles.hero__description, 'dds-prose')}>\n {description}\n </div>\n )}\n </div>\n\n {hasActions && (\n <div className={styles.hero__actions}>\n {primaryCta != null && primaryCta}\n {secondaryCta != null && secondaryCta}\n </div>\n )}\n </div>\n </div>\n {logoImage != null && (\n <div className={styles.hero__logoImage} aria-hidden=\"true\">\n {logoImage}\n </div>\n )}\n </div>\n </section>\n );\n};\n"],"names":[],"mappings":";;;;;;AAOO,MAAM,OAAO,CAAC;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAiB;AACb,QAAM,YAAY,MAAA;AAElB,QAAM,gBAAgB,UAAU,cAAc,OAAO,QAAQ;AAC7D,QAAM,oBAAoB,cAAc,kBAAkB,OAAO,QAAQ;AACzE,QAAM,QAAQ,iBAAiB,2BAAQ,eAAA,EAAe,GAAG,YAAY,IAAK;AAC1E,QAAM,YACF,qBAAqB,2BAAQ,mBAAA,EAAmB,GAAG,gBAAgB,IAAK;AAC5E,QAAM,eAAe;AAErB,QAAM,aAAa,cAAc,QAAQ,gBAAgB;AACzD,QAAM,kBACF,SAAS,QAAQ,mBAAmB,OAAO,EAAE,oBAAoB;AACrE,QAAM,iBAAiB,MAAM,YAAY,IAAI,SAAY,MAAM,iBAAiB,KAAK;AAErF,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACC,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,SAAS;AAAA,MACpC,cAAY,MAAM,YAAY;AAAA,MAC9B,mBAAiB;AAAA,MAEjB,UAAA;AAAA,QAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,kBAAkB,OAAO,iBAC3C,UAAA;AAAA,UAAA,SAAS,4BACL,OAAA,EAAI,WAAW,OAAO,gCAAgC,eAAY,QAC9D,UAAA,MAAA,CACL;AAAA,8BAEH,OAAA,EAAI,WAAW,OAAO,eAAe,eAAY,OAAA,CAAO;AAAA,QAAA,GAC7D;AAAA,QAEA,qBAAC,OAAA,EAAI,WAAW,OAAO,eACnB,UAAA;AAAA,UAAA,oBAAC,OAAA,EAAI,WAAW,GAAG,OAAO,YAAY,gBAAgB,aAAa,GAC/D,UAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,YACnB,UAAA;AAAA,YAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,YACnB,UAAA;AAAA,cAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,cAClB,UAAA;AAAA,gBAAA,SAAS,QAAQ,oBAAC,OAAA,EAAI,WAAW,OAAO,aAAc,UAAA,OAAM;AAAA,gBAC7D;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBACG,IAAI;AAAA,oBACJ,WAAW;AAAA,sBACP,OAAO;AAAA,sBACP,oBAAoB,YAAY;AAAA,oBAAA;AAAA,oBAGnC,UAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACL,GACJ;AAAA,cACC,eAAe,QACZ,oBAAC,OAAA,EAAI,WAAW,GAAG,OAAO,mBAAmB,WAAW,GACnD,UAAA,YAAA,CACL;AAAA,YAAA,GAER;AAAA,YAEC,cACG,qBAAC,OAAA,EAAI,WAAW,OAAO,eAClB,UAAA;AAAA,cAAA,cAAc,QAAQ;AAAA,cACtB,gBAAgB,QAAQ;AAAA,YAAA,EAAA,CAC7B;AAAA,UAAA,EAAA,CAER,EAAA,CACJ;AAAA,UACC,aAAa,QACV,oBAAC,OAAA,EAAI,WAAW,OAAO,iBAAiB,eAAY,QAC/C,UAAA,UAAA,CACL;AAAA,QAAA,EAAA,CAER;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
require('./Hero.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const hero = "
|
|
5
|
-
const hero__background = "
|
|
6
|
-
const hero__backgroundImageComponent = "
|
|
7
|
-
const hero__logoImage = "
|
|
8
|
-
const hero__overlay = "
|
|
9
|
-
const hero__content = "
|
|
10
|
-
const hero__card = "
|
|
11
|
-
const hero__main = "
|
|
12
|
-
const hero__text = "
|
|
13
|
-
const hero__header = "
|
|
14
|
-
const hero__label = "
|
|
15
|
-
const hero__heading = "
|
|
16
|
-
const hero__description = "
|
|
17
|
-
const hero__actions = "
|
|
4
|
+
const hero = "_hero_1xib4_1";
|
|
5
|
+
const hero__background = "_hero__background_1xib4_11";
|
|
6
|
+
const hero__backgroundImageComponent = "_hero__backgroundImageComponent_1xib4_20";
|
|
7
|
+
const hero__logoImage = "_hero__logoImage_1xib4_42";
|
|
8
|
+
const hero__overlay = "_hero__overlay_1xib4_59";
|
|
9
|
+
const hero__content = "_hero__content_1xib4_71";
|
|
10
|
+
const hero__card = "_hero__card_1xib4_86";
|
|
11
|
+
const hero__main = "_hero__main_1xib4_95";
|
|
12
|
+
const hero__text = "_hero__text_1xib4_101";
|
|
13
|
+
const hero__header = "_hero__header_1xib4_107";
|
|
14
|
+
const hero__label = "_hero__label_1xib4_113";
|
|
15
|
+
const hero__heading = "_hero__heading_1xib4_117";
|
|
16
|
+
const hero__description = "_hero__description_1xib4_135";
|
|
17
|
+
const hero__actions = "_hero__actions_1xib4_150";
|
|
18
18
|
const styles = {
|
|
19
19
|
hero,
|
|
20
20
|
hero__background,
|
|
@@ -28,11 +28,9 @@ const styles = {
|
|
|
28
28
|
hero__header,
|
|
29
29
|
hero__label,
|
|
30
30
|
hero__heading,
|
|
31
|
-
"hero__heading--
|
|
32
|
-
"hero__heading--
|
|
33
|
-
"hero__heading--
|
|
34
|
-
"hero__heading--sm": "_hero__heading--sm_905ff_141",
|
|
35
|
-
"hero__heading--xs": "_hero__heading--xs_905ff_145",
|
|
31
|
+
"hero__heading--default": "_hero__heading--default_1xib4_123",
|
|
32
|
+
"hero__heading--large": "_hero__heading--large_1xib4_127",
|
|
33
|
+
"hero__heading--small": "_hero__heading--small_1xib4_131",
|
|
36
34
|
hero__description,
|
|
37
35
|
hero__actions
|
|
38
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hero.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Hero.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './Hero.css';
|
|
2
|
-
const hero = "
|
|
3
|
-
const hero__background = "
|
|
4
|
-
const hero__backgroundImageComponent = "
|
|
5
|
-
const hero__logoImage = "
|
|
6
|
-
const hero__overlay = "
|
|
7
|
-
const hero__content = "
|
|
8
|
-
const hero__card = "
|
|
9
|
-
const hero__main = "
|
|
10
|
-
const hero__text = "
|
|
11
|
-
const hero__header = "
|
|
12
|
-
const hero__label = "
|
|
13
|
-
const hero__heading = "
|
|
14
|
-
const hero__description = "
|
|
15
|
-
const hero__actions = "
|
|
2
|
+
const hero = "_hero_1xib4_1";
|
|
3
|
+
const hero__background = "_hero__background_1xib4_11";
|
|
4
|
+
const hero__backgroundImageComponent = "_hero__backgroundImageComponent_1xib4_20";
|
|
5
|
+
const hero__logoImage = "_hero__logoImage_1xib4_42";
|
|
6
|
+
const hero__overlay = "_hero__overlay_1xib4_59";
|
|
7
|
+
const hero__content = "_hero__content_1xib4_71";
|
|
8
|
+
const hero__card = "_hero__card_1xib4_86";
|
|
9
|
+
const hero__main = "_hero__main_1xib4_95";
|
|
10
|
+
const hero__text = "_hero__text_1xib4_101";
|
|
11
|
+
const hero__header = "_hero__header_1xib4_107";
|
|
12
|
+
const hero__label = "_hero__label_1xib4_113";
|
|
13
|
+
const hero__heading = "_hero__heading_1xib4_117";
|
|
14
|
+
const hero__description = "_hero__description_1xib4_135";
|
|
15
|
+
const hero__actions = "_hero__actions_1xib4_150";
|
|
16
16
|
const styles = {
|
|
17
17
|
hero,
|
|
18
18
|
hero__background,
|
|
@@ -26,11 +26,9 @@ const styles = {
|
|
|
26
26
|
hero__header,
|
|
27
27
|
hero__label,
|
|
28
28
|
hero__heading,
|
|
29
|
-
"hero__heading--
|
|
30
|
-
"hero__heading--
|
|
31
|
-
"hero__heading--
|
|
32
|
-
"hero__heading--sm": "_hero__heading--sm_905ff_141",
|
|
33
|
-
"hero__heading--xs": "_hero__heading--xs_905ff_145",
|
|
29
|
+
"hero__heading--default": "_hero__heading--default_1xib4_123",
|
|
30
|
+
"hero__heading--large": "_hero__heading--large_1xib4_127",
|
|
31
|
+
"hero__heading--small": "_hero__heading--small_1xib4_131",
|
|
34
32
|
hero__description,
|
|
35
33
|
hero__actions
|
|
36
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hero.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Hero.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, CSSProperties, ElementType, ReactElement, ReactNode } from 'react';
|
|
2
|
-
export type HeroHeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
|
|
2
|
+
export type HeroHeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3
|
+
export type HeroHeadingStyle = 'default' | 'large' | 'small';
|
|
3
4
|
export type HeroCommonImageProps = Omit<ComponentPropsWithRef<'img'>, 'ref'>;
|
|
4
5
|
export type HeroImageComponent = ElementType<HeroCommonImageProps>;
|
|
5
|
-
export interface HeroProps extends Omit<ComponentPropsWithRef<'
|
|
6
|
+
export interface HeroProps extends Omit<ComponentPropsWithRef<'section'>, 'children'> {
|
|
6
7
|
/**
|
|
7
8
|
* Optional label element displayed above the heading.
|
|
8
9
|
*/
|
|
@@ -10,15 +11,19 @@ export interface HeroProps extends Omit<ComponentPropsWithRef<'div'>, 'children'
|
|
|
10
11
|
/**
|
|
11
12
|
* Main hero heading.
|
|
12
13
|
*/
|
|
13
|
-
readonly heading:
|
|
14
|
+
readonly heading: ReactNode;
|
|
14
15
|
/**
|
|
15
16
|
* Supporting descriptive text.
|
|
16
17
|
*/
|
|
17
18
|
readonly description?: ReactNode;
|
|
18
19
|
/**
|
|
19
|
-
* Heading HTML level. Defaults to
|
|
20
|
+
* Heading HTML level (h1, h2, h3, h4, h5, h6). Defaults to h1.
|
|
20
21
|
*/
|
|
21
22
|
readonly headingLevel?: HeroHeadingLevel;
|
|
23
|
+
/**
|
|
24
|
+
* Heading text style (default, large or small). Default value is 'default'.
|
|
25
|
+
*/
|
|
26
|
+
readonly headingStyle?: HeroHeadingStyle;
|
|
22
27
|
/**
|
|
23
28
|
* Decorative image component to use as the Hero background.
|
|
24
29
|
*/
|
|
@@ -47,9 +52,5 @@ export interface HeroProps extends Omit<ComponentPropsWithRef<'div'>, 'children'
|
|
|
47
52
|
* Secondary call-to-action element.
|
|
48
53
|
*/
|
|
49
54
|
readonly secondaryCta?: ReactElement;
|
|
50
|
-
/**
|
|
51
|
-
* Allows passing a `data-testid` string for testing purposes.
|
|
52
|
-
*/
|
|
53
|
-
readonly 'data-testid'?: string;
|
|
54
55
|
}
|
|
55
56
|
//# sourceMappingURL=Hero.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hero.types.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,SAAS,EACZ,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Hero.types.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,SAAS,EACZ,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAC7D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;AAEnE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC;IACjF;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,oBAAoB,CAAC;IAC/C;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC5D;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;CACxC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const Hero_module = require("./Hero.module.css.cjs");
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
h4: Hero_module.default["hero__heading--sm"],
|
|
9
|
-
h5: Hero_module.default["hero__heading--xs"]
|
|
4
|
+
const headingClassByStyle = {
|
|
5
|
+
default: Hero_module.default["hero__heading--default"],
|
|
6
|
+
large: Hero_module.default["hero__heading--large"],
|
|
7
|
+
small: Hero_module.default["hero__heading--small"]
|
|
10
8
|
};
|
|
11
|
-
exports.
|
|
9
|
+
exports.headingClassByStyle = headingClassByStyle;
|
|
12
10
|
//# sourceMappingURL=Hero.utils.cjs.map
|