@1024pix/pix-ui 28.1.1 → 29.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.
Files changed (47) hide show
  1. package/.circleci/config.yml +3 -3
  2. package/CHANGELOG.md +35 -0
  3. package/addon/components/pix-select.hbs +3 -3
  4. package/addon/styles/_pix-banner.scss +2 -4
  5. package/addon/styles/_pix-button-base.scss +1 -3
  6. package/addon/styles/_pix-button.scss +2 -2
  7. package/addon/styles/_pix-checkbox.scss +3 -7
  8. package/addon/styles/_pix-collapsible.scss +4 -4
  9. package/addon/styles/_pix-dropdown.scss +2 -2
  10. package/addon/styles/_pix-filter-banner.scss +8 -11
  11. package/addon/styles/_pix-indicator-card.scss +8 -13
  12. package/addon/styles/_pix-input-code.scss +0 -1
  13. package/addon/styles/_pix-input-password.scss +5 -5
  14. package/addon/styles/_pix-input.scss +4 -11
  15. package/addon/styles/_pix-modal.scss +6 -10
  16. package/addon/styles/_pix-multi-select.scss +3 -7
  17. package/addon/styles/_pix-progress-gauge.scss +2 -5
  18. package/addon/styles/_pix-radio-button.scss +0 -1
  19. package/addon/styles/_pix-search-input.scss +1 -3
  20. package/addon/styles/_pix-select.scss +22 -28
  21. package/addon/styles/_pix-selectable-tag.scss +0 -2
  22. package/addon/styles/_pix-sidebar.scss +3 -3
  23. package/addon/styles/_pix-tag.scss +9 -11
  24. package/addon/styles/_pix-textarea.scss +0 -1
  25. package/addon/styles/_pix-toggle.scss +8 -8
  26. package/addon/styles/_pix-tooltip.scss +0 -1
  27. package/addon/styles/normalize-reset/_normalize.scss +1 -1
  28. package/addon/styles/normalize-reset/_reset.scss +11 -2
  29. package/addon/styles/pix-design-tokens/_colors.scss +0 -370
  30. package/addon/styles/pix-design-tokens/_fonts.scss +11 -29
  31. package/addon/styles/pix-design-tokens/_form.scss +8 -10
  32. package/addon/styles/pix-design-tokens/_shadows.scss +10 -25
  33. package/addon/styles/pix-design-tokens/_spacing.scss +8 -8
  34. package/addon/styles/pix-design-tokens/_typography.scss +75 -213
  35. package/docs/design-tokens.stories.mdx +16 -8
  36. package/docs/make-a-release.stories.mdx +1 -25
  37. package/docs/pix-design-tokens-dev.stories.mdx +14 -15
  38. package/docs/shadow.stories.mdx +25 -0
  39. package/docs/spacing.stories.mdx +19 -0
  40. package/docs/typography.stories.mdx +160 -0
  41. package/package.json +3 -7
  42. package/public/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
  43. package/public/fonts/Roboto/Roboto-Bold.ttf +0 -0
  44. package/public/fonts/OpenSans/OpenSans-Light.ttf +0 -0
  45. package/public/fonts/OpenSans/OpenSans-Regular.ttf +0 -0
  46. package/public/fonts/OpenSans/OpenSans-SemiBold.ttf +0 -0
  47. package/public/fonts/Roboto/Roboto-Light.ttf +0 -0
@@ -1,7 +1,7 @@
1
1
  version: 2.1
2
2
 
3
3
  orbs:
4
- browser-tools: circleci/browser-tools@1.3.0
4
+ browser-tools: circleci/browser-tools@1.4.1
5
5
 
6
6
  workflows:
7
7
  version: 2
@@ -16,7 +16,7 @@ workflows:
16
16
  jobs:
17
17
  build-and-test:
18
18
  docker:
19
- - image: cimg/node:16.19.0-browsers
19
+ - image: cimg/node:16.19.1-browsers
20
20
  resource_class: medium+
21
21
  steps:
22
22
  - checkout
@@ -27,4 +27,4 @@ jobs:
27
27
  - run: npm run lint:hbs
28
28
  - run: npm run lint:scss
