@dnanpm/ui-components 0.6.0 → 0.8.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 (205) hide show
  1. package/dist/components/AccordionItem/AccordionItem.css +16 -16
  2. package/dist/components/AccordionItem/AccordionItem.module.css.cjs +11 -11
  3. package/dist/components/AccordionItem/AccordionItem.module.css.js +11 -11
  4. package/dist/components/Breadcrumb/Breadcrumb.css +9 -9
  5. package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
  6. package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
  7. package/dist/components/Button/Button.css +32 -30
  8. package/dist/components/Button/Button.module.css.cjs +11 -11
  9. package/dist/components/Button/Button.module.css.js +11 -11
  10. package/dist/components/ButtonCard/ButtonCard.cjs +105 -0
  11. package/dist/components/ButtonCard/ButtonCard.cjs.map +1 -0
  12. package/dist/components/ButtonCard/ButtonCard.css +167 -0
  13. package/dist/components/ButtonCard/ButtonCard.d.ts +3 -0
  14. package/dist/components/ButtonCard/ButtonCard.d.ts.map +1 -0
  15. package/dist/components/ButtonCard/ButtonCard.js +105 -0
  16. package/dist/components/ButtonCard/ButtonCard.js.map +1 -0
  17. package/dist/components/ButtonCard/ButtonCard.module.css.cjs +18 -0
  18. package/dist/components/ButtonCard/ButtonCard.module.css.cjs.map +1 -0
  19. package/dist/components/ButtonCard/ButtonCard.module.css.js +19 -0
  20. package/dist/components/ButtonCard/ButtonCard.module.css.js.map +1 -0
  21. package/dist/components/ButtonCard/ButtonCard.types.d.ts +103 -0
  22. package/dist/components/ButtonCard/ButtonCard.types.d.ts.map +1 -0
  23. package/dist/components/ButtonCard/index.d.ts +3 -0
  24. package/dist/components/ButtonCard/index.d.ts.map +1 -0
  25. package/dist/components/Drawer/Drawer.cjs +101 -0
  26. package/dist/components/Drawer/Drawer.cjs.map +1 -0
  27. package/dist/components/Drawer/Drawer.css +219 -0
  28. package/dist/components/Drawer/Drawer.d.ts +3 -0
  29. package/dist/components/Drawer/Drawer.d.ts.map +1 -0
  30. package/dist/components/Drawer/Drawer.js +101 -0
  31. package/dist/components/Drawer/Drawer.js.map +1 -0
  32. package/dist/components/Drawer/Drawer.module.css.cjs +37 -0
  33. package/dist/components/Drawer/Drawer.module.css.cjs.map +1 -0
  34. package/dist/components/Drawer/Drawer.module.css.js +37 -0
  35. package/dist/components/Drawer/Drawer.module.css.js.map +1 -0
  36. package/dist/components/Drawer/Drawer.types.d.ts +63 -0
  37. package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
  38. package/dist/components/Drawer/index.d.ts +3 -0
  39. package/dist/components/Drawer/index.d.ts.map +1 -0
  40. package/dist/components/Footer/Footer.cjs +272 -0
  41. package/dist/components/Footer/Footer.cjs.map +1 -0
  42. package/dist/components/Footer/Footer.css +473 -0
  43. package/dist/components/Footer/Footer.d.ts +3 -0
  44. package/dist/components/Footer/Footer.d.ts.map +1 -0
  45. package/dist/components/Footer/Footer.js +272 -0
  46. package/dist/components/Footer/Footer.js.map +1 -0
  47. package/dist/components/Footer/Footer.module.css.cjs +80 -0
  48. package/dist/components/Footer/Footer.module.css.cjs.map +1 -0
  49. package/dist/components/Footer/Footer.module.css.js +80 -0
  50. package/dist/components/Footer/Footer.module.css.js.map +1 -0
  51. package/dist/components/Footer/Footer.types.d.ts +128 -0
  52. package/dist/components/Footer/Footer.types.d.ts.map +1 -0
  53. package/dist/components/Footer/Footer.utils.cjs +41 -0
  54. package/dist/components/Footer/Footer.utils.cjs.map +1 -0
  55. package/dist/components/Footer/Footer.utils.d.ts +13 -0
  56. package/dist/components/Footer/Footer.utils.d.ts.map +1 -0
  57. package/dist/components/Footer/Footer.utils.js +41 -0
  58. package/dist/components/Footer/Footer.utils.js.map +1 -0
  59. package/dist/components/Footer/assets/app-store-badge.svg.cjs +4 -0
  60. package/dist/components/Footer/assets/app-store-badge.svg.cjs.map +1 -0
  61. package/dist/components/Footer/assets/app-store-badge.svg.js +5 -0
  62. package/dist/components/Footer/assets/app-store-badge.svg.js.map +1 -0
  63. package/dist/components/Footer/assets/google-play-badge.svg.cjs +4 -0
  64. package/dist/components/Footer/assets/google-play-badge.svg.cjs.map +1 -0
  65. package/dist/components/Footer/assets/google-play-badge.svg.js +5 -0
  66. package/dist/components/Footer/assets/google-play-badge.svg.js.map +1 -0
  67. package/dist/components/Footer/index.d.ts +3 -0
  68. package/dist/components/Footer/index.d.ts.map +1 -0
  69. package/dist/components/FunctionButton/FunctionButton.cjs +34 -0
  70. package/dist/components/FunctionButton/FunctionButton.cjs.map +1 -0
  71. package/dist/components/FunctionButton/FunctionButton.css +125 -0
  72. package/dist/components/FunctionButton/FunctionButton.d.ts +3 -0
  73. package/dist/components/FunctionButton/FunctionButton.d.ts.map +1 -0
  74. package/dist/components/FunctionButton/FunctionButton.js +34 -0
  75. package/dist/components/FunctionButton/FunctionButton.js.map +1 -0
  76. package/dist/components/FunctionButton/FunctionButton.module.css.cjs +11 -0
  77. package/dist/components/FunctionButton/FunctionButton.module.css.cjs.map +1 -0
  78. package/dist/components/FunctionButton/FunctionButton.module.css.js +12 -0
  79. package/dist/components/FunctionButton/FunctionButton.module.css.js.map +1 -0
  80. package/dist/components/FunctionButton/FunctionButton.types.d.ts +21 -0
  81. package/dist/components/FunctionButton/FunctionButton.types.d.ts.map +1 -0
  82. package/dist/components/FunctionButton/index.d.ts +3 -0
  83. package/dist/components/FunctionButton/index.d.ts.map +1 -0
  84. package/dist/components/Hero/Hero.cjs +44 -30
  85. package/dist/components/Hero/Hero.cjs.map +1 -1
  86. package/dist/components/Hero/Hero.css +89 -100
  87. package/dist/components/Hero/Hero.d.ts +1 -1
  88. package/dist/components/Hero/Hero.d.ts.map +1 -1
  89. package/dist/components/Hero/Hero.js +45 -31
  90. package/dist/components/Hero/Hero.js.map +1 -1
  91. package/dist/components/Hero/Hero.module.css.cjs +17 -20
  92. package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
  93. package/dist/components/Hero/Hero.module.css.js +17 -20
  94. package/dist/components/Hero/Hero.module.css.js.map +1 -1
  95. package/dist/components/Hero/Hero.types.d.ts +8 -3
  96. package/dist/components/Hero/Hero.types.d.ts.map +1 -1
  97. package/dist/components/Hero/Hero.utils.cjs +5 -8
  98. package/dist/components/Hero/Hero.utils.cjs.map +1 -1
  99. package/dist/components/Hero/Hero.utils.d.ts +2 -2
  100. package/dist/components/Hero/Hero.utils.d.ts.map +1 -1
  101. package/dist/components/Hero/Hero.utils.js +5 -8
  102. package/dist/components/Hero/Hero.utils.js.map +1 -1
  103. package/dist/components/IconButton/IconButton.css +31 -32
  104. package/dist/components/IconButton/IconButton.module.css.cjs +9 -9
  105. package/dist/components/IconButton/IconButton.module.css.js +9 -9
  106. package/dist/components/MainNavigation/MainNavigation.cjs +1094 -0
  107. package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -0
  108. package/dist/components/MainNavigation/MainNavigation.css +948 -0
  109. package/dist/components/MainNavigation/MainNavigation.d.ts +3 -0
  110. package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -0
  111. package/dist/components/MainNavigation/MainNavigation.js +1094 -0
  112. package/dist/components/MainNavigation/MainNavigation.js.map +1 -0
  113. package/dist/components/MainNavigation/MainNavigation.module.css.cjs +74 -0
  114. package/dist/components/MainNavigation/MainNavigation.module.css.cjs.map +1 -0
  115. package/dist/components/MainNavigation/MainNavigation.module.css.js +75 -0
  116. package/dist/components/MainNavigation/MainNavigation.module.css.js.map +1 -0
  117. package/dist/components/MainNavigation/MainNavigation.types.d.ts +149 -0
  118. package/dist/components/MainNavigation/MainNavigation.types.d.ts.map +1 -0
  119. package/dist/components/MainNavigation/MainNavigation.utils.cjs +168 -0
  120. package/dist/components/MainNavigation/MainNavigation.utils.cjs.map +1 -0
  121. package/dist/components/MainNavigation/MainNavigation.utils.d.ts +29 -0
  122. package/dist/components/MainNavigation/MainNavigation.utils.d.ts.map +1 -0
  123. package/dist/components/MainNavigation/MainNavigation.utils.js +168 -0
  124. package/dist/components/MainNavigation/MainNavigation.utils.js.map +1 -0
  125. package/dist/components/MainNavigation/index.d.ts +3 -0
  126. package/dist/components/MainNavigation/index.d.ts.map +1 -0
  127. package/dist/components/Modal/Modal.cjs +101 -0
  128. package/dist/components/Modal/Modal.cjs.map +1 -0
  129. package/dist/components/Modal/Modal.css +205 -0
  130. package/dist/components/Modal/Modal.d.ts +3 -0
  131. package/dist/components/Modal/Modal.d.ts.map +1 -0
  132. package/dist/components/Modal/Modal.js +101 -0
  133. package/dist/components/Modal/Modal.js.map +1 -0
  134. package/dist/components/Modal/Modal.module.css.cjs +39 -0
  135. package/dist/components/Modal/Modal.module.css.cjs.map +1 -0
  136. package/dist/components/Modal/Modal.module.css.js +39 -0
  137. package/dist/components/Modal/Modal.module.css.js.map +1 -0
  138. package/dist/components/Modal/Modal.types.d.ts +62 -0
  139. package/dist/components/Modal/Modal.types.d.ts.map +1 -0
  140. package/dist/components/Modal/index.d.ts +3 -0
  141. package/dist/components/Modal/index.d.ts.map +1 -0
  142. package/dist/components/Modal/useDialogDismissal.cjs +41 -0
  143. package/dist/components/Modal/useDialogDismissal.cjs.map +1 -0
  144. package/dist/components/Modal/useDialogDismissal.d.ts +17 -0
  145. package/dist/components/Modal/useDialogDismissal.d.ts.map +1 -0
  146. package/dist/components/Modal/useDialogDismissal.js +41 -0
  147. package/dist/components/Modal/useDialogDismissal.js.map +1 -0
  148. package/dist/components/Modal/useNativeDialog.cjs +126 -0
  149. package/dist/components/Modal/useNativeDialog.cjs.map +1 -0
  150. package/dist/components/Modal/useNativeDialog.d.ts +14 -0
  151. package/dist/components/Modal/useNativeDialog.d.ts.map +1 -0
  152. package/dist/components/Modal/useNativeDialog.js +126 -0
  153. package/dist/components/Modal/useNativeDialog.js.map +1 -0
  154. package/dist/components/Pictograph/Pictograph.css +69 -57
  155. package/dist/components/Pictograph/Pictograph.module.css.cjs +11 -11
  156. package/dist/components/Pictograph/Pictograph.module.css.js +11 -11
  157. package/dist/components/Pictograph/Pictograph.types.d.ts +2 -2
  158. package/dist/components/Pictograph/PictographItem.cjs +15 -4
  159. package/dist/components/Pictograph/PictographItem.cjs.map +1 -1
  160. package/dist/components/Pictograph/PictographItem.css +26 -23
  161. package/dist/components/Pictograph/PictographItem.d.ts.map +1 -1
  162. package/dist/components/Pictograph/PictographItem.js +15 -4
  163. package/dist/components/Pictograph/PictographItem.js.map +1 -1
  164. package/dist/components/Pictograph/PictographItem.module.css.cjs +3 -3
  165. package/dist/components/Pictograph/PictographItem.module.css.js +3 -3
  166. package/dist/components/Quote/Quote.cjs +32 -0
  167. package/dist/components/Quote/Quote.cjs.map +1 -0
  168. package/dist/components/Quote/Quote.css +95 -0
  169. package/dist/components/Quote/Quote.d.ts +3 -0
  170. package/dist/components/Quote/Quote.d.ts.map +1 -0
  171. package/dist/components/Quote/Quote.js +32 -0
  172. package/dist/components/Quote/Quote.js.map +1 -0
  173. package/dist/components/Quote/Quote.module.css.cjs +22 -0
  174. package/dist/components/Quote/Quote.module.css.cjs.map +1 -0
  175. package/dist/components/Quote/Quote.module.css.js +22 -0
  176. package/dist/components/Quote/Quote.module.css.js.map +1 -0
  177. package/dist/components/Quote/Quote.types.d.ts +12 -0
  178. package/dist/components/Quote/Quote.types.d.ts.map +1 -0
  179. package/dist/components/Quote/index.d.ts +3 -0
  180. package/dist/components/Quote/index.d.ts.map +1 -0
  181. package/dist/index.cjs +14 -0
  182. package/dist/index.cjs.map +1 -1
  183. package/dist/index.d.ts +14 -0
  184. package/dist/index.d.ts.map +1 -1
  185. package/dist/index.js +14 -0
  186. package/dist/index.js.map +1 -1
  187. package/dist/styles/utils/elevation.module.css.cjs +3 -0
  188. package/dist/styles/utils/elevation.module.css.cjs.map +1 -1
  189. package/dist/styles/utils/elevation.module.css.js +4 -1
  190. package/dist/styles/utils/elevation.module.css.js.map +1 -1
  191. package/dist/styles/utils/focus.css +21 -13
  192. package/dist/styles/utils/focus.module.css.cjs +3 -3
  193. package/dist/styles/utils/focus.module.css.js +3 -3
  194. package/dist/styles/utils/overlay.css +37 -0
  195. package/dist/styles/utils/overlay.module.css.cjs +13 -0
  196. package/dist/styles/utils/overlay.module.css.cjs.map +1 -0
  197. package/dist/styles/utils/overlay.module.css.js +13 -0
  198. package/dist/styles/utils/overlay.module.css.js.map +1 -0
  199. package/dist/styles/utils/text-decoration.css +9 -1
  200. package/dist/styles/utils/text-decoration.module.css.cjs +5 -2
  201. package/dist/styles/utils/text-decoration.module.css.cjs.map +1 -1
  202. package/dist/styles/utils/text-decoration.module.css.js +6 -3
  203. package/dist/styles/utils/text-decoration.module.css.js.map +1 -1
  204. package/dist/styles.css +24 -7
  205. package/package.json +4 -3
