@dnanpm/ui-components 0.7.0 → 0.9.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 (159) hide show
  1. package/dist/components/Accordion/Accordion.css +6 -3
  2. package/dist/components/AccordionItem/AccordionItem.css +6 -3
  3. package/dist/components/Breadcrumb/Breadcrumb.css +15 -12
  4. package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
  5. package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
  6. package/dist/components/Button/Button.css +33 -32
  7. package/dist/components/Button/Button.module.css.cjs +11 -11
  8. package/dist/components/Button/Button.module.css.js +11 -11
  9. package/dist/components/ButtonCard/ButtonCard.cjs +105 -0
  10. package/dist/components/ButtonCard/ButtonCard.cjs.map +1 -0
  11. package/dist/components/ButtonCard/ButtonCard.css +166 -0
  12. package/dist/components/ButtonCard/ButtonCard.d.ts +3 -0
  13. package/dist/components/ButtonCard/ButtonCard.d.ts.map +1 -0
  14. package/dist/components/ButtonCard/ButtonCard.js +105 -0
  15. package/dist/components/ButtonCard/ButtonCard.js.map +1 -0
  16. package/dist/components/ButtonCard/ButtonCard.module.css.cjs +18 -0
  17. package/dist/components/ButtonCard/ButtonCard.module.css.cjs.map +1 -0
  18. package/dist/components/ButtonCard/ButtonCard.module.css.js +19 -0
  19. package/dist/components/ButtonCard/ButtonCard.module.css.js.map +1 -0
  20. package/dist/components/ButtonCard/ButtonCard.types.d.ts +103 -0
  21. package/dist/components/ButtonCard/ButtonCard.types.d.ts.map +1 -0
  22. package/dist/components/ButtonCard/index.d.ts +3 -0
  23. package/dist/components/ButtonCard/index.d.ts.map +1 -0
  24. package/dist/components/ContentCard/ContentCard.cjs +96 -0
  25. package/dist/components/ContentCard/ContentCard.cjs.map +1 -0
  26. package/dist/components/ContentCard/ContentCard.css +249 -0
  27. package/dist/components/ContentCard/ContentCard.d.ts +3 -0
  28. package/dist/components/ContentCard/ContentCard.d.ts.map +1 -0
  29. package/dist/components/ContentCard/ContentCard.js +96 -0
  30. package/dist/components/ContentCard/ContentCard.js.map +1 -0
  31. package/dist/components/ContentCard/ContentCard.module.css.cjs +24 -0
  32. package/dist/components/ContentCard/ContentCard.module.css.cjs.map +1 -0
  33. package/dist/components/ContentCard/ContentCard.module.css.js +25 -0
  34. package/dist/components/ContentCard/ContentCard.module.css.js.map +1 -0
  35. package/dist/components/ContentCard/ContentCard.types.d.ts +99 -0
  36. package/dist/components/ContentCard/ContentCard.types.d.ts.map +1 -0
  37. package/dist/components/ContentCard/index.d.ts +3 -0
  38. package/dist/components/ContentCard/index.d.ts.map +1 -0
  39. package/dist/components/Drawer/Drawer.cjs +101 -0
  40. package/dist/components/Drawer/Drawer.cjs.map +1 -0
  41. package/dist/components/Drawer/Drawer.css +218 -0
  42. package/dist/components/Drawer/Drawer.d.ts +3 -0
  43. package/dist/components/Drawer/Drawer.d.ts.map +1 -0
  44. package/dist/components/Drawer/Drawer.js +101 -0
  45. package/dist/components/Drawer/Drawer.js.map +1 -0
  46. package/dist/components/Drawer/Drawer.module.css.cjs +37 -0
  47. package/dist/components/Drawer/Drawer.module.css.cjs.map +1 -0
  48. package/dist/components/Drawer/Drawer.module.css.js +37 -0
  49. package/dist/components/Drawer/Drawer.module.css.js.map +1 -0
  50. package/dist/components/Drawer/Drawer.types.d.ts +63 -0
  51. package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
  52. package/dist/components/Drawer/index.d.ts +3 -0
  53. package/dist/components/Drawer/index.d.ts.map +1 -0
  54. package/dist/components/Footer/Footer.css +87 -77
  55. package/dist/components/Footer/Footer.module.css.cjs +39 -39
  56. package/dist/components/Footer/Footer.module.css.js +39 -39
  57. package/dist/components/FunctionButton/FunctionButton.cjs +34 -0
  58. package/dist/components/FunctionButton/FunctionButton.cjs.map +1 -0
  59. package/dist/components/FunctionButton/FunctionButton.css +124 -0
  60. package/dist/components/FunctionButton/FunctionButton.d.ts +3 -0
  61. package/dist/components/FunctionButton/FunctionButton.d.ts.map +1 -0
  62. package/dist/components/FunctionButton/FunctionButton.js +34 -0
  63. package/dist/components/FunctionButton/FunctionButton.js.map +1 -0
  64. package/dist/components/FunctionButton/FunctionButton.module.css.cjs +11 -0
  65. package/dist/components/FunctionButton/FunctionButton.module.css.cjs.map +1 -0
  66. package/dist/components/FunctionButton/FunctionButton.module.css.js +12 -0
  67. package/dist/components/FunctionButton/FunctionButton.module.css.js.map +1 -0
  68. package/dist/components/FunctionButton/FunctionButton.types.d.ts +21 -0
  69. package/dist/components/FunctionButton/FunctionButton.types.d.ts.map +1 -0
  70. package/dist/components/FunctionButton/index.d.ts +3 -0
  71. package/dist/components/FunctionButton/index.d.ts.map +1 -0
  72. package/dist/components/Hero/Hero.cjs +24 -26
  73. package/dist/components/Hero/Hero.cjs.map +1 -1
  74. package/dist/components/Hero/Hero.css +81 -74
  75. package/dist/components/Hero/Hero.js +24 -26
  76. package/dist/components/Hero/Hero.js.map +1 -1
  77. package/dist/components/Hero/Hero.module.css.cjs +20 -17
  78. package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
  79. package/dist/components/Hero/Hero.module.css.js +20 -17
  80. package/dist/components/Hero/Hero.module.css.js.map +1 -1
  81. package/dist/components/IconButton/IconButton.css +32 -34
  82. package/dist/components/IconButton/IconButton.module.css.cjs +9 -9
  83. package/dist/components/IconButton/IconButton.module.css.js +9 -9
  84. package/dist/components/Label/Label.css +2 -3
  85. package/dist/components/MainNavigation/MainNavigation.cjs +415 -120
  86. package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -1
  87. package/dist/components/MainNavigation/MainNavigation.css +265 -159
  88. package/dist/components/MainNavigation/MainNavigation.d.ts +1 -1
  89. package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -1
  90. package/dist/components/MainNavigation/MainNavigation.js +417 -122
  91. package/dist/components/MainNavigation/MainNavigation.js.map +1 -1
  92. package/dist/components/MainNavigation/MainNavigation.module.css.cjs +78 -68
  93. package/dist/components/MainNavigation/MainNavigation.module.css.cjs.map +1 -1
  94. package/dist/components/MainNavigation/MainNavigation.module.css.js +78 -68
  95. package/dist/components/MainNavigation/MainNavigation.module.css.js.map +1 -1
  96. package/dist/components/MainNavigation/MainNavigation.types.d.ts +64 -17
  97. package/dist/components/MainNavigation/MainNavigation.types.d.ts.map +1 -1
  98. package/dist/components/MainNavigation/MainNavigation.utils.cjs +20 -0
  99. package/dist/components/MainNavigation/MainNavigation.utils.cjs.map +1 -1
  100. package/dist/components/MainNavigation/MainNavigation.utils.d.ts +10 -1
  101. package/dist/components/MainNavigation/MainNavigation.utils.d.ts.map +1 -1
  102. package/dist/components/MainNavigation/MainNavigation.utils.js +20 -0
  103. package/dist/components/MainNavigation/MainNavigation.utils.js.map +1 -1
  104. package/dist/components/MainNavigation/index.d.ts +1 -1
  105. package/dist/components/MainNavigation/index.d.ts.map +1 -1
  106. package/dist/components/Modal/Modal.cjs +101 -0
  107. package/dist/components/Modal/Modal.cjs.map +1 -0
  108. package/dist/components/Modal/Modal.css +204 -0
  109. package/dist/components/Modal/Modal.d.ts +3 -0
  110. package/dist/components/Modal/Modal.d.ts.map +1 -0
  111. package/dist/components/Modal/Modal.js +101 -0
  112. package/dist/components/Modal/Modal.js.map +1 -0
  113. package/dist/components/Modal/Modal.module.css.cjs +39 -0
  114. package/dist/components/Modal/Modal.module.css.cjs.map +1 -0
  115. package/dist/components/Modal/Modal.module.css.js +39 -0
  116. package/dist/components/Modal/Modal.module.css.js.map +1 -0
  117. package/dist/components/Modal/Modal.types.d.ts +62 -0
  118. package/dist/components/Modal/Modal.types.d.ts.map +1 -0
  119. package/dist/components/Modal/index.d.ts +3 -0
  120. package/dist/components/Modal/index.d.ts.map +1 -0
  121. package/dist/components/Modal/useDialogDismissal.cjs +41 -0
  122. package/dist/components/Modal/useDialogDismissal.cjs.map +1 -0
  123. package/dist/components/Modal/useDialogDismissal.d.ts +17 -0
  124. package/dist/components/Modal/useDialogDismissal.d.ts.map +1 -0
  125. package/dist/components/Modal/useDialogDismissal.js +41 -0
  126. package/dist/components/Modal/useDialogDismissal.js.map +1 -0
  127. package/dist/components/Modal/useNativeDialog.cjs +126 -0
  128. package/dist/components/Modal/useNativeDialog.cjs.map +1 -0
  129. package/dist/components/Modal/useNativeDialog.d.ts +14 -0
  130. package/dist/components/Modal/useNativeDialog.d.ts.map +1 -0
  131. package/dist/components/Modal/useNativeDialog.js +126 -0
  132. package/dist/components/Modal/useNativeDialog.js.map +1 -0
  133. package/dist/components/Notification/Notification.css +6 -3
  134. package/dist/components/Pictograph/Pictograph.css +6 -3
  135. package/dist/components/Pictograph/PictographItem.css +6 -3
  136. package/dist/components/Quote/Quote.css +2 -3
  137. package/dist/components/Spinner/Spinner.css +6 -3
  138. package/dist/index.cjs +10 -0
  139. package/dist/index.cjs.map +1 -1
  140. package/dist/index.d.ts +11 -1
  141. package/dist/index.d.ts.map +1 -1
  142. package/dist/index.js +10 -0
  143. package/dist/index.js.map +1 -1
  144. package/dist/styles/utils/elevation.css +2 -3
  145. package/dist/styles/utils/elevation.module.css.cjs +3 -0
  146. package/dist/styles/utils/elevation.module.css.cjs.map +1 -1
  147. package/dist/styles/utils/elevation.module.css.js +4 -1
  148. package/dist/styles/utils/elevation.module.css.js.map +1 -1
  149. package/dist/styles/utils/focus.css +26 -24
  150. package/dist/styles/utils/focus.module.css.cjs +3 -6
  151. package/dist/styles/utils/focus.module.css.cjs.map +1 -1
  152. package/dist/styles/utils/focus.module.css.js +4 -7
  153. package/dist/styles/utils/focus.module.css.js.map +1 -1
  154. package/dist/styles/utils/overlay.css +2 -3
  155. package/dist/styles/utils/text-decoration.css +4 -4
  156. package/dist/styles/utils/text-decoration.module.css.cjs +2 -2
  157. package/dist/styles/utils/text-decoration.module.css.js +2 -2
  158. package/dist/styles.css +17 -7
  159. package/package.json +3 -3
