@lumx/core 4.28.0 → 4.28.1-alpha.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.
- package/package.json +2 -2
- package/scss/components/avatar/_index.scss +2 -2
- package/scss/components/badge/_index.scss +3 -3
- package/scss/components/button/_index.scss +29 -29
- package/scss/components/card/_index.scss +1 -1
- package/scss/components/checkbox/_index.scss +54 -54
- package/scss/components/chip/_index.scss +22 -22
- package/scss/components/combobox/_index.scss +4 -4
- package/scss/components/comment-block/_index.scss +1 -1
- package/scss/components/composite/_index.scss +2 -2
- package/scss/components/date-picker/_index.scss +1 -1
- package/scss/components/dialog/_index.scss +3 -3
- package/scss/components/divider/_index.scss +3 -3
- package/scss/components/drag-handle/_index.scss +1 -1
- package/scss/components/dropdown/_index.scss +1 -1
- package/scss/components/expansion-panel/_index.scss +1 -1
- package/scss/components/flag/_index.scss +4 -4
- package/scss/components/flex-box/_index.scss +34 -34
- package/scss/components/generic-block/_index.scss +1 -1
- package/scss/components/grid/_index.scss +30 -30
- package/scss/components/grid-column/_index.scss +1 -1
- package/scss/components/icon/_index.scss +9 -9
- package/scss/components/image-block/_index.scss +2 -2
- package/scss/components/image-lightbox/_index.scss +7 -7
- package/scss/components/inline-list/_index.scss +1 -1
- package/scss/components/input-helper/_index.scss +1 -1
- package/scss/components/input-label/_index.scss +2 -2
- package/scss/components/input-required-legend/_index.scss +2 -2
- package/scss/components/lightbox/_index.scss +1 -1
- package/scss/components/link/_index.scss +5 -5
- package/scss/components/link-preview/_index.scss +1 -1
- package/scss/components/list/_index.scss +25 -25
- package/scss/components/list/_mixins.scss +1 -1
- package/scss/components/list-box/_index.scss +8 -8
- package/scss/components/menu/_index.scss +1 -1
- package/scss/components/message/_index.scss +3 -3
- package/scss/components/mosaic/_index.scss +1 -1
- package/scss/components/navigation/_index.scss +10 -10
- package/scss/components/notification/_index.scss +2 -2
- package/scss/components/notification-block/_index.scss +1 -1
- package/scss/components/popover/_index.scss +2 -2
- package/scss/components/post-block/_index.scss +1 -1
- package/scss/components/progress/_index.scss +14 -14
- package/scss/components/progress-tracker/_index.scss +6 -6
- package/scss/components/radio-button/_index.scss +39 -39
- package/scss/components/scroll-box/_index.scss +1 -1
- package/scss/components/select/_index.scss +31 -31
- package/scss/components/side-navigation/_index.scss +3 -3
- package/scss/components/skeleton/_index.scss +13 -13
- package/scss/components/slider/_index.scss +10 -10
- package/scss/components/slideshow/_index.scss +6 -6
- package/scss/components/switch/_index.scss +54 -54
- package/scss/components/table/_index.scss +7 -7
- package/scss/components/tabs/_index.scss +13 -13
- package/scss/components/text/_index.scss +2 -2
- package/scss/components/text-field/_index.scss +43 -43
- package/scss/components/thumbnail/_index.scss +29 -29
- package/scss/components/toolbar/_index.scss +1 -1
- package/scss/components/tooltip/_index.scss +2 -2
- package/scss/components/tree-list/_index.scss +7 -7
- package/scss/components/uploader/_index.scss +3 -3
- package/scss/components/user-block/_index.scss +1 -1
- package/scss/core/base/_helpers.scss +4 -4
- package/scss/core/color/_index.scss +2 -2
- package/scss/core/spacing/_index.scss +1 -1
- package/scss/core/typography/_index.scss +3 -3
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/dom": "^1.7.5",
|
|
10
|
-
"@lumx/icons": "^4.28.0",
|
|
10
|
+
"@lumx/icons": "^4.28.1-alpha.0",
|
|
11
11
|
"classnames": "^2.3.2",
|
|
12
12
|
"focus-visible": "^5.0.2",
|
|
13
13
|
"lodash": "4.18.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
|
-
"version": "4.28.0",
|
|
69
|
+
"version": "4.28.1-alpha.0",
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
72
72
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Avatar
|
|
5
5
|
========================================================================== */
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
.lumx-avatar {
|
|
8
8
|
position: relative;
|
|
9
9
|
background-repeat: no-repeat;
|
|
10
10
|
background-position: center;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
========================================================================== */
|
|
36
36
|
|
|
37
37
|
@each $key, $size in $lumx-sizes {
|
|
38
|
-
|
|
38
|
+
.lumx-avatar--size-#{$key} {
|
|
39
39
|
width: $size;
|
|
40
40
|
height: $size;
|
|
41
41
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Badge
|
|
6
6
|
========================================================================== */
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
.lumx-badge {
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: center;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
========================================================================== */
|
|
33
33
|
|
|
34
34
|
@each $key, $color in $lumx-color-palette {
|
|
35
|
-
|
|
35
|
+
.lumx-badge--color-#{$key} {
|
|
36
36
|
background-color: lumx-color-variant($key, "N");
|
|
37
37
|
|
|
38
38
|
@if $key == "light" {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
/* Badge wrapper
|
|
51
51
|
========================================================================== */
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
.lumx-badge-wrapper {
|
|
54
54
|
position: relative;
|
|
55
55
|
display: inline-block;
|
|
56
56
|
outline: none;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
Button
|
|
5
5
|
========================================================================== */
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
.lumx-button {
|
|
8
8
|
@include lumx-button-base;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
.lumx-badge {
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: math.div(-$lumx-spacing-unit, 2);
|
|
13
13
|
right: math.div(-$lumx-spacing-unit, 2);
|
|
@@ -19,38 +19,38 @@
|
|
|
19
19
|
|
|
20
20
|
@each $key, $size in $lumx-sizes {
|
|
21
21
|
@if $key == lumx-base-const("size", "S") or $key == lumx-base-const("size", "M") {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
.lumx-button--size-#{$key} {
|
|
23
|
+
&.lumx-button--emphasis-high {
|
|
24
|
+
&.lumx-button--variant-button {
|
|
25
25
|
@include lumx-button-size(lumx-base-const("emphasis", "HIGH"), "button", $key);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
&.lumx-button--variant-icon {
|
|
29
29
|
@include lumx-button-size(lumx-base-const("emphasis", "HIGH"), "icon", $key);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
&.lumx-button--emphasis-medium {
|
|
34
|
+
&.lumx-button--variant-button {
|
|
35
35
|
@include lumx-button-size(lumx-base-const("emphasis", "MEDIUM"), "button", $key);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
&.lumx-button--variant-icon {
|
|
39
39
|
@include lumx-button-size(lumx-base-const("emphasis", "MEDIUM"), "icon", $key);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
&.lumx-button--emphasis-low {
|
|
44
|
+
&.lumx-button--variant-button {
|
|
45
45
|
@include lumx-button-size(lumx-base-const("emphasis", "LOW"), "button", $key);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
&.lumx-button--variant-icon {
|
|
49
49
|
@include lumx-button-size(lumx-base-const("emphasis", "LOW"), "icon", $key);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
&.lumx-button--variant-button {
|
|
54
54
|
i:first-child {
|
|
55
55
|
@include lumx-button-icon("button", $key, lumx-base-const("position", "LEFT"));
|
|
56
56
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
&.lumx-button--variant-icon {
|
|
64
64
|
& > i,
|
|
65
65
|
& > img {
|
|
66
66
|
@include lumx-button-icon("icon", $key);
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
|
|
80
80
|
@each $key, $color in $lumx-color-palette {
|
|
81
81
|
@if $key != "dark" and $key != "light" {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
.lumx-button--color-#{$key} {
|
|
83
|
+
&.lumx-button--emphasis-high.lumx-button--theme-light {
|
|
84
84
|
@include lumx-button-color(
|
|
85
85
|
lumx-base-const("emphasis", "HIGH"),
|
|
86
86
|
$key,
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
&.lumx-button--emphasis-high.lumx-button--theme-dark {
|
|
92
92
|
@include lumx-button-color(lumx-base-const("emphasis", "HIGH"), $key, lumx-base-const("theme", "DARK"));
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
@each $key, $color in $lumx-color-palette {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
.lumx-button--color-#{$key} {
|
|
100
|
+
&.lumx-button--emphasis-medium {
|
|
101
101
|
@include lumx-button-color(lumx-base-const("emphasis", "MEDIUM"), $key);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
&.lumx-button--emphasis-low {
|
|
105
105
|
@include lumx-button-color(lumx-base-const("emphasis", "LOW"), $key);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -111,13 +111,13 @@
|
|
|
111
111
|
/* Button selected
|
|
112
112
|
========================================================================== */
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
.lumx-button.lumx-button--is-selected.lumx-button--emphasis-medium,
|
|
115
|
+
.lumx-button.lumx-button--is-selected.lumx-button--emphasis-low, {
|
|
116
116
|
@include lumx-button-size(lumx-base-const("emphasis", "SELECTED"));
|
|
117
117
|
|
|
118
118
|
@each $key, $color in $lumx-color-palette {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
&.lumx-button--color-#{$key} {
|
|
120
|
+
&.lumx-button--is-selected {
|
|
121
121
|
@include lumx-button-color(lumx-base-const("emphasis", "SELECTED"), $key);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
/* Button wrapper
|
|
128
128
|
========================================================================== */
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
.lumx-button-wrapper {
|
|
131
131
|
width: fit-content;
|
|
132
132
|
|
|
133
133
|
&--variant-button {
|
|
@@ -150,12 +150,12 @@
|
|
|
150
150
|
/* Button group
|
|
151
151
|
========================================================================== */
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
.lumx-button-group {
|
|
154
154
|
display: inline-flex;
|
|
155
155
|
vertical-align: top;
|
|
156
156
|
gap: 1px;
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
.lumx-button {
|
|
159
159
|
// Remove border radius on the right on the first button (if not hidden and not also the last button)
|
|
160
160
|
&:not(:last-of-type:not(.visually-hidden)) {
|
|
161
161
|
&, &::before {
|
|
@@ -177,8 +177,8 @@
|
|
|
177
177
|
/* Button full width
|
|
178
178
|
========================================================================== */
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
.lumx-button--is-full-width:not(.lumx-button--variant-icon),
|
|
181
|
+
.lumx-button-wrapper--is-full-width:not(.lumx-button-wrapper--variant-icon) {
|
|
182
182
|
flex-grow: 1;
|
|
183
183
|
width: 100%;
|
|
184
184
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Checkbox
|
|
5
5
|
========================================================================== */
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
.lumx-checkbox {
|
|
8
8
|
$self: &;
|
|
9
9
|
|
|
10
10
|
display: flex;
|
|
@@ -85,48 +85,48 @@
|
|
|
85
85
|
========================================================================== */
|
|
86
86
|
|
|
87
87
|
// Disabled state
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
.lumx-checkbox--is-disabled {
|
|
89
|
+
.lumx-checkbox__input-placeholder {
|
|
90
90
|
@include lumx-state-disabled-input;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
&.lumx-checkbox--theme-light {
|
|
94
|
+
.lumx-checkbox__label,
|
|
95
|
+
.lumx-checkbox__helper {
|
|
96
96
|
@include lumx-state-disabled-text(lumx-base-const("theme", "LIGHT"));
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
&.lumx-checkbox--theme-dark {
|
|
101
|
+
.lumx-checkbox__label,
|
|
102
|
+
.lumx-checkbox__helper {
|
|
103
103
|
@include lumx-state-disabled-text(lumx-base-const("theme", "DARK"));
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
:not(
|
|
108
|
+
:not(.lumx-checkbox--is-disabled) {
|
|
109
109
|
// Hover state
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
+
|
|
113
|
-
|
|
110
|
+
&.lumx-checkbox--theme-light.lumx-checkbox--is-unchecked
|
|
111
|
+
.lumx-checkbox__input-native:hover
|
|
112
|
+
+ .lumx-checkbox__input-placeholder {
|
|
113
|
+
.lumx-checkbox__input-background {
|
|
114
114
|
@include lumx-state(lumx-base-const("state", "HOVER"), lumx-base-const("emphasis", "LOW"), "dark");
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
+
|
|
121
|
-
|
|
118
|
+
&.lumx-checkbox--theme-dark.lumx-checkbox--is-unchecked
|
|
119
|
+
.lumx-checkbox__input-native:hover
|
|
120
|
+
+ .lumx-checkbox__input-placeholder {
|
|
121
|
+
.lumx-checkbox__input-background {
|
|
122
122
|
@include lumx-state(lumx-base-const("state", "HOVER"), lumx-base-const("emphasis", "LOW"), "light");
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
+
|
|
129
|
-
|
|
126
|
+
&.lumx-checkbox--theme-light.lumx-checkbox--is-checked
|
|
127
|
+
.lumx-checkbox__input-native:hover
|
|
128
|
+
+ .lumx-checkbox__input-placeholder {
|
|
129
|
+
.lumx-checkbox__input-indicator {
|
|
130
130
|
@include lumx-state(
|
|
131
131
|
lumx-base-const("state", "HOVER"),
|
|
132
132
|
lumx-base-const("emphasis", "HIGH"),
|
|
@@ -136,10 +136,10 @@
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
+
|
|
142
|
-
|
|
139
|
+
&.lumx-checkbox--theme-dark.lumx-checkbox--is-checked
|
|
140
|
+
.lumx-checkbox__input-native:hover
|
|
141
|
+
+ .lumx-checkbox__input-placeholder {
|
|
142
|
+
.lumx-checkbox__input-indicator {
|
|
143
143
|
@include lumx-state(
|
|
144
144
|
lumx-base-const("state", "HOVER"),
|
|
145
145
|
lumx-base-const("emphasis", "HIGH"),
|
|
@@ -150,26 +150,26 @@
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// Active state
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
+
|
|
156
|
-
|
|
153
|
+
&.lumx-checkbox--theme-light.lumx-checkbox--is-unchecked
|
|
154
|
+
.lumx-checkbox__input-native:active
|
|
155
|
+
+ .lumx-checkbox__input-placeholder {
|
|
156
|
+
.lumx-checkbox__input-background {
|
|
157
157
|
@include lumx-state(lumx-base-const("state", "ACTIVE"), lumx-base-const("emphasis", "LOW"), "dark");
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
+
|
|
164
|
-
|
|
161
|
+
&.lumx-checkbox--theme-dark.lumx-checkbox--is-unchecked
|
|
162
|
+
.lumx-checkbox__input-native:active
|
|
163
|
+
+ .lumx-checkbox__input-placeholder {
|
|
164
|
+
.lumx-checkbox__input-background {
|
|
165
165
|
@include lumx-state(lumx-base-const("state", "ACTIVE"), lumx-base-const("emphasis", "LOW"), "light");
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
+
|
|
172
|
-
|
|
169
|
+
&.lumx-checkbox--theme-light.lumx-checkbox--is-checked
|
|
170
|
+
.lumx-checkbox__input-native:active
|
|
171
|
+
+ .lumx-checkbox__input-placeholder {
|
|
172
|
+
.lumx-checkbox__input-indicator {
|
|
173
173
|
@include lumx-state(
|
|
174
174
|
lumx-base-const("state", "ACTIVE"),
|
|
175
175
|
lumx-base-const("emphasis", "HIGH"),
|
|
@@ -179,10 +179,10 @@
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
+
|
|
185
|
-
|
|
182
|
+
&.lumx-checkbox--theme-dark.lumx-checkbox--is-checked
|
|
183
|
+
.lumx-checkbox__input-native:active
|
|
184
|
+
+ .lumx-checkbox__input-placeholder {
|
|
185
|
+
.lumx-checkbox__input-indicator {
|
|
186
186
|
@include lumx-state(
|
|
187
187
|
lumx-base-const("state", "ACTIVE"),
|
|
188
188
|
lumx-base-const("emphasis", "HIGH"),
|
|
@@ -194,21 +194,21 @@
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
// Focus state
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
+
|
|
197
|
+
.lumx-checkbox--theme-light.lumx-checkbox--is-unchecked
|
|
198
|
+
.lumx-checkbox__input-native[data-focus-visible-added]
|
|
199
|
+
+ .lumx-checkbox__input-placeholder {
|
|
200
200
|
@include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "dark");
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
+
|
|
203
|
+
.lumx-checkbox--theme-dark.lumx-checkbox--is-unchecked
|
|
204
|
+
.lumx-checkbox__input-native[data-focus-visible-added]
|
|
205
|
+
+ .lumx-checkbox__input-placeholder {
|
|
206
206
|
@include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "light");
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
+
|
|
209
|
+
.lumx-checkbox--theme-light.lumx-checkbox--is-checked
|
|
210
|
+
.lumx-checkbox__input-native[data-focus-visible-added]
|
|
211
|
+
+ .lumx-checkbox__input-placeholder {
|
|
212
212
|
@include lumx-state(
|
|
213
213
|
lumx-base-const("state", "FOCUS"),
|
|
214
214
|
lumx-base-const("emphasis", "HIGH"),
|
|
@@ -217,9 +217,9 @@
|
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
+
|
|
220
|
+
.lumx-checkbox--theme-dark.lumx-checkbox--is-checked
|
|
221
|
+
.lumx-checkbox__input-native[data-focus-visible-added]
|
|
222
|
+
+ .lumx-checkbox__input-placeholder {
|
|
223
223
|
@include lumx-state(
|
|
224
224
|
lumx-base-const("state", "FOCUS"),
|
|
225
225
|
lumx-base-const("emphasis", "HIGH"),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Chip
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
.lumx-chip {
|
|
6
6
|
$self: &;
|
|
7
7
|
|
|
8
8
|
@include lumx-chip-base;
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
/* Chip size
|
|
30
30
|
========================================================================== */
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
.lumx-chip--size-m {
|
|
33
33
|
@include lumx-chip-size(lumx-base-const("size", "M"));
|
|
34
34
|
|
|
35
35
|
padding: 0 var(--lumx-material-chip-size-m-padding-vertical);
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
&.lumx-chip--has-before {
|
|
38
38
|
padding-left: $lumx-spacing-unit * 1.5;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
&.lumx-chip--has-after {
|
|
42
42
|
padding-right: $lumx-spacing-unit * 1.5;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
.lumx-chip--size-s {
|
|
47
47
|
@include lumx-chip-size(lumx-base-const("size", "S"));
|
|
48
48
|
|
|
49
49
|
padding: 0 var(--lumx-material-chip-size-s-padding-vertical);
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
&.lumx-chip--has-before {
|
|
52
52
|
padding-left: $lumx-spacing-unit;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
&.lumx-chip--has-after {
|
|
56
56
|
padding-right: $lumx-spacing-unit;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -60,17 +60,17 @@
|
|
|
60
60
|
/* Chip states
|
|
61
61
|
========================================================================== */
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
.lumx-chip--is-clickable {
|
|
64
64
|
@include lumx-state-transition;
|
|
65
65
|
|
|
66
66
|
cursor: pointer;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
@each $key, $color in $lumx-color-palette {
|
|
70
|
-
|
|
70
|
+
.lumx-chip--is-unselected.lumx-chip--color-#{$key} {
|
|
71
71
|
@include lumx-state(lumx-base-const("state", "DEFAULT"), lumx-base-const("emphasis", "MEDIUM"), $key);
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
&.lumx-chip--is-clickable:not([aria-disabled=true]) {
|
|
74
74
|
&:hover,
|
|
75
75
|
&[data-lumx-hover] {
|
|
76
76
|
@include lumx-state(lumx-base-const("state", "HOVER"), lumx-base-const("emphasis", "MEDIUM"), $key);
|
|
@@ -83,28 +83,28 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
@if $key == "dark" {
|
|
86
|
-
|
|
86
|
+
.lumx-chip__label {
|
|
87
87
|
color: lumx-color-variant("dark", "L1");
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
&[data-focus-visible-added],
|
|
92
|
+
.lumx-chip--color-#{$key} {
|
|
93
|
+
&[data-focus-visible-added], &.lumx-chip--is-highlighted {
|
|
94
94
|
@include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "MEDIUM"), $key);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
.lumx-chip--is-selected {
|
|
100
|
+
&.lumx-chip--color-dark {
|
|
101
101
|
@include lumx-state-as-selected(
|
|
102
102
|
lumx-base-const("state", "DEFAULT"),
|
|
103
103
|
lumx-base-const("theme", "LIGHT"),
|
|
104
104
|
"chip"
|
|
105
105
|
);
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
&.lumx-chip--is-clickable {
|
|
108
108
|
&:not([aria-disabled="true"]) {
|
|
109
109
|
&:hover,
|
|
110
110
|
&[data-lumx-hover] {
|
|
@@ -135,14 +135,14 @@
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
&.lumx-chip--color-light {
|
|
139
139
|
@include lumx-state-as-selected(
|
|
140
140
|
lumx-base-const("state", "DEFAULT"),
|
|
141
141
|
lumx-base-const("theme", "DARK"),
|
|
142
142
|
"chip"
|
|
143
143
|
);
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
&.lumx-chip--is-clickable {
|
|
146
146
|
&:not([aria-disabled="true"]) {
|
|
147
147
|
&:hover,
|
|
148
148
|
&[data-lumx-hover] {
|
|
@@ -174,14 +174,14 @@
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
.lumx-chip--is-disabled {
|
|
178
178
|
@include lumx-state-disabled-input;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/* Chip group
|
|
182
182
|
========================================================================== */
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
.lumx-chip-group {
|
|
185
185
|
display: flex;
|
|
186
186
|
flex-wrap: wrap;
|
|
187
187
|
gap: $lumx-chip-group-spacing * 2;
|
|
@@ -190,11 +190,11 @@
|
|
|
190
190
|
/* Selection Chip group
|
|
191
191
|
========================================================================== */
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
.lumx-selection-chip-group {
|
|
194
194
|
align-content: flex-start;
|
|
195
195
|
|
|
196
196
|
// Shrink chips in constrained space
|
|
197
|
-
&, &
|
|
197
|
+
&, & .lumx-chip, & .lumx-chip__label {
|
|
198
198
|
min-width: 0;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// NB: list, option and section styles live in `components/list-box`, the state styles in `components/composite`.
|
|
6
6
|
|
|
7
7
|
// ---- Input -----------------------
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
.lumx-combobox-input {
|
|
9
|
+
.lumx-text-field__chips {
|
|
10
10
|
width: min-content;
|
|
11
11
|
min-width: 0;
|
|
12
12
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
// ---- Popover -----------------------
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
.lumx-combobox-popover {
|
|
18
18
|
color: var(--lumx-color-dark-N);
|
|
19
19
|
|
|
20
20
|
&__scroll {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
// content) and no state
|
|
26
26
|
$visible-list: ':is([role="listbox"], [role="grid"], [role="tree"]):not([hidden])';
|
|
27
27
|
|
|
28
|
-
&:not(:has(#{$visible-list},
|
|
28
|
+
&:not(:has(#{$visible-list}, .lumx-composite-status)) {
|
|
29
29
|
display: none;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
// ---- Status -----------------------
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
.lumx-composite-status {
|
|
10
10
|
text-align: center;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
// ---- Item -----------------------
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
.lumx-composite-item {
|
|
16
16
|
// Selection state icon, centered in the `after` slot
|
|
17
17
|
&__selection-icon {
|
|
18
18
|
margin: auto;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Dialog
|
|
6
6
|
========================================================================== */
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
.lumx-dialog {
|
|
9
9
|
$self: &;
|
|
10
10
|
|
|
11
11
|
position: fixed;
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
========================================================================== */
|
|
182
182
|
|
|
183
183
|
@each $key, $size in $lumx-dialog-sizes {
|
|
184
|
-
|
|
184
|
+
.lumx-dialog--size-#{$key} .lumx-dialog__container {
|
|
185
185
|
@include mq($until: desktop) {
|
|
186
186
|
top: 0;
|
|
187
187
|
right: 0;
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
.lumx-dialog--size-huge .lumx-dialog__container {
|
|
203
203
|
@include mq($until: desktop) {
|
|
204
204
|
top: 0;
|
|
205
205
|
right: 0;
|