@strapi/plugin-color-picker 4.5.0 → 4.5.2

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
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
4
- .c9 {
4
+ .c8 {
5
5
  border: 0;
6
6
  -webkit-clip: rect(0 0 0 0);
7
7
  clip: rect(0 0 0 0);
@@ -27,22 +27,7 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
27
27
  flex-direction: column;
28
28
  }
29
29
 
30
- .c1 > * {
31
- margin-top: 0;
32
- margin-bottom: 0;
33
- }
34
-
35
- .c1 > * + * {
36
- margin-top: 4px;
37
- }
38
-
39
- .c8 {
40
- color: #666687;
41
- font-size: 0.875rem;
42
- line-height: 1.43;
43
- }
44
-
45
- .c6 {
30
+ .c3 {
46
31
  -webkit-align-items: center;
47
32
  -webkit-box-align: center;
48
33
  -ms-flex-align: center;
@@ -56,6 +41,28 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
56
41
  flex-direction: row;
57
42
  }
58
43
 
44
+ .c1 > * {
45
+ margin-top: 0;
46
+ margin-bottom: 0;
47
+ }
48
+
49
+ .c1 > * + * {
50
+ margin-top: 4px;
51
+ }
52
+
53
+ .c2 {
54
+ font-size: 0.75rem;
55
+ line-height: 1.33;
56
+ font-weight: 600;
57
+ color: #32324d;
58
+ }
59
+
60
+ .c7 {
61
+ font-size: 0.875rem;
62
+ line-height: 1.43;
63
+ color: #666687;
64
+ }
65
+
59
66
  .c4 {
60
67
  display: -webkit-box;
61
68
  display: -webkit-flex;
@@ -114,28 +121,7 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
114
121
  border: 2px solid #4945ff;
115
122
  }
116
123
 
117
- .c3 {
118
- -webkit-align-items: center;
119
- -webkit-box-align: center;
120
- -ms-flex-align: center;
121
- align-items: center;
122
- display: -webkit-box;
123
- display: -webkit-flex;
124
- display: -ms-flexbox;
125
- display: flex;
126
- -webkit-flex-direction: row;
127
- -ms-flex-direction: row;
128
- flex-direction: row;
129
- }
130
-
131
- .c2 {
132
- font-weight: 600;
133
- color: #32324d;
134
- font-size: 0.75rem;
135
- line-height: 1.33;
136
- }
137
-
138
- .c7 {
124
+ .c6 {
139
125
  border-radius: 50%;
140
126
  width: 20px;
141
127
  height: 20px;
@@ -195,14 +181,14 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
195
181
  type="button"
196
182
  >
197
183
  <div
198
- class="c6"
184
+ class="c3"
199
185
  >
200
186
  <div
201
- class="c7"
187
+ class="c6"
202
188
  color="#000000"
203
189
  />
204
190
  <span
205
- class="c8"
191
+ class="c7"
206
192
  style="text-transform: uppercase;"
207
193
  >
208
194
  #000000
@@ -227,7 +213,7 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
227
213
  </div>
228
214
  </div>
229
215
  <div
230
- class="c9"
216
+ class="c8"
231
217
  >
232
218
  <p
233
219
  aria-live="polite"
@@ -0,0 +1,12 @@
1
+ {
2
+ "color-picker.label": "Färgväljare",
3
+ "color-picker.description": "Välj färger",
4
+ "color-picker.settings": "Inställningar",
5
+ "color-picket.input.format": "HEX",
6
+ "color-picker.options.advanced.regex": "RegEx-mönster",
7
+ "color-picker.options.advanced.regex.description": "Ange ett regex-mönster för att validera HEX-värdet",
8
+ "color-picker.options.advanced.requiredField": "Obligatoriskt fält",
9
+ "color-picker.options.advanced.requiredField.description": "Du kommer inte att kunna skapa en post om det här fältet är tomt",
10
+ "color-picker.toggle.aria-label": "Växla färgväljare",
11
+ "color-picker.input.aria-label": "Färgväljarinmatning"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "color-picker.label": "顏色",
3
+ "color-picker.description": "選擇任意顏色",
4
+ "color-picker.settings": "設定",
5
+ "color-picket.input.format": "HEX",
6
+ "color-picker.options.advanced.regex": "正則表達模式",
7
+ "color-picker.options.advanced.regex.description": "提供正則表達式以驗證 HEX 值",
8
+ "color-picker.options.advanced.requiredField": "必填欄位",
9
+ "color-picker.options.advanced.requiredField.description": "若此欄位為空,您將無法建立項目",
10
+ "color-picker.toggle.aria-label": "選色器開關",
11
+ "color-picker.input.aria-label": "選色器輸入"
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-color-picker",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "Strapi maintained Custom Fields",
5
5
  "strapi": {
6
6
  "name": "color-picker",
@@ -38,5 +38,5 @@
38
38
  "node": ">=14.19.1 <=18.x.x",
39
39
  "npm": ">=6.0.0"
40
40
  },
41
- "gitHead": "33debd57010667a3fc5dfa343a673206cfb956e1"
41
+ "gitHead": "bcb1b7f472aae2556a9b59d59ee66d241c497a3e"
42
42
  }