@strapi/plugin-color-picker 4.9.0-exp.90df253ba90fd6879eb56a720a1f80d04ff745b8 → 4.9.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/.eslintignore ADDED
@@ -0,0 +1,2 @@
1
+ node_modules/
2
+ .eslintrc.js
package/.eslintrc.js ADDED
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ root: true,
3
+ overrides: [
4
+ {
5
+ files: ['admin/**/*'],
6
+ extends: ['custom/front'],
7
+ },
8
+ {
9
+ files: ['**/*'],
10
+ excludedFiles: ['admin/**/*'],
11
+ extends: ['custom/back'],
12
+ },
13
+ ],
14
+ };
@@ -25,7 +25,7 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
25
25
  gap: 4px;
26
26
  }
27
27
 
28
- .c2 {
28
+ .c4 {
29
29
  -webkit-align-items: center;
30
30
  -webkit-box-align: center;
31
31
  -ms-flex-align: center;
@@ -46,32 +46,32 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
46
46
  color: #32324d;
47
47
  }
48
48
 
49
- .c7 {
49
+ .c8 {
50
50
  font-size: 0.875rem;
51
51
  line-height: 1.43;
52
52
  color: #666687;
53
53
  }
54
54
 
55
- .c4 {
55
+ .c5 {
56
56
  position: relative;
57
57
  outline: none;
58
58
  }
59
59
 
60
- .c4 svg {
60
+ .c5 svg {
61
61
  height: 12px;
62
62
  width: 12px;
63
63
  }
64
64
 
65
- .c4 svg > g,
66
- .c4 svg path {
65
+ .c5 svg > g,
66
+ .c5 svg path {
67
67
  fill: #ffffff;
68
68
  }
69
69
 
70
- .c4[aria-disabled='true'] {
70
+ .c5[aria-disabled='true'] {
71
71
  pointer-events: none;
72
72
  }
73
73
 
74
- .c4:after {
74
+ .c5:after {
75
75
  -webkit-transition-property: all;
76
76
  transition-property: all;
77
77
  -webkit-transition-duration: 0.2s;
@@ -86,11 +86,11 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
86
86
  border: 2px solid transparent;
87
87
  }
88
88
 
89
- .c4:focus-visible {
89
+ .c5:focus-visible {
90
90
  outline: none;
91
91
  }
92
92
 
93
- .c4:focus-visible:after {
93
+ .c5:focus-visible:after {
94
94
  border-radius: 8px;
95
95
  content: '';
96
96
  position: absolute;
@@ -101,7 +101,7 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
101
101
  border: 2px solid #4945ff;
102
102
  }
103
103
 
104
- .c8 {
104
+ .c9 {
105
105
  border: 0;
106
106
  -webkit-clip: rect(0 0 0 0);
107
107
  clip: rect(0 0 0 0);
@@ -113,7 +113,18 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
113
113
  width: 1px;
114
114
  }
115
115
 
116
- .c6 {
116
+ .c2 {
117
+ display: -webkit-box;
118
+ display: -webkit-flex;
119
+ display: -ms-flexbox;
120
+ display: flex;
121
+ -webkit-align-items: center;
122
+ -webkit-box-align: center;
123
+ -ms-flex-align: center;
124
+ align-items: center;
125
+ }
126
+
127
+ .c7 {
117
128
  border-radius: 50%;
118
129
  width: 20px;
119
130
  height: 20px;
@@ -122,7 +133,7 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
122
133
  border: 1px solid rgba(0,0,0,0.1);
123
134
  }
124
135
 
125
- .c5 {
136
+ .c6 {
126
137
  display: -webkit-box;
127
138
  display: -webkit-flex;
128
139
  display: -ms-flexbox;
@@ -137,12 +148,12 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
137
148
  align-items: center;
138
149
  }
139
150
 
140
- .c5 svg {
151
+ .c6 svg {
141
152
  width: 8px;
142
153
  height: 8px;
143
154
  }
144
155
 
145
- .c5 svg > path {
156
+ .c6 svg > path {
146
157
  fill: #8e8ea9;
147
158
  justify-self: flex-end;
148
159
  }
@@ -155,14 +166,10 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
155
166
  class="c0"
156
167
  >
157
168
  <label
158
- class="c1"
169
+ class="c1 c2"
159
170
  for="color"
160
171
  >
161
- <div
162
- class="c2"
163
- >
164
- color-picker
165
- </div>
172
+ color-picker
166
173
  </label>
167
174
  <button
168
175
  aria-controls="color-picker-value"
@@ -170,18 +177,18 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
170
177
  aria-expanded="false"
171
178
  aria-haspopup="dialog"
172
179
  aria-label="Color picker toggle"
173
- class="c3 c2 c4 c5"
180
+ class="c3 c4 c5 c6"
174
181
  type="button"
175
182
  >
176
183
  <div
177
- class="c2"
184
+ class="c4"
178
185
  >
179
186
  <div
180
- class="c6"
187
+ class="c7"
181
188
  color="#000000"
182
189
  />
183
190
  <span
184
- class="c7"
191
+ class="c8"
185
192
  style="text-transform: uppercase;"
186
193
  >
187
194
  #000000
@@ -206,7 +213,7 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
206
213
  </div>
207
214
  </div>
208
215
  <div
209
- class="c8"
216
+ class="c9"
210
217
  >
211
218
  <p
212
219
  aria-live="polite"
@@ -1,10 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const baseConfig = require('../../../jest.base-config.front');
4
- const pkg = require('./package.json');
5
-
6
3
  module.exports = {
7
- ...baseConfig,
8
- displayName: (pkg.strapi && pkg.strapi.name) || pkg.name,
9
- roots: [__dirname],
4
+ preset: '../../../jest-preset.front.js',
10
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-color-picker",
3
- "version": "4.9.0-exp.90df253ba90fd6879eb56a720a1f80d04ff745b8",
3
+ "version": "4.9.0",
4
4
  "description": "Strapi maintained Custom Fields",
5
5
  "strapi": {
6
6
  "name": "color-picker",
@@ -9,12 +9,12 @@
9
9
  "displayName": "Color Picker"
10
10
  },
11
11
  "dependencies": {
12
- "@strapi/design-system": "1.6.5",
13
- "@strapi/helper-plugin": "4.9.0-exp.90df253ba90fd6879eb56a720a1f80d04ff745b8",
14
- "@strapi/icons": "1.6.5",
12
+ "@strapi/design-system": "1.6.6",
13
+ "@strapi/helper-plugin": "4.9.0",
14
+ "@strapi/icons": "1.6.6",
15
15
  "prop-types": "^15.7.2",
16
16
  "react-colorful": "5.6.1",
17
- "react-intl": "6.2.8"
17
+ "react-intl": "6.3.2"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@testing-library/react": "12.1.4",
@@ -30,6 +30,13 @@
30
30
  "react-router-dom": "5.3.4",
31
31
  "styled-components": "5.3.3"
32
32
  },
33
+ "scripts": {
34
+ "test:front": "cross-env IS_EE=true jest --config ./jest.config.front.js",
35
+ "test:front:watch": "cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",
36
+ "test:front:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js",
37
+ "test:front:watch:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll",
38
+ "lint": "eslint ."
39
+ },
33
40
  "repository": {
34
41
  "type": "git",
35
42
  "url": "https://github.com/strapi/strapi.git",
@@ -52,5 +59,5 @@
52
59
  "node": ">=14.19.1 <=18.x.x",
53
60
  "npm": ">=6.0.0"
54
61
  },
55
- "gitHead": "366eb8a0d0f06935914854c6d9c4b3fe859468e0"
62
+ "gitHead": "ffe3f4621ccc968ce56fda9a8317ec30d4bad205"
56
63
  }
package/jest.config.js DELETED
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- const baseConfig = require('../../../jest.base-config');
4
- const pkg = require('./package.json');
5
-
6
- module.exports = {
7
- ...baseConfig,
8
- displayName: (pkg.strapi && pkg.strapi.name) || pkg.name,
9
- roots: [__dirname],
10
- };