@helsenorge/designsystem-react 10.1.0 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/AnchorLink.js +2 -2
  2. package/AnchorLink.js.map +1 -1
  3. package/Avatar.js +2 -2
  4. package/Avatar.js.map +1 -1
  5. package/Badge.js +3 -3
  6. package/Badge.js.map +1 -1
  7. package/Button.js +4 -4
  8. package/Button.js.map +1 -1
  9. package/CHANGELOG.md +1392 -801
  10. package/Checkbox.js +2 -2
  11. package/Checkbox.js.map +1 -1
  12. package/Close.js +2 -2
  13. package/Close.js.map +1 -1
  14. package/ErrorBoundary.js +2 -2
  15. package/ErrorBoundary.js.map +1 -1
  16. package/FormGroup.js +12 -12
  17. package/FormGroup.js.map +1 -1
  18. package/FormLayout.js +3 -3
  19. package/FormLayout.js.map +1 -1
  20. package/HelpBubble.js +2 -2
  21. package/HelpBubble.js.map +1 -1
  22. package/HighlightPanel.js +2 -2
  23. package/HighlightPanel.js.map +1 -1
  24. package/Icon.js +3 -3
  25. package/Icon.js.map +1 -1
  26. package/Illustration.js +3 -3
  27. package/Illustration.js.map +1 -1
  28. package/Input.js +2 -2
  29. package/Input.js.map +1 -1
  30. package/Label.js +8 -8
  31. package/Label.js.map +1 -1
  32. package/LazyIcon.js +1 -1
  33. package/LazyIllustration.js +3 -3
  34. package/LazyIllustration.js.map +1 -1
  35. package/LinkList.js +6 -6
  36. package/LinkList.js.map +1 -1
  37. package/ListHeader.js +7 -7
  38. package/ListHeader.js.map +1 -1
  39. package/Panel.js +2 -2
  40. package/Panel.js.map +1 -1
  41. package/PopOver.js +2 -2
  42. package/PopOver.js.map +1 -1
  43. package/RadioButton.js +2 -2
  44. package/RadioButton.js.map +1 -1
  45. package/Select.js +2 -2
  46. package/Select.js.map +1 -1
  47. package/Slider.js +3 -3
  48. package/Slider.js.map +1 -1
  49. package/Spacer.js +2 -2
  50. package/Spacer.js.map +1 -1
  51. package/StatusDot.js +1 -1
  52. package/StepButtons.js +4 -4
  53. package/StepButtons.js.map +1 -1
  54. package/TabList.js +4 -4
  55. package/TabList.js.map +1 -1
  56. package/Table.js +2 -2
  57. package/Table.js.map +1 -1
  58. package/TableBody.js +2 -2
  59. package/TableBody.js.map +1 -1
  60. package/TableExpandedRow.js +2 -2
  61. package/TableExpandedRow.js.map +1 -1
  62. package/TableHead.js +2 -2
  63. package/TableHead.js.map +1 -1
  64. package/TableRow.js +2 -2
  65. package/TableRow.js.map +1 -1
  66. package/Textarea.js +2 -2
  67. package/Textarea.js.map +1 -1
  68. package/Title.js +2 -2
  69. package/Title.js.map +1 -1
  70. package/TooltipWord.js +2 -2
  71. package/TooltipWord.js.map +1 -1
  72. package/Trigger.js +3 -3
  73. package/Trigger.js.map +1 -1
  74. package/components/AnchorLink/styles.module.scss +8 -9
  75. package/components/Avatar/styles.module.scss +9 -9
  76. package/components/Badge/styles.module.scss +9 -9
  77. package/components/Button/styles.module.scss +68 -57
  78. package/components/Checkbox/styles.module.scss +103 -103
  79. package/components/Chip/styles.module.scss +22 -22
  80. package/components/Close/styles.module.scss +4 -4
  81. package/components/DictionaryTrigger/index.js +2 -2
  82. package/components/DictionaryTrigger/index.js.map +1 -1
  83. package/components/DictionaryTrigger/styles.module.scss +5 -5
  84. package/components/Drawer/Drawer.d.ts +41 -0
  85. package/components/Drawer/Drawer.test.d.ts +1 -0
  86. package/components/Drawer/index.d.ts +3 -0
  87. package/components/Drawer/index.js +350 -0
  88. package/components/Drawer/index.js.map +1 -0
  89. package/components/Drawer/styles.module.scss +127 -0
  90. package/components/Drawer/styles.module.scss.d.ts +16 -0
  91. package/components/Dropdown/index.js +3 -3
  92. package/components/Dropdown/index.js.map +1 -1
  93. package/components/Dropdown/styles.module.scss +51 -51
  94. package/components/Duolist/index.js +6 -5
  95. package/components/Duolist/index.js.map +1 -1
  96. package/components/Duolist/styles.module.scss +57 -35
  97. package/components/Duolist/styles.module.scss.d.ts +1 -0
  98. package/components/EmptyState/styles.module.scss +12 -12
  99. package/components/ErrorWrapper/styles.module.scss +11 -21
  100. package/components/ErrorWrapper/styles.module.scss.d.ts +0 -1
  101. package/components/Expander/styles.module.scss +46 -46
  102. package/components/ExpanderHierarchy/expander.module.scss +29 -29
  103. package/components/ExpanderHierarchy/index.js +5 -5
  104. package/components/ExpanderHierarchy/index.js.map +1 -1
  105. package/components/ExpanderHierarchy/styles.module.scss +4 -5
  106. package/components/ExpanderList/index.js +8 -8
  107. package/components/ExpanderList/index.js.map +1 -1
  108. package/components/ExpanderList/styles.module.scss +30 -30
  109. package/components/EyebrowHeader/styles.module.scss +0 -2
  110. package/components/FormGroup/styles.module.scss +9 -9
  111. package/components/FormLayout/styles.module.scss +4 -5
  112. package/components/HelpBubble/styles.module.scss +13 -13
  113. package/components/HelpPanel/styles.module.scss +2 -2
  114. package/components/HelpQuestion/index.js +2 -2
  115. package/components/HelpQuestion/index.js.map +1 -1
  116. package/components/HelpQuestion/styles.module.scss +19 -19
  117. package/components/HighlightPanel/styles.module.scss +22 -54
  118. package/components/HighlightPanel/styles.module.scss.d.ts +1 -2
  119. package/components/HorizontalScroll/styles.module.scss +4 -3
  120. package/components/Icons/EuropeanHealthCard.js +1 -1
  121. package/components/Icons/GroupTwins.js +1 -1
  122. package/components/Icons/Inbox.js +1 -1
  123. package/components/Icons/LawBook.js +1 -1
  124. package/components/Icons/PersonCancel.js +1 -1
  125. package/components/Icons/PersonWithBrain.js +1 -1
  126. package/components/Icons/Puzzle.js +1 -1
  127. package/components/Icons/Snapchat.js +1 -1
  128. package/components/Illustrations/IllustrationNames.d.ts +1 -1
  129. package/components/Illustrations/IllustrationNames.js +4 -2
  130. package/components/Illustrations/IllustrationNames.js.map +1 -1
  131. package/components/Illustrations/ReadLetters.d.ts +9 -0
  132. package/components/Illustrations/ReadLetters.js +11 -0
  133. package/components/Illustrations/ReadLetters.js.map +1 -0
  134. package/components/Illustrations/ReadLettersMedium.d.ts +4 -0
  135. package/components/Illustrations/ReadLettersMedium.js +110 -0
  136. package/components/Illustrations/ReadLettersMedium.js.map +1 -0
  137. package/components/Illustrations/Support2.d.ts +9 -0
  138. package/components/Illustrations/Support2.js +11 -0
  139. package/components/Illustrations/Support2.js.map +1 -0
  140. package/components/Illustrations/Support2Medium.d.ts +4 -0
  141. package/components/Illustrations/Support2Medium.js +232 -0
  142. package/components/Illustrations/Support2Medium.js.map +1 -0
  143. package/components/Input/styles.module.scss +12 -12
  144. package/components/Label/styles.module.scss +28 -24
  145. package/components/Label/styles.module.scss.d.ts +3 -1
  146. package/components/LinkList/styles.module.scss +33 -33
  147. package/components/List/styles.module.scss +7 -7
  148. package/components/ListHeader/styles.module.scss +8 -8
  149. package/components/Loader/styles.module.scss +14 -14
  150. package/components/MaxCharacters/styles.module.scss +11 -11
  151. package/components/Modal/index.js +71 -82
  152. package/components/Modal/index.js.map +1 -1
  153. package/components/Modal/styles.module.scss +45 -39
  154. package/components/NotificationPanel/index.js +3 -3
  155. package/components/NotificationPanel/index.js.map +1 -1
  156. package/components/NotificationPanel/styles.module.scss +33 -33
  157. package/components/Panel/styles.module.scss +45 -45
  158. package/components/PanelList/index.js +5 -5
  159. package/components/PanelList/index.js.map +1 -1
  160. package/components/PanelList/styles.module.scss +5 -5
  161. package/components/PopMenu/index.js +5 -5
  162. package/components/PopMenu/index.js.map +1 -1
  163. package/components/PopMenu/styles.module.scss +15 -15
  164. package/components/PopOver/styles.module.scss +13 -14
  165. package/components/PopOver/styles.module.scss.d.ts +0 -3
  166. package/components/Portal/index.js +3 -3
  167. package/components/Portal/index.js.map +1 -1
  168. package/components/Progressbar/styles.module.scss +4 -4
  169. package/components/PromoPanel/index.js +2 -2
  170. package/components/PromoPanel/index.js.map +1 -1
  171. package/components/PromoPanel/styles.module.scss +22 -22
  172. package/components/RadioButton/styles.module.scss +99 -99
  173. package/components/Select/styles.module.scss +21 -21
  174. package/components/ServiceMessage/styles.module.scss +49 -49
  175. package/components/SharingStatus/styles.module.scss +13 -13
  176. package/components/Slider/styles.module.scss +24 -24
  177. package/components/Spacer/styles.module.scss +14 -14
  178. package/components/StatusDot/styles.module.scss +22 -22
  179. package/components/Step/styles.module.scss +3 -3
  180. package/components/StepButtons/styles.module.scss +9 -9
  181. package/components/Stepper/styles.module.scss +23 -15
  182. package/components/StickyNote/styles.module.scss +3 -3
  183. package/components/Table/styles.module.scss +32 -32
  184. package/components/Tabs/TabList/styles.module.scss +1 -1
  185. package/components/Tabs/TabPanel/styles.module.scss +5 -5
  186. package/components/Tabs/index.js +3 -3
  187. package/components/Tabs/index.js.map +1 -1
  188. package/components/Tabs/styles.module.scss +1 -1
  189. package/components/Tag/styles.module.scss +16 -16
  190. package/components/TagList/index.js +2 -2
  191. package/components/TagList/index.js.map +1 -1
  192. package/components/TagList/styles.module.scss +4 -4
  193. package/components/Textarea/styles.module.scss +9 -9
  194. package/components/Tile/index.js +6 -6
  195. package/components/Tile/index.js.map +1 -1
  196. package/components/Tile/styles.module.scss +25 -25
  197. package/components/Title/styles.module.scss +8 -8
  198. package/components/Toggle/index.js +3 -3910
  199. package/components/Toggle/index.js.map +1 -1
  200. package/components/Toggle/styles.module.scss +14 -14
  201. package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
  202. package/components/Tooltip/index.js +2 -2
  203. package/components/Tooltip/index.js.map +1 -1
  204. package/components/Trigger/styles.module.scss +21 -21
  205. package/components/Validation/index.js +6 -6
  206. package/components/Validation/index.js.map +1 -1
  207. package/components/Validation/styles.module.scss +10 -10
  208. package/constants.d.ts +1 -0
  209. package/constants.js +1 -0
  210. package/constants.js.map +1 -1
  211. package/hoc/withBreakpoint/withBreakpoint.js +2 -2
  212. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  213. package/hooks/useBreakpoint.d.ts +0 -4
  214. package/hooks/useBreakpoint.js +23 -18
  215. package/hooks/useBreakpoint.js.map +1 -1
  216. package/hooks/useEventListenerState.js +3 -3
  217. package/hooks/useEventListenerState.js.map +1 -1
  218. package/hooks/useReturnFocusOnUnmount.d.ts +5 -0
  219. package/hooks/useReturnFocusOnUnmount.js +20 -0
  220. package/hooks/useReturnFocusOnUnmount.js.map +1 -0
  221. package/package.json +1 -1
  222. package/scss/_body.scss +5 -6
  223. package/scss/_breakpoints.scss +8 -2
  224. package/scss/_font-mixins.scss +57 -2
  225. package/scss/_fonts.scss +0 -2
  226. package/scss/_input.scss +53 -50
  227. package/scss/_print.scss +2 -2
  228. package/scss/layout.module.scss +2 -2
  229. package/scss/typography.module.scss +62 -37
  230. package/scss/typography.module.scss.d.ts +6 -0
  231. package/scss/typography.stories.tsx +24 -0
  232. package/theme/index.js +2 -2
  233. package/use-animate.js +3952 -0
  234. package/use-animate.js.map +1 -0
  235. package/utils/accessibility.d.ts +1 -0
  236. package/utils/accessibility.js +6 -1
  237. package/utils/accessibility.js.map +1 -1
  238. package/utils/component.js +4 -4
  239. package/utils/component.js.map +1 -1
