@dnanpm/ui-components 0.1.0 → 0.3.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 (135) hide show
  1. package/README.md +2 -2
  2. package/dist/components/Accordion/Accordion.cjs +9 -3
  3. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  4. package/dist/components/Accordion/Accordion.css +1 -1
  5. package/dist/components/Accordion/Accordion.d.ts +1 -1
  6. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  7. package/dist/components/Accordion/Accordion.js +10 -4
  8. package/dist/components/Accordion/Accordion.js.map +1 -1
  9. package/dist/components/Accordion/Accordion.types.d.ts +2 -2
  10. package/dist/components/Accordion/Accordion.types.d.ts.map +1 -1
  11. package/dist/components/AccordionItem/AccordionItem.cjs +43 -43
  12. package/dist/components/AccordionItem/AccordionItem.cjs.map +1 -1
  13. package/dist/components/AccordionItem/AccordionItem.css +20 -20
  14. package/dist/components/AccordionItem/AccordionItem.d.ts +1 -1
  15. package/dist/components/AccordionItem/AccordionItem.d.ts.map +1 -1
  16. package/dist/components/AccordionItem/AccordionItem.js +43 -43
  17. package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  18. package/dist/components/AccordionItem/AccordionItem.module.css.cjs +11 -11
  19. package/dist/components/AccordionItem/AccordionItem.module.css.js +11 -11
  20. package/dist/components/AccordionItem/AccordionItem.types.d.ts +2 -2
  21. package/dist/components/AccordionItem/AccordionItem.types.d.ts.map +1 -1
  22. package/dist/components/Breadcrumb/Breadcrumb.cjs +4 -5
  23. package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -1
  24. package/dist/components/Breadcrumb/Breadcrumb.css +16 -15
  25. package/dist/components/Breadcrumb/Breadcrumb.d.ts +1 -1
  26. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  27. package/dist/components/Breadcrumb/Breadcrumb.js +4 -5
  28. package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
  29. package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
  30. package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
  31. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +1 -5
  32. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts.map +1 -1
  33. package/dist/components/Button/Button.cjs +104 -0
  34. package/dist/components/Button/Button.cjs.map +1 -0
  35. package/dist/components/Button/Button.css +188 -0
  36. package/dist/components/Button/Button.d.ts +3 -0
  37. package/dist/components/Button/Button.d.ts.map +1 -0
  38. package/dist/components/Button/Button.js +104 -0
  39. package/dist/components/Button/Button.js.map +1 -0
  40. package/dist/components/Button/Button.module.css.cjs +24 -0
  41. package/dist/components/Button/Button.module.css.cjs.map +1 -0
  42. package/dist/components/Button/Button.module.css.js +24 -0
  43. package/dist/components/Button/Button.module.css.js.map +1 -0
  44. package/dist/components/Button/Button.types.d.ts +84 -0
  45. package/dist/components/Button/Button.types.d.ts.map +1 -0
  46. package/dist/components/Button/index.d.ts +3 -0
  47. package/dist/components/Button/index.d.ts.map +1 -0
  48. package/dist/components/ColorScheme/ColorScheme.cjs +9 -0
  49. package/dist/components/ColorScheme/ColorScheme.cjs.map +1 -0
  50. package/dist/components/ColorScheme/ColorScheme.d.ts +3 -0
  51. package/dist/components/ColorScheme/ColorScheme.d.ts.map +1 -0
  52. package/dist/components/ColorScheme/ColorScheme.js +9 -0
  53. package/dist/components/ColorScheme/ColorScheme.js.map +1 -0
  54. package/dist/components/ColorScheme/ColorScheme.types.d.ts +10 -0
  55. package/dist/components/ColorScheme/ColorScheme.types.d.ts.map +1 -0
  56. package/dist/components/ColorScheme/index.d.ts +3 -0
  57. package/dist/components/ColorScheme/index.d.ts.map +1 -0
  58. package/dist/components/Label/Label.cjs +2 -4
  59. package/dist/components/Label/Label.cjs.map +1 -1
  60. package/dist/components/Label/Label.css +15 -17
  61. package/dist/components/Label/Label.d.ts +1 -1
  62. package/dist/components/Label/Label.d.ts.map +1 -1
  63. package/dist/components/Label/Label.js +2 -4
  64. package/dist/components/Label/Label.js.map +1 -1
  65. package/dist/components/Label/Label.module.css.cjs +7 -7
  66. package/dist/components/Label/Label.module.css.js +7 -7
  67. package/dist/components/Label/Label.types.d.ts +1 -5
  68. package/dist/components/Label/Label.types.d.ts.map +1 -1
  69. package/dist/components/Notification/Notification.cjs +5 -6
  70. package/dist/components/Notification/Notification.cjs.map +1 -1
  71. package/dist/components/Notification/Notification.css +19 -20
  72. package/dist/components/Notification/Notification.d.ts +1 -1
  73. package/dist/components/Notification/Notification.d.ts.map +1 -1
  74. package/dist/components/Notification/Notification.js +5 -6
  75. package/dist/components/Notification/Notification.js.map +1 -1
  76. package/dist/components/Notification/Notification.module.css.cjs +9 -9
  77. package/dist/components/Notification/Notification.module.css.js +9 -9
  78. package/dist/components/Notification/Notification.types.d.ts +1 -1
  79. package/dist/components/Notification/Notification.types.d.ts.map +1 -1
  80. package/dist/components/Pictograph/Pictograph.cjs +33 -0
  81. package/dist/components/Pictograph/Pictograph.cjs.map +1 -0
  82. package/dist/components/Pictograph/Pictograph.css +190 -0
  83. package/dist/components/Pictograph/Pictograph.d.ts +3 -0
  84. package/dist/components/Pictograph/Pictograph.d.ts.map +1 -0
  85. package/dist/components/Pictograph/Pictograph.js +33 -0
  86. package/dist/components/Pictograph/Pictograph.js.map +1 -0
  87. package/dist/components/Pictograph/Pictograph.module.css.cjs +22 -0
  88. package/dist/components/Pictograph/Pictograph.module.css.cjs.map +1 -0
  89. package/dist/components/Pictograph/Pictograph.module.css.js +22 -0
  90. package/dist/components/Pictograph/Pictograph.module.css.js.map +1 -0
  91. package/dist/components/Pictograph/Pictograph.types.d.ts +46 -0
  92. package/dist/components/Pictograph/Pictograph.types.d.ts.map +1 -0
  93. package/dist/components/Pictograph/PictographItem.cjs +19 -0
  94. package/dist/components/Pictograph/PictographItem.cjs.map +1 -0
  95. package/dist/components/Pictograph/PictographItem.css +63 -0
  96. package/dist/components/Pictograph/PictographItem.d.ts +3 -0
  97. package/dist/components/Pictograph/PictographItem.d.ts.map +1 -0
  98. package/dist/components/Pictograph/PictographItem.js +19 -0
  99. package/dist/components/Pictograph/PictographItem.js.map +1 -0
  100. package/dist/components/Pictograph/PictographItem.module.css.cjs +9 -0
  101. package/dist/components/Pictograph/PictographItem.module.css.cjs.map +1 -0
  102. package/dist/components/Pictograph/PictographItem.module.css.js +10 -0
  103. package/dist/components/Pictograph/PictographItem.module.css.js.map +1 -0
  104. package/dist/components/Pictograph/index.d.ts +4 -0
  105. package/dist/components/Pictograph/index.d.ts.map +1 -0
  106. package/dist/components/Spinner/Spinner.cjs +62 -0
  107. package/dist/components/Spinner/Spinner.cjs.map +1 -0
  108. package/dist/components/Spinner/Spinner.css +116 -0
  109. package/dist/components/Spinner/Spinner.d.ts +3 -0
  110. package/dist/components/Spinner/Spinner.d.ts.map +1 -0
  111. package/dist/components/Spinner/Spinner.js +62 -0
  112. package/dist/components/Spinner/Spinner.js.map +1 -0
  113. package/dist/components/Spinner/Spinner.module.css.cjs +26 -0
  114. package/dist/components/Spinner/Spinner.module.css.cjs.map +1 -0
  115. package/dist/components/Spinner/Spinner.module.css.js +26 -0
  116. package/dist/components/Spinner/Spinner.module.css.js.map +1 -0
  117. package/dist/components/Spinner/Spinner.types.d.ts +41 -0
  118. package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
  119. package/dist/components/Spinner/index.d.ts +3 -0
  120. package/dist/components/Spinner/index.d.ts.map +1 -0
  121. package/dist/index.cjs +10 -0
  122. package/dist/index.cjs.map +1 -1
  123. package/dist/index.d.ts +8 -0
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/index.js +10 -0
  126. package/dist/index.js.map +1 -1
  127. package/dist/styles/utils/elevation.css +8 -8
  128. package/dist/styles/utils/elevation.module.css.cjs +1 -1
  129. package/dist/styles/utils/elevation.module.css.js +1 -1
  130. package/dist/styles/utils/focus.css +34 -13
  131. package/dist/styles/utils/focus.module.css.cjs +3 -3
  132. package/dist/styles/utils/focus.module.css.js +3 -3
  133. package/dist/styles/utils/text-decoration.css +1 -1
  134. package/dist/styles.css +349 -174
  135. package/package.json +3 -3
