@lucca-front/scss 22.1.0-rc.1 → 22.1.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 (65) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +3 -3
  3. package/src/commons/base.scss +20 -2
  4. package/src/commons/config.scss +30 -1
  5. package/src/commons/core.scss +25 -7
  6. package/src/commons/utils/highlight-prisme.scss +3 -2
  7. package/src/commons/vars.scss +11 -1
  8. package/src/components/activityFeed/component.scss +10 -6
  9. package/src/components/activityFeed/index.scss +4 -0
  10. package/src/components/activityFeed/states.scss +6 -0
  11. package/src/components/bubbleIcon/mods.scss +9 -3
  12. package/src/components/button/mods.scss +8 -13
  13. package/src/components/calendar/component.scss +2 -5
  14. package/src/components/callout/mods.scss +1 -6
  15. package/src/components/dataTable/component.scss +2 -0
  16. package/src/components/dataTableSticked/mods.scss +12 -0
  17. package/src/components/dialog/component.scss +7 -3
  18. package/src/components/dialog/mods.scss +2 -2
  19. package/src/components/dialog/vars.scss +6 -0
  20. package/src/components/fancyBox/component.scss +87 -14
  21. package/src/components/fancyBox/mods.scss +8 -8
  22. package/src/components/fancyBox/vars.scss +25 -7
  23. package/src/components/filterPill/component.scss +0 -5
  24. package/src/components/filterPill/index.scss +0 -5
  25. package/src/components/highlightData/index.scss +12 -0
  26. package/src/components/highlightData/mods.scss +27 -0
  27. package/src/components/highlightData/vars.scss +9 -0
  28. package/src/components/index.scss +1 -1
  29. package/src/components/indexTable/component.scss +2 -0
  30. package/src/components/link/index.scss +4 -0
  31. package/src/components/link/mods.scss +5 -0
  32. package/src/components/listboxOption/component.scss +5 -0
  33. package/src/components/multiSelect/component.scss +17 -0
  34. package/src/components/multiSelect/index.scss +18 -0
  35. package/src/components/multiSelect/mods.scss +39 -0
  36. package/src/components/multiSelect/states.scss +4 -0
  37. package/src/components/multiSelect/vars.scss +1 -0
  38. package/src/components/priorityLevels/component.scss +38 -0
  39. package/src/components/priorityLevels/index.scss +30 -0
  40. package/src/components/priorityLevels/mods.scss +28 -0
  41. package/src/components/priorityLevels/vars.scss +8 -0
  42. package/src/components/simpleSelect/component.scss +23 -0
  43. package/src/components/simpleSelect/index.scss +18 -0
  44. package/src/components/simpleSelect/mods.scss +20 -0
  45. package/src/components/simpleSelect/states.scss +4 -0
  46. package/src/components/simpleSelect/vars.scss +1 -0
  47. package/src/components/tableSortable/component.scss +7 -1
  48. package/src/components/tableSortable/index.scss +6 -0
  49. package/src/components/tableSortable/mods.scss +11 -0
  50. package/src/components/tableSortable/vars.scss +2 -0
  51. package/src/components/tag/component.scss +1 -1
  52. package/src/components/tag/index.scss +7 -0
  53. package/src/components/tag/mods.scss +5 -6
  54. package/src/components/tag/vars.scss +1 -0
  55. package/src/components/textField/index.scss +8 -0
  56. package/src/components/textField/mods.scss +5 -0
  57. package/src/components/tooltip/component.scss +13 -1
  58. package/src/components/tooltip/vars.scss +1 -0
  59. package/src/components/userPopover/component.scss +5 -16
  60. package/src/components/icon/component.scss +0 -8
  61. package/src/components/icon/index.scss +0 -67
  62. package/src/components/icon/mods.scss +0 -67
  63. package/src/components/icon/vars.scss +0 -4
  64. /package/src/components/{icon → priorityLevels}/exports.scss +0 -0
  65. /package/src/components/{icon → priorityLevels}/states.scss +0 -0
@@ -7,4 +7,6 @@
7
7
  --components-sortable-fontSize: var(--pr-t-font-body-M-fontSize);
8
8
  --components-sortable-lineHeight: var(--pr-t-font-body-M-lineHeight);
9
9
  --components-sortable-arrowsOffset: var(--pr-t-spacings-50);
10
+ --components-sortable-minInlineSize: auto;
11
+ --components-sortable-maxInlineSize: none;
10
12
  }
@@ -5,7 +5,7 @@
5
5
  background-color: var(--components-tag-background);
6
6
  border-radius: var(--pr-t-border-radius-small);
7
7
  padding-block: 0;
8
- padding-inline: var(--pr-t-spacings-50);
8
+ padding-inline: var(--components-tag-padding-inline);
9
9
  text-decoration: var(--components-tag-decoration);