@@ -0,0 +1,34 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import focusStyles from "../../styles/utils/focus.module.css.js";
3
+ import styles from "./FunctionButton.module.css.js";
4
+ import { cn } from "../../utils/cn/cn.js";
5
+ const FunctionButton = ({
6
+ icon: Icon,
7
+ variant = "default",
8
+ size = "default",
9
+ className,
10
+ type = "button",
11
+ ref,
12
+ ...props
13
+ }) => {
14
+ return /* @__PURE__ */ jsx(
15
+ "button",
16
+ {
17
+ ref,
18
+ type,
19
+ className: cn(
20
+ styles["function-button"],
21
+ styles[`function-button--${variant}`],
22
+ { [styles["function-button--large"]]: size === "large" },
23
+ focusStyles.focusable,
24
+ className
25
+ ),
26
+ ...props,
27
+ children: /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" })
28
+ }
29
+ );
30
+ };
31
+ export {
32
+ FunctionButton
33
+ };
34
+ //# sourceMappingURL=FunctionButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.js","sources":["../../../src/components/FunctionButton/FunctionButton.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport styles from './FunctionButton.module.css';\nimport type { FunctionButtonProps } from './FunctionButton.types';\n\nexport const FunctionButton = ({\n icon: Icon,\n variant = 'default',\n size = 'default',\n className,\n type = 'button',\n ref,\n ...props\n}: FunctionButtonProps) => {\n return (\n <button\n ref={ref}\n type={type}\n className={cn(\n styles['function-button'],\n styles[`function-button--${variant}`],\n { [styles['function-button--large']]: size === 'large' },\n focusStyles.focusable,\n className,\n )}\n {...props}\n >\n <Icon aria-hidden=\"true\" />\n </button>\n );\n};\n"],"names":[],"mappings":";;;;AAKO,MAAM,iBAAiB,CAAC;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,GAAG;AACP,MAA2B;AACvB,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACP,OAAO,iBAAiB;AAAA,QACxB,OAAO,oBAAoB,OAAO,EAAE;AAAA,QACpC,EAAE,CAAC,OAAO,wBAAwB,CAAC,GAAG,SAAS,QAAA;AAAA,QAC/C,YAAY;AAAA,QACZ;AAAA,MAAA;AAAA,MAEH,GAAG;AAAA,MAEJ,UAAA,oBAAC,MAAA,EAAK,eAAY,OAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGrC;"}
@@ -0,0 +1,11 @@
1
+ require('./FunctionButton.css');
2
+ "use strict";
3
+ const styles = {
4
+ "function-button": "_function-button_kp4nc_1",
5
+ "function-button--large": "_function-button--large_kp4nc_25",
6
+ "function-button--default": "_function-button--default_kp4nc_35",
7
+ "function-button--circle": "_function-button--circle_kp4nc_49",
8
+ "function-button--ghost": "_function-button--ghost_kp4nc_65"
9
+ };
10
+ module.exports = styles;
11
+ //# sourceMappingURL=FunctionButton.module.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,12 @@
1
+ import './FunctionButton.css';
2
+ const styles = {
3
+ "function-button": "_function-button_kp4nc_1",
4
+ "function-button--large": "_function-button--large_kp4nc_25",
5
+ "function-button--default": "_function-button--default_kp4nc_35",
6
+ "function-button--circle": "_function-button--circle_kp4nc_49",
7
+ "function-button--ghost": "_function-button--ghost_kp4nc_65"
8
+ };
9
+ export {
10
+ styles as default
11
+ };
12
+ //# sourceMappingURL=FunctionButton.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,21 @@
1
+ import { ComponentPropsWithRef, ComponentType, SVGProps } from 'react';
2
+ export type FunctionButtonVariant = 'default' | 'circle' | 'ghost';
3
+ export type FunctionButtonSize = 'default' | 'large';
4
+ export type FunctionButtonIcon = ComponentType<SVGProps<SVGSVGElement>>;
5
+ type FunctionButtonAccessibleName = {
6
+ readonly 'aria-label': string;
7
+ readonly 'aria-labelledby'?: never;
8
+ } | {
9
+ readonly 'aria-label'?: never;
10
+ readonly 'aria-labelledby': string;
11
+ };
12
+ export type FunctionButtonProps = Omit<ComponentPropsWithRef<'button'>, 'aria-label' | 'aria-labelledby' | 'children'> & FunctionButtonAccessibleName & {
13
+ /** Icon component rendered as decorative content. */
14
+ readonly icon: FunctionButtonIcon;
15
+ /** Visual button style. @default 'default' */
16
+ readonly variant?: FunctionButtonVariant;
17
+ /** Control size. @default 'default' */
18
+ readonly size?: FunctionButtonSize;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=FunctionButton.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionButton/FunctionButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAAC;AACrD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAExE,KAAK,4BAA4B,GAC3B;IACI,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;CACtC,GACD;IACI,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACtC,CAAC;AAER,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAClC,qBAAqB,CAAC,QAAQ,CAAC,EAC/B,YAAY,GAAG,iBAAiB,GAAG,UAAU,CAChD,GACG,4BAA4B,GAAG;IAC3B,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,qBAAqB,CAAC;IACzC,uCAAuC;IACvC,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;CACtC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { FunctionButton } from './FunctionButton';
2
+ export type { FunctionButtonIcon, FunctionButtonProps, FunctionButtonSize, FunctionButtonVariant, } from './FunctionButton.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACR,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,wBAAwB,CAAC"}
@@ -11,6 +11,7 @@ const Hero = ({
11
11
  heading,
12
12
  description,
13
13
  headingLevel = "h1",
14
+ headingStyle = "default",
14
15
  Image,
15
16
  imageProps,
16
17
  LogoImage,
@@ -27,39 +28,52 @@ const Hero = ({
27
28
  const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? "img" : void 0);
28
29
  const image = ResolvedImage != null ? /* @__PURE__ */ jsxRuntime.jsx(ResolvedImage, { ...imageProps }) : void 0;
29
30
  const logoImage = ResolvedLogoImage != null ? /* @__PURE__ */ jsxRuntime.jsx(ResolvedLogoImage, { ...logoImageProps }) : void 0;
31
+ const HeadingLevel = headingLevel;
30
32
  const hasActions = primaryCta != null || secondaryCta != null;
31
33
  const backgroundStyle = image == null && backgroundColor != null ? { backgroundColor } : void 0;
32
- const HeadingLevel = headingLevel;
33
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, ...props, className: cn.cn(Hero_module.default.hero, className), children: [
34
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__background, style: backgroundStyle, children: [
35
- image != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
36
- logoImage != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__logoImage, "aria-hidden": "true", children: logoImage }),
37
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__overlay, "aria-hidden": "true" })
38
- ] }),
39
- /* @__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.elevationHigh), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__main, children: [
40
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__text, children: [
41
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__header, children: [
42
- label != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__label, children: label }),
43
- /* @__PURE__ */ jsxRuntime.jsx(
44
- HeadingLevel,
45
- {
46
- id: headingId,
47
- className: cn.cn(
48
- Hero_module.default.hero__heading,
49
- Hero_utils.headingClassByLevel[headingLevel]
50
- ),
51
- children: heading
52
- }
53
- )
34
+ const ariaLabelledBy = props["aria-label"] ? void 0 : props["aria-labelledby"] || headingId;
35
+ return /* @__PURE__ */ jsxRuntime.jsxs(
36
+ "section",
37
+ {
38
+ ref,
39
+ ...props,
40
+ className: cn.cn(Hero_module.default.hero, className),
41
+ "aria-label": props["aria-label"],
42
+ "aria-labelledby": ariaLabelledBy,
43
+ children: [
44
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__background, style: backgroundStyle, children: [
45
+ image != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
46
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__overlay, "aria-hidden": "true" })
54
47
  ] }),
