@lucca-front/scss 19.3.0-rc.3 → 19.3.0-rc.4

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 (116) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/base.scss +3 -1
  4. package/src/commons/utils/color.scss +2 -0
  5. package/src/commons/utils/index.scss +2 -2
  6. package/src/commons/utils/keyframe.scss +1 -0
  7. package/src/commons/utils/loading.scss +1 -1
  8. package/src/commons/utils/media.scss +4 -0
  9. package/src/commons/utils/reset.scss +1 -1
  10. package/src/components/_sample/component.scss +3 -3
  11. package/src/components/avatar/component.scss +0 -1
  12. package/src/components/avatar/mods.scss +1 -0
  13. package/src/components/box/index.scss +4 -0
  14. package/src/components/box/mods.scss +5 -0
  15. package/src/components/calendar/component.scss +2 -0
  16. package/src/components/calendar/states.scss +3 -1
  17. package/src/components/calloutAccordion/mods.scss +0 -4
  18. package/src/components/calloutPopover/component.scss +2 -1
  19. package/src/components/card/mods.scss +1 -1
  20. package/src/components/checkbox/mods.scss +1 -0
  21. package/src/components/checkboxField/component.scss +2 -1
  22. package/src/components/checkboxField/states.scss +1 -8
  23. package/src/components/clear/component.scss +1 -1
  24. package/src/components/comment/component.scss +2 -5
  25. package/src/components/dataTable/mods.scss +0 -7
  26. package/src/components/dataTableSticked/mods.scss +12 -15
  27. package/src/components/dateRangeField/vars.scss +1 -1
  28. package/src/components/dialog/mods.scss +0 -1
  29. package/src/components/divider/component.scss +2 -5
  30. package/src/components/dropdown/component.scss +2 -1
  31. package/src/components/emptyState/component.scss +1 -0
  32. package/src/components/errorPage/component.scss +2 -0
  33. package/src/components/fancyBox/component.scss +2 -0
  34. package/src/components/fileEntry/component.scss +199 -0
  35. package/src/components/fileEntry/exports.scss +4 -0
  36. package/src/components/fileEntry/index.scss +34 -0
  37. package/src/components/fileEntry/mods.scss +39 -0
  38. package/src/components/fileEntry/states.scss +22 -0
  39. package/src/components/fileEntry/vars.scss +27 -0
  40. package/src/components/fileToolbar/component.scss +35 -0
  41. package/src/components/fileToolbar/exports.scss +4 -0
  42. package/src/components/fileToolbar/index.scss +14 -0
  43. package/src/components/fileToolbar/mods.scss +9 -0
  44. package/src/components/fileToolbar/states.scss +0 -0
  45. package/src/components/fileToolbar/vars.scss +5 -0
  46. package/src/components/fileUpload/component.scss +103 -0
  47. package/src/components/fileUpload/exports.scss +4 -0
  48. package/src/components/fileUpload/index.scss +46 -0
  49. package/src/components/fileUpload/mods.scss +24 -0
  50. package/src/components/fileUpload/states.scss +37 -0
  51. package/src/components/fileUpload/vars.scss +26 -0
  52. package/src/components/filterBar/mods.scss +2 -2
  53. package/src/components/filterBarDeprecated/component.scss +3 -0
  54. package/src/components/filterPill/component.scss +2 -1
  55. package/src/components/filterPill/states.scss +2 -3
  56. package/src/components/form/index.scss +2 -0
  57. package/src/components/form/mods.scss +0 -1
  58. package/src/components/grid/component.scss +2 -3
  59. package/src/components/grid/mods.scss +1 -0
  60. package/src/components/highlightData/component.scss +3 -0
  61. package/src/components/highlightData/mods.scss +1 -0
  62. package/src/components/horizontalNavigation/component.scss +1 -3
  63. package/src/components/horizontalNavigation/index.scss +1 -0
  64. package/src/components/horizontalNavigation/mods.scss +2 -2
  65. package/src/components/index.scss +3 -0
  66. package/src/components/indexTable/component.scss +5 -9
  67. package/src/components/indexTable/index.scss +2 -1
  68. package/src/components/indexTable/mods.scss +28 -4
  69. package/src/components/indexTable/states.scss +5 -0
  70. package/src/components/indexTable/vars.scss +3 -0
  71. package/src/components/inlineMessage/component.scss +16 -3
  72. package/src/components/link/mods.scss +7 -7
  73. package/src/components/list/mods.scss +1 -0
  74. package/src/components/loading/component.scss +1 -1
  75. package/src/components/loading/mods.scss +4 -0
  76. package/src/components/mobileNavigation/component.scss +3 -1
  77. package/src/components/multiSelect/component.scss +1 -0
  78. package/src/components/multiSelect/mods.scss +4 -1
  79. package/src/components/multiSelect/states.scss +1 -0
  80. package/src/components/navside/component.scss +0 -2
  81. package/src/components/notchBox/component.scss +2 -0
  82. package/src/components/notchBox/mods.scss +3 -0
  83. package/src/components/numericBadge/component.scss +1 -2
  84. package/src/components/pagination/component.scss +1 -1
  85. package/src/components/popover/component.scss +1 -0
  86. package/src/components/radio/component.scss +1 -1
  87. package/src/components/radioButtons/component.scss +9 -11
  88. package/src/components/radioField/component.scss +1 -0
  89. package/src/components/radioField/states.scss +1 -8
  90. package/src/components/segmentedControl/component.scss +3 -3
  91. package/src/components/simpleSelect/component.scss +1 -0
  92. package/src/components/skeleton/component.scss +1 -0
  93. package/src/components/skeleton/states.scss +3 -0
  94. package/src/components/sortableList/component.scss +1 -0
  95. package/src/components/statusBadge/component.scss +1 -1
  96. package/src/components/switchField/component.scss +3 -1
  97. package/src/components/table/mods.scss +0 -14
  98. package/src/components/tableSortable/mods.scss +4 -2
  99. package/src/components/tableSortable/states.scss +2 -2
  100. package/src/components/tableSticked/index.scss +2 -2
  101. package/src/components/tableSticked/mods.scss +16 -6
  102. package/src/components/tag/component.scss +0 -2
  103. package/src/components/textField/component.scss +1 -0
  104. package/src/components/textfields/component.scss +1 -1
  105. package/src/components/textfields/index.scss +2 -2
  106. package/src/components/textfields/mods.scss +3 -2
  107. package/src/components/textfields/states.scss +3 -4
  108. package/src/components/timeline/component.scss +3 -2
  109. package/src/components/timeline/index.scss +13 -3
  110. package/src/components/timeline/mods.scss +22 -8
  111. package/src/components/timepicker/component.scss +0 -1
  112. package/src/components/timepickerDeprecated/component.scss +3 -2
  113. package/src/components/title/component.scss +1 -0
  114. package/src/components/tooltip/component.scss +1 -0
  115. package/src/components/verticalNavigation/component.scss +5 -1
  116. package/src/components/verticalNavigation/states.scss +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "19.3.0-rc.3",
