@lucca-front/scss 19.0.0 → 19.1.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 (93) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/base.scss +6 -86
  4. package/src/commons/config.scss +72 -83
  5. package/src/commons/core.scss +23 -19
  6. package/src/commons/utils/color.scss +17 -1
  7. package/src/commons/utils/index.scss +11 -27
  8. package/src/commons/utils/loading.scss +2 -1
  9. package/src/commons/utils/reset.scss +11 -3
  10. package/src/commons/vars.scss +6 -7
  11. package/src/components/button/index.scss +1 -3
  12. package/src/components/calendar/component.scss +56 -16
  13. package/src/components/calendar/index.scss +27 -21
  14. package/src/components/calendar/states.scss +54 -111
  15. package/src/components/calendar/vars.scss +0 -1
  16. package/src/components/callout/component.scss +2 -0
  17. package/src/components/calloutFeedbackList/component.scss +3 -1
  18. package/src/components/card/mods.scss +1 -3
  19. package/src/components/dataTable/component.scss +131 -0
  20. package/src/components/dataTable/index.scss +85 -0
  21. package/src/components/dataTable/mods.scss +152 -0
  22. package/src/components/dataTable/states.scss +7 -0
  23. package/src/components/dataTable/vars.scss +16 -0
  24. package/src/components/dataTableSticked/index.scss +43 -0
  25. package/src/components/dataTableSticked/mods.scss +164 -0
  26. package/src/components/dataTableSticked/states.scss +15 -0
  27. package/src/components/dataTableSticked/vars.scss +6 -0
  28. package/src/components/dateField/component.scss +6 -0
  29. package/src/components/dateField/index.scss +32 -0
  30. package/src/components/dateField/mods.scss +23 -0
  31. package/src/components/dateField/vars.scss +10 -0
  32. package/src/components/dateRangeField/component.scss +74 -0
  33. package/src/components/dateRangeField/exports.scss +4 -0
  34. package/src/components/dateRangeField/index.scss +36 -0
  35. package/src/components/dateRangeField/mods.scss +31 -0
  36. package/src/components/dateRangeField/vars.scss +16 -0
  37. package/src/components/divider/component.scss +30 -10
  38. package/src/components/divider/index.scss +2 -12
  39. package/src/components/divider/mods.scss +31 -0
  40. package/src/components/divider/vars.scss +5 -0
  41. package/src/components/fancyBox/component.scss +71 -0
  42. package/src/components/fancyBox/exports.scss +4 -0
  43. package/src/components/fancyBox/index.scss +11 -0
  44. package/src/components/fancyBox/mods.scss +6 -0
  45. package/src/components/fancyBox/states.scss +0 -0
  46. package/src/components/fancyBox/vars.scss +9 -0
  47. package/src/components/fieldset/component.scss +7 -0
  48. package/src/components/fieldset/index.scss +4 -0
  49. package/src/components/fieldset/states.scss +3 -0
  50. package/src/components/fieldset/vars.scss +1 -0
  51. package/src/components/form/index.scss +9 -5
  52. package/src/components/index.scss +5 -4
  53. package/src/components/list/mods.scss +1 -1
  54. package/src/components/multiSelect/component.scss +2 -2
  55. package/src/components/multiSelect/states.scss +4 -5
  56. package/src/components/multiSelect/vars.scss +4 -4
  57. package/src/components/navside/mods.scss +4 -0
  58. package/src/components/numericBadge/component.scss +9 -0
  59. package/src/components/numericBadge/index.scss +12 -0
  60. package/src/components/numericBadge/states.scss +19 -0
  61. package/src/components/numericBadge/vars.scss +1 -0
  62. package/src/components/simpleSelect/component.scss +1 -1
  63. package/src/components/simpleSelect/states.scss +7 -8
  64. package/src/components/simpleSelect/vars.scss +5 -5
  65. package/src/components/statusBadge/component.scss +1 -1
  66. package/src/components/statusBadge/index.scss +1 -1
  67. package/src/components/statusBadge/mods.scss +5 -5
  68. package/src/components/statusBadge/vars.scss +4 -4
  69. package/src/components/tableSortable/index.scss +1 -0
  70. package/src/components/textField/component.scss +5 -5
  71. package/src/components/textField/states.scss +6 -7
  72. package/src/components/textField/vars.scss +4 -5
  73. package/src/components/timepicker/component.scss +1 -1
  74. package/src/components/timepicker/states.scss +5 -5
  75. package/src/components/timepicker/vars.scss +3 -3
  76. package/src/components/actionIcon/component.scss +0 -36
  77. package/src/components/actionIcon/index.scss +0 -40
  78. package/src/components/actionIcon/mods.scss +0 -69
  79. package/src/components/actionIcon/states.scss +0 -23
  80. package/src/components/actionIcon/vars.scss +0 -2
  81. package/src/components/emptyStateDeprecated/component.scss +0 -18
  82. package/src/components/emptyStateDeprecated/index.scss +0 -6
  83. package/src/components/emptyStateDeprecated/vars.scss +0 -2
  84. package/src/components/gridLegacy/component.scss +0 -34
  85. package/src/components/gridLegacy/index.scss +0 -94
  86. package/src/components/gridLegacy/mods.scss +0 -46
  87. package/src/components/gridLegacy/vars.scss +0 -2
  88. /package/src/components/{actionIcon → dataTable}/exports.scss +0 -0
  89. /package/src/components/{emptyStateDeprecated/mods.scss → dataTableSticked/component.scss} +0 -0
  90. /package/src/components/{emptyStateDeprecated → dataTableSticked}/exports.scss +0 -0
  91. /package/src/components/{gridLegacy → dateField}/exports.scss +0 -0
  92. /package/src/components/{emptyStateDeprecated → dateField}/states.scss +0 -0
  93. /package/src/components/{gridLegacy → dateRangeField}/states.scss +0 -0
