@lucca-front/scss 20.3.0-rc.2 → 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 (133) 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/component.scss +1 -0
  23. package/src/components/card/index.scss +23 -25
  24. package/src/components/card/mods.scss +31 -0
  25. package/src/components/checkbox/index.scss +30 -36
  26. package/src/components/checkboxField/index.scss +80 -90
  27. package/src/components/chip/index.scss +17 -23
  28. package/src/components/clear/index.scss +17 -23
  29. package/src/components/code/index.scss +4 -8
  30. package/src/components/collapse/index.scss +7 -11
  31. package/src/components/comment/index.scss +20 -30
  32. package/src/components/container/index.scss +25 -29
  33. package/src/components/contentSection/index.scss +2 -4
  34. package/src/components/dataTable/index.scss +52 -68
  35. package/src/components/dataTableSticked/index.scss +24 -32
  36. package/src/components/dateField/index.scss +20 -24
  37. package/src/components/dateRangeField/index.scss +25 -29
  38. package/src/components/dialog/index.scss +36 -40
  39. package/src/components/divider/index.scss +7 -11
  40. package/src/components/dropdown/component.scss +43 -17
  41. package/src/components/dropdown/index.scss +9 -12
  42. package/src/components/dropdown/mods.scss +4 -4
  43. package/src/components/dropdown/states.scss +4 -3
  44. package/src/components/dropdown/vars.scss +8 -6
  45. package/src/components/emptyState/index.scss +7 -11
  46. package/src/components/errorPage/index.scss +4 -8
  47. package/src/components/fancyBox/index.scss +4 -8
  48. package/src/components/field/index.scss +76 -96
  49. package/src/components/fieldset/index.scss +12 -18
  50. package/src/components/file/index.scss +30 -38
  51. package/src/components/fileEntry/index.scss +18 -24
  52. package/src/components/fileToolbar/index.scss +6 -10
  53. package/src/components/fileUpload/index.scss +31 -37
  54. package/src/components/filterBar/index.scss +13 -17
  55. package/src/components/filterBarDeprecated/index.scss +4 -8
  56. package/src/components/filterPill/index.scss +48 -56
  57. package/src/components/filters/index.scss +8 -14
  58. package/src/components/footer/index.scss +34 -38
  59. package/src/components/form/index.scss +84 -114
  60. package/src/components/form/mods.scss +5 -7
  61. package/src/components/formLabel/index.scss +13 -19
  62. package/src/components/gauge/index.scss +20 -26
  63. package/src/components/grid/index.scss +21 -25
  64. package/src/components/header/index.scss +12 -18
  65. package/src/components/highlightData/index.scss +24 -28
  66. package/src/components/horizontalNavigation/index.scss +36 -42
  67. package/src/components/index.scss +55 -57
  68. package/src/components/indexTable/index.scss +56 -54
  69. package/src/components/inlineMessage/index.scss +12 -18
  70. package/src/components/inputFramed/index.scss +24 -30
  71. package/src/components/label/index.scss +9 -13
  72. package/src/components/layout/index.scss +45 -51
  73. package/src/components/link/index.scss +8 -14
  74. package/src/components/link/mods.scss +1 -1
  75. package/src/components/list/index.scss +11 -15
  76. package/src/components/listboxOption/index.scss +115 -131
  77. package/src/components/listing/index.scss +18 -22
  78. package/src/components/loading/index.scss +23 -27
  79. package/src/components/main/index.scss +15 -21
  80. package/src/components/mainLayout/index.scss +20 -26
  81. package/src/components/mobileHeader/index.scss +4 -8
  82. package/src/components/mobileNavigation/index.scss +2 -4
  83. package/src/components/mobilePush/index.scss +4 -8
  84. package/src/components/multiSelect/index.scss +36 -46
  85. package/src/components/navside/index.scss +56 -78
  86. package/src/components/newBadge/index.scss +4 -8
  87. package/src/components/notchBox/index.scss +13 -17
  88. package/src/components/notchBox/mods.scss +125 -137
  89. package/src/components/numericBadge/index.scss +16 -22
  90. package/src/components/pageHeader/index.scss +22 -26
  91. package/src/components/pagination/index.scss +6 -12
  92. package/src/components/plgPush/index.scss +2 -4
  93. package/src/components/popover/component.scss +0 -17
  94. package/src/components/popover/index.scss +2 -4
  95. package/src/components/progress/index.scss +9 -15
  96. package/src/components/radio/index.scss +12 -18
  97. package/src/components/radioButtons/index.scss +9 -15
  98. package/src/components/radioField/index.scss +40 -46
  99. package/src/components/readMore/index.scss +15 -21
  100. package/src/components/richText/index.scss +14 -20
  101. package/src/components/scrollBox/index.scss +10 -14
  102. package/src/components/section/index.scss +12 -16
  103. package/src/components/segmentedControl/index.scss +15 -25
  104. package/src/components/simpleSelect/index.scss +33 -41
  105. package/src/components/skeleton/index.scss +37 -43
  106. package/src/components/skipLinks/index.scss +2 -4
  107. package/src/components/sortableList/index.scss +6 -12
  108. package/src/components/statusBadge/index.scss +4 -8
  109. package/src/components/switch/index.scss +29 -35
  110. package/src/components/switchField/index.scss +16 -22
  111. package/src/components/table/index.scss +64 -78
  112. package/src/components/tableFixed/index.scss +11 -13
  113. package/src/components/tableFixedDeprecated/index.scss +10 -14
  114. package/src/components/tableOfContent/index.scss +24 -28
  115. package/src/components/tableSortable/index.scss +16 -22
  116. package/src/components/tableSticked/index.scss +24 -28
  117. package/src/components/tableSticked/mods.scss +6 -6
  118. package/src/components/tableStickedDeprecated/index.scss +40 -46
  119. package/src/components/tag/index.scss +23 -29
  120. package/src/components/textField/index.scss +22 -30
  121. package/src/components/textField/mods.scss +1 -1
  122. package/src/components/textFlow/index.scss +2 -4
  123. package/src/components/textfields/index.scss +258 -279
  124. package/src/components/timeline/index.scss +66 -72
  125. package/src/components/timepicker/index.scss +15 -21
  126. package/src/components/title/index.scss +30 -43
  127. package/src/components/title/mods.scss +1 -1
  128. package/src/components/titleSection/index.scss +23 -31
  129. package/src/components/toast/index.scss +4 -8
  130. package/src/components/tooltip/index.scss +21 -25
  131. package/src/components/userPopover/index.scss +2 -4
  132. package/src/components/userTile/index.scss +22 -26
  133. package/src/components/verticalNavigation/index.scss +16 -26
