@fluentui-react-native/menu 0.15.3 → 0.15.4
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.json +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +5 -17
- package/lib/MenuItemCheckbox/MenuItemCheckbox.types.d.ts.map +1 -1
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +5 -17
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/MenuItemCheckbox/MenuItemCheckbox.types.ts +6 -20
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/menu",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Tue, 21 Jun 2022
|
|
5
|
+
"date": "Tue, 21 Jun 2022 21:43:33 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/menu_v0.15.4",
|
|
7
|
+
"version": "0.15.4",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "ruaraki@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/menu",
|
|
13
|
+
"commit": "c606f6deb5e1be500fc4183e6537dbf523c84194",
|
|
14
|
+
"comment": "Some refactoring"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Tue, 21 Jun 2022 18:57:19 GMT",
|
|
6
21
|
"tag": "@fluentui-react-native/menu_v0.15.3",
|
|
7
22
|
"version": "0.15.3",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/menu
|
|
2
2
|
|
|
3
|
-
This log was last generated on Tue, 21 Jun 2022
|
|
3
|
+
This log was last generated on Tue, 21 Jun 2022 21:43:33 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.15.4
|
|
8
|
+
|
|
9
|
+
Tue, 21 Jun 2022 21:43:33 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Some refactoring (ruaraki@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.15.3
|
|
8
16
|
|
|
9
|
-
Tue, 21 Jun 2022 18:
|
|
17
|
+
Tue, 21 Jun 2022 18:57:19 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ColorValue
|
|
2
|
+
import { ColorValue } from 'react-native';
|
|
3
3
|
import { XmlProps } from 'react-native-svg';
|
|
4
4
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
5
5
|
import { TextProps } from '@fluentui-react-native/experimental-text';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { IPressableHooks } from '@fluentui-react-native/interactive-hooks';
|
|
7
|
+
import { MenuItemProps, MenuItemTokens } from '../MenuItem/MenuItem.types';
|
|
8
8
|
export declare const menuItemCheckboxName = "MenuItemCheckbox";
|
|
9
|
-
export interface MenuItemCheckboxTokens extends
|
|
9
|
+
export interface MenuItemCheckboxTokens extends Omit<MenuItemTokens, 'submenuIndicatorPadding' | 'submenuIndicatorSize' | 'disabled' | 'focused' | 'hovered' | 'pressed'> {
|
|
10
10
|
/**
|
|
11
11
|
* Color of the checkmark icon
|
|
12
12
|
*/
|
|
@@ -15,18 +15,10 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
15
15
|
* Amount of space in pixels around the checkmark icon
|
|
16
16
|
*/
|
|
17
17
|
checkmarkPadding?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Height and width in pixels of the checkmark icon
|
|
20
|
-
*/
|
|
21
|
-
checkmarkSize?: number;
|
|
22
18
|
/**
|
|
23
19
|
* Visibility of the checkmark icon from 0 to 1
|
|
24
20
|
*/
|
|
25
21
|
checkmarkVisibility?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Space between parts of the item control in pixels
|
|
28
|
-
*/
|
|
29
|
-
gap?: number;
|
|
30
22
|
/**
|
|
31
23
|
* States of the item control
|
|
32
24
|
*/
|
|
@@ -36,11 +28,7 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
36
28
|
hovered?: MenuItemCheckboxTokens;
|
|
37
29
|
pressed?: MenuItemCheckboxTokens;
|
|
38
30
|
}
|
|
39
|
-
export interface MenuItemCheckboxProps extends
|
|
40
|
-
/**
|
|
41
|
-
* A RefObject to access the IButton interface. Use this to access the public methods and properties of the component.
|
|
42
|
-
*/
|
|
43
|
-
componentRef?: React.RefObject<IFocusable>;
|
|
31
|
+
export interface MenuItemCheckboxProps extends MenuItemProps {
|
|
44
32
|
/**
|
|
45
33
|
* Identifier for the control
|
|
46
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItemCheckbox.types.d.ts","sourceRoot":"","sources":["../../src/MenuItemCheckbox/MenuItemCheckbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"MenuItemCheckbox.types.d.ts","sourceRoot":"","sources":["../../src/MenuItemCheckbox/MenuItemCheckbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,SA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|
|
2
|
-
import { ColorValue
|
|
2
|
+
import { ColorValue } from 'react-native';
|
|
3
3
|
import { XmlProps } from 'react-native-svg';
|
|
4
4
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
5
5
|
import { TextProps } from '@fluentui-react-native/experimental-text';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { IPressableHooks } from '@fluentui-react-native/interactive-hooks';
|
|
7
|
+
import { MenuItemProps, MenuItemTokens } from '../MenuItem/MenuItem.types';
|
|
8
8
|
export declare const menuItemCheckboxName = "MenuItemCheckbox";
|
|
9
|
-
export interface MenuItemCheckboxTokens extends
|
|
9
|
+
export interface MenuItemCheckboxTokens extends Omit<MenuItemTokens, 'submenuIndicatorPadding' | 'submenuIndicatorSize' | 'disabled' | 'focused' | 'hovered' | 'pressed'> {
|
|
10
10
|
/**
|
|
11
11
|
* Color of the checkmark icon
|
|
12
12
|
*/
|
|
@@ -15,18 +15,10 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
15
15
|
* Amount of space in pixels around the checkmark icon
|
|
16
16
|
*/
|
|
17
17
|
checkmarkPadding?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Height and width in pixels of the checkmark icon
|
|
20
|
-
*/
|
|
21
|
-
checkmarkSize?: number;
|
|
22
18
|
/**
|
|
23
19
|
* Visibility of the checkmark icon from 0 to 1
|
|
24
20
|
*/
|
|
25
21
|
checkmarkVisibility?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Space between parts of the item control in pixels
|
|
28
|
-
*/
|
|
29
|
-
gap?: number;
|
|
30
22
|
/**
|
|
31
23
|
* States of the item control
|
|
32
24
|
*/
|
|
@@ -36,11 +28,7 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
36
28
|
hovered?: MenuItemCheckboxTokens;
|
|
37
29
|
pressed?: MenuItemCheckboxTokens;
|
|
38
30
|
}
|
|
39
|
-
export interface MenuItemCheckboxProps extends
|
|
40
|
-
/**
|
|
41
|
-
* A RefObject to access the IButton interface. Use this to access the public methods and properties of the component.
|
|
42
|
-
*/
|
|
43
|
-
componentRef?: React.RefObject<IFocusable>;
|
|
31
|
+
export interface MenuItemCheckboxProps extends MenuItemProps {
|
|
44
32
|
/**
|
|
45
33
|
* Identifier for the control
|
|
46
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItemCheckbox.types.d.ts","sourceRoot":"","sources":["../../src/MenuItemCheckbox/MenuItemCheckbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"MenuItemCheckbox.types.d.ts","sourceRoot":"","sources":["../../src/MenuItemCheckbox/MenuItemCheckbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE3E,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,cAAc,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IACjI;;OAEG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAE5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe,CAAC,qBAAqB,GAAG,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC;CAAG;AAE3H,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,qBAAqB,CAAC;IAC7B,MAAM,EAAE,sBAAsB,CAAC;IAC/B,SAAS,EAAE,yBAAyB,CAAC;CACtC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ColorValue
|
|
2
|
+
import { ColorValue } from 'react-native';
|
|
3
3
|
import { XmlProps } from 'react-native-svg';
|
|
4
4
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
5
5
|
import { TextProps } from '@fluentui-react-native/experimental-text';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { IPressableHooks } from '@fluentui-react-native/interactive-hooks';
|
|
7
|
+
import { MenuItemProps, MenuItemTokens } from '../MenuItem/MenuItem.types';
|
|
8
8
|
|
|
9
9
|
export const menuItemCheckboxName = 'MenuItemCheckbox';
|
|
10
10
|
|
|
11
|
-
export interface MenuItemCheckboxTokens
|
|
11
|
+
export interface MenuItemCheckboxTokens
|
|
12
|
+
extends Omit<MenuItemTokens, 'submenuIndicatorPadding' | 'submenuIndicatorSize' | 'disabled' | 'focused' | 'hovered' | 'pressed'> {
|
|
12
13
|
/**
|
|
13
14
|
* Color of the checkmark icon
|
|
14
15
|
*/
|
|
@@ -19,21 +20,11 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
19
20
|
*/
|
|
20
21
|
checkmarkPadding?: number;
|
|
21
22
|
|
|
22
|
-
/**
|
|
23
|
-
* Height and width in pixels of the checkmark icon
|
|
24
|
-
*/
|
|
25
|
-
checkmarkSize?: number;
|
|
26
|
-
|
|
27
23
|
/**
|
|
28
24
|
* Visibility of the checkmark icon from 0 to 1
|
|
29
25
|
*/
|
|
30
26
|
checkmarkVisibility?: number;
|
|
31
27
|
|
|
32
|
-
/**
|
|
33
|
-
* Space between parts of the item control in pixels
|
|
34
|
-
*/
|
|
35
|
-
gap?: number;
|
|
36
|
-
|
|
37
28
|
/**
|
|
38
29
|
* States of the item control
|
|
39
30
|
*/
|
|
@@ -44,12 +35,7 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
44
35
|
pressed?: MenuItemCheckboxTokens;
|
|
45
36
|
}
|
|
46
37
|
|
|
47
|
-
export interface MenuItemCheckboxProps extends
|
|
48
|
-
/**
|
|
49
|
-
* A RefObject to access the IButton interface. Use this to access the public methods and properties of the component.
|
|
50
|
-
*/
|
|
51
|
-
componentRef?: React.RefObject<IFocusable>;
|
|
52
|
-
|
|
38
|
+
export interface MenuItemCheckboxProps extends MenuItemProps {
|
|
53
39
|
/**
|
|
54
40
|
* Identifier for the control
|
|
55
41
|
*/
|