55
- description != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__description, "dds-prose"), children: description })
56
- ] }),
57
- hasActions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__actions, children: [
58
- primaryCta != null && primaryCta,
59
- secondaryCta != null && secondaryCta
60
- ] })
61
- ] }) }) })
62
- ] });
48
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__content, children: [
49
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__card, elevation_module.default.elevationHigh), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__main, children: [
50
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__text, children: [
51
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__header, children: [
52
+ label != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__label, children: label }),
53
+ /* @__PURE__ */ jsxRuntime.jsx(
54
+ HeadingLevel,
55
+ {
56
+ id: headingId,
57
+ className: cn.cn(
58
+ Hero_module.default.hero__heading,
59
+ Hero_utils.headingClassByStyle[headingStyle]
60
+ ),
61
+ children: heading
62
+ }
63
+ )
64
+ ] }),
65
+ description != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__description, "dds-prose"), children: description })
66
+ ] }),
67
+ hasActions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__actions, children: [
68
+ primaryCta != null && primaryCta,
69
+ secondaryCta != null && secondaryCta
70
+ ] })
71
+ ] }) }),
72
+ logoImage != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__logoImage, "aria-hidden": "true", children: logoImage })
73
+ ] })
74
+ ]
75
+ }
76
+ );
63
77
  };
