@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
@@ -0,0 +1,74 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useId } from "react";
3
+ import elevationStyles from "../../styles/utils/elevation.module.css.js";
4
+ import styles from "./Hero.module.css.js";
5
+ import { headingClassByLevel } from "./Hero.utils.js";
6
+ import { cn } from "../../utils/cn/cn.js";
7
+ const Hero = ({
8
+ label,
9
+ heading,
10
+ description,
11
+ headingLevel = "h1",
12
+ Image,
13
+ imageProps,
14
+ LogoImage,
15
+ logoImageProps,
16
+ backgroundColor,
17
+ primaryCta,
18
+ secondaryCta,
19
+ className,
20
+ ref,
21
+ ...props
22
+ }) => {
23
+ const headingId = useId();
24
+ const ResolvedImage = Image ?? (imageProps != null ? "img" : void 0);
25
+ const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? "img" : void 0);
26
+ const image = ResolvedImage != null ? /* @__PURE__ */ jsx(ResolvedImage, { ...imageProps }) : void 0;
27
+ const logoImage = ResolvedLogoImage != null ? /* @__PURE__ */ jsx(ResolvedLogoImage, { ...logoImageProps }) : void 0;
28
+ const hasActions = primaryCta != null || secondaryCta != null;
29
+ const backgroundStyle = image == null && backgroundColor != null ? { backgroundColor } : void 0;
30
+ const HeadingLevel = headingLevel;
31
+ return /* @__PURE__ */ jsxs(
32
+ "div",
33
+ {
34
+ ref,
35
+ ...props,
36
+ className: cn(styles.hero, className),
37
+ "data-testid": props["data-testid"],
38
+ children: [
39
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__background, style: backgroundStyle, children: [
40
+ image != null && /* @__PURE__ */ jsx("div", { className: styles.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
41
+ logoImage != null && /* @__PURE__ */ jsx("div", { className: styles.hero__logoImage, "aria-hidden": "true", children: logoImage }),
42
+ /* @__PURE__ */ jsx("div", { className: styles.hero__overlay, "aria-hidden": "true" })
43
+ ] }),
44
+ /* @__PURE__ */ jsx("div", { className: styles.hero__content, children: /* @__PURE__ */ jsx("div", { className: cn(styles.hero__card, elevationStyles.elevationExtraHigh), children: /* @__PURE__ */ jsxs("div", { className: styles.hero__main, children: [
45
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__text, children: [
46
+ /* @__PURE__ */ jsxs("div", { className: styles.hero__header, children: [
47
+ label != null && /* @__PURE__ */ jsx("div", { className: styles.hero__label, children: label }),
48
+ /* @__PURE__ */ jsx(
49
+ HeadingLevel,
50
+ {
51
+ id: headingId,
52
+ className: cn(
53
+ styles.hero__heading,
54
+ headingClassByLevel[headingLevel]
55
+ ),
56
+ children: heading
57
+ }
58
+ )
59
+ ] }),
60
+ description != null && /* @__PURE__ */ jsx("div", { className: cn(styles.hero__description, "dds-prose"), children: description })
61
+ ] }),
62
+ hasActions && /* @__PURE__ */ jsxs("div", { className: styles.hero__actions, children: [
63
+ primaryCta != null && primaryCta,
64
+ secondaryCta != null && secondaryCta
65
+ ] })
66
+ ] }) }) })
67
+ ]
68
+ }
69
+ );
70
+ };
71
+ export {
72
+ Hero
73
+ };
74
+ //# sourceMappingURL=Hero.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.js","sources":["../../../src/components/Hero/Hero.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { cn } from '../../utils/cn';\nimport elevationStyles from '../../styles/utils/elevation.module.css';\nimport styles from './Hero.module.css';\nimport type { HeroProps } from './Hero.types';\nimport { headingClassByLevel } from './Hero.utils';\n\nexport const Hero = ({\n label,\n heading,\n description,\n headingLevel = 'h1',\n Image,\n imageProps,\n LogoImage,\n logoImageProps,\n backgroundColor,\n primaryCta,\n secondaryCta,\n className,\n ref,\n ...props\n}: HeroProps) => {\n const headingId = useId();\n\n const ResolvedImage = Image ?? (imageProps != null ? 'img' : undefined);\n const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? 'img' : undefined);\n const image = ResolvedImage != null ? <ResolvedImage {...imageProps} /> : undefined;\n const logoImage =\n ResolvedLogoImage != null ? <ResolvedLogoImage {...logoImageProps} /> : undefined;\n\n const hasActions = primaryCta != null || secondaryCta != null;\n const backgroundStyle =\n image == null && backgroundColor != null ? { backgroundColor } : undefined;\n const HeadingLevel = headingLevel;\n\n return (\n <div\n ref={ref}\n {...props}\n className={cn(styles.hero, className)}\n data-testid={props['data-testid']}\n >\n <div className={styles.hero__background} style={backgroundStyle}>\n {image != null && (\n <div className={styles.hero__backgroundImageComponent} aria-hidden=\"true\">\n {image}\n </div>\n )}\n {logoImage != null && (\n <div className={styles.hero__logoImage} aria-hidden=\"true\">\n {logoImage}\n </div>\n )}\n <div className={styles.hero__overlay} aria-hidden=\"true\" />\n </div>\n\n <div className={styles.hero__content}>\n <div className={cn(styles.hero__card, elevationStyles.elevationExtraHigh)}>\n <div className={styles.hero__main}>\n <div className={styles.hero__text}>\n <div className={styles.hero__header}>\n {label != null && <div className={styles.hero__label}>{label}</div>}\n <HeadingLevel\n id={headingId}\n className={cn(\n styles.hero__heading,\n headingClassByLevel[headingLevel],\n )}\n >\n {heading}\n </HeadingLevel>\n </div>\n {description != null && (\n <div className={cn(styles.hero__description, 'dds-prose')}>\n {description}\n </div>\n )}\n </div>\n\n {hasActions && (\n <div className={styles.hero__actions}>\n {primaryCta != null && primaryCta}\n {secondaryCta != null && secondaryCta}\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAOO,MAAM,OAAO,CAAC;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAiB;AACb,QAAM,YAAY,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;AAE5E,QAAM,aAAa,cAAc,QAAQ,gBAAgB;AACzD,QAAM,kBACF,SAAS,QAAQ,mBAAmB,OAAO,EAAE,oBAAoB;AACrE,QAAM,eAAe;AAErB,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACC,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,SAAS;AAAA,MACpC,eAAa,MAAM,aAAa;AAAA,MAEhC,UAAA;AAAA,QAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,kBAAkB,OAAO,iBAC3C,UAAA;AAAA,UAAA,SAAS,4BACL,OAAA,EAAI,WAAW,OAAO,gCAAgC,eAAY,QAC9D,UAAA,MAAA,CACL;AAAA,UAEH,aAAa,QACV,oBAAC,OAAA,EAAI,WAAW,OAAO,iBAAiB,eAAY,QAC/C,UAAA,UAAA,CACL;AAAA,8BAEH,OAAA,EAAI,WAAW,OAAO,eAAe,eAAY,OAAA,CAAO;AAAA,QAAA,GAC7D;AAAA,4BAEC,OAAA,EAAI,WAAW,OAAO,eACnB,UAAA,oBAAC,SAAI,WAAW,GAAG,OAAO,YAAY,gBAAgB,kBAAkB,GACpE,+BAAC,OAAA,EAAI,WAAW,OAAO,YACnB,UAAA;AAAA,UAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,YACnB,UAAA;AAAA,YAAA,qBAAC,OAAA,EAAI,WAAW,OAAO,cAClB,UAAA;AAAA,cAAA,SAAS,QAAQ,oBAAC,OAAA,EAAI,WAAW,OAAO,aAAc,UAAA,OAAM;AAAA,cAC7D;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACG,IAAI;AAAA,kBACJ,WAAW;AAAA,oBACP,OAAO;AAAA,oBACP,oBAAoB,YAAY;AAAA,kBAAA;AAAA,kBAGnC,UAAA;AAAA,gBAAA;AAAA,cAAA;AAAA,YACL,GACJ;AAAA,YACC,eAAe,QACZ,oBAAC,OAAA,EAAI,WAAW,GAAG,OAAO,mBAAmB,WAAW,GACnD,UAAA,YAAA,CACL;AAAA,UAAA,GAER;AAAA,UAEC,cACG,qBAAC,OAAA,EAAI,WAAW,OAAO,eAClB,UAAA;AAAA,YAAA,cAAc,QAAQ;AAAA,YACtB,gBAAgB,QAAQ;AAAA,UAAA,EAAA,CAC7B;AAAA,QAAA,EAAA,CAER,GACJ,EAAA,CACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
@@ -0,0 +1,54 @@
1
+ require('./Hero.css');
2
+ "use strict";
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
+ const hero = "_hero_905ff_1";
5
+ const hero__background = "_hero__background_905ff_11";
6
+ const hero__backgroundImageComponent = "_hero__backgroundImageComponent_905ff_20";
7
+ const hero__logoImage = "_hero__logoImage_905ff_42";
8
+ const hero__overlay = "_hero__overlay_905ff_63";
9
+ const hero__content = "_hero__content_905ff_75";
10
+ const hero__card = "_hero__card_905ff_90";
11
+ const hero__main = "_hero__main_905ff_101";
12
+ const hero__text = "_hero__text_905ff_107";
13
+ const hero__header = "_hero__header_905ff_113";
14
+ const hero__label = "_hero__label_905ff_119";
15
+ const hero__heading = "_hero__heading_905ff_123";
16
+ const hero__description = "_hero__description_905ff_149";
17
+ const hero__actions = "_hero__actions_905ff_164";
18
+ const styles = {
19
+ hero,
20
+ hero__background,
21
+ hero__backgroundImageComponent,
22
+ hero__logoImage,
23
+ hero__overlay,
24
+ hero__content,
25
+ hero__card,
26
+ hero__main,
27
+ hero__text,
28
+ hero__header,
29
+ hero__label,
30
+ hero__heading,
31
+ "hero__heading--xl": "_hero__heading--xl_905ff_129",
32
+ "hero__heading--lg": "_hero__heading--lg_905ff_133",
33
+ "hero__heading--md": "_hero__heading--md_905ff_137",
34
+ "hero__heading--sm": "_hero__heading--sm_905ff_141",
35
+ "hero__heading--xs": "_hero__heading--xs_905ff_145",
36
+ hero__description,
37
+ hero__actions
38
+ };
39
+ exports.default = styles;
40
+ exports.hero = hero;
41
+ exports.hero__actions = hero__actions;
42
+ exports.hero__background = hero__background;
43
+ exports.hero__backgroundImageComponent = hero__backgroundImageComponent;
44
+ exports.hero__card = hero__card;
45
+ exports.hero__content = hero__content;
46
+ exports.hero__description = hero__description;
47
+ exports.hero__header = hero__header;
48
+ exports.hero__heading = hero__heading;
49
+ exports.hero__label = hero__label;
50
+ exports.hero__logoImage = hero__logoImage;
51
+ exports.hero__main = hero__main;
52
+ exports.hero__overlay = hero__overlay;
53
+ exports.hero__text = hero__text;
54
+ //# sourceMappingURL=Hero.module.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,54 @@
1
+ import './Hero.css';
2
+ const hero = "_hero_905ff_1";
3
+ const hero__background = "_hero__background_905ff_11";
4
+ const hero__backgroundImageComponent = "_hero__backgroundImageComponent_905ff_20";
5
+ const hero__logoImage = "_hero__logoImage_905ff_42";
6
+ const hero__overlay = "_hero__overlay_905ff_63";
7
+ const hero__content = "_hero__content_905ff_75";
8
+ const hero__card = "_hero__card_905ff_90";
9
+ const hero__main = "_hero__main_905ff_101";
10
+ const hero__text = "_hero__text_905ff_107";
11
+ const hero__header = "_hero__header_905ff_113";
12
+ const hero__label = "_hero__label_905ff_119";
13
+ const hero__heading = "_hero__heading_905ff_123";
14
+ const hero__description = "_hero__description_905ff_149";
15
+ const hero__actions = "_hero__actions_905ff_164";
16
+ const styles = {
17
+ hero,
18
+ hero__background,
19
+ hero__backgroundImageComponent,
20
+ hero__logoImage,
21
+ hero__overlay,
22
+ hero__content,
23
+ hero__card,
24
+ hero__main,
25
+ hero__text,
26
+ hero__header,
27
+ hero__label,
28
+ hero__heading,
29
+ "hero__heading--xl": "_hero__heading--xl_905ff_129",
30
+ "hero__heading--lg": "_hero__heading--lg_905ff_133",
31
+ "hero__heading--md": "_hero__heading--md_905ff_137",
32
+ "hero__heading--sm": "_hero__heading--sm_905ff_141",
33
+ "hero__heading--xs": "_hero__heading--xs_905ff_145",
34
+ hero__description,
35
+ hero__actions
36
+ };
37
+ export {
38
+ styles as default,
39
+ hero,
40
+ hero__actions,
41
+ hero__background,
42
+ hero__backgroundImageComponent,
43
+ hero__card,
44
+ hero__content,
45
+ hero__description,
46
+ hero__header,
47
+ hero__heading,
48
+ hero__label,
49
+ hero__logoImage,
50
+ hero__main,
51
+ hero__overlay,
52
+ hero__text
53
+ };
54
+ //# sourceMappingURL=Hero.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,55 @@
1
+ import { ComponentPropsWithRef, CSSProperties, ElementType, ReactElement, ReactNode } from 'react';
2
+ export type HeroHeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
3
+ export type HeroCommonImageProps = Omit<ComponentPropsWithRef<'img'>, 'ref'>;
4
+ export type HeroImageComponent = ElementType<HeroCommonImageProps>;
5
+ export interface HeroProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
6
+ /**
7
+ * Optional label element displayed above the heading.
8
+ */
9
+ readonly label?: ReactElement;
10
+ /**
11
+ * Main hero heading.
12
+ */
13
+ readonly heading: string;
14
+ /**
15
+ * Supporting descriptive text.
16
+ */
17
+ readonly description?: ReactNode;
18
+ /**
19
+ * Heading HTML level. Defaults to `h1`.
20
+ */
21
+ readonly headingLevel?: HeroHeadingLevel;
22
+ /**
23
+ * Decorative image component to use as the Hero background.
24
+ */
25
+ readonly Image?: HeroImageComponent;
26
+ /**
27
+ * Props for the background image component.
28
+ */
29
+ readonly imageProps?: HeroCommonImageProps;
30
+ /**
31
+ * Optional decorative logo image component for logo-style Hero variants.
32
+ */
33
+ readonly LogoImage?: HeroImageComponent;
34
+ /**
35
+ * Props for the logo image component.
36
+ */
37
+ readonly logoImageProps?: HeroCommonImageProps;
38
+ /**
39
+ * Background color used when no background `Image` is provided.
40
+ */
41
+ readonly backgroundColor?: CSSProperties['backgroundColor'];
42
+ /**
43
+ * Primary call-to-action element.
44
+ */
45
+ readonly primaryCta?: ReactElement;
46
+ /**
47
+ * Secondary call-to-action element.
48
+ */
49
+ readonly secondaryCta?: ReactElement;
50
+ /**
51
+ * Allows passing a `data-testid` string for testing purposes.
52
+ */
53
+ readonly 'data-testid'?: string;
54
+ }
55
+ //# sourceMappingURL=Hero.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.types.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,SAAS,EACZ,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;AAEnE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC7E;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,oBAAoB,CAAC;IAC/C;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC5D;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACnC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const Hero_module = require("./Hero.module.css.cjs");
4
+ const headingClassByLevel = {
5
+ h1: Hero_module.default["hero__heading--xl"],
6
+ h2: Hero_module.default["hero__heading--lg"],
7
+ h3: Hero_module.default["hero__heading--md"],
8
+ h4: Hero_module.default["hero__heading--sm"],
9
+ h5: Hero_module.default["hero__heading--xs"]
10
+ };
11
+ exports.headingClassByLevel = headingClassByLevel;
12
+ //# sourceMappingURL=Hero.utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.utils.cjs","sources":["../../../src/components/Hero/Hero.utils.ts"],"sourcesContent":["import styles from './Hero.module.css';\nimport type { HeroHeadingLevel } from './Hero.types';\n\nexport const headingClassByLevel: Record<HeroHeadingLevel, string> = {\n h1: styles['hero__heading--xl'],\n h2: styles['hero__heading--lg'],\n h3: styles['hero__heading--md'],\n h4: styles['hero__heading--sm'],\n h5: styles['hero__heading--xs'],\n};\n"],"names":["styles"],"mappings":";;;AAGO,MAAM,sBAAwD;AAAA,EACjE,IAAIA,YAAAA,QAAO,mBAAmB;AAAA,EAC9B,IAAIA,YAAAA,QAAO,mBAAmB;AAAA,EAC9B,IAAIA,YAAAA,QAAO,mBAAmB;AAAA,EAC9B,IAAIA,YAAAA,QAAO,mBAAmB;AAAA,EAC9B,IAAIA,YAAAA,QAAO,mBAAmB;AAClC;;"}
@@ -0,0 +1,3 @@
1
+ import { HeroHeadingLevel } from './Hero.types';
2
+ export declare const headingClassByLevel: Record<HeroHeadingLevel, string>;
3
+ //# sourceMappingURL=Hero.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.utils.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAMhE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import styles from "./Hero.module.css.js";
2
+ const headingClassByLevel = {
3
+ h1: styles["hero__heading--xl"],
4
+ h2: styles["hero__heading--lg"],
5
+ h3: styles["hero__heading--md"],
6
+ h4: styles["hero__heading--sm"],
7
+ h5: styles["hero__heading--xs"]
8
+ };
9
+ export {
10
+ headingClassByLevel
11
+ };
12
+ //# sourceMappingURL=Hero.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.utils.js","sources":["../../../src/components/Hero/Hero.utils.ts"],"sourcesContent":["import styles from './Hero.module.css';\nimport type { HeroHeadingLevel } from './Hero.types';\n\nexport const headingClassByLevel: Record<HeroHeadingLevel, string> = {\n h1: styles['hero__heading--xl'],\n h2: styles['hero__heading--lg'],\n h3: styles['hero__heading--md'],\n h4: styles['hero__heading--sm'],\n h5: styles['hero__heading--xs'],\n};\n"],"names":[],"mappings":";AAGO,MAAM,sBAAwD;AAAA,EACjE,IAAI,OAAO,mBAAmB;AAAA,EAC9B,IAAI,OAAO,mBAAmB;AAAA,EAC9B,IAAI,OAAO,mBAAmB;AAAA,EAC9B,IAAI,OAAO,mBAAmB;AAAA,EAC9B,IAAI,OAAO,mBAAmB;AAClC;"}
@@ -0,0 +1,3 @@
1
+ export { Hero } from './Hero';
2
+ export type { HeroProps, HeroHeadingLevel, HeroCommonImageProps, HeroImageComponent, } from './Hero.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EACR,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,GACrB,MAAM,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- @layer dna-design-system {._label_1bsev_1 {
1
+ @layer dds-components {._label_1bsev_1 {
2
2
  display: inline-block;
3
3
  max-width: 100%;
4
4
  padding: var(--spacing-ui-xxs) var(--spacing-ui-lg);
@@ -1,4 +1,4 @@
1
- @layer dna-design-system {/**
1
+ @layer dds-components {/**
2
2
  * Notification Component Styles
3
3
  *
4
4
  * Design tokens are consumed via CSS custom properties (variables).
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const Pictograph_module = require("./Pictograph.module.css.cjs");
5
+ const cn = require("../../utils/cn/cn.cjs");
6
+ const Pictograph = ({
7
+ iconSize = "small",
8
+ alignment = "center",
9
+ mode = "horizontal",
10
+ columns = 3,
11
+ children,
12
+ className,
13
+ ref,
14
+ ...props
15
+ }) => {
16
+ return /* @__PURE__ */ jsxRuntime.jsx(
17
+ "div",
18
+ {
19
+ ref,
20
+ className: cn.cn(
21
+ Pictograph_module.default.pictograph,
22
+ Pictograph_module.default[`pictograph--${mode}`],
23
+ alignment === "center" && Pictograph_module.default["pictograph--centered"],
24
+ Pictograph_module.default[`pictograph--icon-${iconSize}`],
25
+ className
26
+ ),
27
+ ...props,
28
+ children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: cn.cn(Pictograph_module.default.pictograph__list, Pictograph_module.default[`pictograph__list--${columns}`]), children })
29
+ }
30
+ );
31
+ };
32
+ exports.Pictograph = Pictograph;
33
+ //# sourceMappingURL=Pictograph.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pictograph.cjs","sources":["../../../src/components/Pictograph/Pictograph.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport styles from './Pictograph.module.css';\nimport type { PictographProps } from './Pictograph.types';\n\nexport const Pictograph = ({\n iconSize = 'small',\n alignment = 'center',\n mode = 'horizontal',\n columns = 3,\n children,\n className,\n ref,\n ...props\n}: PictographProps) => {\n return (\n <div\n ref={ref}\n className={cn(\n styles.pictograph,\n styles[`pictograph--${mode}`],\n alignment === 'center' && styles['pictograph--centered'],\n styles[`pictograph--icon-${iconSize}`],\n className,\n )}\n {...props}\n >\n <ul className={cn(styles.pictograph__list, styles[`pictograph__list--${columns}`])}>\n {children}\n </ul>\n </div>\n );\n};\n"],"names":["jsx","cn","styles"],"mappings":";;;;;AAIO,MAAM,aAAa,CAAC;AAAA,EACvB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAuB;AACnB,SACIA,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA,WAAWC,GAAAA;AAAAA,QACPC,kBAAAA,QAAO;AAAA,QACPA,kBAAAA,QAAO,eAAe,IAAI,EAAE;AAAA,QAC5B,cAAc,YAAYA,kBAAAA,QAAO,sBAAsB;AAAA,QACvDA,kBAAAA,QAAO,oBAAoB,QAAQ,EAAE;AAAA,QACrC;AAAA,MAAA;AAAA,MAEH,GAAG;AAAA,MAEJ,UAAAF,2BAAAA,IAAC,MAAA,EAAG,WAAWC,GAAAA,GAAGC,kBAAAA,QAAO,kBAAkBA,kBAAAA,QAAO,qBAAqB,OAAO,EAAE,CAAC,GAC5E,SAAA,CACL;AAAA,IAAA;AAAA,EAAA;AAGZ;;"}
@@ -0,0 +1,190 @@
1
+ @layer dds-components {/**
2
+ * Pictograph Component Styles
3
+ *
4
+ * Grid-based layout for pictograph items with responsive columns,
5
+ * alignment variants, and dark color scheme support.
6
+ *
7
+ * Uses container queries for responsive behavior and CSS custom properties
8
+ * to communicate layout settings to child items.
9
+ *
10
+ * Container breakpoints (matching reference):
11
+ * 440px — large mobile
12
+ * 688px — tablet
13
+ * 944px — desktop
14
+ */
15
+
16
+ ._pictograph_11vg9_16 {
17
+ --pictograph-icon-size: 40px;
18
+ --pictograph-direction: row;
19
+ --pictograph-align: flex-start;
20
+ --pictograph-text-align: left;
21
+ --pictograph-item-gap: 20px;
22
+ --pictograph-text-color: inherit;
23
+ --pictograph-icon-color: var(--color-semantic-foreground-primary-strong);
24
+
25
+ margin: 0;
26
+ container-name: pictograph;
27
+ container-type: inline-size;
28
+ }
29
+
30
+ /* ─── Mode: vertical (icon above text) ─── */
31
+
32
+ ._pictograph--vertical_11vg9_32 {
33
+ --pictograph-direction: column;
34
+ --pictograph-item-gap: 10px;
35
+ }
36
+
37
+ /* ─── List layout ─── */
38
+
39
+ ._pictograph__list_11vg9_39 {
40
+ display: grid;
41
+ gap: 30px;
42
+ list-style: none;
43
+ margin: 0;
44
+ padding: 0;
45
+ }
46
+
47
+ /* ─── Column variants (container queries) ─── */
48
+
49
+ @container pictograph (min-width: 440px) {
50
+ ._pictograph__list--5_11vg9_50 {
51
+ grid-template-columns: repeat(2, 1fr);
52
+ }
53
+ }
54
+
55
+ @container pictograph (min-width: 688px) {
56
+ ._pictograph__list--2_11vg9_56,
57
+ ._pictograph__list--3_11vg9_57,
58
+ ._pictograph__list--4_11vg9_58 {
59
+ grid-template-columns: repeat(2, 1fr);
60
+ }
61
+
62
+ ._pictograph__list--5_11vg9_50 {
63
+ grid-template-columns: repeat(3, 1fr);
64
+ }
65
+ }
66
+
67
+ @container pictograph (min-width: 944px) {
68
+ ._pictograph__list--3_11vg9_57 {
69
+ grid-template-columns: repeat(3, 1fr);
70
+ }
71
+
72
+ ._pictograph__list--4_11vg9_58 {
73
+ grid-template-columns: repeat(4, 1fr);
74
+ }
75
+
76
+ ._pictograph__list--5_11vg9_50 {
77
+ grid-template-columns: repeat(5, 1fr);
78
+ }
79
+ }
80
+
81
+ /* ─── Mode: horizontal (icon beside text) ─── */
82
+
83
+ ._pictograph--horizontal_11vg9_83 {
84
+ --pictograph-direction: row;
85
+ --pictograph-item-gap: 20px;
86
+ }
87
+
88
+ ._pictograph--horizontal_11vg9_83 ._pictograph__list_11vg9_39 {
89
+ gap: 20px 30px;
90
+ }
91
+
92
+ /* Horizontal mode: column overrides */
93
+ ._pictograph--horizontal_11vg9_83 ._pictograph__list--4_11vg9_58,
94
+ ._pictograph--horizontal_11vg9_83 ._pictograph__list--5_11vg9_50 {
95
+ grid-template-columns: 1fr;
96
+ }
97
+
98
+ @container pictograph (min-width: 440px) {
99
+ ._pictograph--horizontal_11vg9_83 ._pictograph__list--4_11vg9_58,
100
+ ._pictograph--horizontal_11vg9_83 ._pictograph__list--5_11vg9_50 {
101
+ grid-template-columns: repeat(2, 1fr);
102
+ }
103
+ }
104
+
105
+ @container pictograph (min-width: 688px) {
106
+ ._pictograph--horizontal_11vg9_83 ._pictograph__list--5_11vg9_50 {
107
+ grid-template-columns: repeat(3, 1fr);
108
+ }
109
+ }
110
+
111
+ @container pictograph (min-width: 944px) {
112
+ ._pictograph--horizontal_11vg9_83 ._pictograph__list--4_11vg9_58 {
113
+ grid-template-columns: repeat(4, 1fr);
114
+ }
115
+
116
+ ._pictograph--horizontal_11vg9_83 ._pictograph__list--5_11vg9_50 {
117
+ grid-template-columns: repeat(5, 1fr);
118
+ }
119
+ }
120
+
121
+ /* ─── Alignment: centered ─── */
122
+
123
+ ._pictograph--centered_11vg9_123 {
124
+ --pictograph-align: center;
125
+ }
126
+
127
+ ._pictograph--vertical_11vg9_32._pictograph--centered_11vg9_123 {
128
+ --pictograph-text-align: center;
129
+ }
130
+
131
+ /* ─── Icon size: small ─── */
132
+
133
+ ._pictograph--icon-small_11vg9_133 {
134
+ --pictograph-icon-size: 40px;
135
+ }
136
+
137
+ @container pictograph (min-width: 688px) {
138
+ ._pictograph--icon-small_11vg9_133 {
139
+ --pictograph-icon-size: 52px;
140
+ }
141
+ }
142
+
143
+ /* ─── Icon size: large ─── */
144
+
145
+ ._pictograph--icon-large_11vg9_145 {
146
+ --pictograph-icon-size: 52px;
147
+ }
148
+
149
+ @container pictograph (min-width: 688px) {
150
+ ._pictograph--icon-large_11vg9_145 {
151
+ --pictograph-icon-size: 72px;
152
+ }
153
+ }
154
+
155
+ /* ─── Vertical + short text: items are compact, allow more columns earlier ─── */
156
+ /* Note: :has(li > div:last-child > p:only-child) depends on PictographItem DOM structure:
157
+ <li> → <span>(icon) + <div>(text). If PictographItem markup changes, update these selectors. */
158
+
159
+ @container pictograph (min-width: 440px) {
160
+ ._pictograph--vertical_11vg9_32:has(li > div:last-child > p:only-child) ._pictograph__list--4_11vg9_58 {
161
+ grid-template-columns: repeat(2, 1fr);
162
+ }
163
+ }
164
+
165
+ /* ─── Horizontal + long text: stack items vertically at small sizes ─── */
166
+
167
+ @container pictograph (max-width: 439px) {
168
+ ._pictograph--horizontal_11vg9_83:not(:has(li > div:last-child > p:only-child)) ._pictograph__list_11vg9_39 {
169
+ --pictograph-direction: column;
170
+ --pictograph-align: flex-start;
171
+ --pictograph-item-gap: 10px;
172
+ }
173
+ }
174
+
175
+ @container pictograph (min-width: 688px) {
176
+ ._pictograph--horizontal_11vg9_83:not(:has(li > div:last-child > p:only-child)) ._pictograph__list_11vg9_39 {
177
+ gap: 30px;
178
+ }
179
+ }
180
+
181
+ /* ─── Dark color scheme ─── */
182
+ /* Styles apply from [data-color-scheme="dark"] down to (but not into) [data-color-scheme="light"]. */
183
+
184
+ @scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
185
+ ._pictograph_11vg9_16 {
186
+ --pictograph-text-color: var(--color-semantic-foreground-inverse);
187
+ --pictograph-icon-color: var(--color-semantic-foreground-inverse);
188
+ }
189
+ }
190
+ }
@@ -0,0 +1,3 @@
1
+ import { PictographProps } from './Pictograph.types';
2
+ export declare const Pictograph: ({ iconSize, alignment, mode, columns, children, className, ref, ...props }: PictographProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=Pictograph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pictograph.d.ts","sourceRoot":"","sources":["../../../src/components/Pictograph/Pictograph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,GAAI,4EASxB,eAAe,4CAkBjB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import styles from "./Pictograph.module.css.js";
3
+ import { cn } from "../../utils/cn/cn.js";
4
+ const Pictograph = ({
5
+ iconSize = "small",
6
+ alignment = "center",
7
+ mode = "horizontal",
8
+ columns = 3,
9
+ children,
10
+ className,
11
+ ref,
12
+ ...props
13
+ }) => {
14
+ return /* @__PURE__ */ jsx(
15
+ "div",
16
+ {
17
+ ref,
18
+ className: cn(
19
+ styles.pictograph,
20
+ styles[`pictograph--${mode}`],
21
+ alignment === "center" && styles["pictograph--centered"],
22
+ styles[`pictograph--icon-${iconSize}`],
23
+ className
24
+ ),
25
+ ...props,
26
+ children: /* @__PURE__ */ jsx("ul", { className: cn(styles.pictograph__list, styles[`pictograph__list--${columns}`]), children })
27
+ }
28
+ );
29
+ };
30
+ export {
31
+ Pictograph
32
+ };
33
+ //# sourceMappingURL=Pictograph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pictograph.js","sources":["../../../src/components/Pictograph/Pictograph.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport styles from './Pictograph.module.css';\nimport type { PictographProps } from './Pictograph.types';\n\nexport const Pictograph = ({\n iconSize = 'small',\n alignment = 'center',\n mode = 'horizontal',\n columns = 3,\n children,\n className,\n ref,\n ...props\n}: PictographProps) => {\n return (\n <div\n ref={ref}\n className={cn(\n styles.pictograph,\n styles[`pictograph--${mode}`],\n alignment === 'center' && styles['pictograph--centered'],\n styles[`pictograph--icon-${iconSize}`],\n className,\n )}\n {...props}\n >\n <ul className={cn(styles.pictograph__list, styles[`pictograph__list--${columns}`])}>\n {children}\n </ul>\n </div>\n );\n};\n"],"names":[],"mappings":";;;AAIO,MAAM,aAAa,CAAC;AAAA,EACvB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAuB;AACnB,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA,WAAW;AAAA,QACP,OAAO;AAAA,QACP,OAAO,eAAe,IAAI,EAAE;AAAA,QAC5B,cAAc,YAAY,OAAO,sBAAsB;AAAA,QACvD,OAAO,oBAAoB,QAAQ,EAAE;AAAA,QACrC;AAAA,MAAA;AAAA,MAEH,GAAG;AAAA,MAEJ,UAAA,oBAAC,MAAA,EAAG,WAAW,GAAG,OAAO,kBAAkB,OAAO,qBAAqB,OAAO,EAAE,CAAC,GAC5E,SAAA,CACL;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
@@ -0,0 +1,22 @@
1
+ require('./Pictograph.css');
2
+ "use strict";
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
+ const pictograph = "_pictograph_11vg9_16";
5
+ const pictograph__list = "_pictograph__list_11vg9_39";
6
+ const styles = {
7
+ pictograph,
8
+ "pictograph--vertical": "_pictograph--vertical_11vg9_32",
9
+ pictograph__list,
10
+ "pictograph__list--5": "_pictograph__list--5_11vg9_50",
11
+ "pictograph__list--2": "_pictograph__list--2_11vg9_56",
12
+ "pictograph__list--3": "_pictograph__list--3_11vg9_57",
13
+ "pictograph__list--4": "_pictograph__list--4_11vg9_58",
14
+ "pictograph--horizontal": "_pictograph--horizontal_11vg9_83",
15
+ "pictograph--centered": "_pictograph--centered_11vg9_123",
16
+ "pictograph--icon-small": "_pictograph--icon-small_11vg9_133",
17
+ "pictograph--icon-large": "_pictograph--icon-large_11vg9_145"
18
+ };
19
+ exports.default = styles;
20
+ exports.pictograph = pictograph;
21
+ exports.pictograph__list = pictograph__list;
22
+ //# sourceMappingURL=Pictograph.module.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pictograph.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}