@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,25 +1,31 @@
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
  @import '../../scss/supernova/styles/colors';
8
8
 
9
9
  $dark-mode-disabled-transparrent: #ffffffb3;
10
10
  $with-icons: // icon-class, size-class, padding-left, padding-right, padding-left desktop, padding-right desktop, svg-margin-left, svg-margin-right, svg-margin-left desktop, svg-margin-right desktop
11
- 'left-icon' 'normal' getSpacer(xs) getSpacer(s) getSpacer(xs) getSpacer(m) 0 getSpacer(3xs) 0 getSpacer(2xs),
12
- 'right-icon' 'normal' getSpacer(s) getSpacer(xs) getSpacer(m) getSpacer(xs) getSpacer(3xs) 0 getSpacer(2xs) 0,
13
- 'left-icon' 'large' getSpacer(xs) getSpacer(m) getSpacer(s) getSpacer(l) 0 getSpacer(2xs) 0 getSpacer(xs),
14
- 'right-icon' 'large' getSpacer(m) getSpacer(xs) getSpacer(l) getSpacer(s) getSpacer(2xs) 0 getSpacer(xs) 0,
15
- 'arrow' 'normal' getSpacer(s) getSpacer(xs) getSpacer(m) getSpacer(xs) getSpacer(m) 0 getSpacer(l) 0,
16
- 'arrow' 'large' getSpacer(m) getSpacer(xs) getSpacer(l) getSpacer(xs) getSpacer(l) 0 getSpacer(xl) 0,
17
- 'arrow--both-icons' 'normal' 0 0 0 0 getSpacer(s) 0 getSpacer(m) 0,
18
- 'arrow--both-icons' 'large' 0 0 0 0 getSpacer(m) 0 getSpacer(l) 0,
11
+ 'left-icon' 'normal' spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) 0 spacers.getSpacer(3xs) 0
12
+ spacers.getSpacer(2xs),
13
+ 'right-icon' 'normal' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(3xs) 0
14
+ spacers.getSpacer(2xs) 0,
15
+ 'left-icon' 'large' spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l) 0 spacers.getSpacer(2xs) 0
16
+ spacers.getSpacer(xs),
17
+ 'right-icon' 'large' spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(l) spacers.getSpacer(s) spacers.getSpacer(2xs) 0
18
+ spacers.getSpacer(xs) 0,
19
+ 'arrow' 'normal' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(m) 0
20
+ spacers.getSpacer(l) 0,
21
+ 'arrow' 'large' spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(l) spacers.getSpacer(xs) spacers.getSpacer(l) 0
22
+ spacers.getSpacer(xl) 0,
23
+ 'arrow--both-icons' 'normal' 0 0 0 0 spacers.getSpacer(s) 0 spacers.getSpacer(m) 0,
24
+ 'arrow--both-icons' 'large' 0 0 0 0 spacers.getSpacer(m) 0 spacers.getSpacer(l) 0,
19
25
  'only-icon' 'normal' 0.062rem 0.062rem 0.375rem 0.375rem 0 0 0 0,
20
- 'only-icon' 'large' 0.312rem 0.312rem getSpacer(3xs) getSpacer(3xs) 0 0 0 0,
21
- 'both-icons' 'normal' getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(xs) 0 0 0 0,
22
- 'both-icons' 'large' getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(xs) 0 0 0 0;
26
+ 'only-icon' 'large' 0.312rem 0.312rem spacers.getSpacer(3xs) spacers.getSpacer(3xs) 0 0 0 0,
27
+ 'both-icons' 'normal' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0,
28
+ 'both-icons' 'large' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0;
23
29
 
24
30
  // Brukes til å aktivere hover styling uten at button hovres
25
31
  @mixin outline-borderless-hover {
@@ -34,11 +40,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
34
40
  }
35
41
 
36
42
  @mixin focus-shadow {
37
- box-shadow: 0 0 0 getSpacer(3xs) $black;
43
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$black;
38
44
  }
39
45
 
40
46
  @mixin focus-shadow-on-dark {
41
- box-shadow: 0 0 0 getSpacer(3xs) $white;
47
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$white;
42
48
  }
43
49
 
44
50
  @mixin outline-borderless-background($background-color, $hover-background-color) {
@@ -54,18 +60,18 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
54
60
  }
55
61
 
