@1024pix/pix-ui 41.1.1 → 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.
- package/addon/components/pix-button-base.js +2 -2
- package/addon/components/pix-progress-gauge.js +10 -2
- package/addon/components/pix-return-to.hbs +0 -2
- package/addon/styles/_pix-background-header.scss +3 -3
- package/addon/styles/_pix-banner.scss +29 -32
- package/addon/styles/_pix-block.scss +3 -3
- package/addon/styles/_pix-button-base.scss +86 -65
- package/addon/styles/_pix-button.scss +5 -5
- package/addon/styles/_pix-checkbox.scss +108 -105
- package/addon/styles/_pix-collapsible.scss +22 -13
- package/addon/styles/_pix-filter-banner.scss +15 -14
- package/addon/styles/_pix-filterable-and-searchable-select.scss +4 -4
- package/addon/styles/_pix-icon-button.scss +8 -9
- package/addon/styles/_pix-indicator-card.scss +28 -20
- package/addon/styles/_pix-input-code.scss +17 -23
- package/addon/styles/_pix-input-password.scss +13 -14
- package/addon/styles/_pix-input.scss +10 -7
- package/addon/styles/_pix-message.scss +16 -16
- package/addon/styles/_pix-modal.scss +21 -22
- package/addon/styles/_pix-multi-select.scss +26 -23
- package/addon/styles/_pix-pagination.scss +6 -6
- package/addon/styles/_pix-progress-gauge.scss +21 -21
- package/addon/styles/_pix-radio-button.scss +21 -16
- package/addon/styles/_pix-return-to.scss +22 -33
- package/addon/styles/_pix-search-input.scss +11 -11
- package/addon/styles/_pix-select.scss +40 -37
- package/addon/styles/_pix-selectable-tag.scss +24 -29
- package/addon/styles/_pix-sidebar.scss +16 -16
- package/addon/styles/_pix-stars.scss +14 -17
- package/addon/styles/_pix-tag.scss +48 -39
- package/addon/styles/_pix-textarea.scss +6 -5
- package/addon/styles/_pix-toggle.scss +11 -11
- package/addon/styles/_pix-tooltip.scss +29 -28
- package/addon/styles/pix-design-tokens/_colors.scss +71 -10
- package/addon/styles/pix-design-tokens/_form.scss +32 -26
- package/addon/styles/pix-design-tokens/_spacing.scss +12 -0
- package/app/stories/pix-button.stories.js +13 -5
- package/app/stories/pix-indicator-card.stories.js +1 -1
- package/app/stories/pix-progress-gauge.mdx +5 -1
- package/app/stories/pix-progress-gauge.stories.js +38 -4
- package/app/stories/pix-return-to.stories.js +3 -3
- package/app/stories/pix-stars.stories.js +1 -1
- package/app/stories/pix-tag.stories.js +2 -15
- package/package.json +9 -7
- package/scripts/migrate-colors-scss-vars-to-css-vars.sh +120 -0
- package/scripts/migrate-spacing-scss-vars-to-css-vars.sh +23 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1024pix/pix-ui",
|
|
3
|
-
"version": "41.
|
|
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"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"author": "GIP Pix",
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": "^20.
|
|
11
|
+
"node": "^20.10.0"
|
|
12
12
|
},
|
|
13
13
|
"ember": {
|
|
14
14
|
"edition": "octane"
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@1024pix/ember-testing-library": "^1.0.0",
|
|
62
|
-
"@1024pix/eslint-config": "^1.
|
|
62
|
+
"@1024pix/eslint-config": "^1.1.1",
|
|
63
63
|
"@1024pix/storybook-ember": "^7.1.1",
|
|
64
|
-
"@1024pix/stylelint-config": "^5.0.
|
|
64
|
+
"@1024pix/stylelint-config": "^5.0.2",
|
|
65
65
|
"@babel/eslint-parser": "^7.19.1",
|
|
66
66
|
"@babel/plugin-proposal-decorators": "^7.20.5",
|
|
67
67
|
"@ember/optional-features": "^2.0.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@storybook/theming": "7.1.0",
|
|
88
88
|
"@testing-library/dom": "^8.20.0",
|
|
89
89
|
"@testing-library/user-event": "^14.4.3",
|
|
90
|
-
"chromatic": "^
|
|
90
|
+
"chromatic": "^9.0.0",
|
|
91
91
|
"core-js": "^3.26.1",
|
|
92
92
|
"ember-cli": "^4.8.0",
|
|
93
93
|
"ember-cli-dependency-checker": "^3.3.1",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"npm-run-all": "^4.1.5",
|
|
120
120
|
"prettier": "^3.0.0",
|
|
121
121
|
"qunit": "^2.19.3",
|
|
122
|
-
"qunit-dom": "^
|
|
122
|
+
"qunit-dom": "^3.0.0",
|
|
123
123
|
"sass": "^1.56.1",
|
|
124
124
|
"storybook": "^7.1.0",
|
|
125
125
|
"stylelint": "^15.0.0",
|
|
@@ -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]"
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
#!/bin/bash -e
|
|
2
|
+
|
|
3
|
+
for f in $(find . -name '*.scss' -not -path './node_modules/*' -not -name '_colors.scss')
|
|
4
|
+
do
|
|
5
|
+
echo "parsing file" $f
|
|
6
|
+
sed -i '' -e 's/$pix-primary-5/var(--pix-primary-10)/' "$f"
|
|
7
|
+
sed -i '' -e 's/$pix-primary-10/var(--pix-primary-100)/' "$f"
|
|
8
|
+
sed -i '' -e 's/$pix-primary-20/var(--pix-primary-100)/' "$f"
|
|
9
|
+
sed -i '' -e 's/$pix-primary-30/var(--pix-primary-300)/' "$f"
|
|
10
|
+
sed -i '' -e 's/$pix-primary-40/var(--pix-primary-500)/' "$f"
|
|
11
|
+
sed -i '' -e 's/$pix-primary-60/var(--pix-primary-700)/' "$f"
|
|
12
|
+
sed -i '' -e 's/$pix-primary-70/var(--pix-primary-700)/' "$f"
|
|
13
|
+
sed -i '' -e 's/$pix-primary-80/var(--pix-primary-900)/' "$f"
|
|
14
|
+
sed -i '' -e 's/$pix-primary/var(--pix-primary-500)/' "$f"
|
|
15
|
+
|
|
16
|
+
sed -i '' -e 's/$pix-secondary-50/var(--pix-secondary-500)/' "$f"
|
|
17
|
+
sed -i '' -e 's/$pix-secondary-5/var(--pix-secondary-50)/' "$f"
|
|
18
|
+
sed -i '' -e 's/$pix-secondary-10/var(--pix-secondary-100)/' "$f"
|
|
19
|
+
sed -i '' -e 's/$pix-secondary-20/var(--pix-secondary-300)/' "$f"
|
|
20
|
+
sed -i '' -e 's/$pix-secondary-40/var(--pix-secondary-500)/' "$f"
|
|
21
|
+
sed -i '' -e 's/$pix-secondary-60/var(--pix-secondary-700)/' "$f"
|
|
22
|
+
sed -i '' -e 's/$pix-secondary-80/var(--pix-secondary-900)/' "$f"
|
|
23
|
+
sed -i '' -e 's/$pix-secondary/var(--pix-secondary-500)/' "$f"
|
|
24
|
+
|
|
25
|
+
sed -i '' -e 's/$pix-tertiary-50/var(--pix-tertiary-500)/' "$f"
|
|
26
|
+
sed -i '' -e 's/$pix-tertiary-5/var(--pix-tertiary-100)/' "$f"
|
|
27
|
+
sed -i '' -e 's/$pix-tertiary-10/var(--pix-tertiary-100)/' "$f"
|
|
28
|
+
sed -i '' -e 's/$pix-tertiary-20/var(--pix-tertiary-100)/' "$f"
|
|
29
|
+
sed -i '' -e 's/$pix-tertiary-30/var(--pix-tertiary-100)/' "$f"
|
|
30
|
+
sed -i '' -e 's/$pix-tertiary-60/var(--pix-tertiary-900)/' "$f"
|
|
31
|
+
sed -i '' -e 's/$pix-tertiary-70/var(--pix-tertiary-900)/' "$f"
|
|
32
|
+
sed -i '' -e 's/$pix-tertiary-80/var(--pix-tertiary-900)/' "$f"
|
|
33
|
+
sed -i '' -e 's/$pix-tertiary/var(--pix-tertiary-500)/' "$f"
|
|
34
|
+
|
|
35
|
+
sed -i '' -e 's/$pix-neutral-0/var(--pix-neutral-0)/' "$f"
|
|
36
|
+
sed -i '' -e 's/$pix-neutral-5/var(--pix-neutral-20)/' "$f"
|
|
37
|
+
sed -i '' -e 's/$pix-neutral-15/var(--pix-neutral-20)/' "$f"
|
|
38
|
+
sed -i '' -e 's/$pix-neutral-20/var(--pix-neutral-20)/' "$f"
|
|
39
|
+
sed -i '' -e 's/$pix-neutral-22/var(--pix-neutral-100)/' "$f"
|
|
40
|
+
sed -i '' -e 's/$pix-neutral-25/var(--pix-neutral-100)/' "$f"
|
|
41
|
+
sed -i '' -e 's/$pix-neutral-30/var(--pix-neutral-100)/' "$f"
|
|
42
|
+
sed -i '' -e 's/$pix-neutral-35/var(--pix-neutral-100)/' "$f"
|
|
43
|
+
sed -i '' -e 's/$pix-neutral-40/var(--pix-neutral-500)/' "$f"
|
|
44
|
+
sed -i '' -e 's/$pix-neutral-45/var(--pix-neutral-500)/' "$f"
|
|
45
|
+
sed -i '' -e 's/$pix-neutral-50/var(--pix-neutral-500)/' "$f"
|
|
46
|
+
sed -i '' -e 's/$pix-neutral-60/var(--pix-neutral-500)/' "$f"
|
|
47
|
+
sed -i '' -e 's/$pix-neutral-70/var(--pix-neutral-800)/' "$f"
|
|
48
|
+
sed -i '' -e 's/$pix-neutral-80/var(--pix-neutral-800)/' "$f"
|
|
49
|
+
sed -i '' -e 's/$pix-neutral-90/var(--pix-neutral-900)/' "$f"
|
|
50
|
+
sed -i '' -e 's/$pix-neutral-100/var(--pix-neutral-900)/' "$f"
|
|
51
|
+
sed -i '' -e 's/$pix-neutral-110/var(--pix-neutral-900)/' "$f"
|
|
52
|
+
sed -i '' -e 's/$pix-neutral-10/var(--pix-neutral-20)/' "$f"
|
|
53
|
+
|
|
54
|
+
sed -i '' -e 's/$pix-success-50/var(--pix-success-500)/' "$f"
|
|
55
|
+
sed -i '' -e 's/$pix-success-5/var(--pix-success-50)/' "$f"
|
|
56
|
+
sed -i '' -e 's/$pix-success-10/var(--pix-success-100)/' "$f"
|
|
57
|
+
sed -i '' -e 's/$pix-success-20/var(--pix-success-300)/' "$f"
|
|
58
|
+
sed -i '' -e 's/$pix-success-30/var(--pix-success-300)/' "$f"
|
|
59
|
+
sed -i '' -e 's/$pix-success-60/var(--pix-success-700)/' "$f"
|
|
60
|
+
sed -i '' -e 's/$pix-success-70/var(--pix-success-700)/' "$f"
|
|
61
|
+
sed -i '' -e 's/$pix-success-80/var(--pix-success-900)/' "$f"
|
|
62
|
+
sed -i '' -e 's/$pix-success/var(--pix-success-500)/' "$f"
|
|
63
|
+
|
|
64
|
+
sed -i '' -e 's/$pix-warning-50/var(--pix-warning-500)/' "$f"
|
|
65
|
+
sed -i '' -e 's/$pix-warning-5/var(--pix-warning-50)/' "$f"
|
|
66
|
+
sed -i '' -e 's/$pix-warning-10/var(--pix-warning-100)/' "$f"
|
|
67
|
+
sed -i '' -e 's/$pix-warning-20/var(--pix-warning-300)/' "$f"
|
|
68
|
+
sed -i '' -e 's/$pix-warning-30/var(--pix-warning-300)/' "$f"
|
|
69
|
+
sed -i '' -e 's/$pix-warning-40/var(--pix-warning-500)/' "$f"
|
|
70
|
+
sed -i '' -e 's/$pix-warning-60/var(--pix-warning-700)/' "$f"
|
|
71
|
+
sed -i '' -e 's/$pix-warning-70/var(--pix-warning-700)/' "$f"
|
|
72
|
+
sed -i '' -e 's/$pix-warning-80/var(--pix-warning-900)/' "$f"
|
|
73
|
+
|
|
74
|
+
sed -i '' -e 's/$pix-error-50/var(--pix-error-500)/' "$f"
|
|
75
|
+
sed -i '' -e 's/$pix-error-5/var(--pix-error-50)/' "$f"
|
|
76
|
+
sed -i '' -e 's/$pix-error-10/var(--pix-error-100)/' "$f"
|
|
77
|
+
sed -i '' -e 's/$pix-error-20/var(--pix-error-500)/' "$f"
|
|
78
|
+
sed -i '' -e 's/$pix-error-30/var(--pix-error-500)/' "$f"
|
|
79
|
+
sed -i '' -e 's/$pix-error-40/var(--pix-error-500)/' "$f"
|
|
80
|
+
sed -i '' -e 's/$pix-error-60/var(--pix-error-700)/' "$f"
|
|
81
|
+
sed -i '' -e 's/$pix-error-70/var(--pix-error-700)/' "$f"
|
|
82
|
+
sed -i '' -e 's/$pix-error-80/var(--pix-error-900)/' "$f"
|
|
83
|
+
sed -i '' -e 's/$pix-error-90/var(--pix-error-900)/' "$f"
|
|
84
|
+
|
|
85
|
+
sed -i '' -e 's/$pix-secondary-certif-50/var(--pix-certif-500)/' "$f"
|
|
86
|
+
sed -i '' -e 's/$pix-secondary-certif-5/var(--pix-certif-50)/' "$f"
|
|
87
|
+
sed -i '' -e 's/$pix-secondary-certif-10/var(--pix-certif-50)/' "$f"
|
|
88
|
+
sed -i '' -e 's/$pix-secondary-certif-20/var(--pix-certif-50)/' "$f"
|
|
89
|
+
sed -i '' -e 's/$pix-secondary-certif-30/var(--pix-certif-50)/' "$f"
|
|
90
|
+
sed -i '' -e 's/$pix-secondary-certif-60/var(--pix-certif-500)/' "$f"
|
|
91
|
+
sed -i '' -e 's/$pix-secondary-certif-70/var(--pix-certif-500)/' "$f"
|
|
92
|
+
sed -i '' -e 's/$pix-secondary-certif-80/var(--pix-certif-500)/' "$f"
|
|
93
|
+
sed -i '' -e 's/$pix-secondary-certif/var(--pix-certif-50)/' "$f"
|
|
94
|
+
|
|
95
|
+
sed -i '' -e 's/$pix-secondary-orga-50/var(--pix-orga-500)/' "$f"
|
|
96
|
+
sed -i '' -e 's/$pix-secondary-orga-5/var(--pix-orga-50)/' "$f"
|
|
97
|
+
sed -i '' -e 's/$pix-secondary-orga-10/var(--pix-orga-50)/' "$f"
|
|
98
|
+
sed -i '' -e 's/$pix-secondary-orga-20/var(--pix-orga-50)/' "$f"
|
|
99
|
+
sed -i '' -e 's/$pix-secondary-orga-30/var(--pix-orga-50)/' "$f"
|
|
100
|
+
sed -i '' -e 's/$pix-secondary-orga-60/var(--pix-orga-500)/' "$f"
|
|
101
|
+
sed -i '' -e 's/$pix-secondary-orga-70/var(--pix-orga-500)/' "$f"
|
|
102
|
+
sed -i '' -e 's/$pix-secondary-orga-80/var(--pix-orga-500)/' "$f"
|
|
103
|
+
sed -i '' -e 's/$pix-secondary-orga/var(--pix-orga-50)/' "$f"
|
|
104
|
+
|
|
105
|
+
sed -i '' -e 's/$pix-information-dark/var(--pix-information-dark)/' "$f"
|
|
106
|
+
sed -i '' -e 's/$pix-information-light/var(--pix-information-light)/' "$f"
|
|
107
|
+
|
|
108
|
+
sed -i '' -e 's/$pix-content-dark/var(--pix-content-dark)/' "$f"
|
|
109
|
+
sed -i '' -e 's/$pix-content-light/var(--pix-content-light)/' "$f"
|
|
110
|
+
|
|
111
|
+
sed -i '' -e 's/$pix-communication-dark/var(--pix-communication-dark)/' "$f"
|
|
112
|
+
sed -i '' -e 's/$pix-communication-light/var(--pix-communication-light)/' "$f"
|
|
113
|
+
|
|
114
|
+
sed -i '' -e 's/$pix-security-dark/var(--pix-security-dark)/' "$f"
|
|
115
|
+
sed -i '' -e 's/$pix-security-light/var(--pix-security-light)/' "$f"
|
|
116
|
+
|
|
117
|
+
sed -i '' -e 's/$pix-environment-dark/var(--pix-environment-dark)/' "$f"
|
|
118
|
+
sed -i '' -e 's/$pix-environment-light/var(--pix-environment-light)/' "$f"
|
|
119
|
+
|
|
120
|
+
done
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/bin/bash -e
|
|
2
|
+
|
|
3
|
+
for f in $(find . -name '*.scss' -not -path './node_modules/*' -not -name '_spacing.scss')
|
|
4
|
+
do
|
|
5
|
+
echo "parsing file" $f
|
|
6
|
+
sed -i '' -e 's/$pix-spacing-xxs/var(--pix-spacing-1x)/g' "$f"
|
|
7
|
+
sed -i '' -e 's/$pix-spacing-xs/var(--pix-spacing-2x)/g' "$f"
|
|
8
|
+
sed -i '' -e 's/$pix-spacing-s/var(--pix-spacing-4x)/g' "$f"
|
|
9
|
+
sed -i '' -e 's/$pix-spacing-m/var(--pix-spacing-6x)/g' "$f"
|
|
10
|
+
sed -i '' -e 's/$pix-spacing-l/var(--pix-spacing-8x)/g' "$f"
|
|
11
|
+
sed -i '' -e 's/$pix-spacing-xl/var(--pix-spacing-10x)/g' "$f"
|
|
12
|
+
sed -i '' -e 's/$pix-spacing-xxl/var(--pix-spacing-12x)/g' "$f"
|
|
13
|
+
|
|
14
|
+
sed -i '' -e 's/\b4px/var(--pix-spacing-1x)/g' "$f"
|
|
15
|
+
sed -i '' -e 's/\b8px/var(--pix-spacing-2x)/g' "$f"
|
|
16
|
+
sed -i '' -e 's/\b12px/var(--pix-spacing-3x)/g' "$f"
|
|
17
|
+
sed -i '' -e 's/\b16px/var(--pix-spacing-4x)/g' "$f"
|
|
18
|
+
sed -i '' -e 's/\b24px/var(--pix-spacing-6x)/g' "$f"
|
|
19
|
+
sed -i '' -e 's/\b32px/var(--pix-spacing-8x)/g' "$f"
|
|
20
|
+
sed -i '' -e 's/\b40px/var(--pix-spacing-10x)/g' "$f"
|
|
21
|
+
sed -i '' -e 's/\b48px/var(--pix-spacing-12x)/g' "$f"
|
|
22
|
+
|
|
23
|
+
done
|