@@ -1,8 +1,8 @@
1
1
  @use 'sass:map';
2
- @import '../../scss/spacers';
3
- @import '../../scss/breakpoints';
4
- @import '../../scss/palette';
5
- @import '../../scss/font-settings';
2
+ @use '../../scss/spacers' as spacers;
3
+ @use '../../scss/palette' as palette;
4
+ @use '../../scss/font-settings' as font-settings;
5
+ @use '../../scss/breakpoints' as *;
6
6
 
7
7
  .select-wrapper {
8
8
  display: flex;
@@ -12,7 +12,7 @@
12
12
  .select-inner-wrapper {
13
13
  // Grid brukes til å kunne plassere custom ikon fritt over select elementet
14
14
  display: inline-grid;
15
- background-color: $white;
15
+ background-color: palette.$white;
16
16
  align-items: center;
17
17
 
18
18
  // Andre kolonne her styrer plassering av select ikonet
@@ -23,23 +23,23 @@
23
23
  }
24
24
 
25
25
  &:hover {
26
- background: $neutral50;
26
+ background: palette.$neutral50;
27
27
  }
28
28
 
29
29
  &--on-blueberry {
30
30
  &:hover {
31
- background-color: $blueberry50;
31
+ background-color: palette.$blueberry50;
32
32
  }
33
33
  }
34
34
 
35
35
  &--invalid {
36
36
  &:hover {
37
- background-color: $cherry50;
37
+ background-color: palette.$cherry50;
38
38
  }
39
39
  }
40
40
 
41
41
  &--disabled {
42
- color: $neutral700;
42
+ color: palette.$neutral700;
43
43
  background: transparent;
44
44
 
45
45
  &:hover {
@@ -56,26 +56,26 @@
56
56
  background-color: transparent;
57
57
  grid-column: 1 / 3;
58
58
  grid-row: 1;
59
- padding-left: getSpacer(xs);
59
+ padding-left: spacers.getSpacer(xs);
60
60
  border: none;
61
- outline: $neutral700 solid 2px;
61
+ outline: palette.$neutral700 solid 2px;
62
62
  outline-offset: -2px;
63
63
  font-family: inherit;
64
- font-size: $font-size-sm;
65
- line-height: $lineheight-size-sm;
64
+ font-size: font-settings.$font-size-sm;
65
+ line-height: font-settings.$lineheight-size-sm;
66
66
  border-radius: 0;
67
67
 
68
68
  @media (min-width: map.get($grid-breakpoints, md)) {
69
69
  height: 3.125rem;
70
- font-size: $font-size-md;
70
+ font-size: font-settings.$font-size-md;
71
71
  }
72
72
 
73
73
  &--on-blueberry {
74
- outline-color: $blueberry500;
74
+ outline-color: palette.$blueberry500;
75
75
  }
76
76
 
77
77
  &--invalid {
78
- outline-color: $cherry600;
78
+ outline-color: palette.$cherry600;
79
79
  }
80
80
 
81
81
  :hover > & {
@@ -84,22 +84,22 @@
84
84
  }
85
85
 
86
86
  &:focus {
87
- outline: $black solid 4px;
87
+ outline: palette.$black solid 4px;
88
88
  outline-offset: -2px;
89
89
  }
90
90
 
91
91
  &:disabled {
92
- outline: $neutral600 dashed 2px;
92
+ outline: palette.$neutral600 dashed 2px;
93
93
  outline-offset: -2px;
94
94
  }
95
95
 
96
96
  & > option {
97
- background: $white;
97
+ background: palette.$white;
98
98
  font-family: inherit;
99
- font-size: $font-size-sm;
99
+ font-size: font-settings.$font-size-sm;
100
100
 
101
101
  @media (min-width: map.get($grid-breakpoints, md)) {
102
- font-size: $font-size-md;
102
+ font-size: font-settings.$font-size-md;
103
103
  }
104
104
  }
105
105
  }
@@ -1,8 +1,8 @@
1
1
  @use 'sass:map';
2
- @import '../../scss/spacers';
3
- @import '../../scss/palette';
4
- @import '../../scss/breakpoints';
5
- @import '../../scss/font-settings';
2
+ @use '../../scss/spacers' as spacers;
3
+ @use '../../scss/palette' as palette;
4
+ @use '../../scss/font-settings' as font-settings;
5
+ @use '../../scss/breakpoints' as *;
6
6
  @import '../../scss/grid';
7
7
 
8
8
  .service-message {
@@ -16,54 +16,54 @@
16
16
  }
17
17
 
18
18
  &--success {
19
- background-color: $kiwi50;
19
+ background-color: palette.$kiwi50;
20
20
 
21
21
  &:hover {
22
- background-color: rgba-to-rgb(rgba($kiwi500, 0.1), $kiwi50);
22
+ background-color: rgba-to-rgb(rgba(palette.$kiwi500, 0.1), palette.$kiwi50);
23
23
  }
24
24
 
25
25
  &#{$servicemessage},
26
26
  &#{$servicemessage}__label-container {
27
- border-color: $kiwi900;
27
+ border-color: palette.$kiwi900;
28
28
  }
29
29
  }
30
30
 
31
31
  &--info {
32
- background-color: $blueberry50;
32
+ background-color: palette.$blueberry50;
33
33
 
34
34
  &:hover {
35
- background-color: rgba-to-rgb(rgba($blueberry500, 0.1), $blueberry50);
35
+ background-color: rgba-to-rgb(rgba(palette.$blueberry500, 0.1), palette.$blueberry50);
36
36
  }
37
37
 
38
38
  &#{$servicemessage},
39
39
  &#{$servicemessage}__label-container {
40
- border-color: $blueberry700;
40
+ border-color: palette.$blueberry700;
41
41
  }
42
42
  }