3
+ "version": "19.3.0-rc.4",
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": "19.3.0-rc.3"
26
+ "@lucca-front/icons": "19.3.0-rc.4"
27
27
  }
28
28
  }
@@ -62,6 +62,7 @@
62
62
 
63
63
  p {
64
64
  margin: 0;
65
+
65
66
  @if config.$deprecatedSpacings {
66
67
  margin-block-end: var(--pr-t-spacings-150);
67
68
  }
@@ -71,6 +72,7 @@
71
72
  ol {
72
73
  margin: 0;
73
74
  padding-inline-start: var(--pr-t-spacings-400);
75
+
74
76
  @if config.$deprecatedSpacings {
75
77
  margin-block-end: var(--pr-t-spacings-150);
76
78
  }
@@ -99,7 +101,7 @@
99
101
 
100
102
  button {
101
103
  &:focus-visible {
102
- @include a11y.focusVisible();
104
+ @include a11y.focusVisible;
103
105
  }
104
106
  }
105
107
 
@@ -2,10 +2,12 @@
2
2
  @use 'sass:math';
3
3
  @use '@lucca-front/scss/src/commons/config';
4
4
 
5
+ // stylelint-disable-next-line scss/no-global-function-names -- This is a redefinition of a deprecated SCSS function.
5
6
  @function transparentize($color, $amount: 50%, $space: var(--commons-colorSpace, srgb)) {
6
7
  @if math.unit($amount) != '%' {
7
8
  $amount: $amount * 100%;
8
9
  }
10
+
9
11
  @return color-mix(in $space, $color $amount, transparent);
10
12
  }
11
13
 
@@ -258,11 +258,11 @@
258
258
  .u-noSpinButtons {
259
259
  &::-webkit-outer-spin-button,
260
260
  &::-webkit-inner-spin-button {
261
- -webkit-appearance: none !important;
261
+ appearance: none !important;
262
262
  }
263
263
 
264
264
  &[type='number'] {
265
- -moz-appearance: textfield !important;
265
+ appearance: textfield !important;
266
266
  }
267
267
  }
268
268
 
@@ -177,6 +177,7 @@
177
177
  0% {
178
178
  transform: rotate(0deg);
179
179
  }
180
+
180
181
  100% {
181
182
  transform: rotate(360deg);
182
183
  }
@@ -13,7 +13,6 @@
13
13
  margin: auto;
14
14
  position: absolute;
15
15
  border-style: solid;
16
-
17
16
  animation-name: rotate;
18
17
  animation-duration: var(--commons-loading-speed);
19
18
  animation-timing-function: linear;
@@ -40,6 +39,7 @@
40
39
  0% {
41
40
  background-position: 100% 0%;
42
41
  }
42
+
43
43
  100% {
44
44
  background-position: -100% 0%;
45
45
  }
@@ -28,6 +28,7 @@
28
28
  $breakpoint: pxToEm(map.get(config.$breakpoints, $breakpoint));
29
29
  }
30
30
 
31
+ // stylelint-disable-next-line scss/at-rule-no-unknown
31
32
  @#{$at} #{$name} #{$reversed} (min-#{$property}: #{$breakpoint}) {
32
33
  @content;
33
34
  }
