@1024pix/pix-ui 38.2.1 → 39.0.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 (43) hide show
  1. package/.storybook/logo.svg +1 -0
  2. package/.storybook/manager.js +1 -1
  3. package/.storybook/storybook-custom-theme.js +4 -4
  4. package/.stylelintrc.json +0 -2
  5. package/CHANGELOG.md +16 -0
  6. package/addon/components/pix-button-upload.js +1 -1
  7. package/addon/styles/_a11y.scss +2 -2
  8. package/addon/styles/_pix-background-header.scss +1 -1
  9. package/addon/styles/_pix-banner.scss +15 -15
  10. package/addon/styles/_pix-button-base.scss +14 -15
  11. package/addon/styles/_pix-button-upload.scss +2 -0
  12. package/addon/styles/_pix-button.scss +1 -1
  13. package/addon/styles/_pix-checkbox.scss +12 -12
  14. package/addon/styles/_pix-collapsible.scss +7 -7
  15. package/addon/styles/_pix-dropdown.scss +32 -32
  16. package/addon/styles/_pix-filter-banner.scss +9 -9
  17. package/addon/styles/_pix-filterable-and-searchable-select.scss +5 -5
  18. package/addon/styles/_pix-icon-button.scss +10 -10
  19. package/addon/styles/_pix-indicator-card.scss +8 -8
  20. package/addon/styles/_pix-input-code.scss +5 -5
  21. package/addon/styles/_pix-input-password.scss +8 -8
  22. package/addon/styles/_pix-input.scss +6 -6
  23. package/addon/styles/_pix-message.scss +2 -2
  24. package/addon/styles/_pix-modal.scss +14 -14
  25. package/addon/styles/_pix-multi-select.scss +27 -27
  26. package/addon/styles/_pix-pagination.scss +5 -5
  27. package/addon/styles/_pix-progress-gauge.scss +5 -5
  28. package/addon/styles/_pix-radio-button.scss +10 -10
  29. package/addon/styles/_pix-return-to.scss +9 -9
  30. package/addon/styles/_pix-search-input.scss +7 -7
  31. package/addon/styles/_pix-select.scss +29 -29
  32. package/addon/styles/_pix-selectable-tag.scss +17 -17
  33. package/addon/styles/_pix-sidebar.scss +8 -8
  34. package/addon/styles/_pix-tag.scss +7 -7
  35. package/addon/styles/_pix-textarea.scss +6 -6
  36. package/addon/styles/_pix-toggle.scss +7 -7
  37. package/addon/styles/_pix-tooltip.scss +20 -20
  38. package/addon/styles/normalize-reset/_normalize.scss +12 -12
  39. package/addon/styles/normalize-reset/_reset.scss +8 -8
  40. package/addon/styles/pix-design-tokens/_fonts.scss +8 -8
  41. package/addon/styles/pix-design-tokens/_form.scss +15 -15
  42. package/addon/styles/pix-design-tokens/_typography.scss +2 -2
  43. package/package.json +4 -3