56
62
  @mixin outline($ouline-color, $hover-outline-color) {
57
- outline: getSpacer(4xs) solid $ouline-color;
58
- outline-offset: getSpacer(4xs) * -1;
63
+ outline: spacers.getSpacer(4xs) solid $ouline-color;
64
+ outline-offset: spacers.getSpacer(4xs) * -1;
59
65
 
60
66
  &:hover {
61
67
  box-shadow: none;
62
68
  }
63
69
 
64
70
  :disabled > & {
65
- outline-color: $neutral700;
71
+ outline-color: palette.$neutral700;
66
72
 
67
73
  @media (min-width: map.get($grid-breakpoints, md)) {
68
- outline-color: $neutral500;
74
+ outline-color: palette.$neutral500;
69
75
  }
70
76
  }
71
77
  }
@@ -79,13 +85,13 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
79
85
 
80
86
  :disabled > & {
81
87
  @media (min-width: map.get($grid-breakpoints, md)) {
82
- color: $neutral700;
88
+ color: palette.$neutral700;
83
89
  }
84
90
  }
85
91
  }
86
92
 
87
93
  @mixin fill-on-dark($background-color) {
88
- background-color: $white;
94
+ background-color: palette.$white;
89
95
 
90
96
  &:hover {
91
97
  box-shadow: none;
@@ -102,7 +108,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
102
108
  &:hover {
103
109
  @include focus-shadow-on-dark;
104
110
 
105
- background-color: $white;
111
+ background-color: palette.$white;
106
112
  }
107
113
  }
108
114
 
@@ -116,7 +122,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
116
122
  color: $color;
117
123
 
118
124
  :disabled > & {
119
- color: $neutral700;
125
+ color: palette.$neutral700;
120
126
  }
121
127
  }
122
128
 
@@ -125,7 +131,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
125
131
  @include fill-on-dark(var(--color-action-background-ondark-hover));
126
132
  }
127
133
  &--on-dark#{&}--destructive {
128
- @include fill-on-dark($cherry50);
134
+ @include fill-on-dark(palette.$cherry50);
129
135
  }
130
136
  &--on-dark#{&}--outline,
131
137
  &--on-dark#{&}--borderless,
@@ -134,11 +140,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
134
140
  background-color: transparent;
135
141
 
136
142
  &:hover {
137
- background-color: $inverted-hover;
143
+ background-color: palette.$inverted-hover;
138
144
  }
139
145
  }
140
146
  &--on-dark#{&}--outline {
141
- outline-color: $white;
147
+ outline-color: palette.$white;
142
148
 
143
149
  :disabled > & {
144
150
  @media (min-width: map.get($grid-breakpoints, md)) {
@@ -153,14 +159,14 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
153
159
  }
154
160
 
155
161
  &--on-dark &__text {
156
- @include on-dark-text($blueberry600);
162
+ @include on-dark-text(palette.$blueberry600);
157
163
  }
158
164
  &--on-dark#{&}--destructive &__text {
159
- @include on-dark-text($cherry600);
165
+ @include on-dark-text(palette.$cherry600);
160
166
  }
161
167
  &--on-dark#{&}--outline &__text,
162
168
  &--on-dark#{&}--borderless &__text {
163
- color: $white;
169
+ color: palette.$white;
164
170
 
