@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
@@ -1 +1 @@
1
- {"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,13 +1,16 @@
1
1
  import './elevation.css';
2
2
  const elevationLow = "_elevationLow_dspr0_1";
3
+ const elevationMedium = "_elevationMedium_dspr0_8";
3
4
  const elevationHigh = "_elevationHigh_dspr0_16";
4
5
  const elevationStyles = {
5
6
  elevationLow,
7
+ elevationMedium,
6
8
  elevationHigh
7
9
  };
8
10
  export {
9
11
  elevationStyles as default,
10
12
  elevationHigh,
11
- elevationLow
13
+ elevationLow,
14
+ elevationMedium
12
15
  };
13
16
  //# sourceMappingURL=elevation.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,12 +1,16 @@
1
- @layer dds-components {._focusable_azt70_1 {
1
+ @layer dds-components {._focusable_bhneb_1 {
2
2
  /* Marker class for shared focus treatment */
3
3
  }
4
4
 
5
- ._focusable_azt70_1:focus {
5
+ ._focusable_bhneb_1:where(:focus, :focus-visible) {
6
+ border-radius: var(--radius-semantic-sm);
7
+ }
8
+
9
+ ._focusable_bhneb_1:focus {
6
10
  outline-color: transparent;
7
11
  }
8
12
 
9
- ._focusable_azt70_1:focus-visible {
13
+ ._focusable_bhneb_1:focus-visible {
10
14
  /* Transparent outline ensures a visible ring fallback in forced colors. */
11
15
  outline: 2px solid transparent;
12
16
  outline-offset: 2px;
@@ -16,21 +20,25 @@
16
20
  }
17
21
 
18
22
  @media (forced-colors: active) {
19
- ._focusable_azt70_1:focus-visible {
23
+ ._focusable_bhneb_1:focus-visible {
20
24
  outline-color: Highlight;
21
25
  box-shadow: none;
22
26
  }
23
27
  }
24
28
 
25
- ._focusableInset_azt70_25 {
29
+ ._focusableInset_bhneb_29 {
26
30
  /* Marker class for inset focus treatment (ring stays inside the element boundary) */
27
31
  }
28
32
 
29
- ._focusableInset_azt70_25:focus {
33
+ ._focusableInset_bhneb_29:where(:focus, :focus-visible) {
34
+ border-radius: var(--radius-semantic-sm);
35
+ }
36
+
37
+ ._focusableInset_bhneb_29:focus {
30
38
  outline-color: transparent;
31
39
  }
32
40
 
33
- ._focusableInset_azt70_25:focus-visible {
41
+ ._focusableInset_bhneb_29:focus-visible {
34
42
  outline: 2px solid transparent;
35
43
  box-shadow:
36
44
  inset 0 0 0 2px var(--color-semantic-utility-focus-strong),
@@ -38,34 +46,34 @@
38
46
  }
39
47
 
40
48
  @media (forced-colors: active) {
41
- ._focusableInset_azt70_25:focus-visible {
49
+ ._focusableInset_bhneb_29:focus-visible {
42
50
  outline-color: Highlight;
43
51
  box-shadow: none;
44
52
  }
45
53
  }
46
54
 
47
55
  @scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
48
- ._focusable_azt70_1:focus-visible {
56
+ ._focusable_bhneb_1:focus-visible {
49
57
  box-shadow:
50
58
  0 0 0 2px var(--color-semantic-utility-focus-strong),
51
59
  0 0 0 4px var(--color-semantic-utility-focus-soft);
52
60
  }
53
61
 
54
- ._focusableInset_azt70_25:focus-visible {
62
+ ._focusableInset_bhneb_29:focus-visible {
55
63
  box-shadow:
56
64
  inset 0 0 0 2px var(--color-semantic-utility-focus-soft),
57
65
  inset 0 0 0 4px var(--color-semantic-utility-focus-strong);
58
66
  }
59
67
 
60
68
  @media (forced-colors: active) {
61
- ._focusable_azt70_1:focus-visible,
62
- ._focusableInset_azt70_25:focus-visible {
69
+ ._focusable_bhneb_1:focus-visible,
70
+ ._focusableInset_bhneb_29:focus-visible {
63
71
  box-shadow: none;
64
72
  }
65
73
  }
66
74
  }
67
75
 
68
- ._focusClipGuard_azt70_68 {
76
+ ._focusClipGuard_bhneb_76 {
69
77
  /*
70
78
  * Prevents focus rings from being clipped when the container uses overflow: hidden.
71
79
  *
@@ -1,9 +1,9 @@
1
1
  require('./focus.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const focusable = "_focusable_azt70_1";
5
- const focusableInset = "_focusableInset_azt70_25";
6
- const focusClipGuard = "_focusClipGuard_azt70_68";
4
+ const focusable = "_focusable_bhneb_1";
5
+ const focusableInset = "_focusableInset_bhneb_29";
6
+ const focusClipGuard = "_focusClipGuard_bhneb_76";
7
7
  const focusStyles = {
8
8
  focusable,
9
9
  focusableInset,
@@ -1,7 +1,7 @@
1
1
  import './focus.css';
2
- const focusable = "_focusable_azt70_1";
3
- const focusableInset = "_focusableInset_azt70_25";
4
- const focusClipGuard = "_focusClipGuard_azt70_68";
2
+ const focusable = "_focusable_bhneb_1";
3
+ const focusableInset = "_focusableInset_bhneb_29";
4
+ const focusClipGuard = "_focusClipGuard_bhneb_76";
5
5
  const focusStyles = {
6
6
  focusable,
7
7
  focusableInset,
@@ -0,0 +1,37 @@
1
+ @layer dds-components {._overlayStrong_1w2h3_1::before,
2
+ ._overlaySoft_1w2h3_2::before {
3
+ content: '';
4
+ position: fixed;
5
+ inset: 0;
6
+ pointer-events: none;
7
+ z-index: 5;
8
+ opacity: 1;
9
+ transition: opacity 0.2s ease;
10
+ }
11
+
12
+ @starting-style {
13
+ ._overlayStrong_1w2h3_1::before,
14
+ ._overlaySoft_1w2h3_2::before {
15
+ opacity: 0;
16
+ }
17
+ }
18
+
19
+ ._overlayClosing_1w2h3_19::before {
20
+ opacity: 0;
21
+ }
22
+
23
+ @media (prefers-reduced-motion: reduce) {
24
+ ._overlayStrong_1w2h3_1::before,
25
+ ._overlaySoft_1w2h3_2::before {
26
+ transition: none;
27
+ }
28
+ }
29
+
30
+ ._overlayStrong_1w2h3_1::before {
31
+ background: var(--color-semantic-utility-overlay-strong);
32
+ }
33
+
34
+ ._overlaySoft_1w2h3_2::before {
35
+ background: var(--color-semantic-utility-overlay-soft);
36
+ }
37
+ }
@@ -0,0 +1,13 @@
1
+ require('./overlay.css');
2
+ "use strict";
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
+ const overlayStrong = "_overlayStrong_1w2h3_1";
5
+ const overlayClosing = "_overlayClosing_1w2h3_19";
6
+ const overlayStyles = {
7
+ overlayStrong,
8
+ overlayClosing
9
+ };
10
+ exports.default = overlayStyles;
11
+ exports.overlayClosing = overlayClosing;
12
+ exports.overlayStrong = overlayStrong;
13
+ //# sourceMappingURL=overlay.module.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,13 @@
1
+ import './overlay.css';
2
+ const overlayStrong = "_overlayStrong_1w2h3_1";
3
+ const overlayClosing = "_overlayClosing_1w2h3_19";
4
+ const overlayStyles = {
5
+ overlayStrong,
6
+ overlayClosing
7
+ };
8
+ export {
9
+ overlayStyles as default,
10
+ overlayClosing,
11
+ overlayStrong
12
+ };
13
+ //# sourceMappingURL=overlay.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,4 +1,12 @@
1
- @layer dds-components {._underlineLink_1nw3t_1 {
1
+ @layer dds-components {._underlineLink_15fbp_1 {
2
+ text-decoration: underline;
3
+ text-underline-offset: 0.2em;
4
+ text-decoration-skip-ink: auto;
5
+ text-decoration-thickness: from-font;
6
+ }
7
+
8
+ ._underlineLinkOnHover_15fbp_8:hover,
9
+ ._underlineLinkOnHover_15fbp_8:focus-visible {
2
10
  text-decoration: underline;
3
11
  text-underline-offset: 0.2em;
4
12
  text-decoration-skip-ink: auto;
@@ -1,10 +1,13 @@
1
1
  require('./text-decoration.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const underlineLink = "_underlineLink_1nw3t_1";
4
+ const underlineLink = "_underlineLink_15fbp_1";
5
+ const underlineLinkOnHover = "_underlineLinkOnHover_15fbp_8";
5
6
  const textDecorationStyles = {
6
- underlineLink
7
+ underlineLink,
8
+ underlineLinkOnHover
7
9
  };
8
10
  exports.default = textDecorationStyles;
9
11
  exports.underlineLink = underlineLink;
12
+ exports.underlineLinkOnHover = underlineLinkOnHover;
10
13
  //# sourceMappingURL=text-decoration.module.css.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-decoration.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"text-decoration.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,10 +1,13 @@
1
1
  import './text-decoration.css';
2
- const underlineLink = "_underlineLink_1nw3t_1";
2
+ const underlineLink = "_underlineLink_15fbp_1";
3
+ const underlineLinkOnHover = "_underlineLinkOnHover_15fbp_8";
3
4
  const textDecorationStyles = {
4
- underlineLink
5
+ underlineLink,
6
+ underlineLinkOnHover
5
7
  };
6
8
  export {
7
9
  textDecorationStyles as default,
8
- underlineLink
10
+ underlineLink,
11
+ underlineLinkOnHover
9
12
  };
10
13
  //# sourceMappingURL=text-decoration.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-decoration.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"text-decoration.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/dist/styles.css CHANGED
@@ -285,6 +285,16 @@ body {
285
285
  padding: 0;
286
286
  }
287
287
 
288
+ body.dds-un-scrollable {
289
+ overflow: hidden;
290
+ }
291
+
292
+ @media screen and (min-width: 1024px) {
293
+ body.dds-un-scrollable {
294
+ overflow: initial;
295
+ }
296
+ }
297
+
288
298
  img,
289
299
  picture,
290
300
  svg,
@@ -314,6 +324,11 @@ html {
314
324
  font: var(--typography-body-md);
315
325
  }
316
326
 
327
+ body {
328
+ background-color: var(--color-semantic-surface-neutral-soft);
329
+ color: var(--color-semantic-foreground-default);
330
+ }
331
+
317
332
  h1,
318
333
  h2,
319
334
  h3,
@@ -452,14 +467,16 @@ ol {
452
467
  /* ─── Dark color scheme ─── */
453
468
 
454
469
  @scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
455
- .dds-prose {
456
- a {
457
- color: var(--color-semantic-foreground-link-inverse);
470
+ :scope {
471
+ color: var(--color-semantic-foreground-inverse);
472
+ }
458
473
 
459
- &:hover {
460
- color: var(--color-semantic-foreground-link-inverse-hover);
461
- }
462
- }
474
+ :where(a) {
475
+ color: var(--color-semantic-foreground-link-inverse);
476
+ }
477
+
478
+ :where(a:hover) {
479
+ color: var(--color-semantic-foreground-link-inverse-hover);
463
480
  }
464
481
  }
465
482
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnanpm/ui-components",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "DNA Design System - React UI Components",
5
5
  "author": "DNA Oy",
6
6
  "license": "ISC",
@@ -27,6 +27,7 @@
27
27
  "build": "tsc --project tsconfig.build.json && vite build",
28
28
  "dev": "vite build --watch",
29
29
  "gen:component": "plop --plopfile ./scripts/template-generators/plopfile.mjs component",
30
+ "tokens:check-css-vars": "bash scripts/check-token-css-vars.sh",
30
31
  "test": "vitest run --coverage",
31
32
  "test:watch": "vitest",
32
33
  "format": "prettier --write .",
@@ -85,8 +86,8 @@
85
86
  },
86
87
  "repository": {
87
88
  "type": "git",
88
- "url": "https://github.com/DNA-Online-Services/dna-design-system.git",
89
+ "url": "https://dnae.ghe.com/dna/dna-design-system.git",
89
90
  "directory": "packages/ui-components"
90
91
  },
91
- "homepage": "https://github.com/DNA-Online-Services/dna-design-system/tree/main/packages/ui-components#readme"
92
+ "homepage": "https://dnae.ghe.com/dna/dna-design-system/tree/main/packages/ui-components#readme"
92
93
  }