@atlaskit/color-picker 3.1.6 → 3.1.7
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/CHANGELOG.md +39 -33
- package/dist/cjs/components/ColorCard.js +2 -3
- package/dist/cjs/components/ColorPaletteMenu.js +5 -7
- package/dist/cjs/components/ColorPicker.js +4 -6
- package/dist/cjs/components/Trigger.js +2 -3
- package/dist/cjs/components/components.js +5 -9
- package/dist/cjs/constants.js +6 -12
- package/dist/cjs/index.js +3 -6
- package/dist/cjs/styled/ColorCard.js +4 -8
- package/dist/cjs/styled/ColorPalette.js +4 -7
- package/dist/cjs/styled/ColorPicker.js +1 -2
- package/dist/cjs/types.js +2 -3
- package/dist/cjs/utils.js +3 -5
- package/dist/es2019/components/ColorPaletteMenu.js +2 -2
- package/dist/es2019/components/ColorPicker.js +1 -1
- package/dist/esm/components/ColorPaletteMenu.js +2 -2
- package/dist/esm/components/ColorPicker.js +1 -1
- package/dist/types/styled/ColorCard.d.ts +1 -1
- package/dist/types/styled/ColorPalette.d.ts +1 -1
- package/dist/types/styled/ColorPicker.d.ts +1 -1
- package/dist/types-ts4.5/styled/ColorCard.d.ts +1 -1
- package/dist/types-ts4.5/styled/ColorPalette.d.ts +1 -1
- package/dist/types-ts4.5/styled/ColorPicker.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,47 +1,53 @@
|
|
|
1
1
|
# @atlaskit/color-picker
|
|
2
2
|
|
|
3
|
+
## 3.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 3.1.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
13
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
8
14
|
- Updated dependencies
|
|
9
15
|
|
|
10
16
|
## 3.1.5
|
|
11
17
|
|
|
12
18
|
### Patch Changes
|
|
13
19
|
|
|
14
|
-
- [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
|
|
20
|
+
- [#37925](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37925) [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
|
|
15
21
|
|
|
16
22
|
## 3.1.4
|
|
17
23
|
|
|
18
24
|
### Patch Changes
|
|
19
25
|
|
|
20
|
-
- [`bada4c7ae21`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bada4c7ae21) - Role and Tooltip added for Accessibility
|
|
26
|
+
- [#37983](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37983) [`bada4c7ae21`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bada4c7ae21) - Role and Tooltip added for Accessibility
|
|
21
27
|
|
|
22
28
|
## 3.1.3
|
|
23
29
|
|
|
24
30
|
### Patch Changes
|
|
25
31
|
|
|
26
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
32
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
27
33
|
|
|
28
34
|
## 3.1.2
|
|
29
35
|
|
|
30
36
|
### Patch Changes
|
|
31
37
|
|
|
32
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
38
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
33
39
|
|
|
34
40
|
## 3.1.1
|
|
35
41
|
|
|
36
42
|
### Patch Changes
|
|
37
43
|
|
|
38
|
-
- [`4fd4b6307b7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4fd4b6307b7) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
44
|
+
- [#33284](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33284) [`4fd4b6307b7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4fd4b6307b7) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
39
45
|
|
|
40
46
|
## 3.1.0
|
|
41
47
|
|
|
42
48
|
### Minor Changes
|
|
43
49
|
|
|
44
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
50
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
45
51
|
|
|
46
52
|
### Patch Changes
|
|
47
53
|
|
|
@@ -51,7 +57,7 @@
|
|
|
51
57
|
|
|
52
58
|
### Patch Changes
|
|
53
59
|
|
|
54
|
-
- [`4ce590325b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ce590325b4) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
60
|
+
- [#32034](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32034) [`4ce590325b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ce590325b4) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
55
61
|
|
|
56
62
|
## 3.0.9
|
|
57
63
|
|
|
@@ -69,7 +75,7 @@
|
|
|
69
75
|
|
|
70
76
|
### Patch Changes
|
|
71
77
|
|
|
72
|
-
- [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
78
|
+
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324) [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
73
79
|
|
|
74
80
|
## 3.0.6
|
|
75
81
|
|
|
@@ -87,7 +93,7 @@
|
|
|
87
93
|
|
|
88
94
|
### Patch Changes
|
|
89
95
|
|
|
90
|
-
- [`cb8f8e76d25`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb8f8e76d25) - Update types for react-select and @atlaskit/select upgrade
|
|
96
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`cb8f8e76d25`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb8f8e76d25) - Update types for react-select and @atlaskit/select upgrade
|
|
91
97
|
Update commerce-ui entrypoints that caused a pipeline issue.
|
|
92
98
|
- Updated dependencies
|
|
93
99
|
|
|
@@ -101,19 +107,19 @@
|
|
|
101
107
|
|
|
102
108
|
### Patch Changes
|
|
103
109
|
|
|
104
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
110
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
105
111
|
|
|
106
112
|
## 3.0.1
|
|
107
113
|
|
|
108
114
|
### Patch Changes
|
|
109
115
|
|
|
110
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
116
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
111
117
|
|
|
112
118
|
## 3.0.0
|
|
113
119
|
|
|
114
120
|
### Major Changes
|
|
115
121
|
|
|
116
|
-
- [`b1f4bf97543`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1f4bf97543) - [ux] Fixes bug with tabbing
|
|
122
|
+
- [#21194](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21194) [`b1f4bf97543`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1f4bf97543) - [ux] Fixes bug with tabbing
|
|
117
123
|
|
|
118
124
|
## 2.0.1
|
|
119
125
|
|
|
@@ -125,25 +131,25 @@
|
|
|
125
131
|
|
|
126
132
|
### Major Changes
|
|
127
133
|
|
|
128
|
-
- [`80b9cc64aa2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/80b9cc64aa2) - [ux] Added tokens to color-picker
|
|
134
|
+
- [#20864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20864) [`80b9cc64aa2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/80b9cc64aa2) - [ux] Added tokens to color-picker
|
|
129
135
|
|
|
130
136
|
## 1.3.1
|
|
131
137
|
|
|
132
138
|
### Patch Changes
|
|
133
139
|
|
|
134
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
140
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
135
141
|
|
|
136
142
|
## 1.3.0
|
|
137
143
|
|
|
138
144
|
### Minor Changes
|
|
139
145
|
|
|
140
|
-
- [`10b517acfea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10b517acfea) - [ux] Updated how the darker border for each colour block is rendered by using css instead of `darken()`
|
|
146
|
+
- [#18826](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18826) [`10b517acfea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10b517acfea) - [ux] Updated how the darker border for each colour block is rendered by using css instead of `darken()`
|
|
141
147
|
|
|
142
148
|
## 1.2.6
|
|
143
149
|
|
|
144
150
|
### Patch Changes
|
|
145
151
|
|
|
146
|
-
- [`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal upgrade of memoize-one to 6.0.0
|
|
152
|
+
- [#15694](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15694) [`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal upgrade of memoize-one to 6.0.0
|
|
147
153
|
|
|
148
154
|
## 1.2.5
|
|
149
155
|
|
|
@@ -161,7 +167,7 @@
|
|
|
161
167
|
|
|
162
168
|
### Patch Changes
|
|
163
169
|
|
|
164
|
-
- [`a96040c6a39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a96040c6a39) - Update imports to help tree-shake, greatly improving bundle size
|
|
170
|
+
- [#11774](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11774) [`a96040c6a39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a96040c6a39) - Update imports to help tree-shake, greatly improving bundle size
|
|
165
171
|
|
|
166
172
|
## 1.2.2
|
|
167
173
|
|
|
@@ -173,31 +179,31 @@
|
|
|
173
179
|
|
|
174
180
|
### Patch Changes
|
|
175
181
|
|
|
176
|
-
- [`76b3b72511e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76b3b72511e) - Use injected package name and version for analytics instead of version.json.
|
|
182
|
+
- [#9184](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9184) [`76b3b72511e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76b3b72511e) - Use injected package name and version for analytics instead of version.json.
|
|
177
183
|
|
|
178
184
|
## 1.2.0
|
|
179
185
|
|
|
180
186
|
### Minor Changes
|
|
181
187
|
|
|
182
|
-
- [`5076c4c7f34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5076c4c7f34) - [ux] Color picker will now regain focus after a selection has been made instead of giving focus to last focused element on the page
|
|
188
|
+
- [#9183](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9183) [`5076c4c7f34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5076c4c7f34) - [ux] Color picker will now regain focus after a selection has been made instead of giving focus to last focused element on the page
|
|
183
189
|
|
|
184
190
|
## 1.1.1
|
|
185
191
|
|
|
186
192
|
### Patch Changes
|
|
187
193
|
|
|
188
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
194
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
189
195
|
|
|
190
196
|
## 1.1.0
|
|
191
197
|
|
|
192
198
|
### Minor Changes
|
|
193
199
|
|
|
194
|
-
- [`6d45a6aad7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d45a6aad7) - [ux] Added a slightly darker border to each color block so that white is visible
|
|
200
|
+
- [#5789](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5789) [`6d45a6aad7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d45a6aad7) - [ux] Added a slightly darker border to each color block so that white is visible
|
|
195
201
|
|
|
196
202
|
## 1.0.7
|
|
197
203
|
|
|
198
204
|
### Patch Changes
|
|
199
205
|
|
|
200
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
206
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
201
207
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
202
208
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
203
209
|
|
|
@@ -205,13 +211,13 @@
|
|
|
205
211
|
|
|
206
212
|
### Patch Changes
|
|
207
213
|
|
|
208
|
-
- [`9429370cc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9429370cc0) - [ux] Selecting a color no longer submits a parent form
|
|
214
|
+
- [#5548](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5548) [`9429370cc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9429370cc0) - [ux] Selecting a color no longer submits a parent form
|
|
209
215
|
|
|
210
216
|
## 1.0.5
|
|
211
217
|
|
|
212
218
|
### Patch Changes
|
|
213
219
|
|
|
214
|
-
- [`de40912b0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de40912b0a) - Fix types not resolving correctly due to an incorrect types path in package.json
|
|
220
|
+
- [#5406](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5406) [`de40912b0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de40912b0a) - Fix types not resolving correctly due to an incorrect types path in package.json
|
|
215
221
|
|
|
216
222
|
## 1.0.4
|
|
217
223
|
|
|
@@ -223,13 +229,13 @@
|
|
|
223
229
|
|
|
224
230
|
### Patch Changes
|
|
225
231
|
|
|
226
|
-
- [`fc8f6e61f3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc8f6e61f3) - Fix codemod utilities being exposed through the codemod cli
|
|
232
|
+
- [#4346](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4346) [`fc8f6e61f3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc8f6e61f3) - Fix codemod utilities being exposed through the codemod cli
|
|
227
233
|
|
|
228
234
|
## 1.0.2
|
|
229
235
|
|
|
230
236
|
### Patch Changes
|
|
231
237
|
|
|
232
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
238
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
233
239
|
|
|
234
240
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
235
241
|
to prevent duplicates of tslib being bundled.
|
|
@@ -238,13 +244,13 @@
|
|
|
238
244
|
|
|
239
245
|
### Patch Changes
|
|
240
246
|
|
|
241
|
-
- [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
|
|
247
|
+
- [#4393](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4393) [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
|
|
242
248
|
|
|
243
249
|
## 1.0.0
|
|
244
250
|
|
|
245
251
|
### Major Changes
|
|
246
252
|
|
|
247
|
-
- [`d916beb818`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d916beb818) - Upgraded Popper JS to version 2.2.3, which comes with bug fixes, performance improvements and a reduced bundle size when combined with @popperjs/core. This effects the values accepted by the `popperProps` prop.
|
|
253
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`d916beb818`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d916beb818) - Upgraded Popper JS to version 2.2.3, which comes with bug fixes, performance improvements and a reduced bundle size when combined with @popperjs/core. This effects the values accepted by the `popperProps` prop.
|
|
248
254
|
|
|
249
255
|
Changes labelled with ⚙️ have codemod support:
|
|
250
256
|
|
|
@@ -268,13 +274,13 @@
|
|
|
268
274
|
|
|
269
275
|
### Minor Changes
|
|
270
276
|
|
|
271
|
-
- [`e724865438`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e724865438) - Introduce new color-picker component without trigger
|
|
277
|
+
- [#4314](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4314) [`e724865438`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e724865438) - Introduce new color-picker component without trigger
|
|
272
278
|
|
|
273
279
|
## 0.6.0
|
|
274
280
|
|
|
275
281
|
### Minor Changes
|
|
276
282
|
|
|
277
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
283
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
278
284
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
279
285
|
|
|
280
286
|
### Patch Changes
|
|
@@ -285,13 +291,13 @@
|
|
|
285
291
|
|
|
286
292
|
### Patch Changes
|
|
287
293
|
|
|
288
|
-
- [`a5815adf37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5815adf37) - Fixed es2019 distributable missing a version.json file
|
|
294
|
+
- [#2731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2731) [`a5815adf37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5815adf37) - Fixed es2019 distributable missing a version.json file
|
|
289
295
|
|
|
290
296
|
## 0.5.20
|
|
291
297
|
|
|
292
298
|
### Patch Changes
|
|
293
299
|
|
|
294
|
-
- [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
300
|
+
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099) [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
295
301
|
|
|
296
302
|
## 0.5.19
|
|
297
303
|
|
|
@@ -24,7 +24,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } // AFP-2532 TODO: Fix automatic suppressions below
|
|
26
26
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
27
|
-
var ColorCard = /*#__PURE__*/function (_PureComponent) {
|
|
27
|
+
var ColorCard = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
28
28
|
(0, _inherits2.default)(ColorCard, _PureComponent);
|
|
29
29
|
var _super = _createSuper(ColorCard);
|
|
30
30
|
function ColorCard() {
|
|
@@ -95,5 +95,4 @@ var ColorCard = /*#__PURE__*/function (_PureComponent) {
|
|
|
95
95
|
}
|
|
96
96
|
}]);
|
|
97
97
|
return ColorCard;
|
|
98
|
-
}(_react.PureComponent);
|
|
99
|
-
exports.default = ColorCard;
|
|
98
|
+
}(_react.PureComponent);
|
|
@@ -20,7 +20,7 @@ var _ColorCard = _interopRequireDefault(require("./ColorCard"));
|
|
|
20
20
|
var _utils = require("../utils");
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
|
-
var ColorPaletteMenuWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
23
|
+
var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
24
24
|
(0, _inherits2.default)(ColorPaletteMenuWithoutAnalytics, _React$Component);
|
|
25
25
|
var _super = _createSuper(ColorPaletteMenuWithoutAnalytics);
|
|
26
26
|
function ColorPaletteMenuWithoutAnalytics() {
|
|
@@ -40,7 +40,7 @@ var ColorPaletteMenuWithoutAnalytics = /*#__PURE__*/function (_React$Component)
|
|
|
40
40
|
attributes: {
|
|
41
41
|
componentName: 'color-picker',
|
|
42
42
|
packageName: "@atlaskit/color-picker",
|
|
43
|
-
packageVersion: "3.1.
|
|
43
|
+
packageVersion: "3.1.7"
|
|
44
44
|
}
|
|
45
45
|
})(createAnalyticsEvent);
|
|
46
46
|
}
|
|
@@ -93,14 +93,12 @@ var ColorPaletteMenuWithoutAnalytics = /*#__PURE__*/function (_React$Component)
|
|
|
93
93
|
}]);
|
|
94
94
|
return ColorPaletteMenuWithoutAnalytics;
|
|
95
95
|
}(_react.default.Component);
|
|
96
|
-
exports.ColorPaletteMenuWithoutAnalytics = ColorPaletteMenuWithoutAnalytics;
|
|
97
96
|
(0, _defineProperty2.default)(ColorPaletteMenuWithoutAnalytics, "defaultProps", {
|
|
98
97
|
cols: 6,
|
|
99
98
|
mode: _types.Mode.Standard
|
|
100
99
|
});
|
|
101
|
-
var _default = (0, _analyticsNext.withAnalyticsContext)({
|
|
100
|
+
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
102
101
|
componentName: 'color-picker',
|
|
103
102
|
packageName: "@atlaskit/color-picker",
|
|
104
|
-
packageVersion: "3.1.
|
|
105
|
-
})((0, _analyticsNext.withAnalyticsEvents)()(ColorPaletteMenuWithoutAnalytics));
|
|
106
|
-
exports.default = _default;
|
|
103
|
+
packageVersion: "3.1.7"
|
|
104
|
+
})((0, _analyticsNext.withAnalyticsEvents)()(ColorPaletteMenuWithoutAnalytics));
|
|
@@ -37,8 +37,8 @@ var defaultPopperProps = {
|
|
|
37
37
|
placement: 'bottom-start'
|
|
38
38
|
};
|
|
39
39
|
var packageName = "@atlaskit/color-picker";
|
|
40
|
-
var packageVersion = "3.1.
|
|
41
|
-
var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
40
|
+
var packageVersion = "3.1.7";
|
|
41
|
+
var ColorPickerWithoutAnalytics = exports.ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
42
42
|
(0, _inherits2.default)(ColorPickerWithoutAnalytics, _React$Component);
|
|
43
43
|
var _super = _createSuper(ColorPickerWithoutAnalytics);
|
|
44
44
|
function ColorPickerWithoutAnalytics() {
|
|
@@ -137,10 +137,8 @@ var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
|
137
137
|
}]);
|
|
138
138
|
return ColorPickerWithoutAnalytics;
|
|
139
139
|
}(_react.default.Component);
|
|
140
|
-
exports.
|
|
141
|
-
var _default = (0, _analyticsNext.withAnalyticsContext)({
|
|
140
|
+
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
142
141
|
componentName: 'color-picker',
|
|
143
142
|
packageName: packageName,
|
|
144
143
|
packageVersion: packageVersion
|
|
145
|
-
})((0, _analyticsNext.withAnalyticsEvents)()(ColorPickerWithoutAnalytics));
|
|
146
|
-
exports.default = _default;
|
|
144
|
+
})((0, _analyticsNext.withAnalyticsEvents)()(ColorPickerWithoutAnalytics));
|
|
@@ -17,7 +17,7 @@ var _ColorCard = require("../styled/ColorCard");
|
|
|
17
17
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
19
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
20
|
-
var ColorCard = /*#__PURE__*/function (_React$PureComponent) {
|
|
20
|
+
var ColorCard = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
21
21
|
(0, _inherits2.default)(ColorCard, _React$PureComponent);
|
|
22
22
|
var _super = _createSuper(ColorCard);
|
|
23
23
|
function ColorCard() {
|
|
@@ -63,5 +63,4 @@ var ColorCard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
63
63
|
}
|
|
64
64
|
}]);
|
|
65
65
|
return ColorCard;
|
|
66
|
-
}(_react.default.PureComponent);
|
|
67
|
-
exports.default = ColorCard;
|
|
66
|
+
}(_react.default.PureComponent);
|
|
@@ -12,7 +12,7 @@ var _ColorCard = _interopRequireDefault(require("./ColorCard"));
|
|
|
12
12
|
var _utils = require("../utils");
|
|
13
13
|
var _ColorPalette = require("../styled/ColorPalette");
|
|
14
14
|
var _excluded = ["cx", "selectProps", "innerRef"];
|
|
15
|
-
var MenuList = function MenuList(props) {
|
|
15
|
+
var MenuList = exports.MenuList = function MenuList(props) {
|
|
16
16
|
var cx = props.cx,
|
|
17
17
|
cols = props.selectProps.cols,
|
|
18
18
|
innerRef = props.innerRef,
|
|
@@ -25,8 +25,7 @@ var MenuList = function MenuList(props) {
|
|
|
25
25
|
innerRef: innerRef
|
|
26
26
|
}, rest));
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
var Option = function Option(props) {
|
|
28
|
+
var Option = exports.Option = function Option(props) {
|
|
30
29
|
var _props$data = props.data,
|
|
31
30
|
value = _props$data.value,
|
|
32
31
|
label = _props$data.label,
|
|
@@ -54,12 +53,9 @@ var Option = function Option(props) {
|
|
|
54
53
|
}))
|
|
55
54
|
);
|
|
56
55
|
};
|
|
57
|
-
exports.
|
|
58
|
-
var DropdownIndicator = function DropdownIndicator() {
|
|
56
|
+
var DropdownIndicator = exports.DropdownIndicator = function DropdownIndicator() {
|
|
59
57
|
return null;
|
|
60
58
|
};
|
|
61
|
-
exports.
|
|
62
|
-
var Placeholder = function Placeholder() {
|
|
59
|
+
var Placeholder = exports.Placeholder = function Placeholder() {
|
|
63
60
|
return null;
|
|
64
|
-
};
|
|
65
|
-
exports.Placeholder = Placeholder;
|
|
61
|
+
};
|
package/dist/cjs/constants.js
CHANGED
|
@@ -4,15 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.KEY_TAB = exports.KEY_SPACE = exports.KEY_ENTER = exports.KEY_ARROW_UP = exports.KEY_ARROW_DOWN = exports.COLOR_CARD_SIZE = void 0;
|
|
7
|
-
var COLOR_CARD_SIZE = 30;
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.
|
|
11
|
-
var
|
|
12
|
-
exports.
|
|
13
|
-
var KEY_ARROW_UP = 'ArrowDown';
|
|
14
|
-
exports.KEY_ARROW_UP = KEY_ARROW_UP;
|
|
15
|
-
var KEY_ARROW_DOWN = 'ArrowUp';
|
|
16
|
-
exports.KEY_ARROW_DOWN = KEY_ARROW_DOWN;
|
|
17
|
-
var KEY_TAB = 'Tab';
|
|
18
|
-
exports.KEY_TAB = KEY_TAB;
|
|
7
|
+
var COLOR_CARD_SIZE = exports.COLOR_CARD_SIZE = 30;
|
|
8
|
+
var KEY_SPACE = exports.KEY_SPACE = ' ';
|
|
9
|
+
var KEY_ENTER = exports.KEY_ENTER = 'Enter';
|
|
10
|
+
var KEY_ARROW_UP = exports.KEY_ARROW_UP = 'ArrowDown';
|
|
11
|
+
var KEY_ARROW_DOWN = exports.KEY_ARROW_DOWN = 'ArrowUp';
|
|
12
|
+
var KEY_TAB = exports.KEY_TAB = 'Tab';
|
package/dist/cjs/index.js
CHANGED
|
@@ -28,9 +28,6 @@ var _types = require("./types");
|
|
|
28
28
|
var _ColorPaletteMenu = _interopRequireWildcard(require("./components/ColorPaletteMenu"));
|
|
29
29
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
-
var Compact = _types.Mode.Compact,
|
|
32
|
-
Standard = _types.Mode.Standard;
|
|
33
|
-
exports.
|
|
34
|
-
exports.Compact = Compact;
|
|
35
|
-
var _default = _ColorPicker.default;
|
|
36
|
-
exports.default = _default;
|
|
31
|
+
var Compact = exports.Compact = _types.Mode.Compact,
|
|
32
|
+
Standard = exports.Standard = _types.Mode.Standard;
|
|
33
|
+
var _default = exports.default = _ColorPicker.default;
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var buttonFocusedBorder = "border-color: ".concat("var(--ds-border-focused, ".concat(_theme.colors.B100, ")"), ";");
|
|
18
18
|
var sharedColorContainerStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n position: relative;\n width: ", "px;\n height: ", "px;\n border: 2px solid transparent;\n box-sizing: border-box;\n border-radius: ", "px;\n transition: border-color 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);\n background-color: transparent;\n border-color: transparent;\n padding: 0;\n cursor: pointer;\n outline: none;\n"])), _constants.COLOR_CARD_SIZE, _constants.COLOR_CARD_SIZE, (0, _theme.borderRadius)() * 2);
|
|
19
|
-
var ColorCardOption = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n\n ", "\n\n ", ";\n"])), sharedColorContainerStyles, function (props) {
|
|
19
|
+
var ColorCardOption = exports.ColorCardOption = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n\n ", "\n\n ", ";\n"])), sharedColorContainerStyles, function (props) {
|
|
20
20
|
if (props.isTabbing === undefined || props.isTabbing) {
|
|
21
21
|
return "&:hover,\n &:focus {\n border-color: ".concat("var(--ds-border-focused, ".concat(_theme.colors.B75, ")"), ";\n }");
|
|
22
22
|
}
|
|
@@ -25,20 +25,16 @@ var ColorCardOption = _styledComponents.default.div(_templateObject2 || (_templa
|
|
|
25
25
|
return "border-color: ".concat("var(--ds-border-focused, ".concat(_theme.colors.B75, ")"));
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
exports.
|
|
29
|
-
var ColorCardButton = _styledComponents.default.button(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n &:hover {\n border-color: transparent;\n }\n &:not(:focus):hover,\n &:focus {\n ", ";\n }\n\n ", ";\n"])), sharedColorContainerStyles, buttonFocusedBorder, function (props) {
|
|
28
|
+
var ColorCardButton = exports.ColorCardButton = _styledComponents.default.button(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n &:hover {\n border-color: transparent;\n }\n &:not(:focus):hover,\n &:focus {\n ", ";\n }\n\n ", ";\n"])), sharedColorContainerStyles, buttonFocusedBorder, function (props) {
|
|
30
29
|
if (props.focused) {
|
|
31
30
|
return buttonFocusedBorder;
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
|
-
exports.ColorCardButton = ColorCardButton;
|
|
35
33
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
36
34
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
37
|
-
var ColorCardContent = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: 1px;\n left: 1px;\n width: 24px;\n height: 24px;\n border-radius: ", "px;\n background: ", ";\n box-shadow: inset 0px 0px 0px 1px\n ", ";\n"])), (0, _theme.borderRadius)(), function (props) {
|
|
35
|
+
var ColorCardContent = exports.ColorCardContent = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: 1px;\n left: 1px;\n width: 24px;\n height: 24px;\n border-radius: ", "px;\n background: ", ";\n box-shadow: inset 0px 0px 0px 1px\n ", ";\n"])), (0, _theme.borderRadius)(), function (props) {
|
|
38
36
|
return props.color;
|
|
39
37
|
}, "var(--ds-background-inverse-subtle, ".concat(_theme.colors.DN600A, ")"));
|
|
40
38
|
|
|
41
39
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
42
|
-
exports.
|
|
43
|
-
var ColorCardContentCheckMark = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin: 1px;\n"])));
|
|
44
|
-
exports.ColorCardContentCheckMark = ColorCardContentCheckMark;
|
|
40
|
+
var ColorCardContentCheckMark = exports.ColorCardContentCheckMark = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin: 1px;\n"])));
|
|
@@ -13,15 +13,12 @@ var _types = require("../types");
|
|
|
13
13
|
var _constants = require("../constants");
|
|
14
14
|
var _templateObject, _templateObject2, _templateObject3; // AFP-2532 TODO: Fix automatic suppressions below
|
|
15
15
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
16
|
-
var ColorCardWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin: ", ";\n height: ", "px;\n"])), "var(--ds-space-025, 2px)", _constants.COLOR_CARD_SIZE);
|
|
17
|
-
exports.
|
|
18
|
-
var ColorPaletteContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-wrap: wrap;\n padding: ", ";\n"])), function (props) {
|
|
16
|
+
var ColorCardWrapper = exports.ColorCardWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin: ", ";\n height: ", "px;\n"])), "var(--ds-space-025, 2px)", _constants.COLOR_CARD_SIZE);
|
|
17
|
+
var ColorPaletteContainer = exports.ColorPaletteContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-wrap: wrap;\n padding: ", ";\n"])), function (props) {
|
|
19
18
|
return props.mode === _types.Mode.Compact ? "0" : "var(--ds-space-050, 4px)";
|
|
20
19
|
});
|
|
21
|
-
exports.
|
|
22
|
-
var ColorPaletteMenu = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n margin: 0;\n background-color: ", ";\n width: ", "px;\n ", "\n"])), "var(--ds-surface-overlay, ".concat(_theme.colors.N0, ")"), function (props) {
|
|
20
|
+
var ColorPaletteMenu = exports.ColorPaletteMenu = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n margin: 0;\n background-color: ", ";\n width: ", "px;\n ", "\n"])), "var(--ds-surface-overlay, ".concat(_theme.colors.N0, ")"), function (props) {
|
|
23
21
|
return (0, _utils.getWidth)(props.cols);
|
|
24
22
|
}, function (props) {
|
|
25
23
|
return props.mode && props.mode === _types.Mode.Standard && "\n box-radius: ".concat("var(--ds-border-radius-100, 3px)", ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_theme.colors.N40, ", 0 0 8px ").concat(_theme.colors.N40), ")"), ";\n width: ", (0, _utils.getWidth)(props.cols) + (0, _theme.gridSize)(), "px;\n ");
|
|
26
|
-
});
|
|
27
|
-
exports.ColorPaletteMenu = ColorPaletteMenu;
|
|
24
|
+
});
|
|
@@ -8,5 +8,4 @@ exports.ColorCardWrapper = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _templateObject;
|
|
11
|
-
var ColorCardWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n"])));
|
|
12
|
-
exports.ColorCardWrapper = ColorCardWrapper;
|
|
11
|
+
var ColorCardWrapper = exports.ColorCardWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n"])));
|
package/dist/cjs/types.js
CHANGED
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Mode = void 0;
|
|
7
|
-
var Mode = /*#__PURE__*/function (Mode) {
|
|
7
|
+
var Mode = exports.Mode = /*#__PURE__*/function (Mode) {
|
|
8
8
|
Mode[Mode["Compact"] = 0] = "Compact";
|
|
9
9
|
Mode[Mode["Standard"] = 1] = "Standard";
|
|
10
10
|
return Mode;
|
|
11
|
-
}({});
|
|
12
|
-
exports.Mode = Mode;
|
|
11
|
+
}({});
|
package/dist/cjs/utils.js
CHANGED
|
@@ -11,11 +11,10 @@ var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
|
11
11
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
12
12
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
13
13
|
|
|
14
|
-
var getWidth = function getWidth(cols) {
|
|
14
|
+
var getWidth = exports.getWidth = function getWidth(cols) {
|
|
15
15
|
return cols * (_constants.COLOR_CARD_SIZE + (0, _theme.gridSize)() / 2);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
var getOptions = (0, _memoizeOne.default)(function (palette, selectedColor) {
|
|
17
|
+
var getOptions = exports.getOptions = (0, _memoizeOne.default)(function (palette, selectedColor) {
|
|
19
18
|
var focusedItemIndex = 0;
|
|
20
19
|
var value = palette.find(function (color, index) {
|
|
21
20
|
if (color.value === selectedColor) {
|
|
@@ -29,5 +28,4 @@ var getOptions = (0, _memoizeOne.default)(function (palette, selectedColor) {
|
|
|
29
28
|
value: value,
|
|
30
29
|
focusedItemIndex: focusedItemIndex
|
|
31
30
|
};
|
|
32
|
-
});
|
|
33
|
-
exports.getOptions = getOptions;
|
|
31
|
+
});
|
|
@@ -20,7 +20,7 @@ export class ColorPaletteMenuWithoutAnalytics extends React.Component {
|
|
|
20
20
|
attributes: {
|
|
21
21
|
componentName: 'color-picker',
|
|
22
22
|
packageName: "@atlaskit/color-picker",
|
|
23
|
-
packageVersion: "3.1.
|
|
23
|
+
packageVersion: "3.1.7"
|
|
24
24
|
}
|
|
25
25
|
})(createAnalyticsEvent);
|
|
26
26
|
}
|
|
@@ -74,5 +74,5 @@ _defineProperty(ColorPaletteMenuWithoutAnalytics, "defaultProps", {
|
|
|
74
74
|
export default withAnalyticsContext({
|
|
75
75
|
componentName: 'color-picker',
|
|
76
76
|
packageName: "@atlaskit/color-picker",
|
|
77
|
-
packageVersion: "3.1.
|
|
77
|
+
packageVersion: "3.1.7"
|
|
78
78
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
@@ -19,7 +19,7 @@ const defaultPopperProps = {
|
|
|
19
19
|
placement: 'bottom-start'
|
|
20
20
|
};
|
|
21
21
|
const packageName = "@atlaskit/color-picker";
|
|
22
|
-
const packageVersion = "3.1.
|
|
22
|
+
const packageVersion = "3.1.7";
|
|
23
23
|
export class ColorPickerWithoutAnalytics extends React.Component {
|
|
24
24
|
constructor(...args) {
|
|
25
25
|
super(...args);
|
|
@@ -33,7 +33,7 @@ export var ColorPaletteMenuWithoutAnalytics = /*#__PURE__*/function (_React$Comp
|
|
|
33
33
|
attributes: {
|
|
34
34
|
componentName: 'color-picker',
|
|
35
35
|
packageName: "@atlaskit/color-picker",
|
|
36
|
-
packageVersion: "3.1.
|
|
36
|
+
packageVersion: "3.1.7"
|
|
37
37
|
}
|
|
38
38
|
})(createAnalyticsEvent);
|
|
39
39
|
}
|
|
@@ -93,5 +93,5 @@ _defineProperty(ColorPaletteMenuWithoutAnalytics, "defaultProps", {
|
|
|
93
93
|
export default withAnalyticsContext({
|
|
94
94
|
componentName: 'color-picker',
|
|
95
95
|
packageName: "@atlaskit/color-picker",
|
|
96
|
-
packageVersion: "3.1.
|
|
96
|
+
packageVersion: "3.1.7"
|
|
97
97
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
@@ -27,7 +27,7 @@ var defaultPopperProps = {
|
|
|
27
27
|
placement: 'bottom-start'
|
|
28
28
|
};
|
|
29
29
|
var packageName = "@atlaskit/color-picker";
|
|
30
|
-
var packageVersion = "3.1.
|
|
30
|
+
var packageVersion = "3.1.7";
|
|
31
31
|
export var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
32
32
|
_inherits(ColorPickerWithoutAnalytics, _React$Component);
|
|
33
33
|
var _super = _createSuper(ColorPickerWithoutAnalytics);
|
|
@@ -9,5 +9,5 @@ type ColorCardContentProps = {
|
|
|
9
9
|
color: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const ColorCardContent: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & ColorCardContentProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & ColorCardContentProps>;
|
|
12
|
-
export declare const ColorCardContentCheckMark: import("styled-components").StyledComponentClass<import("react").
|
|
12
|
+
export declare const ColorCardContentCheckMark: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
13
13
|
export {};
|
|
@@ -7,7 +7,7 @@ type ColorPaletteMenuProps = {
|
|
|
7
7
|
cols: number;
|
|
8
8
|
mode?: Mode;
|
|
9
9
|
};
|
|
10
|
-
export declare const ColorCardWrapper: import("styled-components").StyledComponentClass<import("react").
|
|
10
|
+
export declare const ColorCardWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
11
11
|
export declare const ColorPaletteContainer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Props, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Props>;
|
|
12
12
|
export declare const ColorPaletteMenu: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & ColorPaletteMenuProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & ColorPaletteMenuProps>;
|
|
13
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ColorCardWrapper: import("styled-components").StyledComponentClass<import("react").
|
|
2
|
+
export declare const ColorCardWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
@@ -9,5 +9,5 @@ type ColorCardContentProps = {
|
|
|
9
9
|
color: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const ColorCardContent: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & ColorCardContentProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & ColorCardContentProps>;
|
|
12
|
-
export declare const ColorCardContentCheckMark: import("styled-components").StyledComponentClass<import("react").
|
|
12
|
+
export declare const ColorCardContentCheckMark: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
13
13
|
export {};
|
|
@@ -7,7 +7,7 @@ type ColorPaletteMenuProps = {
|
|
|
7
7
|
cols: number;
|
|
8
8
|
mode?: Mode;
|
|
9
9
|
};
|
|
10
|
-
export declare const ColorCardWrapper: import("styled-components").StyledComponentClass<import("react").
|
|
10
|
+
export declare const ColorCardWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
11
11
|
export declare const ColorPaletteContainer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Props, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Props>;
|
|
12
12
|
export declare const ColorPaletteMenu: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & ColorPaletteMenuProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & ColorPaletteMenuProps>;
|
|
13
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ColorCardWrapper: import("styled-components").StyledComponentClass<import("react").
|
|
2
|
+
export declare const ColorCardWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/color-picker",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "Jira Color Picker Component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
33
33
|
"@atlaskit/icon": "^21.12.0",
|
|
34
|
-
"@atlaskit/select": "^16.
|
|
35
|
-
"@atlaskit/theme": "^12.
|
|
36
|
-
"@atlaskit/tokens": "^1.
|
|
37
|
-
"@atlaskit/tooltip": "^
|
|
34
|
+
"@atlaskit/select": "^16.7.0",
|
|
35
|
+
"@atlaskit/theme": "^12.6.0",
|
|
36
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
37
|
+
"@atlaskit/tooltip": "^18.0.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"memoize-one": "^6.0.0",
|
|
40
40
|
"styled-components": "^3.2.6"
|