@@ -0,0 +1 @@
1
+ <svg version="1.1" viewBox="0 0 350 153.7" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="linearGradient-1" x1="92.643" x2="92.643" y1=".0062896" y2="54.422" gradientTransform="scale(.65034 1.5377)" gradientUnits="userSpaceOnUse"><stop stop-color="#12A3FF" offset="0"/><stop stop-color="#3D68FF" offset="1"/></linearGradient><linearGradient id="linearGradient-2" x1="43.966" x2="43.966" y1=".0072567" y2="62.791" gradientTransform="scale(.75033 1.3327)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFBE00" offset="0"/><stop stop-color="#FF9F00" offset="1"/></linearGradient><linearGradient id="linearGradient-3" x1="69.059" x2="69.059" y1="45.677" y2="115.73" gradientTransform="scale(.80533 1.2417)" gradientUnits="userSpaceOnUse"><stop stop-color="#12A3FF" offset="0"/><stop stop-color="#3D68FF" offset="1"/></linearGradient><linearGradient id="linearGradient-4" x1="282.25" x2="282.25" y1="23.69" y2="59.957" gradientTransform="scale(.42229 2.3681)" gradientUnits="userSpaceOnUse"><stop stop-color="#12A3FF" offset="0"/><stop stop-color="#3D68FF" offset="1"/></linearGradient></defs><g id="6.-logos/logos--pix/couleur" transform="translate(56.028 -22.1)" fill="none" fill-rule="evenodd"><g id="Group" transform="translate(143,58.5)"><path id="Combined-Shape" d="m42.555 61.426 3.0974-3.7582c2.7559-3.1778 4.7143-6.2465 5.8753-9.2692l23.577 28.786c4.2792 5.4833 4.0752 6.4989-3.0566 6.4989h-2.4454c-7.1318 0-9.7809-1.4217-14.06-6.4989zm-3.3e-5 -39.159 12.988-15.758c4.2792-5.0772 6.9283-6.4989 14.06-6.4989h2.4454c7.1318 0 7.3358 1.0156 3.0566 6.4989l-23.577 28.786c-1.161-3.0227-3.1194-6.0913-5.8753-9.2692z" fill="url(#linearGradient-1)"/><path transform="matrix(-1 0 0 1 48.414 0)" d="m41.866 83.684c7.1318 0 7.3358-1.0156 3.0566-6.4989l-24.452-29.855c-1.8339-2.2339-2.8528-4.0619-2.8528-5.4836 0-1.6247 1.019-3.4525 2.8528-5.4833l24.452-29.855c4.2792-5.4833 4.0752-6.4989-3.0566-6.4989h-2.4454c-7.1318 0-9.7809 1.4217-14.06 6.4989l-18.747 22.746c-7.9473 9.1391-7.9473 16.044 0 25.184l18.747 22.746c4.2792 5.0772 6.9283 6.4989 14.06 6.4989z" fill="url(#linearGradient-2)"/></g><path d="m17 168.22c0 6.0636 1.521 7.5795 7.6048 7.5795h2.0278c6.0838 0 7.6048-1.5159 7.6048-7.5795v-35.202c4.5629 7.2425 12.844 10.948 24.842 10.948 23.49 0 35.151-12.296 35.151-36.718v-14.654c0-24.423-12.506-35.876-38.7-35.876-24.335 0-38.531 11.79-38.531 35.876zm59.824-60.635c0 14.148-4.7318 20.043-21.124 20.043-16.731 0-21.462-6.0636-21.462-20.043v-14.485c0-14.148 5.07-20.212 21.462-20.212 16.73 0 21.124 6.0636 21.124 20.212z" fill="url(#linearGradient-3)"/><path d="m110.49 134.4c0 6.0636 1.521 7.5795 7.6048 7.5795h2.1967c6.0838 0 7.6048-1.5159 7.6048-7.5795v-68.383c0-6.0636-1.521-7.5795-7.6048-7.5795h-2.1967c-6.0838 0-7.6048 1.5159-7.6048 7.5795zm1.1828-94.153c4.225 4.0423 10.985 4.0423 15.041 0 4.2247-4.211 4.2247-10.948 0-14.99-4.0561-4.211-10.816-4.211-15.041 0-4.2247 4.0423-4.2247 10.779 0 14.99z" fill="url(#linearGradient-4)"/></g></svg>
@@ -1,4 +1,4 @@
1
- import addons from '@storybook/addons';
1
+ import { addons } from '@storybook/manager-api';
2
2
  import storybookCustomTheme from './storybook-custom-theme';
3
3
 
