@lucca-front/scss 21.0.3 → 21.1.0-split.0

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 (59) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +3 -2
  3. package/src/commons/base.scss +1 -1
  4. package/src/commons/config.scss +7 -7
  5. package/src/commons/vars.scss +2 -1
  6. package/src/components/appLayout/component.scss +0 -1
  7. package/src/components/appLayout/index.scss +0 -5
  8. package/src/components/appLayout/mods.scss +0 -4
  9. package/src/components/bubbleIcon/component.scss +54 -0
  10. package/src/components/bubbleIcon/exports.scss +4 -0
  11. package/src/components/bubbleIcon/index.scss +48 -0
  12. package/src/components/bubbleIcon/mods.scss +39 -0
  13. package/src/components/bubbleIcon/states.scss +13 -0
  14. package/src/components/bubbleIcon/vars.scss +13 -0
  15. package/src/components/bubbleIllustration/component.scss +20 -0
  16. package/src/components/bubbleIllustration/exports.scss +4 -0
  17. package/src/components/bubbleIllustration/index.scss +34 -0
  18. package/src/components/bubbleIllustration/mods.scss +11 -0
  19. package/src/components/bubbleIllustration/states.scss +14 -0
  20. package/src/components/bubbleIllustration/vars.scss +4 -0
  21. package/src/components/callout/component.scss +1 -0
  22. package/src/components/clear/index.scss +2 -1
  23. package/src/components/color/component.scss +82 -0
  24. package/src/components/color/exports.scss +4 -0
  25. package/src/components/color/index.scss +74 -0
  26. package/src/components/color/mods.scss +48 -0
  27. package/src/components/color/states.scss +15 -0
  28. package/src/components/color/vars.scss +13 -0
  29. package/src/components/container/index.scss +1 -0
  30. package/src/components/container/mods.scss +2 -1
  31. package/src/components/dialog/index.scss +0 -4
  32. package/src/components/dialog/mods.scss +0 -4
  33. package/src/components/dialog/vars.scss +1 -1
  34. package/src/components/emptyState/component.scss +1 -6
  35. package/src/components/emptyState/index.scss +10 -0
  36. package/src/components/emptyState/mods.scss +9 -0
  37. package/src/components/emptyState/vars.scss +2 -1
  38. package/src/components/errorPage/component.scss +58 -42
  39. package/src/components/errorPage/index.scss +0 -4
  40. package/src/components/errorPage/mods.scss +0 -38
  41. package/src/components/fieldset/component.scss +0 -4
  42. package/src/components/filterPill/component.scss +1 -12
  43. package/src/components/form/component.scss +1 -1
  44. package/src/components/form/index.scss +6 -0
  45. package/src/components/form/mods.scss +9 -0
  46. package/src/components/highlightData/component.scss +0 -1
  47. package/src/components/highlightData/mods.scss +2 -3
  48. package/src/components/highlightData/vars.scss +2 -3
  49. package/src/components/horizontalNavigation/component.scss +1 -1
  50. package/src/components/index.scss +3 -0
  51. package/src/components/inputFramed/component.scss +11 -16
  52. package/src/components/mainLayout/component.scss +4 -2
  53. package/src/components/mainLayout/mods.scss +2 -0
  54. package/src/components/mainLayout/vars.scss +2 -0
  55. package/src/components/multiSelect/mods.scss +1 -1
  56. package/src/components/navside/component.scss +0 -4
  57. package/src/components/resourceCard/mods.scss +10 -0
  58. package/src/components/resourceCard/states.scss +10 -0
  59. package/src/components/simpleSelect/mods.scss +1 -1
@@ -8,7 +8,7 @@
8
8
  --components-dialog-borderRadius: var(--pr-t-border-radius-structure);
9
9
  --components-dialog-inset: 0;
10
10
  --components-dialog-animationOpening: scaleIn;
11
- --components-dialog-insideHeaderAreas: 'container close';
11
+ --components-dialog-insideHeaderAreas: 'container action close';
12
12
  --components-dialog-insideHeaderTitleAlign: left;
13
13
  --components-dialog-insideHeaderTitlePadding: calc(var(--pr-t-spacings-50) / 2) 0;
14
14
  --components-dialog-insideHeaderButtonDisplay: flex;
@@ -18,12 +18,7 @@
18
18
  inset-inline-start: var(--components-emptyState-container-left);
19
19
  padding: 0;
20
20
  inline-size: 100%;
21
- position: sticky;
22
-
23
- .container & {
24
- --components-emptyState-container-maxWidth: none;
25
- --components-emptyState-container-left: auto;
26
- }
21
+ position: var(--components-emptyState-container-position);
27
22
  }
