@1024pix/pix-ui 41.1.2 → 41.2.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 (46) hide show
  1. package/addon/components/pix-button-base.js +2 -2
  2. package/addon/components/pix-progress-gauge.js +10 -2
  3. package/addon/components/pix-return-to.hbs +0 -2
  4. package/addon/styles/_pix-background-header.scss +3 -3
  5. package/addon/styles/_pix-banner.scss +29 -32
  6. package/addon/styles/_pix-block.scss +3 -3
  7. package/addon/styles/_pix-button-base.scss +86 -65
  8. package/addon/styles/_pix-button.scss +5 -5
  9. package/addon/styles/_pix-checkbox.scss +108 -105
  10. package/addon/styles/_pix-collapsible.scss +22 -13
  11. package/addon/styles/_pix-filter-banner.scss +15 -14
  12. package/addon/styles/_pix-filterable-and-searchable-select.scss +4 -4
  13. package/addon/styles/_pix-icon-button.scss +8 -9
  14. package/addon/styles/_pix-indicator-card.scss +28 -20
  15. package/addon/styles/_pix-input-code.scss +17 -23
  16. package/addon/styles/_pix-input-password.scss +13 -14
  17. package/addon/styles/_pix-input.scss +10 -7
  18. package/addon/styles/_pix-message.scss +16 -16
  19. package/addon/styles/_pix-modal.scss +21 -22
  20. package/addon/styles/_pix-multi-select.scss +26 -23
  21. package/addon/styles/_pix-pagination.scss +6 -6
  22. package/addon/styles/_pix-progress-gauge.scss +21 -21
  23. package/addon/styles/_pix-radio-button.scss +21 -16
  24. package/addon/styles/_pix-return-to.scss +22 -33
  25. package/addon/styles/_pix-search-input.scss +11 -11
  26. package/addon/styles/_pix-select.scss +40 -37
  27. package/addon/styles/_pix-selectable-tag.scss +24 -29
  28. package/addon/styles/_pix-sidebar.scss +16 -16
  29. package/addon/styles/_pix-stars.scss +14 -17
  30. package/addon/styles/_pix-tag.scss +48 -39
  31. package/addon/styles/_pix-textarea.scss +6 -5
  32. package/addon/styles/_pix-toggle.scss +11 -11
  33. package/addon/styles/_pix-tooltip.scss +29 -28
  34. package/addon/styles/pix-design-tokens/_colors.scss +71 -10
  35. package/addon/styles/pix-design-tokens/_form.scss +32 -26
  36. package/addon/styles/pix-design-tokens/_spacing.scss +12 -0
  37. package/app/stories/pix-button.stories.js +13 -5
  38. package/app/stories/pix-indicator-card.stories.js +1 -1
  39. package/app/stories/pix-progress-gauge.mdx +5 -1
  40. package/app/stories/pix-progress-gauge.stories.js +38 -4
  41. package/app/stories/pix-return-to.stories.js +3 -3
  42. package/app/stories/pix-stars.stories.js +1 -1
  43. package/app/stories/pix-tag.stories.js +2 -15
  44. package/package.json +4 -2
  45. package/scripts/migrate-colors-scss-vars-to-css-vars.sh +120 -0
  46. package/scripts/migrate-spacing-scss-vars-to-css-vars.sh +23 -0
@@ -3,38 +3,38 @@
3
3
  flex-direction: column;
4
4
 
5
5
  &__label {
6
- color: $pix-neutral-90;
6
+ color: var(--pix-neutral-900);
7
7
 
8
8
  @extend %pix-body-m;
9
9
  }
10
10
 
11
11
  &__button {
12
12
  width: fit-content;
13
- margin-top: $pix-spacing-xxs;
14
- padding: $pix-spacing-xxs;
13
+ margin-top: var(--pix-spacing-1x);
14
+ padding: var(--pix-spacing-1x);
15
15
  background-color: transparent;
16
- border: 1px solid $pix-neutral-30;
16
+ border: 1px solid var(--pix-neutral-500);
17
17
  border-radius: 4px;
18
18
  }