@@ -1,59 +1,59 @@
1
1
  import './Footer.css';
2
- const footer = "_footer_1kfrt_8";
3
- const footer__inner = "_footer__inner_1kfrt_31";
4
- const footer__top = "_footer__top_1kfrt_36";
5
- const footer__bottom = "_footer__bottom_1kfrt_37";
6
- const footer__container = "_footer__container_1kfrt_122";
7
- const footer__column = "_footer__column_1kfrt_156";
8
- const footer__link = "_footer__link_1kfrt_111";
9
- const footer__action = "_footer__action_1kfrt_191";
10
- const footer__accordion = "_footer__accordion_1kfrt_222";
11
- const footer__divider = "_footer__divider_1kfrt_233";
12
- const footer__meta = "_footer__meta_1kfrt_247";
13
- const footer__language = "_footer__language_1kfrt_274";
14
- const footer__organization = "_footer__organization_1kfrt_341";
15
- const footer__copyright = "_footer__copyright_1kfrt_400";
16
- const footer__apps = "_footer__apps_1kfrt_406";
17
- const footer__badges = "_footer__badges_1kfrt_424";
18
- const footer__badge = "_footer__badge_1kfrt_424";
2
+ const footer = "_footer_1lum3_8";
3
+ const footer__inner = "_footer__inner_1lum3_31";
4
+ const footer__top = "_footer__top_1lum3_36";
5
+ const footer__bottom = "_footer__bottom_1lum3_37";
6
+ const footer__container = "_footer__container_1lum3_122";
7
+ const footer__column = "_footer__column_1lum3_156";
8
+ const footer__link = "_footer__link_1lum3_111";
9
+ const footer__action = "_footer__action_1lum3_191";
10
+ const footer__accordion = "_footer__accordion_1lum3_224";
11
+ const footer__divider = "_footer__divider_1lum3_235";
12
+ const footer__meta = "_footer__meta_1lum3_249";
13
+ const footer__language = "_footer__language_1lum3_276";
14
+ const footer__organization = "_footer__organization_1lum3_346";
15
+ const footer__copyright = "_footer__copyright_1lum3_407";
16
+ const footer__apps = "_footer__apps_1lum3_413";
17
+ const footer__badges = "_footer__badges_1lum3_431";
18
+ const footer__badge = "_footer__badge_1lum3_431";
19
19
  const styles = {
20
20
  footer,
21
21
  footer__inner,
22
22
  footer__top,
23
23
  footer__bottom,
24
- "footer__top-row": "_footer__top-row_1kfrt_61",
25
- "footer__top-column": "_footer__top-column_1kfrt_76",
26
- "footer__top-heading": "_footer__top-heading_1kfrt_84",
27
- "footer__top-icon": "_footer__top-icon_1kfrt_91",
28
- "footer__top-title": "_footer__top-title_1kfrt_97",
29
- "footer__top-links": "_footer__top-links_1kfrt_102",
30
- "footer__link-list": "_footer__link-list_1kfrt_111",
31
- "footer__top-link": "_footer__top-link_1kfrt_102",
24
+ "footer__top-row": "_footer__top-row_1lum3_61",
25
+ "footer__top-column": "_footer__top-column_1lum3_76",
26
+ "footer__top-heading": "_footer__top-heading_1lum3_84",
27
+ "footer__top-icon": "_footer__top-icon_1lum3_91",
28
+ "footer__top-title": "_footer__top-title_1lum3_97",
29
+ "footer__top-links": "_footer__top-links_1lum3_102",
30
+ "footer__link-list": "_footer__link-list_1lum3_111",
31
+ "footer__top-link": "_footer__top-link_1lum3_102",
32
32
  footer__container,
33
- "footer__nav-accordions": "_footer__nav-accordions_1kfrt_135",
34
- "footer__nav-columns": "_footer__nav-columns_1kfrt_139",
33
+ "footer__nav-accordions": "_footer__nav-accordions_1lum3_135",
34
+ "footer__nav-columns": "_footer__nav-columns_1lum3_139",
35
35
  footer__column,
36
- "footer__column-heading": "_footer__column-heading_1kfrt_164",
36
+ "footer__column-heading": "_footer__column-heading_1lum3_164",
37
37
  footer__link,
38
38
  footer__action,
39
39
  footer__accordion,
40
40
  footer__divider,
41
- "footer__divider--after-nav": "_footer__divider--after-nav_1kfrt_240",
41
+ "footer__divider--after-nav": "_footer__divider--after-nav_1lum3_242",
42
42
  footer__meta,
43
- "footer__meta-center": "_footer__meta-center_1kfrt_263",
44
- "footer__language-list": "_footer__language-list_1kfrt_274",
43
+ "footer__meta-center": "_footer__meta-center_1lum3_265",
44
+ "footer__language-list": "_footer__language-list_1lum3_276",
45
45
  footer__language,
46
- "footer__language--current": "_footer__language--current_1kfrt_300",
47
- "footer__social-list": "_footer__social-list_1kfrt_311",
48
- "footer__social-link": "_footer__social-link_1kfrt_319",
49
- "footer__social-icon": "_footer__social-icon_1kfrt_333",
50
- "footer__organization-list": "_footer__organization-list_1kfrt_341",
46
+ "footer__language--current": "_footer__language--current_1lum3_303",
47
+ "footer__social-list": "_footer__social-list_1lum3_315",
48
+ "footer__social-link": "_footer__social-link_1lum3_323",
49
+ "footer__social-icon": "_footer__social-icon_1lum3_338",
50
+ "footer__organization-list": "_footer__organization-list_1lum3_346",
51
51
  footer__organization,
52
- "footer__organization--current": "_footer__organization--current_1kfrt_364",
53
- "footer__legal-list": "_footer__legal-list_1kfrt_376",
52
+ "footer__organization--current": "_footer__organization--current_1lum3_370",
53
+ "footer__legal-list": "_footer__legal-list_1lum3_383",
54
54
  footer__copyright,
55
55
  footer__apps,
56
- "footer__apps-title": "_footer__apps-title_1kfrt_420",
56
+ "footer__apps-title": "_footer__apps-title_1lum3_427",
57
57
  footer__badges,
58
58
  footer__badge
59
59
  };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const focus_module = require("../../styles/utils/focus.module.css.cjs");
