@atlaskit/status 1.4.0 → 1.4.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.
- package/CHANGELOG.md +48 -36
- package/dist/cjs/components/Status.js +2 -3
- package/dist/cjs/components/StatusPicker.js +1 -2
- package/dist/cjs/components/analytics.js +4 -6
- package/dist/cjs/components/constants.js +1 -2
- package/dist/cjs/components/i18n.js +2 -3
- package/dist/cjs/components/internal/color-palette.js +18 -26
- package/dist/cjs/components/internal/color.js +2 -3
- package/dist/cjs/i18n/cs.js +2 -3
- package/dist/cjs/i18n/da.js +2 -3
- package/dist/cjs/i18n/de.js +2 -3
- package/dist/cjs/i18n/en.js +2 -3
- package/dist/cjs/i18n/en_GB.js +2 -3
- package/dist/cjs/i18n/en_ZZ.js +2 -3
- package/dist/cjs/i18n/es.js +2 -3
- package/dist/cjs/i18n/et.js +2 -3
- package/dist/cjs/i18n/fi.js +2 -3
- package/dist/cjs/i18n/fr.js +2 -3
- package/dist/cjs/i18n/hu.js +2 -3
- package/dist/cjs/i18n/is.js +2 -3
- package/dist/cjs/i18n/it.js +2 -3
- package/dist/cjs/i18n/ja.js +2 -3
- package/dist/cjs/i18n/ko.js +2 -3
- package/dist/cjs/i18n/languages.js +2 -3
- package/dist/cjs/i18n/nb.js +2 -3
- package/dist/cjs/i18n/nl.js +2 -3
- package/dist/cjs/i18n/pl.js +2 -3
- package/dist/cjs/i18n/pt_BR.js +2 -3
- package/dist/cjs/i18n/pt_PT.js +2 -3
- package/dist/cjs/i18n/ro.js +2 -3
- package/dist/cjs/i18n/ru.js +2 -3
- package/dist/cjs/i18n/sk.js +2 -3
- package/dist/cjs/i18n/sv.js +2 -3
- package/dist/cjs/i18n/th.js +2 -3
- package/dist/cjs/i18n/tr.js +2 -3
- package/dist/cjs/i18n/uk.js +2 -3
- package/dist/cjs/i18n/vi.js +2 -3
- package/dist/cjs/i18n/zh.js +2 -3
- package/dist/cjs/i18n/zh_TW.js +2 -3
- package/dist/es2019/components/analytics.js +1 -1
- package/dist/es2019/components/internal/color-palette.js +7 -13
- package/dist/esm/components/analytics.js +1 -1
- package/dist/esm/components/internal/color-palette.js +17 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,59 +1,71 @@
|
|
|
1
1
|
# @atlaskit/status
|
|
2
2
|
|
|
3
|
+
## 1.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40997](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40997) [`02b9339abb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02b9339abb1) - add type definition to newColorIndex
|
|
8
|
+
|
|
9
|
+
## 1.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#40389](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40389) [`beb32df5147`](https://bitbucket.org/atlassian/atlassian-frontend/commits/beb32df5147) - [ECA11Y-45] [ECA11Y-22] Change the tab key handling the status popup to improve accessibility.
|
|
14
|
+
|
|
3
15
|
## 1.4.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
6
18
|
|
|
7
|
-
- [`11861bb36d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11861bb36d4) - [ux] [ECA11Y-44] [ECA11Y-22] [ECA11Y-19] Change the focus order in the status popup to improve accessibility.
|
|
19
|
+
- [#40207](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40207) [`11861bb36d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11861bb36d4) - [ux] [ECA11Y-44] [ECA11Y-22] [ECA11Y-19] Change the focus order in the status popup to improve accessibility.
|
|
8
20
|
|
|
9
21
|
## 1.3.7
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
25
|
+
- [#39787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39787) [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
14
26
|
|
|
15
27
|
## 1.3.6
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
31
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
20
32
|
- Updated dependencies
|
|
21
33
|
|
|
22
34
|
## 1.3.5
|
|
23
35
|
|
|
24
36
|
### Patch Changes
|
|
25
37
|
|
|
26
|
-
- [`932b50814f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/932b50814f6) - ED-18001: update android style overrides to vertically align status node
|
|
38
|
+
- [#36794](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36794) [`932b50814f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/932b50814f6) - ED-18001: update android style overrides to vertically align status node
|
|
27
39
|
|
|
28
40
|
## 1.3.4
|
|
29
41
|
|
|
30
42
|
### Patch Changes
|
|
31
43
|
|
|
32
|
-
- [`54ce14a4fd3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54ce14a4fd3) - [ED-18129] Duplicate Enzyme mount helper to avoid circular references in Emoji and Status
|
|
44
|
+
- [#35117](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35117) [`54ce14a4fd3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54ce14a4fd3) - [ED-18129] Duplicate Enzyme mount helper to avoid circular references in Emoji and Status
|
|
33
45
|
|
|
34
46
|
## 1.3.3
|
|
35
47
|
|
|
36
48
|
### Patch Changes
|
|
37
49
|
|
|
38
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
50
|
+
- [#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
|
|
39
51
|
|
|
40
52
|
## 1.3.2
|
|
41
53
|
|
|
42
54
|
### Patch Changes
|
|
43
55
|
|
|
44
|
-
- [`9369cc38a68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9369cc38a68) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
56
|
+
- [#33771](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33771) [`9369cc38a68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9369cc38a68) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
45
57
|
|
|
46
58
|
## 1.3.1
|
|
47
59
|
|
|
48
60
|
### Patch Changes
|
|
49
61
|
|
|
50
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
62
|
+
- [#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`
|
|
51
63
|
|
|
52
64
|
## 1.3.0
|
|
53
65
|
|
|
54
66
|
### Minor Changes
|
|
55
67
|
|
|
56
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
68
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
57
69
|
|
|
58
70
|
### Patch Changes
|
|
59
71
|
|
|
@@ -63,7 +75,7 @@
|
|
|
63
75
|
|
|
64
76
|
### Patch Changes
|
|
65
77
|
|
|
66
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
78
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
67
79
|
|
|
68
80
|
## 1.2.10
|
|
69
81
|
|
|
@@ -81,19 +93,19 @@
|
|
|
81
93
|
|
|
82
94
|
### Patch Changes
|
|
83
95
|
|
|
84
|
-
- [`ac0f098f7f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac0f098f7f9) - Fixes an oversight in DSP-7701 that causes some rendering issues with lozenges on the Hybrid Renderer on Android
|
|
96
|
+
- [#28932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28932) [`ac0f098f7f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac0f098f7f9) - Fixes an oversight in DSP-7701 that causes some rendering issues with lozenges on the Hybrid Renderer on Android
|
|
85
97
|
|
|
86
98
|
## 1.2.7
|
|
87
99
|
|
|
88
100
|
### Patch Changes
|
|
89
101
|
|
|
90
|
-
- [`dde37c411c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dde37c411c8) - Fixes an oversight in DSP-7701 that causes some rendering issues with lozenges on the Hybrid Renderer on Android
|
|
102
|
+
- [#28981](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28981) [`dde37c411c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dde37c411c8) - Fixes an oversight in DSP-7701 that causes some rendering issues with lozenges on the Hybrid Renderer on Android
|
|
91
103
|
|
|
92
104
|
## 1.2.6
|
|
93
105
|
|
|
94
106
|
### Patch Changes
|
|
95
107
|
|
|
96
|
-
- [`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.
|
|
108
|
+
- [#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.
|
|
97
109
|
|
|
98
110
|
## 1.2.5
|
|
99
111
|
|
|
@@ -111,13 +123,13 @@
|
|
|
111
123
|
|
|
112
124
|
### Patch Changes
|
|
113
125
|
|
|
114
|
-
- [`a6900fd8727`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a6900fd8727) - DSP-6671 - Separates icon and border color and adds semantic tokens to status color palette. Updated appearances only visible in applications configured to use the new Tokens API (currently in alpha).
|
|
126
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`a6900fd8727`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a6900fd8727) - DSP-6671 - Separates icon and border color and adds semantic tokens to status color palette. Updated appearances only visible in applications configured to use the new Tokens API (currently in alpha).
|
|
115
127
|
|
|
116
128
|
## 1.2.2
|
|
117
129
|
|
|
118
130
|
### Patch Changes
|
|
119
131
|
|
|
120
|
-
- [`5d2eeac35f7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d2eeac35f7) - Fixes a browser specific bug that occurred in android chromium that led to the component losing focus unexpectedly when selected for editing.
|
|
132
|
+
- [#27076](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27076) [`5d2eeac35f7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d2eeac35f7) - Fixes a browser specific bug that occurred in android chromium that led to the component losing focus unexpectedly when selected for editing.
|
|
121
133
|
|
|
122
134
|
## 1.2.1
|
|
123
135
|
|
|
@@ -129,7 +141,7 @@
|
|
|
129
141
|
|
|
130
142
|
### Minor Changes
|
|
131
143
|
|
|
132
|
-
- [`b3be5346e02`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3be5346e02) - Status warning color picker updated to match the color of the underlying lozenge.
|
|
144
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`b3be5346e02`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3be5346e02) - Status warning color picker updated to match the color of the underlying lozenge.
|
|
133
145
|
|
|
134
146
|
### Patch Changes
|
|
135
147
|
|
|
@@ -139,26 +151,26 @@
|
|
|
139
151
|
|
|
140
152
|
### Patch Changes
|
|
141
153
|
|
|
142
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
154
|
+
- [#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`
|
|
143
155
|
|
|
144
156
|
## 1.1.5
|
|
145
157
|
|
|
146
158
|
### Patch Changes
|
|
147
159
|
|
|
148
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
160
|
+
- [#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`.
|
|
149
161
|
|
|
150
162
|
## 1.1.4
|
|
151
163
|
|
|
152
164
|
### Patch Changes
|
|
153
165
|
|
|
154
|
-
- [`721bc4d7794`](https://bitbucket.org/atlassian/atlassian-frontend/commits/721bc4d7794) - ED-14377 To remove the imports of version.json which is deprecated
|
|
166
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`721bc4d7794`](https://bitbucket.org/atlassian/atlassian-frontend/commits/721bc4d7794) - ED-14377 To remove the imports of version.json which is deprecated
|
|
155
167
|
- [`b3fedfabde4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3fedfabde4) - Changing status colors with tab and shfit-tab
|
|
156
168
|
|
|
157
169
|
## 1.1.3
|
|
158
170
|
|
|
159
171
|
### Patch Changes
|
|
160
172
|
|
|
161
|
-
- [`a4b4e5965d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4b4e5965d9) - [ux] Fixes bug when page scrolls after inserting status in the bottom of the page
|
|
173
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`a4b4e5965d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4b4e5965d9) - [ux] Fixes bug when page scrolls after inserting status in the bottom of the page
|
|
162
174
|
|
|
163
175
|
## 1.1.2
|
|
164
176
|
|
|
@@ -170,13 +182,13 @@
|
|
|
170
182
|
|
|
171
183
|
### Patch Changes
|
|
172
184
|
|
|
173
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
185
|
+
- [#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
|
|
174
186
|
|
|
175
187
|
## 1.1.0
|
|
176
188
|
|
|
177
189
|
### Minor Changes
|
|
178
190
|
|
|
179
|
-
- [`af2dcdc462f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af2dcdc462f) - [ux] Instrumented `@atlaskit/status` with the new theming package, `@atlaskit/tokens`.
|
|
191
|
+
- [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033) [`af2dcdc462f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af2dcdc462f) - [ux] Instrumented `@atlaskit/status` with the new theming package, `@atlaskit/tokens`.
|
|
180
192
|
|
|
181
193
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
182
194
|
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
@@ -190,20 +202,20 @@
|
|
|
190
202
|
|
|
191
203
|
### Patch Changes
|
|
192
204
|
|
|
193
|
-
- [`56cf7af34be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56cf7af34be) - AK-832 implementation navigation arrows for status color palette
|
|
205
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`56cf7af34be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56cf7af34be) - AK-832 implementation navigation arrows for status color palette
|
|
194
206
|
|
|
195
207
|
## 1.0.1
|
|
196
208
|
|
|
197
209
|
### Patch Changes
|
|
198
210
|
|
|
199
|
-
- [`b5375cd4f66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5375cd4f66) - AK-316: add aria-label for the status picker input field
|
|
211
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`b5375cd4f66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5375cd4f66) - AK-316: add aria-label for the status picker input field
|
|
200
212
|
- [`85c4e5a71ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/85c4e5a71ee) - [AK-837] added role prop for Status component
|
|
201
213
|
|
|
202
214
|
## 1.0.0
|
|
203
215
|
|
|
204
216
|
### Major Changes
|
|
205
217
|
|
|
206
|
-
- [`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) - ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1 including breaking API changes, types and tests in atlassian-frontend packages
|
|
218
|
+
- [#14810](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14810) [`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) - ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1 including breaking API changes, types and tests in atlassian-frontend packages
|
|
207
219
|
|
|
208
220
|
What changed: Upgraded our react-intl support from ^2.6.0 to ^5.18.1. This means editor packages now rely on consumers installing ^5.18.1, otherwise editor usage of react-intl will mismatch with actual installed react-intl APIs.
|
|
209
221
|
Why change was made: As part of a coordinated upgrade effort across AF packages, as react-intl v2 is quite dated.
|
|
@@ -245,7 +257,7 @@
|
|
|
245
257
|
|
|
246
258
|
### Minor Changes
|
|
247
259
|
|
|
248
|
-
- [`42c7ac64c39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42c7ac64c39) - AK-654 Set a status link label with input
|
|
260
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`42c7ac64c39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42c7ac64c39) - AK-654 Set a status link label with input
|
|
249
261
|
|
|
250
262
|
### Patch Changes
|
|
251
263
|
|
|
@@ -261,7 +273,7 @@
|
|
|
261
273
|
|
|
262
274
|
### Patch Changes
|
|
263
275
|
|
|
264
|
-
- [`3dd496d620b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3dd496d620b) - Remove unneeded css prop from status component.
|
|
276
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`3dd496d620b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3dd496d620b) - Remove unneeded css prop from status component.
|
|
265
277
|
- Updated dependencies
|
|
266
278
|
|
|
267
279
|
## 0.11.1
|
|
@@ -274,7 +286,7 @@
|
|
|
274
286
|
|
|
275
287
|
### Minor Changes
|
|
276
288
|
|
|
277
|
-
- [`7ddbf962bd9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ddbf962bd9) - [ux] Updated and added new translations
|
|
289
|
+
- [#7762](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7762) [`7ddbf962bd9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ddbf962bd9) - [ux] Updated and added new translations
|
|
278
290
|
|
|
279
291
|
## 0.10.7
|
|
280
292
|
|
|
@@ -286,13 +298,13 @@
|
|
|
286
298
|
|
|
287
299
|
### Patch Changes
|
|
288
300
|
|
|
289
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
301
|
+
- [#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
|
|
290
302
|
|
|
291
303
|
## 0.10.5
|
|
292
304
|
|
|
293
305
|
### Patch Changes
|
|
294
306
|
|
|
295
|
-
- [`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.
|
|
307
|
+
- [#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.
|
|
296
308
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
297
309
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
298
310
|
|
|
@@ -300,7 +312,7 @@
|
|
|
300
312
|
|
|
301
313
|
### Patch Changes
|
|
302
314
|
|
|
303
|
-
- [`de40912b0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de40912b0a) - Fix types not resolving correctly due to an incorrect types path in package.json
|
|
315
|
+
- [#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
|
|
304
316
|
|
|
305
317
|
## 0.10.3
|
|
306
318
|
|
|
@@ -312,7 +324,7 @@
|
|
|
312
324
|
|
|
313
325
|
### Patch Changes
|
|
314
326
|
|
|
315
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
327
|
+
- [#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
|
|
316
328
|
|
|
317
329
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
318
330
|
to prevent duplicates of tslib being bundled.
|
|
@@ -321,13 +333,13 @@
|
|
|
321
333
|
|
|
322
334
|
### Patch Changes
|
|
323
335
|
|
|
324
|
-
- [`d03bff2147`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d03bff2147) - updated translations
|
|
336
|
+
- [#3369](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3369) [`d03bff2147`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d03bff2147) - updated translations
|
|
325
337
|
|
|
326
338
|
## 0.10.0
|
|
327
339
|
|
|
328
340
|
### Minor Changes
|
|
329
341
|
|
|
330
|
-
- [`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.
|
|
342
|
+
- [#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.
|
|
331
343
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
332
344
|
|
|
333
345
|
### Patch Changes
|
|
@@ -338,13 +350,13 @@
|
|
|
338
350
|
|
|
339
351
|
### Patch Changes
|
|
340
352
|
|
|
341
|
-
- [`fc83c36503`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc83c36503) - Update translation files via Traduki build
|
|
353
|
+
- [#2576](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2576) [`fc83c36503`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc83c36503) - Update translation files via Traduki build
|
|
342
354
|
|
|
343
355
|
## 0.9.24
|
|
344
356
|
|
|
345
357
|
### Patch Changes
|
|
346
358
|
|
|
347
|
-
- [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
359
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
348
360
|
|
|
349
361
|
## 0.9.23
|
|
350
362
|
|
|
@@ -112,7 +112,7 @@ var StatusInternal = /*#__PURE__*/function (_PureComponent) {
|
|
|
112
112
|
return StatusInternal;
|
|
113
113
|
}(_react.PureComponent);
|
|
114
114
|
(0, _defineProperty2.default)(StatusInternal, "displayName", 'StatusInternal');
|
|
115
|
-
var Status = (0, _analyticsNext.withAnalyticsEvents)({
|
|
115
|
+
var Status = exports.Status = (0, _analyticsNext.withAnalyticsEvents)({
|
|
116
116
|
onClick: function onClick(createEvent, props) {
|
|
117
117
|
var localId = props.localId;
|
|
118
118
|
return (0, _analytics.createStatusAnalyticsAndFire)(createEvent)({
|
|
@@ -133,5 +133,4 @@ var Status = (0, _analyticsNext.withAnalyticsEvents)({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
})(StatusInternal);
|
|
137
|
-
exports.Status = Status;
|
|
136
|
+
})(StatusInternal);
|
|
@@ -95,5 +95,4 @@ var Picker = /*#__PURE__*/function (_PureComponent) {
|
|
|
95
95
|
(0, _defineProperty2.default)(Picker, "defaultProps", {
|
|
96
96
|
autoFocus: true
|
|
97
97
|
});
|
|
98
|
-
var StatusPicker = (0, _reactIntlNext.injectIntl)(Picker);
|
|
99
|
-
exports.StatusPicker = StatusPicker;
|
|
98
|
+
var StatusPicker = exports.StatusPicker = (0, _reactIntlNext.injectIntl)(Picker);
|
|
@@ -8,11 +8,10 @@ exports.createStatusAnalyticsAndFire = exports.ELEMENTS_CHANNEL = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
|
-
var ELEMENTS_CHANNEL = 'fabric-elements';
|
|
12
|
-
exports.ELEMENTS_CHANNEL = ELEMENTS_CHANNEL;
|
|
11
|
+
var ELEMENTS_CHANNEL = exports.ELEMENTS_CHANNEL = 'fabric-elements';
|
|
13
12
|
var packageName = "@atlaskit/status";
|
|
14
|
-
var packageVersion = "1.4.
|
|
15
|
-
var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
13
|
+
var packageVersion = "1.4.2";
|
|
14
|
+
var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
16
15
|
return function (payload) {
|
|
17
16
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
18
17
|
eventType: 'ui'
|
|
@@ -27,5 +26,4 @@ var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createA
|
|
|
27
26
|
event.fire(ELEMENTS_CHANNEL);
|
|
28
27
|
return event;
|
|
29
28
|
};
|
|
30
|
-
};
|
|
31
|
-
exports.createStatusAnalyticsAndFire = createStatusAnalyticsAndFire;
|
|
29
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
neutralColor: {
|
|
10
10
|
id: 'fabric.status.color.grey',
|
|
11
11
|
defaultMessage: 'Grey',
|
|
@@ -41,5 +41,4 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
41
41
|
defaultMessage: 'Set a status',
|
|
42
42
|
description: 'Aria label text for the status input field'
|
|
43
43
|
}
|
|
44
|
-
});
|
|
45
|
-
exports.messages = messages;
|
|
44
|
+
});
|
|
@@ -23,7 +23,7 @@ var VK_RIGHT = 39; //ArrowRight
|
|
|
23
23
|
var VK_UP = 38; //ArrowUp
|
|
24
24
|
var VK_DOWN = 40; //ArrowDown
|
|
25
25
|
var VK_TAB = 9;
|
|
26
|
-
var _default = function _default(_ref) {
|
|
26
|
+
var _default = exports.default = function _default(_ref) {
|
|
27
27
|
var _ref$cols = _ref.cols,
|
|
28
28
|
cols = _ref$cols === void 0 ? 7 : _ref$cols,
|
|
29
29
|
onClick = _ref.onClick,
|
|
@@ -31,21 +31,20 @@ var _default = function _default(_ref) {
|
|
|
31
31
|
className = _ref.className,
|
|
32
32
|
onHover = _ref.onHover;
|
|
33
33
|
var colorRefs = (0, _react.useRef)([]);
|
|
34
|
+
var _useState = (0, _react.useState)(0),
|
|
35
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
36
|
+
currentFocusedColor = _useState2[0],
|
|
37
|
+
setCurrentFocusedColor = _useState2[1];
|
|
34
38
|
(0, _react.useEffect)(function () {
|
|
35
39
|
colorRefs.current = colorRefs.current.slice(0, palette.length);
|
|
36
40
|
}, []);
|
|
37
41
|
var memoizedHandleKeyDown = (0, _react.useCallback)(function (e) {
|
|
38
|
-
var colorIndex = palette.findIndex(function (_ref2) {
|
|
39
|
-
var _ref3 = (0, _slicedToArray2.default)(_ref2, 1),
|
|
40
|
-
colorValue = _ref3[0];
|
|
41
|
-
return colorValue === selectedColor;
|
|
42
|
-
});
|
|
43
42
|
var newColorIndex = null;
|
|
44
43
|
var nextColor = function nextColor() {
|
|
45
|
-
return
|
|
44
|
+
return currentFocusedColor + 1 > palette.length - 1 ? 0 : currentFocusedColor + 1;
|
|
46
45
|
};
|
|
47
46
|
var previousColor = function previousColor() {
|
|
48
|
-
return
|
|
47
|
+
return currentFocusedColor - 1 < 0 ? palette.length - 1 : currentFocusedColor - 1;
|
|
49
48
|
};
|
|
50
49
|
switch (e.keyCode) {
|
|
51
50
|
case VK_RIGHT:
|
|
@@ -59,22 +58,16 @@ var _default = function _default(_ref) {
|
|
|
59
58
|
newColorIndex = previousColor();
|
|
60
59
|
break;
|
|
61
60
|
case VK_TAB:
|
|
62
|
-
|
|
63
|
-
if (e.shiftKey) {
|
|
64
|
-
newColorIndex = previousColor();
|
|
65
|
-
} else {
|
|
66
|
-
newColorIndex = nextColor();
|
|
67
|
-
}
|
|
61
|
+
setCurrentFocusedColor(0);
|
|
68
62
|
break;
|
|
69
63
|
}
|
|
70
64
|
if (newColorIndex === null) {
|
|
71
65
|
return;
|
|
72
66
|
}
|
|
73
|
-
|
|
67
|
+
setCurrentFocusedColor(newColorIndex);
|
|
74
68
|
var newRef = colorRefs.current[newColorIndex];
|
|
75
|
-
newRef === null || newRef === void 0
|
|
76
|
-
|
|
77
|
-
}, [selectedColor, onClick, colorRefs]);
|
|
69
|
+
newRef === null || newRef === void 0 || newRef.focus();
|
|
70
|
+
}, [currentFocusedColor, setCurrentFocusedColor, colorRefs]);
|
|
78
71
|
return (
|
|
79
72
|
/**
|
|
80
73
|
We need to disable below eslint rule becuase of role "radiogroup". This role was added
|
|
@@ -90,12 +83,12 @@ var _default = function _default(_ref) {
|
|
|
90
83
|
maxWidth: cols * 32
|
|
91
84
|
},
|
|
92
85
|
onKeyDown: memoizedHandleKeyDown
|
|
93
|
-
}, palette.map(function (
|
|
94
|
-
var
|
|
95
|
-
colorValue =
|
|
96
|
-
backgroundColor =
|
|
97
|
-
borderColor =
|
|
98
|
-
iconColor =
|
|
86
|
+
}, palette.map(function (_ref2, i) {
|
|
87
|
+
var _ref3 = (0, _slicedToArray2.default)(_ref2, 4),
|
|
88
|
+
colorValue = _ref3[0],
|
|
89
|
+
backgroundColor = _ref3[1],
|
|
90
|
+
borderColor = _ref3[2],
|
|
91
|
+
iconColor = _ref3[3];
|
|
99
92
|
return (0, _react2.jsx)(_color.default, {
|
|
100
93
|
key: colorValue,
|
|
101
94
|
value: colorValue,
|
|
@@ -112,5 +105,4 @@ var _default = function _default(_ref) {
|
|
|
112
105
|
});
|
|
113
106
|
}))
|
|
114
107
|
);
|
|
115
|
-
};
|
|
116
|
-
exports.default = _default;
|
|
108
|
+
};
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
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; } }
|
|
30
30
|
var buttonStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 24px;\n width: 24px;\n background: ", ";\n padding: 0;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n display: block;\n box-sizing: border-box;\n overflow: hidden;\n"])), "var(--ds-background-neutral, ".concat(_colors.N900, ")"), "var(--ds-border, ".concat(_colors.N0, ")"));
|
|
31
31
|
var buttonWrapperStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid transparent;\n margin: 0 ", ";\n font-size: 0;\n display: flex;\n align-items: center;\n padding: 1px;\n border-radius: 6px;\n &:hover {\n border: 1px solid ", ";\n }\n"])), "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(_colors.N50, ")"));
|
|
32
|
-
var Color = /*#__PURE__*/function (_PureComponent) {
|
|
32
|
+
var Color = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
33
33
|
(0, _inherits2.default)(Color, _PureComponent);
|
|
34
34
|
var _super = _createSuper(Color);
|
|
35
35
|
function Color() {
|
|
@@ -111,5 +111,4 @@ var Color = /*#__PURE__*/function (_PureComponent) {
|
|
|
111
111
|
}
|
|
112
112
|
}]);
|
|
113
113
|
return Color;
|
|
114
|
-
}(_react.PureComponent);
|
|
115
|
-
exports.default = Color;
|
|
114
|
+
}(_react.PureComponent);
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Czech
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Modrá',
|
|
17
17
|
'fabric.status.color.green': 'Zelená',
|
|
18
18
|
'fabric.status.color.grey': 'Šedá',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Červená',
|
|
21
21
|
'fabric.status.color.yellow': 'Žlutá',
|
|
22
22
|
'fabric.status.input.label': 'Nastavit stav'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Danish (Denmark)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blå',
|
|
17
17
|
'fabric.status.color.green': 'Grøn',
|
|
18
18
|
'fabric.status.color.grey': 'Grå',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Rød',
|
|
21
21
|
'fabric.status.color.yellow': 'Gul',
|
|
22
22
|
'fabric.status.input.label': 'Angiv en status'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/de.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//German (Germany)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blau',
|
|
17
17
|
'fabric.status.color.green': 'Grün',
|
|
18
18
|
'fabric.status.color.grey': 'Grau',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Rot',
|
|
21
21
|
'fabric.status.color.yellow': 'Gelb',
|
|
22
22
|
'fabric.status.input.label': 'Status festlegen'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/en.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blue',
|
|
17
17
|
'fabric.status.color.green': 'Green',
|
|
18
18
|
'fabric.status.color.grey': 'Grey',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Red',
|
|
21
21
|
'fabric.status.color.yellow': 'Yellow',
|
|
22
22
|
'fabric.status.input.label': 'Set a status'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/en_GB.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//English (United Kingdom)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blue',
|
|
17
17
|
'fabric.status.color.green': 'Green',
|
|
18
18
|
'fabric.status.color.grey': 'Grey',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Red',
|
|
21
21
|
'fabric.status.color.yellow': 'Yellow',
|
|
22
22
|
'fabric.status.input.label': 'Set a status'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/en_ZZ.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blue',
|
|
17
17
|
'fabric.status.color.green': 'Green',
|
|
18
18
|
'fabric.status.color.grey': 'Grey',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Red',
|
|
21
21
|
'fabric.status.color.yellow': 'Yellow',
|
|
22
22
|
'fabric.status.input.label': 'Set a status'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/es.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Spanish (International)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Azul',
|
|
17
17
|
'fabric.status.color.green': 'Verde',
|
|
18
18
|
'fabric.status.color.grey': 'Gris',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Rojo',
|
|
21
21
|
'fabric.status.color.yellow': 'Amarillo',
|
|
22
22
|
'fabric.status.input.label': 'Establecer un estado'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/et.js
CHANGED
|
@@ -11,12 +11,11 @@ exports.default = void 0;
|
|
|
11
11
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
12
12
|
*/
|
|
13
13
|
//Estonian
|
|
14
|
-
var _default = {
|
|
14
|
+
var _default = exports.default = {
|
|
15
15
|
'fabric.status.color.blue': 'Sinine',
|
|
16
16
|
'fabric.status.color.green': 'Roheline',
|
|
17
17
|
'fabric.status.color.grey': 'Hall',
|
|
18
18
|
'fabric.status.color.purple': 'Lilla',
|
|
19
19
|
'fabric.status.color.red': 'Punane',
|
|
20
20
|
'fabric.status.color.yellow': 'Kollane'
|
|
21
|
-
};
|
|
22
|
-
exports.default = _default;
|
|
21
|
+
};
|
package/dist/cjs/i18n/fi.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Finnish
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Sininen',
|
|
17
17
|
'fabric.status.color.green': 'Vihreä',
|
|
18
18
|
'fabric.status.color.grey': 'Harmaa',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Punainen',
|
|
21
21
|
'fabric.status.color.yellow': 'Keltainen',
|
|
22
22
|
'fabric.status.input.label': 'Aseta tila'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/fr.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//French (France)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Bleu',
|
|
17
17
|
'fabric.status.color.green': 'Vert',
|
|
18
18
|
'fabric.status.color.grey': 'Gris',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Rouge',
|
|
21
21
|
'fabric.status.color.yellow': 'Jaune',
|
|
22
22
|
'fabric.status.input.label': 'Définir un état'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/hu.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Hungarian
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Kék',
|
|
17
17
|
'fabric.status.color.green': 'Zöld',
|
|
18
18
|
'fabric.status.color.grey': 'Szürke',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Piros',
|
|
21
21
|
'fabric.status.color.yellow': 'Sárga',
|
|
22
22
|
'fabric.status.input.label': 'Állapot beállítása'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/is.js
CHANGED
|
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
// Icelandic
|
|
8
|
-
var _default = {
|
|
8
|
+
var _default = exports.default = {
|
|
9
9
|
'fabric.status.color.grey': 'Grár',
|
|
10
10
|
'fabric.status.color.purple': 'Fjólublár',
|
|
11
11
|
'fabric.status.color.blue': 'Blár',
|
|
12
12
|
'fabric.status.color.red': 'Rautt',
|
|
13
13
|
'fabric.status.color.yellow': 'Gulur',
|
|
14
14
|
'fabric.status.color.green': 'Grænt'
|
|
15
|
-
};
|
|
16
|
-
exports.default = _default;
|
|
15
|
+
};
|
package/dist/cjs/i18n/it.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Italian (Italy)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blu',
|
|
17
17
|
'fabric.status.color.green': 'Verde',
|
|
18
18
|
'fabric.status.color.grey': 'Grigio',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Rosso',
|
|
21
21
|
'fabric.status.color.yellow': 'Giallo',
|
|
22
22
|
'fabric.status.input.label': 'Imposta uno stato'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/ja.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Japanese
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': '青',
|
|
17
17
|
'fabric.status.color.green': '緑',
|
|
18
18
|
'fabric.status.color.grey': '灰色',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': '赤',
|
|
21
21
|
'fabric.status.color.yellow': '黄',
|
|
22
22
|
'fabric.status.input.label': 'ステータスを設定'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/ko.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Korean
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': '파란색',
|
|
17
17
|
'fabric.status.color.green': '녹색',
|
|
18
18
|
'fabric.status.color.grey': '회색',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': '빨강색',
|
|
21
21
|
'fabric.status.color.yellow': '노란색',
|
|
22
22
|
'fabric.status.input.label': '상태 설정'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _default = {
|
|
7
|
+
var _default = exports.default = {
|
|
8
8
|
zh: 'Chinese',
|
|
9
9
|
cs: 'Czech',
|
|
10
10
|
da: 'Danish',
|
|
@@ -29,5 +29,4 @@ var _default = {
|
|
|
29
29
|
sk: 'Slovak',
|
|
30
30
|
es: 'Spanish',
|
|
31
31
|
sv: 'Swedish'
|
|
32
|
-
};
|
|
33
|
-
exports.default = _default;
|
|
32
|
+
};
|
package/dist/cjs/i18n/nb.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Norwegian (Bokmål)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blå',
|
|
17
17
|
'fabric.status.color.green': 'Grønn',
|
|
18
18
|
'fabric.status.color.grey': 'Grå',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Rød',
|
|
21
21
|
'fabric.status.color.yellow': 'Gul',
|
|
22
22
|
'fabric.status.input.label': 'Angi en status'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/nl.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Dutch (Netherlands)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blauw',
|
|
17
17
|
'fabric.status.color.green': 'Groen',
|
|
18
18
|
'fabric.status.color.grey': 'Grijs',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Rood',
|
|
21
21
|
'fabric.status.color.yellow': 'Geel',
|
|
22
22
|
'fabric.status.input.label': 'Status instellen'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/pl.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Polish (Poland)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Niebieski',
|
|
17
17
|
'fabric.status.color.green': 'Zielony',
|
|
18
18
|
'fabric.status.color.grey': 'Szary',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Czerwony',
|
|
21
21
|
'fabric.status.color.yellow': 'Żółty',
|
|
22
22
|
'fabric.status.input.label': 'Ustaw status'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Portuguese (Brazil)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Azul',
|
|
17
17
|
'fabric.status.color.green': 'Verde',
|
|
18
18
|
'fabric.status.color.grey': 'Cinza',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Vermelho',
|
|
21
21
|
'fabric.status.color.yellow': 'Amarelo',
|
|
22
22
|
'fabric.status.input.label': 'Definir status'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/pt_PT.js
CHANGED
|
@@ -11,12 +11,11 @@ exports.default = void 0;
|
|
|
11
11
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
12
12
|
*/
|
|
13
13
|
//Portuguese (Portugal)
|
|
14
|
-
var _default = {
|
|
14
|
+
var _default = exports.default = {
|
|
15
15
|
'fabric.status.color.blue': 'Azul',
|
|
16
16
|
'fabric.status.color.green': 'Verde',
|
|
17
17
|
'fabric.status.color.grey': 'Cinza',
|
|
18
18
|
'fabric.status.color.purple': 'Roxo',
|
|
19
19
|
'fabric.status.color.red': 'Vermelho',
|
|
20
20
|
'fabric.status.color.yellow': 'Amarelo'
|
|
21
|
-
};
|
|
22
|
-
exports.default = _default;
|
|
21
|
+
};
|
package/dist/cjs/i18n/ro.js
CHANGED
|
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
// Romanian
|
|
8
|
-
var _default = {
|
|
8
|
+
var _default = exports.default = {
|
|
9
9
|
'fabric.status.color.grey': 'Gri',
|
|
10
10
|
'fabric.status.color.purple': 'Violet',
|
|
11
11
|
'fabric.status.color.blue': 'Albastru',
|
|
12
12
|
'fabric.status.color.red': 'Roșu',
|
|
13
13
|
'fabric.status.color.yellow': 'Galben',
|
|
14
14
|
'fabric.status.color.green': 'Verde'
|
|
15
|
-
};
|
|
16
|
-
exports.default = _default;
|
|
15
|
+
};
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Russian
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Синий',
|
|
17
17
|
'fabric.status.color.green': 'Зеленый',
|
|
18
18
|
'fabric.status.color.grey': 'Серый',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Красный',
|
|
21
21
|
'fabric.status.color.yellow': 'Желтый',
|
|
22
22
|
'fabric.status.input.label': 'Задать статус'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/sk.js
CHANGED
|
@@ -11,12 +11,11 @@ exports.default = void 0;
|
|
|
11
11
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
12
12
|
*/
|
|
13
13
|
//Slovak
|
|
14
|
-
var _default = {
|
|
14
|
+
var _default = exports.default = {
|
|
15
15
|
'fabric.status.color.blue': 'Modrá',
|
|
16
16
|
'fabric.status.color.green': 'Zelená',
|
|
17
17
|
'fabric.status.color.grey': 'Šedá',
|
|
18
18
|
'fabric.status.color.purple': 'Fialová',
|
|
19
19
|
'fabric.status.color.red': 'Červená',
|
|
20
20
|
'fabric.status.color.yellow': 'Žltá'
|
|
21
|
-
};
|
|
22
|
-
exports.default = _default;
|
|
21
|
+
};
|
package/dist/cjs/i18n/sv.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Swedish
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Blå',
|
|
17
17
|
'fabric.status.color.green': 'Grön',
|
|
18
18
|
'fabric.status.color.grey': 'Grå',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Röd',
|
|
21
21
|
'fabric.status.color.yellow': 'Gul',
|
|
22
22
|
'fabric.status.input.label': 'Ange status'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Thai (Thailand)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'น้ำเงิน',
|
|
17
17
|
'fabric.status.color.green': 'เขียว',
|
|
18
18
|
'fabric.status.color.grey': 'เทา',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'แดง',
|
|
21
21
|
'fabric.status.color.yellow': 'เหลือง',
|
|
22
22
|
'fabric.status.input.label': 'ตั้งค่าสถานะ'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Turkish (Turkey)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Mavi',
|
|
17
17
|
'fabric.status.color.green': 'Yeşil',
|
|
18
18
|
'fabric.status.color.grey': 'Gri',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Kırmızı',
|
|
21
21
|
'fabric.status.color.yellow': 'Sarı',
|
|
22
22
|
'fabric.status.input.label': 'Durum ayarlayın'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Ukrainian (Ukraine)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Синій',
|
|
17
17
|
'fabric.status.color.green': 'Зелений',
|
|
18
18
|
'fabric.status.color.grey': 'Сірий',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Червоний',
|
|
21
21
|
'fabric.status.color.yellow': 'Жовтий',
|
|
22
22
|
'fabric.status.input.label': 'Додати статус'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Vietnamese (Vietnam)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': 'Xanh lam',
|
|
17
17
|
'fabric.status.color.green': 'Xanh lục',
|
|
18
18
|
'fabric.status.color.grey': 'Xám',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': 'Đỏ',
|
|
21
21
|
'fabric.status.color.yellow': 'Vàng',
|
|
22
22
|
'fabric.status.input.label': 'Đặt trạng thái'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Chinese (Simplified)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': '蓝色',
|
|
17
17
|
'fabric.status.color.green': '绿色',
|
|
18
18
|
'fabric.status.color.grey': '灰色',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': '红色',
|
|
21
21
|
'fabric.status.color.yellow': '黄色',
|
|
22
22
|
'fabric.status.input.label': '设置状态'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Chinese (Traditional)
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.status.color.blue': '藍色',
|
|
17
17
|
'fabric.status.color.green': '綠色',
|
|
18
18
|
'fabric.status.color.grey': '灰色',
|
|
@@ -20,5 +20,4 @@ var _default = {
|
|
|
20
20
|
'fabric.status.color.red': '紅色',
|
|
21
21
|
'fabric.status.color.yellow': '黃色',
|
|
22
22
|
'fabric.status.input.label': '設定狀態'
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ELEMENTS_CHANNEL = 'fabric-elements';
|
|
2
2
|
const packageName = "@atlaskit/status";
|
|
3
|
-
const packageVersion = "1.4.
|
|
3
|
+
const packageVersion = "1.4.2";
|
|
4
4
|
export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
|
|
5
5
|
const statusPayload = {
|
|
6
6
|
...payload,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import * as colors from '@atlaskit/theme/colors';
|
|
3
|
-
import React, { useEffect, useRef, useCallback } from 'react';
|
|
3
|
+
import React, { useEffect, useRef, useCallback, useState } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import Color from './color';
|
|
6
6
|
const palette = [['neutral', `var(--ds-background-neutral, ${colors.N40})`, `var(--ds-border-bold, ${colors.N400})`, `var(--ds-icon, ${colors.N400})`], ['purple', `var(--ds-background-discovery, ${colors.P50})`, `var(--ds-border-discovery, ${colors.P400})`, `var(--ds-icon-discovery, ${colors.P400})`], ['blue', `var(--ds-background-information, ${colors.B50})`, `var(--ds-border-information, ${colors.B400})`, `var(--ds-icon-information, ${colors.B400})`], ['red', `var(--ds-background-danger, ${colors.R50})`, `var(--ds-border-danger, ${colors.R400})`, `var(--ds-icon-danger, ${colors.R400})`], ['yellow', `var(--ds-background-warning, ${colors.Y50})`, `var(--ds-border-warning, ${colors.Y400})`, `var(--ds-icon-warning, ${colors.Y400})`], ['green', `var(--ds-background-success, ${colors.G50})`, `var(--ds-border-success, ${colors.G400})`, `var(--ds-icon-success, ${colors.G400})`]];
|
|
@@ -25,14 +25,14 @@ export default (({
|
|
|
25
25
|
onHover
|
|
26
26
|
}) => {
|
|
27
27
|
const colorRefs = useRef([]);
|
|
28
|
+
const [currentFocusedColor, setCurrentFocusedColor] = useState(0);
|
|
28
29
|
useEffect(() => {
|
|
29
30
|
colorRefs.current = colorRefs.current.slice(0, palette.length);
|
|
30
31
|
}, []);
|
|
31
32
|
const memoizedHandleKeyDown = useCallback(e => {
|
|
32
|
-
const colorIndex = palette.findIndex(([colorValue]) => colorValue === selectedColor);
|
|
33
33
|
let newColorIndex = null;
|
|
34
|
-
const nextColor = () =>
|
|
35
|
-
const previousColor = () =>
|
|
34
|
+
const nextColor = () => currentFocusedColor + 1 > palette.length - 1 ? 0 : currentFocusedColor + 1;
|
|
35
|
+
const previousColor = () => currentFocusedColor - 1 < 0 ? palette.length - 1 : currentFocusedColor - 1;
|
|
36
36
|
switch (e.keyCode) {
|
|
37
37
|
case VK_RIGHT:
|
|
38
38
|
case VK_DOWN:
|
|
@@ -45,22 +45,16 @@ export default (({
|
|
|
45
45
|
newColorIndex = previousColor();
|
|
46
46
|
break;
|
|
47
47
|
case VK_TAB:
|
|
48
|
-
|
|
49
|
-
if (e.shiftKey) {
|
|
50
|
-
newColorIndex = previousColor();
|
|
51
|
-
} else {
|
|
52
|
-
newColorIndex = nextColor();
|
|
53
|
-
}
|
|
48
|
+
setCurrentFocusedColor(0);
|
|
54
49
|
break;
|
|
55
50
|
}
|
|
56
51
|
if (newColorIndex === null) {
|
|
57
52
|
return;
|
|
58
53
|
}
|
|
59
|
-
|
|
54
|
+
setCurrentFocusedColor(newColorIndex);
|
|
60
55
|
const newRef = colorRefs.current[newColorIndex];
|
|
61
56
|
newRef === null || newRef === void 0 ? void 0 : newRef.focus();
|
|
62
|
-
|
|
63
|
-
}, [selectedColor, onClick, colorRefs]);
|
|
57
|
+
}, [currentFocusedColor, setCurrentFocusedColor, colorRefs]);
|
|
64
58
|
return (
|
|
65
59
|
/**
|
|
66
60
|
We need to disable below eslint rule becuase of role "radiogroup". This role was added
|
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
export var ELEMENTS_CHANNEL = 'fabric-elements';
|
|
5
5
|
var packageName = "@atlaskit/status";
|
|
6
|
-
var packageVersion = "1.4.
|
|
6
|
+
var packageVersion = "1.4.2";
|
|
7
7
|
export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
8
8
|
return function (payload) {
|
|
9
9
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import * as colors from '@atlaskit/theme/colors';
|
|
6
|
-
import React, { useEffect, useRef, useCallback } from 'react';
|
|
6
|
+
import React, { useEffect, useRef, useCallback, useState } from 'react';
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import Color from './color';
|
|
9
9
|
var palette = [['neutral', "var(--ds-background-neutral, ".concat(colors.N40, ")"), "var(--ds-border-bold, ".concat(colors.N400, ")"), "var(--ds-icon, ".concat(colors.N400, ")")], ['purple', "var(--ds-background-discovery, ".concat(colors.P50, ")"), "var(--ds-border-discovery, ".concat(colors.P400, ")"), "var(--ds-icon-discovery, ".concat(colors.P400, ")")], ['blue', "var(--ds-background-information, ".concat(colors.B50, ")"), "var(--ds-border-information, ".concat(colors.B400, ")"), "var(--ds-icon-information, ".concat(colors.B400, ")")], ['red', "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-border-danger, ".concat(colors.R400, ")"), "var(--ds-icon-danger, ".concat(colors.R400, ")")], ['yellow', "var(--ds-background-warning, ".concat(colors.Y50, ")"), "var(--ds-border-warning, ".concat(colors.Y400, ")"), "var(--ds-icon-warning, ".concat(colors.Y400, ")")], ['green', "var(--ds-background-success, ".concat(colors.G50, ")"), "var(--ds-border-success, ".concat(colors.G400, ")"), "var(--ds-icon-success, ".concat(colors.G400, ")")]];
|
|
@@ -21,21 +21,20 @@ export default (function (_ref) {
|
|
|
21
21
|
className = _ref.className,
|
|
22
22
|
onHover = _ref.onHover;
|
|
23
23
|
var colorRefs = useRef([]);
|
|
24
|
+
var _useState = useState(0),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
currentFocusedColor = _useState2[0],
|
|
27
|
+
setCurrentFocusedColor = _useState2[1];
|
|
24
28
|
useEffect(function () {
|
|
25
29
|
colorRefs.current = colorRefs.current.slice(0, palette.length);
|
|
26
30
|
}, []);
|
|
27
31
|
var memoizedHandleKeyDown = useCallback(function (e) {
|
|
28
|
-
var colorIndex = palette.findIndex(function (_ref2) {
|
|
29
|
-
var _ref3 = _slicedToArray(_ref2, 1),
|
|
30
|
-
colorValue = _ref3[0];
|
|
31
|
-
return colorValue === selectedColor;
|
|
32
|
-
});
|
|
33
32
|
var newColorIndex = null;
|
|
34
33
|
var nextColor = function nextColor() {
|
|
35
|
-
return
|
|
34
|
+
return currentFocusedColor + 1 > palette.length - 1 ? 0 : currentFocusedColor + 1;
|
|
36
35
|
};
|
|
37
36
|
var previousColor = function previousColor() {
|
|
38
|
-
return
|
|
37
|
+
return currentFocusedColor - 1 < 0 ? palette.length - 1 : currentFocusedColor - 1;
|
|
39
38
|
};
|
|
40
39
|
switch (e.keyCode) {
|
|
41
40
|
case VK_RIGHT:
|
|
@@ -49,22 +48,16 @@ export default (function (_ref) {
|
|
|
49
48
|
newColorIndex = previousColor();
|
|
50
49
|
break;
|
|
51
50
|
case VK_TAB:
|
|
52
|
-
|
|
53
|
-
if (e.shiftKey) {
|
|
54
|
-
newColorIndex = previousColor();
|
|
55
|
-
} else {
|
|
56
|
-
newColorIndex = nextColor();
|
|
57
|
-
}
|
|
51
|
+
setCurrentFocusedColor(0);
|
|
58
52
|
break;
|
|
59
53
|
}
|
|
60
54
|
if (newColorIndex === null) {
|
|
61
55
|
return;
|
|
62
56
|
}
|
|
63
|
-
|
|
57
|
+
setCurrentFocusedColor(newColorIndex);
|
|
64
58
|
var newRef = colorRefs.current[newColorIndex];
|
|
65
|
-
newRef === null || newRef === void 0
|
|
66
|
-
|
|
67
|
-
}, [selectedColor, onClick, colorRefs]);
|
|
59
|
+
newRef === null || newRef === void 0 || newRef.focus();
|
|
60
|
+
}, [currentFocusedColor, setCurrentFocusedColor, colorRefs]);
|
|
68
61
|
return (
|
|
69
62
|
/**
|
|
70
63
|
We need to disable below eslint rule becuase of role "radiogroup". This role was added
|
|
@@ -80,12 +73,12 @@ export default (function (_ref) {
|
|
|
80
73
|
maxWidth: cols * 32
|
|
81
74
|
},
|
|
82
75
|
onKeyDown: memoizedHandleKeyDown
|
|
83
|
-
}, palette.map(function (
|
|
84
|
-
var
|
|
85
|
-
colorValue =
|
|
86
|
-
backgroundColor =
|
|
87
|
-
borderColor =
|
|
88
|
-
iconColor =
|
|
76
|
+
}, palette.map(function (_ref2, i) {
|
|
77
|
+
var _ref3 = _slicedToArray(_ref2, 4),
|
|
78
|
+
colorValue = _ref3[0],
|
|
79
|
+
backgroundColor = _ref3[1],
|
|
80
|
+
borderColor = _ref3[2],
|
|
81
|
+
iconColor = _ref3[3];
|
|
89
82
|
return jsx(Color, {
|
|
90
83
|
key: colorValue,
|
|
91
84
|
value: colorValue,
|