19
19
 
20
20
  &__on,
21
21
  &__off {
22
22
  display: inline-block;
23
- padding: $pix-spacing-xs;
24
- color: $pix-neutral-70;
23
+ padding: var(--pix-spacing-2x);
24
+ color: var(--pix-neutral-800);
25
25
  border-radius: 4px;
26
26
 
27
27
  @extend %pix-body-s;
28
28
  }
29
29
 
30
30
  &__off {
31
- color: $pix-neutral-0;
32
- background-color: $pix-neutral-45;
31
+ color: var(--pix-neutral-20);
32
+ background-color: var(--pix-neutral-800);
33
33
  }
34
34
 
35
35
  &--inline {
36
36
  flex-direction: row;
37
- gap: $pix-spacing-xxs;
37
+ gap: var(--pix-spacing-1x);
38
38
  align-items: center;
39
39
  }
40
40
 
@@ -50,8 +50,8 @@
50
50
  &--pressed {
51
51
  .pix-toggle {
52
52
  &__on {
53
- color: $pix-neutral-0;
54
- background-color: $pix-neutral-45;
53
+ color: var(--pix-neutral-20);
54
+ background-color: var(--pix-neutral-800);
55
55
  }
56
56
 
57
57
  &__off {
@@ -11,15 +11,17 @@
11
11
  }
12
12
 
13
13
  .pix-tooltip__content {
14
+ @extend %pix-shadow-md;
15
+
14
16
  position: absolute;
15
17
  left: auto;
16
18
  z-index: 100;
17
19
  display: none;
18
- padding: 8px 16px;
19
- color: $pix-neutral-0;
20
+ padding: var(--pix-spacing-2x) var(--pix-spacing-4x);
21
+ color: var(--pix-neutral-0);
20
22
  font-size: 0.875rem;
21
23
  line-height: 1.4rem;
22
- background-color: $pix-neutral-100;
24
+ background-color: var(--pix-neutral-900);
23
25
  border-radius: 6px;
24
26
  opacity: 0;
25
27
  transition: opacity 0.3s;
@@ -46,15 +48,14 @@
46
48
  }
47
49
 
48
50
  &--light {
49
- color: $pix-neutral-60;
51
+ color: var(--pix-neutral-900);
50
52
  font-weight: $font-medium;
51
- background-color: $pix-neutral-0;
52
- box-shadow: 0 6px 24px 0 rgba($pix-neutral-70, 0.14);
53
+ background-color: var(--pix-neutral-0);
53
54
 
54
55
  &::before {
55
56
  width: 8px;
56
57
  height: 8px;
57
- background-color: $pix-neutral-0;
58
+ background-color: var(--pix-neutral-0);
58
59
  border-width: 0;
59
60
  }
60
61
  }
@@ -66,12 +67,12 @@
66
67
  &::before {
67
68
  top: calc(50% - 5px); // 50% is the height of the parent and 5px the height of the triangle
68
69
  left: -10px; // 10px is width of the ::before elmt
69
- border-color: transparent $pix-neutral-100 transparent transparent;
70
+ border-color: transparent var(--pix-neutral-900) transparent transparent;
70
71
  }
71
72
 
72
73
  &.pix-tooltip__content--light::before {
73
- left: -5px;
74
- border-color: $pix-neutral-40 transparent transparent $pix-neutral-40;
74
+ left: -4px;
75
+ border-color: var(--pix-neutral-0) transparent transparent var(--pix-neutral-0);
75
76
  transform: rotate(315deg);
76
77
  }
77
78
  }
@@ -84,12 +85,12 @@
84
85
  &::before {
85
86
  top: 100%;
86
87
  left: calc(50% - 5px);
87
- border-color: $pix-neutral-100 transparent transparent transparent;
88
+ border-color: var(--pix-neutral-900) transparent transparent transparent;
88
89
  }
89
90
 
90
91
  &.pix-tooltip__content--light::before {
91
92
  top: calc(100% - 5px);
92
- border-color: $pix-neutral-40 transparent transparent $pix-neutral-40;
93
+ border-color: var(--pix-neutral-0) transparent transparent var(--pix-neutral-0);
93
94
  transform: rotate(225deg);
94
95
  }
95
96
  }