5
+ const FunctionButton_module = require("./FunctionButton.module.css.cjs");
6
+ const cn = require("../../utils/cn/cn.cjs");
7
+ const FunctionButton = ({
8
+ icon: Icon,
9
+ variant = "default",
10
+ size = "default",
11
+ className,
12
+ type = "button",
13
+ ref,
14
+ ...props
15
+ }) => {
16
+ return /* @__PURE__ */ jsxRuntime.jsx(
17
+ "button",
18
+ {
19
+ ref,
20
+ type,
21
+ className: cn.cn(
22
+ FunctionButton_module["function-button"],
23
+ FunctionButton_module[`function-button--${variant}`],
24
+ { [FunctionButton_module["function-button--large"]]: size === "large" },
25
+ focus_module.default.focusable,
26
+ className
27
+ ),
28
+ ...props,
29
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { "aria-hidden": "true" })
30
+ }
31
+ );
32
+ };
33
+ exports.FunctionButton = FunctionButton;
34
+ //# sourceMappingURL=FunctionButton.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.cjs","sources":["../../../src/components/FunctionButton/FunctionButton.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport styles from './FunctionButton.module.css';\nimport type { FunctionButtonProps } from './FunctionButton.types';\n\nexport const FunctionButton = ({\n icon: Icon,\n variant = 'default',\n size = 'default',\n className,\n type = 'button',\n ref,\n ...props\n}: FunctionButtonProps) => {\n return (\n <button\n ref={ref}\n type={type}\n className={cn(\n styles['function-button'],\n styles[`function-button--${variant}`],\n { [styles['function-button--large']]: size === 'large' },\n focusStyles.focusable,\n className,\n )}\n {...props}\n >\n <Icon aria-hidden=\"true\" />\n </button>\n );\n};\n"],"names":["jsx","cn","styles","focusStyles"],"mappings":";;;;;;AAKO,MAAM,iBAAiB,CAAC;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,GAAG;AACP,MAA2B;AACvB,SACIA,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA;AAAA,MACA,WAAWC,GAAAA;AAAAA,QACPC,sBAAO,iBAAiB;AAAA,QACxBA,sBAAO,oBAAoB,OAAO,EAAE;AAAA,QACpC,EAAE,CAACA,sBAAO,wBAAwB,CAAC,GAAG,SAAS,QAAA;AAAA,QAC/CC,aAAAA,QAAY;AAAA,QACZ;AAAA,MAAA;AAAA,MAEH,GAAG;AAAA,MAEJ,UAAAH,2BAAAA,IAAC,MAAA,EAAK,eAAY,OAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGrC;;"}
@@ -0,0 +1,124 @@
1
+ @layer dds-base, dds-components;@layer dds-components { @layer fallback, components; }@layer dds-components.components{._function-button_kp4nc_1 {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: 32px;
6
+ height: 32px;
7
+ flex: 0 0 auto;
8
+ padding: 0;
9
+ appearance: none;
10
+ border: var(--borderwidth-semantic-xs) solid transparent;
11
+ border-radius: var(--radius-semantic-sm);
12
+ color: var(--color-semantic-foreground-default);
13
+ cursor: pointer;
14
+ transition:
15
+ background-color 0.2s ease-in-out,
16
+ border-color 0.2s ease-in-out,
17
+ color 0.2s ease-in-out;
18
+
19
+ & > svg {
20
+ width: 16px;
21
+ height: 16px;
22
+ }
23
+ }
24
+
25
+ ._function-button--large_kp4nc_25 {
26
+ width: 40px;
27
+ height: 40px;
28
+
29
+ & > svg {
30
+ width: 24px;
31
+ height: 24px;
32
+ }
33
+ }
34
+
35
+ ._function-button--default_kp4nc_35 {
36
+ background-color: var(--color-semantic-surface-neutral-strong);
37
+ border-color: var(--color-semantic-border-neutral-mid);
38
+
39
+ &:hover,
40
+ &:focus-visible {
41
+ background-color: var(--color-semantic-interactive-neutral-hover);
42
+ }
43
+
44
+ &:active {
45
+ background-color: var(--color-semantic-interactive-neutral-active);
46
+ }
47
+ }
48
+
49
+ ._function-button--circle_kp4nc_49 {
50
+ border-color: transparent;
51
+ border-radius: var(--radius-semantic-full);
52
+ background-color: var(--color-semantic-interactive-primary-default);
53
+ color: var(--color-semantic-foreground-inverse);
54
+
55
+ &:hover,
56
+ &:focus-visible {
57
+ background-color: var(--color-semantic-interactive-primary-hover);
58
+ }
59
+
60
+ &:active {
61
+ background-color: var(--color-semantic-interactive-primary-active);
62
+ }
63
+ }
64
+
65
+ ._function-button--ghost_kp4nc_65 {
66
+ border: none;
67
+ background-color: transparent;
68
+
69
+ &:hover,
70
+ &:focus-visible,
71
+ &:active {
72
+ background-color: transparent;
73
+ }
74
+ }
75
+
76
+ ._function-button_kp4nc_1:disabled {
77
+ pointer-events: none;
78
+
79
+ &._function-button--default_kp4nc_35 {
80
+ background-color: var(--color-semantic-interactive-neutral-disabled);
81
+ color: var(--color-semantic-foreground-muted);
82
+ }
83
+
84
+ &._function-button--circle_kp4nc_49 {
85
+ background-color: var(--color-semantic-interactive-primary-disabled);
86
+ color: var(--color-semantic-foreground-muted);
87
+ }
88
+
89
+ &._function-button--ghost_kp4nc_65 {
90
+ opacity: 0.3;
91
+ }
92
+ }
93
+
94
+ /* Styles apply from [data-color-scheme="dark"] down to (but not into) [data-color-scheme="light"]. */
95
+ @scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
96
+ ._function-button_kp4nc_1:disabled._function-button--default_kp4nc_35 {
97
+ border-color: var(--color-semantic-interactive-inverse-disabled);
98
+ color: var(--color-semantic-foreground-inverse-muted);
99
+ }
100
+
101
+ ._function-button_kp4nc_1:disabled._function-button--circle_kp4nc_49 {
102
+ color: var(--color-semantic-foreground-inverse-muted);
103
+ }
104
+
105
+ ._function-button--ghost_kp4nc_65 {
106
+ color: var(--color-semantic-interactive-inverse-default);
107
+
108
+ &:hover,
109
+ &:focus-visible {
110
+ color: var(--color-semantic-interactive-inverse-hover);
111
+ }
112
+
113
+ &:active {
114
+ color: var(--color-semantic-interactive-inverse-active);
115
+ }
116
+ }
117
+ }
118
+
119
+ @media (forced-colors: active) {
120
+ ._function-button_kp4nc_1:disabled {
121
+ border-color: GrayText;
122
+ color: GrayText;
123
+ }
124
+ } }
@@ -0,0 +1,3 @@
1
+ import { FunctionButtonProps } from './FunctionButton.types';
2
+ export declare const FunctionButton: ({ icon: Icon, variant, size, className, type, ref, ...props }: FunctionButtonProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=FunctionButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionButton/FunctionButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,cAAc,GAAI,+DAQ5B,mBAAmB,4CAiBrB,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import focusStyles from "../../styles/utils/focus.module.css.js";
3
+ import styles from "./FunctionButton.module.css.js";
4
+ import { cn } from "../../utils/cn/cn.js";
5
+ const FunctionButton = ({
6
+ icon: Icon,
7
+ variant = "default",
8
+ size = "default",
9
+ className,
10
+ type = "button",
11
+ ref,
12
+ ...props
13
+ }) => {
14
+ return /* @__PURE__ */ jsx(
15
+ "button",
16
+ {
17
+ ref,
18
+ type,
19
+ className: cn(
20
+ styles["function-button"],
21
+ styles[`function-button--${variant}`],
22
+ { [styles["function-button--large"]]: size === "large" },
23
+ focusStyles.focusable,
24
+ className
25
+ ),
26
+ ...props,
27
+ children: /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" })
28
+ }
29
+ );
30
+ };
31
+ export {
32
+ FunctionButton
33
+ };
34
+ //# sourceMappingURL=FunctionButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.js","sources":["../../../src/components/FunctionButton/FunctionButton.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport styles from './FunctionButton.module.css';\nimport type { FunctionButtonProps } from './FunctionButton.types';\n\nexport const FunctionButton = ({\n icon: Icon,\n variant = 'default',\n size = 'default',\n className,\n type = 'button',\n ref,\n ...props\n}: FunctionButtonProps) => {\n return (\n <button\n ref={ref}\n type={type}\n className={cn(\n styles['function-button'],\n styles[`function-button--${variant}`],\n { [styles['function-button--large']]: size === 'large' },\n focusStyles.focusable,\n className,\n )}\n {...props}\n >\n <Icon aria-hidden=\"true\" />\n </button>\n );\n};\n"],"names":[],"mappings":";;;;AAKO,MAAM,iBAAiB,CAAC;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,GAAG;AACP,MAA2B;AACvB,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACP,OAAO,iBAAiB;AAAA,QACxB,OAAO,oBAAoB,OAAO,EAAE;AAAA,QACpC,EAAE,CAAC,OAAO,wBAAwB,CAAC,GAAG,SAAS,QAAA;AAAA,QAC/C,YAAY;AAAA,QACZ;AAAA,MAAA;AAAA,MAEH,GAAG;AAAA,MAEJ,UAAA,oBAAC,MAAA,EAAK,eAAY,OAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGrC;"}
@@ -0,0 +1,11 @@
1
+ require('./FunctionButton.css');
2
+ "use strict";
3
+ const styles = {
4
+ "function-button": "_function-button_kp4nc_1",
5
+ "function-button--large": "_function-button--large_kp4nc_25",
6
+ "function-button--default": "_function-button--default_kp4nc_35",
7
+ "function-button--circle": "_function-button--circle_kp4nc_49",
8
+ "function-button--ghost": "_function-button--ghost_kp4nc_65"
9
+ };
10
+ module.exports = styles;
11
+ //# sourceMappingURL=FunctionButton.module.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,12 @@
1
+ import './FunctionButton.css';
2
+ const styles = {
3
+ "function-button": "_function-button_kp4nc_1",
4
+ "function-button--large": "_function-button--large_kp4nc_25",
5
+ "function-button--default": "_function-button--default_kp4nc_35",
6
+ "function-button--circle": "_function-button--circle_kp4nc_49",
7
+ "function-button--ghost": "_function-button--ghost_kp4nc_65"
8
+ };
9
+ export {
10
+ styles as default
11
+ };
12
+ //# sourceMappingURL=FunctionButton.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,21 @@
1
+ import { ComponentPropsWithRef, ComponentType, SVGProps } from 'react';
2
+ export type FunctionButtonVariant = 'default' | 'circle' | 'ghost';
3
+ export type FunctionButtonSize = 'default' | 'large';
4
+ export type FunctionButtonIcon = ComponentType<SVGProps<SVGSVGElement>>;
5
+ type FunctionButtonAccessibleName = {
6
+ readonly 'aria-label': string;
7
+ readonly 'aria-labelledby'?: never;
8
+ } | {
9
+ readonly 'aria-label'?: never;
10
+ readonly 'aria-labelledby': string;
11
+ };
12
+ export type FunctionButtonProps = Omit<ComponentPropsWithRef<'button'>, 'aria-label' | 'aria-labelledby' | 'children'> & FunctionButtonAccessibleName & {
13
+ /** Icon component rendered as decorative content. */
14
+ readonly icon: FunctionButtonIcon;
15
+ /** Visual button style. @default 'default' */
16
+ readonly variant?: FunctionButtonVariant;
17
+ /** Control size. @default 'default' */
18
+ readonly size?: FunctionButtonSize;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=FunctionButton.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionButton/FunctionButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAAC;AACrD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAExE,KAAK,4BAA4B,GAC3B;IACI,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;CACtC,GACD;IACI,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACtC,CAAC;AAER,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAClC,qBAAqB,CAAC,QAAQ,CAAC,EAC/B,YAAY,GAAG,iBAAiB,GAAG,UAAU,CAChD,GACG,4BAA4B,GAAG;IAC3B,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,qBAAqB,CAAC;IACzC,uCAAuC;IACvC,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;CACtC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { FunctionButton } from './FunctionButton';
2
+ export type { FunctionButtonIcon, FunctionButtonProps, FunctionButtonSize, FunctionButtonVariant, } from './FunctionButton.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACR,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,wBAAwB,CAAC"}
@@ -43,34 +43,32 @@ const Hero = ({
43
43
  children: [
44
44
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__background, style: backgroundStyle, children: [
45
45
  image != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__backgroundImageComponent, "aria-hidden": "true", children: image }),
46
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__overlay, "aria-hidden": "true" })
46
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__overlay, "aria-hidden": "true" }),
47
+ logoImage != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__logoImageWrap, "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__logoImage, children: logoImage }) })
47
48
  ] }),
