@atlaskit/menu 2.1.5 → 2.1.6
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 +6 -0
- package/dist/types/types.d.ts +31 -31
- package/dist/types-ts4.5/types.d.ts +31 -31
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/menu
|
|
2
2
|
|
|
3
|
+
## 2.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72130) [`b037e5451037`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b037e5451037) - Update new button text color fallback for default theme (non-token) to match that of old button current text color
|
|
8
|
+
|
|
3
9
|
## 2.1.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -141,10 +141,10 @@ export interface MenuItemPrimitiveProps {
|
|
|
141
141
|
}
|
|
142
142
|
export interface MenuItemProps {
|
|
143
143
|
/**
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
* A function that overrides the styles of the component.
|
|
145
|
+
* It receives the current styles and state and expects a styles object.
|
|
146
|
+
*
|
|
147
|
+
* @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
148
148
|
*/
|
|
149
149
|
cssFn?: CSSFn;
|
|
150
150
|
/**
|
|
@@ -189,9 +189,9 @@ export interface MenuItemProps {
|
|
|
189
189
|
*/
|
|
190
190
|
testId?: string;
|
|
191
191
|
/**
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
* Custom overrides for the composed components.
|
|
193
|
+
*
|
|
194
|
+
* @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
195
195
|
*/
|
|
196
196
|
overrides?: Overrides;
|
|
197
197
|
/**
|
|
@@ -280,16 +280,16 @@ export interface CustomItemComponentProps {
|
|
|
280
280
|
}
|
|
281
281
|
export interface CustomItemProps<TCustomComponentProps = CustomItemComponentProps> extends MenuItemProps {
|
|
282
282
|
/**
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
283
|
+
* Custom component to render as an item. This can be both a functional component or a class component.
|
|
284
|
+
*
|
|
285
|
+
* Will return `null` if no component is defined.
|
|
286
|
+
*
|
|
287
|
+
* Props passed to `CustomItem` will be passed down to this component. If the props for `component` have TypeScript types,
|
|
288
|
+
* CustomItem will extend them, providing type safety for your custom item.
|
|
289
|
+
*
|
|
290
|
+
* E.g. `<CustomItem to="/link" component={RouterLink} />`.
|
|
291
|
+
*
|
|
292
|
+
* __NOTE:__ Make sure the reference for this component does not change between renders else undefined behavior may happen.
|
|
293
293
|
*/
|
|
294
294
|
component?: React.ComponentType<TCustomComponentProps>;
|
|
295
295
|
}
|
|
@@ -328,10 +328,10 @@ export interface SkeletonItemProps {
|
|
|
328
328
|
}
|
|
329
329
|
export interface HeadingItemProps {
|
|
330
330
|
/**
|
|
331
|
-
A function that overrides the styles.
|
|
332
|
-
It receives the current styles and returns a customized styles object.
|
|
333
|
-
|
|
334
|
-
@deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
331
|
+
* A function that overrides the styles.
|
|
332
|
+
* It receives the current styles and returns a customized styles object.
|
|
333
|
+
*
|
|
334
|
+
* @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
335
335
|
*/
|
|
336
336
|
cssFn?: StatelessCSSFn;
|
|
337
337
|
/**
|
|
@@ -374,10 +374,10 @@ export interface SkeletonHeadingItemProps {
|
|
|
374
374
|
*/
|
|
375
375
|
isShimmering?: boolean;
|
|
376
376
|
/**
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
* A function that overrides the styles of this component.
|
|
378
|
+
* It receives the current styles and returns a customized styles object.
|
|
379
|
+
*
|
|
380
|
+
* @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
381
381
|
*/
|
|
382
382
|
cssFn?: StatelessCSSFn;
|
|
383
383
|
}
|
|
@@ -386,12 +386,12 @@ export type ItemState = {
|
|
|
386
386
|
isDisabled: boolean;
|
|
387
387
|
};
|
|
388
388
|
/**
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
389
|
+
* A function that overrides the styles of
|
|
390
|
+
* menu components. It receives the current state
|
|
391
|
+
* and should return a CSSObject.
|
|
392
|
+
*
|
|
393
|
+
* @see @atlaskit/menu/docs/85-overriding-item-styles
|
|
394
|
+
* @deprecated This type is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
395
395
|
*/
|
|
396
396
|
export interface CSSFn<TState = ItemState extends void ? void : ItemState> {
|
|
397
397
|
(currentState: TState): CSSObject | CSSObject[];
|
|
@@ -141,10 +141,10 @@ export interface MenuItemPrimitiveProps {
|
|
|
141
141
|
}
|
|
142
142
|
export interface MenuItemProps {
|
|
143
143
|
/**
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
* A function that overrides the styles of the component.
|
|
145
|
+
* It receives the current styles and state and expects a styles object.
|
|
146
|
+
*
|
|
147
|
+
* @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
148
148
|
*/
|
|
149
149
|
cssFn?: CSSFn;
|
|
150
150
|
/**
|
|
@@ -189,9 +189,9 @@ export interface MenuItemProps {
|
|
|
189
189
|
*/
|
|
190
190
|
testId?: string;
|
|
191
191
|
/**
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
* Custom overrides for the composed components.
|
|
193
|
+
*
|
|
194
|
+
* @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
195
195
|
*/
|
|
196
196
|
overrides?: Overrides;
|
|
197
197
|
/**
|
|
@@ -280,16 +280,16 @@ export interface CustomItemComponentProps {
|
|
|
280
280
|
}
|
|
281
281
|
export interface CustomItemProps<TCustomComponentProps = CustomItemComponentProps> extends MenuItemProps {
|
|
282
282
|
/**
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
283
|
+
* Custom component to render as an item. This can be both a functional component or a class component.
|
|
284
|
+
*
|
|
285
|
+
* Will return `null` if no component is defined.
|
|
286
|
+
*
|
|
287
|
+
* Props passed to `CustomItem` will be passed down to this component. If the props for `component` have TypeScript types,
|
|
288
|
+
* CustomItem will extend them, providing type safety for your custom item.
|
|
289
|
+
*
|
|
290
|
+
* E.g. `<CustomItem to="/link" component={RouterLink} />`.
|
|
291
|
+
*
|
|
292
|
+
* __NOTE:__ Make sure the reference for this component does not change between renders else undefined behavior may happen.
|
|
293
293
|
*/
|
|
294
294
|
component?: React.ComponentType<TCustomComponentProps>;
|
|
295
295
|
}
|
|
@@ -328,10 +328,10 @@ export interface SkeletonItemProps {
|
|
|
328
328
|
}
|
|
329
329
|
export interface HeadingItemProps {
|
|
330
330
|
/**
|
|
331
|
-
A function that overrides the styles.
|
|
332
|
-
It receives the current styles and returns a customized styles object.
|
|
333
|
-
|
|
334
|
-
@deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
331
|
+
* A function that overrides the styles.
|
|
332
|
+
* It receives the current styles and returns a customized styles object.
|
|
333
|
+
*
|
|
334
|
+
* @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
335
335
|
*/
|
|
336
336
|
cssFn?: StatelessCSSFn;
|
|
337
337
|
/**
|
|
@@ -374,10 +374,10 @@ export interface SkeletonHeadingItemProps {
|
|
|
374
374
|
*/
|
|
375
375
|
isShimmering?: boolean;
|
|
376
376
|
/**
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
* A function that overrides the styles of this component.
|
|
378
|
+
* It receives the current styles and returns a customized styles object.
|
|
379
|
+
*
|
|
380
|
+
* @deprecated This API is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
381
381
|
*/
|
|
382
382
|
cssFn?: StatelessCSSFn;
|
|
383
383
|
}
|
|
@@ -386,12 +386,12 @@ export type ItemState = {
|
|
|
386
386
|
isDisabled: boolean;
|
|
387
387
|
};
|
|
388
388
|
/**
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
389
|
+
* A function that overrides the styles of
|
|
390
|
+
* menu components. It receives the current state
|
|
391
|
+
* and should return a CSSObject.
|
|
392
|
+
*
|
|
393
|
+
* @see @atlaskit/menu/docs/85-overriding-item-styles
|
|
394
|
+
* @deprecated This type is deprecated and will be removed in a future release. See DSP-2676 for more information.
|
|
395
395
|
*/
|
|
396
396
|
export interface CSSFn<TState = ItemState extends void ? void : ItemState> {
|
|
397
397
|
(currentState: TState): CSSObject | CSSObject[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "A collection of composable menu components that can be used anywhere.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
48
48
|
"@atlaskit/primitives": "^2.0.0",
|
|
49
49
|
"@atlaskit/theme": "^12.6.0",
|
|
50
|
-
"@atlaskit/tokens": "^1.
|
|
50
|
+
"@atlaskit/tokens": "^1.37.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1"
|
|
53
53
|
},
|