@lucca-front/scss 20.2.0-rc.1 → 20.2.0-rc.3

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 (124) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/config.scss +0 -5
  4. package/src/commons/core.scss +2 -2
  5. package/src/commons/exports.scss +1 -0
  6. package/src/commons/index.scss +2 -9
  7. package/src/commons/utils/index.scss +478 -480
  8. package/src/commons/utils/reset.scss +1 -1
  9. package/src/components/_sample/index.scss +6 -14
  10. package/src/components/appLayout/index.scss +7 -11
  11. package/src/components/avatar/index.scss +35 -43
  12. package/src/components/box/index.scss +3 -9
  13. package/src/components/breadcrumbs/index.scss +10 -16
  14. package/src/components/button/index.scss +125 -119
  15. package/src/components/button/mods.scss +1 -18
  16. package/src/components/button/states.scss +18 -0
  17. package/src/components/buttonGroup/component.scss +17 -0
  18. package/src/components/buttonGroup/index.scss +8 -20
  19. package/src/components/calendar/index.scss +44 -56
  20. package/src/components/callout/index.scss +4 -8
  21. package/src/components/calloutDisclosure/index.scss +9 -15
  22. package/src/components/card/index.scss +20 -26
  23. package/src/components/checkbox/index.scss +30 -36
  24. package/src/components/checkboxField/index.scss +55 -61
  25. package/src/components/chip/index.scss +17 -23
  26. package/src/components/clear/index.scss +17 -23
  27. package/src/components/code/index.scss +4 -8
  28. package/src/components/collapse/index.scss +7 -11
  29. package/src/components/comment/index.scss +20 -30
  30. package/src/components/container/index.scss +25 -29
  31. package/src/components/contentSection/index.scss +2 -4
  32. package/src/components/dataTable/index.scss +50 -66
  33. package/src/components/dataTable/mods.scss +2 -2
  34. package/src/components/dataTableSticked/index.scss +24 -32
  35. package/src/components/dateField/index.scss +20 -24
  36. package/src/components/dateRangeField/index.scss +25 -29
  37. package/src/components/dialog/index.scss +33 -37
  38. package/src/components/divider/index.scss +7 -11
  39. package/src/components/dropdown/index.scss +6 -12
  40. package/src/components/emptyState/component.scss +3 -0
  41. package/src/components/emptyState/index.scss +7 -11
  42. package/src/components/errorPage/index.scss +4 -8
  43. package/src/components/fancyBox/index.scss +4 -8
  44. package/src/components/field/index.scss +76 -96
  45. package/src/components/fieldset/index.scss +12 -18
  46. package/src/components/file/index.scss +30 -38
  47. package/src/components/fileEntry/index.scss +18 -24
  48. package/src/components/fileToolbar/index.scss +6 -10
  49. package/src/components/fileUpload/index.scss +31 -37
  50. package/src/components/filterBar/index.scss +13 -17
  51. package/src/components/filterBarDeprecated/index.scss +4 -8
  52. package/src/components/filterPill/index.scss +48 -56
  53. package/src/components/filters/index.scss +8 -14
  54. package/src/components/footer/index.scss +34 -38
  55. package/src/components/form/index.scss +84 -114
  56. package/src/components/form/mods.scss +5 -7
  57. package/src/components/formLabel/index.scss +13 -19
  58. package/src/components/gauge/index.scss +7 -11
  59. package/src/components/grid/index.scss +21 -25
  60. package/src/components/header/index.scss +12 -18
  61. package/src/components/highlightData/index.scss +24 -28
  62. package/src/components/horizontalNavigation/index.scss +36 -42
  63. package/src/components/index.scss +55 -57
  64. package/src/components/indexTable/index.scss +56 -54
  65. package/src/components/inlineMessage/index.scss +12 -18
  66. package/src/components/inputFramed/index.scss +24 -30
  67. package/src/components/label/index.scss +9 -13
  68. package/src/components/layout/index.scss +45 -51
  69. package/src/components/link/index.scss +8 -14
  70. package/src/components/link/mods.scss +1 -1
  71. package/src/components/list/index.scss +11 -15
  72. package/src/components/listing/index.scss +18 -22
  73. package/src/components/loading/index.scss +23 -27
  74. package/src/components/main/index.scss +15 -21
  75. package/src/components/mainLayout/index.scss +20 -26
  76. package/src/components/mobileHeader/index.scss +4 -8
  77. package/src/components/mobileNavigation/index.scss +2 -4
  78. package/src/components/navside/index.scss +56 -78
  79. package/src/components/newBadge/index.scss +4 -8
  80. package/src/components/notchBox/index.scss +13 -17
  81. package/src/components/notchBox/mods.scss +3 -3
  82. package/src/components/numericBadge/index.scss +16 -22
  83. package/src/components/pageHeader/index.scss +22 -26
  84. package/src/components/pagination/index.scss +6 -12
  85. package/src/components/plgPush/index.scss +2 -4
  86. package/src/components/popover/index.scss +2 -4
  87. package/src/components/progress/index.scss +9 -15
  88. package/src/components/radio/index.scss +12 -18
  89. package/src/components/radioButtons/index.scss +9 -15
  90. package/src/components/radioField/index.scss +40 -46
  91. package/src/components/readMore/index.scss +15 -21
  92. package/src/components/richText/index.scss +14 -20
  93. package/src/components/scrollBox/index.scss +10 -14
  94. package/src/components/section/index.scss +12 -16
  95. package/src/components/segmentedControl/index.scss +15 -23
  96. package/src/components/skeleton/index.scss +37 -43
  97. package/src/components/skipLinks/index.scss +2 -4
  98. package/src/components/sortableList/index.scss +6 -12
  99. package/src/components/statusBadge/index.scss +4 -8
  100. package/src/components/switch/index.scss +29 -35
  101. package/src/components/switchField/index.scss +16 -22
  102. package/src/components/table/index.scss +64 -78
  103. package/src/components/tableFixed/index.scss +11 -13
  104. package/src/components/tableFixedDeprecated/index.scss +10 -14
  105. package/src/components/tableOfContent/index.scss +24 -28
  106. package/src/components/tableSortable/index.scss +16 -22
  107. package/src/components/tableSticked/index.scss +24 -28
  108. package/src/components/tableSticked/mods.scss +6 -6
  109. package/src/components/tableStickedDeprecated/index.scss +40 -46
  110. package/src/components/tag/index.scss +12 -16
  111. package/src/components/textField/index.scss +22 -30
  112. package/src/components/textField/mods.scss +1 -1
  113. package/src/components/textFlow/index.scss +2 -4
  114. package/src/components/textfields/index.scss +258 -279
  115. package/src/components/timeline/index.scss +66 -72
  116. package/src/components/timepicker/index.scss +15 -21
  117. package/src/components/title/index.scss +27 -33
  118. package/src/components/title/mods.scss +1 -1
  119. package/src/components/titleSection/index.scss +21 -25
  120. package/src/components/toast/index.scss +4 -8
  121. package/src/components/tooltip/index.scss +21 -25
  122. package/src/components/userPopover/index.scss +2 -4
  123. package/src/components/userTile/index.scss +22 -26
  124. package/src/components/verticalNavigation/index.scss +16 -26