@@ -55,11 +56,13 @@
55
56
  $breakpoint1: $breakpointTmp;
56
57
  }
57
58
 
59
+ // stylelint-disable scss/at-rule-no-unknown
58
60
  @#{$at} #{$name} (min-#{$property}: #{$breakpoint1}) {
59
61
  @#{$at} #{$name} #{$reversed} (min-#{$property}: #{$breakpoint2}) {
60
62
  @content;
61
63
  }
62
64
  }
65
+ // stylelint-enable
63
66
  }
64
67
 
65
68
  // les raccourcis vers les requêtes pour min/max/between
@@ -123,6 +126,7 @@
123
126
  }
124
127
 
125
128
  @mixin pointer($query, $any: false, $reversed: false) {
129
+ // stylelint-disable-next-line scss/at-rule-no-unknown
126
130
  @#{if($reversed, 'media not', 'media')} (#{if($any, 'any-', '')}pointer: #{$query}) {
127
131
  @content;
128
132
  }
@@ -37,7 +37,7 @@
37
37
  display: table #{$suffix};
38
38
  }
39
39
 
40
- &:after {
40
+ &::after {
41
41
  clear: both #{$suffix};
42
42
  }
43
43
  }
@@ -5,12 +5,12 @@
5
5
  @use '@lucca-front/scss/src/commons/utils/namespace';
6
6
 
7
7
  @mixin component($atRoot: namespace.$defaultAtRoot) {
8
- property: value;
9
- property: var(--components-sample-property1);
8
+ // property: value;
9
+ // property: var(--components-sample-property1);
10
10
 
11
11
  @at-root ($atRoot) {
12
12
  .sample-subComponent {
13
- property: var(--components-sample-property2);
13
+ // property: var(--components-sample-property2);
14
14
  }
15
15
  }
16
16
  }
@@ -60,7 +60,6 @@
60
60
 
61
61
  display: flex;
62
62
  text-decoration: none;
