@dnanpm/ui-components 0.3.0 → 0.4.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.
Files changed (32) hide show
  1. package/dist/components/Hero/Hero.cjs +74 -0
  2. package/dist/components/Hero/Hero.cjs.map +1 -0
  3. package/dist/components/Hero/Hero.css +245 -0
  4. package/dist/components/Hero/Hero.d.ts +3 -0
  5. package/dist/components/Hero/Hero.d.ts.map +1 -0
  6. package/dist/components/Hero/Hero.js +74 -0
  7. package/dist/components/Hero/Hero.js.map +1 -0
  8. package/dist/components/Hero/Hero.module.css.cjs +54 -0
  9. package/dist/components/Hero/Hero.module.css.cjs.map +1 -0
  10. package/dist/components/Hero/Hero.module.css.js +54 -0
  11. package/dist/components/Hero/Hero.module.css.js.map +1 -0
  12. package/dist/components/Hero/Hero.types.d.ts +55 -0
  13. package/dist/components/Hero/Hero.types.d.ts.map +1 -0
  14. package/dist/components/Hero/Hero.utils.cjs +12 -0
  15. package/dist/components/Hero/Hero.utils.cjs.map +1 -0
  16. package/dist/components/Hero/Hero.utils.d.ts +3 -0
  17. package/dist/components/Hero/Hero.utils.d.ts.map +1 -0
  18. package/dist/components/Hero/Hero.utils.js +12 -0
  19. package/dist/components/Hero/Hero.utils.js.map +1 -0
  20. package/dist/components/Hero/index.d.ts +3 -0
  21. package/dist/components/Hero/index.d.ts.map +1 -0
  22. package/dist/index.cjs +2 -0
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.ts +2 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +2 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/styles/utils/elevation.module.css.cjs +4 -1
  29. package/dist/styles/utils/elevation.module.css.cjs.map +1 -1
  30. package/dist/styles/utils/elevation.module.css.js +4 -1
  31. package/dist/styles/utils/elevation.module.css.js.map +1 -1
  32. package/package.json +1 -1
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const react = require("react");
5
+ const elevation_module = require("../../styles/utils/elevation.module.css.cjs");
6
+ const Hero_module = require("./Hero.module.css.cjs");
7
+ const Hero_utils = require("./Hero.utils.cjs");
8
+ const cn = require("../../utils/cn/cn.cjs");
9
+ const Hero = ({
10
+ label,
11
+ heading,
12
+ description,
13
+ headingLevel = "h1",
14
+ Image,
15
+ imageProps,
16
+ LogoImage,
17
+ logoImageProps,
18
+ backgroundColor,
19
+ primaryCta,
20
+ secondaryCta,
21
+ className,
22
+ ref,
23
+ ...props
24
+ }) => {
25
+ const headingId = react.useId();
26
+ const ResolvedImage = Image ?? (imageProps != null ? "img" : void 0);
27
+ const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? "img" : void 0);
28
+ const image = ResolvedImage != null ? /* @__PURE__ */ jsxRuntime.jsx(ResolvedImage, { ...imageProps }) : void 0;
29
+ const logoImage = ResolvedLogoImage != null ? /* @__PURE__ */ jsxRuntime.jsx(ResolvedLogoImage, { ...logoImageProps }) : void 0;
30
+ const hasActions = primaryCta != null || secondaryCta != null;
31
+ const backgroundStyle = image == null && backgroundColor != null ? { backgroundColor } : void 0;
32
+ const HeadingLevel = headingLevel;
33
+ return /* @__PURE__ */ jsxRuntime.jsxs(
34
+ "div",
35
+ {
36
+ ref,
37
+ ...props,
38
+ className: cn.cn(Hero_module.default.hero, className),
39
+ "data-testid": props["data-testid"],
40
+ children: [
41
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__background, style: backgroundStyle, children: [
42
+ image != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
43
+ logoImage != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__logoImage, "aria-hidden": "true", children: logoImage }),
44
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__overlay, "aria-hidden": "true" })
45
+ ] }),
46
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__content, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__card, elevation_module.default.elevationExtraHigh), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__main, children: [
47
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__text, children: [
48
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__header, children: [
49
+ label != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__label, children: label }),
50
+ /* @__PURE__ */ jsxRuntime.jsx(
51
+ HeadingLevel,
52
+ {
53
+ id: headingId,
54
+ className: cn.cn(
55
+ Hero_module.default.hero__heading,
56
+ Hero_utils.headingClassByLevel[headingLevel]
57
+ ),
58
+ children: heading
59
+ }
60
+ )
61
+ ] }),
62
+ description != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__description, "dds-prose"), children: description })
63
+ ] }),
64
+ hasActions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__actions, children: [
65
+ primaryCta != null && primaryCta,
66
+ secondaryCta != null && secondaryCta
67
+ ] })
68
+ ] }) }) })
69
+ ]
70
+ }
71
+ );
72
+ };
73
+ exports.Hero = Hero;
74
+ //# sourceMappingURL=Hero.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.cjs","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 { headingClassByLevel } from './Hero.utils';\n\nexport const Hero = ({\n label,\n heading,\n description,\n headingLevel = 'h1',\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\n const hasActions = primaryCta != null || secondaryCta != null;\n const backgroundStyle =\n image == null && backgroundColor != null ? { backgroundColor } : undefined;\n const HeadingLevel = headingLevel;\n\n return (\n <div\n ref={ref}\n {...props}\n className={cn(styles.hero, className)}\n data-testid={props['data-testid']}\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 {logoImage != null && (\n <div className={styles.hero__logoImage} aria-hidden=\"true\">\n {logoImage}\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.elevationExtraHigh)}>\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 headingClassByLevel[headingLevel],\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 </div>\n </div>\n );\n};\n"],"names":["useId","jsxs","cn","styles","jsx","elevationStyles","headingClassByLevel"],"mappings":";;;;;;;;AAOO,MAAM,OAAO,CAAC;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EAC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AAO,YACnB,UAAA;AAAA,YAAAF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,cAClB,UAAA;AAAA,cAAA,SAAS,QAAQC,2BAAAA,IAAC,OAAA,EAAI,WAAWD,YAAAA,QAAO,aAAc,UAAA,OAAM;AAAA,cAC7DC,2BAAAA;AAAAA,gBAAC;AAAA,gBAAA;AAAA,kBACG,IAAI;AAAA,kBACJ,WAAWF,GAAAA;AAAAA,oBACPC,YAAAA,QAAO;AAAA,oBACPG,WAAAA,oBAAoB,YAAY;AAAA,kBAAA;AAAA,kBAGnC,UAAA;AAAA,gBAAA;AAAA,cAAA;AAAA,YACL,GACJ;AAAA,YACC,eAAe,QACZF,+BAAC,OAAA,EAAI,WAAWF,MAAGC,YAAAA,QAAO,mBAAmB,WAAW,GACnD,UAAA,YAAA,CACL;AAAA,UAAA,GAER;AAAA,UAEC,cACGF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,eAClB,UAAA;AAAA,YAAA,cAAc,QAAQ;AAAA,YACtB,gBAAgB,QAAQ;AAAA,UAAA,EAAA,CAC7B;AAAA,QAAA,EAAA,CAER,GACJ,EAAA,CACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;;"}
@@ -0,0 +1,245 @@
1
+ @layer dds-components {._hero_905ff_1 {
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ padding-top: var(--spacing-ui-xxxl);
7
+ container-name: hero;
8
+ container-type: inline-size;
9
+ }
10
+
11
+ ._hero__background_905ff_11 {
12
+ position: absolute;
13
+ inset-inline: 0;
14
+ top: 0;
15
+ height: 440px;
16
+ background-color: var(--color-semantic-surface-primary-soft);
17
+ overflow: clip;
18
+ }
19
+
20
+ ._hero__backgroundImageComponent_905ff_20 {
21
+ width: 100%;
22
+ height: 100%;
23
+ }
24
+
25
+ ._hero__backgroundImageComponent_905ff_20 > * {
26
+ width: 100%;
27
+ height: 100%;
28
+ }
29
+
30
+ ._hero__backgroundImageComponent_905ff_20 img,
31
+ ._hero__backgroundImageComponent_905ff_20 picture,
32
+ ._hero__backgroundImageComponent_905ff_20 video,
33
+ ._hero__backgroundImageComponent_905ff_20 canvas,
34
+ ._hero__backgroundImageComponent_905ff_20 svg {
35
+ display: block;
36
+ width: 100%;
37
+ height: 100%;
38
+ object-fit: cover;
39
+ object-position: right center;
40
+ }
41
+
42
+ ._hero__logoImage_905ff_42 {
43
+ position: absolute;
44
+ inset-inline: 0;
45
+ bottom: 0;
46
+ display: flex;
47
+ align-items: flex-end;
48
+ justify-content: flex-end;
49
+ width: min(100%, 1280px);
50
+ height: 100%;
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);
55
+ }
56
+
57
+ ._hero__logoImage_905ff_42 > * {
58
+ width: min(430px, 43vw);
59
+ max-width: 100%;
60
+ height: auto;
61
+ }
62
+
63
+ ._hero__overlay_905ff_63 {
64
+ position: absolute;
65
+ inset-inline: 0;
66
+ bottom: 0;
67
+ height: 158px;
68
+ background: linear-gradient(
69
+ 180deg,
70
+ color-mix(in srgb, var(--color-semantic-foreground-secondary-strong) 0%, transparent) 0%,
71
+ color-mix(in srgb, var(--color-semantic-foreground-secondary-strong) 30%, transparent) 100%
72
+ );
73
+ }
74
+
75
+ ._hero__content_905ff_75 {
76
+ position: relative;
77
+ z-index: 1;
78
+ display: flex;
79
+ min-height: 440px;
80
+ align-items: flex-end;
81
+ justify-content: flex-start;
82
+ max-width: 1280px;
83
+ gap: var(--spacing-ui-xxxl);
84
+ width: 100%;
85
+ margin-inline: auto;
86
+ padding-left: var(--spacing-layout-lg);
87
+ padding-right: var(--spacing-ui-xxxl);
88
+ }
89
+
90
+ ._hero__card_905ff_90 {
91
+ flex: 0 0 650px;
92
+ width: 650px;
93
+ min-width: 0;
94
+ max-width: 650px;
95
+ background-color: var(--color-semantic-surface-base);
96
+ border: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-base);
97
+ border-radius: var(--radius-semantic-md);
98
+ padding: var(--spacing-ui-xxxl);
99
+ }
100
+
101
+ ._hero__main_905ff_101 {
102
+ display: flex;
103
+ flex-direction: column;
104
+ gap: var(--spacing-ui-xxxl);
105
+ }
106
+
107
+ ._hero__text_905ff_107 {
108
+ display: flex;
109
+ flex-direction: column;
110
+ gap: var(--spacing-ui-lg);
111
+ }
112
+
113
+ ._hero__header_905ff_113 {
114
+ display: flex;
115
+ flex-direction: column;
116
+ gap: var(--spacing-ui-xs);
117
+ }
118
+
119
+ ._hero__label_905ff_119 {
120
+ align-self: flex-start;
121
+ }
122
+
123
+ ._hero__heading_905ff_123 {
124
+ margin: 0;
125
+ color: var(--color-semantic-foreground-default);
126
+ text-wrap: balance;
127
+ }
128
+
129
+ ._hero__heading--xl_905ff_129 {
130
+ font: var(--typography-heading-xl);
131
+ }
132
+
133
+ ._hero__heading--lg_905ff_133 {
134
+ font: var(--typography-heading-lg);
135
+ }
136
+
137
+ ._hero__heading--md_905ff_137 {
138
+ font: var(--typography-heading-md);
139
+ }
140
+
141
+ ._hero__heading--sm_905ff_141 {
142
+ font: var(--typography-heading-sm);
143
+ }
144
+
145
+ ._hero__heading--xs_905ff_145 {
146
+ font: var(--typography-heading-xs);
147
+ }
148
+
149
+ ._hero__description_905ff_149 {
150
+ margin: 0;
151
+ color: var(--color-semantic-foreground-default);
152
+ font: var(--typography-body-lg);
153
+ text-wrap: pretty;
154
+ }
155
+
156
+ ._hero__description_905ff_149 p {
157
+ margin: 0;
158
+ }
159
+
160
+ ._hero__description_905ff_149 p + p {
161
+ margin-top: var(--spacing-ui-sm);
162
+ }
163
+
164
+ ._hero__actions_905ff_164 {
165
+ display: flex;
166
+ flex-direction: row;
167
+ align-items: flex-start;
168
+ gap: var(--spacing-ui-md);
169
+ flex-wrap: nowrap;
170
+ }
171
+
172
+ @container hero (max-width: 991px) {
173
+ ._hero__background_905ff_11 {
174
+ height: 460px;
175
+ }
176
+
177
+ ._hero__content_905ff_75 {
178
+ min-height: 460px;
179
+ padding-inline: var(--spacing-ui-xxxl);
180
+ }
181
+
182
+ ._hero__card_905ff_90 {
183
+ flex-basis: 335px;
184
+ max-width: 335px;
185
+ padding: var(--spacing-ui-lg);
186
+ }
187
+
188
+ ._hero__logoImage_905ff_42 {
189
+ padding-left: var(--spacing-ui-xxxl);
190
+ }
191
+
192
+ ._hero__logoImage_905ff_42 > * {
193
+ width: min(360px, 48vw);
194
+ }
195
+
196
+ ._hero__actions_905ff_164 {
197
+ flex-direction: column;
198
+ flex-wrap: nowrap;
199
+ }
200
+ }
201
+
202
+ @container hero (max-width: 767px) {
203
+ ._hero__background_905ff_11 {
204
+ height: 280px;
205
+ }
206
+
207
+ ._hero__content_905ff_75 {
208
+ min-height: auto;
209
+ flex-direction: column;
210
+ align-items: stretch;
211
+ gap: 0;
212
+ padding-top: 200px;
213
+ padding-inline: var(--spacing-ui-lg);
214
+ }
215
+
216
+ ._hero__card_905ff_90 {
217
+ flex-basis: auto;
218
+ width: 100%;
219
+ max-width: none;
220
+ }
221
+
222
+ ._hero__logoImage_905ff_42 {
223
+ display: none;
224
+ }
225
+ }
226
+
227
+ @media (forced-colors: active) {
228
+ ._hero__overlay_905ff_63 {
229
+ display: none;
230
+ }
231
+
232
+ ._hero__background_905ff_11 {
233
+ background-color: Canvas;
234
+ }
235
+
236
+ ._hero__card_905ff_90 {
237
+ border: var(--borderwidth-semantic-xs) solid CanvasText;
238
+ box-shadow: none;
239
+ }
240
+
241
+ ._hero__logoImage_905ff_42 {
242
+ display: none;
243
+ }
244
+ }
245
+ }
@@ -0,0 +1,3 @@
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;
3
+ //# sourceMappingURL=Hero.d.ts.map
@@ -0,0 +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,kKAelB,SAAS,4CAqEX,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useId } from "react";
3
+ import elevationStyles from "../../styles/utils/elevation.module.css.js";
4
+ import styles from "./Hero.module.css.js";
5
+ import { headingClassByLevel } from "./Hero.utils.js";
6
+ import { cn } from "../../utils/cn/cn.js";
7
+ const Hero = ({
8
+ label,
9
+ heading,
10
+ description,
11
+ headingLevel = "h1",
12
+ Image,
13
+ imageProps,
14
+ LogoImage,
15
+ logoImageProps,
16
+ backgroundColor,
17
+ primaryCta,
18
+ secondaryCta,
19
+ className,
20
+ ref,
21
+ ...props
22
+ }) => {
23
+ const headingId = useId();
24
+ const ResolvedImage = Image ?? (imageProps != null ? "img" : void 0);
25
+ const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? "img" : void 0);
26
+ const image = ResolvedImage != null ? /* @__PURE__ */ jsx(ResolvedImage, { ...imageProps }) : void 0;
27
+ const logoImage = ResolvedLogoImage != null ? /* @__PURE__ */ jsx(ResolvedLogoImage, { ...logoImageProps }) : void 0;
28
+ const hasActions = primaryCta != null || secondaryCta != null;
29
+ const backgroundStyle = image == null && backgroundColor != null ? { backgroundColor } : void 0;
30
+ const HeadingLevel = headingLevel;
31
+ return /* @__PURE__ */ jsxs(
32
+ "div",
33
+ {
34
+ ref,
35
+ ...props,
36
+ className: cn(styles.hero, className),
37
+ "data-testid": props["data-testid"],
38
+ children: [
39
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__background, style: backgroundStyle, children: [
40
+ 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
+ /* @__PURE__ */ jsx("div", { className: styles.hero__overlay, "aria-hidden": "true" })
43
+ ] }),
44
+ /* @__PURE__ */ jsx("div", { className: styles.hero__content, children: /* @__PURE__ */ jsx("div", { className: cn(styles.hero__card, elevationStyles.elevationExtraHigh), children: /* @__PURE__ */ jsxs("div", { className: styles.hero__main, children: [
45
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__text, children: [
46
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__header, children: [
47
+ label != null && /* @__PURE__ */ jsx("div", { className: styles.hero__label, children: label }),
48
+ /* @__PURE__ */ jsx(
49
+ HeadingLevel,
50
+ {
51
+ id: headingId,
52
+ className: cn(
53
+ styles.hero__heading,
54
+ headingClassByLevel[headingLevel]
55
+ ),
56
+ children: heading
57
+ }
58
+ )
59
+ ] }),
60
+ description != null && /* @__PURE__ */ jsx("div", { className: cn(styles.hero__description, "dds-prose"), children: description })
61
+ ] }),
62
+ hasActions && /* @__PURE__ */ jsxs("div", { className: styles.hero__actions, children: [
63
+ primaryCta != null && primaryCta,
64
+ secondaryCta != null && secondaryCta
65
+ ] })
66
+ ] }) }) })
67
+ ]
68
+ }
69
+ );
70
+ };
71
+ export {
72
+ Hero
73
+ };
74
+ //# sourceMappingURL=Hero.js.map
@@ -0,0 +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 { headingClassByLevel } from './Hero.utils';\n\nexport const Hero = ({\n label,\n heading,\n description,\n headingLevel = 'h1',\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\n const hasActions = primaryCta != null || secondaryCta != null;\n const backgroundStyle =\n image == null && backgroundColor != null ? { backgroundColor } : undefined;\n const HeadingLevel = headingLevel;\n\n return (\n <div\n ref={ref}\n {...props}\n className={cn(styles.hero, className)}\n data-testid={props['data-testid']}\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 {logoImage != null && (\n <div className={styles.hero__logoImage} aria-hidden=\"true\">\n {logoImage}\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.elevationExtraHigh)}>\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 headingClassByLevel[headingLevel],\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 </div>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAOO,MAAM,OAAO,CAAC;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,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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,IAAI;AAAA,kBACJ,WAAW;AAAA,oBACP,OAAO;AAAA,oBACP,oBAAoB,YAAY;AAAA,kBAAA;AAAA,kBAGnC,UAAA;AAAA,gBAAA;AAAA,cAAA;AAAA,YACL,GACJ;AAAA,YACC,eAAe,QACZ,oBAAC,OAAA,EAAI,WAAW,GAAG,OAAO,mBAAmB,WAAW,GACnD,UAAA,YAAA,CACL;AAAA,UAAA,GAER;AAAA,UAEC,cACG,qBAAC,OAAA,EAAI,WAAW,OAAO,eAClB,UAAA;AAAA,YAAA,cAAc,QAAQ;AAAA,YACtB,gBAAgB,QAAQ;AAAA,UAAA,EAAA,CAC7B;AAAA,QAAA,EAAA,CAER,GACJ,EAAA,CACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
@@ -0,0 +1,54 @@
1
+ require('./Hero.css');
2
+ "use strict";
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
+ const hero = "_hero_905ff_1";
5
+ const hero__background = "_hero__background_905ff_11";
6
+ const hero__backgroundImageComponent = "_hero__backgroundImageComponent_905ff_20";
7
+ const hero__logoImage = "_hero__logoImage_905ff_42";
8
+ const hero__overlay = "_hero__overlay_905ff_63";
9
+ const hero__content = "_hero__content_905ff_75";
10
+ const hero__card = "_hero__card_905ff_90";
11
+ const hero__main = "_hero__main_905ff_101";
12
+ const hero__text = "_hero__text_905ff_107";
13
+ const hero__header = "_hero__header_905ff_113";
14
+ const hero__label = "_hero__label_905ff_119";
15
+ const hero__heading = "_hero__heading_905ff_123";
16
+ const hero__description = "_hero__description_905ff_149";
17
+ const hero__actions = "_hero__actions_905ff_164";
18
+ const styles = {
19
+ hero,
20
+ hero__background,
21
+ hero__backgroundImageComponent,
22
+ hero__logoImage,
23
+ hero__overlay,
24
+ hero__content,
25
+ hero__card,
26
+ hero__main,
27
+ hero__text,
28
+ hero__header,
29
+ hero__label,
30
+ hero__heading,
31
+ "hero__heading--xl": "_hero__heading--xl_905ff_129",
32
+ "hero__heading--lg": "_hero__heading--lg_905ff_133",
33
+ "hero__heading--md": "_hero__heading--md_905ff_137",
34
+ "hero__heading--sm": "_hero__heading--sm_905ff_141",
35
+ "hero__heading--xs": "_hero__heading--xs_905ff_145",
36
+ hero__description,
37
+ hero__actions
38
+ };
39
+ exports.default = styles;
40
+ exports.hero = hero;
41
+ exports.hero__actions = hero__actions;
42
+ exports.hero__background = hero__background;
43
+ exports.hero__backgroundImageComponent = hero__backgroundImageComponent;
44
+ exports.hero__card = hero__card;
45
+ exports.hero__content = hero__content;
46
+ exports.hero__description = hero__description;
47
+ exports.hero__header = hero__header;
48
+ exports.hero__heading = hero__heading;
49
+ exports.hero__label = hero__label;
50
+ exports.hero__logoImage = hero__logoImage;
51
+ exports.hero__main = hero__main;
52
+ exports.hero__overlay = hero__overlay;
53
+ exports.hero__text = hero__text;
54
+ //# sourceMappingURL=Hero.module.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,54 @@
1
+ import './Hero.css';
2
+ const hero = "_hero_905ff_1";
3
+ const hero__background = "_hero__background_905ff_11";
4
+ const hero__backgroundImageComponent = "_hero__backgroundImageComponent_905ff_20";
5
+ const hero__logoImage = "_hero__logoImage_905ff_42";
6
+ const hero__overlay = "_hero__overlay_905ff_63";
7
+ const hero__content = "_hero__content_905ff_75";
8
+ const hero__card = "_hero__card_905ff_90";
9
+ const hero__main = "_hero__main_905ff_101";
10
+ const hero__text = "_hero__text_905ff_107";
11
+ const hero__header = "_hero__header_905ff_113";
12
+ const hero__label = "_hero__label_905ff_119";
13
+ const hero__heading = "_hero__heading_905ff_123";
14
+ const hero__description = "_hero__description_905ff_149";
15
+ const hero__actions = "_hero__actions_905ff_164";
16
+ const styles = {
17
+ hero,
18
+ hero__background,
19
+ hero__backgroundImageComponent,
20
+ hero__logoImage,
21
+ hero__overlay,
22
+ hero__content,
23
+ hero__card,
24
+ hero__main,
25
+ hero__text,
26
+ hero__header,
27
+ hero__label,
28
+ hero__heading,
29
+ "hero__heading--xl": "_hero__heading--xl_905ff_129",
30
+ "hero__heading--lg": "_hero__heading--lg_905ff_133",
31
+ "hero__heading--md": "_hero__heading--md_905ff_137",
32
+ "hero__heading--sm": "_hero__heading--sm_905ff_141",
33
+ "hero__heading--xs": "_hero__heading--xs_905ff_145",
34
+ hero__description,
35
+ hero__actions
36
+ };
37
+ export {
38
+ styles as default,
39
+ hero,
40
+ hero__actions,
41
+ hero__background,
42
+ hero__backgroundImageComponent,
43
+ hero__card,
44
+ hero__content,
45
+ hero__description,
46
+ hero__header,
47
+ hero__heading,
48
+ hero__label,
49
+ hero__logoImage,
50
+ hero__main,
51
+ hero__overlay,
52
+ hero__text
53
+ };
54
+ //# sourceMappingURL=Hero.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,55 @@
1
+ import { ComponentPropsWithRef, CSSProperties, ElementType, ReactElement, ReactNode } from 'react';
2
+ export type HeroHeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
3
+ export type HeroCommonImageProps = Omit<ComponentPropsWithRef<'img'>, 'ref'>;
4
+ export type HeroImageComponent = ElementType<HeroCommonImageProps>;
5
+ export interface HeroProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
6
+ /**
7
+ * Optional label element displayed above the heading.
8
+ */
9
+ readonly label?: ReactElement;
10
+ /**
11
+ * Main hero heading.
12
+ */
13
+ readonly heading: string;
14
+ /**
15
+ * Supporting descriptive text.
16
+ */
17
+ readonly description?: ReactNode;
18
+ /**
19
+ * Heading HTML level. Defaults to `h1`.
20
+ */
21
+ readonly headingLevel?: HeroHeadingLevel;
22
+ /**
23
+ * Decorative image component to use as the Hero background.
24
+ */
25
+ readonly Image?: HeroImageComponent;
26
+ /**
27
+ * Props for the background image component.
28
+ */
29
+ readonly imageProps?: HeroCommonImageProps;
30
+ /**
31
+ * Optional decorative logo image component for logo-style Hero variants.
32
+ */
33
+ readonly LogoImage?: HeroImageComponent;
34
+ /**
35
+ * Props for the logo image component.
36
+ */
37
+ readonly logoImageProps?: HeroCommonImageProps;
38
+ /**
39
+ * Background color used when no background `Image` is provided.
40
+ */
41
+ readonly backgroundColor?: CSSProperties['backgroundColor'];
42
+ /**
43
+ * Primary call-to-action element.
44
+ */
45
+ readonly primaryCta?: ReactElement;
46
+ /**
47
+ * Secondary call-to-action element.
48
+ */
49
+ readonly secondaryCta?: ReactElement;
50
+ /**
51
+ * Allows passing a `data-testid` string for testing purposes.
52
+ */
53
+ readonly 'data-testid'?: string;
54
+ }
55
+ //# sourceMappingURL=Hero.types.d.ts.map
@@ -0,0 +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;AAChE,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,KAAK,CAAC,EAAE,UAAU,CAAC;IAC7E;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC;IACjC;;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;IACrC;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACnC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const Hero_module = require("./Hero.module.css.cjs");
4
+ const headingClassByLevel = {
5
+ h1: Hero_module.default["hero__heading--xl"],
6
+ h2: Hero_module.default["hero__heading--lg"],
7
+ h3: Hero_module.default["hero__heading--md"],
8
+ h4: Hero_module.default["hero__heading--sm"],
9
+ h5: Hero_module.default["hero__heading--xs"]
10
+ };
11
+ exports.headingClassByLevel = headingClassByLevel;
12
+ //# sourceMappingURL=Hero.utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.utils.cjs","sources":["../../../src/components/Hero/Hero.utils.ts"],"sourcesContent":["import styles from './Hero.module.css';\nimport type { HeroHeadingLevel } from './Hero.types';\n\nexport const headingClassByLevel: Record<HeroHeadingLevel, string> = {\n h1: styles['hero__heading--xl'],\n h2: styles['hero__heading--lg'],\n h3: styles['hero__heading--md'],\n h4: styles['hero__heading--sm'],\n h5: styles['hero__heading--xs'],\n};\n"],"names":["styles"],"mappings":";;;AAGO,MAAM,sBAAwD;AAAA,EACjE,IAAIA,YAAAA,QAAO,mBAAmB;AAAA,EAC9B,IAAIA,YAAAA,QAAO,mBAAmB;AAAA,EAC9B,IAAIA,YAAAA,QAAO,mBAAmB;AAAA,EAC9B,IAAIA,YAAAA,QAAO,mBAAmB;AAAA,EAC9B,IAAIA,YAAAA,QAAO,mBAAmB;AAClC;;"}
@@ -0,0 +1,3 @@
1
+ import { HeroHeadingLevel } from './Hero.types';
2
+ export declare const headingClassByLevel: Record<HeroHeadingLevel, string>;
3
+ //# sourceMappingURL=Hero.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.utils.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAMhE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import styles from "./Hero.module.css.js";
2
+ const headingClassByLevel = {
3
+ h1: styles["hero__heading--xl"],
4
+ h2: styles["hero__heading--lg"],
5
+ h3: styles["hero__heading--md"],
6
+ h4: styles["hero__heading--sm"],
7
+ h5: styles["hero__heading--xs"]
8
+ };
9
+ export {
10
+ headingClassByLevel
11
+ };
12
+ //# sourceMappingURL=Hero.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.utils.js","sources":["../../../src/components/Hero/Hero.utils.ts"],"sourcesContent":["import styles from './Hero.module.css';\nimport type { HeroHeadingLevel } from './Hero.types';\n\nexport const headingClassByLevel: Record<HeroHeadingLevel, string> = {\n h1: styles['hero__heading--xl'],\n h2: styles['hero__heading--lg'],\n h3: styles['hero__heading--md'],\n h4: styles['hero__heading--sm'],\n h5: styles['hero__heading--xs'],\n};\n"],"names":[],"mappings":";AAGO,MAAM,sBAAwD;AAAA,EACjE,IAAI,OAAO,mBAAmB;AAAA,EAC9B,IAAI,OAAO,mBAAmB;AAAA,EAC9B,IAAI,OAAO,mBAAmB;AAAA,EAC9B,IAAI,OAAO,mBAAmB;AAAA,EAC9B,IAAI,OAAO,mBAAmB;AAClC;"}
@@ -0,0 +1,3 @@
1
+ export { Hero } from './Hero';
2
+ export type { HeroProps, HeroHeadingLevel, HeroCommonImageProps, HeroImageComponent, } from './Hero.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EACR,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,GACrB,MAAM,cAAc,CAAC"}
package/dist/index.cjs CHANGED
@@ -6,6 +6,7 @@ const AccordionItem = require("./components/AccordionItem/AccordionItem.cjs");
6
6
  const Breadcrumb = require("./components/Breadcrumb/Breadcrumb.cjs");
7
7
  const Button = require("./components/Button/Button.cjs");
8
8
  const ColorScheme = require("./components/ColorScheme/ColorScheme.cjs");
9
+ const Hero = require("./components/Hero/Hero.cjs");
9
10
  const Label = require("./components/Label/Label.cjs");
10
11
  const Notification = require("./components/Notification/Notification.cjs");
11
12
  const Pictograph = require("./components/Pictograph/Pictograph.cjs");
@@ -17,6 +18,7 @@ exports.AccordionItem = AccordionItem.AccordionItem;
17
18
  exports.Breadcrumb = Breadcrumb.Breadcrumb;
18
19
  exports.Button = Button.Button;
19
20
  exports.ColorScheme = ColorScheme.ColorScheme;
21
+ exports.Hero = Hero.Hero;
20
22
  exports.Label = Label.Label;
21
23
  exports.Notification = Notification.Notification;
22
24
  exports.Pictograph = Pictograph.Pictograph;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { AccordionItem } from './components/AccordionItem';
3
3
  export { Breadcrumb } from './components/Breadcrumb';
4
4
  export { Button } from './components/Button';
5
5
  export { ColorScheme } from './components/ColorScheme';
6
+ export { Hero } from './components/Hero';
6
7
  export { Notification } from './components/Notification';
7
8
  export { Label } from './components/Label';
8
9
  export { Pictograph, PictographItem } from './components/Pictograph';
@@ -12,6 +13,7 @@ export type { AccordionItemProps } from './components/AccordionItem';
12
13
  export type { BreadcrumbItem, BreadcrumbLinkProps, BreadcrumbProps } from './components/Breadcrumb';
13
14
  export type { ButtonProps, ButtonLinkProps, ButtonVariant, ButtonSize } from './components/Button';
14
15
  export type { ColorSchemeProps, ColorSchemeValue } from './components/ColorScheme';
16
+ export type { HeroProps, HeroHeadingLevel, HeroCommonImageProps, HeroImageComponent, } from './components/Hero';
15
17
  export type { NotificationProps, NotificationVariant } from './components/Notification';
16
18
  export type { LabelProps, LabelVariant } from './components/Label';
17
19
  export type { PictographItemProps, PictographProps } from './components/Pictograph';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,E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AAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpG,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnG,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACnF,YAAY,EACR,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACxF,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpF,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEpF,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import { AccordionItem } from "./components/AccordionItem/AccordionItem.js";
4
4
  import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb.js";
5
5
  import { Button } from "./components/Button/Button.js";
6
6
  import { ColorScheme } from "./components/ColorScheme/ColorScheme.js";
7
+ import { Hero } from "./components/Hero/Hero.js";
7
8
  import { Label } from "./components/Label/Label.js";
8
9
  import { Notification } from "./components/Notification/Notification.js";
9
10
  import { Pictograph } from "./components/Pictograph/Pictograph.js";
@@ -16,6 +17,7 @@ export {
16
17
  Breadcrumb,
17
18
  Button,
18
19
  ColorScheme,
20
+ Hero,
19
21
  Label,
20
22
  Notification,
21
23
  Pictograph,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -2,9 +2,12 @@ require('./elevation.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
4
  const elevationLow = "_elevationLow_4gnft_6";
5
+ const elevationExtraHigh = "_elevationExtraHigh_4gnft_16";
5
6
  const elevationStyles = {
6
- elevationLow
7
+ elevationLow,
8
+ elevationExtraHigh
7
9
  };
8
10
  exports.default = elevationStyles;
11
+ exports.elevationExtraHigh = elevationExtraHigh;
9
12
  exports.elevationLow = elevationLow;
10
13
  //# sourceMappingURL=elevation.module.css.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,10 +1,13 @@
1
1
  import './elevation.css';
2
2
  const elevationLow = "_elevationLow_4gnft_6";
3
+ const elevationExtraHigh = "_elevationExtraHigh_4gnft_16";
3
4
  const elevationStyles = {
4
- elevationLow
5
+ elevationLow,
6
+ elevationExtraHigh
5
7
  };
6
8
  export {
7
9
  elevationStyles as default,
10
+ elevationExtraHigh,
8
11
  elevationLow
9
12
  };
10
13
  //# sourceMappingURL=elevation.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnanpm/ui-components",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "DNA Design System - React UI Components",
5
5
  "author": "DNA Oy",
6
6
  "license": "ISC",