43
43
 
44
44
  &--warn {
45
- background-color: $banana50;
45
+ background-color: palette.$banana50;
46
46
 
47
47
  &:hover {
48
- background-color: rgba-to-rgb(rgba($banana500, 0.1), $banana50);
48
+ background-color: rgba-to-rgb(rgba(palette.$banana500, 0.1), palette.$banana50);
49
49
  }
50
50
 
51
51
  &#{$servicemessage},
52
52
  &#{$servicemessage}__label-container {
53
- border-color: $banana700;
53
+ border-color: palette.$banana700;
54
54
  }
55
55
  }
56
56
 
57
57
  &--error {
58
- background-color: $cherry50;
58
+ background-color: palette.$cherry50;
59
59
 
60
60
  &:hover {
61
- background-color: rgba-to-rgb(rgba($cherry500, 0.1), $cherry50);
61
+ background-color: rgba-to-rgb(rgba(palette.$cherry500, 0.1), palette.$cherry50);
62
62
  }
63
63
 
64
64
  &#{$servicemessage},
65
65
  &#{$servicemessage}__label-container {
66
- border-color: $cherry700;
66
+ border-color: palette.$cherry700;
67
67
  }
68
68
  }
69
69
 
@@ -83,16 +83,16 @@
83
83
 
84
84
  &__label-container {
85
85
  position: relative;
86
- padding-top: getSpacer(3xs);
87
- padding-bottom: getSpacer(3xs);
86
+ padding-top: spacers.getSpacer(3xs);
87
+ padding-bottom: spacers.getSpacer(3xs);
88
88
 
89
89
  @media (min-width: map.get($grid-breakpoints, lg)) {
90
- padding-top: getSpacer(2xs);
91
- padding-bottom: getSpacer(2xs);
90
+ padding-top: spacers.getSpacer(2xs);
91
+ padding-bottom: spacers.getSpacer(2xs);
92
92
  }
93
93
 
94
94
  &--has-expander:has(:focus-visible) {
95
- box-shadow: inset 0 0 0 2px $black;
95
+ box-shadow: inset 0 0 0 2px palette.$black;
96
96
  }
97
97
  }