63
- color: var(--palettes-neutral-800);
64
63
  transition: transform var(--commons-animations-durations-fast);
65
64
  transform: scale(var(--components-avatarWrapper-scale));
66
65
  color: currentColor;
@@ -79,6 +79,7 @@
79
79
 
80
80
  &::before {
81
81
  @include icon.generate('people_person');
82
+
82
83
  color: var(--palettes-neutral-600);
83
84
  font-weight: 400;
84
85
  font-size: var(--components-avatar-placeholder-size);
@@ -19,3 +19,7 @@
19
19
  @include toggle;
20
20
  }
21
21
  }
22
+
23
+ .box-arrow {
24
+ @include arrow;
25
+ }
@@ -46,6 +46,11 @@
46
46
  @mixin withArrow {
47
47
  --components-box-border-radius: var(--commons-borderRadius-M);
48
48
  --components-box-padding: var(--pr-t-spacings-200);
49
+
50
+ .box-arrow {
51
+ --components-box-arrow-bottom: 100%;
52
+ --components-box-arrow-left: var(--pr-t-spacings-75);
53
+ }
49
54
  }
50
55
 
51
56
  @mixin arrowS {
@@ -88,6 +88,7 @@
88
88
  &::-webkit-scrollbar {
89
89
  display: none;
90
90
  }
91
+
91
92
  &:focus-visible {
92
93
  @include a11y.focusVisible;
93
94
  }
@@ -228,6 +229,7 @@
228
229
  &:disabled,
229
230
  &[aria-disabled='true'] {
230
231
  --components-calendar-table-body-row-cell-actionColor: var(--palettes-neutral-500);
232
+
231
233
  text-decoration: line-through;
232
234
  cursor: default;
233
235
  }
@@ -82,6 +82,7 @@
82
82
 
83
83
  &::before {
84
84
  inset-inline-start: var(--pr-t-spacings-75);
85
+
85
86
  --components-calendar-table-body-row-cellSelectedBeforeBorderRadius: var(--commons-borderRadius-L) 0 0 var(--commons-borderRadius-L);
86
87
  }
87
88
  }
@@ -91,6 +92,7 @@
91
92
 
92
93
  &::before {
93
94
  inset-inline-end: var(--pr-t-spacings-75);
95
+
94
96
  --components-calendar-table-body-row-cellSelectedBeforeBorderRadius: 0 var(--commons-borderRadius-L) var(--commons-borderRadius-L) 0;
95
97
  }
96
98
  }
@@ -118,6 +120,7 @@
118
120
 
119
121
  &::before {
120
122
  inset-inline-end: 0;
123
+
121
124
  --components-calendar-table-body-row-cellSelectedBeforeContent: '';
122
125
  --components-calendar-table-body-row-cellSelectedBeforeBorderRadius: var(--commons-borderRadius-L) 0 0 var(--commons-borderRadius-L);
123
126
  }
@@ -161,7 +164,6 @@
161
164
  }
162
165
 
163
166
  @mixin overflow {
164
- .calendar-table-body-row-cell-action,
165
167
  .calendar-table-body-row-cell-action {
166
168
  --components-calendar-table-body-row-cell-actionColor: var(--palettes-neutral-600);
167
169
  }
@@ -20,10 +20,6 @@
20
20
  @include icon.S;
21
21
  }
22
22
 
23
- .calloutAccordion-details {
24
- margin-inline-start: 2.75rem;
25
- }
26
-
27
23
  .calloutFeedbackList {
28
24
  @include calloutFeedbackList.S;
29
25
  }
@@ -19,7 +19,7 @@
19
19
  }
20
20
 
21
21
  &:focus-visible {
22
- @include a11y.focusVisible();
22
+ @include a11y.focusVisible;
23
23
  }
24
24
 
25
25
  @at-root ($atRoot) {
@@ -47,6 +47,7 @@
47
47
 
48
48
  .calloutPopover-overlay-head-icon {
49
49
  @include icon.M;
50
+
50
51
  color: var(--palettes-700, var(--palettes-neutral-700));
51
52
  }
52
53
 
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  &:focus-visible {
19
- @include a11y.focusVisible();
19
+ @include a11y.focusVisible;
20
20
  }
21
21
  }