10
10
  box-shadow: 0 0 0 1px var(--components-tag-shadow);
11
11
  gap: var(--components-tag-gap);
@@ -40,6 +40,13 @@
40
40
 
41
41
  &:has(.lucca-icon) {
42
42
  @include withIcon;
43
+
44
+ // mask condition is necessary for hiddenLabel
45
+ &:not(:has(.tag-content)),
46
+ &:has(.tag-content:empty),
47
+ &:has(.tag-content.pr-u-mask) {
48
+ @include onlyIcon;
49
+ }
43
50
  }
44
51
 
45
52
  &:has(.tag-content:empty) {
@@ -1,5 +1,4 @@
1
1
  @use '@lucca-front/icons/src/icon/exports' as icons;
2
- @use '@lucca-front/scss/src/components/icon/exports' as icon;
3
2
  @use '@lucca-front/scss/src/commons/utils/color';
4
3
 
5
4
  @mixin clickable {
@@ -70,16 +69,16 @@
70
69
  $pseudo: '::after',
71
70
  );
72
71
 
73
- @include icon.whenRawIcon {
72
+ .lucca-icon {
74
73
  @include icons.AI;
75
74
  }
76
-
77
- @include icon.whenIconComponent {
78
- @include icon.AI;
79
- }
80
75
  }
81
76
  }
82
77
 
83
78
  @mixin withIcon {
84
79
  --components-tag-before-content: ' ';
85
80
  }
81
+
82
+ @mixin onlyIcon {
83
+ --components-tag-padding-inline: var(--pr-t-spacings-25);
84
+ }
@@ -10,6 +10,7 @@
10
10
  --components-tag-position: static;
11
11
  --components-tag-before-content: none;
12
12
  --components-tag-display: inline-flex;
13
+ --components-tag-padding-inline: var(--pr-t-spacings-50);
13
14
 
14
15
  // Deprecated
15
16
  --components-tag-fontSize: var(--pr-t-font-body-S-fontSize);
@@ -1,3 +1,5 @@
1
+ @use '@lucca-front/scss/src/commons/config';
2
+
1
3
  @use 'exports' as *;
2
4
 
3
5
  .textField {
@@ -23,6 +25,12 @@
23
25
  @include XS;
24
26
  }
25
27
 
28
+ @each $value in config.$fieldsWidth {
29
+ &.mod-width#{$value} {
30
+ @include width($value);
31
+ }
32
+ }
33
+
26
34
  &.mod-valueAlignRight {
27
35
  @include valueAlignRight;
28
36
  }
@@ -1,3 +1,4 @@
1
+ @use 'sass:math';
1
2
  @use '@lucca-front/scss/src/components/clear/exports' as clear;
2
3
  @use '@lucca-front/scss/src/components/button/exports' as button;
3
4
  @use '@lucca-front/icons/src/icon/exports' as icon;
@@ -64,6 +65,10 @@
64
65
  }
65
66
  }
66
67
 
68
+ @mixin width($value) {
69
+ --component-textField-width: #{math.div($value, 2) * 1rem};
70
+ }
71
+
67
72
  @mixin valueAlignRight {
68
73
  .textField-input-value {
69
74
  text-align: end;
@@ -13,13 +13,25 @@
13
13
  margin: var(--components-tooltip-margin);
14
14
  text-align: center;
15
15
  inline-size: fit-content;
16
- animation-name: scaleIn;
16
+ animation-name: scaleIn, tooltipPointerEventsIn;
17
+ animation-delay: var(--components-tooltip-animationDelay);
17
18
  animation-duration: var(--commons-animations-durations-fast);
18
19
  animation-iteration-count: 1;
20
+ animation-fill-mode: backwards;
19
21
  overflow-wrap: break-word;
20
22
 
21
23
  @include keyframe.scaleIn;
22
24
 
25
+ @keyframes tooltipPointerEventsIn {
26
+ 0% {
27
+ pointer-events: none;
28
+ }
29
+
30
+ 1% {
31
+ pointer-events: auto;
32
+ }
33
+ }
34
+
23
35
  &:empty {
24
36
  display: none;
25
37
  }
@@ -4,4 +4,5 @@
4
4
  --components-tooltip-max-width: 15rem;
5
5
  --components-tooltip-transformOrigin: center;
6
6
  --components-tooltip-margin: 0;
7
+ --components-tooltip-animationDelay: 300ms;
7
8
  }
@@ -42,15 +42,17 @@
42
42
  }
43
43
 
44
44
  .userPopover-details-info-name-linkOptional {
45
- color: currentColor;
46
- text-decoration: underline;
47
45
  text-decoration-thickness: 0.75px;
48
46
  text-underline-offset: 3px;
49
47
 
50
48
  &:hover {
51
- color: currentColor;
52
49
  text-decoration-thickness: 1.5px;
53
50
  }
51
+
52
+ &.link {
53
+ --components-link-color: var(--pr-t-color-text-highlight);
54
+ --components-link-color-hover: var(--pr-t-color-text-highlight);
55
+ }
54
56
  }
