@lucca-front/scss 15.0.3 → 15.1.0-rc.1

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 (146) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/base.scss +23 -6
  4. package/src/commons/config.scss +59 -59
  5. package/src/commons/core.scss +3 -3
  6. package/src/commons/utils/media.scss +3 -3
  7. package/src/commons/vars.scss +2 -3
  8. package/src/components/actionIcon/component.scss +1 -1
  9. package/src/components/actionIcon/index.scss +2 -2
  10. package/src/components/actionIcon/mods.scss +3 -3
  11. package/src/components/box/component.scss +5 -5
  12. package/src/components/box/vars.scss +2 -2
  13. package/src/components/breadcrumbs/component.scss +5 -5
  14. package/src/components/breadcrumbs/mods.scss +1 -1
  15. package/src/components/button/component.scss +13 -13
  16. package/src/components/button/index.scss +18 -15
  17. package/src/components/button/mods.scss +44 -64
  18. package/src/components/button/states.scss +9 -17
  19. package/src/components/button/vars.scss +5 -17
  20. package/src/components/buttonGroup/component.scss +7 -7
  21. package/src/components/callout/component.scss +6 -5
  22. package/src/components/callout/index.scss +2 -2
  23. package/src/components/callout/mods.scss +11 -11
  24. package/src/components/callout/vars.scss +2 -2
  25. package/src/components/card/component.scss +4 -4
  26. package/src/components/card/vars.scss +3 -3
  27. package/src/components/checkbox/component.scss +3 -3
  28. package/src/components/checkbox/index.scss +4 -4
  29. package/src/components/checkbox/mods.scss +9 -9
  30. package/src/components/checkbox/vars.scss +6 -6
  31. package/src/components/chip/component.scss +4 -4
  32. package/src/components/code/mods.scss +2 -2
  33. package/src/components/collapse/component.scss +5 -5
  34. package/src/components/container/index.scss +2 -2
  35. package/src/components/container/mods.scss +7 -7
  36. package/src/components/divider/component.scss +2 -2
  37. package/src/components/emptyState/component.scss +4 -4
  38. package/src/components/errorPage/component.scss +5 -5
  39. package/src/components/errorPage/index.scss +1 -1
  40. package/src/components/field/component.scss +4 -4
  41. package/src/components/field/mods.scss +3 -3
  42. package/src/components/field/states.scss +3 -3
  43. package/src/components/field/vars.scss +14 -14
  44. package/src/components/file/component.scss +16 -16
  45. package/src/components/file/index.scss +2 -2
  46. package/src/components/file/mods.scss +9 -9
  47. package/src/components/filters/component.scss +4 -4
  48. package/src/components/filters/mods.scss +1 -1
  49. package/src/components/filters/vars.scss +1 -1
  50. package/src/components/form/component.scss +3 -3
  51. package/src/components/form/index.scss +1 -1
  52. package/src/components/form/mods.scss +2 -2
  53. package/src/components/form/vars.scss +8 -8
  54. package/src/components/gauge/component.scss +3 -3
  55. package/src/components/grid/component.scss +4 -4
  56. package/src/components/grid/index.scss +23 -19
  57. package/src/components/header/component.scss +5 -5
  58. package/src/components/header/mods.scss +2 -2
  59. package/src/components/header/vars.scss +1 -1
  60. package/src/components/index.scss +0 -1
  61. package/src/components/label/component.scss +12 -6
  62. package/src/components/label/index.scss +4 -8
  63. package/src/components/label/mods.scss +10 -36
  64. package/src/components/layout/component.scss +14 -14
  65. package/src/components/layout/mods.scss +4 -4
  66. package/src/components/layout/states.scss +1 -1
  67. package/src/components/link/component.scss +5 -3
  68. package/src/components/link/index.scss +8 -0
  69. package/src/components/link/mods.scss +8 -0
  70. package/src/components/link/states.scss +4 -0
  71. package/src/components/list/component.scss +2 -2
  72. package/src/components/list/mods.scss +1 -1
  73. package/src/components/list/vars.scss +2 -2
  74. package/src/components/loading/component.scss +1 -1
  75. package/src/components/loading/index.scss +2 -2
  76. package/src/components/loading/mods.scss +5 -5
  77. package/src/components/main/component.scss +1 -1
  78. package/src/components/main/mods.scss +1 -1
  79. package/src/components/main/states.scss +1 -1
  80. package/src/components/menu/component.scss +6 -6
  81. package/src/components/menu/index.scss +2 -2
  82. package/src/components/menu/mods.scss +7 -7
  83. package/src/components/menu/vars.scss +1 -1
  84. package/src/components/navside/component.scss +8 -8
  85. package/src/components/navside/index.scss +3 -3
  86. package/src/components/navside/vars.scss +3 -3
  87. package/src/components/pageHeader/component.scss +7 -7
  88. package/src/components/pageHeader/mods.scss +2 -2
  89. package/src/components/pagination/component.scss +7 -7
  90. package/src/components/progress/component.scss +2 -2
  91. package/src/components/progress/vars.scss +1 -1
  92. package/src/components/radio/index.scss +2 -2
  93. package/src/components/radio/mods.scss +8 -8
  94. package/src/components/radio/vars.scss +5 -5
  95. package/src/components/radioButtons/component.scss +8 -9
  96. package/src/components/radioButtons/index.scss +2 -2
  97. package/src/components/radioButtons/mods.scss +3 -3
  98. package/src/components/section/component.scss +1 -1
  99. package/src/components/section/index.scss +4 -4
  100. package/src/components/section/mods.scss +6 -6
  101. package/src/components/status/component.scss +6 -6
  102. package/src/components/switch/component.scss +9 -9
  103. package/src/components/switch/index.scss +4 -4
  104. package/src/components/switch/mods.scss +13 -13
  105. package/src/components/switch/states.scss +3 -3
  106. package/src/components/switch/vars.scss +3 -3
  107. package/src/components/table/component.scss +5 -5
  108. package/src/components/table/index.scss +2 -2
  109. package/src/components/table/mods.scss +20 -24
  110. package/src/components/table/vars.scss +4 -4
  111. package/src/components/tableFixed/index.scss +2 -2
  112. package/src/components/tableOfContent/component.scss +3 -3
  113. package/src/components/tableOfContent/vars.scss +1 -1
  114. package/src/components/tableSorted/index.scss +2 -2
  115. package/src/components/tableSorted/mods.scss +5 -5
  116. package/src/components/tableSorted/states.scss +1 -1
  117. package/src/components/tableSticked/index.scss +4 -4
  118. package/src/components/tableSticked/mods.scss +4 -4
  119. package/src/components/tag/component.scss +5 -5
  120. package/src/components/textfield/component.scss +8 -8
  121. package/src/components/textfield/index.scss +22 -22
  122. package/src/components/textfield/mods.scss +61 -61
  123. package/src/components/textfield/states.scss +2 -2
  124. package/src/components/textfield/vars.scss +8 -8
  125. package/src/components/timeline/component.scss +7 -7
  126. package/src/components/timeline/index.scss +26 -26
  127. package/src/components/timeline/mods.scss +35 -35
  128. package/src/components/timeline/states.scss +1 -1
  129. package/src/components/timepicker/component.scss +16 -14
  130. package/src/components/title/component.scss +5 -5
  131. package/src/components/title/index.scss +2 -2
  132. package/src/components/title/mods.scss +22 -22
  133. package/src/components/titleSection/component.scss +4 -4
  134. package/src/components/titleSection/index.scss +4 -4
  135. package/src/components/titleSection/mods.scss +5 -5
  136. package/src/components/toast/component.scss +24 -18
  137. package/src/components/toast/index.scss +1 -5
  138. package/src/components/toast/mods.scss +4 -54
  139. package/src/components/toast/vars.scss +8 -9
  140. package/src/components/util/index.scss +2 -2
  141. package/src/components/skipLinks/component.scss +0 -50
  142. package/src/components/skipLinks/exports.scss +0 -4
  143. package/src/components/skipLinks/index.scss +0 -6
  144. package/src/components/skipLinks/mods.scss +0 -0
  145. package/src/components/skipLinks/states.scss +0 -0
  146. package/src/components/skipLinks/vars.scss +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "15.0.3",
