@lucca-front/scss 21.3.0-rc.5 → 22.0.0-rc.2

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 (70) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +3 -3
  3. package/src/commons/config.scss +4 -26
  4. package/src/commons/utils/color.scss +2 -2
  5. package/src/commons/utils/index.scss +0 -4
  6. package/src/commons/vars.scss +0 -14
  7. package/src/components/avatar/index.scss +3 -31
  8. package/src/components/avatar/mods.scss +0 -28
  9. package/src/components/button/mods.scss +6 -8
  10. package/src/components/callout/mods.scss +1 -1
  11. package/src/components/code/component.scss +0 -1
  12. package/src/components/comment/component.scss +1 -1
  13. package/src/components/dataTable/component.scss +1 -6
  14. package/src/components/dialog/component.scss +2 -3
  15. package/src/components/dialog/index.scss +0 -4
  16. package/src/components/dialog/mods.scss +0 -6
  17. package/src/components/dialog/vars.scss +0 -1
  18. package/src/components/fieldset/mods.scss +0 -6
  19. package/src/components/fieldset/vars.scss +1 -1
  20. package/src/components/fileEntry/component.scss +15 -7
  21. package/src/components/fileEntry/index.scss +18 -10
  22. package/src/components/fileEntry/mods.scss +21 -16
  23. package/src/components/fileEntry/states.scss +9 -4
  24. package/src/components/fileEntry/vars.scss +10 -13
  25. package/src/components/fileToolbar/component.scss +0 -2
  26. package/src/components/fileToolbar/index.scss +2 -2
  27. package/src/components/fileToolbar/mods.scss +13 -8
  28. package/src/components/fileUpload/component.scss +3 -2
  29. package/src/components/fileUpload/index.scss +2 -10
  30. package/src/components/fileUpload/mods.scss +25 -20
  31. package/src/components/fileUpload/states.scss +0 -9
  32. package/src/components/fileUpload/vars.scss +20 -17
  33. package/src/components/filterPill/component.scss +5 -29
  34. package/src/components/filterPill/index.scss +11 -14
  35. package/src/components/filterPill/states.scss +8 -7
  36. package/src/components/filterPill/vars.scss +1 -2
  37. package/src/components/form/component.scss +0 -6
  38. package/src/components/form/mods.scss +1 -1
  39. package/src/components/form/vars.scss +1 -1
  40. package/src/components/grid/mods.scss +1 -1
  41. package/src/components/horizontalNavigation/component.scss +1 -23
  42. package/src/components/horizontalNavigation/index.scss +1 -19
  43. package/src/components/horizontalNavigation/mods.scss +0 -14
  44. package/src/components/horizontalNavigation/vars.scss +0 -7
  45. package/src/components/index.scss +0 -2
  46. package/src/components/indexTable/component.scss +0 -4
  47. package/src/components/listing/component.scss +2 -2
  48. package/src/components/loading/mods.scss +4 -0
  49. package/src/components/mobilePush/component.scss +1 -1
  50. package/src/components/multiSelect/component.scss +0 -10
  51. package/src/components/presentation/component.scss +0 -1
  52. package/src/components/simpleSelect/index.scss +0 -1
  53. package/src/components/tag/mods.scss +1 -1
  54. package/src/components/textFlow/component.scss +0 -2
  55. package/src/components/timepicker/component.scss +4 -28
  56. package/src/components/timepicker/mods.scss +3 -24
  57. package/src/components/timepicker/vars.scss +3 -6
  58. package/src/components/toast/component.scss +0 -1
  59. package/src/components/highlightText/component.scss +0 -30
  60. package/src/components/highlightText/exports.scss +0 -4
  61. package/src/components/highlightText/index.scss +0 -8
  62. package/src/components/highlightText/mods.scss +0 -0
  63. package/src/components/highlightText/states.scss +0 -0
  64. package/src/components/highlightText/vars.scss +0 -9
  65. package/src/components/impersonation/component.scss +0 -59
  66. package/src/components/impersonation/exports.scss +0 -4
  67. package/src/components/impersonation/index.scss +0 -22
  68. package/src/components/impersonation/mods.scss +0 -0
  69. package/src/components/impersonation/states.scss +0 -18
  70. package/src/components/impersonation/vars.scss +0 -11