64
78
  exports.Hero = Hero;
65
79
  //# sourceMappingURL=Hero.cjs.map
@@ -1 +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 ref={ref} {...props} className={cn(styles.hero, className)}>\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.elevationHigh)}>\n <div className={styles.hero__main}>\n <div className={styles.hero__text}>\n <div className={styles.hero__header}>\n {label != null && <div className={styles.hero__label}>{label}</div>}\n <HeadingLevel\n id={headingId}\n className={cn(\n styles.hero__heading,\n 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,gCAAC,OAAA,EAAI,KAAW,GAAG,OAAO,WAAWC,GAAAA,GAAGC,YAAAA,QAAO,MAAM,SAAS,GAC1D,UAAA;AAAA,IAAAF,gCAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,kBAAkB,OAAO,iBAC3C,UAAA;AAAA,MAAA,SAAS,uCACL,OAAA,EAAI,WAAWA,oBAAO,gCAAgC,eAAY,QAC9D,UAAA,MAAA,CACL;AAAA,MAEH,aAAa,QACVC,+BAAC,OAAA,EAAI,WAAWD,oBAAO,iBAAiB,eAAY,QAC/C,UAAA,UAAA,CACL;AAAA,qCAEH,OAAA,EAAI,WAAWA,YAAAA,QAAO,eAAe,eAAY,OAAA,CAAO;AAAA,IAAA,GAC7D;AAAA,mCAEC,OAAA,EAAI,WAAWA,oBAAO,eACnB,UAAAC,+BAAC,SAAI,WAAWF,GAAAA,GAAGC,oBAAO,YAAYE,iBAAAA,QAAgB,aAAa,GAC/D,0CAAC,OAAA,EAAI,WAAWF,oBAAO,YACnB,UAAA;AAAA,MAAAF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,YACnB,UAAA;AAAA,QAAAF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,cAClB,UAAA;AAAA,UAAA,SAAS,QAAQC,2BAAAA,IAAC,OAAA,EAAI,WAAWD,YAAAA,QAAO,aAAc,UAAA,OAAM;AAAA,UAC7DC,2BAAAA;AAAAA,YAAC;AAAA,YAAA;AAAA,cACG,IAAI;AAAA,cACJ,WAAWF,GAAAA;AAAAA,gBACPC,YAAAA,QAAO;AAAA,gBACPG,WAAAA,oBAAoB,YAAY;AAAA,cAAA;AAAA,cAGnC,UAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACL,GACJ;AAAA,QACC,eAAe,QACZF,+BAAC,OAAA,EAAI,WAAWF,MAAGC,YAAAA,QAAO,mBAAmB,WAAW,GACnD,UAAA,YAAA,CACL;AAAA,MAAA,GAER;AAAA,MAEC,cACGF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,eAClB,UAAA;AAAA,QAAA,cAAc,QAAQ;AAAA,QACtB,gBAAgB,QAAQ;AAAA,MAAA,EAAA,CAC7B;AAAA,IAAA,EAAA,CAER,GACJ,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;;"}
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 { headingClassByStyle } from './Hero.utils';\n\nexport const Hero = ({\n label,\n heading,\n description,\n headingLevel = 'h1',\n headingStyle = 'default',\n Image,\n imageProps,\n LogoImage,\n logoImageProps,\n backgroundColor,\n primaryCta,\n secondaryCta,\n className,\n ref,\n ...props\n}: HeroProps) => {\n const headingId = useId();\n\n const ResolvedImage = Image ?? (imageProps != null ? 'img' : undefined);\n const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? 'img' : undefined);\n const image = ResolvedImage != null ? <ResolvedImage {...imageProps} /> : undefined;\n const logoImage =\n ResolvedLogoImage != null ? <ResolvedLogoImage {...logoImageProps} /> : undefined;\n const HeadingLevel = headingLevel;\n\n const hasActions = primaryCta != null || secondaryCta != null;\n const backgroundStyle =\n image == null && backgroundColor != null ? { backgroundColor } : undefined;\n const ariaLabelledBy = props['aria-label'] ? undefined : props['aria-labelledby'] || headingId;\n\n return (\n <section\n ref={ref}\n {...props}\n className={cn(styles.hero, className)}\n aria-label={props['aria-label']}\n aria-labelledby={ariaLabelledBy}\n >\n <div className={styles.hero__background} style={backgroundStyle}>\n {image != null && (\n <div className={styles.hero__backgroundImageComponent} aria-hidden=\"true\">\n {image}\n </div>\n )}\n <div className={styles.hero__overlay} aria-hidden=\"true\" />\n </div>\n\n <div className={styles.hero__content}>\n <div className={cn(styles.hero__card, elevationStyles.elevationHigh)}>\n <div className={styles.hero__main}>\n <div className={styles.hero__text}>\n <div className={styles.hero__header}>\n {label != null && <div className={styles.hero__label}>{label}</div>}\n <HeadingLevel\n id={headingId}\n className={cn(\n styles.hero__heading,\n headingClassByStyle[headingStyle],\n )}\n >\n {heading}\n </HeadingLevel>\n </div>\n {description != null && (\n <div className={cn(styles.hero__description, 'dds-prose')}>\n {description}\n </div>\n )}\n </div>\n\n {hasActions && (\n <div className={styles.hero__actions}>\n {primaryCta != null && primaryCta}\n {secondaryCta != null && secondaryCta}\n </div>\n )}\n </div>\n </div>\n {logoImage != null && (\n <div className={styles.hero__logoImage} aria-hidden=\"true\">\n {logoImage}\n </div>\n )}\n </div>\n </section>\n );\n};\n"],"names":["useId","jsxs","cn","styles","jsx","elevationStyles","headingClassByStyle"],"mappings":";;;;;;;;AAOO,MAAM,OAAO,CAAC;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAiB;AACb,QAAM,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;AAC5E,QAAM,eAAe;AAErB,QAAM,aAAa,cAAc,QAAQ,gBAAgB;AACzD,QAAM,kBACF,SAAS,QAAQ,mBAAmB,OAAO,EAAE,oBAAoB;AACrE,QAAM,iBAAiB,MAAM,YAAY,IAAI,SAAY,MAAM,iBAAiB,KAAK;AAErF,SACIC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACC,GAAG;AAAA,MACJ,WAAWC,GAAAA,GAAGC,oBAAO,MAAM,SAAS;AAAA,MACpC,cAAY,MAAM,YAAY;AAAA,MAC9B,mBAAiB;AAAA,MAEjB,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,yCAEH,OAAA,EAAI,WAAWA,YAAAA,QAAO,eAAe,eAAY,OAAA,CAAO;AAAA,QAAA,GAC7D;AAAA,QAEAF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,eACnB,UAAA;AAAA,UAAAC,2BAAAA,IAAC,OAAA,EAAI,WAAWF,GAAAA,GAAGC,YAAAA,QAAO,YAAYE,yBAAgB,aAAa,GAC/D,UAAAJ,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,YACnB,UAAA;AAAA,YAAAF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,YACnB,UAAA;AAAA,cAAAF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,cAClB,UAAA;AAAA,gBAAA,SAAS,QAAQC,2BAAAA,IAAC,OAAA,EAAI,WAAWD,YAAAA,QAAO,aAAc,UAAA,OAAM;AAAA,gBAC7DC,2BAAAA;AAAAA,kBAAC;AAAA,kBAAA;AAAA,oBACG,IAAI;AAAA,oBACJ,WAAWF,GAAAA;AAAAA,sBACPC,YAAAA,QAAO;AAAA,sBACPG,WAAAA,oBAAoB,YAAY;AAAA,oBAAA;AAAA,oBAGnC,UAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACL,GACJ;AAAA,cACC,eAAe,QACZF,+BAAC,OAAA,EAAI,WAAWF,MAAGC,YAAAA,QAAO,mBAAmB,WAAW,GACnD,UAAA,YAAA,CACL;AAAA,YAAA,GAER;AAAA,YAEC,cACGF,2BAAAA,KAAC,OAAA,EAAI,WAAWE,YAAAA,QAAO,eAClB,UAAA;AAAA,cAAA,cAAc,QAAQ;AAAA,cACtB,gBAAgB,QAAQ;AAAA,YAAA,EAAA,CAC7B;AAAA,UAAA,EAAA,CAER,EAAA,CACJ;AAAA,UACC,aAAa,QACVC,+BAAC,OAAA,EAAI,WAAWD,oBAAO,iBAAiB,eAAY,QAC/C,UAAA,UAAA,CACL;AAAA,QAAA,EAAA,CAER;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;;"}
@@ -1,4 +1,4 @@
1
- @layer dds-components {._hero_c98qx_1 {
1
+ @layer dds-components {._hero_1xib4_1 {
2
2
  position: relative;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -8,30 +8,30 @@
8
8
  container-type: inline-size;
9
9
  }
10
10
 
11
- ._hero__background_c98qx_11 {
11
+ ._hero__background_1xib4_11 {
12
12
  position: absolute;
13
13
  inset-inline: 0;
14
14
  top: 0;
15
- height: 440px;
15
+ height: 280px;
16
16
  background-color: var(--color-semantic-surface-primary-soft);
17
17
  overflow: clip;
18
18
  }
19
19
 
20
- ._hero__backgroundImageComponent_c98qx_20 {
20
+ ._hero__backgroundImageComponent_1xib4_20 {
21
21
  width: 100%;
22
22
  height: 100%;
23
23
  }
24
24
 
25
- ._hero__backgroundImageComponent_c98qx_20 > * {
25
+ ._hero__backgroundImageComponent_1xib4_20 > * {
26
26
  width: 100%;
27
27
  height: 100%;
28
28
  }
29
29
 
30
- ._hero__backgroundImageComponent_c98qx_20 img,
31
- ._hero__backgroundImageComponent_c98qx_20 picture,
32
- ._hero__backgroundImageComponent_c98qx_20 video,
33
- ._hero__backgroundImageComponent_c98qx_20 canvas,
34
- ._hero__backgroundImageComponent_c98qx_20 svg {
30
+ ._hero__backgroundImageComponent_1xib4_20 img,
31
+ ._hero__backgroundImageComponent_1xib4_20 picture,
32
+ ._hero__backgroundImageComponent_1xib4_20 video,
33
+ ._hero__backgroundImageComponent_1xib4_20 canvas,
34
+ ._hero__backgroundImageComponent_1xib4_20 svg {
35
35
  display: block;
36
36
  width: 100%;
37
37
  height: 100%;
@@ -39,28 +39,24 @@
39
39
  object-position: right center;
40
40
  }
41
41
 
42
- ._hero__logoImage_c98qx_42 {
42
+ ._hero__logoImage_1xib4_42 {
43
43
  position: absolute;
44
- inset-inline: 0;
45
- bottom: 0;
44
+ top: 0;
45
+ left: 0;
46
+ right: 0;
46
47
  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-space-80);
53
- padding-right: var(--spacing-space-40);
54
- padding-bottom: var(--spacing-space-20);
48
+ align-items: center;
49
+ justify-content: center;
50
+ height: 200px;
51
+ padding-inline: var(--spacing-space-20);
55
52
  }
56
53
 
57
- ._hero__logoImage_c98qx_42 > * {
58
- width: min(430px, 43vw);
59
- max-width: 100%;
54
+ ._hero__logoImage_1xib4_42 > * {
60
55
  height: auto;
56
+ max-height: 80%;
61
57
  }
62
58
 
63
- ._hero__overlay_c98qx_63 {
59
+ ._hero__overlay_1xib4_59 {
64
60
  position: absolute;
65
61
  inset-inline: 0;
66
62
  bottom: 0;
@@ -72,177 +68,170 @@
72
68
  );
73
69
  }
74
70
 
75
- ._hero__content_c98qx_75 {
71
+ ._hero__content_1xib4_71 {
76
72
  position: relative;
77
73
  z-index: 1;
78
74
  display: flex;
79
- min-height: 440px;
80
- align-items: flex-end;
75
+ flex-direction: column;
76
+ align-items: stretch;
81
77
  justify-content: flex-start;
82
78
  max-width: 1280px;
83
- gap: var(--spacing-space-40);
79
+ gap: 0;
84
80
  width: 100%;
85
81
  margin-inline: auto;
86
- padding-left: var(--spacing-space-80);
87
- padding-right: var(--spacing-space-40);
82
+ padding-top: 200px;
83
+ padding-inline: var(--spacing-space-20);
88
84
  }
89
85
 
90
- ._hero__card_c98qx_90 {
91
- flex: 0 0 650px;
92
- width: 650px;
86
+ ._hero__card_1xib4_86 {
93
87
  min-width: 0;
94
- max-width: 650px;
88
+ width: 100%;
95
89
  background-color: var(--color-semantic-surface-base);
96
90
  border: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-base);
97
91
  border-radius: var(--radius-semantic-md);
98
- padding: var(--spacing-space-40);
92
+ padding: var(--spacing-space-20);
99
93
  }
100
94
 
101
- ._hero__main_c98qx_101 {
95
+ ._hero__main_1xib4_95 {
102
96
  display: flex;
103
97
  flex-direction: column;
104
98
  gap: var(--spacing-space-40);
105
99
  }
106
100
 
107
- ._hero__text_c98qx_107 {
101
+ ._hero__text_1xib4_101 {
108
102
  display: flex;
109
103
  flex-direction: column;
110
104
  gap: var(--spacing-space-20);
111
105
  }
112
106
 
113
- ._hero__header_c98qx_113 {
107
+ ._hero__header_1xib4_107 {
114
108
  display: flex;
115
109
  flex-direction: column;
116
110
  gap: var(--spacing-space-8);
117
111
  }
118
112
 
119
- ._hero__label_c98qx_119 {
113
+ ._hero__label_1xib4_113 {
120
114
  align-self: flex-start;
121
115
  }
122
116
 
123
- ._hero__heading_c98qx_123 {
117
+ ._hero__heading_1xib4_117 {
124
118
  margin: 0;
125
119
  color: var(--color-semantic-foreground-default);
126
120
  text-wrap: balance;
127
121
  }
128
122
 
129
- ._hero__heading--xl_c98qx_129 {
130
- font: var(--typography-heading-xl);
131
- }
132
-
133
- ._hero__heading--lg_c98qx_133 {
123
+ ._hero__heading--default_1xib4_123 {
134
124
  font: var(--typography-heading-lg);
135
125
  }
136
126
 
137
- ._hero__heading--md_c98qx_137 {
138
- font: var(--typography-heading-md);
139
- }
140
-
141
- ._hero__heading--sm_c98qx_141 {
142
- font: var(--typography-heading-sm);
143
- }
144
-
145
- ._hero__heading--xs_c98qx_145 {
146
- font: var(--typography-heading-xs);
127
+ ._hero__heading--large_1xib4_127 {
128
+ font: var(--typography-heading-xl);
147
129
  }
148
130
 
149
- ._hero__heading--xxs_c98qx_149 {
150
- font: var(--typography-heading-xxs);
131
+ ._hero__heading--small_1xib4_131 {
132
+ font: var(--typography-heading-md);
151
133
  }
152
134
 
153
- ._hero__description_c98qx_153 {
135
+ ._hero__description_1xib4_135 {
154
136
  margin: 0;
155
137
  color: var(--color-semantic-foreground-default);
156
- font: var(--typography-body-lg);
138
+ font: var(--typography-body-md);
157
139
  text-wrap: pretty;
158
140
  }
159
141
 
160
- ._hero__description_c98qx_153 p {
142
+ ._hero__description_1xib4_135 p {
161
143
  margin: 0;
162
144
  }
163
145
 
164
- ._hero__description_c98qx_153 p + p {
146
+ ._hero__description_1xib4_135 p + p {
165
147
  margin-top: var(--spacing-space-12);
166
148
  }
167
149
 
168
- ._hero__actions_c98qx_168 {
150
+ ._hero__actions_1xib4_150 {
169
151
  display: flex;
170
152
  flex-direction: row;
171
153
  align-items: flex-start;
172
154
  gap: var(--spacing-space-16);
173
- flex-wrap: nowrap;
155
+ flex-wrap: wrap;
174
156
  }
175
157
 
176
- @container hero (max-width: 1023px) {
177
- ._hero__background_c98qx_11 {
158
+ @container hero (min-width: 768px) {
159
+ ._hero__background_1xib4_11 {
178
160
  height: 460px;
179
161
  }
180
162
 
181
- ._hero__content_c98qx_75 {
163
+ ._hero__content_1xib4_71 {
164
+ flex-direction: row;
165
+ align-items: flex-end;
182
166
  min-height: 460px;
167
+ gap: var(--spacing-space-40);
168
+ padding-top: 0;
183
169
  padding-inline: var(--spacing-space-40);
184
170
  }
185
171
 
186
- ._hero__card_c98qx_90 {
187
- flex-basis: 335px;
188
- max-width: 335px;
189
- padding: var(--spacing-space-20);
172
+ ._hero__card_1xib4_86 {
173
+ width: 50%;
174
+ max-width: 650px;
190
175
  }
191
176
 
192
- ._hero__logoImage_c98qx_42 {
193
- padding-left: var(--spacing-space-40);
177
+ ._hero__logoImage_1xib4_42 {
178
+ position: static;
179
+ flex: 1 1 auto;
180
+ min-width: 0;
181
+ height: auto;
182
+ max-height: 460px;
183
+ align-items: center;
184
+ align-self: stretch;
185
+ margin-top: calc(-1 * var(--spacing-space-40));
186
+ padding-inline: 0;
187
+ padding-top: 0;
188
+ padding-bottom: 0;
194
189
  }
195
190
 
196
- ._hero__logoImage_c98qx_42 > * {
197
- width: min(360px, 48vw);
198
- }
199
-
200
- ._hero__actions_c98qx_168 {
201
- flex-direction: column;
202
- flex-wrap: nowrap;
191
+ ._hero__logoImage_1xib4_42 > * {
192
+ width: auto;
193
+ max-width: 90%;
194
+ max-height: 100%;
203
195
  }
204
196
  }
205
197
 
206
- @container hero (max-width: 767px) {
207
- ._hero__background_c98qx_11 {
208
- height: 280px;
198
+ @container hero (min-width: 1024px) {
199
+ ._hero__background_1xib4_11 {
200
+ height: 440px;
209
201
  }
210
202
 
211
- ._hero__content_c98qx_75 {
212
- min-height: auto;
213
- flex-direction: column;
214
- align-items: stretch;
215
- gap: 0;
216
- padding-top: 200px;
217
- padding-inline: var(--spacing-space-20);
203
+ ._hero__content_1xib4_71 {
204
+ min-height: 440px;
205
+ padding-left: var(--spacing-space-80);
206
+ padding-right: var(--spacing-space-40);
218
207
  }
219
208
 
220
- ._hero__card_c98qx_90 {
221
- flex-basis: auto;
222
- width: 100%;
223
- max-width: none;
209
+ ._hero__card_1xib4_86 {
210
+ width: 60%;
211
+ max-width: initial;
212
+ padding: var(--spacing-space-40);
224
213
  }
225
214
 
226
- ._hero__logoImage_c98qx_42 {
227
- display: none;
215
+ ._hero__logoImage_1xib4_42 {
216
+ max-height: 440px;
228
217
  }
229
218
  }
230
219
 
231
220
  @media (forced-colors: active) {
232
- ._hero__overlay_c98qx_63 {
221
+ ._hero__overlay_1xib4_59 {
233
222
  display: none;
234
223
  }
235
224
 
236
- ._hero__background_c98qx_11 {
225
+ ._hero__background_1xib4_11 {
237
226
  background-color: Canvas;
238
227
  }
239
228
 
240
- ._hero__card_c98qx_90 {
229
+ ._hero__card_1xib4_86 {
241
230
  border: var(--borderwidth-semantic-xs) solid CanvasText;
242
231
  box-shadow: none;
243
232
  }
244
233
 
245
- ._hero__logoImage_c98qx_42 {
234
+ ._hero__logoImage_1xib4_42 {
246
235
  display: none;
247
236
  }
248
237
  }
@@ -1,3 +1,3 @@
1
1
  import { HeroProps } from './Hero.types';
2
- export declare const Hero: ({ label, heading, description, headingLevel, Image, imageProps, LogoImage, logoImageProps, backgroundColor, primaryCta, secondaryCta, className, ref, ...props }: HeroProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Hero: ({ label, heading, description, headingLevel, headingStyle, Image, imageProps, LogoImage, logoImageProps, backgroundColor, primaryCta, secondaryCta, className, ref, ...props }: HeroProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=Hero.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,eAAO,MAAM,IAAI,GAAI,kKAelB,SAAS,4CAgEX,CAAC"}
1
+ {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,eAAO,MAAM,IAAI,GAAI,gLAgBlB,SAAS,4CAuEX,CAAC"}