@atlaskit/dropdown-menu 12.5.1 → 12.5.3
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 +12 -0
- package/dist/cjs/internal/components/checkbox-icon.js +1 -1
- package/dist/cjs/internal/components/radio-icon.js +1 -1
- package/dist/es2019/internal/components/checkbox-icon.js +1 -1
- package/dist/es2019/internal/components/radio-icon.js +1 -1
- package/dist/esm/internal/components/checkbox-icon.js +1 -1
- package/dist/esm/internal/components/radio-icon.js +1 -1
- package/dist/types/types.d.ts +8 -8
- package/dist/types-ts4.5/types.d.ts +8 -8
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/dropdown-menu
|
|
2
2
|
|
|
3
|
+
## 12.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 12.5.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#74756](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74756) [`8e66f751df96`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e66f751df96) - Use feature flag to roll out border width update from 2px to 1px
|
|
14
|
+
|
|
3
15
|
## 12.5.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -33,7 +33,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
33
33
|
height: "12",
|
|
34
34
|
rx: "2",
|
|
35
35
|
stroke: checked ? "var(--ds-border-selected, ".concat(_colors.B400, ")") : "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? _colors.N100 : _colors.N40, ")"),
|
|
36
|
-
strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-
|
|
36
|
+
strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : 2
|
|
37
37
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
38
38
|
d: "M9.707 11.293a1 1 0 10-1.414 1.414l2 2a1 1 0 001.414 0l4-4a1 1 0 10-1.414-1.414L11 12.586l-1.293-1.293z",
|
|
39
39
|
fill: "inherit"
|
|
@@ -31,7 +31,7 @@ var RadioIcon = function RadioIcon(_ref) {
|
|
|
31
31
|
cy: "12",
|
|
32
32
|
r: "6",
|
|
33
33
|
stroke: checked ? "var(--ds-border-selected, ".concat(_colors.B400, ")") : "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? _colors.N100 : _colors.N40, ")"),
|
|
34
|
-
strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-
|
|
34
|
+
strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : 2
|
|
35
35
|
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
36
36
|
fill: "inherit",
|
|
37
37
|
cx: "12",
|
|
@@ -27,7 +27,7 @@ const CheckboxIcon = ({
|
|
|
27
27
|
height: "12",
|
|
28
28
|
rx: "2",
|
|
29
29
|
stroke: checked ? `var(--ds-border-selected, ${B400})` : `var(--ds-border-input, ${getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? N100 : N40})`,
|
|
30
|
-
strokeWidth: getBooleanFF('platform.design-system-team.border-
|
|
30
|
+
strokeWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : 2
|
|
31
31
|
}), /*#__PURE__*/React.createElement("path", {
|
|
32
32
|
d: "M9.707 11.293a1 1 0 10-1.414 1.414l2 2a1 1 0 001.414 0l4-4a1 1 0 10-1.414-1.414L11 12.586l-1.293-1.293z",
|
|
33
33
|
fill: "inherit"
|
|
@@ -25,7 +25,7 @@ const RadioIcon = ({
|
|
|
25
25
|
cy: "12",
|
|
26
26
|
r: "6",
|
|
27
27
|
stroke: checked ? `var(--ds-border-selected, ${B400})` : `var(--ds-border-input, ${getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? N100 : N40})`,
|
|
28
|
-
strokeWidth: getBooleanFF('platform.design-system-team.border-
|
|
28
|
+
strokeWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : 2
|
|
29
29
|
}), /*#__PURE__*/React.createElement("circle", {
|
|
30
30
|
fill: "inherit",
|
|
31
31
|
cx: "12",
|
|
@@ -26,7 +26,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
26
26
|
height: "12",
|
|
27
27
|
rx: "2",
|
|
28
28
|
stroke: checked ? "var(--ds-border-selected, ".concat(B400, ")") : "var(--ds-border-input, ".concat(getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? N100 : N40, ")"),
|
|
29
|
-
strokeWidth: getBooleanFF('platform.design-system-team.border-
|
|
29
|
+
strokeWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : 2
|
|
30
30
|
}), /*#__PURE__*/React.createElement("path", {
|
|
31
31
|
d: "M9.707 11.293a1 1 0 10-1.414 1.414l2 2a1 1 0 001.414 0l4-4a1 1 0 10-1.414-1.414L11 12.586l-1.293-1.293z",
|
|
32
32
|
fill: "inherit"
|
|
@@ -24,7 +24,7 @@ var RadioIcon = function RadioIcon(_ref) {
|
|
|
24
24
|
cy: "12",
|
|
25
25
|
r: "6",
|
|
26
26
|
stroke: checked ? "var(--ds-border-selected, ".concat(B400, ")") : "var(--ds-border-input, ".concat(getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? N100 : N40, ")"),
|
|
27
|
-
strokeWidth: getBooleanFF('platform.design-system-team.border-
|
|
27
|
+
strokeWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : 2
|
|
28
28
|
}), /*#__PURE__*/React.createElement("circle", {
|
|
29
29
|
fill: "inherit",
|
|
30
30
|
cx: "12",
|
package/dist/types/types.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface DropdownMenuProps<TriggerElement extends HTMLElement = HTMLElem
|
|
|
56
56
|
/**
|
|
57
57
|
* Controls the appearance of the menu.
|
|
58
58
|
* The default menu will scroll after its height exceeds the pre-defined amount.
|
|
59
|
-
* The tall menu
|
|
59
|
+
* The tall menu won't scroll until the height exceeds the height of the viewport.
|
|
60
60
|
*/
|
|
61
61
|
appearance?: 'default' | 'tall';
|
|
62
62
|
/**
|
|
@@ -68,11 +68,11 @@ export interface DropdownMenuProps<TriggerElement extends HTMLElement = HTMLElem
|
|
|
68
68
|
autoFocus?: boolean;
|
|
69
69
|
/**
|
|
70
70
|
* Content that will be rendered inside the layer element. Should typically be
|
|
71
|
-
* `DropdownItemGroup` or `DropdownItem`, or checkbox
|
|
71
|
+
* `DropdownItemGroup` or `DropdownItem`, or the checkbox and radio variants of those.
|
|
72
72
|
*/
|
|
73
73
|
children?: ReactNode;
|
|
74
74
|
/**
|
|
75
|
-
* If true, a
|
|
75
|
+
* If true, a spinner is rendered instead of the items.
|
|
76
76
|
*/
|
|
77
77
|
isLoading?: boolean;
|
|
78
78
|
/**
|
|
@@ -136,7 +136,7 @@ export interface DropdownMenuProps<TriggerElement extends HTMLElement = HTMLElem
|
|
|
136
136
|
*/
|
|
137
137
|
zIndex?: number;
|
|
138
138
|
/**
|
|
139
|
-
* Provide an accessible label via aria-label
|
|
139
|
+
* Provide an accessible label via `aria-label` for assistive technology.
|
|
140
140
|
*/
|
|
141
141
|
label?: string;
|
|
142
142
|
}
|
|
@@ -156,15 +156,15 @@ export interface DropdownItemProps {
|
|
|
156
156
|
*/
|
|
157
157
|
description?: string | JSX.Element;
|
|
158
158
|
/**
|
|
159
|
-
* Makes the element appear disabled
|
|
159
|
+
* Makes the element appear disabled. This will remove interactivity and the item won't appear in the focus order.
|
|
160
160
|
*/
|
|
161
161
|
isDisabled?: boolean;
|
|
162
162
|
/**
|
|
163
|
-
* When `true` the title of the item will wrap multiple lines if it
|
|
163
|
+
* When `true` the title of the item will wrap multiple lines if it exceeds the width of the dropdown menu.
|
|
164
164
|
*/
|
|
165
165
|
shouldTitleWrap?: boolean;
|
|
166
166
|
/**
|
|
167
|
-
* When `true` the description of the item will wrap multiple lines if it
|
|
167
|
+
* When `true` the description of the item will wrap multiple lines if it exceeds the width of the dropdown menu.
|
|
168
168
|
*/
|
|
169
169
|
shouldDescriptionWrap?: boolean;
|
|
170
170
|
/**
|
|
@@ -294,7 +294,7 @@ export interface DropdownItemRadioProps {
|
|
|
294
294
|
*/
|
|
295
295
|
defaultSelected?: boolean;
|
|
296
296
|
/**
|
|
297
|
-
* Unique
|
|
297
|
+
* Unique ID of the checkbox.
|
|
298
298
|
*/
|
|
299
299
|
id: string;
|
|
300
300
|
/**
|
|
@@ -56,7 +56,7 @@ export interface DropdownMenuProps<TriggerElement extends HTMLElement = HTMLElem
|
|
|
56
56
|
/**
|
|
57
57
|
* Controls the appearance of the menu.
|
|
58
58
|
* The default menu will scroll after its height exceeds the pre-defined amount.
|
|
59
|
-
* The tall menu
|
|
59
|
+
* The tall menu won't scroll until the height exceeds the height of the viewport.
|
|
60
60
|
*/
|
|
61
61
|
appearance?: 'default' | 'tall';
|
|
62
62
|
/**
|
|
@@ -68,11 +68,11 @@ export interface DropdownMenuProps<TriggerElement extends HTMLElement = HTMLElem
|
|
|
68
68
|
autoFocus?: boolean;
|
|
69
69
|
/**
|
|
70
70
|
* Content that will be rendered inside the layer element. Should typically be
|
|
71
|
-
* `DropdownItemGroup` or `DropdownItem`, or checkbox
|
|
71
|
+
* `DropdownItemGroup` or `DropdownItem`, or the checkbox and radio variants of those.
|
|
72
72
|
*/
|
|
73
73
|
children?: ReactNode;
|
|
74
74
|
/**
|
|
75
|
-
* If true, a
|
|
75
|
+
* If true, a spinner is rendered instead of the items.
|
|
76
76
|
*/
|
|
77
77
|
isLoading?: boolean;
|
|
78
78
|
/**
|
|
@@ -136,7 +136,7 @@ export interface DropdownMenuProps<TriggerElement extends HTMLElement = HTMLElem
|
|
|
136
136
|
*/
|
|
137
137
|
zIndex?: number;
|
|
138
138
|
/**
|
|
139
|
-
* Provide an accessible label via aria-label
|
|
139
|
+
* Provide an accessible label via `aria-label` for assistive technology.
|
|
140
140
|
*/
|
|
141
141
|
label?: string;
|
|
142
142
|
}
|
|
@@ -156,15 +156,15 @@ export interface DropdownItemProps {
|
|
|
156
156
|
*/
|
|
157
157
|
description?: string | JSX.Element;
|
|
158
158
|
/**
|
|
159
|
-
* Makes the element appear disabled
|
|
159
|
+
* Makes the element appear disabled. This will remove interactivity and the item won't appear in the focus order.
|
|
160
160
|
*/
|
|
161
161
|
isDisabled?: boolean;
|
|
162
162
|
/**
|
|
163
|
-
* When `true` the title of the item will wrap multiple lines if it
|
|
163
|
+
* When `true` the title of the item will wrap multiple lines if it exceeds the width of the dropdown menu.
|
|
164
164
|
*/
|
|
165
165
|
shouldTitleWrap?: boolean;
|
|
166
166
|
/**
|
|
167
|
-
* When `true` the description of the item will wrap multiple lines if it
|
|
167
|
+
* When `true` the description of the item will wrap multiple lines if it exceeds the width of the dropdown menu.
|
|
168
168
|
*/
|
|
169
169
|
shouldDescriptionWrap?: boolean;
|
|
170
170
|
/**
|
|
@@ -294,7 +294,7 @@ export interface DropdownItemRadioProps {
|
|
|
294
294
|
*/
|
|
295
295
|
defaultSelected?: boolean;
|
|
296
296
|
/**
|
|
297
|
-
* Unique
|
|
297
|
+
* Unique ID of the checkbox.
|
|
298
298
|
*/
|
|
299
299
|
id: string;
|
|
300
300
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "12.5.
|
|
3
|
+
"version": "12.5.3",
|
|
4
4
|
"description": "A dropdown menu displays a list of actions or options to a user.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@atlaskit/button": "^17.
|
|
29
|
+
"@atlaskit/button": "^17.6.0",
|
|
30
30
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
31
31
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
32
|
-
"@atlaskit/icon": "^22.
|
|
32
|
+
"@atlaskit/icon": "^22.1.0",
|
|
33
33
|
"@atlaskit/layering": "^0.2.0",
|
|
34
34
|
"@atlaskit/menu": "^2.1.0",
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^0.2.2",
|
|
36
36
|
"@atlaskit/popup": "^1.12.0",
|
|
37
|
-
"@atlaskit/primitives": "^
|
|
37
|
+
"@atlaskit/primitives": "^3.0.0",
|
|
38
38
|
"@atlaskit/spinner": "^16.0.0",
|
|
39
39
|
"@atlaskit/theme": "^12.6.0",
|
|
40
|
-
"@atlaskit/tokens": "^1.
|
|
40
|
+
"@atlaskit/tokens": "^1.38.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|
|
43
43
|
"bind-event-listener": "^2.1.1"
|
|
@@ -107,6 +107,9 @@
|
|
|
107
107
|
"platform-feature-flags": {
|
|
108
108
|
"platform.design-system-team.border-checkbox_nyoiu": {
|
|
109
109
|
"type": "boolean"
|
|
110
|
+
},
|
|
111
|
+
"platform.design-system-team.update-input-border-wdith_5abwv": {
|
|
112
|
+
"type": "boolean"
|
|
110
113
|
}
|
|
111
114
|
},
|
|
112
115
|
"homepage": "https://atlassian.design/components/dropdown-menu/",
|