@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
@@ -2,13 +2,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
3
  import elevationStyles from "../../styles/utils/elevation.module.css.js";
4
4
  import styles from "./Hero.module.css.js";
5
- import { headingClassByLevel } from "./Hero.utils.js";
5
+ import { headingClassByStyle } from "./Hero.utils.js";
6
6
  import { cn } from "../../utils/cn/cn.js";
7
7
  const Hero = ({
8
8
  label,
9
9
  heading,
10
10
  description,
11
11
  headingLevel = "h1",
12
+ headingStyle = "default",
12
13
  Image,
13
14
  imageProps,
14
15
  LogoImage,
@@ -25,39 +26,52 @@ const Hero = ({
25
26
  const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? "img" : void 0);
26
27
  const image = ResolvedImage != null ? /* @__PURE__ */ jsx(ResolvedImage, { ...imageProps }) : void 0;
27
28
  const logoImage = ResolvedLogoImage != null ? /* @__PURE__ */ jsx(ResolvedLogoImage, { ...logoImageProps }) : void 0;
29
+ const HeadingLevel = headingLevel;
28
30
  const hasActions = primaryCta != null || secondaryCta != null;
29
31
  const backgroundStyle = image == null && backgroundColor != null ? { backgroundColor } : void 0;
30
- const HeadingLevel = headingLevel;
31
- return /* @__PURE__ */ jsxs("div", { ref, ...props, className: cn(styles.hero, className), children: [
32
- /* @__PURE__ */ jsxs("div", { className: styles.hero__background, style: backgroundStyle, children: [
33
- image != null && /* @__PURE__ */ jsx("div", { className: styles.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
34
- logoImage != null && /* @__PURE__ */ jsx("div", { className: styles.hero__logoImage, "aria-hidden": "true", children: logoImage }),
35
- /* @__PURE__ */ jsx("div", { className: styles.hero__overlay, "aria-hidden": "true" })
36
- ] }),
37
- /* @__PURE__ */ jsx("div", { className: styles.hero__content, children: /* @__PURE__ */ jsx("div", { className: cn(styles.hero__card, elevationStyles.elevationHigh), children: /* @__PURE__ */ jsxs("div", { className: styles.hero__main, children: [
38
- /* @__PURE__ */ jsxs("div", { className: styles.hero__text, children: [
39
- /* @__PURE__ */ jsxs("div", { className: styles.hero__header, children: [
40
- label != null && /* @__PURE__ */ jsx("div", { className: styles.hero__label, children: label }),
41
- /* @__PURE__ */ jsx(
42
- HeadingLevel,
43
- {
44
- id: headingId,
45
- className: cn(
46
- styles.hero__heading,
47
- headingClassByLevel[headingLevel]
48
- ),
49
- children: heading
50
- }
51
- )
32
+ const ariaLabelledBy = props["aria-label"] ? void 0 : props["aria-labelledby"] || headingId;
33
+ return /* @__PURE__ */ jsxs(
34
+ "section",
35
+ {
36
+ ref,
37
+ ...props,
38
+ className: cn(styles.hero, className),
39
+ "aria-label": props["aria-label"],
40
+ "aria-labelledby": ariaLabelledBy,
41
+ children: [
42
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__background, style: backgroundStyle, children: [
43
+ image != null && /* @__PURE__ */ jsx("div", { className: styles.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
44
+ /* @__PURE__ */ jsx("div", { className: styles.hero__overlay, "aria-hidden": "true" })
52
45
  ] }),
53
- description != null && /* @__PURE__ */ jsx("div", { className: cn(styles.hero__description, "dds-prose"), children: description })
54
- ] }),
55
- hasActions && /* @__PURE__ */ jsxs("div", { className: styles.hero__actions, children: [
56
- primaryCta != null && primaryCta,
57
- secondaryCta != null && secondaryCta
58
- ] })
59
- ] }) }) })
60
- ] });
46
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__content, children: [
47
+ /* @__PURE__ */ jsx("div", { className: cn(styles.hero__card, elevationStyles.elevationHigh), children: /* @__PURE__ */ jsxs("div", { className: styles.hero__main, children: [
48
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__text, children: [
49
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__header, children: [
50
+ label != null && /* @__PURE__ */ jsx("div", { className: styles.hero__label, children: label }),
51
+ /* @__PURE__ */ jsx(
52
+ HeadingLevel,
53
+ {
54
+ id: headingId,
55
+ className: cn(
56
+ styles.hero__heading,
57
+ headingClassByStyle[headingStyle]
58
+ ),
59
+ children: heading
60
+ }
61
+ )
62
+ ] }),
63
+ description != null && /* @__PURE__ */ jsx("div", { className: cn(styles.hero__description, "dds-prose"), children: description })
64
+ ] }),
65
+ hasActions && /* @__PURE__ */ jsxs("div", { className: styles.hero__actions, children: [
66
+ primaryCta != null && primaryCta,
67
+ secondaryCta != null && secondaryCta
68
+ ] })
69
+ ] }) }),
70
+ logoImage != null && /* @__PURE__ */ jsx("div", { className: styles.hero__logoImage, "aria-hidden": "true", children: logoImage })
71
+ ] })
72
+ ]
73
+ }
74
+ );
61
75
  };
62
76
  export {
63
77
  Hero
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.js","sources":["../../../src/components/Hero/Hero.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { cn } from '../../utils/cn';\nimport elevationStyles from '../../styles/utils/elevation.module.css';\nimport styles from './Hero.module.css';\nimport type { HeroProps } from './Hero.types';\nimport { 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":[],"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,MAAA;AAElB,QAAM,gBAAgB,UAAU,cAAc,OAAO,QAAQ;AAC7D,QAAM,oBAAoB,cAAc,kBAAkB,OAAO,QAAQ;AACzE,QAAM,QAAQ,i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GAAG,OAAO,mBAAmB,WAAW,GACnD,UAAA,YAAA,CACL;AAAA,MAAA,GAER;AAAA,MAEC,cACG,qBAAC,OAAA,EAAI,WAAW,OAAO,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.js","sources":["../../../src/components/Hero/Hero.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { cn } from '../../utils/cn';\nimport elevationStyles from '../../styles/utils/elevation.module.css';\nimport styles from './Hero.module.css';\nimport type { HeroProps } from './Hero.types';\nimport { headingClassByStyle } from './Hero.utils';\n\nexport const Hero = ({\n label,\n heading,\n description,\n headingLevel = 'h1',\n headingStyle = 'default',\n Image,\n imageProps,\n LogoImage,\n logoImageProps,\n backgroundColor,\n primaryCta,\n secondaryCta,\n className,\n ref,\n ...props\n}: HeroProps) => {\n const headingId = useId();\n\n const ResolvedImage = Image ?? (imageProps != null ? 'img' : undefined);\n const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? 'img' : undefined);\n const image = ResolvedImage != null ? <ResolvedImage {...imageProps} /> : undefined;\n const logoImage =\n ResolvedLogoImage != null ? <ResolvedLogoImage {...logoImageProps} /> : undefined;\n const HeadingLevel = headingLevel;\n\n const hasActions = primaryCta != null || secondaryCta != null;\n const backgroundStyle =\n image == null && backgroundColor != null ? { backgroundColor } : undefined;\n const ariaLabelledBy = props['aria-label'] ? undefined : props['aria-labelledby'] || headingId;\n\n return (\n <section\n ref={ref}\n {...props}\n className={cn(styles.hero, className)}\n aria-label={props['aria-label']}\n aria-labelledby={ariaLabelledBy}\n >\n <div className={styles.hero__background} style={backgroundStyle}>\n {image != null && (\n <div className={styles.hero__backgroundImageComponent} aria-hidden=\"true\">\n {image}\n </div>\n )}\n <div className={styles.hero__overlay} aria-hidden=\"true\" />\n </div>\n\n <div className={styles.hero__content}>\n <div className={cn(styles.hero__card, elevationStyles.elevationHigh)}>\n <div className={styles.hero__main}>\n <div className={styles.hero__text}>\n <div className={styles.hero__header}>\n {label != null && <div className={styles.hero__label}>{label}</div>}\n <HeadingLevel\n id={headingId}\n className={cn(\n styles.hero__heading,\n headingClassByStyle[headingStyle],\n )}\n >\n {heading}\n </HeadingLevel>\n </div>\n {description != null && (\n <div className={cn(styles.hero__description, 'dds-prose')}>\n {description}\n </div>\n )}\n </div>\n\n {hasActions && (\n <div className={styles.hero__actions}>\n {primaryCta != null && primaryCta}\n {secondaryCta != null && secondaryCta}\n </div>\n )}\n </div>\n </div>\n {logoImage != null && (\n <div className={styles.hero__logoImage} aria-hidden=\"true\">\n {logoImage}\n </div>\n )}\n </div>\n </section>\n );\n};\n"],"names":[],"mappings":";;;;;;AAOO,MAAM,OAAO,CAAC;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAiB;AACb,QAAM,YAAY,MAAA;AAElB,QAAM,gBAAgB,UAAU,cAAc,OAAO,QAAQ;AAC7D,QAAM,oBAAoB,cAAc,kBAAkB,OAAO,QAAQ;AACzE,QAAM,QAAQ,iBAAiB,2BAAQ,eAAA,EAAe,GAAG,YAAY,IAAK;AAC1E,QAAM,YACF,qBAAqB,2BAAQ,mBAAA,EAAmB,GAAG,gBAAgB,IAAK;AAC5E,QAAM,eAAe;AAErB,QAAM,aAAa,cAAc,QAAQ,gBAAgB;AACzD,QAAM,kBACF,SAAS,QAAQ,mBAAmB,OAAO,EAAE,oBAAoB;AACrE,QAAM,iBAAiB,MAAM,YAAY,IAAI,SAAY,MAAM,iBAAiB,KAAK;AAErF,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACC,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ACV,oBAAC,OAAA,EAAI,WAAW,OAAO,iBAAiB,eAAY,QAC/C,UAAA,UAAA,CACL;AAAA,QAAA,EAAA,CAER;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
@@ -1,20 +1,20 @@
1
1
  require('./Hero.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const hero = "_hero_c98qx_1";
5
- const hero__background = "_hero__background_c98qx_11";
6
- const hero__backgroundImageComponent = "_hero__backgroundImageComponent_c98qx_20";
7
- const hero__logoImage = "_hero__logoImage_c98qx_42";
8
- const hero__overlay = "_hero__overlay_c98qx_63";
9
- const hero__content = "_hero__content_c98qx_75";
10
- const hero__card = "_hero__card_c98qx_90";
11
- const hero__main = "_hero__main_c98qx_101";
12
- const hero__text = "_hero__text_c98qx_107";
13
- const hero__header = "_hero__header_c98qx_113";
14
- const hero__label = "_hero__label_c98qx_119";
15
- const hero__heading = "_hero__heading_c98qx_123";
16
- const hero__description = "_hero__description_c98qx_153";
17
- const hero__actions = "_hero__actions_c98qx_168";
4
+ const hero = "_hero_1xib4_1";
5
+ const hero__background = "_hero__background_1xib4_11";
6
+ const hero__backgroundImageComponent = "_hero__backgroundImageComponent_1xib4_20";
7
+ const hero__logoImage = "_hero__logoImage_1xib4_42";
8
+ const hero__overlay = "_hero__overlay_1xib4_59";
9
+ const hero__content = "_hero__content_1xib4_71";
10
+ const hero__card = "_hero__card_1xib4_86";
11
+ const hero__main = "_hero__main_1xib4_95";
12
+ const hero__text = "_hero__text_1xib4_101";
13
+ const hero__header = "_hero__header_1xib4_107";
14
+ const hero__label = "_hero__label_1xib4_113";
15
+ const hero__heading = "_hero__heading_1xib4_117";
16
+ const hero__description = "_hero__description_1xib4_135";
17
+ const hero__actions = "_hero__actions_1xib4_150";
18
18
  const styles = {
19
19
  hero,
20
20
  hero__background,
@@ -28,12 +28,9 @@ const styles = {
28
28
  hero__header,
29
29
  hero__label,
30
30
  hero__heading,
31
- "hero__heading--xl": "_hero__heading--xl_c98qx_129",
32
- "hero__heading--lg": "_hero__heading--lg_c98qx_133",
33
- "hero__heading--md": "_hero__heading--md_c98qx_137",
34
- "hero__heading--sm": "_hero__heading--sm_c98qx_141",
35
- "hero__heading--xs": "_hero__heading--xs_c98qx_145",
36
- "hero__heading--xxs": "_hero__heading--xxs_c98qx_149",
31
+ "hero__heading--default": "_hero__heading--default_1xib4_123",
32
+ "hero__heading--large": "_hero__heading--large_1xib4_127",
33
+ "hero__heading--small": "_hero__heading--small_1xib4_131",
37
34
  hero__description,
38
35
  hero__actions
39
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Hero.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,18 +1,18 @@
1
1
  import './Hero.css';
2
- const hero = "_hero_c98qx_1";
3
- const hero__background = "_hero__background_c98qx_11";
4
- const hero__backgroundImageComponent = "_hero__backgroundImageComponent_c98qx_20";
5
- const hero__logoImage = "_hero__logoImage_c98qx_42";
6
- const hero__overlay = "_hero__overlay_c98qx_63";
7
- const hero__content = "_hero__content_c98qx_75";
8
- const hero__card = "_hero__card_c98qx_90";
9
- const hero__main = "_hero__main_c98qx_101";
10
- const hero__text = "_hero__text_c98qx_107";
11
- const hero__header = "_hero__header_c98qx_113";
12
- const hero__label = "_hero__label_c98qx_119";
13
- const hero__heading = "_hero__heading_c98qx_123";
14
- const hero__description = "_hero__description_c98qx_153";
15
- const hero__actions = "_hero__actions_c98qx_168";
2
+ const hero = "_hero_1xib4_1";
3
+ const hero__background = "_hero__background_1xib4_11";
4
+ const hero__backgroundImageComponent = "_hero__backgroundImageComponent_1xib4_20";
5
+ const hero__logoImage = "_hero__logoImage_1xib4_42";
6
+ const hero__overlay = "_hero__overlay_1xib4_59";
7
+ const hero__content = "_hero__content_1xib4_71";
8
+ const hero__card = "_hero__card_1xib4_86";
9
+ const hero__main = "_hero__main_1xib4_95";
10
+ const hero__text = "_hero__text_1xib4_101";
11
+ const hero__header = "_hero__header_1xib4_107";
12
+ const hero__label = "_hero__label_1xib4_113";
13
+ const hero__heading = "_hero__heading_1xib4_117";
14
+ const hero__description = "_hero__description_1xib4_135";
15
+ const hero__actions = "_hero__actions_1xib4_150";
16
16
  const styles = {
17
17
  hero,
18
18
  hero__background,
@@ -26,12 +26,9 @@ const styles = {
26
26
  hero__header,
27
27
  hero__label,
28
28
  hero__heading,
29
- "hero__heading--xl": "_hero__heading--xl_c98qx_129",
30
- "hero__heading--lg": "_hero__heading--lg_c98qx_133",
31
- "hero__heading--md": "_hero__heading--md_c98qx_137",
32
- "hero__heading--sm": "_hero__heading--sm_c98qx_141",
33
- "hero__heading--xs": "_hero__heading--xs_c98qx_145",
34
- "hero__heading--xxs": "_hero__heading--xxs_c98qx_149",
29
+ "hero__heading--default": "_hero__heading--default_1xib4_123",
30
+ "hero__heading--large": "_hero__heading--large_1xib4_127",
31
+ "hero__heading--small": "_hero__heading--small_1xib4_131",
35
32
  hero__description,
36
33
  hero__actions
37
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Hero.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,9 @@
1
1
  import { ComponentPropsWithRef, CSSProperties, ElementType, ReactElement, ReactNode } from 'react';
2
2
  export type HeroHeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
3
+ export type HeroHeadingStyle = 'default' | 'large' | 'small';
3
4
  export type HeroCommonImageProps = Omit<ComponentPropsWithRef<'img'>, 'ref'>;
4
5
  export type HeroImageComponent = ElementType<HeroCommonImageProps>;
5
- export interface HeroProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
6
+ export interface HeroProps extends Omit<ComponentPropsWithRef<'section'>, 'children'> {
6
7
  /**
7
8
  * Optional label element displayed above the heading.
8
9
  */
@@ -10,15 +11,19 @@ export interface HeroProps extends Omit<ComponentPropsWithRef<'div'>, 'children'
10
11
  /**
11
12
  * Main hero heading.
12
13
  */
13
- readonly heading: string;
14
+ readonly heading: ReactNode;
14
15
  /**
15
16
  * Supporting descriptive text.
16
17
  */
17
18
  readonly description?: ReactNode;
18
19
  /**
19
- * Heading HTML level. Defaults to `h1`.
20
+ * Heading HTML level (h1, h2, h3, h4, h5, h6). Defaults to h1.
20
21
  */
21
22
  readonly headingLevel?: HeroHeadingLevel;
23
+ /**
24
+ * Heading text style (default, large or small). Default value is 'default'.
25
+ */
26
+ readonly headingStyle?: HeroHeadingStyle;
22
27
  /**
23
28
  * Decorative image component to use as the Hero background.
24
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.types.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,SAAS,EACZ,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACvE,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,U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oB,CAAC,CAAC;AAEnE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC;IACjF;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,oBAAoB,CAAC;IAC/C;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC5D;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;CACxC"}
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const Hero_module = require("./Hero.module.css.cjs");
4
- const 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
- h6: Hero_module.default["hero__heading--xxs"]
4
+ const headingClassByStyle = {
5
+ default: Hero_module.default["hero__heading--default"],
6
+ large: Hero_module.default["hero__heading--large"],
7
+ small: Hero_module.default["hero__heading--small"]
11
8
  };
12
- exports.headingClassByLevel = headingClassByLevel;
9
+ exports.headingClassByStyle = headingClassByStyle;
13
10
  //# sourceMappingURL=Hero.utils.cjs.map
@@ -1 +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 h6: styles['hero__heading--xxs'],\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;AAAA,EAC9B,IAAIA,YAAAA,QAAO,oBAAoB;AACnC;;"}
1
+ {"version":3,"file":"Hero.utils.cjs","sources":["../../../src/components/Hero/Hero.utils.ts"],"sourcesContent":["import styles from './Hero.module.css';\nimport type { HeroHeadingStyle } from './Hero.types';\n\nexport const headingClassByStyle: Record<HeroHeadingStyle, string> = {\n default: styles['hero__heading--default'],\n large: styles['hero__heading--large'],\n small: styles['hero__heading--small'],\n};\n"],"names":["styles"],"mappings":";;;AAGO,MAAM,sBAAwD;AAAA,EACjE,SAASA,YAAAA,QAAO,wBAAwB;AAAA,EACxC,OAAOA,YAAAA,QAAO,sBAAsB;AAAA,EACpC,OAAOA,YAAAA,QAAO,sBAAsB;AACxC;;"}
@@ -1,3 +1,3 @@
1
- import { HeroHeadingLevel } from './Hero.types';
2
- export declare const headingClassByLevel: Record<HeroHeadingLevel, string>;
1
+ import { HeroHeadingStyle } from './Hero.types';
2
+ export declare const headingClassByStyle: Record<HeroHeadingStyle, string>;
3
3
  //# sourceMappingURL=Hero.utils.d.ts.map
@@ -1 +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,CAOhE,CAAC"}
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,CAIhE,CAAC"}
@@ -1,13 +1,10 @@
1
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
- h6: styles["hero__heading--xxs"]
2
+ const headingClassByStyle = {
3
+ default: styles["hero__heading--default"],
4
+ large: styles["hero__heading--large"],
5
+ small: styles["hero__heading--small"]
9
6
  };
10
7
  export {
11
- headingClassByLevel
8
+ headingClassByStyle
12
9
  };
13
10
  //# sourceMappingURL=Hero.utils.js.map
@@ -1 +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 h6: styles['hero__heading--xxs'],\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;AAAA,EAC9B,IAAI,OAAO,oBAAoB;AACnC;"}
1
+ {"version":3,"file":"Hero.utils.js","sources":["../../../src/components/Hero/Hero.utils.ts"],"sourcesContent":["import styles from './Hero.module.css';\nimport type { HeroHeadingStyle } from './Hero.types';\n\nexport const headingClassByStyle: Record<HeroHeadingStyle, string> = {\n default: styles['hero__heading--default'],\n large: styles['hero__heading--large'],\n small: styles['hero__heading--small'],\n};\n"],"names":[],"mappings":";AAGO,MAAM,sBAAwD;AAAA,EACjE,SAAS,OAAO,wBAAwB;AAAA,EACxC,OAAO,OAAO,sBAAsB;AAAA,EACpC,OAAO,OAAO,sBAAsB;AACxC;"}
@@ -1,4 +1,4 @@
1
- @layer dds-components {._icon-button_1iv9h_1 {
1
+ @layer dds-components {._icon-button_mhilb_1 {
2
2
  --_button-icon-size: 24px;
3
3
 
4
4
  display: inline-flex;
@@ -8,7 +8,6 @@
8
8
  max-width: 100%;
9
9
  min-width: 0;
10
10
  border: none;
11
- border-radius: var(--radius-semantic-sm);
12
11
  padding: 0;
13
12
  background: transparent;
14
13
  font: var(--typography-label-lg-bold);
@@ -20,17 +19,17 @@
20
19
  text-decoration-color 0.2s ease-in-out;
21
20
  }
22
21
 
23
- ._icon-button--normal_1iv9h_23 {
22
+ ._icon-button--normal_mhilb_22 {
24
23
  font: var(--typography-label-lg-bold);
25
24
  --_button-icon-size: 24px;
26
25
  }
27
26
 
28
- ._icon-button--small_1iv9h_28 {
27
+ ._icon-button--small_mhilb_27 {
29
28
  font: var(--typography-label-md-bold);
30
29
  --_button-icon-size: 20px;
31
30
  }
32
31
 
33
- ._icon-button__label_1iv9h_33 {
32
+ ._icon-button__label_mhilb_32 {
34
33
  flex: 0 1 auto;
35
34
  min-width: 0;
36
35
  overflow: hidden;
@@ -42,7 +41,7 @@
42
41
  line-height: var(--typography-line-height-md);
43
42
  }
44
43
 
45
- ._icon-button__label--wrap_1iv9h_45 {
44
+ ._icon-button__label--wrap_mhilb_44 {
46
45
  overflow: visible;
47
46
  text-overflow: clip;
48
47
  white-space: normal;
@@ -50,7 +49,7 @@
50
49
  text-align: left;
51
50
  }
52
51
 
53
- ._icon-button__icon_1iv9h_53 {
52
+ ._icon-button__icon_mhilb_52 {
54
53
  display: inline-flex;
55
54
  align-items: center;
56
55
  justify-content: center;
@@ -66,26 +65,26 @@
66
65
  }
67
66
 
68
67
  /* Shared interaction states */
69
- ._icon-button_1iv9h_1:hover,
70
- ._icon-button_1iv9h_1:focus-visible {
71
- ._icon-button__label_1iv9h_33 {
68
+ ._icon-button_mhilb_1:hover,
69
+ ._icon-button_mhilb_1:focus-visible {
70
+ ._icon-button__label_mhilb_32 {
72
71
  text-decoration-color: currentColor;
73
72
  }
74
73
 
75
- ._icon-button__icon_1iv9h_53 {
74
+ ._icon-button__icon_mhilb_52 {
76
75
  color: var(--color-semantic-interactive-primary-hover);
77
76
  }
78
77
  }
79
78
 
80
- ._icon-button_1iv9h_1:active ._icon-button__icon_1iv9h_53 {
79
+ ._icon-button_mhilb_1:active ._icon-button__icon_mhilb_52 {
81
80
  color: var(--color-semantic-interactive-primary-active);
82
81
  }
83
82
 
84
83
  /* Optional link coloring */
85
- ._icon-button--link-coloring_1iv9h_85 {
84
+ ._icon-button--link-coloring_mhilb_84 {
86
85
  color: var(--color-semantic-foreground-link);
87
86
 
88
- ._icon-button__icon_1iv9h_53 {
87
+ ._icon-button__icon_mhilb_52 {
89
88
  color: var(--color-semantic-foreground-link);
90
89
  }
91
90
 
@@ -93,7 +92,7 @@
93
92
  &:focus-visible {
94
93
  color: var(--color-semantic-foreground-link-hover);
95
94
 
96
- ._icon-button__icon_1iv9h_53 {
95
+ ._icon-button__icon_mhilb_52 {
97
96
  color: var(--color-semantic-foreground-link-hover);
98
97
  }
99
98
  }
@@ -101,49 +100,49 @@
101
100
  &:active {
102
101
  color: var(--color-semantic-interactive-primary-active);
103
102
 
104
- ._icon-button__icon_1iv9h_53 {
103
+ ._icon-button__icon_mhilb_52 {
105
104
  color: var(--color-semantic-interactive-primary-active);
106
105
  }
107
106
  }
108
107
  }
109
108
 
110
109
  /* Disabled/loading states */
111
- ._icon-button--disabled_1iv9h_111,
112
- ._icon-button--loading_1iv9h_112 {
110
+ ._icon-button--disabled_mhilb_110,
111
+ ._icon-button--loading_mhilb_111 {
113
112
  pointer-events: none;
114
113
  }
115
114
 
116
- ._icon-button--disabled_1iv9h_111 {
115
+ ._icon-button--disabled_mhilb_110 {
117
116
  color: var(--color-semantic-foreground-muted);
118
117
 
119
- ._icon-button__icon_1iv9h_53 {
118
+ ._icon-button__icon_mhilb_52 {
120
119
  color: var(--color-semantic-interactive-primary-disabled);
121
120
  }
122
121
  }
123
122
 
124
123
  /* Dark scheme overrides */
125
124
  @scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
126
- ._icon-button_1iv9h_1 {
125
+ ._icon-button_mhilb_1 {
127
126
  color: var(--color-semantic-foreground-inverse);
128
127
  }
129
128
 
130
- ._icon-button_1iv9h_1 ._icon-button__icon_1iv9h_53 {
129
+ ._icon-button_mhilb_1 ._icon-button__icon_mhilb_52 {
131
130
  color: var(--color-semantic-interactive-inverse-default);
132
131
  }
133
132
 
134
- ._icon-button_1iv9h_1:hover ._icon-button__icon_1iv9h_53,
135
- ._icon-button_1iv9h_1:focus-visible ._icon-button__icon_1iv9h_53 {
133
+ ._icon-button_mhilb_1:hover ._icon-button__icon_mhilb_52,
134
+ ._icon-button_mhilb_1:focus-visible ._icon-button__icon_mhilb_52 {
136
135
  color: var(--color-semantic-interactive-inverse-hover);
137
136
  }
138
137
 
139
- ._icon-button_1iv9h_1:active ._icon-button__icon_1iv9h_53 {
138
+ ._icon-button_mhilb_1:active ._icon-button__icon_mhilb_52 {
140
139
  color: var(--color-semantic-interactive-inverse-active);
141
140
  }
142
141
 
143
- ._icon-button--link-coloring_1iv9h_85 {
142
+ ._icon-button--link-coloring_mhilb_84 {
144
143
  color: var(--color-semantic-foreground-inverse);
145
144
 
146
- ._icon-button__icon_1iv9h_53 {
145
+ ._icon-button__icon_mhilb_52 {
147
146
  color: var(--color-semantic-foreground-inverse);
148
147
  }
149
148
 
@@ -151,7 +150,7 @@
151
150
  &:focus-visible {
152
151
  color: var(--color-semantic-foreground-inverse);
153
152
 
154
- ._icon-button__icon_1iv9h_53 {
153
+ ._icon-button__icon_mhilb_52 {
155
154
  color: var(--color-semantic-foreground-inverse);
156
155
  }
157
156
  }
@@ -159,21 +158,21 @@
159
158
  &:active {
160
159
  color: var(--color-semantic-foreground-inverse);
161
160
 
162
- ._icon-button__icon_1iv9h_53 {
161
+ ._icon-button__icon_mhilb_52 {
163
162
  color: var(--color-semantic-foreground-inverse);
164
163
  }
165
164
  }
166
165
  }
167
166
 
168
- ._icon-button--disabled_1iv9h_111 {
169
- ._icon-button__icon_1iv9h_53 {
167
+ ._icon-button--disabled_mhilb_110 {
168
+ ._icon-button__icon_mhilb_52 {
170
169
  color: var(--color-semantic-interactive-inverse-disabled);
171
170
  }
172
171
  }
173
172
  }
174
173
 
175
174
  @media (forced-colors: active) {
176
- ._icon-button--small_1iv9h_28:focus-visible {
175
+ ._icon-button--small_mhilb_27:focus-visible {
177
176
  outline-color: Highlight;
178
177
  box-shadow: none;
179
178
  }
@@ -1,15 +1,15 @@
1
1
  require('./IconButton.css');
2
2
  "use strict";
3
3
  const styles = {
4
- "icon-button": "_icon-button_1iv9h_1",
5
- "icon-button--normal": "_icon-button--normal_1iv9h_23",
6
- "icon-button--small": "_icon-button--small_1iv9h_28",
7
- "icon-button__label": "_icon-button__label_1iv9h_33",
8
- "icon-button__label--wrap": "_icon-button__label--wrap_1iv9h_45",
9
- "icon-button__icon": "_icon-button__icon_1iv9h_53",
10
- "icon-button--link-coloring": "_icon-button--link-coloring_1iv9h_85",
11
- "icon-button--disabled": "_icon-button--disabled_1iv9h_111",
12
- "icon-button--loading": "_icon-button--loading_1iv9h_112"
4
+ "icon-button": "_icon-button_mhilb_1",
5
+ "icon-button--normal": "_icon-button--normal_mhilb_22",
6
+ "icon-button--small": "_icon-button--small_mhilb_27",
7
+ "icon-button__label": "_icon-button__label_mhilb_32",
8
+ "icon-button__label--wrap": "_icon-button__label--wrap_mhilb_44",
9
+ "icon-button__icon": "_icon-button__icon_mhilb_52",
10
+ "icon-button--link-coloring": "_icon-button--link-coloring_mhilb_84",
11
+ "icon-button--disabled": "_icon-button--disabled_mhilb_110",
12
+ "icon-button--loading": "_icon-button--loading_mhilb_111"
13
13
  };
14
14
  module.exports = styles;
15
15
  //# sourceMappingURL=IconButton.module.css.cjs.map
@@ -1,14 +1,14 @@
1
1
  import './IconButton.css';
2
2
  const styles = {
3
- "icon-button": "_icon-button_1iv9h_1",
4
- "icon-button--normal": "_icon-button--normal_1iv9h_23",
5
- "icon-button--small": "_icon-button--small_1iv9h_28",
6
- "icon-button__label": "_icon-button__label_1iv9h_33",
7
- "icon-button__label--wrap": "_icon-button__label--wrap_1iv9h_45",
8
- "icon-button__icon": "_icon-button__icon_1iv9h_53",
9
- "icon-button--link-coloring": "_icon-button--link-coloring_1iv9h_85",
10
- "icon-button--disabled": "_icon-button--disabled_1iv9h_111",
11
- "icon-button--loading": "_icon-button--loading_1iv9h_112"
3
+ "icon-button": "_icon-button_mhilb_1",
4
+ "icon-button--normal": "_icon-button--normal_mhilb_22",
5
+ "icon-button--small": "_icon-button--small_mhilb_27",
6
+ "icon-button__label": "_icon-button__label_mhilb_32",
7
+ "icon-button__label--wrap": "_icon-button__label--wrap_mhilb_44",
8
+ "icon-button__icon": "_icon-button__icon_mhilb_52",
9
+ "icon-button--link-coloring": "_icon-button--link-coloring_mhilb_84",
10
+ "icon-button--disabled": "_icon-button--disabled_mhilb_110",
11
+ "icon-button--loading": "_icon-button--loading_mhilb_111"
12
12
  };
13
13
  export {
14
14
  styles as default