98
98
 
@@ -100,21 +100,21 @@
100
100
  display: flex;
101
101
  width: 100%;
102
102
  align-items: center;
103
- gap: getSpacer(2xs);
103
+ gap: spacers.getSpacer(2xs);
104
104
 
105
105
  @media (min-width: map.get($grid-breakpoints, md)) {
106
- gap: getSpacer(m);
106
+ gap: spacers.getSpacer(m);
107
107
  }
108
108
  }
109
109
 
110
110
  &__title {
111
111
  width: 100%;
112
112
  font-weight: 700;
113
- font-size: $font-size-xs;
113
+ font-size: font-settings.$font-size-xs;
114
114
  line-height: 1.25rem;
115
115
 
116
116
  @media (min-width: map.get($grid-breakpoints, md)) {
117
- font-size: $font-size-sm;
117
+ font-size: font-settings.$font-size-sm;
118
118
  }
119
119
  }
120
120
 
@@ -130,43 +130,43 @@
130
130
  }
131
131
 
132
132
  &__content {
133
- margin-left: calc(38px + getSpacer(2xs));
134
- margin-right: calc(38px + getSpacer(2xs));
135
- padding-top: getSpacer(xs);
136
- padding-bottom: getSpacer(xs);
133
+ margin-left: calc(38px + spacers.getSpacer(2xs));
134
+ margin-right: calc(38px + spacers.getSpacer(2xs));
135
+ padding-top: spacers.getSpacer(xs);
136
+ padding-bottom: spacers.getSpacer(xs);
137
137
 
138
138
  @media (min-width: map.get($grid-breakpoints, md)) {
139
- margin-left: calc(38px + getSpacer(m));
140
- margin-right: calc(38px + getSpacer(m));
139
+ margin-left: calc(38px + spacers.getSpacer(m));
140
+ margin-right: calc(38px + spacers.getSpacer(m));
141
141
  }
142
142
 
143
143
  @media (min-width: map.get($grid-breakpoints, lg)) {
144
- margin-left: calc(48px + getSpacer(m));
145
- margin-right: calc(48px + getSpacer(m));
146
- padding-top: getSpacer(2xs);
147
- padding-bottom: getSpacer(s);
144
+ margin-left: calc(48px + spacers.getSpacer(m));
145
+ margin-right: calc(48px + spacers.getSpacer(m));
146
+ padding-top: spacers.getSpacer(2xs);
147
+ padding-bottom: spacers.getSpacer(s);
148
148
  }
149
149
  }