4
4
  addons.setConfig({
@@ -1,5 +1,7 @@
1
1
  import { create } from '@storybook/theming/create';
2
2
 
3
+ import logo from './logo.svg';
4
+
3
5
  export default create({
4
6
  base: 'light', // needed, this is not an optional parameter
5
7
 
@@ -30,8 +32,6 @@ export default create({
30
32
  // inputBorder: 'white',
31
33
  // inputTextColor: 'white',
32
34
  // inputBorderRadius: 4,
33
-
34
35
  brandTitle: 'Pix',
35
- brandUrl: 'https://pix.fr/',
36
- brandImage: 'https://pix.fr/images/pix-logo.svg',
37
- });
36
+ brandImage: logo,
37
+ });
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,21 @@
1
1
  # Pix-UI Changelog
2
2
 
3
+ ## v39.0.0 (31/07/2023)
4
+
5
+
6
+ ### :bug: Correction
7
+ - [#455](https://github.com/1024pix/pix-ui/pull/455) [BUGFIX] Corrige la personnalisation du logo de storybook.
8
+ - [#452](https://github.com/1024pix/pix-ui/pull/452) [BUGFIX] Ajuster la taille du bouton upload.
9
+
10
+ ## v38.2.2 (28/07/2023)
11
+
12
+
13
+ ### :building_construction: Tech
14
+ - [#453](https://github.com/1024pix/pix-ui/pull/453) [TECH] Ajout de l'ordonnancement des propriétés CSS.
15
+
16
+ ### :arrow_up: Montée de version
17
+ - [#450](https://github.com/1024pix/pix-ui/pull/450) [BUMP] Update dependency stylelint-config-standard-scss to v10 (dossier racine).
18
+
3
19
  ## v38.2.1 (25/07/2023)
4
20
 
5
21
 
@@ -7,7 +7,7 @@ export default class PixButtonUpload extends PixButtonBase {
7
7
  files = [];
8
8
 
9
9
  get className() {
10
- return super.baseClassNames.join(' ');
10
+ return [...super.baseClassNames, 'pix-button-upload'].join(' ');
11
11
  }
12
12
 
13
13
  @action
@@ -2,9 +2,9 @@
2
2
  position: absolute;
3
3
  width: 1px;
4
4
  height: 1px;
5
- padding: 0;
6
5
  margin: -1px;
6
+ padding: 0;
7
7
  overflow: hidden;
8
- clip: rect(0, 0, 0, 0);
9
8
  border: 0;
9
+ clip: rect(0, 0, 0, 0);
10
10
  }
@@ -9,9 +9,9 @@
9
9
  z-index: -1;
10
10
  width: 100%;
11
11
  min-height: 270px;
12
+ color: $pix-neutral-0;
12
13
  background: $pix-primary-app-gradient;
13
14
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
14
- color: $pix-neutral-0;
15
15
  }
16
16
 
17
17
  &__content {
@@ -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,16 @@
1
1
  .pix-button {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
2
5
  color: $pix-neutral-0;
3
- font-size: 0.875rem;
4
6
  font-weight: $font-medium;
7
+ font-size: 0.875rem;
5
8
  white-space: nowrap;
6
- cursor: pointer;
9
+ text-decoration: none;
7
10
  background-color: $pix-primary;
8
11
  border: 1px solid transparent;
9
12
  outline: none;
10
- display: flex;
11
- justify-content: center;
12
- align-items: center;
13
- text-decoration: none;
14
- width: fit-content;
13
+ cursor: pointer;
15
14
 
16
15
  &--shape-rounded {
17
16
  border-radius: 25px;
@@ -34,8 +33,8 @@
34
33
  }
35
34
 
36
35
  &--disabled {
37
- opacity: 0.5;
38
36
  cursor: not-allowed;
37
+ opacity: 0.5;
39
38
  }
40
39
 
41
40
  &--background-blue {
@@ -139,15 +138,15 @@
139
138
 
140
139
  &:focus,
141
140
  &:focus-visible {
142
- background-color: $pix-neutral-90;
143
141
  color: $pix-neutral-0;
142
+ background-color: $pix-neutral-90;
144
143
  outline: 1px solid $pix-neutral-0;
145
144
  outline-offset: -4px;
146
145
  }
147
146
 
148
147
  &:active {
149
- background-color: $pix-neutral-25;
150
148
  color: $pix-neutral-90;
149
+ background-color: $pix-neutral-25;
151
150
  outline: none;
152
151
  }
153
152
  }
@@ -155,8 +154,8 @@
155
154
 
156
155
  /* deprecated in favor of --background-transparent-light + --border */
157
156
  &--background-transparent {
158
- background-color: transparent;
159
157
  color: $pix-neutral-50;
158
+ background-color: transparent;
160
159
  border: 1px solid $pix-neutral-50;
161
160
  }
162
161
 
@@ -170,15 +169,15 @@
170
169
 
171
170
  &:not(.pix-button--disabled) {
172
171
  &:hover {
173
- background-color: $pix-neutral-60;
174
172
  color: $pix-neutral-0;
173
+ background-color: $pix-neutral-60;
175
174
  border: 1px solid transparent;
176
175
  }
177
176
 
178
177
  &:focus,
179
178
  &:focus-visible {
180
- background-color: $pix-neutral-90;
181
179
  color: $pix-neutral-0;
180
+ background-color: $pix-neutral-90;
182
181
  outline: 1px solid $pix-neutral-0;
183
182
  outline-offset: -4px;
184
183
  }
@@ -200,15 +199,15 @@
200
199
 
201
200
  &:not(.pix-button--disabled) {
202
201
  &:hover {
203
- background-color: $pix-neutral-10;
204
202
  color: $pix-neutral-90;
203
+ background-color: $pix-neutral-10;
205
204
  border: 1px solid transparent;
206
205
  }
207
206
 
208
207
  &:focus,
209
208
  &:focus-visible {
210
- background-color: $pix-neutral-10;
211
209
  color: $pix-neutral-90;
210
+ background-color: $pix-neutral-10;
212
211
  outline: 1px solid $pix-neutral-90;
213
212
  outline-offset: -4px;
214
213
  }
@@ -1,4 +1,6 @@
1
1
  .pix-button-upload {
2
+ width: fit-content;
3
+
2
4
  &__input {
3
5
  display: none;
4
6
  }
@@ -19,11 +19,11 @@
19
19
  }
20
20
 
21
21
  .loader > div {
22
+ display: inline-block;
22
23
  width: 10px;
23
24
  height: 10px;
24
25
  background-color: $pix-neutral-0;
25
26
  border-radius: 100%;
26
- display: inline-block;
27
27
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
28
28
  }
29
29
 
@@ -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
- inset: 10%;
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
- 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");
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
- font-size: 0.875rem;
39
+ padding: 8px 68px 8px 16px;
41
40
  overflow: hidden;
42
- text-overflow: ellipsis;
41
+ color: $pix-neutral-90;
42
+ font-size: 0.875rem;
43
43
  white-space: nowrap;
44
- padding: 8px 68px 8px 16px;
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
- z-index: 1;
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
  }