@1024pix/pix-ui 38.2.0 → 38.2.2
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/.circleci/config.yml +0 -1
- package/.stylelintrc.json +0 -2
- package/CHANGELOG.md +19 -0
- package/addon/components/pix-dropdown.js +2 -2
- package/addon/components/pix-message.js +1 -1
- package/addon/components/pix-search-input.js +2 -2
- package/addon/components/pix-select.js +2 -2
- package/addon/components/pix-textarea.js +1 -1
- package/addon/styles/_a11y.scss +2 -2
- package/addon/styles/_pix-background-header.scss +1 -1
- package/addon/styles/_pix-banner.scss +15 -15
- package/addon/styles/_pix-button-base.scss +15 -15
- package/addon/styles/_pix-button.scss +1 -1
- package/addon/styles/_pix-checkbox.scss +12 -12
- package/addon/styles/_pix-collapsible.scss +7 -7
- package/addon/styles/_pix-dropdown.scss +32 -32
- package/addon/styles/_pix-filter-banner.scss +9 -9
- package/addon/styles/_pix-filterable-and-searchable-select.scss +5 -5
- package/addon/styles/_pix-icon-button.scss +10 -10
- package/addon/styles/_pix-indicator-card.scss +8 -8
- package/addon/styles/_pix-input-code.scss +5 -5
- package/addon/styles/_pix-input-password.scss +8 -8
- package/addon/styles/_pix-input.scss +6 -6
- package/addon/styles/_pix-message.scss +2 -2
- package/addon/styles/_pix-modal.scss +14 -14
- package/addon/styles/_pix-multi-select.scss +27 -27
- package/addon/styles/_pix-pagination.scss +5 -5
- package/addon/styles/_pix-progress-gauge.scss +5 -5
- package/addon/styles/_pix-radio-button.scss +10 -10
- package/addon/styles/_pix-return-to.scss +9 -9
- package/addon/styles/_pix-search-input.scss +7 -7
- package/addon/styles/_pix-select.scss +29 -29
- package/addon/styles/_pix-selectable-tag.scss +17 -17
- package/addon/styles/_pix-sidebar.scss +8 -8
- package/addon/styles/_pix-tag.scss +7 -7
- package/addon/styles/_pix-textarea.scss +6 -6
- package/addon/styles/_pix-toggle.scss +7 -7
- package/addon/styles/_pix-tooltip.scss +20 -20
- package/addon/styles/normalize-reset/_normalize.scss +12 -12
- package/addon/styles/normalize-reset/_reset.scss +8 -8
- package/addon/styles/pix-design-tokens/_fonts.scss +8 -8
- package/addon/styles/pix-design-tokens/_form.scss +15 -15
- package/addon/styles/pix-design-tokens/_typography.scss +2 -2
- package/app/modifiers/on-arrow-down-up-action.js +1 -1
- package/app/modifiers/trap-focus.js +1 -1
- package/package.json +9 -9
package/.circleci/config.yml
CHANGED
package/.stylelintrc.json
CHANGED
|
@@ -6,13 +6,11 @@
|
|
|
6
6
|
"declaration-block-no-redundant-longhand-properties": null,
|
|
7
7
|
"font-family-name-quotes": null,
|
|
8
8
|
"font-family-no-duplicate-names": null,
|
|
9
|
-
"function-url-quotes": null,
|
|
10
9
|
"no-descending-specificity": null,
|
|
11
10
|
"no-empty-source": null,
|
|
12
11
|
"property-no-vendor-prefix": null,
|
|
13
12
|
"scss/at-mixin-argumentless-call-parentheses": null,
|
|
14
13
|
"scss/at-mixin-pattern": null,
|
|
15
|
-
"scss/no-global-function-names": null,
|
|
16
14
|
"selector-id-pattern": null,
|
|
17
15
|
"selector-pseudo-element-colon-notation": null
|
|
18
16
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v38.2.2 (28/07/2023)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :building_construction: Tech
|
|
7
|
+
- [#453](https://github.com/1024pix/pix-ui/pull/453) [TECH] Ajout de l'ordonnancement des propriétés CSS.
|
|
8
|
+
|
|
9
|
+
### :arrow_up: Montée de version
|
|
10
|
+
- [#450](https://github.com/1024pix/pix-ui/pull/450) [BUMP] Update dependency stylelint-config-standard-scss to v10 (dossier racine).
|
|
11
|
+
|
|
12
|
+
## v38.2.1 (25/07/2023)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### :building_construction: Tech
|
|
16
|
+
- [#451](https://github.com/1024pix/pix-ui/pull/451) [TECH] Ajustements des versions de Node et npm.
|
|
17
|
+
|
|
18
|
+
### :coffee: Autre
|
|
19
|
+
- [#449](https://github.com/1024pix/pix-ui/pull/449) [BUMP] Update dependency eslint-plugin-qunit to v8 (dossier racine).
|
|
20
|
+
- [#443](https://github.com/1024pix/pix-ui/pull/443) [BUMP] Update dependency eslint-plugin-prettier to v5 (dossier racine).
|
|
21
|
+
|
|
3
22
|
## v38.2.0 (25/07/2023)
|
|
4
23
|
|
|
5
24
|
|
|
@@ -18,13 +18,13 @@ export default class PixDropdown extends Component {
|
|
|
18
18
|
|
|
19
19
|
if (!this.args.label && !this.args.placeholder) {
|
|
20
20
|
throw new Error(
|
|
21
|
-
'ERROR in PixDropdown component, you need to provide a label and/or a placeholder'
|
|
21
|
+
'ERROR in PixDropdown component, you need to provide a label and/or a placeholder',
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
if (this.args.selectedOption) {
|
|
26
26
|
this.selectedOption = this.args.options.find(
|
|
27
|
-
({ value }) => value === this.args.selectedOption
|
|
27
|
+
({ value }) => value === this.args.selectedOption,
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -11,7 +11,7 @@ export default class PixMessage extends Component {
|
|
|
11
11
|
const correctTypes = [TYPE_INFO, TYPE_SUCCESS, TYPE_WARNING, TYPE_ALERT, TYPE_ERROR];
|
|
12
12
|
if (this.args.type === 'alert') {
|
|
13
13
|
console.warn(
|
|
14
|
-
'ERROR in PixMessage component, "alert" type is deprecated. Use "error" type instead.'
|
|
14
|
+
'ERROR in PixMessage component, "alert" type is deprecated. Use "error" type instead.',
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
return correctTypes.includes(this.args.type) ? this.args.type : 'info';
|
|
@@ -16,14 +16,14 @@ export default class PixSearchInput extends Component {
|
|
|
16
16
|
}
|
|
17
17
|
if (!this.args.label && !this.args.ariaLabel) {
|
|
18
18
|
throw new Error(
|
|
19
|
-
'ERROR in PixSearchInput component, you must provide @label or @ariaLabel params'
|
|
19
|
+
'ERROR in PixSearchInput component, you must provide @label or @ariaLabel params',
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
this.searchInputId = this.args.id || guidFor(this);
|
|
24
24
|
this.debouncedTriggerFiltering = debounce(
|
|
25
25
|
this.args.triggerFiltering,
|
|
26
|
-
this.debounceTimeBeforeSearch
|
|
26
|
+
this.debounceTimeBeforeSearch,
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -81,7 +81,7 @@ export default class PixSelect extends Component {
|
|
|
81
81
|
|
|
82
82
|
if (this.searchValue) {
|
|
83
83
|
options = this.args.options.filter((option) =>
|
|
84
|
-
option.label.toLowerCase().includes(this.searchValue.toLowerCase())
|
|
84
|
+
option.label.toLowerCase().includes(this.searchValue.toLowerCase()),
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -163,7 +163,7 @@ export default class PixSelect extends Component {
|
|
|
163
163
|
@action
|
|
164
164
|
setSelectWidth() {
|
|
165
165
|
const baseFontRemRatio = Number(
|
|
166
|
-
getComputedStyle(document.querySelector('html')).fontSize.match(/\d+(\.\d+)?/)[0]
|
|
166
|
+
getComputedStyle(document.querySelector('html')).fontSize.match(/\d+(\.\d+)?/)[0],
|
|
167
167
|
);
|
|
168
168
|
const checkIconWidth = 1.125 * baseFontRemRatio;
|
|
169
169
|
const listWidth = document.getElementById(this.listId).getBoundingClientRect().width;
|
|
@@ -30,7 +30,7 @@ export default class PixTextarea extends Component {
|
|
|
30
30
|
|
|
31
31
|
if (idRequiredLabelDefined && !labelIsDefined) {
|
|
32
32
|
throw new Error(
|
|
33
|
-
'ERROR in PixTextarea component, @label param is necessary when giving @requiredLabel'
|
|
33
|
+
'ERROR in PixTextarea component, @label param is necessary when giving @requiredLabel',
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
return this.args.requiredLabel || null;
|
package/addon/styles/_a11y.scss
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.pix-banner {
|
|
2
|
-
padding: 16px 24px;
|
|
3
2
|
display: flex;
|
|
4
3
|
align-items: center;
|
|
4
|
+
padding: 16px 24px;
|
|
5
5
|
font-size: 0.875rem;
|
|
6
6
|
box-shadow: 0 4px 8px rgba(7, 20, 46, 0.08);
|
|
7
7
|
|
|
8
8
|
&__action {
|
|
9
|
-
text-decoration: underline;
|
|
10
9
|
color: inherit;
|
|
10
|
+
text-decoration: underline;
|
|
11
11
|
|
|
12
12
|
.external-link {
|
|
13
13
|
margin-left: 4px;
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&__icon {
|
|
25
|
-
font-size: 1.125rem;
|
|
26
25
|
margin-right: $pix-spacing-xs;
|
|
26
|
+
font-size: 1.125rem;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&--information {
|
|
30
|
-
background-color: $pix-primary-5;
|
|
31
30
|
color: $pix-primary-70;
|
|
31
|
+
background-color: $pix-primary-5;
|
|
32
32
|
|
|
33
33
|
.pix-icon-button {
|
|
34
|
-
background-color: $pix-primary-5;
|
|
35
34
|
color: $pix-primary-70;
|
|
35
|
+
background-color: $pix-primary-5;
|
|
36
36
|
|
|
37
37
|
&:hover:enabled,
|
|
38
38
|
&:focus:enabled,
|
|
39
39
|
&:active:enabled {
|
|
40
|
-
background-color: $pix-primary-10;
|
|
41
40
|
color: $pix-primary-70;
|
|
41
|
+
background-color: $pix-primary-10;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&:focus:enabled {
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&--warning {
|
|
51
|
-
background-color: $pix-warning-5;
|
|
52
51
|
color: $pix-warning-70;
|
|
52
|
+
background-color: $pix-warning-5;
|
|
53
53
|
|
|
54
54
|
.pix-icon-button {
|
|
55
|
-
background-color: $pix-warning-5;
|
|
56
55
|
color: $pix-warning-70;
|
|
56
|
+
background-color: $pix-warning-5;
|
|
57
57
|
|
|
58
58
|
&:hover:enabled,
|
|
59
59
|
&:focus:enabled,
|
|
60
60
|
&:active:enabled {
|
|
61
|
-
background-color: $pix-warning-10;
|
|
62
61
|
color: $pix-warning-70;
|
|
62
|
+
background-color: $pix-warning-10;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
&:focus:enabled {
|
|
@@ -69,18 +69,18 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&--error {
|
|
72
|
-
background-color: $pix-error-5;
|
|
73
72
|
color: $pix-error-70;
|
|
73
|
+
background-color: $pix-error-5;
|
|
74
74
|
|
|
75
75
|
.pix-icon-button {
|
|
76
|
-
background-color: $pix-error-5;
|
|
77
76
|
color: $pix-error-70;
|
|
77
|
+
background-color: $pix-error-5;
|
|
78
78
|
|
|
79
79
|
&:hover:enabled,
|
|
80
80
|
&:focus:enabled,
|
|
81
81
|
&:active:enabled {
|
|
82
|
-
background-color: $pix-error-10;
|
|
83
82
|
color: $pix-error-70;
|
|
83
|
+
background-color: $pix-error-10;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&:focus:enabled {
|
|
@@ -90,17 +90,17 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&--communication {
|
|
93
|
-
background-color: $pix-primary;
|
|
94
93
|
color: $pix-neutral-0;
|
|
94
|
+
background-color: $pix-primary;
|
|
95
95
|
|
|
96
96
|
&-orga {
|
|
97
|
-
background-color: $pix-secondary-orga-80;
|
|
98
97
|
color: $pix-neutral-0;
|
|
98
|
+
background-color: $pix-secondary-orga-80;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&-certif {
|
|
102
|
-
background-color: $pix-secondary-certif-50;
|
|
103
102
|
color: $pix-neutral-0;
|
|
103
|
+
background-color: $pix-secondary-certif-50;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.pix-button {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: fit-content;
|
|
2
6
|
color: $pix-neutral-0;
|
|
3
|
-
font-size: 0.875rem;
|
|
4
7
|
font-weight: $font-medium;
|
|
8
|
+
font-size: 0.875rem;
|
|
5
9
|
white-space: nowrap;
|
|
6
|
-
|
|
10
|
+
text-decoration: none;
|
|
7
11
|
background-color: $pix-primary;
|
|
8
12
|
border: 1px solid transparent;
|
|
9
13
|
outline: none;
|
|
10
|
-
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
text-decoration: none;
|
|
14
|
-
width: fit-content;
|
|
14
|
+
cursor: pointer;
|
|
15
15
|
|
|
16
16
|
&--shape-rounded {
|
|
17
17
|
border-radius: 25px;
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&--disabled {
|
|
37
|
-
opacity: 0.5;
|
|
38
37
|
cursor: not-allowed;
|
|
38
|
+
opacity: 0.5;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&--background-blue {
|
|
@@ -139,15 +139,15 @@
|
|
|
139
139
|
|
|
140
140
|
&:focus,
|
|
141
141
|
&:focus-visible {
|
|
142
|
-
background-color: $pix-neutral-90;
|
|
143
142
|
color: $pix-neutral-0;
|
|
143
|
+
background-color: $pix-neutral-90;
|
|
144
144
|
outline: 1px solid $pix-neutral-0;
|
|
145
145
|
outline-offset: -4px;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
&:active {
|
|
149
|
-
background-color: $pix-neutral-25;
|
|
150
149
|
color: $pix-neutral-90;
|
|
150
|
+
background-color: $pix-neutral-25;
|
|
151
151
|
outline: none;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
|
|
156
156
|
/* deprecated in favor of --background-transparent-light + --border */
|
|
157
157
|
&--background-transparent {
|
|
158
|
-
background-color: transparent;
|
|
159
158
|
color: $pix-neutral-50;
|
|
159
|
+
background-color: transparent;
|
|
160
160
|
border: 1px solid $pix-neutral-50;
|
|
161
161
|
}
|
|
162
162
|
|
|
@@ -170,15 +170,15 @@
|
|
|
170
170
|
|
|
171
171
|
&:not(.pix-button--disabled) {
|
|
172
172
|
&:hover {
|
|
173
|
-
background-color: $pix-neutral-60;
|
|
174
173
|
color: $pix-neutral-0;
|
|
174
|
+
background-color: $pix-neutral-60;
|
|
175
175
|
border: 1px solid transparent;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
&:focus,
|
|
179
179
|
&:focus-visible {
|
|
180
|
-
background-color: $pix-neutral-90;
|
|
181
180
|
color: $pix-neutral-0;
|
|
181
|
+
background-color: $pix-neutral-90;
|
|
182
182
|
outline: 1px solid $pix-neutral-0;
|
|
183
183
|
outline-offset: -4px;
|
|
184
184
|
}
|
|
@@ -200,15 +200,15 @@
|
|
|
200
200
|
|
|
201
201
|
&:not(.pix-button--disabled) {
|
|
202
202
|
&:hover {
|
|
203
|
-
background-color: $pix-neutral-10;
|
|
204
203
|
color: $pix-neutral-90;
|
|
204
|
+
background-color: $pix-neutral-10;
|
|
205
205
|
border: 1px solid transparent;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
&:focus,
|
|
209
209
|
&:focus-visible {
|
|
210
|
-
background-color: $pix-neutral-10;
|
|
211
210
|
color: $pix-neutral-90;
|
|
211
|
+
background-color: $pix-neutral-10;
|
|
212
212
|
outline: 1px solid $pix-neutral-90;
|
|
213
213
|
outline-offset: -4px;
|
|
214
214
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.pix-checkbox {
|
|
2
2
|
position: relative;
|
|
3
3
|
z-index: 0;
|
|
4
|
-
align-items: center;
|
|
5
4
|
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
6
|
color: $pix-neutral-70;
|
|
7
7
|
|
|
8
8
|
& + .pix-checkbox {
|
|
@@ -30,30 +30,30 @@
|
|
|
30
30
|
/* Input */
|
|
31
31
|
.pix-checkbox__input {
|
|
32
32
|
position: relative;
|
|
33
|
+
flex-shrink: 0;
|
|
33
34
|
width: 1rem;
|
|
34
35
|
height: 1rem;
|
|
35
|
-
flex-shrink: 0;
|
|
36
36
|
background-color: $pix-neutral-0;
|
|
37
37
|
border: 1.5px solid $pix-neutral-70;
|
|
38
38
|
border-radius: 2px;
|
|
39
|
-
appearance: none;
|
|
40
39
|
cursor: pointer;
|
|
40
|
+
appearance: none;
|
|
41
41
|
|
|
42
42
|
// Hover effect
|
|
43
43
|
&::before {
|
|
44
|
-
content: '';
|
|
45
44
|
position: absolute;
|
|
46
|
-
z-index: -1;
|
|
47
45
|
top: 50%;
|
|
48
46
|
left: 50%;
|
|
47
|
+
z-index: -1;
|
|
49
48
|
width: 1rem;
|
|
50
49
|
height: 1rem;
|
|
51
|
-
transform: translate(-50%, -50%) scale(1);
|
|
52
|
-
border-radius: 50%;
|
|
53
50
|
background-color: $pix-neutral-15;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
transform: translate(-50%, -50%) scale(1);
|
|
54
53
|
visibility: hidden;
|
|
55
54
|
opacity: 0;
|
|
56
55
|
transition: all 0.3s ease;
|
|
56
|
+
content: '';
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&:hover,
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
border-color: $pix-neutral-90;
|
|
63
63
|
|
|
64
64
|
&::before {
|
|
65
|
+
transform: translate(-50%, -50%) scale(1.75);
|
|
65
66
|
visibility: visible;
|
|
66
67
|
opacity: 1;
|
|
67
|
-
transform: translate(-50%, -50%) scale(1.75);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -87,13 +87,13 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&::after {
|
|
90
|
-
content: '';
|
|
91
90
|
position: absolute;
|
|
92
|
-
|
|
91
|
+
background-image: url("data:image/svg+xml,%3Csvg width='13' height='10' viewBox='0 0 13 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 3L0 4.5L5 9.5L13 1.5L11.5 0L5 6.5L1.5 3Z' fill='white'/%3E%3C/svg%3E%0A");
|
|
93
92
|
background-repeat: no-repeat;
|
|
94
93
|
background-position: center;
|
|
95
94
|
background-size: contain;
|
|
96
|
-
|
|
95
|
+
content: '';
|
|
96
|
+
inset: 10%;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&::after {
|
|
113
|
-
inset: 15%;
|
|
114
113
|
background-image: url("data:image/svg+xml,%3Csvg width='10' height='2' viewBox='0 0 10 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='10' height='2' fill='white'/%3E%3C/svg%3E%0A");
|
|
114
|
+
inset: 15%;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.pix-collapsible {
|
|
2
|
-
border: 1px solid $pix-neutral-20;
|
|
3
2
|
background-color: $pix-neutral-0;
|
|
3
|
+
border: 1px solid $pix-neutral-20;
|
|
4
4
|
|
|
5
5
|
&:first-child,
|
|
6
6
|
&:first-child .pix-collapsible__title {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
&:last-child,
|
|
12
12
|
&:last-child .pix-collapsible__title:not([aria-expanded='true']) {
|
|
13
|
-
border-bottom-left-radius: 0.5rem;
|
|
14
13
|
border-bottom-right-radius: 0.5rem;
|
|
14
|
+
border-bottom-left-radius: 0.5rem;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&:not(:first-child) {
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
|
|
22
22
|
.pix-collapsible__title {
|
|
23
23
|
display: flex;
|
|
24
|
-
justify-content: space-between;
|
|
25
24
|
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
26
|
width: 100%;
|
|
27
27
|
padding: $pix-spacing-s;
|
|
28
|
-
border: none;
|
|
29
28
|
color: $pix-neutral-90;
|
|
30
29
|
font-size: 1rem;
|
|
31
30
|
line-height: 1.25;
|
|
31
|
+
border: none;
|
|
32
32
|
|
|
33
33
|
&:hover,
|
|
34
34
|
&:focus,
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
.pix-collapsible-title {
|
|
45
45
|
&__container {
|
|
46
46
|
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
47
|
flex-grow: 1;
|
|
48
|
+
align-items: center;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&__icon {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
&__toggle-icon {
|
|
57
57
|
width: 1rem;
|
|
58
58
|
height: 1rem;
|
|
59
|
-
padding: 0.5rem;
|
|
60
59
|
margin-left: $pix-spacing-xs;
|
|
60
|
+
padding: 0.5rem;
|
|
61
61
|
border-radius: 50%;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
|
|
69
69
|
.pix-collapsible__content {
|
|
70
70
|
padding: $pix-spacing-s;
|
|
71
|
+
color: $pix-neutral-60;
|
|
71
72
|
font-size: 0.875rem;
|
|
72
73
|
line-height: 1.25rem;
|
|
73
|
-
color: $pix-neutral-60;
|
|
74
74
|
|
|
75
75
|
&[aria-hidden='true'] {
|
|
76
76
|
display: none;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.pix-dropdown {
|
|
2
|
-
width: 100%;
|
|
3
2
|
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
4
|
|
|
5
5
|
button {
|
|
6
6
|
margin: 0;
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&__controller {
|
|
16
|
-
width: 100%;
|
|
17
16
|
position: relative;
|
|
17
|
+
width: 100%;
|
|
18
18
|
|
|
19
19
|
&--placeholder {
|
|
20
20
|
@include hoverFormElement();
|
|
@@ -23,43 +23,43 @@
|
|
|
23
23
|
width: 100%;
|
|
24
24
|
min-width: 250px;
|
|
25
25
|
min-height: 34px;
|
|
26
|
-
border: 1px solid $pix-neutral-40;
|
|
27
|
-
border-radius: $pix-spacing-xxs;
|
|
28
26
|
padding: 0;
|
|
29
27
|
background: $pix-neutral-0;
|
|
28
|
+
border: 1px solid $pix-neutral-40;
|
|
29
|
+
border-radius: $pix-spacing-xxs;
|
|
30
30
|
|
|
31
31
|
&.expanded {
|
|
32
|
-
border-bottom-left-radius: 0;
|
|
33
32
|
border-bottom-right-radius: 0;
|
|
33
|
+
border-bottom-left-radius: 0;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&--placeholder-text {
|
|
38
|
-
color: $pix-neutral-90;
|
|
39
38
|
margin: 0;
|
|
40
|
-
|
|
39
|
+
padding: 8px 68px 8px 16px;
|
|
41
40
|
overflow: hidden;
|
|
42
|
-
|
|
41
|
+
color: $pix-neutral-90;
|
|
42
|
+
font-size: 0.875rem;
|
|
43
43
|
white-space: nowrap;
|
|
44
|
-
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
45
|
|
|
46
46
|
&.default {
|
|
47
|
-
color: $pix-neutral-60;
|
|
48
47
|
padding-right: 36px;
|
|
48
|
+
color: $pix-neutral-60;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&--clear {
|
|
53
|
-
background: transparent;
|
|
54
|
-
font-size: 1rem;
|
|
55
|
-
color: $pix-neutral-50;
|
|
56
53
|
position: absolute;
|
|
54
|
+
top: 1px;
|
|
55
|
+
right: 38px;
|
|
56
|
+
width: fit-content;
|
|
57
57
|
padding: 8px 8px 6px;
|
|
58
|
+
color: $pix-neutral-50;
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
background: transparent;
|
|
58
61
|
border: none;
|
|
59
62
|
border-right: 2px solid $pix-neutral-40;
|
|
60
|
-
right: 38px;
|
|
61
|
-
top: 1px;
|
|
62
|
-
width: fit-content;
|
|
63
63
|
|
|
64
64
|
&:hover {
|
|
65
65
|
color: $pix-neutral-70;
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&--chevron {
|
|
70
|
-
background: transparent;
|
|
71
|
-
border: none;
|
|
72
|
-
padding: 0;
|
|
73
70
|
position: absolute;
|
|
74
71
|
top: 9px;
|
|
75
72
|
right: 12px;
|
|
73
|
+
padding: 0;
|
|
76
74
|
color: $pix-neutral-50;
|
|
75
|
+
background: transparent;
|
|
76
|
+
border: none;
|
|
77
77
|
cursor: pointer;
|
|
78
78
|
|
|
79
79
|
&:hover {
|
|
@@ -83,15 +83,15 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
&__menu {
|
|
86
|
-
background: $pix-neutral-0;
|
|
87
86
|
position: absolute;
|
|
88
87
|
top: 100%;
|
|
88
|
+
z-index: 1;
|
|
89
89
|
width: 100%;
|
|
90
90
|
max-height: 0;
|
|
91
|
-
transition: max-height ease-in 0.5s;
|
|
92
91
|
overflow: hidden;
|
|
93
92
|
overflow-y: auto;
|
|
94
|
-
|
|
93
|
+
background: $pix-neutral-0;
|
|
94
|
+
transition: max-height ease-in 0.5s;
|
|
95
95
|
|
|
96
96
|
&.expanded {
|
|
97
97
|
max-height: 300px;
|
|
@@ -101,24 +101,24 @@
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&--search {
|
|
104
|
-
display: flex;
|
|
105
104
|
position: relative;
|
|
105
|
+
display: flex;
|
|
106
106
|
|
|
107
107
|
&-icon {
|
|
108
|
-
color: $pix-neutral-30;
|
|
109
|
-
margin: 4px;
|
|
110
108
|
position: absolute;
|
|
111
|
-
left: 16px;
|
|
112
109
|
top: 12px;
|
|
110
|
+
left: 16px;
|
|
111
|
+
margin: 4px;
|
|
112
|
+
color: $pix-neutral-30;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
&-input {
|
|
116
|
-
border: none;
|
|
117
|
-
border-bottom: 1px solid $pix-neutral-40;
|
|
118
|
-
font-size: 0.875rem;
|
|
119
116
|
flex-grow: 1;
|
|
120
117
|
margin: 12px 12px 8px;
|
|
121
118
|
padding: 4px 4px 4px 32px;
|
|
119
|
+
font-size: 0.875rem;
|
|
120
|
+
border: none;
|
|
121
|
+
border-bottom: 1px solid $pix-neutral-40;
|
|
122
122
|
outline: none;
|
|
123
123
|
|
|
124
124
|
&:hover {
|
|
@@ -126,13 +126,13 @@
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
&:focus {
|
|
129
|
-
box-shadow: inset 0 -0.7px 0 0 $pix-primary;
|
|
130
129
|
border-color: $pix-primary;
|
|
130
|
+
box-shadow: inset 0 -0.7px 0 0 $pix-primary;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&-label {
|
|
134
|
-
height: 0;
|
|
135
134
|
width: 0;
|
|
135
|
+
height: 0;
|
|
136
136
|
overflow: hidden;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
|
|
150
150
|
&:focus,
|
|
151
151
|
&:hover {
|
|
152
|
-
outline: none;
|
|
153
152
|
background: $pix-neutral-15;
|
|
153
|
+
outline: none;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|