@lucca-front/scss 20.3.0-rc.3 → 20.3.0-rc.4

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 (128) 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 +3 -3
  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 +14 -20
  13. package/src/components/breadcrumbs/index.scss +10 -16
  14. package/src/components/button/index.scss +134 -140
  15. package/src/components/button/mods.scss +0 -17
  16. package/src/components/buttonGroup/index.scss +8 -20
  17. package/src/components/calendar/index.scss +44 -56
  18. package/src/components/callout/index.scss +4 -8
  19. package/src/components/calloutDisclosure/index.scss +9 -15
  20. package/src/components/calloutFeedbackList/index.scss +4 -8
  21. package/src/components/calloutPopover/index.scss +12 -18
  22. package/src/components/card/index.scss +24 -28
  23. package/src/components/checkbox/index.scss +30 -36
  24. package/src/components/checkboxField/index.scss +80 -90
  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 +52 -68
  33. package/src/components/dataTableSticked/index.scss +24 -32
  34. package/src/components/dateField/index.scss +20 -24
  35. package/src/components/dateRangeField/index.scss +25 -29
  36. package/src/components/dialog/index.scss +36 -40
  37. package/src/components/divider/index.scss +7 -11
  38. package/src/components/dropdown/index.scss +9 -13
  39. package/src/components/emptyState/index.scss +7 -11
  40. package/src/components/errorPage/index.scss +4 -8
  41. package/src/components/fancyBox/index.scss +4 -8
  42. package/src/components/field/index.scss +76 -96
  43. package/src/components/fieldset/index.scss +12 -18
  44. package/src/components/file/index.scss +30 -38
  45. package/src/components/fileEntry/index.scss +18 -24
  46. package/src/components/fileToolbar/index.scss +6 -10
  47. package/src/components/fileUpload/index.scss +31 -37
  48. package/src/components/filterBar/index.scss +13 -17
  49. package/src/components/filterBarDeprecated/index.scss +4 -8
  50. package/src/components/filterPill/index.scss +48 -56
  51. package/src/components/filters/index.scss +8 -14
  52. package/src/components/footer/index.scss +34 -38
  53. package/src/components/form/index.scss +84 -114
  54. package/src/components/form/mods.scss +5 -7
  55. package/src/components/formLabel/index.scss +13 -19
  56. package/src/components/gauge/index.scss +20 -26
  57. package/src/components/grid/index.scss +21 -25
  58. package/src/components/header/index.scss +12 -18
  59. package/src/components/highlightData/index.scss +24 -28
  60. package/src/components/horizontalNavigation/index.scss +36 -42
  61. package/src/components/index.scss +55 -57
  62. package/src/components/indexTable/index.scss +56 -54
  63. package/src/components/inlineMessage/index.scss +12 -18
  64. package/src/components/inputFramed/index.scss +24 -30
  65. package/src/components/label/index.scss +9 -13
  66. package/src/components/layout/index.scss +45 -51
  67. package/src/components/link/index.scss +8 -14
  68. package/src/components/link/mods.scss +1 -1
  69. package/src/components/list/index.scss +11 -15
  70. package/src/components/listboxOption/index.scss +115 -131
  71. package/src/components/listing/index.scss +18 -22
  72. package/src/components/loading/index.scss +23 -27
  73. package/src/components/main/index.scss +15 -21
  74. package/src/components/mainLayout/index.scss +20 -26
  75. package/src/components/mobileHeader/index.scss +4 -8
  76. package/src/components/mobileNavigation/index.scss +2 -4
  77. package/src/components/mobilePush/index.scss +4 -8
  78. package/src/components/multiSelect/index.scss +34 -58
  79. package/src/components/multiSelect/mods.scss +8 -0
  80. package/src/components/multiSelect/states.scss +0 -8
  81. package/src/components/navside/index.scss +56 -78
  82. package/src/components/newBadge/index.scss +4 -8
  83. package/src/components/notchBox/index.scss +13 -17
  84. package/src/components/notchBox/mods.scss +125 -137
  85. package/src/components/numericBadge/index.scss +16 -22
  86. package/src/components/pageHeader/index.scss +22 -26
  87. package/src/components/pagination/index.scss +6 -12
  88. package/src/components/plgPush/index.scss +2 -4
  89. package/src/components/popover/index.scss +2 -4
  90. package/src/components/progress/index.scss +9 -15
  91. package/src/components/radio/index.scss +12 -18
  92. package/src/components/radioButtons/index.scss +9 -15
  93. package/src/components/radioField/index.scss +40 -46
  94. package/src/components/readMore/index.scss +15 -21
  95. package/src/components/richText/index.scss +14 -20
  96. package/src/components/scrollBox/index.scss +10 -14
  97. package/src/components/section/index.scss +12 -16
  98. package/src/components/segmentedControl/index.scss +15 -25
  99. package/src/components/simpleSelect/index.scss +33 -41
  100. package/src/components/skeleton/index.scss +37 -43
  101. package/src/components/skipLinks/index.scss +2 -4
  102. package/src/components/sortableList/index.scss +6 -12
  103. package/src/components/statusBadge/index.scss +4 -8
  104. package/src/components/switch/index.scss +29 -35
  105. package/src/components/switchField/index.scss +16 -22
  106. package/src/components/table/index.scss +64 -78
  107. package/src/components/tableFixed/index.scss +11 -13
  108. package/src/components/tableFixedDeprecated/index.scss +10 -14
  109. package/src/components/tableOfContent/index.scss +24 -28
  110. package/src/components/tableSortable/index.scss +16 -22
  111. package/src/components/tableSticked/index.scss +24 -28
  112. package/src/components/tableSticked/mods.scss +6 -6
  113. package/src/components/tableStickedDeprecated/index.scss +40 -46
  114. package/src/components/tag/index.scss +23 -29
  115. package/src/components/textField/index.scss +22 -30
  116. package/src/components/textField/mods.scss +1 -1
  117. package/src/components/textFlow/index.scss +2 -4
  118. package/src/components/textfields/index.scss +258 -279
  119. package/src/components/timeline/index.scss +66 -72
  120. package/src/components/timepicker/index.scss +15 -21
  121. package/src/components/title/index.scss +30 -43
  122. package/src/components/title/mods.scss +1 -1
  123. package/src/components/titleSection/index.scss +23 -31
  124. package/src/components/toast/index.scss +4 -8
  125. package/src/components/tooltip/index.scss +21 -25
  126. package/src/components/userPopover/index.scss +2 -4
  127. package/src/components/userTile/index.scss +22 -26
  128. package/src/components/verticalNavigation/index.scss +16 -26