@@ -101,13 +102,13 @@
101
102
  &::before {
102
103
  top: 100%;
103
104
  left: calc(100% - 27px);
104
- border-color: $pix-neutral-100 transparent transparent transparent;
105
+ border-color: var(--pix-neutral-900) transparent transparent transparent;
105
106
  }
106
107
 
107
108
  &.pix-tooltip__content--light::before {
108
109
  top: calc(100% - 5px);
109
110
  left: calc(100% - 26px);
110
- border-color: $pix-neutral-40 transparent transparent $pix-neutral-40;
111
+ border-color: var(--pix-neutral-0) transparent transparent var(--pix-neutral-0);
111
112
  transform: rotate(225deg);
112
113
  }
113
114
  }
@@ -118,12 +119,12 @@
118
119
 
119
120
  &::before {
120
121
  top: 100%;
121
- border-color: $pix-neutral-100 transparent transparent transparent;
122
+ border-color: var(--pix-neutral-900) transparent transparent transparent;
122
123
  }
123
124
 
124
125
  &.pix-tooltip__content--light::before {
125
126
  top: calc(100% - 5px);
126
- border-color: $pix-neutral-40 transparent transparent $pix-neutral-40;
127
+ border-color: var(--pix-neutral-0) transparent transparent var(--pix-neutral-0);
127
128
  transform: rotate(225deg);
128
129
  }
129
130
  }
@@ -136,12 +137,12 @@
136
137
  &::before {
137
138
  top: -10px;
138
139
  left: calc(50% - 5px);
139
- border-color: transparent transparent $pix-neutral-100 transparent;
140
+ border-color: transparent transparent var(--pix-neutral-900) transparent;
140
141
  }
141
142
 
142
143
  &.pix-tooltip__content--light::before {
143
- top: -5px;
144
- border-color: $pix-neutral-40 transparent transparent $pix-neutral-40;
144
+ top: -4px;
145
+ border-color: var(--pix-neutral-500) transparent transparent var(--pix-neutral-500);
145
146
  transform: rotate(45deg);
146
147
  }
147
148
  }
@@ -153,13 +154,13 @@
153
154
  &::before {
154
155
  top: -10px;
155
156
  left: calc(100% - 27px);
156
- border-color: transparent transparent $pix-neutral-100 transparent;
157
+ border-color: transparent transparent var(--pix-neutral-900) transparent;
157
158
  }
158
159
 
159
160
  &.pix-tooltip__content--light::before {
160
- top: -5px;
161
+ top: -4px;
161
162
  left: calc(100% - 26px);
162
- border-color: $pix-neutral-40 transparent transparent $pix-neutral-40;
163
+ border-color: var(--pix-neutral-0) transparent transparent var(--pix-neutral-0);
163
164
  transform: rotate(45deg);
164
165
  }
165
166
  }
@@ -170,12 +171,12 @@
170
171
 
171
172
  &::before {
172
173
  top: -10px;
173
- border-color: transparent transparent $pix-neutral-100 transparent;
174
+ border-color: transparent transparent var(--pix-neutral-900) transparent;
174
175
  }
175
176
 
176
177
  &.pix-tooltip__content--light::before {
177
- top: -5px;
178
- border-color: $pix-neutral-40 transparent transparent $pix-neutral-40;
178
+ top: -4px;
179
+ border-color: var(--pix-neutral-0) transparent transparent var(--pix-neutral-0);
179
180
  transform: rotate(45deg);
180
181
  }
181
182
  }
@@ -186,12 +187,12 @@
186
187
  &::before {
187
188
  top: calc(50% - 5px);
188
189
  right: -10px;
189
- border-color: transparent transparent transparent $pix-neutral-100;
190
+ border-color: transparent transparent transparent var(--pix-neutral-900);
190
191
  }
191
192
 