22
22
 
@@ -6,6 +6,7 @@
6
6
 
7
7
  @mixin S {
8
8
  --components-checkbox-input-size: 1rem;
9
+
9
10
  line-height: var(--sizes-S-lineHeight);
10
11
 
11
12
  .checkbox-label {
@@ -6,7 +6,6 @@
6
6
  position: relative;
7
7
  inline-size: fit-content;
8
8
  block-size: fit-content;
9
-
10
9
  display: grid;
11
10
  grid-template-areas: 'checkbox';
12
11
  grid-template-columns: var(--component-checkboxField-size);
@@ -56,6 +55,8 @@
56
55
  font-weight: 400;
57
56
  font-size: var(--component-checkboxField-icon-fontSize);
58
57
  direction: ltr;
58
+
59
+ // stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- This font is for icons and should not have fallback.
59
60
  font-family: 'Lucca icons';
60
61
  font-feature-settings: 'liga';
61
62
  font-style: normal;
@@ -31,13 +31,6 @@
31
31
  }
32
32
  }
33
33
 
34
- @mixin checkedHover {
35
- ~ .checkboxField-icon {
36
- background-color: var(--palettes-product-600);
37
- border-color: var(--palettes-product-600);
38
- }
39
- }
40
-
41
34
  @mixin checkedActive {
42
35
  ~ .checkboxField-icon {
43
36
  background-color: var(--palettes-product-800);
@@ -84,7 +77,7 @@
84
77
  @mixin focusVisible {
85
78
  ~ .checkboxField-icon {
86
79
  &::after {
87
- @include a11y.focusVisible();
80
+ @include a11y.focusVisible;
88
81
  }
89
82
  }
90
83
  }
@@ -46,7 +46,7 @@
46
46
  --components-clear-background: var(--palettes-neutral-800);
47
47
  }
48
48
 
49
- //to prevent breaking change. lucca-icon is no longer needed.
49
+ // to prevent breaking change. lucca-icon is no longer needed.
50
50
  .lucca-icon {
51
51
  display: none;
52
52
  }
@@ -78,6 +78,8 @@
78
78
  .comment-content-text {
79
79
  margin-block-end: 0;
80
80
  overflow-wrap: break-word;
81
+ font-size: var(--components-comment-text-fontSize);
82
+ line-height: var(--components-comment-text-lineHeight);
81
83
  }
82
84
 
83
85
  // .comment-content-textContainer is deprecated
@@ -93,11 +95,6 @@
93
95
  margin: 0;
94
96
  }
95
97
  }
96
-
97
- .comment-content-text {
98
- font-size: var(--components-comment-text-fontSize);
99
- line-height: var(--components-comment-text-lineHeight);
100
- }
101
98
  }
102
99
  }
103
100
 
@@ -87,13 +87,6 @@
87
87
  text-align: end;
88
88
  white-space: nowrap;
89
89
 
90
- &:is(.dataTable-head-row-cell) {
91
- .button {
92
- position: relative;
93
- inset-block-end: var(--pr-t-spacings-50);
94
- }
95
- }
96
-
97
90
  .button {
98
91
  @include button.S;
99
92
  @include button.onlyIcon;
@@ -110,6 +110,18 @@
110
110
 
111
111
  :is(.dataTable-head-row-cell, .dataTable-body-row-cell, .dataTable-foot-row-cell) {
112
112
  &.mod-stickyColumn {
113
+ position: sticky;
114
+
115
+ &:first-child {
116
+ inset-inline-start: 0;
117
+ }
118
+
119
+ &:last-child {
120
+ inset-inline-end: 0;
121
+
122
+ --components-dataTable-cell-shadow: 0 1px inset var(--commons-border-200), 1px 0 var(--palettes-neutral-0); // white shadow is for Chrome
123
+ }
124
+
113
125
  &:has(~ :is(.dataTable-body-row-cell, .dataTable-head-row-cell, .dataTable-foot-row-cell):not(.mod-stickyColumn)) {
114
126
  transform: translateX(-1px);
115
127
 
@@ -139,21 +151,6 @@
139
151
  }
140
152
  }
141
153
  }
142
-
143
- :is(.dataTable-head-row-cell, .dataTable-body-row-cell, .dataTable-foot-row-cell) {
144
- &.mod-stickyColumn {
145
- position: sticky;
146
-
147
- &:first-child {
148
- inset-inline-start: 0;
149
- }
150
-
151
- &:last-child {
152
- inset-inline-end: 0;
153
- --components-dataTable-cell-shadow: 0 1px inset var(--commons-border-200), 1px 0 var(--palettes-neutral-0); // white shadow is for Chrome
154
- }
155
- }
156
- }
157
154
  }