@@ -1,54 +1,48 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .switch {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
4
+ @include vars;
5
+ @include component;
8
6
 
9
- @layer mods {
10
- &.mod-inline {
11
- @include inline;
12
- }
7
+ &.mod-inline {
8
+ @include inline;
9
+ }
13
10
 
14
- &.mod-S {
15
- @include S;
16
- }
11
+ &.mod-S {
12
+ @include S;
17
13
  }
18
14
  }
19
15
 
20
- @layer mods {
21
- .switch-input {
22
- &:is(:checked) {
23
- @include checked;
24
-
25
- &:hover {
26
- @include checkedHover;
27
- }
16
+ .switch-input {
17
+ &:is(:checked) {
18
+ @include checked;
28
19
 
29
- &:active {
30
- @include checkedActive;
31
- }
20
+ &:hover {
21
+ @include checkedHover;
32
22
  }
33
23
 
34
- &:is(:hover) {
35
- @include hover;
24
+ &:active {
25
+ @include checkedActive;
36
26
  }
27
+ }
37
28
 
38
- &:is(:focus-visible) {
39
- @include focus;
40
- }
29
+ &:is(:hover) {
30
+ @include hover;
31
+ }
41
32
 
42
- &:is(:active) {
43
- @include active;
44
- }
33
+ &:is(:focus-visible) {
34
+ @include focus;
35
+ }
45
36
 
46
- &:is([disabled], [readonly]) {
47
- @include disabled;
37
+ &:is(:active) {
38
+ @include active;
39
+ }
40
+
41
+ &:is([disabled], [readonly]) {
42
+ @include disabled;
48
43
 
49
- &:is(:checked) {
50
- @include disabledChecked;
51
- }
44
+ &:is(:checked) {
45
+ @include disabledChecked;
52
46
  }
53
47
  }
54
48
  }
@@ -1,38 +1,32 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .switchField {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
4
+ @include vars;
5
+ @include component;
8
6
 
9
- @layer mods {
10
- &.mod-S {
11
- @include S;
12
- }
7
+ &.mod-S {
8
+ @include S;
13
9
  }
14
10
  }
15
11
 
16
12
  .switchField-input {
17
- @layer mods {
18
- &:checked {
19
- @include checked;
20
- }
13
+ &:checked {
14
+ @include checked;
15
+ }
21
16
 
22
- &:disabled {
23
- @include disabled;
17
+ &:disabled {
18
+ @include disabled;
24
19
 
25
- &:checked {
26
- @include checkedDisabled;
27
- }
20
+ &:checked {
21
+ @include checkedDisabled;
28
22
  }
23
+ }
29
24
 
30
- &[aria-invalid='true'] {
31
- @include invalid;
25
+ &[aria-invalid='true'] {
26
+ @include invalid;
32
27
 
33
- &:checked {
34
- @include checkedInvalid;
35
- }
28
+ &:checked {
29
+ @include checkedInvalid;
36
30
  }
37
31
  }
38
32
  }
@@ -1,74 +1,68 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .table {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
-
8
- button.tableSortable {
9
- --components-sortable-fontWeight: 600;
10
- --components-sortable-fontSize: var(--pr-t-font-body-S-fontSize);
11
- --components-sortable-lineHeight: var(--pr-t-font-body-S-lineHeight);
12
- --components-sortable-arrowsOffset: var(--pr-t-spacings-25);
13
- }
14
- }
4
+ @include vars;
5
+ @include component;
15
6
 
16
- @layer mods {
17
- &.mod-zebra {
18
- @include zebra;
19
- }
7
+ &.mod-zebra {
8
+ @include zebra;
9
+ }
20
10
 
21
- &.mod-alignTop {
22
- @include alignTop;
23
- }
11
+ &.mod-alignTop {
12
+ @include alignTop;
13
+ }
24
14
 
25
- &.mod-clickable {
26
- @include clickable;
15
+ &.mod-clickable {
16
+ @include clickable;
27
17
 
28
- .table-head-row,
29
- .table-body-row,
30
- .table-foot-row {
31
- &.mod-selectable {
32
- @include clickableSelectable;
33
- }
18
+ .table-head-row,
19
+ .table-body-row,
20
+ .table-foot-row {
21
+ &.mod-selectable {
22
+ @include clickableSelectable;
34
23
  }
35
24
  }
25
+ }
36
26
 
37
- &.mod-card {
38
- @include card;
39
- }
27
+ &.mod-card {
28
+ @include card;
29
+ }
40
30
 
41
- &.mod-S {
42
- @include S;
43
- }
31
+ &.mod-S {
32
+ @include S;
33
+ }
44
34
 
45
- &.mod-noOffset {
46
- @include noOffset;
47
- }
35
+ &.mod-noOffset {
36
+ @include noOffset;
37
+ }
48
38
 
49
- &.mod-borderless {
50
- @include borderless;
51
- }
39
+ &.mod-borderless {
40
+ @include borderless;
41
+ }
42
+
43
+ button.tableSortable {
44
+ --components-sortable-fontWeight: 600;
45
+ --components-sortable-fontSize: var(--pr-t-font-body-S-fontSize);
46
+ --components-sortable-lineHeight: var(--pr-t-font-body-S-lineHeight);
47
+ --components-sortable-arrowsOffset: var(--pr-t-spacings-25);
52
48
  }
53
49
  }
54
50
 
55
51
  .table-body-row,
56
52
  .table-foot-row {
57
- @layer mods {
58
- &.mod-header {
59
- @include header;
60
- }
53
+ &.mod-header {
54
+ @include header;
55
+ }
61
56
 
62
- &.mod-child {
63
- @include child;
64
- }
57
+ &.mod-child {
58
+ @include child;
59
+ }
65
60
 
66
- &.mod-parent {
67
- @include parent;
61
+ &.mod-parent {
62
+ @include parent;
68
63
 
69
- &.mod-collapsable {
70
- @include collapsable;
71
- }
64
+ &.mod-collapsable {
65
+ @include collapsable;
72
66
  }
73
67
  }
74
68
  }
@@ -76,53 +70,45 @@
76
70
  .table-head-row,
77
71
  .table-body-row,
78
72
  .table-foot-row {
79
- @layer mods {
80
- &.mod-selectable {
81
- @include selectable;
82
- }
73
+ &.mod-selectable {
74
+ @include selectable;
75
+ }
83
76
 
84
- &.mod-draggable {
85
- @include draggable;
86
- }
77
+ &.mod-draggable {
78
+ @include draggable;
87
79
  }
88
80
  }
89
81
 
90
82
  .table-head-row {
91
- @layer mods {
92
- &.mod-twoLines {
93
- @include twoLines;
94
- }
83
+ &.mod-twoLines {
84
+ @include twoLines;
95
85
  }
96
86
  }
97
87
 
98
88
  .table-body-row-cell,
99
89
  .table-foot-row-cell {
100
- @layer mods {
101
- &.mod-avatar {
102
- @include avatar;
103
- }
90
+ &.mod-avatar {
91
+ @include avatar;
104
92
  }
105
93
  }
106
94
 
107
95
  .table-head-row-cell,
108
96
  .table-body-row-cell,
109
97
  .table-foot-row-cell {
110
- @layer mods {
111
- &.mod-actions {
112
- @include actions;
98
+ &.mod-actions {
99
+ @include actions;
113
100
 
114
- // .mod-actionsHidden is deprecated
115
- &.mod-actionsHidden {
116
- @include actionsHidden;
117
- }
101
+ // .mod-actionsHidden is deprecated
102
+ &.mod-actionsHidden {
103
+ @include actionsHidden;
118
104
  }
105
+ }
119
106
 
120
- &.mod-alignCenter {
121
- @include alignCenter;
122
- }
107
+ &.mod-alignCenter {
108
+ @include alignCenter;
109
+ }
123
110
 
124
- &.mod-alignRight {
125
- @include alignRight;
126
- }
111
+ &.mod-alignRight {
112
+ @include alignRight;
127
113
  }
128
114
  }
@@ -1,20 +1,18 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .table {
4
- @layer mods {
5
- // 1 - Layout fixed
6
- &.mod-layoutFixed {
7
- @include layoutFixed;
8
- }
4
+ // 1 - Layout fixed
5
+ &.mod-layoutFixed {
6
+ @include layoutFixed;
7
+ }
9
8
 
10
- // 2 - Layout fixed starting at breakpoint
11
- &[class*='mod-layoutFixedAtMediaMin'] {
12
- @include layoutFixedWithBreakpoint;
13
- }
9
+ // 2 - Layout fixed starting at breakpoint
10
+ &[class*='mod-layoutFixedAtMediaMin'] {
11
+ @include layoutFixedWithBreakpoint;
12
+ }
14
13
 
15
- // Cells management for 1 & 2
16
- &[class*='mod-layoutFixed'] {
17
- @include layoutFixedCells;
18
- }
14
+ // Cells management for 1 & 2
15
+ &[class*='mod-layoutFixed'] {
16
+ @include layoutFixedCells;
19
17
  }
20
18
  }
@@ -3,27 +3,23 @@
3
3
  @use 'exports' as *;
4
4
 
5
5
  .table {
6
- @layer mods {
7
- &.mod-layoutFixed {
8
- @include layoutFixed;
9
- }
6
+ &.mod-layoutFixed {
7
+ @include layoutFixed;
10
8
  }
11
9
  }
12
10
 
13
11
  .table-head-row-cell,
14
12
  .table-body-row-cell,
15
13
  .table-foot-row-cell {
16
- @layer mods {
17
- @for $i from 2 through 20 {
18
- &.mod-layoutFixed-#{$i} {
19
- @include layoutFixedCell($i);
20
- }
14
+ @for $i from 2 through 20 {
15
+ &.mod-layoutFixed-#{$i} {
16
+ @include layoutFixedCell($i);
17
+ }
21
18
 
22
- @each $breakpoint, $value in config.$breakpoints {
23
- @include media.min($breakpoint) {
24
- &.mod-layoutFixed-#{$i}\@mediaMin#{$breakpoint} {
25
- @include layoutFixedCell($i);
26
- }
19
+ @each $breakpoint, $value in config.$breakpoints {
20
+ @include media.min($breakpoint) {
21
+ &.mod-layoutFixed-#{$i}\@mediaMin#{$breakpoint} {
22
+ @include layoutFixedCell($i);
27
23
  }
28
24
  }
29
25
  }
@@ -1,46 +1,42 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .tableOfContent {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
4
+ @include vars;
5
+ @include component;
8
6
  }
9
7
 
10
8
  .tableOfContent-list-item-action {
11
- @layer mods {
12
- &:not(.disabled, .is-disabled, [disabled]) {
9
+ &:not(.disabled, .is-disabled, [disabled]) {
10
+ &:is(:hover) {
11
+ @include hover;
12
+ }
13
+
14
+ &:is(:focus) {
15
+ @include focus;
16
+ }
17
+
18
+ &:is(:active) {
19
+ @include active;
20
+ }
21
+
22
+ &.is-active {
23
+ @include isActive;
24
+
13
25
  &:is(:hover) {
14
- @include hover;
26
+ @include isActiveHover;
15
27
  }
16
28
 
17
29
  &:is(:focus) {
18
- @include focus;
30
+ @include isActiveFocus;
19
31
  }
20
32
 
21
33
  &:is(:active) {
22
- @include active;
23
- }
24
-
25
- &.is-active {
26
- @include isActive;
27
-
28
- &:is(:hover) {
29
- @include isActiveHover;
30
- }
31
-
32
- &:is(:focus) {
33
- @include isActiveFocus;
34
- }
35
-
36
- &:is(:active) {
37
- @include isActiveActive;
38
- }
34
+ @include isActiveActive;
39
35
  }
40
36
  }
37
+ }
41
38
 
42
- &:is(.disabled, .is-disabled, [disabled]) {
43
- @include disabled;
44
- }
39
+ &:is(.disabled, .is-disabled, [disabled]) {
40
+ @include disabled;
45
41
  }
46
42
  }
@@ -1,40 +1,34 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .tableSortable.button {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
4
+ @include vars;
5
+ @include component;
8
6
  }
9
7
 
10
8
  .table-head-row-cell,
11
9
  .dataTable-head-row-cell,
12
10
  .indexTable-head-row-cell {
13
- @layer mods {
14
- &.mod-alignRight {
15
- .tableSortable {
16
- @include sortAlignRight;
17
- }
11
+ &.mod-alignRight {
12
+ .tableSortable {
13
+ @include sortAlignRight;
18
14
  }
15
+ }
19
16
 
20
- &.mod-alignCenter {
21
- .tableSortable {
22
- @include sortAlignCenter;
23
- }
17
+ &.mod-alignCenter {
18
+ .tableSortable {
19
+ @include sortAlignCenter;
24
20
  }
25
21
  }
26
22
 
27
- @layer mods {
28
- &[aria-sort='ascending'] {
29
- .tableSortable{
30
- @include sortAscending;
31
- }
23
+ &[aria-sort='ascending'] {
24
+ .tableSortable{
25
+ @include sortAscending;
32
26
  }
27
+ }
33
28
 
34
- &[aria-sort='descending'] {
35
- .tableSortable {
36
- @include sortDescending;
37
- }
29
+ &[aria-sort='descending'] {
30
+ .tableSortable {
31
+ @include sortDescending;
38
32
  }
39
33
  }
40
34
  }
@@ -3,43 +3,39 @@
3
3
  @use 'exports' as *;
4
4
 
5
5
  .table {
6
- @layer components {
7
- @include vars;
8
- }
6
+ @include vars;
9
7
 
10
- @layer mods {
11
- // For both mod-stickyColumn + responsive variant
12
- &[class*='mod-stickyColumn'] {
13
- @include stickyColumn;
14
- }
8
+ // For both mod-stickyColumn + responsive variant
9
+ &[class*='mod-stickyColumn'] {
10
+ @include stickyColumn;
11
+ }
15
12
 
16
- &.mod-stickyColumn {
17
- @include stickyColumnOffset;
18
- }
13
+ &.mod-stickyColumn {
14
+ @include stickyColumnOffset;
15
+ }
19
16
 
20
- @each $breakpoint, $value in config.$breakpoints {
21
- @include media.min($breakpoint) {
22
- &.mod-stickyColumnAtMediaMin#{$breakpoint} {
23
- @include stickyColumnOffset;
24
- }
17
+ @each $breakpoint, $value in config.$breakpoints {
18
+ @include media.min($breakpoint) {
19
+ &.mod-stickyColumnAtMediaMin#{$breakpoint} {
20
+ @include stickyColumnOffset;
25
21
  }
26
22
  }
23
+ }
27
24
 
28
- // For both stickyHeader + -withBanner variant
29
- &[class*='mod-stickyHeader'] {
30
- @include stickyHeaderCommon;
25
+ // For both stickyHeader + -withBanner variant
26
+ &[class*='mod-stickyHeader'] {
27
+ @include stickyHeaderCommon;
31
28
 
32
- .mod-stickyHeader-shadow {
33
- @include stickyHeaderShadow;
34
- }
29
+ .mod-stickyHeader-shadow {
30
+ @include stickyHeaderShadow;
35
31
  }
32
+ }
36
33
 
37
- &.mod-stickyHeader {
38
- @include stickyHeader;
39
- }
34
+ &.mod-stickyHeader {
35
+ @include stickyHeader;
36
+ }
40
37
 
41
- &.mod-stickyHeader-withBanner {
42
- @include stickyHeaderBanner;
43
- }
38
+ &.mod-stickyHeader-withBanner {
39
+ @include stickyHeaderBanner;
44
40
  }
45
41
  }
@@ -104,9 +104,9 @@
104
104
  }
105
105
  }
106
106
 
107
- // *****
108
- // Sticky header
109
- // ****
107
+ /*****
108
+ Sticky header
109
+ ****/
110
110
 
111
111
  @mixin stickyHeader {
112
112
  .table-head-row-cell {
@@ -144,9 +144,9 @@
144
144
  }
145
145
  }
146
146
 
147
- // *****
148
- // Sticky header drop shadow
149
- // ****
147
+ /*****
148
+ Sticky header drop shadow
149
+ ****/
150
150
 
151
151
  @mixin stickyHeaderShadow {
152
152
  .indexTable-head-row-cell,