28
23
 
29
24
  .emptyState-content {
@@ -14,5 +14,15 @@
14
14
  &.mod-center {
15
15
  @include center;
16
16
  }
17
+
18
+ .table &,
19
+ .indexTable &,
20
+ .dataTable & {
21
+ @include insideTable;
22
+ }
23
+
24
+ .container & {
25
+ @include insideContainer;
26
+ }
17
27
  }
18
28
  }
@@ -55,3 +55,12 @@
55
55
  justify-content: center;
56
56
  }
57
57
  }
58
+
59
+ @mixin insideTable {
60
+ --components-emptyState-container-position: sticky;
61
+ }
62
+
63
+ @mixin insideContainer {
64
+ --components-emptyState-container-maxWidth: none;
65
+ --components-emptyState-container-left: auto;
66
+ }
@@ -1,6 +1,7 @@
1
1
  @mixin vars {
2
2
  --components-emptyState-container-maxWidth: calc(100vw - var(--commons-navSide-width) - 7rem);
3
- --components-emptyState-container-left: calc(var(--commons-navSide-width) + 3.5rem);
3
+ --components-emptyState-container-left: calc(var(--commons-navSide-width) + var(--pr-t-spacings-400));
4
+ --components-emptyState-container-position: static;
4
5
 
5
6
  --components-emptyState-background-color: var(--pr-t-elevation-surface-default);
6
7
  --components-emptyState-illustration-top-right-offset-left: min(
@@ -1,50 +1,66 @@
1
- @use '@lucca-front/scss/src/commons/utils/namespace';
2
-
3
- @mixin component($atRoot: namespace.$defaultAtRoot) {
1
+ @mixin component {
4
2
  background-color: var(--components-errorPage-background);
5
3
  block-size: 100vh;
6
4
  inline-size: 100vw;
7
5
  line-height: 1.2;
8
6
  overflow: hidden;
9
7
 
10
- @at-root ($atRoot) {
11
- .errorPage-section {
12
- block-size: 100%;
13
- max-inline-size: 1200px;
14
- padding-block: 0;
15
- padding-inline: var(--pr-t-spacings-400);
16
- inline-size: 100vw;
17
- margin-block: 0;
18
- margin-inline: auto;
19
- display: flex;
20
- justify-content: space-between;
21
- align-items: center;
22
- }
23
-
24
- .errorPage-section-info {
25
- margin-block-start: 10vh;
26
- max-inline-size: 90vw;
27
- inline-size: 450px;
28
- padding-inline-end: var(--pr-t-spacings-400);
29
- }
30
-
31
- .errorPage-section-info-title {
32
- font: var(--pr-t-font-heading-1);
33
- margin-block-end: var(--pr-t-spacings-50);
34
- }
35
-
36
- .errorPage-section-info-text {
37
- font-size: var(--pr-t-font-body-1-fontSize);
38
- line-height: var(--pr-t-font-body-1-lineHeight);
39
- margin-block-end: var(--pr-t-spacings-150);
40
- }
41
-
42
- .errorPage-section-image {
43
- margin-block-start: 10vh;
44
- inline-size: 50%;
45
- max-inline-size: 580px;
46
- min-inline-size: 350px;
47
- block-size: auto;
48
- }
8
+ .errorPage-section {
9
+ block-size: 100%;
10
+ max-inline-size: 1200px;
11
+ padding-block: 0;
12
+ padding-inline: var(--pr-t-spacings-400);
13
+ inline-size: 100vw;
14
+ margin-block: 0;
15
+ margin-inline: auto;
16
+ display: flex;
17
+ justify-content: space-between;
18
+ align-items: center;
19
+ }
20
+
21
+ .errorPage-section-info {
22
+ margin-block-start: 10vh;
23
+ max-inline-size: 90vw;
24
+ inline-size: 450px;
25
+ padding-inline-end: var(--pr-t-spacings-400);
26
+ }
27
+
28
+ .errorPage-section-info-title {
29
+ font: var(--pr-t-font-heading-1);
30
+ margin-block-end: var(--pr-t-spacings-50);
31
+ }
32
+
33
+ .errorPage-section-info-text {
34
+ font-size: var(--pr-t-font-body-1-fontSize);
35
+ line-height: var(--pr-t-font-body-1-lineHeight);
36
+ margin-block-end: var(--pr-t-spacings-150);
37
+ }
38
+
39
+ .errorPage-section-image {
40
+ margin-block-start: 10vh;
41
+ inline-size: 50%;
42
+ max-inline-size: 580px;
43
+ min-inline-size: 350px;
44
+ block-size: auto;
45
+ }
46
+ }
47
+
48
+ @mixin compact {
49
+ overflow-y: auto;
50
+
51
+ .errorPage-section {
52
+ flex-direction: column;
53
+ justify-content: center;
54
+ }
55
+
56
+ .errorPage-section-info {
57
+ margin-block: var(--pr-t-spacings-400);
58
+ order: 1;
59
+ padding: 0;
60
+ }
61
+
62
+ .errorPage-section-image {
63
+ margin-block-start: var(--pr-t-spacings-400);
64
+ order: 0;
49
65
  }
50
66
  }
@@ -11,9 +11,5 @@
11
11
  @include media.max('S') {
12
12
  @include compact;
13
13
  }
14
-
15
- .appLayout & {
16
- @include inAppLayout;
17
- }
18
14
  }
19
15
  }
@@ -1,38 +0,0 @@
1
- @mixin compact {
2
- overflow-y: auto;
3
-
4
- .errorPage-section {
5
- flex-direction: column;
6
- justify-content: center;
7
- }
8
-
9
- .errorPage-section-info {
10
- margin-block: var(--pr-t-spacings-400);
11
- order: 1;
12
- padding: 0;
13
- }
14
-
15
- .errorPage-section-image {
16
- margin-block-start: var(--pr-t-spacings-400);
17
- order: 0;
18
- }
19
- }
20
-
21
- @mixin inAppLayout {
22
- &,
23
- .errorPage-section {
24
- block-size: 100%;
25
- inline-size: 100%;
26
- }
27
-
28
- .errorPage-section {
29
- gap: var(--pr-t-spacings-400);
30
- }
31
-
32
- .errorPage-section-image,
33
- .errorPage-section-info {
34
- margin-block-start: 0;
35
- padding: 0;
36
- max-inline-size: 100%;
37
- }
38
- }
@@ -17,10 +17,6 @@
17
17
  inline-size: 100%;
18
18
  min-block-size: var(--pr-t-spacings-300);
19
19
  display: contents;
20
-
21
- &:has(.fieldset-title-content-text:empty) {
22
- display: none;
23
- }
24
20
  }
25
21
 
26
22
  .fieldset-title-content {
@@ -40,18 +40,7 @@
40
40
 
41
41
  .filterPill_popover-content-option {
42
42
  padding: var(--pr-t-spacings-50) var(--pr-t-spacings-100);
43
- border-radius: var(--pr-t-border-radius-default);
44
- position: relative;
45
-
46
- .formLabel {
47
- position: static;
48
-
49
- &::before {
50
- content: '';
51
- position: absolute;
52
- inset: 0;
53
- }
54
- }
43
+ border-radius: var(--pr-t-border-radius-50);
55
44
 
56
45
  &:hover {
57
46
  background-color: var(--palettes-neutral-50);
@@ -6,7 +6,7 @@
6
6
  @mixin component($atRoot: namespace.$defaultAtRoot) {
7
7
  display: block;
8
8
 
9
- .divider:not(.mod-vertical) {
9
+ .divider {
10
10
  margin-block: var(--pr-t-spacings-300);
11
11
  }
12
12
 
@@ -101,6 +101,12 @@
101
101
  @include withArrowS;
102
102
  }
103
103
  }
104
+
105
+ &:has(.formLabel.pr-u-mask) {
106
+ &:not(:has(.inlineMessage)) {
107
+ @include hiddenLabel;
108
+ }
109
+ }
104
110
  }
105
111
  }
106
112
 
@@ -12,6 +12,7 @@
12
12
  @use '@lucca-front/scss/src/components/multiSelect/exports' as multiSelect;
13
13
  @use '@lucca-front/scss/src/components/timepicker/exports' as timepicker;
14
14
  @use '@lucca-front/scss/src/components/box/exports' as box;
15
+ @use '@lucca-front/scss/src/components/color/exports' as color;
15
16
 
16
17
  @mixin maxWidth {
17
18
  max-inline-size: var(--components-form-maxWidth);
@@ -115,6 +116,10 @@
115
116
  .timePicker {
116
117
  @include timepicker.S;
117
118
  }
119
+
120
+ .color {
121
+ @include color.M;
122
+ }
118
123
  }
119
124
 
120
125
  @mixin XS {
@@ -369,3 +374,7 @@
369
374
  content: '*' / '';
370
375
  }
371
376
  }
377
+
378
+ @mixin hiddenLabel {
379
+ gap: 0;
380
+ }
@@ -35,7 +35,6 @@
35
35
  }
