@1024pix/pix-ui 26.0.3 → 26.0.5
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 +1 -0
- package/.stylelintrc.json +27 -0
- package/CHANGELOG.md +19 -0
- package/addon/components/pix-select.hbs +1 -1
- package/addon/components/pix-select.js +4 -0
- package/addon/styles/_a11y.scss +8 -8
- package/addon/styles/_pix-banner.scss +1 -1
- package/addon/styles/_pix-block.scss +2 -2
- package/addon/styles/_pix-collapsible.scss +1 -1
- package/addon/styles/_pix-filterable-and-searchable-select.scss +2 -2
- package/addon/styles/_pix-modal.scss +3 -3
- package/addon/styles/_pix-multi-select.scss +2 -2
- package/addon/styles/_pix-select.scss +2 -2
- package/addon/styles/_pix-tooltip.scss +2 -2
- package/addon/styles/normalize-reset/_normalize.scss +185 -185
- package/addon/styles/normalize-reset/_reset.scss +13 -13
- package/addon/styles/pix-design-tokens/_breakpoints.scss +1 -1
- package/addon/styles/pix-design-tokens/_colors.scss +169 -169
- package/addon/styles/pix-design-tokens/_form.scss +6 -6
- package/app/stories/pix-filterable-and-searchable-select.stories.js +4 -27
- package/app/stories/pix-multi-select.stories.js +7 -9
- package/package.json +10 -4
package/.circleci/config.yml
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["@1024pix/stylelint-config"],
|
|
3
|
+
"rules": {
|
|
4
|
+
"alpha-value-notation": null,
|
|
5
|
+
"block-opening-brace-space-before": null,
|
|
6
|
+
"color-function-notation": null,
|
|
7
|
+
"comment-empty-line-before": null,
|
|
8
|
+
"declaration-block-no-redundant-longhand-properties": null,
|
|
9
|
+
"declaration-block-single-line-max-declarations": null,
|
|
10
|
+
"declaration-empty-line-before": null,
|
|
11
|
+
"font-family-name-quotes": null,
|
|
12
|
+
"font-family-no-duplicate-names": null,
|
|
13
|
+
"function-url-quotes": null,
|
|
14
|
+
"no-descending-specificity": null,
|
|
15
|
+
"no-empty-source": null,
|
|
16
|
+
"property-no-vendor-prefix": null,
|
|
17
|
+
"rule-empty-line-before": null,
|
|
18
|
+
"scss/at-mixin-argumentless-call-parentheses": null,
|
|
19
|
+
"scss/at-mixin-pattern": null,
|
|
20
|
+
"scss/dollar-variable-empty-line-before": null,
|
|
21
|
+
"scss/double-slash-comment-empty-line-before": null,
|
|
22
|
+
"scss/no-global-function-names": null,
|
|
23
|
+
"scss/operator-no-newline-before": null,
|
|
24
|
+
"selector-id-pattern": null,
|
|
25
|
+
"selector-pseudo-element-colon-notation": null
|
|
26
|
+
}
|
|
27
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v26.0.5 (20/02/2023)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :building_construction: Tech
|
|
7
|
+
- [#345](https://github.com/1024pix/pix-ui/pull/345) [TECH] Active la règle de lint SCSS d'ajout d'espace après les `:`
|
|
8
|
+
- [#346](https://github.com/1024pix/pix-ui/pull/346) [TECH] Active la règle de lint SCSS pour ne pas mettre d'unité derrière les `0`
|
|
9
|
+
- [#344](https://github.com/1024pix/pix-ui/pull/344) [TECH] Active la règle de lint SCSS de format de couleurs
|
|
10
|
+
- [#343](https://github.com/1024pix/pix-ui/pull/343) [TECH] Active la règle de lint SCSS d'indentation
|
|
11
|
+
- [#336](https://github.com/1024pix/pix-ui/pull/336) [TECH] Mise en place de Stylelint
|
|
12
|
+
|
|
13
|
+
## v26.0.4 (20/02/2023)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### :building_construction: Tech
|
|
17
|
+
- [#335](https://github.com/1024pix/pix-ui/pull/335) [TECH] Améliorations techniques diverses
|
|
18
|
+
|
|
19
|
+
### :bug: Correction
|
|
20
|
+
- [#340](https://github.com/1024pix/pix-ui/pull/340) [BUGFIX] Ne pas permettre le focus de l'option par défaut cachée du PixSelect (PIX-7196)
|
|
21
|
+
|
|
3
22
|
## v26.0.3 (16/02/2023)
|
|
4
23
|
|
|
5
24
|
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
' pix-select-options-category__option--selected'
|
|
67
67
|
}}{{unless this.displayDefaultOption ' pix-select-options-category__option--hidden'}}"
|
|
68
68
|
role="option"
|
|
69
|
-
tabindex={{if this.
|
|
69
|
+
tabindex={{if this.isDefaultOptionHidden "-1" "0"}}
|
|
70
70
|
aria-selected={{if @value "false" "true"}}
|
|
71
71
|
{{on "click" (fn this.onChange this.defaultOption)}}
|
|
72
72
|
{{on-enter-action (fn this.onChange this.defaultOption)}}
|
|
@@ -33,6 +33,10 @@ export default class PixSelect extends Component {
|
|
|
33
33
|
return !this.searchValue && !this.args.hideDefaultOption;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
get isDefaultOptionHidden() {
|
|
37
|
+
return !this.isExpanded || this.args.hideDefaultOption;
|
|
38
|
+
}
|
|
39
|
+
|
|
36
40
|
get className() {
|
|
37
41
|
const classes = ['pix-select-button'];
|
|
38
42
|
if (this.args.className) {
|
package/addon/styles/_a11y.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.screen-reader-only {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
position: absolute;
|
|
3
|
+
width: 1px;
|
|
4
|
+
height: 1px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: -1px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
clip: rect(0, 0, 0, 0);
|
|
9
|
+
border: 0;
|
|
10
10
|
}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
border-radius: 5px;
|
|
5
5
|
|
|
6
6
|
&--shadow-light {
|
|
7
|
-
box-shadow:
|
|
7
|
+
box-shadow: 0 4px 8px rgba($pix-neutral-110, 0.08);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&--shadow-heavy {
|
|
11
|
-
box-shadow:
|
|
11
|
+
box-shadow: 0 12px 24px rgba($pix-neutral-110, 0.08);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -90,6 +90,6 @@
|
|
|
90
90
|
|
|
91
91
|
// Pour le deuxième élément d'affilé qui est refermé, on enlève la bordure-top
|
|
92
92
|
.pix-collapsible:not(.pix-collapsible--uncollapsed)
|
|
93
|
-
|
|
93
|
+
+ .pix-collapsible:not(.pix-collapsible--uncollapsed) {
|
|
94
94
|
border-top: none;
|
|
95
95
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&__pix-multi-select {
|
|
40
|
-
border-radius: 4px
|
|
40
|
+
border-radius: 4px 0 0 4px;
|
|
41
41
|
position: relative;
|
|
42
42
|
|
|
43
43
|
&:after {
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&__pix-select {
|
|
55
|
-
border-radius:
|
|
55
|
+
border-radius: 0 4px 4px 0;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
display: inline-block;
|
|
20
20
|
vertical-align: middle;
|
|
21
21
|
height: 100%;
|
|
22
|
-
width:
|
|
22
|
+
width: 0;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&--hidden {
|
|
@@ -40,8 +40,8 @@ $button-margin: 16px;
|
|
|
40
40
|
vertical-align: middle; // Centered vertically with the .pix-modal__overlay::after which is 100% height
|
|
41
41
|
width: 512px;
|
|
42
42
|
max-width: calc(
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
100% - #{2 * $spacing-xs}
|
|
44
|
+
); // Horizontal margin sets here to have extra space for the .pix-modal__overlay::after on mobile
|
|
45
45
|
text-align: initial;
|
|
46
46
|
background-color: $pix-neutral-10;
|
|
47
47
|
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
position: relative;
|
|
17
17
|
border: 1px $pix-neutral-40 solid;
|
|
18
18
|
height: 36px;
|
|
19
|
-
padding:
|
|
19
|
+
padding: 0 32px 0 16px;
|
|
20
20
|
width: 100%;
|
|
21
21
|
background-color: $pix-neutral-0;
|
|
22
22
|
border-radius: 4px;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
max-height: 200px;
|
|
79
79
|
list-style-type: none;
|
|
80
80
|
padding: 0;
|
|
81
|
-
box-shadow:
|
|
81
|
+
box-shadow: 0 6px 12px rgba(7, 20, 46, 0.08);
|
|
82
82
|
transition: all 0.1s ease-in-out;
|
|
83
83
|
margin-top: $spacing-xxs;
|
|
84
84
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
list-style-type: none;
|
|
21
21
|
padding: 0;
|
|
22
22
|
background-color: $pix-neutral-0;
|
|
23
|
-
box-shadow:
|
|
23
|
+
box-shadow: 0 6px 12px rgba(7, 20, 46, 0.08);
|
|
24
24
|
transition: all 0.1s ease-in-out;
|
|
25
25
|
white-space: nowrap;
|
|
26
26
|
margin-top: $spacing-xxs;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
font-weight: $font-normal;
|
|
87
87
|
position: relative;
|
|
88
88
|
border: 1px $pix-neutral-45 solid;
|
|
89
|
-
padding:
|
|
89
|
+
padding: 0 $spacing-s 0 $spacing-s;
|
|
90
90
|
width: 100%;
|
|
91
91
|
background-color: $pix-neutral-0;
|
|
92
92
|
border-radius: 4px;
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
font-weight: $font-medium;
|
|
51
51
|
background-color: $pix-neutral-0;
|
|
52
52
|
color: $pix-neutral-60;
|
|
53
|
-
box-shadow:
|
|
53
|
+
box-shadow: 0 6px 24px 0 rgba($pix-neutral-70, 0.14);
|
|
54
54
|
|
|
55
55
|
&::before {
|
|
56
|
-
border-width:
|
|
56
|
+
border-width: 0;
|
|
57
57
|
height: 8px;
|
|
58
58
|
width: 8px;
|
|
59
59
|
background-color: $pix-neutral-0;
|