29
29
  - run: npm test
30
- - run: npm run test:ember-compatibility
30
+ - run: npx ember try:one embroider-safe
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Pix-UI Changelog
2
2
 
3
+ ## v29.1.0 (28/03/2023)
4
+
5
+
6
+ ### :building_construction: Tech
7
+ - [#364](https://github.com/1024pix/pix-ui/pull/364) [TECH] Mise à jour de ember-click-outside
8
+
9
+ ### :bug: Correction
10
+ - [#372](https://github.com/1024pix/pix-ui/pull/372) [BUGFIX] Augmenter l'épaisseur du label de PixInput (PIX-7574).
11
+ - [#365](https://github.com/1024pix/pix-ui/pull/365) [BUGFIX] Corriger la sémantique et l'affichage du scroll sur la dropdown du PixSelect (PIX-7480)
12
+
13
+ ### :coffee: Autre
14
+ - [#362](https://github.com/1024pix/pix-ui/pull/362) [CLEANUP] Nettoie quelques dépendances et de la doc
15
+ - [#371](https://github.com/1024pix/pix-ui/pull/371) [BUMP] Update actions/setup-node action to v3 (workflows)
16
+ - [#370](https://github.com/1024pix/pix-ui/pull/370) [BUMP] Update actions/checkout action to v3 (workflows)
17
+ - [#341](https://github.com/1024pix/pix-ui/pull/341) [BUMP] Update Node.js to v16.19.1 (.circleci)
18
+ - [#342](https://github.com/1024pix/pix-ui/pull/342) [BUMP] Update browser-tools orb to v1.4.1 (.circleci)
19
+
20
+ ## v29.0.0 (24/03/2023)
21
+
22
+
23
+ ### :rocket: Amélioration
24
+ - [#367](https://github.com/1024pix/pix-ui/pull/367) [FEATURE] Mise à jour du Design Token "typographie" (PIX-7515)
25
+ - [#368](https://github.com/1024pix/pix-ui/pull/368) [FEATURE] Suppression de variables SCSS de couleurs dépréciées (PIX-7518)
26
+
27
+ ### :building_construction: Tech
28
+ - [#350](https://github.com/1024pix/pix-ui/pull/350) [TECH] Aligne les noms des variables SCSS d'espacement et documente des Design Token (PIX-7523)
29
+
30
+ ### :bug: Correction
31
+ - [#369](https://github.com/1024pix/pix-ui/pull/369) [BUGFIX] Correction typographies composant Indicator Card
32
+
33
+ ### :coffee: Autre
34
+ - [#358](https://github.com/1024pix/pix-ui/pull/358) [BUMP] Update dependency @embroider/test-setup to ^0.50.0
35
+ - [#352](https://github.com/1024pix/pix-ui/pull/352) build(deps): bump minimist from 0.2.1 to 0.2.4
36
+ - [#363](https://github.com/1024pix/pix-ui/pull/363) build(deps-dev): bump webpack from 5.75.0 to 5.76.0
37
+
3
38
  ## v28.1.1 (14/03/2023)
4
39
 
5
40
 
@@ -59,7 +59,7 @@
59
59
  />
60
60
  </div>
61
61
  {{/if}}
62
- <div role="listbox" id={{this.listId}} class="pix-select__options">
62
+ <ul role="listbox" id={{this.listId}} class="pix-select__options">
63
63
  <li
64
64
  class="pix-select-options-category__option{{unless
65
65
  @value
@@ -135,9 +135,9 @@
135
135
  {{/each}}
136
136
  {{/if}}
137
137
  {{else}}
138
- <p class="pix-select__empty-search-message">{{@emptySearchMessage}}</p>
138
+ <li class="pix-select__empty-search-message">{{@emptySearchMessage}}</li>
139
139
  {{/if}}
140
- </div>
140
+ </ul>
141
141
  </div>
142
142
  {{#if @errorMessage}}
143
143
  <p class="pix-select__error-message">{{@errorMessage}}</p>
@@ -1,6 +1,4 @@
1
1
  .pix-banner {
2
- font-family: $font-roboto;
3
- font-weight: $font-normal;
4
2
  padding: 16px 24px;
5
3
  display: flex;
6
4
  align-items: center;
@@ -25,7 +23,7 @@
25
23
 
26
24
  &__icon {
27
25
  font-size: 1.125rem;
28
- margin-right: $spacing-xs;
26
+ margin-right: $pix-spacing-xs;
29
27
  }
30
28
 
31
29
  &--information {
@@ -96,7 +94,7 @@
96
94
  color: $pix-neutral-0;
97
95
 
98
96
  &-orga {
99
- background-color: $dark-orga;
97
+ background-color: $pix-secondary-orga-80;
100
98
  color: $pix-neutral-0;
101
99
  }
102
100
 
@@ -1,10 +1,8 @@
1
1
  .pix-button {
2
2
  color: $pix-neutral-0;
3
- font-family: $font-roboto;
4
3
  font-size: 0.875rem;
5
- font-weight: 500;
4
+ font-weight: $font-medium;
6
5
  white-space: nowrap;
7
- letter-spacing: 0.028rem;
8
6
  cursor: pointer;
9
7
  background-color: $pix-primary;
10
8
  border: 1px solid transparent;
@@ -2,11 +2,11 @@
2
2
  height: 1rem;
3
3
 
4
4
  &--before {
5
- margin-right: $spacing-xs;
5
+ margin-right: $pix-spacing-xs;
6
6
  }
7
7
 
8
8
  &--after {
9
- margin-left: $spacing-xs;
9
+ margin-left: $pix-spacing-xs;
10
10
  }
11
11
  }
12
12
 
@@ -5,18 +5,14 @@
5
5
  cursor: pointer;
6
6
 
7
7
  &__label {
8
- @include text;
8
+ @extend %pix-body-m;
9
9
 
10
10
  &--small {
11
- @include text-small;
12
- }
13
-
14
- &--default {
15
- @include text;
11
+ @extend %pix-body-s;
16
12
  }
17
13
 
18
14
  &--large {
19
- @include text-large;
15
+ @extend %pix-body-l;
20
16
  }
21
17
  }
22
18
 
@@ -24,7 +24,7 @@
24
24
  justify-content: space-between;
25
25
  align-items: center;
26
26
  width: 100%;
27
- padding: $spacing-s;
27
+ padding: $pix-spacing-s;
28
28
  border: none;
29
29
  color: $pix-neutral-90;
30
30
  font-size: 1rem;
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  &__icon {
52
- margin-right: $spacing-xs;
52
+ margin-right: $pix-spacing-xs;
53
53
  color: $pix-neutral-50;
54
54
  }
55
55
 
@@ -57,7 +57,7 @@
57
57
  width: 1rem;
58
58
  height: 1rem;
59
59
  padding: 0.5rem;
60
- margin-left: $spacing-xs;
60
+ margin-left: $pix-spacing-xs;
61
61
  border-radius: 50%;
62
62
  }
63
63
  }
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  .pix-collapsible__content {
70
- padding: $spacing-s;
70
+ padding: $pix-spacing-s;
71
71
  font-size: 0.875rem;
72
72
  line-height: 1.25rem;
73
73
  color: $pix-neutral-60;
@@ -24,7 +24,7 @@
24
24
  min-width: 250px;
25
25
  min-height: 34px;
26
26
  border: 1px solid $pix-neutral-40;
27
- border-radius: $spacing-xxs;
27
+ border-radius: $pix-spacing-xxs;
28
28
  padding: 0;
29
29
  background: $pix-neutral-0;
30
30
 
@@ -97,7 +97,7 @@
97
97
  max-height: 300px;
98
98
  border: 1px solid $pix-neutral-40;
99
99
  border-top: none;
100
- border-radius: 0 0 $spacing-xxs $spacing-xxs;
100
+ border-radius: 0 0 $pix-spacing-xxs $pix-spacing-xxs;
101
101
  }
102
102
 
103
103
  &--search {
@@ -2,16 +2,15 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  position: relative;
5
- gap: $spacing-xs;
5
+ gap: $pix-spacing-xs;
6
6
  width: 100%;
7
7
  background-color: $pix-neutral-0;
8
8
  box-shadow: 0 2px 5px 0 rgba($pix-neutral-110, 0.05);
9
9
  min-height: 64px;
10
- padding: $spacing-s $spacing-m;
10
+ padding: $pix-spacing-s $pix-spacing-m;
11
11
 
12
12
  &__title {
13
13
  color: $pix-neutral-60;
14
- font-family: $font-roboto;
15
14
  font-size: 0.875rem;
16
15
  margin: 0;
17
16
  }
@@ -19,7 +18,7 @@
19
18
  &__container-filter {
20
19
  display: flex;
21
20
  flex-direction: column;
22
- gap: $spacing-s;
21
+ gap: $pix-spacing-s;
23
22
  }
24
23
 
25
24
  &__container-action {
@@ -29,12 +28,10 @@
29
28
  border-top: 1px solid $pix-neutral-15;
30
29
  }
31
30
 
32
-
33
31
  &__details {
34
32
  color: $pix-neutral-60;
35
- font-family: $font-roboto;
36
33
  font-weight: $font-medium;
37
- padding: $spacing-xs 0 $spacing-xs 0;
34
+ padding: $pix-spacing-xs 0 $pix-spacing-xs 0;
38
35
  margin: 0;
39
36
  font-size: 0.875rem;
40
37
  }
@@ -45,14 +42,14 @@
45
42
  }
46
43
 
47
44
  .pix-filter-banner-button__icon {
48
- padding-right: $spacing-xxs;
45
+ padding-right: $pix-spacing-xxs;
49
46
  }
50
47
 
51
48
  @include device-is('tablet') {
52
49
  .pix-filter-banner {
53
50
  align-items: center;
54
51
  flex-direction: row;
55
- gap: $spacing-m;
52
+ gap: $pix-spacing-m;
56
53
 
57
54
  &__container-title {
58
55
  display: flex;
@@ -72,14 +69,14 @@
72
69
  }
73
70
 
74
71
  &__details {
75
- padding: 0 $spacing-s 0 0;
72
+ padding: 0 $pix-spacing-s 0 0;
76
73
  text-align: center;
77
74
  border: none;
78
75
  }
79
76
 
80
77
  &__button-container {
81
78
  border-left: 1px solid $pix-neutral-15;
82
- padding-left: $spacing-s;
79
+ padding-left: $pix-spacing-s;
83
80
  }
84
81
  }
85
82
  }
@@ -22,37 +22,32 @@
22
22
  flex-direction: column;
23
23
  justify-content: center;
24
24
  color: $pix-neutral-60;
25
- padding: $spacing-s $spacing-m;
26
- margin: 0;
25
+ padding: $pix-spacing-s $pix-spacing-m;
27
26
  }
28
27
 
29
28
  &__title {
30
- @include text-large();
29
+ @extend %pix-body-l;
31
30
 
32
31
  display: flex;
33
32
  align-items: center;
34
33
  font-weight: $font-medium;
35
34
  font-size: 1rem;
36
35
  line-height: 1.375rem;
37
- margin-bottom: $spacing-xxs;
36
+ margin-bottom: $pix-spacing-xxs;
38
37
  }
39
38
 
40
39
  &__value {
41
- font-family: $font-open-sans;
42
- font-weight: $font-medium;
43
- font-size: 2rem;
44
- line-height: 2.5rem;
45
- margin: 0;
46
- margin-bottom: $spacing-xxs;
40
+ @extend %pix-title-m;
41
+
42
+ margin-bottom: $pix-spacing-xxs;
47
43
  }
48
44
 
49
45
  &__sub {
50
- @include text-small();
46
+ @extend %pix-body-s;
51
47
 
52
48
  font-weight: $font-normal;
53
49
  display: flex;
54
50
  gap: 10px;
55
- margin: 0
56
51
  }
57
52
 
58
53
  &__tooltip {
@@ -61,6 +56,6 @@
61
56
 
62
57
  &__tooltip-icon {
63
58
  color: $pix-neutral-30;
64
- margin: 0 $spacing-xs;
59
+ margin: 0 $pix-spacing-xs;
65
60
  }
66
61
  }
@@ -32,7 +32,6 @@
32
32
  padding: 10px 12px 8px;
33
33
  background-color: $pix-neutral-10;
34
34
  border: 1.4px solid $pix-neutral-50;
35
- font-family: $font-roboto;
36
35
  font-size: 1.25rem;
37
36
  color: $pix-neutral-90;
38
37
  border-radius: 4px;
@@ -8,7 +8,7 @@
8
8
  display: flex;
9
9
  align-items: center;
10
10
  border: 1px solid $pix-neutral-40;
11
- border-radius: $spacing-xxs;
11
+ border-radius: $pix-spacing-xxs;
12
12
  padding: 1px 0 1px 1px;
13
13
 
14
14
  @include hoverFormElement();
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  &__button {
42
- margin-right: $spacing-xxs;
42
+ margin-right: $pix-spacing-xxs;
43
43
 
44
44
  &:hover,
45
45
  &:active,
@@ -50,12 +50,12 @@
50
50
  }
51
51
 
52
52
  &__error-container {
53
- padding-right: $spacing-m;
53
+ padding-right: $pix-spacing-m;
54
54
  @include formElementInError();
55
55
  }
56
56
 
57
57
  &__success-container {
58
- padding-right: $spacing-m;
58
+ padding-right: $pix-spacing-m;
59
59
  @include formElementInSuccess();
60
60
  }
61
61
 
@@ -67,7 +67,7 @@
67
67
  padding: 2px;
68
68
  right: 12px;
69
69
  width: 10px;
70
- height: 10px
70
+ height: 10px;
71
71
  }
72
72
 
73
73
  &__error-icon {
@@ -4,18 +4,11 @@
4
4
  position: relative;
5
5
 
6
6
  &__label {
7
- font-family: $font-roboto;
8
- font-size: 0.875rem;
9
- color: $pix-neutral-70;
10
- margin-bottom: 4px;
7
+ @include label();
11
8
  }
12
9
 
13
10
  &__information {
14
- font-family: $font-roboto;
15
- font-size: 0.75rem;
16
- margin-top: 4px;
17
- color: $pix-neutral-60;
18
- display: block;
11
+ @include subLabel();
19
12
  }
20
13
 
21
14
  &__container {
@@ -61,12 +54,12 @@
61
54
  }
62
55
 
63
56
  &__input--error {
64
- padding-right: $spacing-l;
57
+ padding-right: $pix-spacing-l;
65
58
  @include formElementInError();
66
59
  }
67
60
 
68
61
  &__input--success {
69
- padding-right: $spacing-l;
62
+ padding-right: $pix-spacing-l;
70
63
  @include formElementInSuccess();
71
64
  }
72
65
  }
@@ -7,7 +7,7 @@
7
7
  right: 0;
8
8
  overflow-y: auto;
9
9
  text-align: center; // Used to center horizontally the inline-block modal content
10
- padding: $spacing-xs 0;
10
+ padding: $pix-spacing-xs 0;
11
11
  background-color: rgba(52, 69, 99, 0.7);
12
12
  transition: all 0.3s ease-in-out;
13
13
 
@@ -39,7 +39,7 @@ $button-margin: 16px;
39
39
  vertical-align: middle; // Centered vertically with the .pix-modal__overlay::after which is 100% height
40
40
  width: 512px;
41
41
  max-width: calc(
42
- 100% - #{2 * $spacing-xs}
42
+ 100% - #{2 * $pix-spacing-xs}
43
43
  ); // Horizontal margin sets here to have extra space for the .pix-modal__overlay::after on mobile
44
44
 
45
45
  text-align: initial;
@@ -68,12 +68,10 @@ $button-margin: 16px;
68
68
  }
69
69
 
70
70
  &__title {
71
+ @extend %pix-title-s;
72
+
71
73
  margin-bottom: 0;
72
- font-family: $font-open-sans;
73
74
  color: $pix-neutral-90;
74
- font-size: 1.25rem;
75
- line-height: 1.875rem;
76
- font-weight: $font-normal;
77
75
  padding-right: $mobile-close-button-size + $space-between-title-and-close-button;
78
76
 
79
77
  @include device-is('tablet') {
@@ -82,12 +80,10 @@ $button-margin: 16px;
82
80
  }
83
81
 
84
82
  &__content {
83
+ @extend %pix-body-m;
84
+
85
85
  padding: $modal-padding;
86
- font-size: 0.875rem;
87
86
  color: $pix-neutral-90;
88
- line-height: 1.375rem;
89
- font-family: $font-roboto;
90
- font-weight: $font-normal;
91
87
 
92
88
  p:last-child {
93
89
  margin-bottom: 0;
@@ -11,8 +11,6 @@
11
11
  display: flex;
12
12
  flex-direction: row;
13
13
  align-items: center;
14
- font-family: $font-roboto;
15
- font-weight: $font-normal;
16
14
  position: relative;
17
15
  border: 1px $pix-neutral-40 solid;
18
16
  height: 36px;
@@ -56,10 +54,9 @@
56
54
  }
57
55
 
58
56
  &__dropdown-icon {
59
- @include text-small();
57
+ @extend %pix-body-s;
60
58
 
61
59
  color: $pix-neutral-60;
62
- font-weight: $font-heavy;
63
60
  right: 10px;
64
61
  top: calc(50% - 6px);
65
62
  position: absolute;
@@ -81,10 +78,10 @@
81
78
  padding: 0;
82
79
  box-shadow: 0 6px 12px rgba(7, 20, 46, 0.08);
83
80
  transition: all 0.1s ease-in-out;
84
- margin-top: $spacing-xxs;
81
+ margin-top: $pix-spacing-xxs;
85
82
 
86
83
  &__item-label {
87
- padding: $spacing-xs $spacing-m;
84
+ padding: $pix-spacing-xs $pix-spacing-m;
88
85
  }
89
86
 
90
87
  &--hidden {
@@ -115,7 +112,6 @@
115
112
  position: relative;
116
113
  list-style: none;
117
114
 
118
-
119
115
  &:hover,
120
116
  &:focus {
121
117
  outline: none;
@@ -6,7 +6,6 @@
6
6
 
7
7
  &__sub-title {
8
8
  font-size: 0.813rem;
9
- font-weight: $font-light;
10
9
  color: $pix-warning-40;
11
10
  margin: 6px 0;
12
11
  letter-spacing: 0.4px;
@@ -36,10 +35,8 @@
36
35
  bottom: calc(100% + 10px);
37
36
  border-radius: 5px;
38
37
  text-align: center;
39
- line-height: normal;
40
38
  padding: 4px;
41
39
  font-size: 0.8rem;
42
- font-family: $font-open-sans;
43
40
  font-weight: $font-bold;
44
41
 
45
42
  &::before {
@@ -83,11 +80,11 @@
83
80
  }
84
81
 
85
82
  & .progress-gauge__marker {
86
- background: $pix-yellow-gradient-right;
83
+ background: $pix-secondary-app-gradient;
87
84
  }
88
85
 
89
86
  & .progress-gauge__tooltip {
90
- background: $pix-yellow-gradient;
87
+ background: $pix-secondary-app-gradient;
91
88
  color: $pix-neutral-0;
92
89
 
93
90
  &::before {
@@ -1,6 +1,5 @@
1
1
  .pix-radio-button {
2
2
  cursor: pointer;
3
- font-family: $font-roboto;
4
3
  font-size: 0.875rem;
5
4
  color: $pix-neutral-70;
6
5
 
@@ -5,7 +5,6 @@
5
5
  }
6
6
 
7
7
  .pix-search-input__label {
8
- font-family: $font-roboto;
9
8
  font-size: 0.875rem;
10
9
  color: $pix-neutral-70;
11
10
  margin-bottom: 4px;
@@ -34,10 +33,9 @@
34
33
  width: 100%;
35
34
  height: 36px;
36
35
  border: 1px solid $pix-neutral-40;
37
- padding-left: $spacing-xl;
36
+ padding-left: $pix-spacing-xl;
38
37
 
39
38
  &::placeholder {
40
39
  color: $pix-neutral-30;
41
40
  }
42
41
  }
43
-