@@ -3,58 +3,54 @@
3
3
  @use '@lucca-front/scss/src/components/button/exports' as button;
4
4
 
5
5
  .dialog {
6
- @layer components {
7
- @include vars;
8
- @include component;
9
- }
10
-
11
- @layer mods {
12
- &.mod-XS {
13
- @include XS;
14
- }
6
+ @include vars;
7
+ @include component;
15
8
 
16
- &.mod-S {
17
- @include S;
18
- }
9
+ &.mod-XS {
10
+ @include XS;
11
+ }
19
12
 
20
- &.mod-fitContent {
21
- @include fitContent;
22
- }
13
+ &.mod-S {
14
+ @include S;
15
+ }
23
16
 
24
- &.mod-maxContent {
25
- @include maxContent;
26
- }
17
+ &.mod-fitContent {
18
+ @include fitContent;
19
+ }
27
20
 
28
- &.mod-L {
29
- @include L;
30
- }
21
+ &.mod-maxContent {
22
+ @include maxContent;
23
+ }
31
24
 
32
- &.mod-XL {
33
- @include XL;
34
- }
25
+ &.mod-L {
26
+ @include L;
27
+ }
35
28
 
36
- &.mod-XXL {
37
- @include XXL;
38
- }
29
+ &.mod-XL {
30
+ @include XL;
31
+ }
39
32
 
40
- &.mod-neutralBackground {
41
- @include neutralBackground;
42
- }
33
+ &.mod-XXL {
34
+ @include XXL;
35
+ }
43
36
 
44
- &:where(.mod-drawer) {
45
- @include drawer;
37
+ &.mod-neutralBackground {
38
+ @include neutralBackground;
39
+ }
46
40
 
47
- &:where(.mod-fromBottom) {
48
- @include fromBottom;
49
- }
41
+ &:where(.mod-drawer) {
42
+ @include drawer;
50
43
 
51
- @include media.max('XXS') {
52
- @include fromBottom;
53
- }
44
+ &:where(.mod-fromBottom) {
45
+ @include fromBottom;
54
46
  }
55
47
 
56
- &.mod-fullScreen {
57
- @include fullScreen;
48
+ @include media.max('XXS') {
49
+ @include fromBottom;
58
50
  }
59
51
  }
52
+
53
+ &.mod-fullScreen {
54
+ @include fullScreen;
55
+ }
60
56
  }
@@ -1,18 +1,14 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .divider {
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;
9
+ }
13
10
 
14
- &.mod-vertical {
15
- @include vertical;
16
- }
11
+ &.mod-vertical {
12
+ @include vertical;
17
13
  }
18
14
  }
@@ -4,11 +4,11 @@
4
4
  @use '@lucca-front/scss/src/components/divider/exports' as divider;
5
5
 
6
6
  @mixin component($atRoot: namespace.$defaultAtRoot) {
7
- margin: calc(var(--pr-t-spacings-100) * -1);
8
7
  padding: 0 !important;
9
8
  border-radius: var(--pr-t-border-radius-structure);
10
- max-inline-size: 90vw;
11
- max-block-size: var(--components-dropdown-max-height);
9
+ min-inline-size: var(--components-dropdown-minInlineSize);
10
+ max-inline-size: var(--components-dropdown-maxInlineSize);
11
+ max-block-size: var(--components-dropdown-maxBlockSize);
12
12
  overflow-x: hidden;
13
13
  overflow-y: auto;
14
14
 
@@ -20,30 +20,49 @@
20
20
  padding-block: var(--pr-t-spacings-50);
21
21
  padding-inline: 0;
22
22
  margin: 0;
23
- min-inline-size: var(--components-dropdown-min-width);
24
- max-inline-size: var(--components-dropdown-max-width);
23
+ display: flex;
24
+ flex-direction: column;
25
+ gap: var(--pr-t-spacings-25);
26
+
27
+ .dropdown-list {
28
+ padding-block: 0;
29
+ }
25
30
  }
26
31
 
27
32
  // .lu-dropdown-options-item is deprecated
28
33
  .dropdown-list-option,
29
34
  .lu-dropdown-options-item {
30
35
  padding-block: 0;
31
- padding-inline: var(--pr-t-spacings-50);
32
36
 
33
- &.mod-divider {
34
- padding: 0;
37
+ &:not(:has(.divider.dropdown-list-option-divider, .dropdown-list-option), &.mod-divider) {
38
+ padding-inline: var(--pr-t-spacings-50);
39
+ }
40
+
41
+ &:has(> .dropdown-list) {
42
+ padding-block-start: var(--pr-t-spacings-100);
43
+ padding-inline: var(--pr-t-spacings-150);
44
+ color: var(--pr-t-color-text-subtle);
45
+ font: var(--pr-t-font-body-S);
46
+ font-weight: var(--pr-t-font-fontWeight-semibold);
47
+ }
48
+
49
+ > .dropdown-list {
50
+ color: var(--pr-t-color-text);
51
+ font: var(--pr-t-font-body-M);
52
+ font-weight: var(--pr-t-font-fontWeight-regular);
53
+ margin-block-start: var(--pr-t-spacings-50);
54
+ margin-inline: calc(var(--pr-t-spacings-150) * -1);
35
55
  }
36
56
  }
37
57
 
38
58
  // .lu-dropdown-options-item-action is deprecated
39
59
  .dropdown-list-option-action,
40
60
  .lu-dropdown-options-item-action {
41
- align-items: flex-start;
42
61
  border: 0;
43
62
  border-radius: var(--pr-t-border-radius-default);
44
- color: var(--components-dropdown-optionColor);
45
- background-color: var(--components-dropdown-option-actionBackground);
63
+ background-color: var(--components-dropdown-list-option-action-backgroundColor);
46
64
  display: flex;
65
+ align-items: flex-start;
47
66
  gap: var(--pr-t-spacings-100);
48
67
  line-height: var(--pr-t-font-body-M-lineHeight);
49
68
  padding: var(--pr-t-spacings-50) var(--pr-t-spacings-100);
@@ -51,32 +70,39 @@
51
70
  transition: background-color var(--commons-animations-durations-fast);
52
71
  text-decoration: none;
53
72
  inline-size: 100%;
54
- pointer-events: var(--components-dropdown-option-actionEvents);
73
+ pointer-events: var(--components-dropdown-list-option-action-pointerEvents);
55
74
  cursor: pointer;
56
75
 
57
76
  .lucca-icon {
58
77
  @include icon.S;
59
78
 
60
- margin-block-start: var(--pr-t-spacings-25);
79
+ margin-block: var(--pr-t-spacings-25);
61
80
  }
62
81
 
63
82
  &,
64
83
  &:hover {
65
- color: var(--components-dropdown-option-actionColor);
84
+ color: var(--components-dropdown-list-option-action-color);
66
85
  }
67
86
 
68
87
  &:hover,
69
88
  &:focus-visible {
70
- --components-dropdown-option-actionBackground: var(--palettes-neutral-25);
89
+ --components-dropdown-list-option-action-backgroundColor: var(--palettes-neutral-50);
71
90
  }
72
91
 
73
92
  &:active {
74
- --components-dropdown-option-actionBackground: var(--palettes-neutral-50);
93
+ --components-dropdown-list-option-action-backgroundColor: var(--palettes-neutral-100);
75
94
  }
76
95
 
77
96
  &:focus-visible {
78
- @include a11y.focusVisible;
97
+ @include a11y.focusVisible($offset: 0);
98
+
99
+ z-index: 1;
100
+ position: relative;
79
101
  }
80
102
  }
103
+
104
+ .divider.dropdown-list-option-divider {
105
+ --components-divider-marginBlock: var(--pr-t-spacings-25);
106
+ }
81
107
  }
82
108
  }
@@ -3,23 +3,20 @@
3
3
  // .lu-dropdown-content is deprecated
4
4
  .dropdown,
5
5
  .lu-dropdown-content.lu-popover-content {
6
- @layer components {
7
- @include vars;
8
- @include component;
9
- }
6
+ @include vars;
7
+ @include component;
10
8
  }
11
9
 
10
+ // .lu-dropdown-options-item-action is deprecated
12
11
  .dropdown-list-option-action,
13
12
  .lu-dropdown-options-item-action {
14
- @layer states {
15
- &.is-disabled {
16
- @include disabled;
17
- }
13
+ &[disabled],
14
+ &.is-disabled {
15
+ @include disabled;
18
16
  }
19
17
 
20
- @layer mods {
21
- &.mod-critical, &.mod-delete {
22
- @include critical;
23
- }
18
+ &.mod-critical,
19
+ &.mod-delete {
20
+ @include critical;
24
21
  }
25
22
  }
@@ -1,12 +1,12 @@
1
1
  @mixin critical {
2
- --components-dropdown-option-actionColor: var(--pr-t-color-text-critical);
3
-
4
2
  &:hover,
5
3
  &:focus-visible {
6
- --components-dropdown-option-actionBackground: var(--palettes-error-50);
4
+ --components-dropdown-list-option-action-backgroundColor: var(--palettes-error-50);
5
+ --components-dropdown-list-option-action-color: var(--pr-t-color-text-critical);
7
6
  }
8
7
 
9
8
  &:active {
10
- --components-dropdown-option-actionBackground: var(--palettes-error-100);
9
+ --components-dropdown-list-option-action-color: var(--pr-t-color-text-critical);
10
+ --components-dropdown-list-option-action-backgroundColor: var(--palettes-error-100);
11
11
  }
12
12
  }
@@ -1,9 +1,10 @@
1
1
  @mixin disabled {
2
- --components-dropdown-option-actionColor: var(--pr-t-color-text-disabled);
3
- --components-dropdown-option-actionEvents: none;
2
+ --components-dropdown-list-option-action-color: var(--pr-t-color-text-disabled);
3
+ --components-dropdown-list-option-action-backgroundColor: transparent;
4
+ --components-dropdown-list-option-action-pointerEvents: none;
4
5
 
5
6
  &,
6
7
  &:hover {
7
- --components-dropdown-option-actionBackground: var(--palettes-neutral-0);
8
+ --components-dropdown-list-option-action-backgroundColor: var(--palettes-neutral-0);
8
9
  }
9
10
  }
@@ -1,8 +1,10 @@
1
1
  @mixin vars {
2
- --components-dropdown-min-width: 10rem;
3
- --components-dropdown-max-width: 30rem;
4
- --components-dropdown-max-height: 60vh;
5
- --components-dropdown-option-actionColor: currentColor;
6
- --components-dropdown-option-actionBackground: transparent;
7
- --components-dropdown-option-actionEvents: auto;
2
+ --components-dropdown-minInlineSize: 10rem;
3
+
4
+ --components-dropdown-maxInlineSize: 30rem;
5
+ --components-dropdown-maxBlockSize: min(60vh, 30rem);
6
+
7
+ --components-dropdown-list-option-action-color: currentColor;
8
+ --components-dropdown-list-option-action-backgroundColor: transparent;
9
+ --components-dropdown-list-option-action-pointerEvents: auto;
8
10
  }
@@ -1,18 +1,14 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .emptyState {
4
- @layer components {
5
- @include vars;
6
- @include component;
7
- }
4
+ @include vars;
5
+ @include component;
8
6
 
9
- @layer mods {
10
- &.mod-page {
11
- @include page;
12
- }
7
+ &.mod-page {
8
+ @include page;
9
+ }
13
10
 
14
- &.mod-center {
15
- @include center;
16
- }
11
+ &.mod-center {
12
+ @include center;
17
13
  }
18
14
  }
@@ -2,14 +2,10 @@
2
2
  @use '@lucca-front/scss/src/commons/utils/media';
3
3
 
4
4
  .errorPage {
5
- @layer components {
6
- @include vars;
7
- @include component;
8
- }
5
+ @include vars;
6
+ @include component;
9
7
 
10
- @layer mods {
11
- @include media.max('S') {
12
- @include compact;
13
- }
8
+ @include media.max('S') {
9
+ @include compact;
14
10
  }
15
11
  }
@@ -2,14 +2,10 @@
2
2
  @use '@lucca-front/scss/src/commons/utils/media';
3
3
 
4
4
  .fancyBox {
5
- @layer components {
6
- @include vars;
7
- @include component;
8
- }
5
+ @include vars;
6
+ @include component;
9
7
 
10
- @layer mods {
11
- @include media.max('XS') {
12
- @include narrow;
13
- }
8
+ @include media.max('XS') {
9
+ @include narrow;
14
10
  }
15
11
  }
@@ -2,105 +2,91 @@
2
2
  @use '@lucca-front/scss/src/commons/utils/namespace';
3
3
 
4
4
  .form.mod-framed {
5
- @layer mods {
6
- .textfield,
7
- .radiosfield,
8
- .checkboxesfield {
9
- @include framed;
10
- }
11
- }
12
-
13
- @layer states {
14
- .is-error {
15
- @include fieldFramedState('error');
16
- @include fieldFramedError('textfield');
17
- @include fieldFramedError('radiosfield');
18
- @include fieldFramedError('checkboxesfield');
19
- }
20
-
21
- .is-warning {
22
- @include fieldFramedState('warning');
23
- }
24
-
25
- .is-valid,
26
- .is-success {
27
- @include fieldFramedState('success');
28
- }
5
+ .textfield,
6
+ .radiosfield,
7
+ .checkboxesfield {
8
+ @include framed;
29
9
  }
30
10
  }
31
11
 
32
12
  .textfield,
33
13
  .radiosfield,
34
14
  .checkboxesfield {
35
- @layer components {
36
- @include vars;
37
- @include component;
15
+ @include vars;
16
+ @include component;
17
+
18
+ &.mod-inline {
19
+ @include inline;
38
20
  }
39
21
 
40
- @layer mods {
41
- &.mod-inline {
42
- @include inline;
43
- }
22
+ &.mod-block {
23
+ @include block;
24
+ }
44
25
 
45
- &.mod-block {
46
- @include block;
47
- }
26
+ &:is(.is-required, .required) {
27
+ @include required;
48
28
  }
49
29
 
50
- @layer states {
51
- &:is(.is-required, .required) {
52
- @include required;
53
- }
30
+ &:is(.is-loading, .loading) {
31
+ @include loading;
32
+ }
54
33
 
55
- &:is(.is-loading, .loading) {
56
- @include loading;
57
- }
34
+ &:is(.is-success, .success, .is-valid, .valid) {
35
+ @include success;
36
+ }
58
37
 
59
- &:is(.is-success, .success, .is-valid, .valid) {
60
- @include success;
61
- }
38
+ &:is(.is-error, .error, .is-invalid, .invalid) {
39
+ @include error;
40
+ }
41
+
42
+ &.mod-compact {
43
+ @include compact;
62
44
 
63
- &:is(.is-error, .error, .is-invalid, .invalid) {
64
- @include error;
45
+ &.mod-block {
46
+ @include compactBlock;
65
47
  }
66
48
  }
67
49
 
68
- @layer mods {
69
- &.mod-compact {
70
- @include compact;
50
+ &.mod-framed {
51
+ @include framed;
71
52
 
72
- &.mod-block {
73
- @include compactBlock;
74
- }
53
+ &.mod-search {
54
+ @include framedSearch;
75
55
  }
76
- }
77
56
 
78
- @layer mods {
79
- &.mod-framed {
80
- @include framed;
57
+ &.is-error {
58
+ @include fieldFramedState('error');
59
+ @include fieldFramedError('textfield');
60
+ @include fieldFramedError('radiosfield');
61
+ @include fieldFramedError('checkboxesfield');
62
+ }
81
63
 
82
- &.mod-search {
83
- @include framedSearch;
84
- }
64
+ &.is-warning {
65
+ @include fieldFramedState('warning');
85
66
  }
86
- }
87
67
 
88
- @layer states {
89
- &.mod-framed {
90
- &.is-error {
91
- @include fieldFramedState('error');
92
- @include fieldFramedError('textfield');
93
- @include fieldFramedError('radiosfield');
94
- @include fieldFramedError('checkboxesfield');
95
- }
68
+ &.is-valid,
69
+ &.is-success {
70
+ @include fieldFramedState('success');
71
+ }
96
72
 
97
- &.is-warning {
98
- @include fieldFramedState('warning');
99
- }
73
+ @at-root (namespace.$defaultAtRoot) {
74
+ .form.mod-framed {
75
+ .is-error {
76
+ @include fieldFramedState('error');
77
+ @include fieldFramedError('textfield');
78
+ @include fieldFramedError('radiosfield');
79
+ @include fieldFramedError('checkboxesfield');
80
+ }
81
+
82
+ .is-warning {
83
+ @include fieldFramedState('warning');
84
+ }
100
85
 
101
- &.is-valid,
102
- &.is-success {
103
- @include fieldFramedState('success');
86
+ .is-valid,
87
+ .is-success {
88
+ @include fieldFramedState('success');
89
+ }
104
90
  }
105
91
  }
106
92
  }
@@ -108,28 +94,24 @@
108
94
  .textfield-input,
109
95
  .radiosfield-input,
110
96
  .checkboxesfield-input {
111
- @layer states {
112
- &:is([disabled], [readonly]) {
113
- @include inputDisabled;
114
- }
97
+ &:is([disabled], [readonly]) {
98
+ @include inputDisabled;
99
+ }
115
100
 
116
- &:is(.is-valid, .valid, .is-success, .success) {
117
- @include inputState('success');
118
- }
101
+ &:is(.is-valid, .valid, .is-success, .success) {
102
+ @include inputState('success');
103
+ }
119
104
 
120
- &:is(.is-warning, .warning) {
121
- @include inputState('warning');
122
- }
105
+ &:is(.is-warning, .warning) {
106
+ @include inputState('warning');
107
+ }
123
108
 
124
- &:is(.is-invalid, .invalid, .is-error, .error) {
125
- @include inputState('error');
126
- }
109
+ &:is(.is-invalid, .invalid, .is-error, .error) {
110
+ @include inputState('error');
127
111
  }
128
112
 
129
- @layer mods {
130
- &.mod-row {
131
- @include inputRow;
132
- }
113
+ &.mod-row {
114
+ @include inputRow;
133
115
  }
134
116
  }
135
117
  }
@@ -137,10 +119,8 @@
137
119
  .textfield-input,
138
120
  .radiosfield-input,
139
121
  .checkboxesfield-input {
140
- @layer states {
141
- &:is([required]),
142
- &:is([aria-required='true']) {
143
- @include required;
144
- }
122
+ &:is([required]),
123
+ &:is([aria-required='true']) {
124
+ @include required;
145
125
  }
146
126
  }
@@ -1,28 +1,22 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .fieldset {
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;
9
+ }
13
10
 
14
- &.mod-horizontal {
15
- @include horizontal;
16
- }
11
+ &.mod-horizontal {
12
+ @include horizontal;
13
+ }
17
14
 
18
- &.mod-expandable {
19
- @include expandable;
20
- }
15
+ &.mod-expandable {
16
+ @include expandable;
21
17
  }
22
18
 
23
- @layer states {
24
- &:has(.fieldset-title-content[aria-expanded='true']) {
25
- @include expanded;
26
- }
19
+ &:has(.fieldset-title-content[aria-expanded='true']) {
20
+ @include expanded;
27
21
  }
28
22
  }