@dnanpm/ui-components 0.2.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 (71) hide show
  1. package/dist/components/Accordion/Accordion.css +1 -1
  2. package/dist/components/AccordionItem/AccordionItem.css +1 -1
  3. package/dist/components/Breadcrumb/Breadcrumb.css +1 -1
  4. package/dist/components/Button/Button.css +36 -30
  5. package/dist/components/Button/Button.module.css.cjs +11 -11
  6. package/dist/components/Button/Button.module.css.js +11 -11
  7. package/dist/components/Hero/Hero.cjs +74 -0
  8. package/dist/components/Hero/Hero.cjs.map +1 -0
  9. package/dist/components/Hero/Hero.css +245 -0
  10. package/dist/components/Hero/Hero.d.ts +3 -0
  11. package/dist/components/Hero/Hero.d.ts.map +1 -0
  12. package/dist/components/Hero/Hero.js +74 -0
  13. package/dist/components/Hero/Hero.js.map +1 -0
  14. package/dist/components/Hero/Hero.module.css.cjs +54 -0
  15. package/dist/components/Hero/Hero.module.css.cjs.map +1 -0
  16. package/dist/components/Hero/Hero.module.css.js +54 -0
  17. package/dist/components/Hero/Hero.module.css.js.map +1 -0
  18. package/dist/components/Hero/Hero.types.d.ts +55 -0
  19. package/dist/components/Hero/Hero.types.d.ts.map +1 -0
  20. package/dist/components/Hero/Hero.utils.cjs +12 -0
  21. package/dist/components/Hero/Hero.utils.cjs.map +1 -0
  22. package/dist/components/Hero/Hero.utils.d.ts +3 -0
  23. package/dist/components/Hero/Hero.utils.d.ts.map +1 -0
  24. package/dist/components/Hero/Hero.utils.js +12 -0
  25. package/dist/components/Hero/Hero.utils.js.map +1 -0
  26. package/dist/components/Hero/index.d.ts +3 -0
  27. package/dist/components/Hero/index.d.ts.map +1 -0
  28. package/dist/components/Label/Label.css +1 -1
  29. package/dist/components/Notification/Notification.css +1 -1
  30. package/dist/components/Pictograph/Pictograph.cjs +33 -0
  31. package/dist/components/Pictograph/Pictograph.cjs.map +1 -0
  32. package/dist/components/Pictograph/Pictograph.css +190 -0
  33. package/dist/components/Pictograph/Pictograph.d.ts +3 -0
  34. package/dist/components/Pictograph/Pictograph.d.ts.map +1 -0
  35. package/dist/components/Pictograph/Pictograph.js +33 -0
  36. package/dist/components/Pictograph/Pictograph.js.map +1 -0
  37. package/dist/components/Pictograph/Pictograph.module.css.cjs +22 -0
  38. package/dist/components/Pictograph/Pictograph.module.css.cjs.map +1 -0
  39. package/dist/components/Pictograph/Pictograph.module.css.js +22 -0
  40. package/dist/components/Pictograph/Pictograph.module.css.js.map +1 -0
  41. package/dist/components/Pictograph/Pictograph.types.d.ts +46 -0
  42. package/dist/components/Pictograph/Pictograph.types.d.ts.map +1 -0
  43. package/dist/components/Pictograph/PictographItem.cjs +19 -0
  44. package/dist/components/Pictograph/PictographItem.cjs.map +1 -0
  45. package/dist/components/Pictograph/PictographItem.css +63 -0
  46. package/dist/components/Pictograph/PictographItem.d.ts +3 -0
  47. package/dist/components/Pictograph/PictographItem.d.ts.map +1 -0
  48. package/dist/components/Pictograph/PictographItem.js +19 -0
  49. package/dist/components/Pictograph/PictographItem.js.map +1 -0
  50. package/dist/components/Pictograph/PictographItem.module.css.cjs +9 -0
  51. package/dist/components/Pictograph/PictographItem.module.css.cjs.map +1 -0
  52. package/dist/components/Pictograph/PictographItem.module.css.js +10 -0
  53. package/dist/components/Pictograph/PictographItem.module.css.js.map +1 -0
  54. package/dist/components/Pictograph/index.d.ts +4 -0
  55. package/dist/components/Pictograph/index.d.ts.map +1 -0
  56. package/dist/components/Spinner/Spinner.css +1 -1
  57. package/dist/index.cjs +6 -0
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.d.ts +4 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +6 -0
  62. package/dist/index.js.map +1 -1
  63. package/dist/styles/utils/elevation.css +1 -1
  64. package/dist/styles/utils/elevation.module.css.cjs +4 -1
  65. package/dist/styles/utils/elevation.module.css.cjs.map +1 -1
  66. package/dist/styles/utils/elevation.module.css.js +4 -1
  67. package/dist/styles/utils/elevation.module.css.js.map +1 -1
  68. package/dist/styles/utils/focus.css +1 -1
  69. package/dist/styles/utils/text-decoration.css +1 -1
  70. package/dist/styles.css +32 -16
  71. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- @layer dna-design-system {/**
1
+ @layer dds-components {/**
2
2
  * Accordion Component Styles
3
3
  *
4
4
  * Layout wrapper that spaces AccordionItem children evenly.
@@ -1,4 +1,4 @@
1
- @layer dna-design-system {/**
1
+ @layer dds-components {/**
2
2
  * AccordionItem Component Styles
3
3
  *
4
4
  * Uses native <details> element for expand/collapse behavior.
@@ -1,4 +1,4 @@
1
- @layer dna-design-system {/**
1
+ @layer dds-components {/**
2
2
  * Breadcrumb Component Styles
3
3
  *
4
4
  * Design tokens are consumed via CSS custom properties (variables).
@@ -1,4 +1,4 @@
1
- @layer dna-design-system {._button_188fd_1 {
1
+ @layer dds-components {._button_1nsz1_1 {
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -15,21 +15,21 @@
15
15
  border-color 0.2s ease-in-out;
16
16
  }
17
17
 
18
- ._button--full-width_188fd_18 {
18
+ ._button--full-width_1nsz1_18 {
19
19
  width: 100%;
20
20
  min-width: 0;
21
21
  }
22
22
 
23
23
  /* ─── Sizes ─── */
24
24
 
25
- ._button--normal_188fd_25 {
25
+ ._button--normal_1nsz1_25 {
26
26
  font: var(--typography-label-lg-bold);
27
27
  height: 40px;
28
28
  min-width: 128px;
29
29
  padding: var(--spacing-ui-xs) var(--spacing-ui-lg);
30
30
  }
31
31
 
32
- ._button--small_188fd_32 {
32
+ ._button--small_1nsz1_32 {
33
33
  font: var(--typography-label-md-bold);
34
34
  height: 32px;
35
35
  min-width: 100px;
@@ -38,85 +38,91 @@
38
38
 
39
39
  /* ─── Primary variant ─── */
40
40
 
41
- ._button--primary_188fd_41 {
41
+ ._button--primary_1nsz1_41 {
42
42
  background-color: var(--color-semantic-interactive-primary-default);
43
43
  color: var(--color-semantic-foreground-inverse);
44
44
  }
45
45
 
46
- ._button--primary_188fd_41:hover {
46
+ ._button--primary_1nsz1_41:hover {
47
47
  background-color: var(--color-semantic-interactive-primary-hover);
48
+ color: var(--color-semantic-foreground-inverse);
48
49
  }
49
50
 
50
- ._button--primary_188fd_41:active {
51
+ ._button--primary_1nsz1_41:active {
51
52
  background-color: var(--color-semantic-interactive-primary-active);
53
+ color: var(--color-semantic-foreground-inverse);
52
54
  }
53
55
 
54
- ._button--primary_188fd_41:focus-visible {
56
+ ._button--primary_1nsz1_41:focus-visible {
55
57
  background-color: var(--color-semantic-interactive-primary-focus);
58
+ color: var(--color-semantic-foreground-inverse);
56
59
  }
57
60
 
58
61
  /* ─── Secondary variant ─── */
59
62
 
60
- ._button--secondary_188fd_60 {
63
+ ._button--secondary_1nsz1_63 {
61
64
  background-color: transparent;
62
65
  border: var(--borderwidth-semantic-sm) solid var(--color-semantic-interactive-secondary-default);
63
66
  color: var(--color-semantic-foreground-secondary-strong);
64
67
  }
65
68
 
66
- ._button--secondary_188fd_60:hover {
69
+ ._button--secondary_1nsz1_63:hover {
67
70
  background-color: var(--color-semantic-interactive-secondary-hover);
68
71
  border-color: var(--color-semantic-interactive-secondary-hover);
69
72
  color: var(--color-semantic-foreground-inverse);
70
73
  }
71
74
 
72
- ._button--secondary_188fd_60:active {
75
+ ._button--secondary_1nsz1_63:active {
73
76
  background-color: var(--color-semantic-interactive-secondary-active);
74
77
  border-color: var(--color-semantic-interactive-secondary-active);
75
78
  color: var(--color-semantic-foreground-inverse);
76
79
  }
77
80
 
78
- ._button--secondary_188fd_60:focus-visible {
81
+ ._button--secondary_1nsz1_63:focus-visible {
79
82
  background-color: var(--color-semantic-interactive-secondary-focus);
80
83
  color: var(--color-semantic-foreground-inverse);
81
84
  }
82
85
 
83
86
  /* ─── Tertiary variant ─── */
84
87
 
85
- ._button--tertiary_188fd_85 {
88
+ ._button--tertiary_1nsz1_88 {
86
89
  background-color: var(--color-semantic-interactive-neutral-default);
87
90
  border: var(--borderwidth-semantic-sm) solid var(--color-semantic-border-neutral-mid);
88
91
  color: var(--color-semantic-foreground-secondary-strong);
89
92
  }
90
93
 
91
- ._button--tertiary_188fd_85:hover {
94
+ ._button--tertiary_1nsz1_88:hover {
92
95
  background-color: var(--color-semantic-interactive-neutral-hover);
96
+ color: var(--color-semantic-foreground-secondary-strong);
93
97
  }
94
98
 
95
- ._button--tertiary_188fd_85:active {
99
+ ._button--tertiary_1nsz1_88:active {
96
100
  background-color: var(--color-semantic-interactive-neutral-active);
101
+ color: var(--color-semantic-foreground-secondary-strong);
97
102
  }
98
103
 
99
- ._button--tertiary_188fd_85:focus-visible {
104
+ ._button--tertiary_1nsz1_88:focus-visible {
100
105
  background-color: var(--color-semantic-interactive-neutral-focus);
106
+ color: var(--color-semantic-foreground-secondary-strong);
101
107
  }
102
108
 
103
109
  /* ─── Disabled state ─── */
104
110
 
105
- ._button--disabled_188fd_105 {
111
+ ._button--disabled_1nsz1_111 {
106
112
  pointer-events: none;
107
113
  }
108
114
 
109
- ._button--primary_188fd_41._button--disabled_188fd_105 {
115
+ ._button--primary_1nsz1_41._button--disabled_1nsz1_111 {
110
116
  background-color: var(--color-semantic-interactive-primary-disabled);
111
117
  color: var(--color-semantic-foreground-muted);
112
118
  }
113
119
 
114
- ._button--secondary_188fd_60._button--disabled_188fd_105 {
120
+ ._button--secondary_1nsz1_63._button--disabled_1nsz1_111 {
115
121
  border-color: var(--color-semantic-interactive-secondary-disabled);
116
122
  color: var(--color-semantic-foreground-muted);
117
123
  }
118
124
 
119
- ._button--tertiary_188fd_85._button--disabled_188fd_105 {
125
+ ._button--tertiary_1nsz1_88._button--disabled_1nsz1_111 {
120
126
  background-color: var(--color-semantic-interactive-neutral-disabled);
121
127
  color: var(--color-semantic-foreground-muted);
122
128
  }
@@ -125,38 +131,38 @@
125
131
  /* Styles apply from [data-color-scheme="dark"] down to (but not into) [data-color-scheme="light"]. */
126
132
 
127
133
  @scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
128
- ._button--primary_188fd_41._button--disabled_188fd_105 {
134
+ ._button--primary_1nsz1_41._button--disabled_1nsz1_111 {
129
135
  color: var(--color-semantic-foreground-inverse-muted);
130
136
  }
131
137
 
132
- ._button--secondary_188fd_60 {
138
+ ._button--secondary_1nsz1_63 {
133
139
  border-color: var(--color-semantic-interactive-inverse-default);
134
140
  color: var(--color-semantic-foreground-inverse);
135
141
  }
136
142
 
137
- ._button--secondary_188fd_60:hover {
143
+ ._button--secondary_1nsz1_63:hover {
138
144
  background-color: var(--color-semantic-interactive-inverse-hover);
139
145
  border-color: var(--color-semantic-interactive-inverse-hover);
140
146
  color: var(--color-semantic-foreground-secondary-strong);
141
147
  }
142
148
 
143
- ._button--secondary_188fd_60:active {
149
+ ._button--secondary_1nsz1_63:active {
144
150
  background-color: var(--color-semantic-interactive-inverse-active);
145
151
  border-color: var(--color-semantic-interactive-inverse-active);
146
152
  color: var(--color-semantic-foreground-secondary-strong);
147
153
  }
148
154
 
149
- ._button--secondary_188fd_60:focus-visible {
155
+ ._button--secondary_1nsz1_63:focus-visible {
150
156
  background-color: var(--color-semantic-interactive-inverse-focus);
151
157
  color: var(--color-semantic-foreground-secondary-strong);
152
158
  }
153
159
 
154
- ._button--secondary_188fd_60._button--disabled_188fd_105 {
160
+ ._button--secondary_1nsz1_63._button--disabled_1nsz1_111 {
155
161
  border-color: var(--color-semantic-interactive-inverse-disabled);
156
162
  color: var(--color-semantic-foreground-inverse-muted);
157
163
  }
158
164
 
159
- ._button--tertiary_188fd_85._button--disabled_188fd_105 {
165
+ ._button--tertiary_1nsz1_88._button--disabled_1nsz1_111 {
160
166
  border-color: var(--color-semantic-interactive-neutral-disabled);
161
167
  color: var(--color-semantic-foreground-inverse-muted);
162
168
  }
@@ -164,11 +170,11 @@
164
170
 
165
171
  /* ─── Loading state ─── */
166
172
 
167
- ._button--loading_188fd_167 {
173
+ ._button--loading_1nsz1_173 {
168
174
  pointer-events: none;
169
175
  }
170
176
 
171
- ._button__content_188fd_171 {
177
+ ._button__content_1nsz1_177 {
172
178
  flex: 0 1 auto;
173
179
  min-width: 0;
174
180
  overflow: hidden;
@@ -176,7 +182,7 @@
176
182
  white-space: nowrap;
177
183
  }
178
184
 
179
- ._button__spinner_188fd_179 {
185
+ ._button__spinner_1nsz1_185 {
180
186
  flex: 0 0 auto;
181
187
  }
182
188
  }
@@ -1,19 +1,19 @@
1
1
  require('./Button.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const button = "_button_188fd_1";
5
- const button__content = "_button__content_188fd_171";
6
- const button__spinner = "_button__spinner_188fd_179";
4
+ const button = "_button_1nsz1_1";
5
+ const button__content = "_button__content_1nsz1_177";
6
+ const button__spinner = "_button__spinner_1nsz1_185";
7
7
  const styles = {
8
8
  button,
9
- "button--full-width": "_button--full-width_188fd_18",
10
- "button--normal": "_button--normal_188fd_25",
11
- "button--small": "_button--small_188fd_32",
12
- "button--primary": "_button--primary_188fd_41",
13
- "button--secondary": "_button--secondary_188fd_60",
14
- "button--tertiary": "_button--tertiary_188fd_85",
15
- "button--disabled": "_button--disabled_188fd_105",
16
- "button--loading": "_button--loading_188fd_167",
9
+ "button--full-width": "_button--full-width_1nsz1_18",
10
+ "button--normal": "_button--normal_1nsz1_25",
11
+ "button--small": "_button--small_1nsz1_32",
12
+ "button--primary": "_button--primary_1nsz1_41",
13
+ "button--secondary": "_button--secondary_1nsz1_63",
14
+ "button--tertiary": "_button--tertiary_1nsz1_88",
15
+ "button--disabled": "_button--disabled_1nsz1_111",
16
+ "button--loading": "_button--loading_1nsz1_173",
17
17
  button__content,
18
18
  button__spinner
19
19
  };
@@ -1,17 +1,17 @@
1
1
  import './Button.css';
2
- const button = "_button_188fd_1";
3
- const button__content = "_button__content_188fd_171";
4
- const button__spinner = "_button__spinner_188fd_179";
2
+ const button = "_button_1nsz1_1";
3
+ const button__content = "_button__content_1nsz1_177";
4
+ const button__spinner = "_button__spinner_1nsz1_185";
5
5
  const styles = {
6
6
  button,
7
- "button--full-width": "_button--full-width_188fd_18",
8
- "button--normal": "_button--normal_188fd_25",
9
- "button--small": "_button--small_188fd_32",
10
- "button--primary": "_button--primary_188fd_41",
11
- "button--secondary": "_button--secondary_188fd_60",
12
- "button--tertiary": "_button--tertiary_188fd_85",
13
- "button--disabled": "_button--disabled_188fd_105",
14
- "button--loading": "_button--loading_188fd_167",
7
+ "button--full-width": "_button--full-width_1nsz1_18",
8
+ "button--normal": "_button--normal_1nsz1_25",
9
+ "button--small": "_button--small_1nsz1_32",
10
+ "button--primary": "_button--primary_1nsz1_41",
11
+ "button--secondary": "_button--secondary_1nsz1_63",
12
+ "button--tertiary": "_button--tertiary_1nsz1_88",
13
+ "button--disabled": "_button--disabled_1nsz1_111",
14
+ "button--loading": "_button--loading_1nsz1_173",
15
15
  button__content,
16
16
  button__spinner
17
17
  };
@@ -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,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAiB;AACb,QAAM,YAAYA,MAAAA,MAAA;AAElB,QAAM,gBAAgB,UAAU,cAAc,OAAO,QAAQ;AAC7D,QAAM,oBAAoB,cAAc,kBAAkB,OAAO,QAAQ;AACzE,QAAM,QAAQ,iBAAiB,sCAAQ,eAAA,EAAe,GAAG,YAAY,IAAK;AAC1E,QAAM,YACF,qBAAqB,sCAAQ,mBAAA,EAAmB,GAAG,gBAAgB,IAAK;AAE5E,QAAM,aAAa,cAAc,QAAQ,gBAAgB;AACzD,QAAM,kBACF,SAAS,QAAQ,mBAAmB,OAAO,EAAE,oBAAoB;AACrE,QAAM,eAAe;AAErB,SACIC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACC,GAAG;AAAA,MACJ,WAAWC,GAAAA,GAAGC,oBAAO,MAAM,SAAS;AAAA,MACpC,eAAa,MAAM,aAAa;AAAA,MAEhC,UAAA;AAAA,QAAAF,gCAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,kBAAkB,OAAO,iBAC3C,UAAA;AAAA,UAAA,SAAS,uCACL,OAAA,EAAI,WAAWA,oBAAO,gCAAgC,eAAY,QAC9D,UAAA,MAAA,CACL;AAAA,UAEH,aAAa,QACVC,+BAAC,OAAA,EAAI,WAAWD,oBAAO,iBAAiB,eAAY,QAC/C,UAAA,UAAA,CACL;AAAA,yCAEH,OAAA,EAAI,WAAWA,YAAAA,QAAO,eAAe,eAAY,OAAA,CAAO;AAAA,QAAA,GAC7D;AAAA,uCAEC,OAAA,EAAI,WAAWA,oBAAO,eACnB,UAAAC,+BAAC,SAAI,WAAWF,GAAAA,GAAGC,oBAAO,YAAYE,iBAAAA,QAAgB,kBAAkB,GACpE,0CAAC,OAAA,EAAI,WAAWF,oBAAO,YACnB,UAAA;AAAA,UAAAF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,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"}