36
36
 
37
37
  .highlightData-content-subText {
38
- grid-area: subtext;
39
38
  font: var(--pr-t-font-body-XS);
40
39
  color: var(--pr-t-color-text-subtle);
41
40
  margin-block-start: var(--pr-t-spacings-100) !important; // Override list reset
@@ -7,9 +7,8 @@
7
7
  }
8
8
 
9
9
  @mixin valueFirst {
10
- --components-highlightData-grid : 'value action'
11
- 'title action'
12
- 'subtext action';
10
+ --components-highlightData-grid : 'value action'
11
+ 'title action';
13
12
  }
14
13
 
15
14
  @mixin valueFirstIllustrations {
@@ -1,8 +1,7 @@
1
1
  @mixin vars {
2
2
  --components-highlightData-display: grid;
3
- --components-highlightData-grid: 'title action'
4
- 'value action'
5
- 'subtext action';
3
+ --components-highlightData-grid: 'title action'
4
+ 'value action';
6
5
  --components-highlightData-alignItem: center;
7
6
  --components-highlightData-background: var(--pr-t-elevation-surface-raised);
8
7
  --components-highlightData-padding-inline: var(--pr-t-spacings-200);
@@ -32,7 +32,7 @@
32
32
  .horizontalNavigation-containerOptional,
33
33
  .menu-containerOptional {
34
34
  max-inline-size: var(--commons-container-maxWidth);
35
- padding-inline: var(--commons-container-padding);
35
+ padding: var(--commons-container-padding);
36
36
  }
37
37
 
38
38
  // .menu-list is deprecated
@@ -110,6 +110,9 @@
110
110
  @forward 'listboxOption';
111
111
  @forward 'suggestion';
112
112
  @forward 'resourceCard';
113
+ @forward 'color';
114
+ @forward 'bubbleIllustration';
115
+ @forward 'bubbleIcon';
113
116
 
114
117
  @forward 'filterBarDeprecated';
115
118
  @forward 'tableFixedDeprecated';
@@ -13,12 +13,18 @@
13
13
  display: flex;
14
14
  flex-direction: column;
15
15
 
16
- .formLabel-info {
17
- position: relative;
18
- z-index: 1;
19
- }
20
-
21
16
  @at-root ($atRoot) {
17
+ .inputFramed-header-label.formLabel {
18
+ position: static;
19
+ font-weight: var(--components-inputFramed-header-label-fontWeight);
20
+
21
+ &::after {
22
+ content: '';
23
+ position: absolute;
24
+ inset: calc(var(--pr-t-spacings-50) * -1);
25
+ }
26
+ }
27
+
22
28
  .inputFramed-header-field {
23
29
  flex: 1;
24
30
 
@@ -42,17 +48,6 @@
42
48
  align-content: flex-start;
43
49
  gap: var(--pr-t-spacings-100);
44
50
  align-items: var(--components-inputFramed-header-alignItems);
45
-
46
- .inputFramed-header-label.formLabel {
47
- position: static;
48
- font-weight: var(--components-inputFramed-header-label-fontWeight);
49
-
50
- &::after {
51
- content: '';
52
- position: absolute;
53
- inset: calc(var(--pr-t-spacings-50) * -1);
54
- }
55
- }
56
51
  }
57
52
 
58
53
  .inputFramed-header-illustration {
@@ -75,11 +75,11 @@
75
75
  --components-mainLayout-content-inside-block-firstLastOfType-marginBlock: var(--pr-t-spacings-300);
76
76
  }
77
77
 
78
- &:not(& + &) {
78
+ &:first-of-type {
79
79
  margin-block-start: var(--components-mainLayout-content-inside-block-firstLastOfType-marginBlock);
80
80
  }
81
81
 
82
- &:not(:has(+ &)) {
82
+ &:last-of-type {
83
83
  margin-block-end: var(--components-mainLayout-content-inside-block-firstLastOfType-marginBlock);
84
84
  }
85
85
 
@@ -95,6 +95,7 @@
95
95
  z-index: 1;
96
96
  inset-block-start: var(--components-mainLayout-content-inside-header-insetBlockStart);
97
97
  inset-inline-start: 0;
98
+ background-color: var(--components-mainLayout-content-inside-header-backgroundColor);
98
99
 
99
100
  &:empty {
100
101
  display: none;
@@ -106,6 +107,7 @@
106
107
  inset-block-end: var(--components-mainLayout-content-inside-footer-insetBlockEnd);
107
108
  inset-inline-start: 0;
108
109
  margin-block-start: auto;
110
+ background-color: var(--components-mainLayout-content-inside-footer-backgroundColor);
109
111
 
110
112
  &:empty {
111
113
  display: none;
@@ -4,10 +4,12 @@
4
4
 
5
5
  @mixin stickyHeader {
6
6
  --components-mainLayout-content-inside-header-position: sticky;
7
+ --components-mainLayout-content-inside-header-backgroundColor: var(--commons-background-base);
7
8
  }
8
9
 
9
10
  @mixin stickyFooter {
10
11
  --components-mainLayout-content-inside-footer-position: sticky;
12
+ --components-mainLayout-content-inside-footer-backgroundColor: var(--commons-background-base);
11
13
  }
12
14
 
13
15
  @mixin stickyBlock {
@@ -7,4 +7,6 @@
7
7
  --components-mainLayout-content-inside-header-insetBlockStart: auto;
8
8
  --components-mainLayout-content-inside-footer-insetBlockEnd: auto;
9
9
  --components-mainLayout-content-inside-block-firstLastOfType-marginBlock: var(--pr-t-spacings-200);
10
+ --components-mainLayout-content-inside-header-backgroundColor: transparent;
11
+ --components-mainLayout-content-inside-footer-backgroundColor: transparent;
10
12
  }
@@ -61,7 +61,7 @@
61
61
  border-radius: 0;
62
62
  background-color: transparent;
63
63
  padding: var(--pr-t-spacings-50);
64
- margin: var(--pr-t-spacings-75) calc(var(--pr-t-spacings-100) * -1) calc(var(--pr-t-spacings-100) * -1);
64
+ margin: var(--pr-t-spacings-50) calc(var(--pr-t-spacings-100) * -1) calc(var(--pr-t-spacings-100) * -1);
65
65
 
66
66
  lu-simple-select-default-option.pr-u-ellipsis {
67
67
  white-space: normal !important;
@@ -116,10 +116,6 @@
116
116
  font-weight: var(--pr-t-font-fontWeight-semibold);
117
117
  }
118
118
 
119
- .navSide-item-link-title {
120
- overflow-wrap: anywhere;
121
- }
122
-
123
119
  .navSide-item-link-badgesOptional {
124
120
  display: flex;
125
121
  column-gap: var(--pr-t-spacings-150);
@@ -1,6 +1,8 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/color';
2
2
  @use '@lucca-front/scss/src/components/button/exports' as button;
3
3
  @use '@lucca-front/scss/src/components/numericBadge/exports' as numericBadge;
4
+ @use '@lucca-front/scss/src/components/bubbleIllustration/exports' as bubbleIllustration;
5
+ @use '@lucca-front/scss/src/components/bubbleIcon/exports' as bubbleIcon;
4
6
 
5
7
  @mixin gridWrapper {
6
8
  --components-resourceCardWrapper-display: grid;
@@ -23,6 +25,14 @@
23
25
  --components-resourceCard-layout-content-font: var(--pr-t-font-body-S);
24
26
  --components-resourceCard-layout-header-title-font: var(--pr-t-font-heading-4);
25
27
  --components-resourceCard-layout-before-illustration-minSize: calc(var(--pr-t-spacings-400) + var(--pr-t-spacings-50));
28
+
29
+ .bubbleIllustration {
30
+ @include bubbleIllustration.S;
31
+ }
32
+
33
+ .bubbleIcon {
34
+ @include bubbleIcon.S;
35
+ }
26
36
  }
27
37
 
28
38
  @mixin hasIllustrationGridS {
@@ -20,6 +20,16 @@
20
20
  --components-resourceCard-color: var(--palettes-neutral-500);
21
21
  --components-resourceCard-layout-header-title-action-color: var(--palettes-neutral-500);
22
22
  --components-resourceCard-before-boxShadow: 0 0 0 1px var(--palettes-neutral-50);
23
+
24
+
25
+ .bubbleIllustration {
26
+ --palettes-brand-600: var(--pr-t-color-input-icon-disabled);
27
+ }
28
+
29
+ .bubbleIcon {
30
+ --components-bubbleIcon-color: var(--pr-t-color-input-icon-disabled);
31
+ --components-bubbleIcon-bubble-path-fill: var(--pr-t-color-input-background-disabled);
32
+ }
23
33
  }
24
34
 
25
35
  @mixin active {
@@ -62,6 +62,6 @@
62
62
  border-radius: 0;
63
63
  background-color: transparent;
64
64
  padding: var(--pr-t-spacings-50);
65
- margin: var(--pr-t-spacings-75) calc(var(--pr-t-spacings-100) * -1) calc(var(--pr-t-spacings-100) * -1);
65
+ margin: var(--pr-t-spacings-50) calc(var(--pr-t-spacings-100) * -1) calc(var(--pr-t-spacings-100) * -1);
66
66
  }
67
67
  }