@1024pix/pix-ui 26.0.4 → 26.1.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/.circleci/config.yml +1 -0
- package/.stylelintrc.json +27 -0
- package/CHANGELOG.md +16 -0
- package/addon/components/pix-button.hbs +6 -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-button.scss +43 -33
- 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-button.stories.js +33 -0
- package/app/stories/pix-button.stories.mdx +10 -0
- 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,21 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v26.1.0 (21/02/2023)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :rocket: Amélioration
|
|
7
|
+
- [#338](https://github.com/1024pix/pix-ui/pull/338) [FEATURE] Permettre au PixButton d'avoir des icônes avant et après le label (PIX-3038)
|
|
8
|
+
|
|
9
|
+
## v26.0.5 (20/02/2023)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### :building_construction: Tech
|
|
13
|
+
- [#345](https://github.com/1024pix/pix-ui/pull/345) [TECH] Active la règle de lint SCSS d'ajout d'espace après les `:`
|
|
14
|
+
- [#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`
|
|
15
|
+
- [#344](https://github.com/1024pix/pix-ui/pull/344) [TECH] Active la règle de lint SCSS de format de couleurs
|
|
16
|
+
- [#343](https://github.com/1024pix/pix-ui/pull/343) [TECH] Active la règle de lint SCSS d'indentation
|
|
17
|
+
- [#336](https://github.com/1024pix/pix-ui/pull/336) [TECH] Mise en place de Stylelint
|
|
18
|
+
|
|
3
19
|
## v26.0.4 (20/02/2023)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -24,7 +24,13 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
<span class="loader__not-visible-text">{{yield}}</span>
|
|
26
26
|
{{else}}
|
|
27
|
+
{{#if @iconBefore}}
|
|
28
|
+
<FaIcon class="pix-button__icon pix-button__icon--before" @icon={{@iconBefore}} />
|
|
29
|
+
{{/if}}
|
|
27
30
|
{{yield}}
|
|
31
|
+
{{#if @iconAfter}}
|
|
32
|
+
<FaIcon class="pix-button__icon pix-button__icon--after" @icon={{@iconAfter}} />
|
|
33
|
+
{{/if}}
|
|
28
34
|
{{/if}}
|
|
29
35
|
</button>
|
|
30
36
|
{{/if}}
|
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
|
}
|
|
@@ -1,43 +1,53 @@
|
|
|
1
|
-
.pix-
|
|
2
|
-
|
|
3
|
-
position: absolute;
|
|
1
|
+
.pix-button__icon {
|
|
2
|
+
height: 1rem;
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
&--before {
|
|
5
|
+
margin-right: $spacing-xs;
|
|
8
6
|
}
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
height: 10px;
|
|
13
|
-
background-color: $pix-neutral-0;
|
|
14
|
-
border-radius: 100%;
|
|
15
|
-
display: inline-block;
|
|
16
|
-
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
8
|
+
&--after {
|
|
9
|
+
margin-left: $spacing-xs;
|
|
17
10
|
}
|
|
11
|
+
}
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
.loader--grey > div {
|
|
23
|
-
background-color: $pix-neutral-80;
|
|
24
|
-
}
|
|
25
|
-
.loader .bounce1 {
|
|
26
|
-
animation-delay: -0.32s;
|
|
27
|
-
}
|
|
13
|
+
.pix-button .loader {
|
|
14
|
+
position: absolute;
|
|
28
15
|
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
&__not-visible-text {
|
|
17
|
+
visibility: hidden;
|
|
31
18
|
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.loader > div {
|
|
22
|
+
width: 10px;
|
|
23
|
+
height: 10px;
|
|
24
|
+
background-color: $pix-neutral-0;
|
|
25
|
+
border-radius: 100%;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
28
|
+
}
|
|
32
29
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
.loader--white > div {
|
|
31
|
+
background-color: $pix-neutral-0;
|
|
32
|
+
}
|
|
33
|
+
.loader--grey > div {
|
|
34
|
+
background-color: $pix-neutral-80;
|
|
35
|
+
}
|
|
36
|
+
.loader .bounce1 {
|
|
37
|
+
animation-delay: -0.32s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.loader .bounce2 {
|
|
41
|
+
animation-delay: -0.16s;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes sk-bouncedelay {
|
|
45
|
+
0%,
|
|
46
|
+
80%,
|
|
47
|
+
100% {
|
|
48
|
+
transform: scale(0);
|
|
49
|
+
}
|
|
50
|
+
40% {
|
|
51
|
+
transform: scale(1);
|
|
42
52
|
}
|
|
43
53
|
}
|
|
@@ -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;
|