192
193
  &.pix-tooltip__content--light::before {
193
- right: -5px;
194
- border-color: $pix-neutral-40 transparent transparent $pix-neutral-40;
194
+ right: -4px;
195
+ border-color: var(--pix-neutral-0) transparent transparent var(--pix-neutral-0);
195
196
  transform: rotate(135deg);
196
197
  }
197
198
  }
@@ -1,5 +1,66 @@
1
1
  // See https://www.figma.com/file/8RJ3aCSfdeQ8AZZVBBYKS8/Design-System-Pix?node-id=16%3A2
2
+ :root {
3
+ --pix-primary-10: #f7f5ff;
4
+ --pix-primary-100: #cec3f4;
5
+ --pix-primary-300: #957ee8;
6
+ --pix-primary-500: #613fdd;
7
+ --pix-primary-700: #452d9d;
8
+ --pix-primary-900: #291a5d;
9
+ --pix-secondary-50: #fffaeb;
10
+ --pix-secondary-100: #ffefc0;
11
+ --pix-secondary-300: #ffdc76;
12
+ --pix-secondary-500: #ffcb33;
13
+ --pix-secondary-700: #a16206;
14
+ --pix-secondary-900: #5b3808;
15
+ --pix-tertiary-100: #c3d0ff;
16
+ --pix-tertiary-500: #3d68ff;
17
+ --pix-tertiary-900: #1a2c6b;
18
+ --pix-neutral-0: #ffffff;
19
+ --pix-neutral-20: #f4f5f7;
20
+ --pix-neutral-100: #cdd1d9;
21
+ --pix-neutral-500: #5e6c84;
22
+ --pix-neutral-800: #253858;
23
+ --pix-neutral-900: #122647;
24
+ --pix-info-50: #e6f2fe;
25
+ --pix-info-100: #b0d3f4;
26
+ --pix-info-500: #3b82f6;
27
+ --pix-info-700: #1d4ed8;
28
+ --pix-info-900: #1e3a8a;
29
+ --pix-success-50: #e8f3ef;
30
+ --pix-success-100: #b9d8cd;
31
+ --pix-success-300: #67ab92;
32
+ --pix-success-500: #1c825d;
33
+ --pix-success-700: #145c42;
34
+ --pix-success-900: #0c3727;
35
+ --pix-warning-50: #fff7eb;
36
+ --pix-warning-100: #ffe5c0;
37
+ --pix-warning-300: #ffc676;
38
+ --pix-warning-500: #f59e0b;
39
+ --pix-warning-700: #b45309;
40
+ --pix-warning-900: #78350f;
41
+ --pix-error-50: #fbecec;
42
+ --pix-error-100: #f1c4c4;
43
+ --pix-error-500: #d24140;
44
+ --pix-error-700: #952e2e;
45
+ --pix-error-900: #581b1b;
46
+ --pix-certif-50: #e8f2f2;
47
+ --pix-certif-500: #187f7d;
48
+ --pix-orga-50: #ebf1f9;
49
+ --pix-orga-500: #3674bf;
50
+ --pix-information-dark: #f24645;
51
+ --pix-information-light: #f1a141;
52
+ --pix-content-dark: #1a8c89;
53
+ --pix-content-light: #52d987;
54
+ --pix-communication-dark: #3d68ff;
55
+ --pix-communication-light: #12a3ff;
56
+ --pix-security-dark: #ac008d;
57
+ --pix-security-light: #ff3f94;
58
+ --pix-environment-dark: #5e2563;
59
+ --pix-environment-light: #564da6;
60
+ --pix-shadow: #07142E;
61
+ }
2
62
 
63
+ // @deprecated - SCSS variables are replaced by CSS variables
3
64
  //// SOLID
4
65
  // Primary
5
66
  $pix-primary-5: #F2F9FF;
@@ -126,15 +187,15 @@ $pix-environment-dark: #5E2563;
126
187
  $pix-environment-light: #564DA6;
127
188
 
128
189
  //// GRADIENT