48
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__content, children: [
49
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__card, elevation_module.default.elevationHigh), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__main, children: [
50
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__text, children: [
51
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__header, children: [
52
- label != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__label, children: label }),
53
- /* @__PURE__ */ jsxRuntime.jsx(
54
- HeadingLevel,
55
- {
56
- id: headingId,
57
- className: cn.cn(
58
- Hero_module.default.hero__heading,
59
- Hero_utils.headingClassByStyle[headingStyle]
60
- ),
61
- children: heading
62
- }
63
- )
64
- ] }),
65
- description != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__description, "dds-prose"), children: description })
49
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__content, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__card, elevation_module.default.elevationHigh), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__main, children: [
50
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__text, children: [
51
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__header, children: [
52
+ label != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__label, children: label }),
53
+ /* @__PURE__ */ jsxRuntime.jsx(
54
+ HeadingLevel,
55
+ {
56
+ id: headingId,
57
+ className: cn.cn(
58
+ Hero_module.default.hero__heading,
59
+ Hero_utils.headingClassByStyle[headingStyle]
60
+ ),
61
+ children: heading
62
+ }
63
+ )
66
64
  ] }),
67
- hasActions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__actions, children: [
68
- primaryCta != null && primaryCta,
69
- secondaryCta != null && secondaryCta
70
- ] })
71
- ] }) }),
72
- logoImage != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Hero_module.default.hero__logoImage, "aria-hidden": "true", children: logoImage })
73
- ] })
65
+ description != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(Hero_module.default.hero__description, "dds-prose"), children: description })
66
+ ] }),
67
+ hasActions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Hero_module.default.hero__actions, children: [
68
+ primaryCta != null && primaryCta,
69
+ secondaryCta != null && secondaryCta
70
+ ] })
71
+ ] }) }) })
74
72
  ]
