@1024pix/pix-ui 29.0.0 → 29.1.1

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.
@@ -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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Pix-UI Changelog
2
2
 
3
+ ## v29.1.1 (31/03/2023)
4
+
5
+
6
+ ### :building_construction: Tech
7
+ - [#375](https://github.com/1024pix/pix-ui/pull/375) [TECH] Améliorer l'affichage des éléments en screen-reader-only ayant des sous élements (PIX-7623)
8
+
9
+ ### :bug: Correction
10
+ - [#373](https://github.com/1024pix/pix-ui/pull/373) [BUGFIX] Rendre les couleurs des tags cohérentes avec celles des maquettes (PIX-7582)
11
+ - [#374](https://github.com/1024pix/pix-ui/pull/374) [BUGFIX] Rendre les typographies de la modale cohérentes avec celles des maquettes (PIX-7615)
12
+
13
+ ## v29.1.0 (28/03/2023)
14
+
15
+
16
+ ### :building_construction: Tech
17
+ - [#364](https://github.com/1024pix/pix-ui/pull/364) [TECH] Mise à jour de ember-click-outside
18
+
19
+ ### :bug: Correction
20
+ - [#372](https://github.com/1024pix/pix-ui/pull/372) [BUGFIX] Augmenter l'épaisseur du label de PixInput (PIX-7574).
21
+ - [#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)
22
+
23
+ ### :coffee: Autre
24
+ - [#362](https://github.com/1024pix/pix-ui/pull/362) [CLEANUP] Nettoie quelques dépendances et de la doc
25
+ - [#371](https://github.com/1024pix/pix-ui/pull/371) [BUMP] Update actions/setup-node action to v3 (workflows)
26
+ - [#370](https://github.com/1024pix/pix-ui/pull/370) [BUMP] Update actions/checkout action to v3 (workflows)
27
+ - [#341](https://github.com/1024pix/pix-ui/pull/341) [BUMP] Update Node.js to v16.19.1 (.circleci)
28
+ - [#342](https://github.com/1024pix/pix-ui/pull/342) [BUMP] Update browser-tools orb to v1.4.1 (.circleci)
29
+
3
30
  ## v29.0.0 (24/03/2023)
4
31
 
5
32
 
@@ -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,4 +1,4 @@
1
- .screen-reader-only {
1
+ .screen-reader-only, .screen-reader-only > * {
2
2
  position: absolute;
3
3
  width: 1px;
4
4
  height: 1px;
@@ -23,7 +23,6 @@
23
23
  justify-content: center;
24
24
  color: $pix-neutral-60;
25
25
  padding: $pix-spacing-s $pix-spacing-m;
26
- margin: 0;
27
26
  }
28
27
 
29
28
  &__title {
@@ -40,7 +39,6 @@
40
39
  &__value {
41
40
  @extend %pix-title-m;
42
41
 
43
- margin: 0;
44
42
  margin-bottom: $pix-spacing-xxs;
45
43
  }
46
44
 
@@ -50,7 +48,6 @@
50
48
  font-weight: $font-normal;
51
49
  display: flex;
52
50
  gap: 10px;
53
- margin: 0;
54
51
  }
55
52
 
56
53
  &__tooltip {
@@ -4,16 +4,11 @@
4
4
  position: relative;
5
5
 
6
6
  &__label {
7
- font-size: 0.875rem;
8
- color: $pix-neutral-70;
9
- margin-bottom: 4px;
7
+ @include label();
10
8
  }
11
9
 
12
10
  &__information {
13
- font-size: 0.75rem;
14
- margin-top: 4px;
15
- color: $pix-neutral-60;
16
- display: block;
11
+ @include subLabel();
17
12
  }
18
13
 
19
14
  &__container {
@@ -68,7 +68,7 @@ $button-margin: 16px;
68
68
  }
69
69
 
70
70
  &__title {
71
- @extend %pix-title-s;
71
+ @extend %pix-title-xs;
72
72
 
73
73
  margin-bottom: 0;
74
74
  color: $pix-neutral-90;
@@ -80,7 +80,7 @@ $button-margin: 16px;
80
80
  }
81
81
 
82
82
  &__content {
83
- @extend %pix-body-m;
83
+ @extend %pix-body-s;
84
84
 
85
85
  padding: $modal-padding;
86
86
  color: $pix-neutral-90;
@@ -13,10 +13,10 @@
13
13
  &__dropdown {
14
14
  z-index: 200;
15
15
  position: absolute;
16
- max-height: 200px;
16
+ max-height: 12.5rem;
17
17
  width: inherit;
18
18
  border-top: none;
19
- border-radius: 0 0 4px 4px;
19
+ border-radius: 0 0 $pix-spacing-xxs $pix-spacing-xxs;
20
20
  list-style-type: none;
21
21
  padding: 0;
22
22
  background-color: $pix-neutral-0;
@@ -24,19 +24,20 @@
24
24
  transition: all 0.1s ease-in-out;
25
25
  white-space: nowrap;
26
26
  margin-top: $pix-spacing-xxs;
27
+ overflow-y: auto;
27
28
 
28
29
  &::-webkit-scrollbar {
29
30
  width: 0.5rem;
30
31
  }
31
32
 
32
33
  &::-webkit-scrollbar-track {
33
- border-radius: 4px;
34
+ border-radius: $pix-spacing-xxs;
34
35
  border: 1px solid $pix-neutral-20;
35
36
  background: $pix-neutral-20;
36
37
  }
37
38
 
38
39
  &::-webkit-scrollbar-thumb {
39
- border-radius: 4px;
40
+ border-radius: $pix-spacing-xxs;
40
41
  width: 0.375rem;
41
42
  background: $pix-neutral-30;
42
43
  }
@@ -63,7 +64,7 @@
63
64
  border-bottom: 2px solid $pix-neutral-22;
64
65
  margin: $pix-spacing-s $pix-spacing-m;
65
66
  color: $pix-neutral-30;
66
- border-radius: 4px 4px 0 0;
67
+ border-radius: $pix-spacing-xxs $pix-spacing-xxs 0 0;
67
68
 
68
69
  &:focus-within {
69
70
  background: $pix-neutral-10;
@@ -72,8 +73,6 @@
72
73
  }
73
74
 
74
75
  &__options {
75
- overflow-y: auto;
76
- max-height: inherit;
77
76
  border-top: 1px solid $pix-neutral-20;
78
77
  }
79
78
 
@@ -84,14 +83,13 @@
84
83
 
85
84
  .pix-select-button {
86
85
  display: flex;
87
- flex-direction: row;
88
86
  align-items: center;
89
87
  position: relative;
90
88
  border: 1px $pix-neutral-45 solid;
91
89
  padding: 0 $pix-spacing-s 0 $pix-spacing-s;
92
90
  width: 100%;
93
91
  background-color: $pix-neutral-0;
94
- border-radius: 4px;
92
+ border-radius: $pix-spacing-xxs;
95
93
  outline: none;
96
94
  height: 2.25rem;
97
95
  cursor: pointer;
@@ -11,8 +11,8 @@
11
11
  background-color: $pix-primary;
12
12
 
13
13
  &--blue-light {
14
- color: darken($pix-primary, 10%);
15
- background-color: lighten($pix-primary, 30%);
14
+ color: $pix-primary-80;
15
+ background-color: $pix-primary-10;
16
16
  }
17
17
 
18
18
  &--green {
@@ -20,8 +20,8 @@
20
20
  }
21
21
 
22
22
  &--green-light {
23
- color: $pix-success-70;
24
- background-color: $pix-success-5;
23
+ color: $pix-success-80;
24
+ background-color: $pix-success-10;
25
25
  }
26
26
 
27
27
  &--purple {
@@ -39,8 +39,8 @@
39
39
  }
40
40
 
41
41
  &--yellow-light {
42
- color: darken($pix-warning-40, 25%);
43
- background-color: lighten($pix-warning-40, 35%);
42
+ color: $pix-warning-80;
43
+ background-color: $pix-warning-10;
44
44
  }
45
45
 
46
46
  &--orange {
@@ -48,8 +48,8 @@
48
48
  }
49
49
 
50
50
  &--orange-light {
51
- color: $pix-warning-70;
52
- background-color: $pix-warning-5;
51
+ color: $pix-warning-80;
52
+ background-color: $pix-warning-10;
53
53
  }
54
54
 
55
55
  &--grey {
@@ -58,8 +58,8 @@
58
58
  }
59
59
 
60
60
  &--grey-light {
61
- color: $pix-neutral-60;
62
- background-color: $pix-neutral-15;
61
+ color: $pix-neutral-90;
62
+ background-color: $pix-neutral-20;
63
63
  }
64
64
 
65
65
  &--compact {
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  html {
12
- line-height: 1.15; /* 1 */
12
+ line-height: normal; /* 1 */
13
13
  -webkit-text-size-adjust: 100%; /* 2 */
14
14
  }
15
15
 
@@ -44,13 +44,18 @@ input::-moz-focus-inner {
44
44
  }
45
45
 
46
46
  ul,
47
- ol,
48
- dd {
47
+ ol {
49
48
  margin: 0;
50
49
  padding: 0;
51
50
  list-style: none;
52
51
  }
53
52
 
53
+ dl,
54
+ dt,
55
+ dd {
56
+ margin: 0;
57
+ }
58
+
54
59
  h1,
55
60
  h2,
56
61
  h3,
@@ -93,7 +93,8 @@
93
93
  }
94
94
  }
95
95
 
96
- abbr.mandatory-mark {
96
+ .mandatory-mark,
97
+ .mandatory-mark[title] {
97
98
  cursor: help;
98
99
  color: $pix-error-70;
99
100
  text-decoration: none;
@@ -16,7 +16,7 @@ dernières features en précisant le numéro de la version.
16
16
 
17
17
  Par ailleurs, sur Pix UI une release signifie aussi la mise à jour automatique de [notre storybook en ligne](https://storybook.pix.fr/).
18
18
 
19
- ## Effectuer la release, méthode via slack (conseillée)
19
+ ## Effectuer la release via slack
20
20
 
21
21
  Aller dans le canal slack dédié aux releases : [#tech-releases](https://1024pix.slack.com/archives/CVAMDQYHY), puis taper la commande suivante :
22
22
 
@@ -43,27 +43,3 @@ Pour vérifier si la release s'est bien déroulée :
43
43
 
44
44
  - vérifier le contenu du [CHANGELOG.md](../CHANGELOG.md) : contient-il toutes les PR qui ont été mergées récemment sur la branche `dev` ?
45
45
  - vérifier si notre [Storybook en ligne](https://1024pix.github.io/pix-ui/) montre bien les nouveaux composants.
46
-
47
- ## Effectuer la release, méthode à la mano (déconseillée)
48
-
49
- Après s'être mis à jour sur la branche dev, lancer le script de publication :
50
-
51
- - `git checkout dev`
52
- - `git pull`
53
- - `./scripts/publish.sh <version_souhaitée>`
54
-
55
- `<version_souhaitée>` peut prendre 3 valeurs :
56
-
57
- - `patch` : correctif de bug
58
- - `minor` : modifications n'apportant pas de changement dans l'utilisation de Pix UI
59
- - `major` : modifications apportant des breaking changes
60
-
61
- Pour plus d'informations au sujet de la version à choisir se référencer à [SemVer](https://semver.org/lang/fr/).
62
-
63
- Le script de publication effectuera automatiquement les actions suivantes :
64
-
65
- - mise à jour de la version du projet dans le `package.json`
66
- - création d'un tag git correspondant à la nouvelle version
67
- - mise à jour de la liste des changements dans le [CHANGELOG.md](../CHANGELOG.md)
68
- - mise à jour de la branche `master` par rapport à `dev`
69
- - re-[déploiement de storybook sur les GitHub Pages](/?path=/docs/développement-storybook--page)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "29.0.0",
3
+ "version": "29.1.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -53,8 +53,7 @@
53
53
  "ember-cli-babel": "^7.26.8",
54
54
  "ember-cli-htmlbars": "^6.1.1",
55
55
  "ember-cli-sass": "^11.0.1",
56
- "ember-cli-string-utils": "^1.1.0",
57
- "ember-click-outside": "^4.0.0",
56
+ "ember-click-outside": "^6.0.1",
58
57
  "ember-truth-helpers": "^3.1.1",
59
58
  "lodash.debounce": "^4.0.8"
60
59
  },
@@ -86,8 +85,6 @@
86
85
  "@storybook/theming": "^6.5.13",
87
86
  "@testing-library/dom": "^8.20.0",
88
87
  "@testing-library/user-event": "^14.4.3",
89
- "axios": "^1.2.0",
90
- "broccoli-asset-rev": "^3.0.0",
91
88
  "core-js": "^3.26.1",
92
89
  "ember-cli": "^4.8.0",
93
90
  "ember-cli-dependency-checker": "^3.3.1",
@@ -116,7 +113,6 @@
116
113
  "html-webpack-plugin": "^5.5.0",
117
114
  "loader.js": "^4.7.0",
118
115
  "lodash": "^4.17.21",
119
- "moment": "^2.29.4",
120
116
  "npm-run-all": "^4.1.5",
121
117
  "prettier": "^2.8.0",
122
118
  "qunit": "^2.19.3",