150
150
 
151
151
  &__info {
152
- font-size: $font-size-xs;
152
+ font-size: font-settings.$font-size-xs;
153
153
  line-height: 1.25rem;
154
154
  margin: 0;
155
155
 
156
156
  @media (min-width: map.get($grid-breakpoints, lg)) {
157
- margin-top: getSpacer(xs);
157
+ margin-top: spacers.getSpacer(xs);
158
158
  line-height: 1.625rem;
159
- font-size: $font-size-sm;
159
+ font-size: font-settings.$font-size-sm;
160
160
  }
161
161
 
162
162
  &--extra {
163
163
  font-size: 0.875rem;
164
- margin-top: getSpacer(2xs);
164
+ margin-top: spacers.getSpacer(2xs);
165
165
 
166
166
  @media (min-width: map.get($grid-breakpoints, lg)) {
167
- margin-top: getSpacer(xs);
168
- font-size: $font-size-xs;
169
- line-height: $lineheight-size-xs;
167
+ margin-top: spacers.getSpacer(xs);
168
+ font-size: font-settings.$font-size-xs;
169
+ line-height: font-settings.$lineheight-size-xs;
170
170
  }
171
171
  }
172
172
  }
@@ -175,15 +175,15 @@
175
175
  display: flex;
176
176
  justify-content: space-between;