@@ -40,7 +40,6 @@
40
40
  @include XS;
41
41
  }
42
42
 
43
- &.mod-impersonation,
44
43
  &.mod-filterPill {
45
44
  @include filterPill;
46
45
  }
@@ -63,7 +63,7 @@
63
63
  --components-tag-boxShadow: none;
64
64
  --components-tag-position: relative;
65
65
 
66
- @include color.borderGradient($gradient: var(--pr-t-color-border-ai), $radius: var(--pr-t-border-radius-small));
66
+ @include color.borderGradient(135deg, var(--palettes-brand-400), var(--palettes-AI-500), var(--pr-t-border-radius-small));
67
67
 
68
68
  .lucca-icon {
69
69
  @include icons.AI;
@@ -1,8 +1,6 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/namespace';
2
2
 
3
3
  @mixin component($atRoot: namespace.$defaultAtRoot) {
4
- overflow-wrap: anywhere;
5
-
6
4
  h1 {
7
5
  margin-block: var(--pr-t-spacings-300);
8
6
  }
@@ -28,25 +28,6 @@
28
28
  &:focus-within {
29
29
  @include a11y.focusVisible($offset: 3px);
30
30
  }
31
-
32
- .timePicker-fieldset {
33
- box-shadow: initial;
34
-
35
- &:focus-within {
36
- outline: initial;
37
- }
38
- }
39
- }
40
-
41
- .timePicker-arrow {
42
- align-self: stretch;
43
- display: flex;
44
- align-items: center;
45
- color: var(--pr-t-color-text-subtle);
46
- }
47
-
48
- .timePicker-arrow-icon .lucca-icon {
49
- @include icons.S;
50
31
  }
51
32
 
52
33
  .timePicker-fieldset-groupSeparator {
@@ -66,9 +47,6 @@
66
47
 
67
48
  ~ .timePicker-fieldset-group {
68
49
  margin-inline-start: calc(var(--pr-t-spacings-50) * -1);
69
-
70
- --components-timepicker-input-padding-inline: var(--components-timepicker-end) var(--components-timepicker-start);
71
- --components-timepicker-display-inset-inline: var(--components-timepicker-input-padding-inline);
72
50
  }
73
51
  }
74
52
 
@@ -105,8 +83,7 @@
105
83
 
106
84
  .timePicker-fieldset-group-textfield-display {
107
85
  position: absolute;
108
- inset-block: var(--components-timepicker-display-inset-block);
109
- inset-inline: var(--components-timepicker-display-inset-inline);
86
+ inset: var(--components-timepicker-display-padding-inline) var(--components-timepicker-display-padding-block);
110
87
  border-radius: var(--pr-t-border-radius-50);
111
88
  pointer-events: none;
112
89
  display: grid;
@@ -157,8 +134,8 @@
157
134
 
158
135
  .timePicker-fieldset-meridiem {
159
136
  box-sizing: content-box;
160
- inline-size: calc(var(--pr-t-spacings-100) + 2ch);
161
- padding-inline: var(--pr-t-spacings-50);
137
+ inline-size: calc(var(--components-timepicker-input-minInlineSize) + 2ch);
138
+ padding-inline: var(--components-timepicker-display-padding-block);
162
139
  position: relative;
163
140
  align-self: stretch;
164
141
  margin-inline-start: calc(var(--pr-t-spacings-50) * -1);
@@ -166,8 +143,7 @@
166
143
  &::after {
167
144
  content: '';
168
145
  position: absolute;
169
- inset-block: var(--components-timepicker-display-inset-block);
170
- inset-inline: var(--pr-t-spacings-50);
146
+ inset: var(--components-timepicker-display-padding-inline) var(--components-timepicker-display-padding-block);
171
147
  border-radius: var(--pr-t-border-radius-50);
172
148
  display: grid;
173
149
  place-items: center;
@@ -1,34 +1,13 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/a11y';
2
- @use '@lucca-front/icons/src/icon/exports' as icons;
3
2
 
4
3
  @mixin S {
5
4
  --components-timepicker-font: var(--pr-t-font-body-S);
5
+ --components-timepicker-display-padding-inline: var(--pr-t-spacings-25);
6
+ --components-timepicker-display-padding-block: var(--pr-t-spacings-75);
7
+ --components-timepicker-input-padding-inline: var(--pr-t-spacings-75);
6
8
  --components-timepicker-input-padding-block: var(--pr-t-spacings-25);
7
9
  --components-timepicker-input-height: 1.75rem;
8
10
  --components-timepicker-separator-left: 1.875rem;
9
- --components-timepicker-start: var(--pr-t-spacings-25);
10
- --components-timepicker-end: var(--pr-t-spacings-75);
11
-
12
- .timePicker-arrow-icon .lucca-icon {
13
- @include icons.XS;
14
- }
15
-
16
- .timePicker-fieldset-group {
17
- --components-timepicker-input-padding-inline: var(--components-timepicker-start) var(--components-timepicker-end);
18
- --components-timepicker-display-inset-inline: var(--components-timepicker-input-padding-inline);
19
-
20
- ~ .timePicker-fieldset-group {
21
- --components-timepicker-input-padding-inline: var(--components-timepicker-end) var(--components-timepicker-start);
22
- }
23
- }
24
-
25
- .timePicker-fieldset-meridiem {
26
- inline-size: calc(var(--pr-t-spacings-50) + 2ch);
27
-
28
- &::after {
29
- inset-inline: var(--pr-t-spacings-25);
30
- }
31
- }
32
11
  }
33
12
 
34
13
  @mixin stepper {
@@ -5,13 +5,10 @@
5
5
  --components-timepicker-font: var(--pr-t-font-body-M);
6
6
  --components-timepicker-input-height: 2rem;
7
7
  --components-timepicker-input-minInlineSize: 0.5rem;
8
- --components-timepicker-input-padding-inline: var(--components-timepicker-start) var(--components-timepicker-end);
8
+ --components-timepicker-input-padding-inline: var(--pr-t-spacings-100);
9
9
  --components-timepicker-input-padding-block: var(--pr-t-spacings-50);
10
10
  --components-timepicker-padding: 0;
11
- --components-timepicker-display-inset-inline: var(--components-timepicker-input-padding-inline);
12
- --components-timepicker-display-inset-block: var(--components-timepicker-input-padding-block);
11
+ --components-timepicker-display-padding-inline: var(--pr-t-spacings-50);
12
+ --components-timepicker-display-padding-block: var(--pr-t-spacings-100);
13
13
  --components-timepicker-separator-left: 2.375rem;
14
-
15
- --components-timepicker-start: var(--pr-t-spacings-50);
16
- --components-timepicker-end: var(--pr-t-spacings-100);
17
14
  }
@@ -70,7 +70,6 @@
70
70
 
71
71
  .toast-item-content-description {
72
72
  margin: 0;
73
- overflow-wrap: anywhere;
74
73
  }
75
74
 
76
75
  .toasts-item-kill {
@@ -1,30 +0,0 @@
1
- @use '@lucca-front/scss/src/commons/utils/namespace';
2
-
3
- @mixin component($atRoot: namespace.$defaultAtRoot) {
4
- padding-inline: 0.125em;
5
- margin-inline: -0.125em;
6
- background-repeat: no-repeat;
7
- box-decoration-break: clone;
8
- font-weight: inherit;
9
- background-image:
10
- linear-gradient(var(--components-highlightText-backgroundColor)),
11
- linear-gradient(var(--components-highlightText-backgroundColor)),
12
- radial-gradient(var(--components-highlightText-backgroundDiameter) circle at var(--components-highlightText-backgroundStart) var(--components-highlightText-backgroundEnd), var(--components-highlightText-backgroundColor) calc(50% - 1px), transparent 50%),
13
- radial-gradient(var(--components-highlightText-backgroundDiameter) circle at var(--components-highlightText-backgroundEnd) var(--components-highlightText-backgroundEnd), var(--components-highlightText-backgroundColor) calc(50% - 1px), transparent 50%),
14
- radial-gradient(var(--components-highlightText-backgroundDiameter) circle at var(--components-highlightText-backgroundStart) calc(100% - var(--components-highlightText-backgroundBlockSize) + var(--components-highlightText-backgroundRadius)), var(--components-highlightText-backgroundColor) calc(50% - 1px), transparent 50%),
15
- radial-gradient(var(--components-highlightText-backgroundDiameter) circle at var(--components-highlightText-backgroundEnd) calc(100% - var(--components-highlightText-backgroundBlockSize) + var(--components-highlightText-backgroundRadius)), var(--components-highlightText-backgroundColor) calc(50% - 1px), transparent 50%);
16
- background-size:
17
- 100% calc(var(--components-highlightText-backgroundBlockSize) - var(--components-highlightText-backgroundDiameter)),
18
- calc(100% - var(--components-highlightText-backgroundDiameter)) var(--components-highlightText-backgroundBlockSize),
19
- 100% 100%,
20
- 100% 100%,
21
- 100% 100%,
22
- 100% 100%;
23
- background-position:
24
- 50% calc(100% - var(--components-highlightText-backgroundRadius)),
25
- 50% 100%,
26
- 0 0,
27
- 0 0,
28
- 0 0,
29
- 0 0;
30
- }
@@ -1,4 +0,0 @@
1
- @forward 'vars';
2
- @forward 'mods';
3
- @forward 'states';
4
- @forward 'component';
@@ -1,8 +0,0 @@
1
- @use 'exports' as *;
2
-
3
- .highlightText {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
8
- }
File without changes
File without changes
@@ -1,9 +0,0 @@
1
- @mixin vars {
2
- --components-highlightText-backgroundColor: var(--palettes-300, var(--palettes-product-300));
3
- --components-highlightText-backgroundDiameter: 0.25em;
4
- --components-highlightText-backgroundBlockSize: 0.5em;
5
-
6
- --components-highlightText-backgroundRadius: calc(var(--components-highlightText-backgroundDiameter) / 2);
7
- --components-highlightText-backgroundStart: var(--components-highlightText-backgroundRadius);
8
- --components-highlightText-backgroundEnd: calc(100% - var(--components-highlightText-backgroundRadius));
9
- }
@@ -1,59 +0,0 @@
1
- @use '@lucca-front/scss/src/commons/config';
2
- @use '@lucca-front/scss/src/commons/utils/namespace';
3
- @use '@lucca-front/scss/src/commons/utils/reset';
4
- @use '@lucca-front/scss/src/components/clear/exports' as clear;
5
-
6
- @mixin component($atRoot: namespace.$defaultAtRoot) {
7
- position: relative;
8
- inline-size: fit-content;
9
- display: block;
10
-
11
- @at-root ($atRoot) {
12
- .impersonation-trigger {
13
- @include reset.button;
14
-
15
- border: 1px solid var(--components-impersonation-trigger-borderColor);
16
- background-color: var(--components-impersonation-trigger-backgroundColor);
17
- border-radius: var(--pr-t-border-radius-200);
18
- inline-size: fit-content;
19
- display: flex;
20
- align-items: center;
21
- gap: var(--pr-t-spacings-100);
22
- padding: var(--pr-t-spacings-50);
23
- padding-inline-end: var(--pr-t-spacings-100);
24
- min-block-size: var(--pr-t-spacings-500);
25
- font-weight: var(--components-impersonation-trigger-fontWeight);
26
- color: var(--components-impersonation-trigger-color);
27
- box-shadow: var(--components-impersonation-trigger-boxShadow);
28
- transition-property: box-shadow, border-color;
29
- transition-duration: var(--commons-animations-durations-fast);
30
- }
31
-
32
- .impersonation-trigger-icon {
33
- color: var(--components-impersonation-trigger-icon-color);
34
- rotate: var(--components-impersonation-trigger-icon-rotate);
35
- transition-property: rotate;
36
- transition-duration: var(--commons-animations-durations-fast);
37
- margin-inline-start: var(--components-impersonation-trigger-icon-marginInlineStart);
38
- }
39
-
40
- .impersonation-clear.clear {
41
- position: absolute;
42
- z-index: 1;
43
- inset-inline-end: calc(var(--pr-t-spacings-400) + var(--pr-t-spacings-75));
44
- inset-block-start: calc(var(--pr-t-spacings-150) + 1px);
45
- display: var(--components-impersonation-clear-display);
46
-
47
- @include clear.product;
48
- }
49
-
50
- .impersonation_popover-content-option {
51
- display: flex;
52
- color: var(--pr-t-color-text);
53
-
54
- &.mod-me {
55
- font-weight: var(--pr-t-font-fontWeight-semibold);
56
- }
57
- }
58
- }
59
- }
@@ -1,4 +0,0 @@
1
- @forward 'vars';
2
- @forward 'mods';
3
- @forward 'states';
4
- @forward 'component';
@@ -1,22 +0,0 @@
1
- @use 'exports' as *;
2
-
3
- .impersonation {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
8
-
9
- @layer mods {
10
- &:has(.impersonation-trigger.is-active) {
11
- @include triggerActive;
12
- }
13
-
14
- &:has(.impersonation-trigger:hover) {
15
- @include triggerHover;
16
- }
17
-
18
- &:has(.impersonation-trigger[aria-expanded='true']) {
19
- @include triggerExpanded;
20
- }
21
- }
22
- }
File without changes
@@ -1,18 +0,0 @@
1
- @mixin triggerHover {
2
- --components-impersonation-trigger-borderColor: var(--palettes-product-400);
3
- --components-impersonation-trigger-shadow: var(--pr-t-elevation-shadow-button);
4
- }
5
-
6
- @mixin triggerExpanded {
7
- --components-impersonation-trigger-icon-rotate: 180deg;
8
- }
9
-
10
- @mixin triggerActive {
11
- --components-impersonation-trigger-backgroundColor: var(--palettes-product-50);
12
- --components-impersonation-trigger-borderColor: var(--palettes-product-200);
13
- --components-impersonation-trigger-fontWeight: var(--pr-t-font-fontWeight-semibold);
14
- --components-impersonation-trigger-color: var(--palettes-product-800);
15
- --components-impersonation-trigger-icon-color: var(--palettes-product-700);
16
- --components-impersonation-clear-display: grid;
17
- --components-impersonation-trigger-icon-marginInlineStart: var(--pr-t-spacings-250);
18
- }
@@ -1,11 +0,0 @@
1
- @mixin vars {
2
- --components-impersonation-trigger-borderColor: var(--palettes-neutral-100);
3
- --components-impersonation-trigger-icon-rotate: 0deg;
4
- --components-impersonation-trigger-backgroundColor: var(--palettes-neutral-0);
5
- --components-impersonation-trigger-fontWeight: var(--pr-t-font-fontWeight-regular);
6
- --components-impersonation-trigger-color: var(--pr-t-color-text);
7
- --components-impersonation-trigger-icon-color: var(--pr-t-color-text-subtle);
8
- --components-impersonation-trigger-boxShadow: none;
9
- --components-impersonation-clear-display: none;
10
- --components-impersonation-trigger-icon-marginInlineStart: auto;
11
- }