165
171
  :disabled > & {
166
172
  @media (min-width: map.get($grid-breakpoints, md)) {
@@ -195,9 +201,9 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
195
201
 
196
202
  .button {
197
203
  display: inline-flex;
198
- background-color: $blueberry500;
199
- padding: 0 getSpacer(m);
200
- font-size: $font-size-sm;
204
+ background-color: palette.$blueberry500;
205
+ padding: 0 spacers.getSpacer(m);
206
+ font-size: font-settings.$font-size-sm;
201
207
  font-weight: 600;
202
208
  font-family: inherit;
203
209
  line-height: 1.375rem;
@@ -211,37 +217,37 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
211
217
  letter-spacing: unset;
212
218
 
213
219
  &:hover {
214
- background-color: $blueberry700;
215
- box-shadow: 0 0 0 getSpacer(3xs) $blueberry700;
220
+ background-color: palette.$blueberry700;
221
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$blueberry700;
216
222
  }
217
223
 
218
224
  :disabled > & {
219
225
  pointer-events: none;
220
- outline: getSpacer(4xs) dashed $neutral700;
221
- outline-offset: getSpacer(4xs) * -1;
222
- background-color: $neutral200;
226
+ outline: spacers.getSpacer(4xs) dashed palette.$neutral700;
227
+ outline-offset: spacers.getSpacer(4xs) * -1;
228
+ background-color: palette.$neutral200;
223
229
  }
224
230
 
225
231
  :disabled > & &__text {
226
- color: $neutral800;
232
+ color: palette.$neutral800;
227
233
  }
228
234
 
229
235
  @media (min-width: map.get($grid-breakpoints, md)) {
230
236
  min-height: 3.125rem;
231
- padding: 0 getSpacer(l);
232
- font-size: $font-size-md;
237
+ padding: 0 spacers.getSpacer(l);
238
+ font-size: font-settings.$font-size-md;
233
239
  line-height: 1.5rem;
234
240
  }
235
241
 
236
242
  &--large {
237
243
  min-height: 3.5rem;
238
- padding: 0 getSpacer(l);
244
+ padding: 0 spacers.getSpacer(l);
239
245
  font-size: 1.3125rem;
240
246
 
241
247
  @media (min-width: map.get($grid-breakpoints, md)) {
242
248
  min-height: 4.5rem;
243
- padding: 0 getSpacer(xl);
244
- font-size: $font-size-lg;
249
+ padding: 0 spacers.getSpacer(xl);
250
+ font-size: font-settings.$font-size-lg;
245
251
  line-height: 1.5rem;
246
252
  }
247
253
  }
@@ -271,11 +277,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
271
277
  }
272
278
 
273
279
  &--destructive {
274
- background-color: $cherry500;
280
+ background-color: palette.$cherry500;
275
281
 
276
282
  &:hover {
277
- background-color: $cherry700;
278
- box-shadow: 0 0 0 getSpacer(3xs) $cherry700;
283
+ background-color: palette.$cherry700;
284
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$cherry700;
279
285
  }
280
286
  }
281
287
 
@@ -285,19 +291,19 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
285
291
  }
286
292
  &--outline#{&}--destructive,
287
293
  &--borderless#{&}--destructive {
288
- @include outline-borderless-background(transparent, $cherry50);
294
+ @include outline-borderless-background(transparent, palette.$cherry50);
289
295
  }
290
296
 
291
297
  &--outline {
292
- @include outline($blueberry700, $blueberry50);
298
+ @include outline(palette.$blueberry700, palette.$blueberry50);
293
299
  }
294
300
  &--outline#{&}--destructive {
295
- @include outline($cherry700, $cherry50);
301
+ @include outline(palette.$cherry700, palette.$cherry50);
296
302
  }
297
303
 
298
304
  /* stylelint-disable-next-line */
299
305
  &--borderless:not(.button--only-icon) {
300
- padding: 0 getSpacer(3xs);
306
+ padding: 0 spacers.getSpacer(3xs);
301
307
  }
302
308
 
303
309
  /* stylelint-disable-next-line */
@@ -323,7 +329,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
323
329
 
324
330
  /* stylelint-disable-next-line */
325
331
  &__text {
326
- color: $white;
332
+ color: palette.$white;
327
333
  margin: 0 auto 0 0;
328
334
  position: relative;
329
335
  display: flex;
@@ -356,7 +362,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
356
362
  }
357
363
  &--outline#{&}--destructive &__text,
358
364
  &--borderless#{&}--destructive &__text {
359
- @include text-color($cherry600, $cherry700);
365
+ @include text-color(palette.$cherry600, palette.$cherry700);
360
366
  }
361
367
 
362
368
  /* stylelint-disable-next-line */
@@ -365,6 +371,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
365
371
  }
366
372
 
367
373
  @include on-dark;
374
+
375
+ @include tiny-screens-media-query {
376
+ min-height: spacers.getSpacer(l);
377
+ padding: 0 spacers.getSpacer(xs);
378
+ }
368
379
  }
369
380
 
370
381
  .diagonal {
@@ -376,13 +387,13 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
376
387
 
377
388
  &__line {
378
389
  display: block;
379
- border-bottom: getSpacer(4xs) dashed $neutral500;
390
+ border-bottom: spacers.getSpacer(4xs) dashed palette.$neutral500;
380
391
  transform-origin: top left;
381
392
  transform: rotate(37.4deg);
382
393
  }
383
394
 
384
395
  &--on-dark &__line {
385
- border-color: $white;
396
+ border-color: palette.$white;
386
397
 
387
398
  @media (min-width: map.get($grid-breakpoints, md)) {
388
399
  border-color: $dark-mode-disabled-transparrent;