177
177
  flex-flow: column wrap;
178
- gap: getSpacer(2xs);
179
- margin-top: getSpacer(2xs);
178
+ gap: spacers.getSpacer(2xs);
179
+ margin-top: spacers.getSpacer(2xs);
180
180
 
181
181
  @media (min-width: map.get($grid-breakpoints, sm)) {
182
182
  flex-direction: row;
183
183
  }
184
184
 
185
185
  @media (min-width: map.get($grid-breakpoints, lg)) {
186
- margin-top: getSpacer(s);
186
+ margin-top: spacers.getSpacer(s);
187
187
  }
188
188
  }
189
189
 
@@ -192,15 +192,15 @@
192
192
  align-items: center;
193
193
  border: none;
194
194
  width: fit-content;
195
- color: $blueberry700;
195
+ color: palette.$blueberry700;
196
196
  font-weight: 600;
197
- font-size: $font-size-xs;
197
+ font-size: font-settings.$font-size-xs;
198
198
  line-height: 1.25rem;
199
199
  background-color: transparent;
200
200
  text-decoration: none;
201
201
  padding: 0.5rem;
202
202
  margin-left: -0.5rem;
203
- gap: getSpacer(xs);
203
+ gap: spacers.getSpacer(xs);
204
204
 
205
205
  &:hover,
206
206
  &:active {
@@ -208,7 +208,7 @@
208
208
  }
209
209
 
