@dnanpm/ui-components 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/components/AccordionItem/AccordionItem.css +16 -16
  2. package/dist/components/AccordionItem/AccordionItem.module.css.cjs +11 -11
  3. package/dist/components/AccordionItem/AccordionItem.module.css.js +11 -11
  4. package/dist/components/Breadcrumb/Breadcrumb.css +9 -9
  5. package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
  6. package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
  7. package/dist/components/Button/Button.css +32 -30
  8. package/dist/components/Button/Button.module.css.cjs +11 -11
  9. package/dist/components/Button/Button.module.css.js +11 -11
  10. package/dist/components/ButtonCard/ButtonCard.cjs +105 -0
  11. package/dist/components/ButtonCard/ButtonCard.cjs.map +1 -0
  12. package/dist/components/ButtonCard/ButtonCard.css +167 -0
  13. package/dist/components/ButtonCard/ButtonCard.d.ts +3 -0
  14. package/dist/components/ButtonCard/ButtonCard.d.ts.map +1 -0
  15. package/dist/components/ButtonCard/ButtonCard.js +105 -0
  16. package/dist/components/ButtonCard/ButtonCard.js.map +1 -0
  17. package/dist/components/ButtonCard/ButtonCard.module.css.cjs +18 -0
  18. package/dist/components/ButtonCard/ButtonCard.module.css.cjs.map +1 -0
  19. package/dist/components/ButtonCard/ButtonCard.module.css.js +19 -0
  20. package/dist/components/ButtonCard/ButtonCard.module.css.js.map +1 -0
  21. package/dist/components/ButtonCard/ButtonCard.types.d.ts +103 -0
  22. package/dist/components/ButtonCard/ButtonCard.types.d.ts.map +1 -0
  23. package/dist/components/ButtonCard/index.d.ts +3 -0
  24. package/dist/components/ButtonCard/index.d.ts.map +1 -0
  25. package/dist/components/Drawer/Drawer.cjs +101 -0
  26. package/dist/components/Drawer/Drawer.cjs.map +1 -0
  27. package/dist/components/Drawer/Drawer.css +219 -0
  28. package/dist/components/Drawer/Drawer.d.ts +3 -0
  29. package/dist/components/Drawer/Drawer.d.ts.map +1 -0
  30. package/dist/components/Drawer/Drawer.js +101 -0
  31. package/dist/components/Drawer/Drawer.js.map +1 -0
  32. package/dist/components/Drawer/Drawer.module.css.cjs +37 -0
  33. package/dist/components/Drawer/Drawer.module.css.cjs.map +1 -0
  34. package/dist/components/Drawer/Drawer.module.css.js +37 -0
  35. package/dist/components/Drawer/Drawer.module.css.js.map +1 -0
  36. package/dist/components/Drawer/Drawer.types.d.ts +63 -0
  37. package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
  38. package/dist/components/Drawer/index.d.ts +3 -0
  39. package/dist/components/Drawer/index.d.ts.map +1 -0
  40. package/dist/components/Footer/Footer.cjs +272 -0
  41. package/dist/components/Footer/Footer.cjs.map +1 -0
  42. package/dist/components/Footer/Footer.css +473 -0
  43. package/dist/components/Footer/Footer.d.ts +3 -0
  44. package/dist/components/Footer/Footer.d.ts.map +1 -0
  45. package/dist/components/Footer/Footer.js +272 -0
  46. package/dist/components/Footer/Footer.js.map +1 -0
  47. package/dist/components/Footer/Footer.module.css.cjs +80 -0
  48. package/dist/components/Footer/Footer.module.css.cjs.map +1 -0
  49. package/dist/components/Footer/Footer.module.css.js +80 -0
  50. package/dist/components/Footer/Footer.module.css.js.map +1 -0
  51. package/dist/components/Footer/Footer.types.d.ts +128 -0
  52. package/dist/components/Footer/Footer.types.d.ts.map +1 -0
  53. package/dist/components/Footer/Footer.utils.cjs +41 -0
  54. package/dist/components/Footer/Footer.utils.cjs.map +1 -0
  55. package/dist/components/Footer/Footer.utils.d.ts +13 -0
  56. package/dist/components/Footer/Footer.utils.d.ts.map +1 -0
  57. package/dist/components/Footer/Footer.utils.js +41 -0
  58. package/dist/components/Footer/Footer.utils.js.map +1 -0
  59. package/dist/components/Footer/assets/app-store-badge.svg.cjs +4 -0
  60. package/dist/components/Footer/assets/app-store-badge.svg.cjs.map +1 -0
  61. package/dist/components/Footer/assets/app-store-badge.svg.js +5 -0
  62. package/dist/components/Footer/assets/app-store-badge.svg.js.map +1 -0
  63. package/dist/components/Footer/assets/google-play-badge.svg.cjs +4 -0
  64. package/dist/components/Footer/assets/google-play-badge.svg.cjs.map +1 -0
  65. package/dist/components/Footer/assets/google-play-badge.svg.js +5 -0
  66. package/dist/components/Footer/assets/google-play-badge.svg.js.map +1 -0
  67. package/dist/components/Footer/index.d.ts +3 -0
  68. package/dist/components/Footer/index.d.ts.map +1 -0
  69. package/dist/components/FunctionButton/FunctionButton.cjs +34 -0
  70. package/dist/components/FunctionButton/FunctionButton.cjs.map +1 -0
  71. package/dist/components/FunctionButton/FunctionButton.css +125 -0
  72. package/dist/components/FunctionButton/FunctionButton.d.ts +3 -0
  73. package/dist/components/FunctionButton/FunctionButton.d.ts.map +1 -0
  74. package/dist/components/FunctionButton/FunctionButton.js +34 -0
  75. package/dist/components/FunctionButton/FunctionButton.js.map +1 -0
  76. package/dist/components/FunctionButton/FunctionButton.module.css.cjs +11 -0
  77. package/dist/components/FunctionButton/FunctionButton.module.css.cjs.map +1 -0
  78. package/dist/components/FunctionButton/FunctionButton.module.css.js +12 -0
  79. package/dist/components/FunctionButton/FunctionButton.module.css.js.map +1 -0
  80. package/dist/components/FunctionButton/FunctionButton.types.d.ts +21 -0
  81. package/dist/components/FunctionButton/FunctionButton.types.d.ts.map +1 -0
  82. package/dist/components/FunctionButton/index.d.ts +3 -0
  83. package/dist/components/FunctionButton/index.d.ts.map +1 -0
  84. package/dist/components/Hero/Hero.cjs +44 -30
  85. package/dist/components/Hero/Hero.cjs.map +1 -1
  86. package/dist/components/Hero/Hero.css +89 -100
  87. package/dist/components/Hero/Hero.d.ts +1 -1
  88. package/dist/components/Hero/Hero.d.ts.map +1 -1
  89. package/dist/components/Hero/Hero.js +45 -31
  90. package/dist/components/Hero/Hero.js.map +1 -1
  91. package/dist/components/Hero/Hero.module.css.cjs +17 -20
  92. package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
  93. package/dist/components/Hero/Hero.module.css.js +17 -20
  94. package/dist/components/Hero/Hero.module.css.js.map +1 -1
  95. package/dist/components/Hero/Hero.types.d.ts +8 -3
  96. package/dist/components/Hero/Hero.types.d.ts.map +1 -1
  97. package/dist/components/Hero/Hero.utils.cjs +5 -8
  98. package/dist/components/Hero/Hero.utils.cjs.map +1 -1
  99. package/dist/components/Hero/Hero.utils.d.ts +2 -2
  100. package/dist/components/Hero/Hero.utils.d.ts.map +1 -1
  101. package/dist/components/Hero/Hero.utils.js +5 -8
  102. package/dist/components/Hero/Hero.utils.js.map +1 -1
  103. package/dist/components/IconButton/IconButton.css +31 -32
  104. package/dist/components/IconButton/IconButton.module.css.cjs +9 -9
  105. package/dist/components/IconButton/IconButton.module.css.js +9 -9
  106. package/dist/components/MainNavigation/MainNavigation.cjs +1094 -0
  107. package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -0
  108. package/dist/components/MainNavigation/MainNavigation.css +948 -0
  109. package/dist/components/MainNavigation/MainNavigation.d.ts +3 -0
  110. package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -0
  111. package/dist/components/MainNavigation/MainNavigation.js +1094 -0
  112. package/dist/components/MainNavigation/MainNavigation.js.map +1 -0
  113. package/dist/components/MainNavigation/MainNavigation.module.css.cjs +74 -0
  114. package/dist/components/MainNavigation/MainNavigation.module.css.cjs.map +1 -0
  115. package/dist/components/MainNavigation/MainNavigation.module.css.js +75 -0
  116. package/dist/components/MainNavigation/MainNavigation.module.css.js.map +1 -0
  117. package/dist/components/MainNavigation/MainNavigation.types.d.ts +149 -0
  118. package/dist/components/MainNavigation/MainNavigation.types.d.ts.map +1 -0
  119. package/dist/components/MainNavigation/MainNavigation.utils.cjs +168 -0
  120. package/dist/components/MainNavigation/MainNavigation.utils.cjs.map +1 -0
  121. package/dist/components/MainNavigation/MainNavigation.utils.d.ts +29 -0
  122. package/dist/components/MainNavigation/MainNavigation.utils.d.ts.map +1 -0
  123. package/dist/components/MainNavigation/MainNavigation.utils.js +168 -0
  124. package/dist/components/MainNavigation/MainNavigation.utils.js.map +1 -0
  125. package/dist/components/MainNavigation/index.d.ts +3 -0
  126. package/dist/components/MainNavigation/index.d.ts.map +1 -0
  127. package/dist/components/Modal/Modal.cjs +101 -0
  128. package/dist/components/Modal/Modal.cjs.map +1 -0
  129. package/dist/components/Modal/Modal.css +205 -0
  130. package/dist/components/Modal/Modal.d.ts +3 -0
  131. package/dist/components/Modal/Modal.d.ts.map +1 -0
  132. package/dist/components/Modal/Modal.js +101 -0
  133. package/dist/components/Modal/Modal.js.map +1 -0
  134. package/dist/components/Modal/Modal.module.css.cjs +39 -0
  135. package/dist/components/Modal/Modal.module.css.cjs.map +1 -0
  136. package/dist/components/Modal/Modal.module.css.js +39 -0
  137. package/dist/components/Modal/Modal.module.css.js.map +1 -0
  138. package/dist/components/Modal/Modal.types.d.ts +62 -0
  139. package/dist/components/Modal/Modal.types.d.ts.map +1 -0
  140. package/dist/components/Modal/index.d.ts +3 -0
  141. package/dist/components/Modal/index.d.ts.map +1 -0
  142. package/dist/components/Modal/useDialogDismissal.cjs +41 -0
  143. package/dist/components/Modal/useDialogDismissal.cjs.map +1 -0
  144. package/dist/components/Modal/useDialogDismissal.d.ts +17 -0
  145. package/dist/components/Modal/useDialogDismissal.d.ts.map +1 -0
  146. package/dist/components/Modal/useDialogDismissal.js +41 -0
  147. package/dist/components/Modal/useDialogDismissal.js.map +1 -0
  148. package/dist/components/Modal/useNativeDialog.cjs +126 -0
  149. package/dist/components/Modal/useNativeDialog.cjs.map +1 -0
  150. package/dist/components/Modal/useNativeDialog.d.ts +14 -0
  151. package/dist/components/Modal/useNativeDialog.d.ts.map +1 -0
  152. package/dist/components/Modal/useNativeDialog.js +126 -0
  153. package/dist/components/Modal/useNativeDialog.js.map +1 -0
  154. package/dist/components/Pictograph/Pictograph.css +69 -57
  155. package/dist/components/Pictograph/Pictograph.module.css.cjs +11 -11
  156. package/dist/components/Pictograph/Pictograph.module.css.js +11 -11
  157. package/dist/components/Pictograph/Pictograph.types.d.ts +2 -2
  158. package/dist/components/Pictograph/PictographItem.cjs +15 -4
  159. package/dist/components/Pictograph/PictographItem.cjs.map +1 -1
  160. package/dist/components/Pictograph/PictographItem.css +26 -23
  161. package/dist/components/Pictograph/PictographItem.d.ts.map +1 -1
  162. package/dist/components/Pictograph/PictographItem.js +15 -4
  163. package/dist/components/Pictograph/PictographItem.js.map +1 -1
  164. package/dist/components/Pictograph/PictographItem.module.css.cjs +3 -3
  165. package/dist/components/Pictograph/PictographItem.module.css.js +3 -3
  166. package/dist/components/Quote/Quote.cjs +32 -0
  167. package/dist/components/Quote/Quote.cjs.map +1 -0
  168. package/dist/components/Quote/Quote.css +95 -0
  169. package/dist/components/Quote/Quote.d.ts +3 -0
  170. package/dist/components/Quote/Quote.d.ts.map +1 -0
  171. package/dist/components/Quote/Quote.js +32 -0
  172. package/dist/components/Quote/Quote.js.map +1 -0
  173. package/dist/components/Quote/Quote.module.css.cjs +22 -0
  174. package/dist/components/Quote/Quote.module.css.cjs.map +1 -0
  175. package/dist/components/Quote/Quote.module.css.js +22 -0
  176. package/dist/components/Quote/Quote.module.css.js.map +1 -0
  177. package/dist/components/Quote/Quote.types.d.ts +12 -0
  178. package/dist/components/Quote/Quote.types.d.ts.map +1 -0
  179. package/dist/components/Quote/index.d.ts +3 -0
  180. package/dist/components/Quote/index.d.ts.map +1 -0
  181. package/dist/index.cjs +14 -0
  182. package/dist/index.cjs.map +1 -1
  183. package/dist/index.d.ts +14 -0
  184. package/dist/index.d.ts.map +1 -1
  185. package/dist/index.js +14 -0
  186. package/dist/index.js.map +1 -1
  187. package/dist/styles/utils/elevation.module.css.cjs +3 -0
  188. package/dist/styles/utils/elevation.module.css.cjs.map +1 -1
  189. package/dist/styles/utils/elevation.module.css.js +4 -1
  190. package/dist/styles/utils/elevation.module.css.js.map +1 -1
  191. package/dist/styles/utils/focus.css +21 -13
  192. package/dist/styles/utils/focus.module.css.cjs +3 -3
  193. package/dist/styles/utils/focus.module.css.js +3 -3
  194. package/dist/styles/utils/overlay.css +37 -0
  195. package/dist/styles/utils/overlay.module.css.cjs +13 -0
  196. package/dist/styles/utils/overlay.module.css.cjs.map +1 -0
  197. package/dist/styles/utils/overlay.module.css.js +13 -0
  198. package/dist/styles/utils/overlay.module.css.js.map +1 -0
  199. package/dist/styles/utils/text-decoration.css +9 -1
  200. package/dist/styles/utils/text-decoration.module.css.cjs +5 -2
  201. package/dist/styles/utils/text-decoration.module.css.cjs.map +1 -1
  202. package/dist/styles/utils/text-decoration.module.css.js +6 -3
  203. package/dist/styles/utils/text-decoration.module.css.js.map +1 -1
  204. package/dist/styles.css +24 -7
  205. package/package.json +4 -3