@@ -33,7 +33,7 @@
33
33
  @mixin clearfix($suffix: '') {
34
34
  &::before,
35
35
  &::after {
36
- // stylelint-disable-next-line no-irregular-whitespace
36
+ /* stylelint-disable-next-line no-irregular-whitespace */
37
37
  content: ' ' / '' #{$suffix};
38
38
  display: table #{$suffix};
39
39
  }
@@ -6,22 +6,14 @@
6
6
  @use 'exports' as *;
7
7
 
8
8
  .sample {
9
- @layer components {
10
- @include vars;
11
- @include component;
12
- }
9
+ @include vars;
10
+ @include component;
13
11
 
14
- @layer mods {
15
- &.mod-sampleModifierA {
16
- @include sampleModifierA;
17
- }
12
+ &.mod-sampleModifierA {
13
+ @include sampleModifierA;
18
14
  }
19
15
 
20
- @layer states {
21
- &.is-sampleStateA {
22
- @include sampleStateA;
23
- }
16
+ &.is-sampleStateA {
17
+ @include sampleStateA;
24
18
  }
25
-
26
- color: blue;
27
19
  }
@@ -2,20 +2,16 @@
2
2
  @use '@lucca-front/scss/src/commons/utils/media';
3
3
 
4
4
  .appLayout {
5
- @layer components {
6
- @include vars;
7
- @include component;
5
+ @include vars;
6
+ @include component;
8
7
 
9
- @include media.min('S') {
10
- @include wide;
11
- }
8
+ @include media.min('S') {
9
+ @include wide;
12
10
  }
13
11
 
14
- @layer mods {
15
- @include media.max('S') {
16
- &.mod-mobileNavSideBottom {
17
- @include mobileNavSideBottom;
18
- }
12
+ @include media.max('S') {
13
+ &.mod-mobileNavSideBottom {
14
+ @include mobileNavSideBottom;
19
15
  }
20
16
  }
21
17
  }
@@ -1,64 +1,56 @@
1
1
  @use 'exports' as *;
2
2
 
3
- // lu-user-picture is deprecated
4
3
  .avatar,
5
4
  .lu-user-picture {
6
- @layer components {
7
- @include vars;
8
- @include component;
9
- }
5
+ // lu-user-picture is deprecated
6
+ @include vars;
7
+ @include component;
10
8
 
11
- @layer mods {
12
- &.mod-XS {
13
- @include XS;
14
- }
9
+ &.mod-XS {
10
+ @include XS;
11
+ }
15
12
 
16
- &.mod-S {
17
- @include S;
18
- }
13
+ &.mod-S {
14
+ @include S;
15
+ }
19
16
 
20
- &.mod-L {
21
- @include L;
22
- }
17
+ &.mod-L {
18
+ @include L;
19
+ }
23
20
 
24
- &.mod-XL {
25
- @include XL;
26
- }
21
+ &.mod-XL {
22
+ @include XL;
23
+ }
27
24
 
28
- &.mod-XXL {
29
- @include XXL;
30
- }
25
+ &.mod-XXL {
26
+ @include XXL;
27
+ }
31
28
 
32
- &.mod-XXXL {
33
- @include XXXL;
34
- }
29
+ &.mod-XXXL {
30
+ @include XXXL;
31
+ }
35
32
 
36
- &.mod-placeholder {
37
- @include placeholder;
38
- }
33
+ &.mod-placeholder {
34
+ @include placeholder;
39
35
  }
40
36
  }
41
37
 
42
38
  .avatarWrapper {
43
- @layer components {
44
- @include varsWrapper;
45
- }
39
+ @include varsWrapper;
46
40
 
47
- @layer mods {
48
- &.mod-XL {
49
- @include wrapperXL;
50
- }
41
+ &.mod-XL {
42
+ @include wrapperXL;
43
+ }
51
44
 
52
- &.mod-L {
53
- @include wrapperL;
54
- }
45
+ &.mod-L {
46
+ @include wrapperL;
47
+ }
55
48
 
56
- &.mod-S {
57
- @include wrapperS;
58
- }
49
+ &.mod-S {
50
+ @include wrapperS;
51
+ }
59
52
 
60
- &.mod-XS {
61
- @include wrapperXS;
62
- }
53
+ &.mod-XS {
54
+ @include wrapperXS;
63
55
  }
64
56
  }
@@ -1,12 +1,9 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .box {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
4
+ @include vars;
5
+ @include component;
8
6
 
9
- @layer mods {
10
7
  // .mod-grey is deprecated
11
8
  &.mod-neutral,
12
9
  &.mod-grey {
@@ -21,11 +18,8 @@
21
18
  &.mod-toggle {
22
19
  @include toggle;
23
20
  }
24
- }
25
21
  }
26
22
 
27
23
  .box-arrow {
28
- @layer components {
29
- @include arrow;
30
- }
24
+ @include arrow;
31
25
  }
@@ -1,26 +1,20 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .breadcrumbs {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
4
+ @include vars;
5
+ @include component;
8
6
 
9
- @layer mods {
10
- // .mod-compact is deprecated
11
- &.mod-compact {
12
- @include compact;
13
- }
7
+ // .mod-compact is deprecated
8
+ &.mod-compact {
9
+ @include compact;
14
10
  }
15
11
  }
16
12
 
17
13
  .breadcrumbs-list-item-action {
18
- @layer states {
19
- // .active is deprecated
20
- &.is-active,
21
- &.active,
22
- &[aria-current='page'] {
23
- @include active;
24
- }
14
+ // .active is deprecated
15
+ &.is-active,
16
+ &.active,
17
+ &[aria-current='page'] {
18
+ @include active;
25
19
  }
26
20
  }
@@ -1,174 +1,180 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .button {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
4
+ @include vars;
5
+ @include component;
8
6
 
9
- @layer mods {
10
- &.mod-block {
11
- @include block;
12
- }
7
+ &.mod-block {
8
+ @include block;
9
+ }
13
10
 
14
- &.mod-S {
15
- @include S;
16
- }
11
+ &.mod-S {
12
+ @include S;
13
+ }
17
14
 
18
- &.mod-XS {
19
- @include XS;
20
- }
15
+ &.mod-XS {
16
+ @include XS;
17
+ }
21
18
 
22
- &.mod-disclosure {
23
- @include disclosure;
24
- }
19
+ &.mod-disclosure {
20
+ @include disclosure;
21
+ }
25
22
 
26
- // .mod-outline is deprecated
27
- &.mod-outlined,
28
- &.mod-outline {
29
- &:where(:not(.is-success, .is-error)) {
30
- @include outlined;
31
- }
23
+ // .mod-outline is deprecated
24
+ &.mod-outlined,
25
+ &.mod-outline {
26
+ &:where(:not(.is-success, .is-error)) {
27
+ @include outlined;
32
28
  }
29
+ }
33
30
 
34
- // .mod-link .mod-text deprecated
35
- &.mod-text,
36
- &.mod-link,
37
- &.mod-ghost {
38
- &:where(:not(.is-success, .is-error)) {
39
- @include ghost;
40
- }
31
+ // .mod-link .mod-text deprecated
32
+ &.mod-text,
33
+ &.mod-link,
34
+ &.mod-ghost {
35
+ &:where(:not(.is-success, .is-error)) {
36
+ @include ghost;
41
37
  }
38
+ }
42
39
 
43
- &.mod-withIcon {
44
- &.mod-iconOnLeft {
45
- @include iconOnLeft;
46
-
47
- &.mod-S {
48
- @include iconOnLeftS;
49
- }
40
+ &.mod-withIcon {
41
+ &.mod-iconOnLeft {
42
+ @include iconOnLeft;
50
43
 
51
- &.mod-XS {
52
- @include iconOnLeftXS;
53
- }
44
+ &.mod-S {
45
+ @include iconOnLeftS;
54
46
  }
55
47
 
56
- &.mod-iconOnRight {
57
- @include iconOnRight;
58
-
59
- &.mod-S {
60
- @include iconOnRightS;
61
- }
62
-
63
- &.mod-XS {
64
- @include iconOnRightXS;
65
- }
48
+ &.mod-XS {
49
+ @include iconOnLeftXS;
66
50
  }
67
51
  }
68
52
 
69
- &.mod-onlyIcon {
70
- @include onlyIcon;
53
+ &.mod-iconOnRight {
54
+ @include iconOnRight;
71
55
 
72
56
  &.mod-S {
73
- @include onlyIconS;
57
+ @include iconOnRightS;
74
58
  }
75
59
 
76
60
  &.mod-XS {
77
- @include onlyIconXS;
61
+ @include iconOnRightXS;
78
62
  }
79
63
  }
64
+ }
80
65
 
81
- &:has(.numericBadge) {
82
- @include counter;
66
+ &.mod-onlyIcon {
67
+ @include onlyIcon;
83
68
 
84
- &.mod-S {
85
- @include counterS;
86
- }
69
+ &.mod-S {
70
+ @include onlyIconS;
71
+ }
87
72
 
88
- &.mod-XS {
89
- @include counterXS;
90
- }
73
+ &.mod-XS {
74
+ @include onlyIconXS;
91
75
  }
76
+ }
92
77
 
93
- // .mod-delete is deprecated
94
- &.mod-critical, &.mod-delete {
95
- @include critical;
78
+ &:has(.numericBadge) {
79
+ @include counter;
96
80
 
97
- // .mod-link is deprecated
98
- &.mod-text,
99
- &.mod-link {
100
- @include criticalGhost;
101
- }
81
+ &.mod-S {
82
+ @include counterS;
83
+ }
102
84
 
103
- // .mod-outline is deprecated
104
- &.mod-outlined,
105
- &.mod-outline {
106
- @include criticalOutlined;
107
- }
85
+ &.mod-XS {
86
+ @include counterXS;
108
87
  }
88
+ }
109
89
 
110
- // .mod-invert is deprecated
111
- &.mod-inverted,
112
- &.mod-invert {
113
- @include inverted;
90
+ // .mod-delete is deprecated
91
+ &.mod-critical, &.mod-delete {
92
+ @include critical;
93
+
94
+ // .mod-link is deprecated
95
+ &.mod-text,
96
+ &.mod-link {
97
+ @include criticalGhost;
114
98
  }
115
99
 
116
- &.mod-more {
117
- @include more;
100
+ // .mod-outline is deprecated
101
+ &.mod-outlined,
102
+ &.mod-outline {
103
+ @include criticalOutlined;
104
+ }
105
+ }
118
106
 
119
- &.mod-S {
120
- @include moreS;
121
- }
107
+ // .mod-invert is deprecated
108
+ &.mod-inverted,
109
+ &.mod-invert {
110
+ @include inverted;
111
+ }
122
112
 
123
- &.mod-XS {
124
- @include moreXS;
125
- }
113
+ &.mod-more {
114
+ @include more;
115
+
116
+ &.mod-S {
117
+ @include moreS;
118
+ }
119
+
120
+ &.mod-XS {
121
+ @include moreXS;
126
122
  }
127
123
  }
128
124
 
129
- @layer states {
130
- // .loading is deprecated
131
- &.is-loading,
132
- &.loading {
133
- @include loading;
125
+ // .loading is deprecated
126
+ &.is-loading,
127
+ &.loading {
128
+ @include loading;
134
129
 
135
- &.mod-S {
136
- @include loadingS;
137
- }
130
+ &.mod-S {
131
+ @include loadingS;
132
+ }
138
133
 
139
- &.mod-outlined {
140
- @include loadingOutlined;
141
- }
134
+ &.mod-XS {
135
+ @include loadingXS;
136
+ }
142
137
 
143
- &.mod-ghost {
144
- @include loadingGhost;
145
- }
138
+ &.mod-outlined {
139
+ @include loadingOutlined;
146
140
  }
147
141
 
148
- // .error is deprecated
149
- &.is-error,
150
- &.error {
151
- @include error;
142
+ &.mod-ghost {
143
+ @include loadingGhost;
152
144
  }
145
+ }
153
146
 
154
- // .success is deprecated
155
- &.is-success,
156
- &.success {
157
- @include success;
147
+ // .error is deprecated
148
+ &.is-error,
149
+ &.error {
150
+ @include error;
151
+ }
158
152
 
159
- &.mod-outlined {
160
- @include successOutlined;
161
- }
153
+ // .success is deprecated
154
+ &.is-success,
155
+ &.success {
156
+ @include success;
162
157
 
163
- &.mod-ghost {
164
- @include successGhost;
165
- }
158
+ &.mod-outlined {
159
+ @include successOutlined;
166
160
  }
167
161
 
168
- // .disabled is deprecated
169
- &.is-disabled,
170
- &.disabled {
171
- @include disabled;
162
+ &.mod-ghost {
163
+ @include successGhost;
172
164
  }
165
+
166
+ &.mod-S {
167
+ @include successS;
168
+ }
169
+
170
+ &.mod-XS {
171
+ @include successXS;
172
+ }
173
+ }
174
+
175
+ // .disabled is deprecated
176
+ &.is-disabled,
177
+ &.disabled {
178
+ @include disabled;
173
179
  }
174
180
  }
@@ -95,7 +95,7 @@
95
95
  }
96
96
 
97
97
  &:disabled {
98
- --components-button-backgroundColor: var(--palettes-neutral-0);
98
+ --components-button-backgroundColor: transparent;
99
99
  --components-button-color: var(--pr-t-color-text-disabled);
100
100
  }
101
101
  }
@@ -126,23 +126,6 @@
126
126
  }
127
127
  }
128
128
 
129
- @mixin moreInsideUl {
130
- block-size: 100%;
131
- min-block-size: 2.25rem;
132
-
133
- &.mod-S {
134
- min-block-size: 2rem;
135
- }
136
-
137
- &.mod-XS {
138
- min-block-size: 1.5rem;
139
- }
140
-
141
- &::before {
142
- content: none;
143
- }
144
- }
145
-
146
129
  @mixin moreS {
147
130
  --components-button-minWidth: 1.75rem;
148
131
  }
@@ -32,6 +32,11 @@
32
32
  @include loading.spinner(var(--pr-t-font-body-S-lineHeight));
33
33
  }
34
34
 
35
+ @mixin loadingXS {
36
+ @include loading.spinner(var(--pr-t-font-body-XS-lineHeight));
37
+ --commons-loading-borderWidth: 2px;
38
+ }
39
+
35
40
  @mixin loadingOutlined {
36
41
  --components-button-backgroundColor: var(--palettes-neutral-0);
37
42
  --commons-loading-frontground: var(--palettes-neutral-300);
@@ -68,6 +73,19 @@
68
73
  }
69
74
  }
70
75
 
76
+ @mixin successS {
77
+ &::after {
78
+ font-size: var(--pr-t-font-body-S-lineHeight);
79
+ block-size: var(--pr-t-font-body-S-lineHeight);
80
+ }
81
+ }
82
+
83
+ @mixin successXS {
84
+ &::after {
85
+ font-size: var(--pr-t-font-body-XS-lineHeight);
86
+ block-size: var(--pr-t-font-body-XS-lineHeight);
87
+ }
88
+ }
71
89
 
72
90
  @mixin successOutlined {
73
91
  --components-button-backgroundColor: var(--palettes-neutral-0);
@@ -66,5 +66,22 @@
66
66
 
67
67
  &:is(ul) {
68
68
  flex-wrap: wrap;
69
+
70
+ .button.mod-more {
71
+ block-size: 100%;
72
+ min-block-size: 2.25rem;
73
+
74
+ &.mod-S {
75
+ min-block-size: 2rem;
76
+ }
77
+
78
+ &.mod-XS {
79
+ min-block-size: 1.5rem;
80
+ }
81
+
82
+ &::before {
83
+ content: none;
84
+ }
85
+ }
69
86
  }
70
87
  }
@@ -1,27 +1,15 @@
1
1
  @use 'exports' as *;
2
- @use '@lucca-front/scss/src/components/button/exports' as button;
3
2
 
4
3
  .button-group {
5
- @layer components {
6
- @include vars;
7
- @include component;
8
- }
9
-
10
- @layer mods {
11
- &.mod-outlined {
12
- @include outlined;
13
- }
4
+ @include vars;
5
+ @include component;
14
6
 
15
- // .mod-text deprecated
16
- &.mod-text,
17
- &.mod-ghost {
18
- @include ghost;
19
- }
7
+ &.mod-outlined {
8
+ @include outlined;
9
+ }
20
10
 
21
- &:is(ul) {
22
- .button.mod-more {
23
- @include button.moreInsideUl;
24
- }
25
- }
11
+ // .mod-text deprecated
12
+ &.mod-text, .mod-ghost {
13
+ @include ghost;
26
14
  }
27
15
  }