210
210
  &:focus-visible {
211
- box-shadow: 0 0 0 2px $black;
211
+ box-shadow: 0 0 0 2px palette.$black;
212
212
  background-color: transparent;
213
213
  border: 0;
214
214
  outline: none;
@@ -1,19 +1,19 @@
1
1
  @use 'sass:map';
2
- @import '../../scss/spacers';
3
- @import '../../scss/breakpoints';
4
- @import '../../scss/palette';
5
- @import '../../scss/font-settings';
6
- @import '../../scss/screen-reader';
2
+ @use '../../scss/spacers' as spacers;
3
+ @use '../../scss/palette' as palette;
4
+ @use '../../scss/font-settings' as font-settings;
5
+ @use '../../scss/screen-reader' as *;
6
+ @use '../../scss/breakpoints' as *;
7
7
 
8
8
  $dot-size: 1.765rem;
9
9
 
10
10
  .sharing-status {
11
11
  display: inline-flex;
12
12
  align-items: center;
13
- font-size: $font-size-sm;
13
+ font-size: font-settings.$font-size-sm;
14
14
  line-height: 1.25rem;
15
15
  font-weight: 600;
16
- gap: getSpacer(2xs);
16
+ gap: spacers.getSpacer(2xs);
17
17
 
18
18
  &__dot {
19
19
  display: inline-flex;
@@ -26,15 +26,15 @@ $dot-size: 1.765rem;
26
26
  min-height: $dot-size;
27
27
 
28
28
  &--kiwi {
29
- background: $kiwi900;
29
+ background: palette.$kiwi900;
30
30
  }
31
31
 
32
32
  &--cherry {
33
- background: $cherry500;
33
+ background: palette.$cherry500;
34
34
  }
35
35
 
36
36
  &--neutral {
37
- background: $neutral700;
37
+ background: palette.$neutral700;
38
38
  }
39
39
  }
40
40
 
@@ -46,15 +46,15 @@ $dot-size: 1.765rem;
46
46
  }
47
47
 
48
48
  &--kiwi {
49
- color: $kiwi900;
49
+ color: palette.$kiwi900;
50
50
  }
51
51
 
52
52
  &--cherry {
53
- color: $cherry500;
53
+ color: palette.$cherry500;
54
54
  }
55
55
 
56
56
  &--neutral {
57
- color: $neutral700;
57
+ color: palette.$neutral700;
58
58
  }
59
59
  }
60
60
  }
@@ -1,11 +1,11 @@
1
- @import '../../scss/spacers';
2
- @import '../../scss/breakpoints';
3
- @import '../../scss/palette';
4
- @import '../../scss/screen-reader';
1
+ @use '../../scss/spacers' as spacers;
2
+ @use '../../scss/palette' as palette;
3
+ @use '../../scss/screen-reader' as *;
4
+ @use '../../scss/breakpoints' as *;
5
5
  @import '../../scss/supernova/styles/colors';
6
6
 
7
7
  $track-height-offset: 1rem;
8
- $mark-size: getSpacer(l);
8
+ $mark-size: spacers.getSpacer(l);
9
9
 
10
10
  .sr-only-slider {
11
11
  @include sr-only;
@@ -14,7 +14,7 @@ $mark-size: getSpacer(l);
14
14
  .slider {
15
15
  display: flex;
16
16
  flex-direction: column;
17
- row-gap: getSpacer(s);
17
+ row-gap: spacers.getSpacer(s);
18
18
  width: 100%;
19
19
  position: relative;
20
20
  outline: none !important;
@@ -26,8 +26,8 @@ $mark-size: getSpacer(l);
26
26
  &__content-container {
27
27
  display: flex;
28
28
  flex-direction: column;
29
- row-gap: getSpacer(s);
30
- padding: 0 getSpacer(s);
29
+ row-gap: spacers.getSpacer(s);
30
+ padding: 0 spacers.getSpacer(s);
31
31
  }
32
32
 
33
33
  &__emoji-container,
@@ -58,23 +58,23 @@ $mark-size: getSpacer(l);
58
58
  }
59
59
 
60
60
  &__track {
61
- padding: 0 getSpacer(s);
62
- border-top: 2px solid $black;
61
+ padding: 0 spacers.getSpacer(s);
62
+ border-top: 2px solid palette.$black;
63
63
  position: relative;
64
64
  top: $track-height-offset;
65
65
 
66
66
  &--disabled {
67
- border-color: $neutral600;
67
+ border-color: palette.$neutral600;
68
68
  }
69
69
 
70
70
  &__step {
71
71
  position: absolute;
72
72
  left: -1px;
73
73
  width: 2px;
74
- height: getSpacer(xs);
74
+ height: spacers.getSpacer(xs);
75
75
  bottom: 0;
76
76
  top: (calc($track-height-offset / 2) * -1) + 0.05rem;
77
- background-color: $black;
77
+ background-color: palette.$black;
78
78
  }
79
79
  }
80
80
 
@@ -84,8 +84,8 @@ $mark-size: getSpacer(l);
84
84
  align-items: center;
85
85
  width: $mark-size;
86
86
  height: $mark-size;
87
- background-color: $white;
88
- border: 0.15rem solid $black;
87
+ background-color: palette.$white;
88
+ border: 0.15rem solid palette.$black;
89
89
  border-radius: 10rem;
90
90
  position: absolute;
91
91
  z-index: 9;
@@ -93,12 +93,12 @@ $mark-size: getSpacer(l);
93
93
  cursor: pointer;
94
94
 
95
95
  &--focused {
96
- outline: 0.15rem solid $black;
96
+ outline: 0.15rem solid palette.$black;
97
97
  }
98
98
 
99
99
  &--focused#{&}--selected {
100
100
  &::after {
101
- background-color: $blueberry700;
101
+ background-color: palette.$blueberry700;
102
102
  }
103
103
  }