3
+ "version": "15.1.0-rc.1",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -23,6 +23,6 @@
23
23
  "normalize.css": "^8.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@lucca-front/icons": "v15.0.3"
26
+ "@lucca-front/icons": "v15.1.0-rc.1"
27
27
  }
28
28
  }
@@ -3,8 +3,8 @@
3
3
 
4
4
  @use '@lucca-front/scss/src/commons/config';
5
5
 
6
- @mixin base {
7
- @at-root {
6
+ @mixin base($atRoot: 'without: rule') {
7
+ @at-root ($atRoot) {
8
8
  @if config.$fontVariable {
9
9
  @font-face {
10
10
  font-family: 'Source Sans Pro';
@@ -17,7 +17,23 @@
17
17
  url('//cdn.lucca.fr/fonts/SourceSans/SourceSans3VF-Roman.ttf') format('truetype');
18
18
  }
19
19
  } @else {
20
- @import url('//fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');
20
+ @font-face {
21
+ font-family: 'Source Sans Pro';
22
+ src: url('//cdn.lucca.fr/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),
23
+ url('//cdn.lucca.fr/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');
24
+ font-weight: 400;
25
+ font-style: normal;
26
+ font-display: swap;
27
+ }
28
+
29
+ @font-face {
30
+ font-family: 'Source Sans Pro';
31
+ src: url('//cdn.lucca.fr/fonts/SourceSans/sourcesanspro-semibold.woff2') format('woff2'),
32
+ url('//cdn.lucca.fr/fonts/SourceSans/sourcesanspro-semibold.woff') format('woff');
33
+ font-weight: 600;
34
+ font-style: normal;
35
+ font-display: swap;
36
+ }
21
37
  }
22
38
 
23
39
  *,
@@ -34,8 +50,9 @@
34
50
  background-color: var(--commons-background-base);
35
51
  color: var(--palettes-grey-800);
36
52
  font-family: var(--commons-font-family);
37
- font-size: var(--sizes-standard-font-size);
38
- line-height: var(--sizes-standard-line-height);
53
+ font-size: var(--sizes-M-fontSize);
54
+ line-height: var(--sizes-M-lineHeight);
55
+ scrollbar-gutter: stable;
39
56
 
40
57
  @supports (-webkit-touch-callout: none) {
41
58
  min-height: -webkit-fill-available;
@@ -43,7 +60,7 @@
43
60
  }
44
61
 
45
62
  p {
46
- margin: 0 0 var(--spacings-small);
63
+ margin: 0 0 var(--spacings-S);
47
64
  }
48
65
 
49
66
  abbr {
@@ -97,69 +97,69 @@ $colorsRgb: (
97
97
  ) !default;
98
98
 
99
99
  $breakpoints: (
100
- xxxs: 320px,
101
- xxs: 480px,
102
- xs: 640px,
103
- s: 800px,
104
- m: 1024px,
105
- l: 1280px,
106
- xl: 1366px,
107
- xxl: 1600px,
108
- xxxl: 1920px,
100
+ XXXS: 320px,
101
+ XXS: 480px,
102
+ XS: 640px,
103
+ S: 800px,
104
+ M: 1024px,
105
+ L: 1280px,
106
+ XL: 1366px,
107
+ XXL: 1600px,
108
+ XXXL: 1920px,
109
109
  );
110
110
 
111
111
  $spacings: (
112
- reset: 0,
113
- smallest: 0.25rem,
114
- smaller: 0.5rem,
115
- small: 1rem,
116
- standard: 1.5rem,
117
- big: 2rem,
118
- bigger: 3rem,
119
- biggest: 4rem,
112
+ '0': 0,
113
+ XXS: 0.25rem,
114
+ XS: 0.5rem,
115
+ S: 1rem,
116
+ M: 1.5rem,
117
+ L: 2rem,
118
+ XL: 3rem,
119
+ XXL: 4rem,
120
120
  );
121
121
 
122
122
  $sizes: (
123
- smaller: (
124
- font-size: 0.75rem,
125
- line-height: 1rem,
126
- vertical-padding: 0,
123
+ XS: (
124
+ fontSize: 0.75rem,
125
+ lineHeight: 1rem,
126
+ verticalPadding: 0,
127
127
  ),
128
- small: (
129
- font-size: 0.875rem,
130
- line-height: 1.25rem,
131
- vertical-padding: 0.125rem,
128
+ S: (
129
+ fontSize: 0.875rem,
130
+ lineHeight: 1.25rem,
131
+ verticalPadding: 0.125rem,
132
132
  ),
133
- standard: (
134
- font-size: 1rem,
135
- line-height: 1.5rem,
136
- vertical-padding: 0.125rem,
133
+ M: (
134
+ fontSize: 1rem,
135
+ lineHeight: 1.5rem,
136
+ verticalPadding: 0.125rem,
137
137
  ),
138
- big: (
139
- font-size: 1.125rem,
140
- line-height: 1.5rem,
141
- vertical-padding: 0.25rem,
138
+ L: (
139
+ fontSize: 1.125rem,
140
+ lineHeight: 1.5rem,
141
+ verticalPadding: 0.25rem,
142
142
  ),
143
- bigger: (
144
- font-size: 1.375rem,
145
- line-height: 1.75rem,
146
- vertical-padding: 0.5rem,
143
+ XL: (
144
+ fontSize: 1.375rem,
145
+ lineHeight: 1.75rem,
146
+ verticalPadding: 0.5rem,
147
147
  ),
148
- biggest: (
149
- font-size: 1.75rem,
150
- line-height: 2rem,
151
- vertical-padding: 0.25rem,
148
+ XXL: (
149
+ fontSize: 1.75rem,
150
+ lineHeight: 2rem,
151
+ verticalPadding: 0.25rem,
152
152
  ),
153
- headline: (
154
- font-size: 2.25rem,
155
- line-height: 2.5rem,
156
- vertical-padding: 0.5rem,
153
+ XXXL: (
154
+ fontSize: 2.25rem,
155
+ lineHeight: 2.5rem,
156
+ verticalPadding: 0.5rem,
157
157
  ),
158
158
  );
159
159
 
160
160
  $borderRadius: (
161
- '': 4px,
162
- 'big': 8px,
161
+ 'M': 4px,
162
+ 'L': 8px,
163
163
  );
164
164
 
165
165
  $elevations: (
@@ -177,20 +177,19 @@ $elevations: (
177
177
  );
178
178
 
179
179
  $boxShadows: (
180
- 'hard': 'var(--commons-box-shadow-xxs)',
181
- 'xxs': '0 2px 8px rgba(var(--colors-grey-900-rgb), .2), 0 1px 2px rgba(var(--colors-grey-900-rgb), 0.15)',
182
- 'xs': '0 1px 2px rgba(var(--colors-grey-900-rgb), 0.06), 0 2px 8px rgba(var(--colors-grey-900-rgb), 0.04)',
183
- 's': 'var(--commons-elevations-elevation-2)',
184
- 'm': 'var(--commons-elevations-elevation-3)',
185
- 'l': 'var(--commons-elevations-elevation-4)',
186
- 'xl': 'var(--commons-elevations-elevation-5)',
187
- 'xxl': 'var(--commons-elevations-elevation-6)',
180
+ 'XXS': '0 2px 8px rgba(var(--colors-grey-900-rgb), .2), 0 1px 2px rgba(var(--colors-grey-900-rgb), 0.15)',
181
+ 'XS': '0 1px 2px rgba(var(--colors-grey-900-rgb), 0.06), 0 2px 8px rgba(var(--colors-grey-900-rgb), 0.04)',
182
+ 'S': 'var(--commons-elevations-elevation-2)',
183
+ 'M': 'var(--commons-elevations-elevation-3)',
184
+ 'L': 'var(--commons-elevations-elevation-4)',
185
+ 'XL': 'var(--commons-elevations-elevation-5)',
186
+ 'XXL': 'var(--commons-elevations-elevation-6)',
188
187
  );
189
188
 
190
189
  $disabled: (
191
190
  'opacity': 0.4,
192
191
  'background': 'var(--palettes-grey-100)',
193
- 'color': 'var(--palettes-grey-600)',
192
+ 'color': 'var(--palettes-grey-500)',
194
193
  'placeholder': 'var(--palettes-grey-400)',
195
194
  );
196
195
 
@@ -201,7 +200,7 @@ $animations: (
201
200
  );
202
201
 
203
202
  $durations: (
204
- 'fast': 100ms,
203
+ 'fast': 150ms,
205
204
  'standard': 250ms,
206
205
  'slow': 350ms,
207
206
  );
@@ -213,6 +212,7 @@ $loading: (
213
212
  );
214
213
 
215
214
  $textLink: (
216
- color: #00b2ed,
217
- hover: #16c5fe,
215
+ color: var(--palettes-primary-700),
216
+ hover: var(--palettes-primary-600),
217
+ disabled: var(--palettes-grey-500),
218
218
  );
@@ -28,7 +28,7 @@ $whiteSpace: 'normal', 'nowrap';
28
28
  $float: 'left', 'right';
29
29
  $verticalAlign: 'baseline', 'sub', 'super', 'text-top', 'text-bottom', 'middle', 'top', 'bottom';
30
30
  $position: 'absolute', 'relative', 'static', 'fixed', 'sticky';
31
- $decoration: 'underline', 'none';
31
+ $decoration: 'underline', 'line-trough', 'none';
32
32
 
33
33
  @mixin cssvars($name, $properties, $after: '') {
34
34
  @each $key, $value in $properties {
@@ -81,8 +81,8 @@ $decoration: 'underline', 'none';
81
81
  @mixin sizes($suffix: '!important') {
82
82
  @each $key, $value in config.$sizes {
83
83
  .u-text#{transform.capitalize($key)} {
84
- font-size: var(--sizes-#{$key}-font-size) #{$suffix};
85
- line-height: var(--sizes-#{$key}-line-height) #{$suffix};
84
+ font-size: var(--sizes-#{$key}-fontSize) #{$suffix};
85
+ line-height: var(--sizes-#{$key}-lineHeight) #{$suffix};
86
86
  }
87
87
  }
88
88
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  @use '@lucca-front/scss/src/commons/config';
6
6
 
7
- @mixin largerThan($breakpoint, $reversed: false) {
7
+ @mixin min($breakpoint, $reversed: false) {
8
8
  $reverse: '';
9
9
 
10
10
  @if $reversed {
@@ -28,8 +28,8 @@
28
28
  }
29
29
  }
30
30
 
31
- @mixin smallerThan($breakpoint) {
32
- @include largerThan($breakpoint, $reversed: true) {
31
+ @mixin max($breakpoint) {
32
+ @include min($breakpoint, $reversed: true) {
33
33
  @content;
34
34
  }
35
35
  }
@@ -2,7 +2,7 @@
2
2
  @use '@lucca-front/scss/src/commons/core';
3
3
 
4
4
  @mixin vars {
5
- @include core.cssvars('commons-border-radius', config.$borderRadius);
5
+ @include core.cssvars('commons-borderRadius', config.$borderRadius);
6
6
  @include core.cssvars('commons-animations', config.$animations);
7
7
  @include core.cssvars('commons-animations-durations', config.$durations);
8
8
  @include core.cssvars('commons-disabled', config.$disabled);
@@ -20,7 +20,7 @@
20
20
  @include core.cssvars('spacings', config.$spacings);
21
21
 
22
22
  @include core.cssvars('commons-elevations-elevation', config.$elevations);
23
- @include core.cssvars('commons-box-shadow', config.$boxShadows);
23
+ @include core.cssvars('commons-boxShadow', config.$boxShadows);
24
24
 
25
25
  @each $key, $map in config.$sizes {
26
26
  @include core.cssvars('sizes-#{$key}', $map);
@@ -32,7 +32,6 @@
32
32
  --commons-background-base: #f5f5f5;
33
33
  --commons-banner-height: 50px;
34
34
  --commons-font-family: 'Source Sans Pro', Tahoma, sans-serif;
35
- --commons-transition: all 150ms ease;
36
35
  --commons-divider-width: 1px;
37
36
  --commons-divider-color: var(--palettes-grey-200);
38
37
  --commons-divider-style: solid;
@@ -1,7 +1,7 @@
1
1
  @mixin component {
2
2
  background-color: transparent;
3
3
  border: 0;
4
- border-radius: var(--commons-border-radius);
4
+ border-radius: var(--commons-borderRadius-M);
5
5
  color: var(--palettes-700, var(--components-actionIcon-color));
6
6
  height: 2.5rem;
7
7
  width: 2.5rem;
@@ -20,8 +20,8 @@
20
20
  }
21
21
  }
22
22
 
23
- &.mod-small {
24
- @include small;
23
+ &.mod-S {
24
+ @include S;
25
25
  }
26
26
 
27
27
  &:is(.is-disabled, .disabled, [disabled]) {
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  &:hover {
25
- box-shadow: 0 0 0 1px var(--palettes-grey-400), var(--commons-box-shadow-xs);
25
+ box-shadow: 0 0 0 1px var(--palettes-grey-400), var(--commons-boxShadow-XS);
26
26
  }
27
27
 
28
28
  &:focus {
@@ -55,7 +55,7 @@
55
55
 
56
56
  @mixin outlinedDelete {
57
57
  &:hover {
58
- box-shadow: 0 0 0 1px var(--palettes-error-400), var(--commons-box-shadow-xs);
58
+ box-shadow: 0 0 0 1px var(--palettes-error-400), var(--commons-boxShadow-XS);
59
59
  }
60
60
 
61
61
  &:focus {
@@ -67,7 +67,7 @@
67
67
  }
68
68
  }
69
69
 
70
- @mixin small {
70
+ @mixin S {
71
71
  height: 2rem;
72
72
  width: 2rem;
73
73
  }
@@ -1,4 +1,4 @@
1
- @mixin component {
1
+ @mixin component($atRoot: 'without: rule') {
2
2
  border-radius: var(--components-box-border-radius);
3
3
  margin: var(--components-box-margin);
4
4
  padding: var(--components-box-padding);
@@ -6,12 +6,12 @@
6
6
  display: block;
7
7
  position: relative;
8
8
 
9
- @at-root {
9
+ @at-root ($atRoot) {
10
10
  .box-close {
11
11
  position: absolute;
12
- font-size: var(--sizes-standard-font-size);
13
- right: var(--spacings-smallest);
14
- top: var(--spacings-smallest);
12
+ font-size: var(--sizes-M-fontSize);
13
+ right: var(--spacings-XXS);
14
+ top: var(--spacings-XXS);
15
15
  z-index: 1;
16
16
  }
17
17
  }
@@ -1,8 +1,8 @@
1
1
  @mixin vars {
2
2
  --components-box-background: #f3f5fc;
3
3
  --components-box-border-radius: 8px;
4
- --components-box-margin: 0 0 var(--spacings-small);
5
- --components-box-padding: var(--spacings-standard);
4
+ --components-box-margin: 0 0 var(--spacings-S);
5
+ --components-box-padding: var(--spacings-M);
6
6
  --components-box-toggle-arrow-size: 0.8rem;
7
7
  --components-box-toggle-arrow-left: 2.5rem;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  @use '@lucca-front/icons/src/commons/utils/icon';
2
2
 
3
- @mixin component {
4
- @at-root {
3
+ @mixin component($atRoot: 'without: rule') {
4
+ @at-root ($atRoot) {
5
5
  .breadcrumbs-list {
6
6
  display: flex;
7
7
  flex-wrap: wrap;
@@ -11,8 +11,8 @@
11
11
  }
12
12
 
13
13
  .breadcrumbs-list-item {
14
- font-size: var(--sizes-small-font-size);
15
- line-height: var(--sizes-small-line-height);
14
+ font-size: var(--sizes-S-fontSize);
15
+ line-height: var(--sizes-S-lineHeight);
16
16
  align-items: center;
17
17
  display: flex;
18
18
 
@@ -20,7 +20,7 @@
20
20
  &::before {
21
21
  @include icon.generate('chevron_east');
22
22
 
23
- padding: 0 var(--spacings-smallest);
23
+ padding: 0 var(--spacings-XXS);
24
24
  }
25
25
  }
26
26
  }
@@ -17,7 +17,7 @@
17
17
  &::before {
18
18
  @include icon.generate('format_undo');
19
19
 
20
- padding-right: var(--spacings-smallest);
20
+ padding-right: var(--spacings-XXS);
21
21
  }
22
22
  }
23
23
  }
@@ -1,15 +1,19 @@
1
1
  @mixin component {
2
- border-radius: var(--components-button-border-radius);
3
- font-family: var(--components-button-font-family);
2
+ border-radius: var(--commons-borderRadius-M);
3
+ font-family: var(--commons-font-family);
4
4
  font-size: var(--components-button-font-size);
5
- font-weight: var(--components-button-font-weight);
5
+ font-weight: 600;
6
6
  line-height: var(--components-button-line-height);
7
7
  margin: var(--components-button-margin);
8
8
  padding: var(--components-button-padding);
9
- transition: var(--components-button-transition);
10
-
9
+ transition-property: background-color, color, border-color, box-shadow;
10
+ transition-duration: var(--commons-animations-durations-fast);
11
+ transition-timing-function: ease;
11
12
  border: 0;
12
- display: inline-block;
13
+ display: inline-flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ gap: var(--components-button-gap);
13
17
  position: relative;
14
18
  text-decoration: none;
15
19
  vertical-align: baseline;
@@ -19,14 +23,10 @@
19
23
  color: var(--palettes-text, var(--palettes-primary-text));
20
24
  cursor: pointer;
21
25
 
22
- .lucca-icon {
26
+ .button-icon, .lucca-icon { // .lucca-icon legacy
23
27
  font-size: var(--icon-size, 1.25rem);
24
28
  }
25
29
 
26
- &:first-of-type {
27
- margin-left: 0;
28
- }
29
-
30
30
  &:last-of-type {
31
31
  margin-right: 0;
32
32
  }
@@ -34,12 +34,12 @@
34
34
  &:not([disabled], .is-disabled) {
35
35
  &:hover {
36
36
  background-color: var(--palettes-600, var(--palettes-primary-600));
37
- box-shadow: var(--commons-box-shadow-xs);
37
+ box-shadow: var(--commons-boxShadow-XS);
38
38
  color: var(--palettes-text, var(--palettes-primary-text));
39
39
  }
40
40
 
41
41
  &:focus {
42
- box-shadow: var(--commons-box-shadow-xs), 0 0 0 4px var(--palettes-200, var(--palettes-primary-200));
42
+ box-shadow: var(--commons-boxShadow-XS), 0 0 0 4px var(--palettes-200, var(--palettes-primary-200));
43
43
  outline: none;
44
44
  background-color: var(--palettes-600, var(--palettes-primary-600));
45
45
  }
@@ -18,32 +18,31 @@
18
18
  @include block;
19
19
  }
20
20
 
21
- &.mod-small {
22
- @include small;
21
+ &.mod-S {
22
+ @include S;
23
23
  }
24
24
 
25
- &.mod-smaller {
26
- @include smaller;
25
+ &.mod-XS {
26
+ @include XS;
27
27
  }
28
28
 
29
29
  &.mod-counter {
30
30
  @include counter;
31
31
 
32
- &.mod-small,
33
- &.mod-smaller {
34
- @include counterSmall;
32
+ &.mod-S {
33
+ @include counterS;
34
+ }
35
+
36
+ &.mod-XS {
37
+ @include counterXS;
35
38
  }
36
39
  }
37
40
 
38
41
  &.mod-icon {
39
42
  @include icon;
40
43
 
41
- &.mod-small {
42
- @include iconSmall;
43
- }
44
-
45
- &.mod-smaller {
46
- @include iconSmaller;
44
+ &.mod-XS {
45
+ @include iconXS;
47
46
  }
48
47
  }
49
48
 
@@ -53,13 +52,17 @@
53
52
 
54
53
  &.mod-more {
55
54
  @include more;
55
+
56
+ &.mod-S {
57
+ @include moreS;
58
+ }
56
59
  }
57
60
 
58
61
  &:is(.loading, .is-loading) {
59
62
  @include loading;
60
63
 
61
- &.mod-small {
62
- @include loadingSmall;
64
+ &.mod-S {
65
+ @include loadingS;
63
66
  }
64
67
  }
65
68