@@ -1,11 +1,10 @@
1
1
  @mixin vars {
2
2
  --component-textField-lineHeight: var(--sizes-M-lineHeight);
3
3
  --component-textField-fontSize: var(--sizes-M-fontSize);
4
- --component-textField-placeholder: var(--palettes-neutral-400);
5
- --component-textField-background: var(--palettes-neutral-0);
6
- --component-textField-border: var(--palettes-neutral-300);
7
- --component-textField-color: var(--palettes-neutral-800);
8
- --component-textField-prefix-color: var(--palettes-neutral-600);
4
+ --component-textField-placeholder: var(--pr-t-color-input-text-placeholder);
5
+ --component-textField-background: var(--pr-t-color-input-background);
6
+ --component-textField-border: var(--pr-t-color-input-border);
7
+ --component-textField-color: var(--pr-t-color-input-text);
9
8
  --component-textField-padding: var(--pr-t-spacings-100);
10
9
  --component-textField-affix-padding: var(--component-textField-padding);
11
10
  --component-textField-affix-size: 1.75rem;
@@ -23,7 +23,7 @@
23
23
  cursor: text;
24
24
 
25
25
  &:hover {
26
- --components-timepicker-border: var(--palettes-neutral-400);
26
+ --components-timepicker-border: var(--pr-t-color-input-border-hover);
27
27
  }
28
28
 
29
29
  &:focus-within {
@@ -1,16 +1,16 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/a11y';
2
2
 
3
3
  @mixin invalid {
4
- --components-timepicker-background: var(--palettes-error-50);
5
- --components-timepicker-border: var(--palettes-error-400);
4
+ --components-timepicker-background: var(--pr-t-color-input-background-critical);
5
+ --components-timepicker-border: var(--pr-t-color-input-border-critical);
6
6
 
7
7
  &:hover {
8
- --components-timepicker-border: var(--palettes-error-600);
8
+ --components-timepicker-border: var(--pr-t-color-input-border-critical-hover);
9
9
  }
10
10
  }
11
11
 
12
12
  @mixin disabled {
13
- --components-timepicker-background: var(--commons-disabled-background);
13
+ --components-timepicker-background: var(--pr-t-color-input-background-disabled);
14
14
  --components-timepicker-border: var(--commons-disabled-placeholder);
15
- --components-timepicker-color: var(--palettes-neutral-700); // disabled token candidate
15
+ --components-timepicker-color: var(--pr-t-color-input-text-disabled);
16
16
  }
@@ -1,7 +1,7 @@
1
1
  @mixin vars {
2
- --components-timepicker-border: var(--palettes-neutral-300);
3
- --components-timepicker-background: var(--palettes-neutral-0);
4
- --components-timepicker-color: var(--palettes-neutral-800);
2
+ --components-timepicker-border: var(--pr-t-color-input-border);
3
+ --components-timepicker-background: var(--pr-t-color-input-background);
4
+ --components-timepicker-color: var(--pr-t-color-input-text);
5
5
  --components-timepicker-fontSize: var(--sizes-M-fontSize);
6
6
  --components-timepicker-lineHeight: var(--sizes-M-lineHeight);
7
7
  --components-timepicker-input-height: 2rem;
@@ -1,36 +0,0 @@
1
- @use '@lucca-front/scss/src/commons/utils/a11y';
2
-
3
- @mixin component {
4
- background-color: transparent;
5
- border: 0;
6
- border-radius: var(--commons-borderRadius-M);
7
- color: var(--palettes-700, var(--palettes-neutral-700));
8
- height: 2.5rem;
9
- width: 2.5rem;
10
- transition: background-color var(--commons-animations-durations-fast) ease, color var(--commons-animations-durations-fast) ease;
11
- vertical-align: middle;
12
- text-decoration: none;
13
- display: inline-flex;
14
- justify-content: center;
15
- align-items: center;
16
- cursor: pointer;
17
-
18
- & + & {
19
- margin-left: 2px;
20
- }
21
-
22
- &:not([disabled], .is-disabled) {
23
- &:hover {
24
- background-color: var(--palettes-100, var(--palettes-neutral-100));
25
- }
26
-
27
- &:focus-visible {
28
- @include a11y.focusVisible;
29
- background-color: var(--palettes-100, var(--palettes-neutral-100));
30
- }
31
-
32
- &:active {
33
- background-color: var(--palettes-200, var(--palettes-neutral-200));
34
- }
35
- }
36
- }
@@ -1,40 +0,0 @@
1
- // deprecated
2
-
3
- @use 'exports' as *;
4
-
5
- .actionIcon {
6
- @include vars;
7
- @include component;
8
-
9
- &.mod-invert {
10
- @include invert;
11
- }
12
-
13
- &.mod-outlined {
14
- @include outlined;
15
- }
16
-
17
- &.mod-delete {
18
- @include delete;
19
-
20
- &.mod-outlined {
21
- @include outlinedDelete;
22
- }
23
- }
24
-
25
- &.mod-S {
26
- @include S;
27
- }
28
-
29
- &.mod-XS {
30
- @include XS;
31
- }
32
-
33
- &:is(.is-disabled, .disabled, [disabled]) {
34
- @include disabled;
35
- }
36
-
37
- &:is(.is-loading, .loading) {
38
- @include loading;
39
- }
40
- }
@@ -1,69 +0,0 @@
1
- @use '@lucca-front/scss/src/commons/utils/a11y';
2
- @use '@lucca-front/scss/src/commons/utils/color';
3
- @use '@lucca-front/icons/src/icon/exports' as icons;
4
-
5
- @mixin invert {
6
- color: var(--palettes-neutral-0);
7
-
8
- &:not([disabled], .is-disabled) {
9
- &:hover,
10
- &:focus {
11
- color: var(--palettes-neutral-0);
12
- background-color: color.transparentize(var(--palettes-neutral-0), 0.1);
13
- }
14
-
15
- &:active {
16
- background-color: color.transparentize(var(--palettes-neutral-0), 0.2);
17
- }
18
- }
19
- }
20
-
21
- @mixin outlined {
22
- box-shadow: 0 0 0 var(--commons-divider-width) var(--palettes-400, var(--palettes-neutral-400));
23
- background-color: var(--palettes-neutral-0);
24
-
25
- &:focus-visible {
26
- @include a11y.focusVisible($offset: 3px);
27
- }
28
- }
29
-
30
- @mixin delete {
31
- &:hover {
32
- background-color: var(--palettes-error-100);
33
- color: var(--palettes-error-700);
34
- }
35
-
36
- &:active {
37
- background-color: var(--palettes-error-200);
38
- color: var(--palettes-error-700);
39
- }
40
- }
41
-
42
- @mixin outlinedDelete {
43
- &:hover {
44
- box-shadow: 0 0 0 var(--commons-divider-width) var(--palettes-error-400);
45
- }
46
-
47
- &:focus-visible {
48
- background-color: var(--palettes-error-100);
49
- box-shadow: 0 0 0 var(--commons-divider-width) var(--palettes-error-400);
50
- color: var(--palettes-error-700);
51
- }
52
-
53
- &:active {
54
- background-color: var(--palettes-error-200);
55
- color: var(--palettes-error-700);
56
- }
57
- }
58
-
59
- @mixin S {
60
- @include icons.S;
61
- height: 2rem;
62
- width: 2rem;
63
- }
64
-
65
- @mixin XS {
66
- @include icons.XS;
67
- height: 1.5rem;
68
- width: 1.5rem;
69
- }
@@ -1,23 +0,0 @@
1
- @use '@lucca-front/scss/src/components/loading/exports' as loading;
2
-
3
- @mixin disabled {
4
- color: var(--palettes-neutral-500); // disabled token candidate
5
- pointer-events: none;
6
- cursor: default;
7
- }
8
-
9
- @mixin loading {
10
- pointer-events: none;
11
- color: transparent;
12
- position: relative;
13
- cursor: default;
14
- padding: 0;
15
-
16
- @include loading.vars;
17
- @include loading.component;
18
-
19
- &::before,
20
- &::after {
21
- margin: auto;
22
- }
23
- }
@@ -1,2 +0,0 @@
1
- @mixin vars {
2
- }
@@ -1,18 +0,0 @@
1
- @use '@lucca-front/scss/src/commons/utils/namespace';
2
-
3
- @mixin component($atRoot: namespace.$defaultAtRoot) {
4
- margin: 6rem auto var(--pr-t-spacings-800);
5
- text-align: center;
6
- max-width: 30rem;
7
-
8
- @at-root ($atRoot) {
9
- .emptyState-title {
10
- color: var(--palettes-neutral-600);
11
- }
12
-
13
- .emptyState-description {
14
- color: var(--palettes-neutral-600);
15
- margin-bottom: var(--pr-t-spacings-400);
16
- }
17
- }
18
- }
@@ -1,6 +0,0 @@
1
- @use 'exports' as *;
2
-
3
- .emptyState {
4
- @include vars;
5
- @include component;
6
- }
@@ -1,2 +0,0 @@
1
- @mixin vars {
2
- }
@@ -1,34 +0,0 @@
1
- @use 'sass:math';
2
-
3
- @mixin component {
4
- display: flex;
5
- flex: 0 1 auto;
6
- flex-direction: row;
7
- flex-wrap: wrap;
8
- margin-left: calc(var(--pr-t-spacings-100) * -1);
9
- margin-right: calc(var(--pr-t-spacings-100) * -1);
10
- }
11
-
12
- @mixin column {
13
- flex: 0 0 auto;
14
- flex-basis: 100%;
15
- max-width: 100%;
16
- padding-left: var(--pr-t-spacings-100);
17
- padding-right: var(--pr-t-spacings-100);
18
- position: relative;
19
- }
20
-
21
- @mixin grow {
22
- flex-basis: 0;
23
- flex-grow: 1;
24
- max-width: 100%;
25
- }
26
-
27
- @mixin basis($i) {
28
- flex-basis: math.percentage(math.div($i, 12));
29
- max-width: math.percentage(math.div($i, 12));
30
- }
31
-
32
- @mixin offset($i) {
33
- margin-left: math.percentage(math.div($i, 12));
34
- }
@@ -1,94 +0,0 @@
1
- @use '@lucca-front/scss/src/commons/config';
2
- @use '@lucca-front/scss/src/commons/utils/media';
3
- @use 'exports' as *;
4
-
5
- .grid {
6
- @include vars;
7
- @include component;
8
-
9
- &.mod-reverse {
10
- @include reverse;
11
- }
12
-
13
- @each $breakpoint, $value in config.$breakpoints {
14
- @include media.min($breakpoint) {
15
- &.mod-start\@mediaMin#{$breakpoint} {
16
- @include start;
17
- }
18
-
19
- &.mod-center\@mediaMin#{$breakpoint} {
20
- @include center;
21
- }
22
-
23
- &.mod-end\@mediaMin#{$breakpoint} {
24
- @include end;
25
- }
26
-
27
- &.mod-top\@mediaMin#{$breakpoint} {
28
- @include top;
29
- }
30
-
31
- &.mod-middle\@mediaMin#{$breakpoint} {
32
- @include middle;
33
- }
34
-
35
- &.mod-bottom\@mediaMin#{$breakpoint} {
36
- @include bottom;
37
- }
38
-
39
- &.mod-around\@mediaMin#{$breakpoint} {
40
- @include around;
41
- }
42
-
43
- &.mod-between\@mediaMin#{$breakpoint} {
44
- @include between;
45
- }
46
- }
47
- }
48
- }
49
-
50
- @each $breakpoint, $value in config.$breakpoints {
51
- .grid\@mediaMin#{$breakpoint} {
52
- @include column;
53
- }
54
-
55
- @include media.min($breakpoint) {
56
- .grid\@mediaMin#{$breakpoint} {
57
- @include grow;
58
- }
59
- }
60
-
61
- @for $i from 1 through 12 {
62
- .grid-#{$i}\@mediaMin#{$breakpoint} {
63
- @include column;
64
- }
65
- }
66
- }
67
-
68
- @each $breakpoint, $value in config.$breakpoints {
69
- @for $i from 1 through 12 {
70
- @include media.min($breakpoint) {
71
- .grid-#{$i}\@mediaMin#{$breakpoint} {
72
- @include basis($i);
73
- }
74
-
75
- .grid-offset#{$i}\@mediaMin#{$breakpoint} {
76
- @include offset($i);
77
- }
78
- }
79
- }
80
- }
81
-
82
- .grid {
83
- @each $breakpoint, $value in config.$breakpoints {
84
- @include media.min($breakpoint) {
85
- .u-first\@mediaMin#{$breakpoint} {
86
- @include first;
87
- }
88
-
89
- .u-last\@mediaMin#{$breakpoint} {
90
- @include last;
91
- }
92
- }
93
- }
94
- }
@@ -1,46 +0,0 @@
1
- @mixin reverse {
2
- flex-direction: row-reverse;
3
- }
4
-
5
- @mixin first {
6
- order: -1;
7
- }
8
-
9
- @mixin last {
10
- order: 1;
11
- }
12
-
13
- @mixin start {
14
- justify-content: flex-start;
15
- text-align: start;
16
- }
17
-
18
- @mixin center {
19
- justify-content: center;
20
- text-align: center;
21
- }
22
-
23
- @mixin end {
24
- justify-content: flex-end;
25
- text-align: end;
26
- }
27
-
28
- @mixin top {
29
- align-items: flex-start;
30
- }
31
-
32
- @mixin middle {
33
- align-items: center;
34
- }
35
-
36
- @mixin bottom {
37
- align-items: flex-end;
38
- }
39
-
40
- @mixin around {
41
- justify-content: space-around;
42
- }
43
-
44
- @mixin between {
45
- justify-content: space-between;
46
- }
@@ -1,2 +0,0 @@
1
- @mixin vars {
2
- }