104
104
 
@@ -107,12 +107,12 @@ $mark-size: getSpacer(l);
107
107
  content: '';
108
108
  width: 1.25rem;
109
109
  height: 1.25rem;
110
- border: 0.1rem solid $black;
110
+ border: 0.1rem solid palette.$black;
111
111
  border-radius: 10rem;
112
- background-color: $blueberry600;
112
+ background-color: palette.$blueberry600;
113
113
 
114
114
  :hover > & {
115
- background-color: $blueberry700;
115
+ background-color: palette.$blueberry700;
116
116
  }
117
117
  }
118
118
  }
@@ -122,15 +122,15 @@ $mark-size: getSpacer(l);
122
122
  }
123
123
 
124
124
  &--disabled {
125
- border-color: $neutral500;
125
+ border-color: palette.$neutral500;
126
126
  cursor: default;
127
127
 
128
128
  &::after {
129
- border-color: $neutral500;
130
- background-color: $neutral200;
129
+ border-color: palette.$neutral500;
130
+ background-color: palette.$neutral200;
131
131
 
132
132
  :hover > & {
133
- background-color: $neutral200;
133
+ background-color: palette.$neutral200;
134
134
  }
135
135
  }
136
136
  }
@@ -1,4 +1,4 @@
1
- @import '../../scss/spacers';
1
+ @use '../../scss/spacers' as spacers;
2
2
 
3
3
  .spacer {
4
4
  display: block;
@@ -6,54 +6,54 @@
6
6
  height: 0.125rem;
7
7
 
8
8
  &--4xs {
9
- height: getSpacer(4xs);
9
+ height: spacers.getSpacer(4xs);
10
10
  }
11
11
 
12
12
  &--3xs {
13
- height: getSpacer(3xs);
13
+ height: spacers.getSpacer(3xs);
14
14
  }
15
15
 
16
16
  &--2xs {
17
- height: getSpacer(2xs);
17
+ height: spacers.getSpacer(2xs);
18
18
  }
19
19
 
20
20
  &--xs {
21
- height: getSpacer(xs);
21
+ height: spacers.getSpacer(xs);
22
22
  }
23
23
 
24
24
  &--s {
25
- height: getSpacer(s);
25
+ height: spacers.getSpacer(s);
26
26
  }
27
27
 
28
28
  &--m {
29
- height: getSpacer(m);
29
+ height: spacers.getSpacer(m);
30
30
  }
31
31
 
32
32
  &--l {
33
- height: getSpacer(l);
33
+ height: spacers.getSpacer(l);
34
34
  }
35
35
 
36
36
  &--xl {
37
- height: getSpacer(xl);
37
+ height: spacers.getSpacer(xl);
38
38
  }
39
39
 
40
40
  &--2xl {
41
- height: getSpacer(2xl);
41
+ height: spacers.getSpacer(2xl);
42
42
  }
43
43
 
44
44
  &--3xl {
45
- height: getSpacer(3xl);
45
+ height: spacers.getSpacer(3xl);
46
46
  }
47
47
 
48
48
  &--4xl {
49
- height: getSpacer(4xl);
49
+ height: spacers.getSpacer(4xl);
50
50
  }
51
51
 
52
52
  &--5xl {
53
- height: getSpacer(5xl);
53
+ height: spacers.getSpacer(5xl);
54
54
  }
55
55
 
56
56
  &--6xl {
57
- height: getSpacer(6xl);
57
+ height: spacers.getSpacer(6xl);
58
58
  }
59
59
  }