@dnanpm/ui-components 0.8.0 → 0.10.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 +13 -0
- package/dist/components/Accordion/Accordion.css +9 -2
- package/dist/components/AccordionItem/AccordionItem.cjs +4 -4
- package/dist/components/AccordionItem/AccordionItem.cjs.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.css +8 -2
- package/dist/components/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.js +2 -2
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/Avatar/Avatar.cjs +83 -0
- package/dist/components/Avatar/Avatar.cjs.map +1 -0
- package/dist/components/Avatar/Avatar.css +188 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.js +83 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/Avatar.module.css.cjs +40 -0
- package/dist/components/Avatar/Avatar.module.css.cjs.map +1 -0
- package/dist/components/Avatar/Avatar.module.css.js +40 -0
- package/dist/components/Avatar/Avatar.module.css.js.map +1 -0
- package/dist/components/Avatar/Avatar.types.d.ts +66 -0
- package/dist/components/Avatar/Avatar.types.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.utils.cjs +17 -0
- package/dist/components/Avatar/Avatar.utils.cjs.map +1 -0
- package/dist/components/Avatar/Avatar.utils.d.ts +6 -0
- package/dist/components/Avatar/Avatar.utils.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.utils.js +17 -0
- package/dist/components/Avatar/Avatar.utils.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +9 -12
- package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.css +20 -17
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -5
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +5 -8
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +5 -8
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js.map +1 -1
- package/dist/components/Button/Button.cjs +29 -3
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.css +76 -30
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +28 -2
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.module.css.cjs +19 -11
- package/dist/components/Button/Button.module.css.cjs.map +1 -1
- package/dist/components/Button/Button.module.css.js +19 -11
- package/dist/components/Button/Button.module.css.js.map +1 -1
- package/dist/components/Button/Button.types.d.ts +20 -3
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.cjs +19 -14
- package/dist/components/ButtonCard/ButtonCard.cjs.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.css +62 -20
- package/dist/components/ButtonCard/ButtonCard.d.ts +2 -1
- package/dist/components/ButtonCard/ButtonCard.d.ts.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.js +17 -12
- package/dist/components/ButtonCard/ButtonCard.js.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.module.css.cjs +14 -12
- package/dist/components/ButtonCard/ButtonCard.module.css.cjs.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.module.css.js +14 -12
- package/dist/components/ButtonCard/ButtonCard.module.css.js.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.types.d.ts +3 -2
- package/dist/components/ButtonCard/ButtonCard.types.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +105 -0
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.css +323 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +105 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.module.css.cjs +35 -0
- package/dist/components/Checkbox/Checkbox.module.css.cjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.module.css.js +35 -0
- package/dist/components/Checkbox/Checkbox.module.css.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +47 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/ContentCard/ContentCard.cjs +97 -0
- package/dist/components/ContentCard/ContentCard.cjs.map +1 -0
- package/dist/components/ContentCard/ContentCard.css +254 -0
- package/dist/components/ContentCard/ContentCard.d.ts +3 -0
- package/dist/components/ContentCard/ContentCard.d.ts.map +1 -0
- package/dist/components/ContentCard/ContentCard.js +97 -0
- package/dist/components/ContentCard/ContentCard.js.map +1 -0
- package/dist/components/ContentCard/ContentCard.module.css.cjs +24 -0
- package/dist/components/ContentCard/ContentCard.module.css.cjs.map +1 -0
- package/dist/components/ContentCard/ContentCard.module.css.js +25 -0
- package/dist/components/ContentCard/ContentCard.module.css.js.map +1 -0
- package/dist/components/ContentCard/ContentCard.types.d.ts +100 -0
- package/dist/components/ContentCard/ContentCard.types.d.ts.map +1 -0
- package/dist/components/ContentCard/index.d.ts +3 -0
- package/dist/components/ContentCard/index.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.cjs +15 -7
- package/dist/components/Drawer/Drawer.cjs.map +1 -1
- package/dist/components/Drawer/Drawer.css +47 -45
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.js +12 -4
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/Drawer/Drawer.module.css.cjs +16 -16
- package/dist/components/Drawer/Drawer.module.css.js +16 -16
- package/dist/components/Footer/Footer.cjs +8 -9
- package/dist/components/Footer/Footer.cjs.map +1 -1
- package/dist/components/Footer/Footer.css +91 -84
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/Footer.js +1 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.module.css.cjs +39 -39
- package/dist/components/Footer/Footer.module.css.js +39 -39
- package/dist/components/FunctionButton/FunctionButton.cjs +2 -2
- package/dist/components/FunctionButton/FunctionButton.cjs.map +1 -1
- package/dist/components/FunctionButton/FunctionButton.css +5 -2
- package/dist/components/FunctionButton/FunctionButton.js +1 -1
- package/dist/components/FunctionButton/FunctionButton.js.map +1 -1
- package/dist/components/Hero/Hero.cjs +30 -29
- package/dist/components/Hero/Hero.cjs.map +1 -1
- package/dist/components/Hero/Hero.css +86 -74
- 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 +30 -29
- package/dist/components/Hero/Hero.js.map +1 -1
- package/dist/components/Hero/Hero.module.css.cjs +20 -17
- package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
- package/dist/components/Hero/Hero.module.css.js +20 -17
- package/dist/components/Hero/Hero.module.css.js.map +1 -1
- package/dist/components/Hero/Hero.types.d.ts +2 -6
- package/dist/components/Hero/Hero.types.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.cjs +3 -4
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.css +5 -2
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +1 -2
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/Label/Label.css +5 -2
- package/dist/components/MainNavigation/MainNavigation.cjs +556 -191
- package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.css +297 -170
- package/dist/components/MainNavigation/MainNavigation.d.ts +1 -1
- package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.js +526 -161
- package/dist/components/MainNavigation/MainNavigation.js.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs +80 -68
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.module.css.js +80 -68
- package/dist/components/MainNavigation/MainNavigation.module.css.js.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.types.d.ts +55 -21
- package/dist/components/MainNavigation/MainNavigation.types.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.cjs +28 -4
- package/dist/components/MainNavigation/MainNavigation.utils.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts +11 -1
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.js +28 -4
- package/dist/components/MainNavigation/MainNavigation.utils.js.map +1 -1
- package/dist/components/MainNavigation/index.d.ts +1 -1
- package/dist/components/MainNavigation/index.d.ts.map +1 -1
- package/dist/components/Modal/Modal.cjs +14 -6
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.css +43 -40
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +12 -4
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/Modal.module.css.cjs +18 -18
- package/dist/components/Modal/Modal.module.css.js +18 -18
- package/dist/components/Notification/Notification.cjs +3 -2
- package/dist/components/Notification/Notification.cjs.map +1 -1
- package/dist/components/Notification/Notification.css +20 -12
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.js +2 -1
- package/dist/components/Notification/Notification.js.map +1 -1
- package/dist/components/Notification/Notification.module.css.cjs +9 -9
- package/dist/components/Notification/Notification.module.css.js +9 -9
- package/dist/components/Pagination/Pagination.cjs +142 -0
- package/dist/components/Pagination/Pagination.cjs.map +1 -0
- package/dist/components/Pagination/Pagination.css +256 -0
- package/dist/components/Pagination/Pagination.d.ts +3 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.js +142 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/Pagination.module.css.cjs +34 -0
- package/dist/components/Pagination/Pagination.module.css.cjs.map +1 -0
- package/dist/components/Pagination/Pagination.module.css.js +34 -0
- package/dist/components/Pagination/Pagination.module.css.js.map +1 -0
- package/dist/components/Pagination/Pagination.types.d.ts +20 -0
- package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.utils.cjs +76 -0
- package/dist/components/Pagination/Pagination.utils.cjs.map +1 -0
- package/dist/components/Pagination/Pagination.utils.d.ts +21 -0
- package/dist/components/Pagination/Pagination.utils.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.utils.js +76 -0
- package/dist/components/Pagination/Pagination.utils.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Pictograph/Pictograph.css +9 -2
- package/dist/components/Pictograph/PictographItem.css +9 -2
- package/dist/components/Quote/Quote.css +5 -2
- package/dist/components/Spinner/Spinner.css +9 -2
- package/dist/design-tokens/dist/tokens.cjs +5 -0
- package/dist/design-tokens/dist/tokens.cjs.map +1 -0
- package/dist/design-tokens/dist/tokens.js +5 -0
- package/dist/design-tokens/dist/tokens.js.map +1 -0
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/utilities.css +6 -0
- package/dist/styles/utils/elevation.css +34 -26
- package/dist/styles/utils/focus.css +63 -65
- package/dist/styles/utils/index.cjs +33 -0
- package/dist/styles/utils/index.cjs.map +1 -0
- package/dist/styles/utils/index.d.ts +20 -0
- package/dist/styles/utils/index.d.ts.map +1 -0
- package/dist/styles/utils/index.js +33 -0
- package/dist/styles/utils/index.js.map +1 -0
- package/dist/styles/utils/overlay.css +35 -28
- package/dist/styles/utils/text-decoration.css +19 -12
- package/dist/styles.css +46 -12
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/isRenderable/index.d.ts +2 -0
- package/dist/utils/isRenderable/index.d.ts.map +1 -0
- package/dist/utils/isRenderable/isRenderable.cjs +5 -0
- package/dist/utils/isRenderable/isRenderable.cjs.map +1 -0
- package/dist/utils/isRenderable/isRenderable.d.ts +4 -0
- package/dist/utils/isRenderable/isRenderable.d.ts.map +1 -0
- package/dist/utils/isRenderable/isRenderable.js +5 -0
- package/dist/utils/isRenderable/isRenderable.js.map +1 -0
- package/package.json +12 -4
- package/dist/styles/utils/elevation.module.css.cjs +0 -16
- package/dist/styles/utils/elevation.module.css.cjs.map +0 -1
- package/dist/styles/utils/elevation.module.css.js +0 -16
- package/dist/styles/utils/elevation.module.css.js.map +0 -1
- package/dist/styles/utils/focus.module.css.cjs +0 -16
- package/dist/styles/utils/focus.module.css.cjs.map +0 -1
- package/dist/styles/utils/focus.module.css.js +0 -16
- package/dist/styles/utils/focus.module.css.js.map +0 -1
- package/dist/styles/utils/overlay.module.css.cjs +0 -13
- package/dist/styles/utils/overlay.module.css.cjs.map +0 -1
- package/dist/styles/utils/overlay.module.css.js +0 -13
- package/dist/styles/utils/overlay.module.css.js.map +0 -1
- package/dist/styles/utils/text-decoration.module.css.cjs +0 -13
- package/dist/styles/utils/text-decoration.module.css.cjs.map +0 -1
- package/dist/styles/utils/text-decoration.module.css.js +0 -13
- package/dist/styles/utils/text-decoration.module.css.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer dds-components {.
|
|
1
|
+
@layer dds-base, dds-components;@layer dds-components { @layer fallback, components; }@layer dds-components.components{._hero_fgniv_1 {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -6,9 +6,14 @@
|
|
|
6
6
|
padding-top: var(--spacing-space-40);
|
|
7
7
|
container-name: hero;
|
|
8
8
|
container-type: inline-size;
|
|
9
|
+
|
|
10
|
+
/* Shared content-column geometry; the logo derives its position from these. */
|
|
11
|
+
--_hero-content-pad-start: var(--spacing-space-20);
|
|
12
|
+
--_hero-content-pad-end: var(--spacing-space-20);
|
|
13
|
+
--_hero-card-fraction: 1;
|
|
9
14
|
}
|
|
10
15
|
|
|
11
|
-
.
|
|
16
|
+
._hero__background_fgniv_16 {
|
|
12
17
|
position: absolute;
|
|
13
18
|
inset-inline: 0;
|
|
14
19
|
top: 0;
|
|
@@ -17,21 +22,21 @@
|
|
|
17
22
|
overflow: clip;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
|
-
.
|
|
25
|
+
._hero__backgroundImageComponent_fgniv_25 {
|
|
21
26
|
width: 100%;
|
|
22
27
|
height: 100%;
|
|
23
28
|
}
|
|
24
29
|
|
|
25
|
-
.
|
|
30
|
+
._hero__backgroundImageComponent_fgniv_25 > * {
|
|
26
31
|
width: 100%;
|
|
27
32
|
height: 100%;
|
|
28
33
|
}
|
|
29
34
|
|
|
30
|
-
.
|
|
31
|
-
.
|
|
32
|
-
.
|
|
33
|
-
.
|
|
34
|
-
.
|
|
35
|
+
._hero__backgroundImageComponent_fgniv_25 img,
|
|
36
|
+
._hero__backgroundImageComponent_fgniv_25 picture,
|
|
37
|
+
._hero__backgroundImageComponent_fgniv_25 video,
|
|
38
|
+
._hero__backgroundImageComponent_fgniv_25 canvas,
|
|
39
|
+
._hero__backgroundImageComponent_fgniv_25 svg {
|
|
35
40
|
display: block;
|
|
36
41
|
width: 100%;
|
|
37
42
|
height: 100%;
|
|
@@ -39,24 +44,35 @@
|
|
|
39
44
|
object-position: right center;
|
|
40
45
|
}
|
|
41
46
|
|
|
42
|
-
.
|
|
47
|
+
._hero__logoImageWrap_fgniv_47 {
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset: 0;
|
|
50
|
+
max-width: var(--layout-semantic-container-wide);
|
|
51
|
+
margin-inline: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
._hero__logoImage_fgniv_47 {
|
|
43
55
|
position: absolute;
|
|
56
|
+
/* Insets bound the available area; padding provides the safety margins to those edges. */
|
|
44
57
|
top: 0;
|
|
45
|
-
left: 0;
|
|
46
58
|
right: 0;
|
|
59
|
+
bottom: var(--spacing-space-40);
|
|
60
|
+
left: 0;
|
|
47
61
|
display: flex;
|
|
48
62
|
align-items: center;
|
|
49
63
|
justify-content: center;
|
|
50
|
-
|
|
51
|
-
|
|
64
|
+
max-width: 500px;
|
|
65
|
+
margin-inline: auto;
|
|
66
|
+
padding: var(--spacing-space-32) var(--spacing-space-40) var(--spacing-space-20);
|
|
52
67
|
}
|
|
53
68
|
|
|
54
|
-
.
|
|
55
|
-
|
|
56
|
-
max-height:
|
|
69
|
+
._hero__logoImage_fgniv_47 > * {
|
|
70
|
+
max-width: 100%;
|
|
71
|
+
max-height: 100%;
|
|
72
|
+
object-fit: contain;
|
|
57
73
|
}
|
|
58
74
|
|
|
59
|
-
.
|
|
75
|
+
._hero__overlay_fgniv_75 {
|
|
60
76
|
position: absolute;
|
|
61
77
|
inset-inline: 0;
|
|
62
78
|
bottom: 0;
|
|
@@ -68,86 +84,87 @@
|
|
|
68
84
|
);
|
|
69
85
|
}
|
|
70
86
|
|
|
71
|
-
.
|
|
87
|
+
._hero__content_fgniv_87 {
|
|
72
88
|
position: relative;
|
|
73
89
|
z-index: 1;
|
|
74
90
|
display: flex;
|
|
75
91
|
flex-direction: column;
|
|
76
92
|
align-items: stretch;
|
|
77
93
|
justify-content: flex-start;
|
|
78
|
-
max-width:
|
|
94
|
+
max-width: var(--layout-semantic-container-wide);
|
|
79
95
|
gap: 0;
|
|
80
96
|
width: 100%;
|
|
81
97
|
margin-inline: auto;
|
|
82
98
|
padding-top: 200px;
|
|
83
|
-
padding-inline: var(--
|
|
99
|
+
padding-inline: var(--_hero-content-pad-start) var(--_hero-content-pad-end);
|
|
84
100
|
}
|
|
85
101
|
|
|
86
|
-
.
|
|
102
|
+
._hero__card_fgniv_102 {
|
|
87
103
|
min-width: 0;
|
|
88
|
-
width: 100
|
|
104
|
+
width: calc(var(--_hero-card-fraction) * 100%);
|
|
105
|
+
color: var(--color-semantic-foreground-default);
|
|
89
106
|
background-color: var(--color-semantic-surface-base);
|
|
90
107
|
border: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-base);
|
|
91
108
|
border-radius: var(--radius-semantic-md);
|
|
92
109
|
padding: var(--spacing-space-20);
|
|
93
110
|
}
|
|
94
111
|
|
|
95
|
-
.
|
|
112
|
+
._hero__main_fgniv_112 {
|
|
96
113
|
display: flex;
|
|
97
114
|
flex-direction: column;
|
|
98
115
|
gap: var(--spacing-space-40);
|
|
99
116
|
}
|
|
100
117
|
|
|
101
|
-
.
|
|
118
|
+
._hero__text_fgniv_118 {
|
|
102
119
|
display: flex;
|
|
103
120
|
flex-direction: column;
|
|
104
121
|
gap: var(--spacing-space-20);
|
|
105
122
|
}
|
|
106
123
|
|
|
107
|
-
.
|
|
124
|
+
._hero__header_fgniv_124 {
|
|
108
125
|
display: flex;
|
|
109
126
|
flex-direction: column;
|
|
110
127
|
gap: var(--spacing-space-8);
|
|
111
128
|
}
|
|
112
129
|
|
|
113
|
-
.
|
|
130
|
+
._hero__label_fgniv_130 {
|
|
114
131
|
align-self: flex-start;
|
|
115
132
|
}
|
|
116
133
|
|
|
117
|
-
.
|
|
134
|
+
._hero__heading_fgniv_134 {
|
|
118
135
|
margin: 0;
|
|
119
136
|
color: var(--color-semantic-foreground-default);
|
|
120
137
|
text-wrap: balance;
|
|
121
138
|
}
|
|
122
139
|
|
|
123
|
-
._hero__heading--
|
|
140
|
+
._hero__heading--default_fgniv_140 {
|
|
124
141
|
font: var(--typography-heading-lg);
|
|
125
142
|
}
|
|
126
143
|
|
|
127
|
-
._hero__heading--
|
|
144
|
+
._hero__heading--large_fgniv_144 {
|
|
128
145
|
font: var(--typography-heading-xl);
|
|
129
146
|
}
|
|
130
147
|
|
|
131
|
-
._hero__heading--
|
|
148
|
+
._hero__heading--small_fgniv_148 {
|
|
132
149
|
font: var(--typography-heading-md);
|
|
133
150
|
}
|
|
134
151
|
|
|
135
|
-
.
|
|
152
|
+
._hero__description_fgniv_152 {
|
|
136
153
|
margin: 0;
|
|
137
154
|
color: var(--color-semantic-foreground-default);
|
|
138
155
|
font: var(--typography-body-md);
|
|
139
156
|
text-wrap: pretty;
|
|
140
157
|
}
|
|
141
158
|
|
|
142
|
-
.
|
|
159
|
+
._hero__description_fgniv_152 p {
|
|
143
160
|
margin: 0;
|
|
144
161
|
}
|
|
145
162
|
|
|
146
|
-
.
|
|
163
|
+
._hero__description_fgniv_152 p + p {
|
|
147
164
|
margin-top: var(--spacing-space-12);
|
|
148
165
|
}
|
|
149
166
|
|
|
150
|
-
.
|
|
167
|
+
._hero__actions_fgniv_167 {
|
|
151
168
|
display: flex;
|
|
152
169
|
flex-direction: row;
|
|
153
170
|
align-items: flex-start;
|
|
@@ -156,83 +173,78 @@
|
|
|
156
173
|
}
|
|
157
174
|
|
|
158
175
|
@container hero (min-width: 768px) {
|
|
159
|
-
.
|
|
160
|
-
|
|
176
|
+
._hero__content_fgniv_87,
|
|
177
|
+
._hero__background_fgniv_16 {
|
|
178
|
+
--_hero-content-pad-start: var(--spacing-space-40);
|
|
179
|
+
--_hero-content-pad-end: var(--spacing-space-40);
|
|
180
|
+
--_hero-card-fraction: 0.5;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
._hero__background_fgniv_16 {
|
|
184
|
+
height: auto;
|
|
185
|
+
bottom: var(--spacing-space-40);
|
|
161
186
|
}
|
|
162
187
|
|
|
163
|
-
.
|
|
188
|
+
._hero__content_fgniv_87 {
|
|
164
189
|
flex-direction: row;
|
|
165
190
|
align-items: flex-end;
|
|
166
191
|
min-height: 460px;
|
|
167
192
|
gap: var(--spacing-space-40);
|
|
168
193
|
padding-top: 0;
|
|
169
|
-
padding-inline: var(--spacing-space-40);
|
|
170
194
|
}
|
|
171
195
|
|
|
172
|
-
.
|
|
173
|
-
width: 50%;
|
|
196
|
+
._hero__card_fgniv_102 {
|
|
174
197
|
max-width: 650px;
|
|
175
198
|
}
|
|
176
199
|
|
|
177
|
-
.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
margin-top: calc(-1 * var(--spacing-space-40));
|
|
186
|
-
padding-inline: 0;
|
|
187
|
-
padding-top: 0;
|
|
188
|
-
padding-bottom: 0;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
._hero__logoImage_1xib4_42 > * {
|
|
192
|
-
width: auto;
|
|
193
|
-
max-width: 90%;
|
|
194
|
-
max-height: 100%;
|
|
200
|
+
._hero__logoImage_fgniv_47 {
|
|
201
|
+
bottom: 0;
|
|
202
|
+
padding: var(--spacing-space-40);
|
|
203
|
+
/* Inner edge sits at the card's right edge: pad-start + card-fraction of the content box. */
|
|
204
|
+
left: calc(
|
|
205
|
+
var(--_hero-content-pad-start) + var(--_hero-card-fraction) *
|
|
206
|
+
(100% - var(--_hero-content-pad-start) - var(--_hero-content-pad-end))
|
|
207
|
+
);
|
|
195
208
|
}
|
|
196
209
|
}
|
|
197
210
|
|
|
198
211
|
@container hero (min-width: 1024px) {
|
|
199
|
-
.
|
|
200
|
-
|
|
212
|
+
._hero__content_fgniv_87,
|
|
213
|
+
._hero__background_fgniv_16 {
|
|
214
|
+
--_hero-content-pad-start: var(--spacing-space-80);
|
|
215
|
+
--_hero-content-pad-end: var(--spacing-space-40);
|
|
216
|
+
--_hero-card-fraction: 0.6;
|
|
201
217
|
}
|
|
202
218
|
|
|
203
|
-
.
|
|
219
|
+
._hero__content_fgniv_87 {
|
|
204
220
|
min-height: 440px;
|
|
205
|
-
padding-left: var(--spacing-space-80);
|
|
206
|
-
padding-right: var(--spacing-space-40);
|
|
207
221
|
}
|
|
208
222
|
|
|
209
|
-
.
|
|
210
|
-
width: 60%;
|
|
223
|
+
._hero__card_fgniv_102 {
|
|
211
224
|
max-width: initial;
|
|
212
225
|
padding: var(--spacing-space-40);
|
|
213
226
|
}
|
|
214
|
-
|
|
215
|
-
._hero__logoImage_1xib4_42 {
|
|
216
|
-
max-height: 440px;
|
|
217
|
-
}
|
|
218
227
|
}
|
|
219
228
|
|
|
220
229
|
@media (forced-colors: active) {
|
|
221
|
-
.
|
|
230
|
+
._hero__overlay_fgniv_75 {
|
|
222
231
|
display: none;
|
|
223
232
|
}
|
|
224
233
|
|
|
225
|
-
.
|
|
234
|
+
._hero__background_fgniv_16 {
|
|
226
235
|
background-color: Canvas;
|
|
227
236
|
}
|
|
228
237
|
|
|
229
|
-
.
|
|
238
|
+
._hero__card_fgniv_102 {
|
|
230
239
|
border: var(--borderwidth-semantic-xs) solid CanvasText;
|
|
231
240
|
box-shadow: none;
|
|
232
241
|
}
|
|
233
242
|
|
|
234
|
-
.
|
|
243
|
+
._hero__logoImageWrap_fgniv_47 {
|
|
235
244
|
display: none;
|
|
236
245
|
}
|
|
237
246
|
}
|
|
238
|
-
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Do not edit directly, this file was auto-generated.
|
|
250
|
+
*/ }
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HeroProps } from './Hero.types';
|
|
2
|
-
export declare const Hero: ({ label, heading, description, headingLevel, headingStyle, Image, imageProps, LogoImage, logoImageProps, backgroundColor,
|
|
2
|
+
export declare const Hero: ({ label, heading, description, headingLevel, headingStyle, Image, imageProps, LogoImage, logoImageProps, backgroundColor, actions, 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,+JAelB,SAAS,4CAqEX,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
import elevationStyles from "../../styles/utils/
|
|
3
|
+
import { elevationStyles } from "../../styles/utils/index.js";
|
|
4
4
|
import styles from "./Hero.module.css.js";
|
|
5
5
|
import { headingClassByStyle } from "./Hero.utils.js";
|
|
6
6
|
import { cn } from "../../utils/cn/cn.js";
|
|
@@ -15,8 +15,7 @@ const Hero = ({
|
|
|
15
15
|
LogoImage,
|
|
16
16
|
logoImageProps,
|
|
17
17
|
backgroundColor,
|
|
18
|
-
|
|
19
|
-
secondaryCta,
|
|
18
|
+
actions,
|
|
20
19
|
className,
|
|
21
20
|
ref,
|
|
22
21
|
...props
|
|
@@ -27,7 +26,7 @@ const Hero = ({
|
|
|
27
26
|
const image = ResolvedImage != null ? /* @__PURE__ */ jsx(ResolvedImage, { ...imageProps }) : void 0;
|
|
28
27
|
const logoImage = ResolvedLogoImage != null ? /* @__PURE__ */ jsx(ResolvedLogoImage, { ...logoImageProps }) : void 0;
|
|
29
28
|
const HeadingLevel = headingLevel;
|
|
30
|
-
const hasActions =
|
|
29
|
+
const hasActions = actions != null && typeof actions !== "boolean";
|
|
31
30
|
const backgroundStyle = image == null && backgroundColor != null ? { backgroundColor } : void 0;
|
|
32
31
|
const ariaLabelledBy = props["aria-label"] ? void 0 : props["aria-labelledby"] || headingId;
|
|
33
32
|
return /* @__PURE__ */ jsxs(
|
|
@@ -41,34 +40,36 @@ const Hero = ({
|
|
|
41
40
|
children: [
|
|
42
41
|
/* @__PURE__ */ jsxs("div", { className: styles.hero__background, style: backgroundStyle, children: [
|
|
43
42
|
image != null && /* @__PURE__ */ jsx("div", { className: styles.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
|
|
44
|
-
/* @__PURE__ */ jsx("div", { className: styles.hero__overlay, "aria-hidden": "true" })
|
|
43
|
+
/* @__PURE__ */ jsx("div", { className: styles.hero__overlay, "aria-hidden": "true" }),
|
|
44
|
+
logoImage != null && /* @__PURE__ */ jsx("div", { className: styles.hero__logoImageWrap, "aria-hidden": "true", children: /* @__PURE__ */ jsx("div", { className: styles.hero__logoImage, children: logoImage }) })
|
|
45
45
|
] }),
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
/* @__PURE__ */ jsx("div", { className: styles.hero__content, children: /* @__PURE__ */ jsx(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: cn(styles.hero__card, elevationStyles.elevationHigh),
|
|
50
|
+
"data-color-scheme": "light",
|
|
51
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles.hero__main, children: [
|
|
52
|
+
/* @__PURE__ */ jsxs("div", { className: styles.hero__text, children: [
|
|
53
|
+
/* @__PURE__ */ jsxs("div", { className: styles.hero__header, children: [
|
|
54
|
+
label != null && /* @__PURE__ */ jsx("div", { className: styles.hero__label, children: label }),
|
|
55
|
+
/* @__PURE__ */ jsx(
|
|
56
|
+
HeadingLevel,
|
|
57
|
+
{
|
|
58
|
+
id: headingId,
|
|
59
|
+
className: cn(
|
|
60
|
+
styles.hero__heading,
|
|
61
|
+
headingClassByStyle[headingStyle]
|
|
62
|
+
),
|
|
63
|
+
children: heading
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }),
|
|
67
|
+
description != null && /* @__PURE__ */ jsx("div", { className: cn(styles.hero__description, "dds-prose"), children: description })
|
|
62
68
|
] }),
|
|
63
|
-
|
|
64
|
-
] }),
|
|
65
|
-
hasActions && /* @__PURE__ */ jsxs("div", { className: styles.hero__actions, children: [
|
|
66
|
-
primaryCta != null && primaryCta,
|
|
67
|
-
secondaryCta != null && secondaryCta
|
|
69
|
+
hasActions && /* @__PURE__ */ jsx("div", { className: styles.hero__actions, children: actions })
|
|
68
70
|
] })
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
] })
|
|
71
|
+
}
|
|
72
|
+
) })
|
|
72
73
|
]
|
|
73
74
|
}
|
|
74
75
|
);
|
|
@@ -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
|
|
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';\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 actions,\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 = actions != null && typeof actions !== 'boolean';\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 {logoImage != null && (\n <div className={styles.hero__logoImageWrap} aria-hidden=\"true\">\n <div className={styles.hero__logoImage}>{logoImage}</div>\n </div>\n )}\n </div>\n\n <div className={styles.hero__content}>\n <div\n className={cn(styles.hero__card, elevationStyles.elevationHigh)}\n data-color-scheme=\"light\"\n >\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 && <div className={styles.hero__actions}>{actions}</div>}\n </div>\n </div>\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;AA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nB,UAAA;AAAA,cAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,YACnB,UAAA;AAAA,gBAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,cAClB,UAAA;AAAA,kBAAA,SAAS,QAAQ,oBAAC,OAAA,EAAI,WAAW,OAAO,aAAc,UAAA,OAAM;AAAA,kBAC7D;AAAA,oBAAC;AAAA,oBAAA;AAAA,sBACG,IAAI;AAAA,sBACJ,WAAW;AAAA,wBACP,OAAO;AAAA,wBACP,oBAAoB,YAAY;AAAA,sBAAA;AAAA,sBAGnC,UAAA;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBACL,GACJ;AAAA,gBACC,eAAe,QACZ,oBAAC,OAAA,EAAI,WAAW,GAAG,OAAO,mBAAmB,WAAW,GACnD,UAAA,YAAA,CACL;AAAA,cAAA,GAER;AAAA,cAEC,cAAc,oBAAC,OAAA,EAAI,WAAW,OAAO,eAAgB,UAAA,QAAA,CAAQ;AAAA,YAAA,EAAA,CAClE;AAAA,UAAA;AAAA,QAAA,EACJ,CACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,24 +1,26 @@
|
|
|
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
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
4
|
+
const hero = "_hero_fgniv_1";
|
|
5
|
+
const hero__background = "_hero__background_fgniv_16";
|
|
6
|
+
const hero__backgroundImageComponent = "_hero__backgroundImageComponent_fgniv_25";
|
|
7
|
+
const hero__logoImageWrap = "_hero__logoImageWrap_fgniv_47";
|
|
8
|
+
const hero__logoImage = "_hero__logoImage_fgniv_47";
|
|
9
|
+
const hero__overlay = "_hero__overlay_fgniv_75";
|
|
10
|
+
const hero__content = "_hero__content_fgniv_87";
|
|
11
|
+
const hero__card = "_hero__card_fgniv_102";
|
|
12
|
+
const hero__main = "_hero__main_fgniv_112";
|
|
13
|
+
const hero__text = "_hero__text_fgniv_118";
|
|
14
|
+
const hero__header = "_hero__header_fgniv_124";
|
|
15
|
+
const hero__label = "_hero__label_fgniv_130";
|
|
16
|
+
const hero__heading = "_hero__heading_fgniv_134";
|
|
17
|
+
const hero__description = "_hero__description_fgniv_152";
|
|
18
|
+
const hero__actions = "_hero__actions_fgniv_167";
|
|
18
19
|
const styles = {
|
|
19
20
|
hero,
|
|
20
21
|
hero__background,
|
|
21
22
|
hero__backgroundImageComponent,
|
|
23
|
+
hero__logoImageWrap,
|
|
22
24
|
hero__logoImage,
|
|
23
25
|
hero__overlay,
|
|
24
26
|
hero__content,
|
|
@@ -28,9 +30,9 @@ const styles = {
|
|
|
28
30
|
hero__header,
|
|
29
31
|
hero__label,
|
|
30
32
|
hero__heading,
|
|
31
|
-
"hero__heading--default": "_hero__heading--
|
|
32
|
-
"hero__heading--large": "_hero__heading--
|
|
33
|
-
"hero__heading--small": "_hero__heading--
|
|
33
|
+
"hero__heading--default": "_hero__heading--default_fgniv_140",
|
|
34
|
+
"hero__heading--large": "_hero__heading--large_fgniv_144",
|
|
35
|
+
"hero__heading--small": "_hero__heading--small_fgniv_148",
|
|
34
36
|
hero__description,
|
|
35
37
|
hero__actions
|
|
36
38
|
};
|
|
@@ -46,6 +48,7 @@ exports.hero__header = hero__header;
|
|
|
46
48
|
exports.hero__heading = hero__heading;
|
|
47
49
|
exports.hero__label = hero__label;
|
|
48
50
|
exports.hero__logoImage = hero__logoImage;
|
|
51
|
+
exports.hero__logoImageWrap = hero__logoImageWrap;
|
|
49
52
|
exports.hero__main = hero__main;
|
|
50
53
|
exports.hero__overlay = hero__overlay;
|
|
51
54
|
exports.hero__text = hero__text;
|
|
@@ -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,22 +1,24 @@
|
|
|
1
1
|
import './Hero.css';
|
|
2
|
-
const hero = "
|
|
3
|
-
const hero__background = "
|
|
4
|
-
const hero__backgroundImageComponent = "
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
2
|
+
const hero = "_hero_fgniv_1";
|
|
3
|
+
const hero__background = "_hero__background_fgniv_16";
|
|
4
|
+
const hero__backgroundImageComponent = "_hero__backgroundImageComponent_fgniv_25";
|
|
5
|
+
const hero__logoImageWrap = "_hero__logoImageWrap_fgniv_47";
|
|
6
|
+
const hero__logoImage = "_hero__logoImage_fgniv_47";
|
|
7
|
+
const hero__overlay = "_hero__overlay_fgniv_75";
|
|
8
|
+
const hero__content = "_hero__content_fgniv_87";
|
|
9
|
+
const hero__card = "_hero__card_fgniv_102";
|
|
10
|
+
const hero__main = "_hero__main_fgniv_112";
|
|
11
|
+
const hero__text = "_hero__text_fgniv_118";
|
|
12
|
+
const hero__header = "_hero__header_fgniv_124";
|
|
13
|
+
const hero__label = "_hero__label_fgniv_130";
|
|
14
|
+
const hero__heading = "_hero__heading_fgniv_134";
|
|
15
|
+
const hero__description = "_hero__description_fgniv_152";
|
|
16
|
+
const hero__actions = "_hero__actions_fgniv_167";
|
|
16
17
|
const styles = {
|
|
17
18
|
hero,
|
|
18
19
|
hero__background,
|
|
19
20
|
hero__backgroundImageComponent,
|
|
21
|
+
hero__logoImageWrap,
|
|
20
22
|
hero__logoImage,
|
|
21
23
|
hero__overlay,
|
|
22
24
|
hero__content,
|
|
@@ -26,9 +28,9 @@ const styles = {
|
|
|
26
28
|
hero__header,
|
|
27
29
|
hero__label,
|
|
28
30
|
hero__heading,
|
|
29
|
-
"hero__heading--default": "_hero__heading--
|
|
30
|
-
"hero__heading--large": "_hero__heading--
|
|
31
|
-
"hero__heading--small": "_hero__heading--
|
|
31
|
+
"hero__heading--default": "_hero__heading--default_fgniv_140",
|
|
32
|
+
"hero__heading--large": "_hero__heading--large_fgniv_144",
|
|
33
|
+
"hero__heading--small": "_hero__heading--small_fgniv_148",
|
|
32
34
|
hero__description,
|
|
33
35
|
hero__actions
|
|
34
36
|
};
|
|
@@ -45,6 +47,7 @@ export {
|
|
|
45
47
|
hero__heading,
|
|
46
48
|
hero__label,
|
|
47
49
|
hero__logoImage,
|
|
50
|
+
hero__logoImageWrap,
|
|
48
51
|
hero__main,
|
|
49
52
|
hero__overlay,
|
|
50
53
|
hero__text
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -45,12 +45,8 @@ export interface HeroProps extends Omit<ComponentPropsWithRef<'section'>, 'child
|
|
|
45
45
|
*/
|
|
46
46
|
readonly backgroundColor?: CSSProperties['backgroundColor'];
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Optional actions. Pass one or more Button, IconButton, or other accessible controls.
|
|
49
49
|
*/
|
|
50
|
-
readonly
|
|
51
|
-
/**
|
|
52
|
-
* Secondary call-to-action element.
|
|
53
|
-
*/
|
|
54
|
-
readonly secondaryCta?: ReactElement;
|
|
50
|
+
readonly actions?: ReactNode;
|
|
55
51
|
}
|
|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AkB,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,OAAO,CAAC,EAAE,SAAS,CAAC;CAChC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const
|
|
5
|
-
const textDecoration_module = require("../../styles/utils/text-decoration.module.css.cjs");
|
|
4
|
+
const index = require("../../styles/utils/index.cjs");
|
|
6
5
|
const IconButton_module = require("./IconButton.module.css.cjs");
|
|
7
6
|
const cn = require("../../utils/cn/cn.cjs");
|
|
8
7
|
const Spinner = require("../Spinner/Spinner.cjs");
|
|
@@ -23,7 +22,7 @@ const IconButton = ({
|
|
|
23
22
|
const classes = cn.cn(
|
|
24
23
|
IconButton_module["icon-button"],
|
|
25
24
|
IconButton_module[`icon-button--${size}`],
|
|
26
|
-
|
|
25
|
+
index.focusStyles.focusable,
|
|
27
26
|
{ [IconButton_module["icon-button--disabled"]]: isDisabled },
|
|
28
27
|
{ [IconButton_module["icon-button--loading"]]: loading },
|
|
29
28
|
{ [IconButton_module["icon-button--link-coloring"]]: linkColoring },
|
|
@@ -44,7 +43,7 @@ const IconButton = ({
|
|
|
44
43
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
45
44
|
"span",
|
|
46
45
|
{
|
|
47
|
-
className: cn.cn(IconButton_module["icon-button__label"],
|
|
46
|
+
className: cn.cn(IconButton_module["icon-button__label"], index.textDecorationStyles.underlineLink, {
|
|
48
47
|
[IconButton_module["icon-button__label--wrap"]]: labelBehavior === "wrap"
|
|
49
48
|
}),
|
|
50
49
|
children
|