75
73
  }
76
74
  );
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.cjs","sources":["../../../src/components/Hero/Hero.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { cn } from '../../utils/cn';\nimport elevationStyles from '../../styles/utils/elevation.module.css';\nimport styles from './Hero.module.css';\nimport type { HeroProps } from './Hero.types';\nimport { headingClassByStyle } from './Hero.utils';\n\nexport const Hero = ({\n label,\n heading,\n description,\n headingLevel = 'h1',\n headingStyle = 'default',\n Image,\n imageProps,\n LogoImage,\n logoImageProps,\n backgroundColor,\n primaryCta,\n secondaryCta,\n className,\n ref,\n ...props\n}: HeroProps) => {\n const headingId = useId();\n\n const ResolvedImage = Image ?? (imageProps != null ? 'img' : undefined);\n const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? 'img' : undefined);\n const image = ResolvedImage != null ? <ResolvedImage {...imageProps} /> : undefined;\n const logoImage =\n ResolvedLogoImage != null ? <ResolvedLogoImage {...logoImageProps} /> : undefined;\n const HeadingLevel = headingLevel;\n\n const hasActions = primaryCta != null || secondaryCta != null;\n const backgroundStyle =\n image == null && backgroundColor != null ? { backgroundColor } : undefined;\n const ariaLabelledBy = props['aria-label'] ? undefined : props['aria-labelledby'] || headingId;\n\n return (\n <section\n ref={ref}\n {...props}\n className={cn(styles.hero, className)}\n aria-label={props['aria-label']}\n aria-labelledby={ariaLabelledBy}\n >\n <div className={styles.hero__background} style={backgroundStyle}>\n {image != null && (\n <div className={styles.hero__backgroundImageComponent} aria-hidden=\"true\">\n {image}\n </div>\n )}\n <div className={styles.hero__overlay} aria-hidden=\"true\" />\n </div>\n\n <div className={styles.hero__content}>\n <div className={cn(styles.hero__card, elevationStyles.elevationHigh)}>\n <div className={styles.hero__main}>\n <div className={styles.hero__text}>\n <div className={styles.hero__header}>\n {label != null && <div className={styles.hero__label}>{label}</div>}\n <HeadingLevel\n id={headingId}\n className={cn(\n styles.hero__heading,\n headingClassByStyle[headingStyle],\n )}\n >\n {heading}\n </HeadingLevel>\n </div>\n {description != null && (\n <div className={cn(styles.hero__description, 'dds-prose')}>\n {description}\n </div>\n )}\n </div>\n\n {hasActions && (\n <div className={styles.hero__actions}>\n {primaryCta != null && primaryCta}\n {secondaryCta != null && secondaryCta}\n </div>\n )}\n </div>\n </div>\n {logoImage != null && (\n <div className={styles.hero__logoImage} aria-hidden=\"true\">\n {logoImage}\n </div>\n )}\n </div>\n </section>\n );\n};\n"],"names":["useId","jsxs","cn","styles","jsx","elevationStyles","headingClassByStyle"],"mappings":";;;;;;;;AAOO,MAAM,OAAO,CAAC;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAiB;AACb,QAAM,YAAYA,MAAAA,MAAA;AAElB,QAAM,gBAAgB,UAAU,cAAc,OAAO,QAAQ;AAC7D,QAAM,oBAAoB,cAAc,kBAAkB,OAAO,QAAQ;AACzE,QAAM,QAAQ,iBAAiB,sCAAQ,eAAA,EAAe,GAAG,YAAY,IAAK;AAC1E,QAAM,YACF,qBAAqB,sCAAQ,mBAAA,EAAmB,GAAG,gBAAgB,IAAK;AAC5E,QAAM,eAAe;AAErB,QAAM,aAAa,cAAc,QAAQ,gBAAgB;AACzD,QAAM,kBACF,SAAS,QAAQ,mBAAmB,OAAO,EAAE,oBAAoB;AACrE,QAAM,iBAAiB,MAAM,YAAY,IAAI,SAAY,MAAM,iBAAiB,KAAK;AAErF,SACIC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACC,GAAG;AAAA,MACJ,WAAWC,GAAAA,GAAGC,oBAAO,MAAM,SAAS;AAAA,MACpC,c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A;AAAA,cAAA,cAAc,QAAQ;AAAA,cACtB,gBAAgB,QAAQ;AAAA,YAAA,EAAA,CAC7B;AAAA,UAAA,EAAA,CAER,EAAA,CACJ;AAAA,UACC,aAAa,QACVC,+BAAC,OAAA,EAAI,WAAWD,oBAAO,iBAAiB,eAAY,QAC/C,UAAA,UAAA,CACL;AAAA,QAAA,EAAA,CAER;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;;"}
1
+ {"version":3,"file":"Hero.cjs","sources":["../../../src/components/Hero/Hero.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { cn } from '../../utils/cn';\nimport elevationStyles from '../../styles/utils/elevation.module.css';\nimport styles from './Hero.module.css';\nimport type { HeroProps } from './Hero.types';\nimport { headingClassByStyle } from './Hero.utils';\n\nexport const Hero = ({\n label,\n heading,\n description,\n headingLevel = 'h1',\n headingStyle = 'default',\n Image,\n imageProps,\n LogoImage,\n logoImageProps,\n backgroundColor,\n primaryCta,\n secondaryCta,\n className,\n ref,\n ...props\n}: HeroProps) => {\n const headingId = useId();\n\n const ResolvedImage = Image ?? (imageProps != null ? 'img' : undefined);\n const ResolvedLogoImage = LogoImage ?? (logoImageProps != null ? 'img' : undefined);\n const image = ResolvedImage != null ? <ResolvedImage {...imageProps} /> : undefined;\n const logoImage =\n ResolvedLogoImage != null ? <ResolvedLogoImage {...logoImageProps} /> : undefined;\n const HeadingLevel = headingLevel;\n\n const hasActions = primaryCta != null || secondaryCta != null;\n const backgroundStyle =\n image == null && backgroundColor != null ? { backgroundColor } : undefined;\n const ariaLabelledBy = props['aria-label'] ? undefined : props['aria-labelledby'] || headingId;\n\n return (\n <section\n ref={ref}\n {...props}\n className={cn(styles.hero, className)}\n aria-label={props['aria-label']}\n aria-labelledby={ariaLabelledBy}\n >\n <div className={styles.hero__background} style={backgroundStyle}>\n {image != null && (\n <div className={styles.hero__backgroundImageComponent} aria-hidden=\"true\">\n {image}\n </div>\n )}\n <div className={styles.hero__overlay} aria-hidden=\"true\" />\n {logoImage != null && (\n <div className={styles.hero__logoImageWrap} aria-hidden=\"true\">\n <div className={styles.hero__logoImage}>{logoImage}</div>\n </div>\n )}\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 </div>\n </section>\n );\n};\n"],"names":["useId","jsxs","cn","styles","jsx","elevationStyles","headingClassByStyle"],"mappings":";;;;;;;;AAOO,MAAM,OAAO,CAAC;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAiB;AACb,QAAM,YAAYA,MAAAA,MAAA;AAElB,QAAM,gBAAgB,UAAU,cAAc,OAAO,QAAQ;AAC7D,QAAM,oBAAoB,cAAc,kBAAkB,OAAO,QAAQ;AACzE,QAAM,QAAQ,iBAAiB,sCAAQ,eAAA,EAAe,GAAG,YAAY,IAAK;AAC1E,QAAM,YACF,qBAAqB,sCAAQ,mBAAA,EAAmB,GAAG,gBAAgB,IAAK;AAC5E,QAAM,eAAe;AAErB,QAAM,aAAa,cAAc,QAAQ,gBAAgB;AACzD,QAAM,kBACF,SAAS,QAAQ,mBAAmB,OAAO,EAAE,oBAAoB;AACrE,QAAM,iBAAiB,MAAM,YAAY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