129
- $pix-primary-app-gradient: linear-gradient(91.59deg, #3D68FF 0%, #8845FF 100%);
130
- $pix-secondary-app-gradient: linear-gradient(91.59deg, #FEDC41 0%, #FF9F00 100%);
131
- $pix-primary-certif-gradient: linear-gradient(91.59deg, #52D987 0%, #1A8C89 100%);
132
- $pix-primary-orga-gradient: linear-gradient(91.59deg, #00DDFF 0%, #0095C0 100%);
133
- $pix-secondary-orga-gradient: linear-gradient(91.59deg, #0D7DC4 0%, #213371 100%);
190
+ $pix-primary-app-gradient: linear-gradient(91.59deg, #3d68ff 0%, #8845ff 100%);
191
+ $pix-secondary-app-gradient: linear-gradient(91.59deg, #fedc41 0%, #ff9f00 100%);
192
+ $pix-primary-certif-gradient: linear-gradient(91.59deg, #52d987 0%, #1a8c89 100%);
193
+ $pix-primary-orga-gradient: linear-gradient(91.59deg, #00ddff 0%, #0095c0 100%);
194
+ $pix-secondary-orga-gradient: linear-gradient(91.59deg, #0d7dc4 0%, #213371 100%);
134
195
 
135
196
  // Domain
136
- $pix-information-gradient: linear-gradient(180deg, #F24645 0%, #F1A141 100%);
137
- $pix-content-gradient: linear-gradient(180deg, #1A8C89 0%, #52D987 100%);
138
- $pix-communication-gradient: linear-gradient(180deg, #3D68FF 0%, #12A3FF 100%);
139
- $pix-security-gradient: linear-gradient(180deg, #AC008D 0%, #FF3F94 100%);
140
- $pix-environment-gradient: linear-gradient(180deg, #5E2563 0%, #564DA6 100%);
197
+ $pix-information-gradient: linear-gradient(180deg, #f24645 0%, #f1a141 100%);
198
+ $pix-content-gradient: linear-gradient(180deg, #1a8c89 0%, #52d987 100%);
199
+ $pix-communication-gradient: linear-gradient(180deg, #3d68ff 0%, #12a3ff 100%);
200
+ $pix-security-gradient: linear-gradient(180deg, #ac008d 0%, #ff3f94 100%);
201
+ $pix-environment-gradient: linear-gradient(180deg, #5e2563 0%, #564da6 100%);
@@ -1,42 +1,50 @@
1
1
  @mixin hoverFormElement() {
2
2
  &:hover {
3
- background-color: $pix-neutral-5;
4
- box-shadow: inset 0 0 0 0.6px $pix-neutral-70;
3
+ background-color: var(--pix-neutral-20);
4
+ border-color: var(--pix-neutral-900);
5
5
  }
6
6
  }
7
7
 
8
8
  @mixin hoverFormElementDisabled() {
9
9
  &:hover {
10
- background-color: $pix-neutral-20;
11
- box-shadow: inset 0 0 0 0.6px $pix-neutral-70;
10
+ background-color: var(--pix-neutral-20);
11
+ border-color: var(--pix-neutral-100);
12
12
  }
13
13
  }
14
14
 
15
15
  @mixin formElementDisabled() {
16
- background-color: $pix-neutral-20;
16
+ color: var(--pix-neutral-500);
17
+ background-color: var(--pix-neutral-20);
18
+ border-color: var(--pix-neutral-100);
17
19
  cursor: not-allowed;
18
20
  }
19
21
 
20
22
  @mixin focusFormElement() {
21
23
  &:focus {
22
- border-color: $pix-primary;
24
+ border-color: var(--pix-primary-500);
25
+ outline: 2px solid var(--pix-primary-300);
26
+ }
27
+ }
28
+
29
+ @mixin activeFormElement() {
30
+ &:active {
31
+ background-color: var(--pix-neutral-0);
32
+ border-color: var(--pix-primary-500);
23
33
  outline: none;
24
- box-shadow: inset 0 0 0 0.6px $pix-primary;
25
34
  }
26
35
  }
27
36
 
28
37
  @mixin focusWithinFormElement() {
29
38
  &:focus-within {
30
- border-color: $pix-primary;
31
- outline: none;
32
- box-shadow: inset 0 0 0 0.6px $pix-primary;
39
+ border-color: var(--pix-primary-500);
40
+ outline: 2px solid var(--pix-primary-300);
33
41
  }
34
42
  }
35
43
 
36
44
  @mixin label() {
37
45
  display: block;
38
- margin-bottom: $pix-spacing-xxs;
39
- color: $pix-neutral-90;
46
+ margin-bottom: var(--pix-spacing-1x);
47
+ color: var(--pix-neutral-900);
40
48
  font-weight: $font-medium;
41
49
  font-size: 0.875rem;
42
50
  line-height: 1.375rem;
@@ -45,40 +53,38 @@
45
53
  @mixin subLabel() {
46
54
  @include label();
47
55
 
48
- color: $pix-neutral-60;
56
+ color: var(--pix-neutral-500);
49
57
  font-weight: $font-normal;
50
58
  font-size: 0.813rem;
51
59
  line-height: 1rem;
52
60
  }
53
61
 
54
62
  @mixin errorMessage() {
55
- margin-top: $pix-spacing-xxs;
56
- color: $pix-error-70;
63
+ margin-top: var(--pix-spacing-1x);
64
+ color: var(--pix-error-700);
57
65
  font-size: 0.75rem;
58
66
  }
59
67
 
60
68
  @mixin formElementInError() {
61
- border-color: $pix-error-70;
62
- box-shadow: inset 0 0 0 0.6px $pix-error-70;
69
+ border-color: var(--pix-error-700);
63
70
  }
64
71
 
65
72
  @mixin formElementInSuccess() {
66
- border-color: $pix-success-60;
67
- box-shadow: inset 0 0 0 0.6px $pix-success-60;
73
+ border-color: var(--pix-success-700);
68
74
  }
69
75
 
70
76
  @mixin input() {
71
- padding: 0 $pix-spacing-s 0 $pix-spacing-s;
72
- color: $pix-neutral-90;
73
- font-weight: $font-normal;
74
- font-size: 0.875rem;
75
- border-radius: $pix-spacing-xxs;
77
+ @extend %pix-body-s;
78
+
79
+ padding: 0 var(--pix-spacing-3x);
80
+ color: var(--pix-neutral-900);
81
+ border-radius: var(--pix-spacing-1x);
76
82
  }
77
83
 
78
84
  .pix-form__label {
79
85
  @include label();
80
86
 
81
- padding-bottom: 12px;
87
+ padding-bottom: var(--pix-spacing-3x);
82
88
  }
83
89
 
84
90
  .pix-form__actions {
@@ -92,7 +98,7 @@
92
98
 
93
99
  .mandatory-mark,
94
100
  .mandatory-mark[title] {
95
- color: $pix-error-70;
101
+ color: var(--pix-error-700);
96
102
  text-decoration: none;
97
103
  border: none;
98
104
  cursor: help;
@@ -1,5 +1,6 @@
1
1
  // See https://www.figma.com/file/8RJ3aCSfdeQ8AZZVBBYKS8/Design-System-Pix?node-id=54%3A4595&t=8piOzYzdI0ala3i6-0
2
2
 
3
+ // deprecated
3
4
  $pix-spacing-xxs: 4px;
4
5
  $pix-spacing-xs: 8px;
5
6
  $pix-spacing-s: 16px;
@@ -7,3 +8,14 @@ $pix-spacing-m: 24px;
7
8
  $pix-spacing-l: 32px;
8
9
  $pix-spacing-xl: 40px;
9
10
  $pix-spacing-xxl: 48px;
11
+
12
+ :root {
13
+ --pix-spacing-1x: 4px;
14
+ --pix-spacing-2x: 8px;
15
+ --pix-spacing-3x: 12px;
16
+ --pix-spacing-4x: 16px;
17
+ --pix-spacing-6x: 24px;
18
+ --pix-spacing-8x: 32px;
19
+ --pix-spacing-10x: 40px;
20
+ --pix-spacing-12x: 48px;
21
+ }
@@ -44,13 +44,21 @@ export default {
44
44
  backgroundColor: {
45
45
  name: 'backgroundColor',
46
46
  description:
47
- 'color: `blue`, `green`, `yellow`, `red`, `grey`, `transparent-light`, `transparent-dark`',
48
- options: ['blue', 'green', 'yellow', 'red', 'grey', 'transparent-light', 'transparent-dark'],
47
+ 'color: `primary`, `secondary`, `success`, `error`, `neutral`, `transparent-light`, `transparent-dark`',
48
+ options: [
49
+ 'primary',
50
+ 'secondary',
51
+ 'success',
52
+ 'error',
53
+ 'neutral',
54
+ 'transparent-light',
55
+ 'transparent-dark',
56
+ ],
49
57
  type: { name: 'string', required: false },
50
58
  control: { type: 'select' },
51
59
  table: {
52
60
  type: { summary: 'string' },
53
- defaultValue: { summary: 'blue' },
61
+ defaultValue: { summary: 'primary' },
54
62
  },
55
63
  },
56
64
  iconBefore: {
@@ -199,7 +207,7 @@ Default.args = {
199
207
  loadingColor: 'white',
200
208
  shape: 'squircle',
201
209
  size: 'big',
202
- backgroundColor: 'blue',
210
+ backgroundColor: 'primary',
203
211
  label: 'Bouton',
204
212
  };
205
213
 
@@ -224,7 +232,7 @@ borders.args = {
224
232
  export const colors = Template.bind({});
225
233
  colors.args = {
226
234
  ...Default.args,
227
- label: 'Bouton avec background blue (default)',
235
+ label: 'Bouton avec background primary (default)',
228
236
  extraButtons: [
229
237
  {
230
238
  ...Default.args,
@@ -12,7 +12,7 @@ export default {
12
12
  description: "Couleur de l'icone",
13
13
  table: { defaultValue: { summary: 'grey' } },
14
14
  control: { type: 'select' },
15
- options: ['grey', 'blue', 'green', 'purple'],
15
+ options: ['neutral', 'primary', 'tertiary', 'success', 'warning'],
16
16
  },
17
17
  icon: {
18
18
  name: 'Icon',
@@ -13,6 +13,10 @@ Permet d'afficher un barre de progression sur un barème de 100%. Des paramètre
13
13
 
14
14
  <Story of={ComponentStories.Default} height={60} />
15
15
 
16
+ <Story of={ComponentStories.Success} height={60} />
17
+
18
+ <Story of={ComponentStories.Tertiary} height={60} />
19
+
16
20
  ## Dark mode
17
21
 
18
22
  Démonstration d'une barre de progression blanche en dark mode avec un sous titre.
@@ -25,7 +29,7 @@ Démonstration d'une barre de progression blanche en dark mode avec un sous titr
25
29
  <PixProgressGauge
26
30
  @value="50"
27
31
  @label="Chargement"
28
- @color="green"
32
+ @color="sucess"
29
33
  @themeMode="dark"
30
34
  @subTitle="Un sous titre"
31
35
  />
@@ -28,11 +28,11 @@ export default {
28
28
  color: {
29
29
  name: 'color',
30
30
  description:
31
- "Modifie la couleur du contenu de la barre de progression. Peut prendre les valeurs `blue`, 'green' ou `purple`",
31
+ 'Modifie la couleur du contenu de la barre de progression. Peut prendre les valeurs `primary`, `green` ou `blue`',
32
32
  type: { name: 'string', required: false },
33
- table: { defaultValue: { summary: 'blue' } },
33
+ table: { defaultValue: { summary: 'primary' } },
34
34
  control: { type: 'select' },
35
- options: ['blue', 'green', 'purple'],
35
+ options: ['primary', 'success', 'tertiary'],
36
36
  },
37
37
  subtitle: {
38
38
  name: 'subtitle',
@@ -59,6 +59,40 @@ Default.args = {
59
59
  value: '50',
60
60
  };
61
61
 
62
+ export const Success = (args) => {
63
+ return {
64
+ template: hbs`<PixProgressGauge
65
+ @value={{this.value}}
66
+ @color={{this.color}}
67
+ @themeMode={{this.themeMode}}
68
+ @subtitle={{this.subtitle}}
69
+ @label={{this.label}}
70
+ />`,
71
+ context: args,
72
+ };
73
+ };
74
+ Success.args = {
75
+ value: '50',
76
+ color: 'success',
77
+ };
78
+
79
+ export const Tertiary = (args) => {
80
+ return {
81
+ template: hbs`<PixProgressGauge
82
+ @value={{this.value}}
83
+ @color={{this.color}}
84
+ @themeMode={{this.themeMode}}
85
+ @subtitle={{this.subtitle}}
86
+ @label={{this.label}}
87
+ />`,
88
+ context: args,
89
+ };
90
+ };
91
+ Tertiary.args = {
92
+ value: '50',
93
+ color: 'tertiary',
94
+ };
95
+
62
96
  export const darkModeProgressGauge = (args) => {
63
97
  return {
64
98
  template: hbs`<section style='width: 100%; padding: 35px 35px 5px;background-color: #253858'>
@@ -76,7 +110,7 @@ export const darkModeProgressGauge = (args) => {
76
110
  darkModeProgressGauge.args = {
77
111
  value: '50',
78
112
  label: 'Chargement',
79
- color: 'purple',
113
+ color: 'primary',
80
114
  themeMode: 'dark',
81
115
  subtitle: 'Avancement',
82
116
  };
@@ -21,16 +21,16 @@ export default {
21
21
  name: 'shade',
22
22
  description: 'Couleur du lien',
23
23
  type: { name: 'string', required: false },
24
- table: { defaultValue: { summary: 'black' } },
24
+ table: { defaultValue: { summary: 'neutral-dark' } },
25
25
  control: { type: 'select' },
26
- options: ['white', 'black', 'blue'],
26
+ options: ['neutral-light', 'neutral-dark', 'neutral-primary'],
27
27
  },
28
28
  },
29
29
  };
30
30
 
31
31
  export const returnTo = {
32
32
  args: {
33
- shade: 'blue',
33
+ shade: 'primary',
34
34
  },
35
35
  };
36
36
 
@@ -24,7 +24,7 @@ export default {
24
24
  type: { name: 'string', required: false },
25
25
  table: { defaultValue: { summary: undefined } },
26
26
  control: { type: 'radio' },
27
- options: [undefined, 'blue', 'grey'],
27
+ options: [undefined, 'primary'],
28
28
  },
29
29
  },
30
30
  };
@@ -13,24 +13,11 @@ export default {
13
13
  name: 'color',
14
14
  description: 'Couleur du tag',
15
15
  type: { name: 'number', required: false },
16
- table: { defaultValue: { summary: 'blue' } },
16
+ table: { defaultValue: { summary: 'primary' } },
17
17
  control: {
18
18
  type: 'select',
19
19
  },
20
- options: [
21
- 'blue',
22
- 'blue-light',
23
- 'green',
24
- 'green-light',
25
- 'grey',
26
- 'grey-light',
27
- 'purple',
28
- 'purple-light',
29
- 'orange',
30
- 'orange-light',
31
- 'yellow',
32
- 'yellow-light',
33
- ],
20
+ options: ['neutral', 'secondary', 'tertiary', 'success', 'error', 'orga'],
34
21
  },
35
22
  compact: {
36
23
  name: 'compact',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "41.1.2",
3
+ "version": "41.2.0",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -138,7 +138,9 @@
138
138
  "files": [
139
139
  "addon/",
140
140
  "app/",
141
- "public/"
141
+ "public/",
142
+ "scripts/migrate-colors-scss-vars-to-css-vars.sh",
143
+ "scripts/migrate-spacing-scss-vars-to-css-vars.sh"
142
144
  ],
143
145
  "storybook-deployer": {
144
146
  "commitMessage": "Deploy Storybook [skip ci]"