@@ -1,11 +1,11 @@
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).
5
5
  * These variables come from @dnanpm/design-tokens package.
6
6
  */
7
7
 
8
- ._notification_1glup_8 {
8
+ ._notification_5h3rs_8 {
9
9
  display: flex;
10
10
  align-items: center;
11
11
  gap: var(--spacing-ui-md);
@@ -16,24 +16,24 @@
16
16
  }
17
17
 
18
18
  /* Variant colors */
19
- ._notification--info_1glup_19 {
20
- --notification-color: var(--colors-semantic-status-info);
19
+ ._notification--info_5h3rs_19 {
20
+ --notification-color: var(--color-semantic-status-info);
21
21
  }
22
22
 
23
- ._notification--success_1glup_23 {
24
- --notification-color: var(--colors-semantic-status-success);
23
+ ._notification--success_5h3rs_23 {
24
+ --notification-color: var(--color-semantic-status-success);
25
25
  }
26
26
 
27
- ._notification--warning_1glup_27 {
28
- --notification-color: var(--colors-semantic-status-warning);
27
+ ._notification--warning_5h3rs_27 {
28
+ --notification-color: var(--color-semantic-status-warning);
29
29
  }
30
30
 
31
- ._notification--error_1glup_31 {
32
- --notification-color: var(--colors-semantic-status-error);
31
+ ._notification--error_5h3rs_31 {
32
+ --notification-color: var(--color-semantic-status-error);
33
33
  }
34
34
 
35
35
  /* Icon container */
36
- ._notification__icon-container_1glup_36 {
36
+ ._notification__icon-container_5h3rs_36 {
37
37
  /* The colored area size should be 48x48px on one line content, so we adjust padding based on whether the border is present or not */
38
38
  --_icon-padding-with-border: 10px;
39
39
  --_icon-padding-without-border: 12px;
@@ -46,28 +46,27 @@
46
46
  padding: var(--_icon-padding-with-border) var(--_icon-padding-without-border)
47
47
  var(--_icon-padding-with-border) var(--_icon-padding-with-border);
48
48
  background-color: var(--notification-color);
49
- color: var(--colors-semantic-foreground-inverse);
49
+ color: var(--color-semantic-foreground-inverse);
50
50
  }
51
51
 
52
- ._notification__icon_1glup_36 {
52
+ ._notification__icon_5h3rs_36 {
53
53
  width: 24px;
54
54
  height: 24px;
55
55
  flex: 0 0 auto;
56
56
  }
57
57
 
58
58
  /* Content */
59
- ._notification__content_1glup_59 {
59
+ ._notification__content_5h3rs_59 {
60
60
  flex: 1 1 auto;
61
61
  min-width: 0;
62
62
  padding: var(--spacing-ui-xs) 0;
63
- font-size: 1rem;
64
- line-height: 1.5;
65
- color: var(--colors-semantic-foreground-default);
63
+ font: var(--typography-body-md);
64
+ color: var(--color-semantic-foreground-default);
66
65
  text-wrap: pretty;
67
66
  }
68
67
 
69
68
  /* Close button */
70
- ._notification__close_1glup_70 {
69
+ ._notification__close_5h3rs_69 {
71
70
  flex: 0 0 auto;
72
71
  display: flex;
73
72
  align-items: center;
@@ -80,11 +79,11 @@
80
79
  border: none;
81
80
  border-radius: var(--radius-semantic-sm);
82
81
  background: none;
83
- color: var(--colors-semantic-foreground-default);
82
+ color: var(--color-semantic-foreground-default);
84
83
  cursor: pointer;
85
84
  }
86
85
 
87
- ._notification__close_1glup_70 svg {
86
+ ._notification__close_5h3rs_69 svg {
88
87
  width: 24px;
89
88
  height: 24px;
90
89
  }
@@ -1,3 +1,3 @@
1
1
  import { NotificationProps } from './Notification.types';
2
- export declare const Notification: import('react').ForwardRefExoticComponent<NotificationProps & import('react').RefAttributes<HTMLDivElement>>;
2
+ export declare const Notification: ({ variant, children, closable, onClose, closeLabel, className, ref, ...props }: NotificationProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=Notification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAuB,MAAM,sBAAsB,CAAC;AAgBnF,eAAO,MAAM,YAAY,8GAsCvB,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAuB,MAAM,sBAAsB,CAAC;AAgBnF,eAAO,MAAM,YAAY,GAAI,gFAS1B,iBAAiB,4CA2BnB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
2
  import { Error, Warning, Check, Info, Close } from "@dnanpm/icons";
4
3
  import focusStyles from "../../styles/utils/focus.module.css.js";
5
4
  import styles from "./Notification.module.css.js";
@@ -16,24 +15,25 @@ const variantRoles = {
16
15
  warning: "alert",
17
16
  error: "alert"
18
17
  };
19
- const Notification = forwardRef(function Notification2({
18
+ const Notification = ({
20
19
  variant,
21
20
  children,
22
21
  closable = false,
23
22
  onClose,
24
23
  closeLabel = "Sulje ilmoitus",
25
24
  className,
25
+ ref,
26
26
  ...props
27
- }, ref) {
27
+ }) => {
28
28
  const Icon = variantIcons[variant];
29
29
  const role = variantRoles[variant];
30
30
  return /* @__PURE__ */ jsxs(
31
31
  "div",
32
32
  {
33
+ ...props,
33
34
  ref,
34
35
  role,
35
36
  className: cn(styles.notification, styles[`notification--${variant}`], className),
36
- ...props,
37
37
  children: [
38
38
  /* @__PURE__ */ jsx("div", { className: styles["notification__icon-container"], children: /* @__PURE__ */ jsx(Icon, { className: styles.notification__icon, "aria-hidden": "true" }) }),
39
39
  /* @__PURE__ */ jsx("div", { className: styles.notification__content, children }),
@@ -50,8 +50,7 @@ const Notification = forwardRef(function Notification2({
50
50
  ]
51
51
  }
52
52
  );
53
- });
54
- Notification.displayName = "Notification";
53
+ };
55
54
  export {
56
55
  Notification
57
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","sources":["../../../src/components/Notification/Notification.tsx"],"sourcesContent":["import { forwardRef, type ComponentType, type SVGProps } from 'react';\nimport { Check, Close, Error as ErrorIcon, Info, Warning } from '@dnanpm/icons';\nimport { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport styles from './Notification.module.css';\nimport type { NotificationProps, NotificationVariant } from './Notification.types';\n\nconst variantIcons: Record<NotificationVariant, ComponentType<SVGProps<SVGSVGElement>>> = {\n info: Info,\n success: Check,\n warning: Warning,\n error: ErrorIcon,\n};\n\nconst variantRoles: Record<NotificationVariant, 'status' | 'alert'> = {\n info: 'status',\n success: 'status',\n warning: 'alert',\n error: 'alert',\n};\n\nexport const Notification = forwardRef<HTMLDivElement, NotificationProps>(function Notification(\n {\n variant,\n children,\n closable = false,\n onClose,\n closeLabel = 'Sulje ilmoitus',\n className,\n ...props\n },\n ref,\n) {\n const Icon = variantIcons[variant];\n const role = variantRoles[variant];\n\n return (\n <div\n ref={ref}\n role={role}\n className={cn(styles.notification, styles[`notification--${variant}`], className)}\n {...props}\n >\n <div className={styles['notification__icon-container']}>\n <Icon className={styles.notification__icon} aria-hidden=\"true\" />\n </div>\n <div className={styles.notification__content}>{children}</div>\n {closable && (\n <button\n type=\"button\"\n className={cn(styles.notification__close, focusStyles.focusable)}\n onClick={onClose}\n aria-label={closeLabel}\n >\n <Close aria-hidden=\"true\" />\n </button>\n )}\n </div>\n );\n});\n\nNotification.displayName = 'Notification';\n"],"names":["ErrorIcon","Notification"],"mappings":";;;;;;AAOA,MAAM,eAAoF;AAAA,EACtF,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAOA;AACX;AAEA,MAAM,eAAgE;AAAA,EAClE,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACX;AAEO,MAAM,eAAe,WAA8C,SAASC,cAC/E;AAAA,EACI;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA,GAAG;AACP,GACA,KACF;AACE,QAAM,OAAO,aAAa,OAAO;AACjC,QAAM,OAAO,aAAa,OAAO;AAEjC,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA;AAAA,MACA,WAAW,GAAG,OAAO,cAAc,OAAO,iBAAiB,OAAO,EAAE,GAAG,SAAS;AAAA,MAC/E,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAA,oBAAC,OAAA,EAAI,WAAW,OAAO,8BAA8B,GACjD,UAAA,oBAAC,MAAA,EAAK,WAAW,OAAO,oBAAoB,eAAY,OAAA,CAAO,GACnE;AAAA,QACA,oBAAC,OAAA,EAAI,WAAW,OAAO,uBAAwB,UAAS;AAAA,QACvD,YACG;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,MAAK;AAAA,YACL,WAAW,GAAG,OAAO,qBAAqB,YAAY,SAAS;AAAA,YAC/D,SAAS;AAAA,YACT,cAAY;AAAA,YAEZ,UAAA,oBAAC,OAAA,EAAM,eAAY,OAAA,CAAO;AAAA,UAAA;AAAA,QAAA;AAAA,MAC9B;AAAA,IAAA;AAAA,EAAA;AAIhB,CAAC;AAED,aAAa,cAAc;"}
1
+ {"version":3,"file":"Notification.js","sources":["../../../src/components/Notification/Notification.tsx"],"sourcesContent":["import type { ComponentType, SVGProps } from 'react';\nimport { Check, Close, Error as ErrorIcon, Info, Warning } from '@dnanpm/icons';\nimport { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport styles from './Notification.module.css';\nimport type { NotificationProps, NotificationVariant } from './Notification.types';\n\nconst variantIcons: Record<NotificationVariant, ComponentType<SVGProps<SVGSVGElement>>> = {\n info: Info,\n success: Check,\n warning: Warning,\n error: ErrorIcon,\n};\n\nconst variantRoles: Record<NotificationVariant, 'status' | 'alert'> = {\n info: 'status',\n success: 'status',\n warning: 'alert',\n error: 'alert',\n};\n\nexport const Notification = ({\n variant,\n children,\n closable = false,\n onClose,\n closeLabel = 'Sulje ilmoitus',\n className,\n ref,\n ...props\n}: NotificationProps) => {\n const Icon = variantIcons[variant];\n const role = variantRoles[variant];\n\n return (\n <div\n {...props}\n ref={ref}\n role={role}\n className={cn(styles.notification, styles[`notification--${variant}`], className)}\n >\n <div className={styles['notification__icon-container']}>\n <Icon className={styles.notification__icon} aria-hidden=\"true\" />\n </div>\n <div className={styles.notification__content}>{children}</div>\n {closable && (\n <button\n type=\"button\"\n className={cn(styles.notification__close, focusStyles.focusable)}\n onClick={onClose}\n aria-label={closeLabel}\n >\n <Close aria-hidden=\"true\" />\n </button>\n )}\n </div>\n );\n};\n"],"names":["ErrorIcon"],"mappings":";;;;;AAOA,MAAM,eAAoF;AAAA,EACtF,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAOA;AACX;AAEA,MAAM,eAAgE;AAAA,EAClE,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACX;AAEO,MAAM,eAAe,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAyB;AACrB,QAAM,OAAO,aAAa,OAAO;AACjC,QAAM,OAAO,aAAa,OAAO;AAEjC,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA,WAAW,GAAG,OAAO,cAAc,OAAO,iBAAiB,OAAO,EAAE,GAAG,SAAS;AAAA,MAEhF,UAAA;AAAA,QAAA,oBAAC,OAAA,EAAI,WAAW,OAAO,8BAA8B,GACjD,UAAA,oBAAC,MAAA,EAAK,WAAW,OAAO,oBAAoB,eAAY,OAAA,CAAO,GACnE;AAAA,QACA,oBAAC,OAAA,EAAI,WAAW,OAAO,uBAAwB,UAAS;AAAA,QACvD,YACG;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,MAAK;AAAA,YACL,WAAW,GAAG,OAAO,qBAAqB,YAAY,SAAS;AAAA,YAC/D,SAAS;AAAA,YACT,cAAY;AAAA,YAEZ,UAAA,oBAAC,OAAA,EAAM,eAAY,OAAA,CAAO;AAAA,UAAA;AAAA,QAAA;AAAA,MAC9B;AAAA,IAAA;AAAA,EAAA;AAIhB;"}
@@ -1,17 +1,17 @@
1
1
  require('./Notification.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const notification = "_notification_1glup_8";
5
- const notification__icon = "_notification__icon_1glup_36";
6
- const notification__content = "_notification__content_1glup_59";
7
- const notification__close = "_notification__close_1glup_70";
4
+ const notification = "_notification_5h3rs_8";
5
+ const notification__icon = "_notification__icon_5h3rs_36";
6
+ const notification__content = "_notification__content_5h3rs_59";
7
+ const notification__close = "_notification__close_5h3rs_69";
8
8
  const styles = {
9
9
  notification,
10
- "notification--info": "_notification--info_1glup_19",
11
- "notification--success": "_notification--success_1glup_23",
12
- "notification--warning": "_notification--warning_1glup_27",
13
- "notification--error": "_notification--error_1glup_31",
14
- "notification__icon-container": "_notification__icon-container_1glup_36",
10
+ "notification--info": "_notification--info_5h3rs_19",
11
+ "notification--success": "_notification--success_5h3rs_23",
12
+ "notification--warning": "_notification--warning_5h3rs_27",
13
+ "notification--error": "_notification--error_5h3rs_31",
14
+ "notification__icon-container": "_notification__icon-container_5h3rs_36",
15
15
  notification__icon,
16
16
  notification__content,
17
17
  notification__close
@@ -1,15 +1,15 @@
1
1
  import './Notification.css';
2
- const notification = "_notification_1glup_8";
3
- const notification__icon = "_notification__icon_1glup_36";
4
- const notification__content = "_notification__content_1glup_59";
5
- const notification__close = "_notification__close_1glup_70";
2
+ const notification = "_notification_5h3rs_8";
3
+ const notification__icon = "_notification__icon_5h3rs_36";
4
+ const notification__content = "_notification__content_5h3rs_59";
5
+ const notification__close = "_notification__close_5h3rs_69";
6
6
  const styles = {
7
7
  notification,
8
- "notification--info": "_notification--info_1glup_19",
9
- "notification--success": "_notification--success_1glup_23",
10
- "notification--warning": "_notification--warning_1glup_27",
11
- "notification--error": "_notification--error_1glup_31",
12
- "notification__icon-container": "_notification__icon-container_1glup_36",
8
+ "notification--info": "_notification--info_5h3rs_19",
9
+ "notification--success": "_notification--success_5h3rs_23",
10
+ "notification--warning": "_notification--warning_5h3rs_27",
11
+ "notification--error": "_notification--error_5h3rs_31",
12
+ "notification__icon-container": "_notification__icon-container_5h3rs_36",
13
13
  notification__icon,
14
14
  notification__content,
15
15
  notification__close
@@ -1,6 +1,6 @@
1
1
  import type * as React from 'react';
2
2
  export type NotificationVariant = 'info' | 'success' | 'warning' | 'error';
3
- interface NotificationBaseProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
3
+ interface NotificationBaseProps extends Omit<React.ComponentPropsWithRef<'div'>, 'children'> {
4
4
  /**
5
5
  * Visual variant determining the color and icon.
6
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.types.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE3E,UAAU,qBAAsB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC3F;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAED,UAAU,yBAA0B,SAAQ,qBAAqB;IAC7D;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,UAAU,uBAAwB,SAAQ,qBAAqB;IAC3D;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;CAC/B;AAED,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,GAAG,uBAAuB,CAAC"}
1
+ {"version":3,"file":"Notification.types.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE3E,UAAU,qBAAsB,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACxF;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAED,UAAU,yBAA0B,SAAQ,qBAAqB;IAC7D;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,UAAU,uBAAwB,SAAQ,qBAAqB;IAC3D;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;CAC/B;AAED,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,GAAG,uBAAuB,CAAC"}
@@ -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":";;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,22 @@
1
+ import './Pictograph.css';
2
+ const pictograph = "_pictograph_11vg9_16";
3
+ const pictograph__list = "_pictograph__list_11vg9_39";
4
+ const styles = {
5
+ pictograph,
6
+ "pictograph--vertical": "_pictograph--vertical_11vg9_32",
7
+ pictograph__list,
8
+ "pictograph__list--5": "_pictograph__list--5_11vg9_50",
9
+ "pictograph__list--2": "_pictograph__list--2_11vg9_56",
10
+ "pictograph__list--3": "_pictograph__list--3_11vg9_57",
11
+ "pictograph__list--4": "_pictograph__list--4_11vg9_58",
12
+ "pictograph--horizontal": "_pictograph--horizontal_11vg9_83",
13
+ "pictograph--centered": "_pictograph--centered_11vg9_123",
14
+ "pictograph--icon-small": "_pictograph--icon-small_11vg9_133",
15
+ "pictograph--icon-large": "_pictograph--icon-large_11vg9_145"
16
+ };
17
+ export {
18
+ styles as default,
19
+ pictograph,
20
+ pictograph__list
21
+ };
22
+ //# sourceMappingURL=Pictograph.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pictograph.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -0,0 +1,46 @@
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ export interface PictographProps extends ComponentPropsWithRef<'div'> {
3
+ /**
4
+ * Size of the icon area in each item.
5
+ * - `small`: 40px (52px on tablet and above)
6
+ * - `large`: 52px (72px on tablet and above)
7
+ * @default 'small'
8
+ */
9
+ readonly iconSize?: 'small' | 'large';
10
+ /**
11
+ * Alignment of icon and text within items.
12
+ * - In horizontal mode: controls vertical alignment between icon and text
13
+ * (`start` = tops aligned, `center` = vertically centered). Text is always left-aligned.
14
+ * - In vertical mode: controls horizontal alignment of icon and text
15
+ * (`start` = left-aligned, `center` = centered with centered text).
16
+ * @default 'center'
17
+ */
18
+ readonly alignment?: 'start' | 'center';
19
+ /**
20
+ * Layout direction of icon relative to text within each item.
21
+ * - `horizontal`: icon and text side by side
22
+ * - `vertical`: icon above text
23
+ * @default 'horizontal'
24
+ */
25
+ readonly mode?: 'horizontal' | 'vertical';
26
+ /**
27
+ * Number of columns in the grid layout (1–5) in desktop view. Columns are automatically adjusted based on available layout width.
28
+ * @default 3
29
+ */
30
+ readonly columns?: 1 | 2 | 3 | 4 | 5;
31
+ /**
32
+ * PictographItem elements to render.
33
+ */
34
+ readonly children: ReactNode;
35
+ }
36
+ export interface PictographItemProps extends ComponentPropsWithRef<'li'> {
37
+ /**
38
+ * SVG icon element. Rendered as decorative with aria-hidden="true".
39
+ */
40
+ readonly icon: ReactNode;
41
+ /**
42
+ * Text content for the pictograph item.
43
+ */
44
+ readonly children: ReactNode;
45
+ }
46
+ //# sourceMappingURL=Pictograph.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pictograph.types.d.ts","sourceRoot":"","sources":["../../../src/components/Pictograph/Pictograph.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,WAAW,eAAgB,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IACjE;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACtC;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACxC;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB,CAAC,IAAI,CAAC;IACpE;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAChC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const PictographItem_module = require("./PictographItem.module.css.cjs");
5
+ const cn = require("../../utils/cn/cn.cjs");
6
+ const PictographItem = ({
7
+ icon,
8
+ children,
9
+ className,
10
+ ref,
11
+ ...props
12
+ }) => {
13
+ return /* @__PURE__ */ jsxRuntime.jsxs("li", { ref, className: cn.cn(PictographItem_module["pictograph-item"], className), ...props, children: [
14
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: PictographItem_module["pictograph-item__icon"], "aria-hidden": "true", children: icon }),
15
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: PictographItem_module["pictograph-item__text"], children })
16
+ ] });
17
+ };
18
+ exports.PictographItem = PictographItem;
19
+ //# sourceMappingURL=PictographItem.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PictographItem.cjs","sources":["../../../src/components/Pictograph/PictographItem.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport styles from './PictographItem.module.css';\nimport type { PictographItemProps } from './Pictograph.types';\n\nexport const PictographItem = ({\n icon,\n children,\n className,\n ref,\n ...props\n}: PictographItemProps) => {\n return (\n <li ref={ref} className={cn(styles['pictograph-item'], className)} {...props}>\n <span className={styles['pictograph-item__icon']} aria-hidden=\"true\">\n {icon}\n </span>\n <div className={styles['pictograph-item__text']}>{children}</div>\n </li>\n );\n};\n"],"names":["jsxs","cn","styles","jsx"],"mappings":";;;;;AAIO,MAAM,iBAAiB,CAAC;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAA2B;AACvB,SACIA,2BAAAA,KAAC,MAAA,EAAG,KAAU,WAAWC,GAAAA,GAAGC,sBAAO,iBAAiB,GAAG,SAAS,GAAI,GAAG,OACnE,UAAA;AAAA,IAAAC,2BAAAA,IAAC,UAAK,WAAWD,sBAAO,uBAAuB,GAAG,eAAY,QACzD,UAAA,MACL;AAAA,mCACC,OAAA,EAAI,WAAWA,sBAAO,uBAAuB,GAAI,SAAA,CAAS;AAAA,EAAA,GAC/D;AAER;;"}