@@ -7,7 +7,7 @@
7
7
 
8
8
  /* === Box variant === */
9
9
 
10
- ._accordion-item--box_131y1_10 {
10
+ ._accordion-item--box_koqlc_10 {
11
11
  background: var(--color-semantic-surface-base);
12
12
  color: var(--color-semantic-foreground-default);
13
13
  }
@@ -15,13 +15,13 @@
15
15
  /* === Panel variant === */
16
16
  /* Inherits text color from parent context intentionally */
17
17
 
18
- ._accordion-item--panel_131y1_18 {
18
+ ._accordion-item--panel_koqlc_18 {
19
19
  border-bottom: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-mid);
20
20
  }
21
21
 
22
22
  /* === Summary (clickable header) === */
23
23
 
24
- ._accordion-item__summary_131y1_24 {
24
+ ._accordion-item__summary_koqlc_24 {
25
25
  display: flex;
26
26
  align-items: center;
27
27
  gap: var(--spacing-space-20);
@@ -33,14 +33,14 @@
33
33
  }
34
34
 
35
35
  /* Remove default marker in all browsers */
36
- ._accordion-item__summary_131y1_24::-webkit-details-marker,
37
- ._accordion-item__summary_131y1_24::marker {
36
+ ._accordion-item__summary_koqlc_24::-webkit-details-marker,
37
+ ._accordion-item__summary_koqlc_24::marker {
38
38
  display: none;
39
39
  }
40
40
 
41
41
  /* === Image === */
42
42
 
43
- ._accordion-item__image_131y1_43 {
43
+ ._accordion-item__image_koqlc_43 {
44
44
  display: flex;
45
45
  align-items: center;
46
46
  justify-content: center;
@@ -57,45 +57,45 @@
57
57
 
58
58
  /* === Image size variants === */
59
59
 
60
- ._accordion-item__image--sm_131y1_60 {
60
+ ._accordion-item__image--sm_koqlc_60 {
61
61
  width: 1.5rem;
62
62
  height: 1.5rem;
63
63
  }
64
64
 
65
- ._accordion-item__image--md_131y1_65 {
65
+ ._accordion-item__image--md_koqlc_65 {
66
66
  width: 2.5rem;
67
67
  height: 2.5rem;
68
68
  }
69
69
 
70
- ._accordion-item__image--lg_131y1_70 {
70
+ ._accordion-item__image--lg_koqlc_70 {
71
71
  width: 5rem;
72
72
  height: 5rem;
73
73
  }
74
74
 
75
75
  /* === Label === */
76
76
 
77
- ._accordion-item__label_131y1_77 {
77
+ ._accordion-item__label_koqlc_77 {
78
78
  flex: 1 1 auto;
79
79
  min-width: 0;
80
- font-weight: var(--typography-font-weight-bold);
80
+ font: var(--typography-body-md-bold);
81
81
  }
82
82
 
83
83
  /* === Chevron icon === */
84
84
 
85
- ._accordion-item__chevron_131y1_85 {
85
+ ._accordion-item__chevron_koqlc_85 {
86
86
  flex: 0 0 auto;
87
87
  width: 1.5rem;
88
88
  height: 1.5rem;
89
89
  transition: transform 0.2s ease-in-out;
90
90
  }
91
91
 
92
- ._accordion-item_131y1_10[open] > ._accordion-item__summary_131y1_24 ._accordion-item__chevron_131y1_85 {
92
+ ._accordion-item_koqlc_10[open] > ._accordion-item__summary_koqlc_24 ._accordion-item__chevron_koqlc_85 {
93
93
  transform: rotate(180deg);
94
94
  }
95
95
 
96
96
  /* === Content area === */
97
97
 
98
- ._accordion-item__content_131y1_98 {
98
+ ._accordion-item__content_koqlc_98 {
99
99
  padding: 0 var(--spacing-space-20) var(--spacing-space-20);
100
100
 
101
101
  & > *:last-child {
@@ -104,7 +104,7 @@
104
104
  }
105
105
 
106
106
  /* === Animation === */
107
- ._accordion-item_131y1_10::details-content {
107
+ ._accordion-item_koqlc_10::details-content {
108
108
  display: block;
109
109
  block-size: 0;
110
110
  opacity: 0;
@@ -116,7 +116,7 @@
116
116
  transition-behavior: allow-discrete;
117
117
  }
118
118
  }
119
- ._accordion-item_131y1_10[open]::details-content {
119
+ ._accordion-item_koqlc_10[open]::details-content {
120
120
  /* Fallback for browsers that don't support calc-size() function */
121
121
  block-size: auto;
122
122
  opacity: 1;
@@ -1,17 +1,17 @@
1
1
  require('./AccordionItem.css');
2
2
  "use strict";
3
3
  const styles = {
4
- "accordion-item--box": "_accordion-item--box_131y1_10",
5
- "accordion-item--panel": "_accordion-item--panel_131y1_18",
6
- "accordion-item__summary": "_accordion-item__summary_131y1_24",
7
- "accordion-item__image": "_accordion-item__image_131y1_43",
8
- "accordion-item__image--sm": "_accordion-item__image--sm_131y1_60",
9
- "accordion-item__image--md": "_accordion-item__image--md_131y1_65",
10
- "accordion-item__image--lg": "_accordion-item__image--lg_131y1_70",
11
- "accordion-item__label": "_accordion-item__label_131y1_77",
12
- "accordion-item__chevron": "_accordion-item__chevron_131y1_85",
13
- "accordion-item": "_accordion-item_131y1_10",
14
- "accordion-item__content": "_accordion-item__content_131y1_98"
4
+ "accordion-item--box": "_accordion-item--box_koqlc_10",
5
+ "accordion-item--panel": "_accordion-item--panel_koqlc_18",
6
+ "accordion-item__summary": "_accordion-item__summary_koqlc_24",
7
+ "accordion-item__image": "_accordion-item__image_koqlc_43",
8
+ "accordion-item__image--sm": "_accordion-item__image--sm_koqlc_60",
9
+ "accordion-item__image--md": "_accordion-item__image--md_koqlc_65",
10
+ "accordion-item__image--lg": "_accordion-item__image--lg_koqlc_70",
11
+ "accordion-item__label": "_accordion-item__label_koqlc_77",
12
+ "accordion-item__chevron": "_accordion-item__chevron_koqlc_85",
13
+ "accordion-item": "_accordion-item_koqlc_10",
14
+ "accordion-item__content": "_accordion-item__content_koqlc_98"
15
15
  };
16
16
  module.exports = styles;
17
17
  //# sourceMappingURL=AccordionItem.module.css.cjs.map
@@ -1,16 +1,16 @@
1
1
  import './AccordionItem.css';
2
2
  const styles = {
3
- "accordion-item--box": "_accordion-item--box_131y1_10",
4
- "accordion-item--panel": "_accordion-item--panel_131y1_18",
5
- "accordion-item__summary": "_accordion-item__summary_131y1_24",
6
- "accordion-item__image": "_accordion-item__image_131y1_43",
7
- "accordion-item__image--sm": "_accordion-item__image--sm_131y1_60",
8
- "accordion-item__image--md": "_accordion-item__image--md_131y1_65",
9
- "accordion-item__image--lg": "_accordion-item__image--lg_131y1_70",
10
- "accordion-item__label": "_accordion-item__label_131y1_77",
11
- "accordion-item__chevron": "_accordion-item__chevron_131y1_85",
12
- "accordion-item": "_accordion-item_131y1_10",
13
- "accordion-item__content": "_accordion-item__content_131y1_98"
3
+ "accordion-item--box": "_accordion-item--box_koqlc_10",
4
+ "accordion-item--panel": "_accordion-item--panel_koqlc_18",
5
+ "accordion-item__summary": "_accordion-item__summary_koqlc_24",
6
+ "accordion-item__image": "_accordion-item__image_koqlc_43",
7
+ "accordion-item__image--sm": "_accordion-item__image--sm_koqlc_60",
8
+ "accordion-item__image--md": "_accordion-item__image--md_koqlc_65",
9
+ "accordion-item__image--lg": "_accordion-item__image--lg_koqlc_70",
10
+ "accordion-item__label": "_accordion-item__label_koqlc_77",
11
+ "accordion-item__chevron": "_accordion-item__chevron_koqlc_85",
12
+ "accordion-item": "_accordion-item_koqlc_10",
13
+ "accordion-item__content": "_accordion-item__content_koqlc_98"
14
14
  };
15
15
  export {
16
16
  styles as default
@@ -7,14 +7,14 @@
7
7
  * Uses a container query (ch units) to switch between default and collapsed mode.
8
8
  */
9
9
 
10
- ._breadcrumb_1q2qc_10 {
10
+ ._breadcrumb_1c8nk_10 {
11
11
  container-name: breadcrumb;
12
12
  container-type: inline-size;
13
13
  width: 100%;
14
14
  overflow: hidden;
15
15
  }
16
16
 
17
- ._breadcrumb__list_1q2qc_17 {
17
+ ._breadcrumb__list_1c8nk_17 {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  gap: var(--spacing-space-4);
@@ -23,7 +23,7 @@
23
23
  list-style: none;
24
24
  }
25
25
 
26
- ._breadcrumb__item_1q2qc_26 {
26
+ ._breadcrumb__item_1c8nk_26 {
27
27
  flex: 0 0 auto;
28
28
  margin: 0;
29
29
  padding: 0;
@@ -42,21 +42,21 @@
42
42
  }
43
43
  }
44
44
 
45
- ._breadcrumb__link_1q2qc_45 {
45
+ ._breadcrumb__link_1c8nk_45 {
46
46
  color: var(--color-semantic-interactive-primary-default);
47
- border-radius: var(--radius-semantic-sm);
48
47
  }
49
48
 
50
- ._breadcrumb__link_1q2qc_45:hover {
49
+ ._breadcrumb__link_1c8nk_45:hover,
50
+ ._breadcrumb__link_1c8nk_45:focus-visible {
51
51
  color: var(--color-semantic-interactive-primary-hover);
52
52
  }
53
53
 
54
- ._breadcrumb__current_1q2qc_54 {
54
+ ._breadcrumb__current_1c8nk_54 {
55
55
  overflow: hidden;
56
56
  text-overflow: ellipsis;
57
57
  }
58
58
 
59
- ._breadcrumb__separator_1q2qc_59 {
59
+ ._breadcrumb__separator_1c8nk_59 {
60
60
  flex: 0 0 auto;
61
61
  width: 0.875rem;
62
62
  height: 0.875rem;
@@ -65,7 +65,7 @@
65
65
 
66
66
  /* Collapsed mode: hide all items except the last two */
67
67
  @container breadcrumb (max-width: 75ch) {
68
- ._breadcrumb__item_1q2qc_26:not(:nth-last-child(-n + 2)) {
68
+ ._breadcrumb__item_1c8nk_26:not(:nth-last-child(-n + 2)) {
69
69
  display: none;
70
70
  }
71
71
  }
@@ -1,12 +1,12 @@
1
1
  require('./Breadcrumb.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const breadcrumb = "_breadcrumb_1q2qc_10";
5
- const breadcrumb__list = "_breadcrumb__list_1q2qc_17";
6
- const breadcrumb__item = "_breadcrumb__item_1q2qc_26";
7
- const breadcrumb__link = "_breadcrumb__link_1q2qc_45";
8
- const breadcrumb__current = "_breadcrumb__current_1q2qc_54";
9
- const breadcrumb__separator = "_breadcrumb__separator_1q2qc_59";
4
+ const breadcrumb = "_breadcrumb_1c8nk_10";
5
+ const breadcrumb__list = "_breadcrumb__list_1c8nk_17";
6
+ const breadcrumb__item = "_breadcrumb__item_1c8nk_26";
7
+ const breadcrumb__link = "_breadcrumb__link_1c8nk_45";
8
+ const breadcrumb__current = "_breadcrumb__current_1c8nk_54";
9
+ const breadcrumb__separator = "_breadcrumb__separator_1c8nk_59";
10
10
  const styles = {
11
11
  breadcrumb,
12
12
  breadcrumb__list,
@@ -1,10 +1,10 @@
1
1
  import './Breadcrumb.css';
2
- const breadcrumb = "_breadcrumb_1q2qc_10";
3
- const breadcrumb__list = "_breadcrumb__list_1q2qc_17";
4
- const breadcrumb__item = "_breadcrumb__item_1q2qc_26";
5
- const breadcrumb__link = "_breadcrumb__link_1q2qc_45";
6
- const breadcrumb__current = "_breadcrumb__current_1q2qc_54";
7
- const breadcrumb__separator = "_breadcrumb__separator_1q2qc_59";
2
+ const breadcrumb = "_breadcrumb_1c8nk_10";
3
+ const breadcrumb__list = "_breadcrumb__list_1c8nk_17";
4
+ const breadcrumb__item = "_breadcrumb__item_1c8nk_26";
5
+ const breadcrumb__link = "_breadcrumb__link_1c8nk_45";
6
+ const breadcrumb__current = "_breadcrumb__current_1c8nk_54";
7
+ const breadcrumb__separator = "_breadcrumb__separator_1c8nk_59";
8
8
  const styles = {
9
9
  breadcrumb,
10
10
  breadcrumb__list,
@@ -1,4 +1,4 @@
1
- @layer dds-components {._button_tpbgh_1 {
1
+ @layer dds-components {._button_1utks_1 {
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -15,21 +15,21 @@
15
15
  border-color 0.2s ease-in-out;
16
16
  }
17
17
 
18
- ._button--full-width_tpbgh_18 {
18
+ ._button--full-width_1utks_18 {
19
19
  width: 100%;
20
20
  min-width: 0;
21
21
  }
22
22
 
23
23
  /* ─── Sizes ─── */
24
24
 
25
- ._button--normal_tpbgh_25 {
25
+ ._button--normal_1utks_25 {
26
26
  font: var(--typography-label-lg-bold);
27
27
  height: 40px;
28
28
  min-width: 128px;
29
29
  padding: var(--spacing-space-8) var(--spacing-space-20);
30
30
  }
31
31
 
32
- ._button--small_tpbgh_32 {
32
+ ._button--small_1utks_32 {
33
33
  font: var(--typography-label-md-bold);
34
34
  height: 32px;
35
35
  min-width: 100px;
@@ -38,91 +38,92 @@
38
38
 
39
39
  /* ─── Primary variant ─── */
40
40
 
41
- ._button--primary_tpbgh_41 {
41
+ ._button--primary_1utks_41 {
42
42
  background-color: var(--color-semantic-interactive-primary-default);
43
43
  color: var(--color-semantic-foreground-inverse);
44
44
  }
45
45
 
46
- ._button--primary_tpbgh_41:hover {
46
+ ._button--primary_1utks_41:hover {
47
47
  background-color: var(--color-semantic-interactive-primary-hover);
48
48
  color: var(--color-semantic-foreground-inverse);
49
49
  }
50
50
 
51
- ._button--primary_tpbgh_41:active {
51
+ ._button--primary_1utks_41:active {
52
52
  background-color: var(--color-semantic-interactive-primary-active);
53
53
  color: var(--color-semantic-foreground-inverse);
54
54
  }
55
55
 
56
- ._button--primary_tpbgh_41:focus-visible {
56
+ ._button--primary_1utks_41:focus-visible {
57
57
  background-color: var(--color-semantic-interactive-primary-focus);
58
58
  color: var(--color-semantic-foreground-inverse);
59
59
  }
60
60
 
61
61
  /* ─── Secondary variant ─── */
62
62
 
63
- ._button--secondary_tpbgh_63 {
63
+ ._button--secondary_1utks_63 {
64
64
  background-color: transparent;
65
65
  border: var(--borderwidth-semantic-sm) solid var(--color-semantic-interactive-secondary-default);
66
66
  color: var(--color-semantic-foreground-secondary-strong);
67
67
  }
68
68
 
69
- ._button--secondary_tpbgh_63:hover {
69
+ ._button--secondary_1utks_63:hover {
70
70
  background-color: var(--color-semantic-interactive-secondary-hover);
71
71
  border-color: var(--color-semantic-interactive-secondary-hover);
72
72
  color: var(--color-semantic-foreground-inverse);
73
73
  }
74
74
 
75
- ._button--secondary_tpbgh_63:active {
75
+ ._button--secondary_1utks_63:active {
76
76
  background-color: var(--color-semantic-interactive-secondary-active);
77
77
  border-color: var(--color-semantic-interactive-secondary-active);
78
78
  color: var(--color-semantic-foreground-inverse);
79
79
  }
80
80
 
81
- ._button--secondary_tpbgh_63:focus-visible {
81
+ ._button--secondary_1utks_63:focus-visible {
82
82
  background-color: var(--color-semantic-interactive-secondary-focus);
83
+ border-color: var(--color-semantic-interactive-secondary-focus);
83
84
  color: var(--color-semantic-foreground-inverse);
84
85
  }
85
86
 
86
87
  /* ─── Tertiary variant ─── */
87
88
 
88
- ._button--tertiary_tpbgh_88 {
89
+ ._button--tertiary_1utks_89 {
89
90
  background-color: var(--color-semantic-interactive-neutral-default);
90
91
  border: var(--borderwidth-semantic-sm) solid var(--color-semantic-border-neutral-mid);
91
92
  color: var(--color-semantic-foreground-secondary-strong);
92
93
  }
93
94
 
94
- ._button--tertiary_tpbgh_88:hover {
95
+ ._button--tertiary_1utks_89:hover {
95
96
  background-color: var(--color-semantic-interactive-neutral-hover);
96
97
  color: var(--color-semantic-foreground-secondary-strong);
97
98
  }
98
99
 
99
- ._button--tertiary_tpbgh_88:active {
100
+ ._button--tertiary_1utks_89:active {
100
101
  background-color: var(--color-semantic-interactive-neutral-active);
101
102
  color: var(--color-semantic-foreground-secondary-strong);
102
103
  }
103
104
 
104
- ._button--tertiary_tpbgh_88:focus-visible {
105
+ ._button--tertiary_1utks_89:focus-visible {
105
106
  background-color: var(--color-semantic-interactive-neutral-focus);
106
107
  color: var(--color-semantic-foreground-secondary-strong);
107
108
  }
108
109
 
109
110
  /* ─── Disabled state ─── */
110
111
 
111
- ._button--disabled_tpbgh_111 {
112
+ ._button--disabled_1utks_112 {
112
113
  pointer-events: none;
113
114
  }
114
115
 
115
- ._button--primary_tpbgh_41._button--disabled_tpbgh_111 {
116
+ ._button--primary_1utks_41._button--disabled_1utks_112 {
116
117
  background-color: var(--color-semantic-interactive-primary-disabled);
117
118
  color: var(--color-semantic-foreground-muted);
118
119
  }
119
120
 
120
- ._button--secondary_tpbgh_63._button--disabled_tpbgh_111 {
121
+ ._button--secondary_1utks_63._button--disabled_1utks_112 {
121
122
  border-color: var(--color-semantic-interactive-secondary-disabled);
122
123
  color: var(--color-semantic-foreground-muted);
123
124
  }
124
125
 
125
- ._button--tertiary_tpbgh_88._button--disabled_tpbgh_111 {
126
+ ._button--tertiary_1utks_89._button--disabled_1utks_112 {
126
127
  background-color: var(--color-semantic-interactive-neutral-disabled);
127
128
  color: var(--color-semantic-foreground-muted);
128
129
  }
@@ -131,38 +132,39 @@
131
132
  /* Styles apply from [data-color-scheme="dark"] down to (but not into) [data-color-scheme="light"]. */
132
133
 
133
134
  @scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
134
- ._button--primary_tpbgh_41._button--disabled_tpbgh_111 {
135
+ ._button--primary_1utks_41._button--disabled_1utks_112 {
135
136
  color: var(--color-semantic-foreground-inverse-muted);
136
137
  }
137
138
 
138
- ._button--secondary_tpbgh_63 {
139
+ ._button--secondary_1utks_63 {
139
140
  border-color: var(--color-semantic-interactive-inverse-default);
140
141
  color: var(--color-semantic-foreground-inverse);
141
142
  }
142
143
 
143
- ._button--secondary_tpbgh_63:hover {
144
+ ._button--secondary_1utks_63:hover {
144
145
  background-color: var(--color-semantic-interactive-inverse-hover);
145
146
  border-color: var(--color-semantic-interactive-inverse-hover);
146
147
  color: var(--color-semantic-foreground-secondary-strong);
147
148
  }
148
149
 
149
- ._button--secondary_tpbgh_63:active {
150
+ ._button--secondary_1utks_63:active {
150
151
  background-color: var(--color-semantic-interactive-inverse-active);
151
152
  border-color: var(--color-semantic-interactive-inverse-active);
152
153
  color: var(--color-semantic-foreground-secondary-strong);
153
154
  }
154
155
 
155
- ._button--secondary_tpbgh_63:focus-visible {
156
+ ._button--secondary_1utks_63:focus-visible {
156
157
  background-color: var(--color-semantic-interactive-inverse-focus);
158
+ border-color: var(--color-semantic-interactive-inverse-focus);
157
159
  color: var(--color-semantic-foreground-secondary-strong);
158
160
  }
159
161
 
160
- ._button--secondary_tpbgh_63._button--disabled_tpbgh_111 {
162
+ ._button--secondary_1utks_63._button--disabled_1utks_112 {
161
163
  border-color: var(--color-semantic-interactive-inverse-disabled);
162
164
  color: var(--color-semantic-foreground-inverse-muted);
163
165
  }
164
166
 
165
- ._button--tertiary_tpbgh_88._button--disabled_tpbgh_111 {
167
+ ._button--tertiary_1utks_89._button--disabled_1utks_112 {
166
168
  border-color: var(--color-semantic-interactive-neutral-disabled);
167
169
  color: var(--color-semantic-foreground-inverse-muted);
168
170
  }
@@ -170,11 +172,11 @@
170
172
 
171
173
  /* ─── Loading state ─── */
172
174
 
173
- ._button--loading_tpbgh_173 {
175
+ ._button--loading_1utks_175 {
174
176
  pointer-events: none;
175
177
  }
176
178
 
177
- ._button__content_tpbgh_177 {
179
+ ._button__content_1utks_179 {
178
180
  flex: 0 1 auto;
179
181
  min-width: 0;
180
182
  overflow: hidden;
@@ -182,7 +184,7 @@
182
184
  white-space: nowrap;
183
185
  }
184
186
 
185
- ._button__spinner_tpbgh_185 {
187
+ ._button__spinner_1utks_187 {
186
188
  flex: 0 0 auto;
187
189
  }
188
190
  }
@@ -1,19 +1,19 @@
1
1
  require('./Button.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const button = "_button_tpbgh_1";
5
- const button__content = "_button__content_tpbgh_177";
6
- const button__spinner = "_button__spinner_tpbgh_185";
4
+ const button = "_button_1utks_1";
5
+ const button__content = "_button__content_1utks_179";
6
+ const button__spinner = "_button__spinner_1utks_187";
7
7
  const styles = {
8
8
  button,
9
- "button--full-width": "_button--full-width_tpbgh_18",
10
- "button--normal": "_button--normal_tpbgh_25",
11
- "button--small": "_button--small_tpbgh_32",
12
- "button--primary": "_button--primary_tpbgh_41",
13
- "button--secondary": "_button--secondary_tpbgh_63",
14
- "button--tertiary": "_button--tertiary_tpbgh_88",
15
- "button--disabled": "_button--disabled_tpbgh_111",
16
- "button--loading": "_button--loading_tpbgh_173",
9
+ "button--full-width": "_button--full-width_1utks_18",
10
+ "button--normal": "_button--normal_1utks_25",
11
+ "button--small": "_button--small_1utks_32",
12
+ "button--primary": "_button--primary_1utks_41",
13
+ "button--secondary": "_button--secondary_1utks_63",
14
+ "button--tertiary": "_button--tertiary_1utks_89",
15
+ "button--disabled": "_button--disabled_1utks_112",
16
+ "button--loading": "_button--loading_1utks_175",
17
17
  button__content,
18
18
  button__spinner
19
19
  };
@@ -1,17 +1,17 @@
1
1
  import './Button.css';
2
- const button = "_button_tpbgh_1";
3
- const button__content = "_button__content_tpbgh_177";
4
- const button__spinner = "_button__spinner_tpbgh_185";
2
+ const button = "_button_1utks_1";
3
+ const button__content = "_button__content_1utks_179";
4
+ const button__spinner = "_button__spinner_1utks_187";
5
5
  const styles = {
6
6
  button,
7
- "button--full-width": "_button--full-width_tpbgh_18",
8
- "button--normal": "_button--normal_tpbgh_25",
9
- "button--small": "_button--small_tpbgh_32",
10
- "button--primary": "_button--primary_tpbgh_41",
11
- "button--secondary": "_button--secondary_tpbgh_63",
12
- "button--tertiary": "_button--tertiary_tpbgh_88",
13
- "button--disabled": "_button--disabled_tpbgh_111",
14
- "button--loading": "_button--loading_tpbgh_173",
7
+ "button--full-width": "_button--full-width_1utks_18",
8
+ "button--normal": "_button--normal_1utks_25",
9
+ "button--small": "_button--small_1utks_32",
10
+ "button--primary": "_button--primary_1utks_41",
11
+ "button--secondary": "_button--secondary_1utks_63",
12
+ "button--tertiary": "_button--tertiary_1utks_89",
13
+ "button--disabled": "_button--disabled_1utks_112",
14
+ "button--loading": "_button--loading_1utks_175",
15
15
  button__content,
16
16
  button__spinner
17
17
  };
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const icons = require("@dnanpm/icons");
5
+ const focus_module = require("../../styles/utils/focus.module.css.cjs");
6
+ const elevation_module = require("../../styles/utils/elevation.module.css.cjs");
7
+ const ButtonCard_module = require("./ButtonCard.module.css.cjs");
8
+ const cn = require("../../utils/cn/cn.cjs");
9
+ const ButtonCard = ({
10
+ title,
11
+ subtitle,
12
+ size = "medium",
13
+ icon,
14
+ image,
15
+ isExternal = false,
16
+ externalLinkAriaLabel = "avautuu uuteen välilehteen",
17
+ className,
18
+ ref,
19
+ ...props
20
+ }) => {
21
+ const isAnchor = "href" in props && props.href != null;
22
+ const classes = cn.cn(
23
+ ButtonCard_module["button-card"],
24
+ ButtonCard_module[`button-card--${size}`],
25
+ focus_module.default.focusable,
26
+ elevation_module.default.elevationLow,
27
+ className
28
+ );
29
+ const IconComponent = icon;
30
+ const media = IconComponent != null ? /* @__PURE__ */ jsxRuntime.jsx(
31
+ "span",
32
+ {
33
+ className: cn.cn(ButtonCard_module["button-card__media"], ButtonCard_module["button-card__media--icon"]),
34
+ "aria-hidden": "true",
35
+ children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { "aria-hidden": "true" })
36
+ }
37
+ ) : image ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn.cn(ButtonCard_module["button-card__media"], ButtonCard_module["button-card__media--image"]), children: image }) : null;
38
+ const explicitTarget = isAnchor ? props.target?.toLowerCase() : void 0;
39
+ const opensInNewTab = isExternal || explicitTarget === "_blank";
40
+ const Indicator = opensInNewTab ? icons.Open : icons.ChevronRight;
41
+ const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
42
+ media,
43
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: ButtonCard_module["button-card__content"], children: [
44
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: ButtonCard_module["button-card__text"], children: [
45
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: ButtonCard_module["button-card__title"], children: title }),
46
+ subtitle != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ButtonCard_module["button-card__subtitle"], children: subtitle })
47
+ ] }),
48
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: ButtonCard_module["button-card__indicator"], "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(Indicator, { "aria-hidden": "true" }) })
49
+ ] }),
50
+ opensInNewTab && externalLinkAriaLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ButtonCard_module["button-card__sr-only"], children: ` (${externalLinkAriaLabel})` })
51
+ ] });
52
+ if (isAnchor) {
53
+ const {
54
+ href,
55
+ renderLink,
56
+ target: targetProp,
57
+ rel,
58
+ disabled: _disabled,
59
+ ...safeAnchorProps
60
+ } = props;
61
+ const target = isExternal ? "_blank" : targetProp;
62
+ const shouldHardenRel = target?.toLowerCase() === "_blank";
63
+ const relTokens = new Set(
64
+ (rel ?? "").split(/\s+/).filter(Boolean).map((token) => token.toLowerCase())
65
+ );
66
+ if (shouldHardenRel) {
67
+ relTokens.add("noopener");
68
+ relTokens.add("noreferrer");
69
+ }
70
+ const hardenedRel = relTokens.size > 0 ? Array.from(relTokens).join(" ") : void 0;
71
+ const linkProps = {
72
+ ...safeAnchorProps,
73
+ ref,
74
+ href,
75
+ target,
76
+ rel: hardenedRel,
77
+ className: classes,
78
+ children: content
79
+ };
80
+ if (renderLink) {
81
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderLink(linkProps) });
82
+ }
83
+ return /* @__PURE__ */ jsxRuntime.jsx("a", { ...linkProps });
84
+ }
85
+ const {
86
+ type = "button",
87
+ href: _href,
88
+ target: _target,
89
+ rel: _rel,
90
+ renderLink: _renderLink,
91
+ ...buttonProps
92
+ } = props;
93
+ return /* @__PURE__ */ jsxRuntime.jsx(
94
+ "button",
95
+ {
96
+ ref,
97
+ type,
98
+ className: classes,
99
+ ...buttonProps,
100
+ children: content
101
+ }
102
+ );
103
+ };
104
+ exports.ButtonCard = ButtonCard;
105
+ //# sourceMappingURL=ButtonCard.cjs.map