158
155
 
159
156
  @mixin stickyColumnBorder {
@@ -6,7 +6,7 @@
6
6
 
7
7
  --components-dateRangeField-maxWidthDayS: 16.5rem;
8
8
  --components-dateRangeField-maxWidthMonthS: 13.5rem; // 12.75rem;
9
- --components-dateRangeField-maxWidthYearS: 10.25rem; //9.75rem;
9
+ --components-dateRangeField-maxWidthYearS: 10.25rem; // 9.75rem;
10
10
 
11
11
  --components-dateRangeField-content-inlineStart: calc(var(--pr-t-spacings-100) + var(--pr-t-spacings-25));
12
12
  --components-dateRangeField-content-width: calc(50% + var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
@@ -41,7 +41,6 @@
41
41
  --components-dialog-maxWidth: none;
42
42
  --components-dialog-inset: auto 0 0 0;
43
43
  --components-dialog-borderRadius: var(--commons-borderRadius-L) var(--commons-borderRadius-L) 0 0;
44
-
45
44
  --components-dialog-width: 100%;
46
45
  --components-dialog-height: fit-content;
47
46
 
@@ -38,6 +38,8 @@
38
38
 
39
39
  .lucca-icon {
40
40
  color: var(--palettes-neutral-600);
41
+ position: relative;
42
+ inset-block-end: var(--components-divider-iconBottom);
41
43
  }
42
44
 
43
45
  &:not(.mod-vertical) {
@@ -47,11 +49,6 @@
47
49
  min-inline-size: var(--components-divider-minSize);
48
50
  }
49
51
  }
50
-
51
- .lucca-icon {
52
- position: relative;
53
- inset-block-end: var(--components-divider-iconBottom);
54
- }
55
52
  }
56
53
 
57
54
  .button {
@@ -56,6 +56,7 @@
56
56
 
57
57
  .lucca-icon {
58
58
  @include icon.S;
59
+
59
60
  margin-block-start: var(--pr-t-spacings-25);
60
61
  }
61
62
 
@@ -74,7 +75,7 @@
74
75
  }
75
76
 
76
77
  &:focus-visible {
77
- @include a11y.focusVisible();
78
+ @include a11y.focusVisible;
78
79
  }
79
80
  }
80
81
  }
@@ -48,6 +48,7 @@
48
48
  @include title.h3;
49
49
 
50
50
  margin-block-end: var(--pr-t-spacings-50);
51
+
51
52
  @if config.$deprecatedSpacings {
52
53
  margin-block-end: 0;
53
54
  }
@@ -30,6 +30,7 @@
30
30
  .errorPage-section-info-title {
31
31
  @include title.component;
32
32
  @include title.XXXL;
33
+
33
34
  margin-block-end: var(--pr-t-spacings-50);
34
35
  }
35
36
 
@@ -60,6 +61,7 @@
60
61
  order: 1;
61
62
  padding: 0;
62
63
  }
64
+
63
65
  .errorPage-section-image {
64
66
  margin-block-start: var(--pr-t-spacings-400);
65
67
  order: 0;
@@ -4,6 +4,8 @@
4
4
  overflow: hidden;
5
5
  padding-inline: var(--pr-t-spacings-200);
6
6
  display: block;
7
+ position: relative;
8
+ z-index: 0;
7
9
 
8
10
  @at-root ($atRoot) {
9
11
  .fancyBox-content {