55
57
 
56
58
  .userPopover-details-info-detail {
@@ -62,19 +64,6 @@
62
64
  display: flex;
63
65
  align-items: flex-start;
64
66
  gap: var(--pr-t-spacings-50);
65
- color: currentColor;
66
- text-decoration: none;
67
-
68
- &:is(a, button) {
69
- &:hover,
70
- &:focus {
71
- color: currentColor;
72
-
73
- .userPopover-details-info-detail-workplace-state {
74
- text-decoration: underline;
75
- }
76
- }
77
- }
78
67
  }
79
68
  }
80
69
 
@@ -1,8 +0,0 @@
1
- @use '@lucca-front/scss/src/commons/utils/namespace';
2
-
3
- @mixin component($atRoot: namespace.$defaultAtRoot) {
4
- block-size: var(--components-icon-size, var(--icon-size, var(--components-icon-sizeDefault)));
5
- inline-size: var(--components-icon-size, var(--icon-size, var(--components-icon-sizeDefault)));
6
- color: var(--components-icon-color);
7
- fill: currentColor;
8
- }
@@ -1,67 +0,0 @@
1
- @use 'exports' as *;
2
-
3
- // where is for specificity here
4
- :where(lu-icon, pr-icon) .lucca-icon {
5
- @layer components {
6
- @include vars;
7
- @include component;
8
- }
9
-
10
- @layer mods {
11
- &.mod-XXS {
12
- @include XXS;
13
- }
14
-
15
- &.mod-XS {
16
- @include XS;
17
- }
18
-
19
- &.mod-S {
20
- @include S;
21
- }
22
-
23
- &.mod-M {
24
- @include M;
25
- }
26
-
27
- &.mod-L {
28
- @include L;
29
- }
30
-
31
- &.mod-XL {
32
- @include XL;
33
- }
34
-
35
- &.mod-XXL {
36
- @include XXL;
37
- }
38
-
39
- &.icon-color-product {
40
- @include colorProduct;
41
- }
42
-
43
- &.icon-color-error {
44
- @include colorError;
45
- }
46
-
47
- &.icon-color-warning {
48
- @include colorWarning;
49
- }
50
-
51
- &.icon-color-success {
52
- @include colorSuccess;
53
- }
54
-
55
- &.icon-color-light {
56
- @include colorLight;
57
- }
58
-
59
- &.icon-color-placeholder {
60
- @include colorPlaceholder;
61
- }
62
-
63
- &.mod-AI {
64
- @include AI;
65
- }
66
- }
67
- }
@@ -1,67 +0,0 @@
1
- @mixin XXS {
2
- --components-icon-size: 0.75rem;
3
- }
4
-
5
- @mixin XS {
6
- --components-icon-size: 1rem;
7
- }
8
-
9
- @mixin S {
10
- --components-icon-size: 1.25rem;
11
- }
12
-
13
- @mixin M {
14
- --components-icon-size: 1.5rem;
15
- }
16
-
17
- @mixin L {
18
- --components-icon-size: 1.75rem;
19
- }
20
-
21
- @mixin XL {
22
- --components-icon-size: 2rem;
23
- }
24
-
25
- @mixin XXL {
26
- --components-icon-size: 2.5rem;
27
- }
28
-
29
- @mixin colorProduct {
30
- --components-icon-color: var(--palettes-product-700);
31
- }
32
-
33
- @mixin colorError {
34
- --components-icon-color: var(--palettes-error-700);
35
- }
36
-
37
- @mixin colorWarning {
38
- --components-icon-color: var(--palettes-warning-700);
39
- }
40
-
41
- @mixin colorSuccess {
42
- --components-icon-color: var(--palettes-success-700);
43
- }
44
-
45
- @mixin colorLight {
46
- --components-icon-color: var(--palettes-neutral-600);
47
- }
48
-
49
- @mixin colorPlaceholder {
50
- --components-icon-color: var(--palettes-neutral-400);
51
- }
52
-
53
- @mixin AI {
54
- fill: url('#lu-icon-ai-gradient');
55
- }
56
-
57
- @mixin whenIconComponent {
58
- :where(lu-icon, pr-icon) .lucca-icon {
59
- @content;
60
- }
61
- }
62
-
63
- @mixin whenRawIcon {
64
- .lucca-icon:where(:not(:where(lu-icon, pr-icon) .lucca-icon)) {
65
- @content;
66
- }
67
- }
@@ -1,4 +0,0 @@
1
- @mixin vars {
2
- --components-icon-color: inherit;
3
- --components-icon-sizeDefault: 1.5rem;
4
- }