@fluentui-react-native/menu 0.8.0 → 0.9.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.json +100 -1
- package/CHANGELOG.md +35 -2
- package/lib/MenuDivider/MenuDivider.d.ts +2 -0
- package/lib/MenuDivider/MenuDivider.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDivider.js +15 -0
- package/lib/MenuDivider/MenuDivider.js.map +1 -0
- package/lib/MenuDivider/MenuDivider.styling.d.ts +4 -0
- package/lib/MenuDivider/MenuDivider.styling.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDivider.styling.js +19 -0
- package/lib/MenuDivider/MenuDivider.styling.js.map +1 -0
- package/lib/MenuDivider/MenuDivider.types.d.ts +21 -0
- package/lib/MenuDivider/MenuDivider.types.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDivider.types.js +2 -0
- package/lib/MenuDivider/MenuDivider.types.js.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.d.ts +5 -0
- package/lib/MenuDivider/MenuDividerTokens.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.js +7 -0
- package/lib/MenuDivider/MenuDividerTokens.js.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.win32.d.ts +5 -0
- package/lib/MenuDivider/MenuDividerTokens.win32.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.win32.js +7 -0
- package/lib/MenuDivider/MenuDividerTokens.win32.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib-commonjs/MenuDivider/MenuDivider.d.ts +2 -0
- package/lib-commonjs/MenuDivider/MenuDivider.d.ts.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDivider.js +18 -0
- package/lib-commonjs/MenuDivider/MenuDivider.js.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDivider.styling.d.ts +4 -0
- package/lib-commonjs/MenuDivider/MenuDivider.styling.d.ts.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDivider.styling.js +22 -0
- package/lib-commonjs/MenuDivider/MenuDivider.styling.js.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDivider.types.d.ts +21 -0
- package/lib-commonjs/MenuDivider/MenuDivider.types.d.ts.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDivider.types.js +5 -0
- package/lib-commonjs/MenuDivider/MenuDivider.types.js.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.d.ts +5 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.d.ts.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.js +11 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.js.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.win32.d.ts +5 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.win32.d.ts.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.win32.js +11 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.win32.js.map +1 -0
- package/lib-commonjs/index.d.ts +1 -0
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +3 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +7 -7
- package/src/MenuDivider/MenuDivider.styling.ts +22 -0
- package/src/MenuDivider/MenuDivider.tsx +20 -0
- package/src/MenuDivider/MenuDivider.types.ts +25 -0
- package/src/MenuDivider/MenuDividerTokens.ts +10 -0
- package/src/MenuDivider/MenuDividerTokens.win32.ts +10 -0
- package/src/index.ts +1 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,106 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/menu",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 21 May 2022 16:16:50 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/menu_v0.9.2",
|
|
7
|
+
"version": "0.9.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/menu",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/callout to v0.20.2",
|
|
14
|
+
"commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/menu",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/experimental-text to v0.7.28",
|
|
20
|
+
"commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/menu",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/framework to v0.7.28",
|
|
26
|
+
"commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/menu",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.15.8",
|
|
32
|
+
"commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/menu",
|
|
37
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.12.2",
|
|
38
|
+
"commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"date": "Sat, 21 May 2022 01:47:58 GMT",
|
|
45
|
+
"tag": "@fluentui-react-native/menu_v0.9.1",
|
|
46
|
+
"version": "0.9.1",
|
|
47
|
+
"comments": {
|
|
48
|
+
"patch": [
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui-react-native/menu",
|
|
52
|
+
"comment": "Bump @fluentui-react-native/callout to v0.20.1",
|
|
53
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@fluentui-react-native/menu",
|
|
58
|
+
"comment": "Bump @fluentui-react-native/experimental-text to v0.7.27",
|
|
59
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui-react-native/menu",
|
|
64
|
+
"comment": "Bump @fluentui-react-native/framework to v0.7.27",
|
|
65
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "beachball",
|
|
69
|
+
"package": "@fluentui-react-native/menu",
|
|
70
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.15.7",
|
|
71
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@fluentui-react-native/menu",
|
|
76
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.16.3",
|
|
77
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"author": "beachball",
|
|
81
|
+
"package": "@fluentui-react-native/menu",
|
|
82
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.12.1",
|
|
83
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"date": "Fri, 20 May 2022 19:53:48 GMT",
|
|
90
|
+
"tag": "@fluentui-react-native/menu_v0.9.0",
|
|
91
|
+
"version": "0.9.0",
|
|
92
|
+
"comments": {
|
|
93
|
+
"minor": [
|
|
94
|
+
{
|
|
95
|
+
"author": "ruaraki@microsoft.com",
|
|
96
|
+
"package": "@fluentui-react-native/menu",
|
|
97
|
+
"commit": "1b2eb8874e0571a19cdbab4ba78e3b112d025817",
|
|
98
|
+
"comment": "Implement MenuDivider"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"date": "Fri, 20 May 2022 18:23:41 GMT",
|
|
6
105
|
"tag": "@fluentui-react-native/menu_v0.8.0",
|
|
7
106
|
"version": "0.8.0",
|
|
8
107
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,45 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/menu
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 21 May 2022 16:16:50 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.9.2
|
|
8
|
+
|
|
9
|
+
Sat, 21 May 2022 16:16:50 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/callout to v0.20.2
|
|
14
|
+
- Bump @fluentui-react-native/experimental-text to v0.7.28
|
|
15
|
+
- Bump @fluentui-react-native/framework to v0.7.28
|
|
16
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.15.8
|
|
17
|
+
- Bump @fluentui-react-native/tokens to v0.12.2
|
|
18
|
+
|
|
19
|
+
## 0.9.1
|
|
20
|
+
|
|
21
|
+
Sat, 21 May 2022 01:47:58 GMT
|
|
22
|
+
|
|
23
|
+
### Patches
|
|
24
|
+
|
|
25
|
+
- Bump @fluentui-react-native/callout to v0.20.1
|
|
26
|
+
- Bump @fluentui-react-native/experimental-text to v0.7.27
|
|
27
|
+
- Bump @fluentui-react-native/framework to v0.7.27
|
|
28
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.15.7
|
|
29
|
+
- Bump @fluentui-react-native/theme-tokens to v0.16.3
|
|
30
|
+
- Bump @fluentui-react-native/tokens to v0.12.1
|
|
31
|
+
|
|
32
|
+
## 0.9.0
|
|
33
|
+
|
|
34
|
+
Fri, 20 May 2022 19:53:48 GMT
|
|
35
|
+
|
|
36
|
+
### Minor changes
|
|
37
|
+
|
|
38
|
+
- Implement MenuDivider (ruaraki@microsoft.com)
|
|
39
|
+
|
|
7
40
|
## 0.8.0
|
|
8
41
|
|
|
9
|
-
Fri, 20 May 2022 18:23:
|
|
42
|
+
Fri, 20 May 2022 18:23:41 GMT
|
|
10
43
|
|
|
11
44
|
### Minor changes
|
|
12
45
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const MenuDivider: import("@fluentui-react-native/framework").ComposableComponent<import("@fluentui-react-native/adapters").IViewProps, import("./MenuDivider.types").MenuDividerSlotProps, import("./MenuDivider.types").MenuDividerTokens, object>;
|
|
2
|
+
//# sourceMappingURL=MenuDivider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,mOAatB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
/** @jsx withSlots */
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { compose, withSlots } from '@fluentui-react-native/framework';
|
|
5
|
+
import { menuDividerName } from './MenuDivider.types';
|
|
6
|
+
import { stylingSettings } from './MenuDivider.styling';
|
|
7
|
+
export var MenuDivider = compose(__assign(__assign({ displayName: menuDividerName }, stylingSettings), { slots: {
|
|
8
|
+
root: View,
|
|
9
|
+
}, useRender: function (userProps, useSlots) {
|
|
10
|
+
var Slots = useSlots(userProps);
|
|
11
|
+
return function (final) {
|
|
12
|
+
return withSlots(Slots.root, __assign({}, final));
|
|
13
|
+
};
|
|
14
|
+
} }));
|
|
15
|
+
//# sourceMappingURL=MenuDivider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":";AAAA,qBAAqB;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAY,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAqC,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,IAAM,WAAW,GAAG,OAAO,qBAChC,WAAW,EAAE,eAAe,IACzB,eAAe,KAClB,KAAK,EAAE;QACL,IAAI,EAAE,IAAI;KACX,EACD,SAAS,EAAE,UAAC,SAA2B,EAAE,QAAmC;QAC1E,IAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;QAElC,OAAO,UAAC,KAAuB;YAC7B,OAAO,UAAC,KAAK,CAAC,IAAI,eAAK,KAAK,EAAI,CAAC;QACnC,CAAC,CAAC;IACJ,CAAC,IACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseStylingOptions } from '@fluentui-react-native/framework';
|
|
2
|
+
import { MenuDividerProps, MenuDividerTokens, MenuDividerSlotProps } from './MenuDivider.types';
|
|
3
|
+
export declare const stylingSettings: UseStylingOptions<MenuDividerProps, MenuDividerSlotProps, MenuDividerTokens>;
|
|
4
|
+
//# sourceMappingURL=MenuDivider.styling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.styling.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAc,MAAM,kCAAkC,CAAC;AAEjF,OAAO,EAAmB,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEjH,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,iBAAiB,CAiBxG,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { buildProps } from '@fluentui-react-native/framework';
|
|
2
|
+
import { defaultMenuDividerTokens } from './MenuDividerTokens.win32';
|
|
3
|
+
import { menuDividerName } from './MenuDivider.types';
|
|
4
|
+
export var stylingSettings = {
|
|
5
|
+
tokens: [defaultMenuDividerTokens, menuDividerName],
|
|
6
|
+
slotProps: {
|
|
7
|
+
root: buildProps(function (tokens) { return ({
|
|
8
|
+
style: {
|
|
9
|
+
height: tokens.height,
|
|
10
|
+
width: tokens.width,
|
|
11
|
+
backgroundColor: tokens.backgroundColor,
|
|
12
|
+
margin: tokens.margin,
|
|
13
|
+
marginVertical: tokens.marginVertical,
|
|
14
|
+
display: 'flex',
|
|
15
|
+
},
|
|
16
|
+
}); }, ['backgroundColor', 'height', 'margin', 'marginVertical', 'width']),
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=MenuDivider.styling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.styling.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,eAAe,EAA6D,MAAM,qBAAqB,CAAC;AAEjH,MAAM,CAAC,IAAM,eAAe,GAAiF;IAC3G,MAAM,EAAE,CAAC,wBAAwB,EAAE,eAAe,CAAC;IACnD,SAAS,EAAE;QACT,IAAI,EAAE,UAAU,CACd,UAAC,MAAyB,IAAK,OAAA,CAAC;YAC9B,KAAK,EAAE;gBACL,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,cAAc,EAAE,MAAM,CAAC,cAAc;gBACrC,OAAO,EAAE,MAAM;aAChB;SACF,CAAC,EAT6B,CAS7B,EACF,CAAC,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,CAAC,CACnE;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
4
|
+
import { IBackgroundColorTokens } from '@fluentui-react-native/tokens';
|
|
5
|
+
export declare const menuDividerName = "MenuDivider";
|
|
6
|
+
export declare type MenuDividerTokens = IBackgroundColorTokens & {
|
|
7
|
+
height?: number;
|
|
8
|
+
margin?: number;
|
|
9
|
+
marginVertical?: number;
|
|
10
|
+
width?: ViewStyle['width'];
|
|
11
|
+
};
|
|
12
|
+
export declare type MenuDividerProps = IViewProps;
|
|
13
|
+
export interface MenuDividerSlotProps {
|
|
14
|
+
root: React.PropsWithRef<IViewProps>;
|
|
15
|
+
}
|
|
16
|
+
export interface MenuDividerType {
|
|
17
|
+
props: MenuDividerProps;
|
|
18
|
+
tokens: MenuDividerTokens;
|
|
19
|
+
slotProps: MenuDividerSlotProps;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=MenuDivider.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.types.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,oBAAY,iBAAiB,GAAG,sBAAsB,GAAG;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAC;AAEF,oBAAY,gBAAgB,GAAG,UAAU,CAAC;AAE1C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,oBAAoB,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.types.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.types.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,IAAM,eAAe,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { MenuDividerTokens } from './MenuDivider.types';
|
|
4
|
+
export declare const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=MenuDividerTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDividerTokens.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAI3E,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
2
|
+
export var defaultMenuDividerTokens = function (t) { return ({
|
|
3
|
+
backgroundColor: t.colors.neutralStroke2,
|
|
4
|
+
height: globalTokens.stroke.width.thin,
|
|
5
|
+
marginVertical: globalTokens.spacing.xs,
|
|
6
|
+
}); };
|
|
7
|
+
//# sourceMappingURL=MenuDividerTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDividerTokens.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,MAAM,CAAC,IAAM,wBAAwB,GAA4C,UAAC,CAAQ,IAAwB,OAAA,CAAC;IACjH,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IACxC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI;IACtC,cAAc,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE;CACxC,CAAC,EAJgH,CAIhH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { MenuDividerTokens } from './MenuDivider.types';
|
|
4
|
+
export declare const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=MenuDividerTokens.win32.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDividerTokens.win32.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.win32.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAI3E,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
2
|
+
export var defaultMenuDividerTokens = function (t) { return ({
|
|
3
|
+
backgroundColor: t.colors.neutralStroke1,
|
|
4
|
+
height: globalTokens.stroke.width.thin,
|
|
5
|
+
margin: globalTokens.spacing.xxs,
|
|
6
|
+
}); };
|
|
7
|
+
//# sourceMappingURL=MenuDividerTokens.win32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDividerTokens.win32.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.win32.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,MAAM,CAAC,IAAM,wBAAwB,GAA4C,UAAC,CAAQ,IAAwB,OAAA,CAAC;IACjH,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IACxC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI;IACtC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG;CACjC,CAAC,EAJgH,CAIhH,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export { MenuPopover } from './MenuPopover/MenuPopover';
|
|
|
4
4
|
export { MenuItem } from './MenuItem/MenuItem';
|
|
5
5
|
export { MenuItemCheckbox } from './MenuItemCheckbox/MenuItemCheckbox';
|
|
6
6
|
export { MenuList } from './MenuList/MenuList';
|
|
7
|
+
export { MenuDivider } from './MenuDivider/MenuDivider';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -4,4 +4,5 @@ export { MenuPopover } from './MenuPopover/MenuPopover';
|
|
|
4
4
|
export { MenuItem } from './MenuItem/MenuItem';
|
|
5
5
|
export { MenuItemCheckbox } from './MenuItemCheckbox/MenuItemCheckbox';
|
|
6
6
|
export { MenuList } from './MenuList/MenuList';
|
|
7
|
+
export { MenuDivider } from './MenuDivider/MenuDivider';
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const MenuDivider: import("@fluentui-react-native/framework").ComposableComponent<import("@fluentui-react-native/adapters").IViewProps, import("./MenuDivider.types").MenuDividerSlotProps, import("./MenuDivider.types").MenuDividerTokens, object>;
|
|
2
|
+
//# sourceMappingURL=MenuDivider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,mOAatB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MenuDivider = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
/** @jsx withSlots */
|
|
6
|
+
var react_native_1 = require("react-native");
|
|
7
|
+
var framework_1 = require("@fluentui-react-native/framework");
|
|
8
|
+
var MenuDivider_types_1 = require("./MenuDivider.types");
|
|
9
|
+
var MenuDivider_styling_1 = require("./MenuDivider.styling");
|
|
10
|
+
exports.MenuDivider = (0, framework_1.compose)((0, tslib_1.__assign)((0, tslib_1.__assign)({ displayName: MenuDivider_types_1.menuDividerName }, MenuDivider_styling_1.stylingSettings), { slots: {
|
|
11
|
+
root: react_native_1.View,
|
|
12
|
+
}, useRender: function (userProps, useSlots) {
|
|
13
|
+
var Slots = useSlots(userProps);
|
|
14
|
+
return function (final) {
|
|
15
|
+
return (0, framework_1.withSlots)(Slots.root, (0, tslib_1.__assign)({}, final));
|
|
16
|
+
};
|
|
17
|
+
} }));
|
|
18
|
+
//# sourceMappingURL=MenuDivider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":";;;;AAAA,qBAAqB;AACrB,6CAAoC;AACpC,8DAAgF;AAChF,yDAAyF;AACzF,6DAAwD;AAE3C,QAAA,WAAW,GAAG,IAAA,mBAAO,gDAChC,WAAW,EAAE,mCAAe,IACzB,qCAAe,KAClB,KAAK,EAAE;QACL,IAAI,EAAE,mBAAI;KACX,EACD,SAAS,EAAE,UAAC,SAA2B,EAAE,QAAmC;QAC1E,IAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;QAElC,OAAO,UAAC,KAAuB;YAC7B,OAAO,2BAAC,KAAK,CAAC,IAAI,4BAAK,KAAK,EAAI,CAAC;QACnC,CAAC,CAAC;IACJ,CAAC,IACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseStylingOptions } from '@fluentui-react-native/framework';
|
|
2
|
+
import { MenuDividerProps, MenuDividerTokens, MenuDividerSlotProps } from './MenuDivider.types';
|
|
3
|
+
export declare const stylingSettings: UseStylingOptions<MenuDividerProps, MenuDividerSlotProps, MenuDividerTokens>;
|
|
4
|
+
//# sourceMappingURL=MenuDivider.styling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.styling.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAc,MAAM,kCAAkC,CAAC;AAEjF,OAAO,EAAmB,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEjH,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,iBAAiB,CAiBxG,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stylingSettings = void 0;
|
|
4
|
+
var framework_1 = require("@fluentui-react-native/framework");
|
|
5
|
+
var MenuDividerTokens_win32_1 = require("./MenuDividerTokens.win32");
|
|
6
|
+
var MenuDivider_types_1 = require("./MenuDivider.types");
|
|
7
|
+
exports.stylingSettings = {
|
|
8
|
+
tokens: [MenuDividerTokens_win32_1.defaultMenuDividerTokens, MenuDivider_types_1.menuDividerName],
|
|
9
|
+
slotProps: {
|
|
10
|
+
root: (0, framework_1.buildProps)(function (tokens) { return ({
|
|
11
|
+
style: {
|
|
12
|
+
height: tokens.height,
|
|
13
|
+
width: tokens.width,
|
|
14
|
+
backgroundColor: tokens.backgroundColor,
|
|
15
|
+
margin: tokens.margin,
|
|
16
|
+
marginVertical: tokens.marginVertical,
|
|
17
|
+
display: 'flex',
|
|
18
|
+
},
|
|
19
|
+
}); }, ['backgroundColor', 'height', 'margin', 'marginVertical', 'width']),
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=MenuDivider.styling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.styling.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.styling.ts"],"names":[],"mappings":";;;AAAA,8DAAiF;AACjF,qEAAqE;AACrE,yDAAiH;AAEpG,QAAA,eAAe,GAAiF;IAC3G,MAAM,EAAE,CAAC,kDAAwB,EAAE,mCAAe,CAAC;IACnD,SAAS,EAAE;QACT,IAAI,EAAE,IAAA,sBAAU,EACd,UAAC,MAAyB,IAAK,OAAA,CAAC;YAC9B,KAAK,EAAE;gBACL,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,cAAc,EAAE,MAAM,CAAC,cAAc;gBACrC,OAAO,EAAE,MAAM;aAChB;SACF,CAAC,EAT6B,CAS7B,EACF,CAAC,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,CAAC,CACnE;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
4
|
+
import { IBackgroundColorTokens } from '@fluentui-react-native/tokens';
|
|
5
|
+
export declare const menuDividerName = "MenuDivider";
|
|
6
|
+
export declare type MenuDividerTokens = IBackgroundColorTokens & {
|
|
7
|
+
height?: number;
|
|
8
|
+
margin?: number;
|
|
9
|
+
marginVertical?: number;
|
|
10
|
+
width?: ViewStyle['width'];
|
|
11
|
+
};
|
|
12
|
+
export declare type MenuDividerProps = IViewProps;
|
|
13
|
+
export interface MenuDividerSlotProps {
|
|
14
|
+
root: React.PropsWithRef<IViewProps>;
|
|
15
|
+
}
|
|
16
|
+
export interface MenuDividerType {
|
|
17
|
+
props: MenuDividerProps;
|
|
18
|
+
tokens: MenuDividerTokens;
|
|
19
|
+
slotProps: MenuDividerSlotProps;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=MenuDivider.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.types.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,oBAAY,iBAAiB,GAAG,sBAAsB,GAAG;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAC;AAEF,oBAAY,gBAAgB,GAAG,UAAU,CAAC;AAE1C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,oBAAoB,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.types.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.types.ts"],"names":[],"mappings":";;;AAKa,QAAA,eAAe,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { MenuDividerTokens } from './MenuDivider.types';
|
|
4
|
+
export declare const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=MenuDividerTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDividerTokens.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAI3E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultMenuDividerTokens = void 0;
|
|
4
|
+
var theme_tokens_1 = require("@fluentui-react-native/theme-tokens");
|
|
5
|
+
var defaultMenuDividerTokens = function (t) { return ({
|
|
6
|
+
backgroundColor: t.colors.neutralStroke2,
|
|
7
|
+
height: theme_tokens_1.globalTokens.stroke.width.thin,
|
|
8
|
+
marginVertical: theme_tokens_1.globalTokens.spacing.xs,
|
|
9
|
+
}); };
|
|
10
|
+
exports.defaultMenuDividerTokens = defaultMenuDividerTokens;
|
|
11
|
+
//# sourceMappingURL=MenuDividerTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDividerTokens.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.ts"],"names":[],"mappings":";;;AACA,oEAAmE;AAI5D,IAAM,wBAAwB,GAA4C,UAAC,CAAQ,IAAwB,OAAA,CAAC;IACjH,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IACxC,MAAM,EAAE,2BAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI;IACtC,cAAc,EAAE,2BAAY,CAAC,OAAO,CAAC,EAAE;CACxC,CAAC,EAJgH,CAIhH,CAAC;AAJU,QAAA,wBAAwB,4BAIlC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { MenuDividerTokens } from './MenuDivider.types';
|
|
4
|
+
export declare const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=MenuDividerTokens.win32.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDividerTokens.win32.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.win32.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAI3E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultMenuDividerTokens = void 0;
|
|
4
|
+
var theme_tokens_1 = require("@fluentui-react-native/theme-tokens");
|
|
5
|
+
var defaultMenuDividerTokens = function (t) { return ({
|
|
6
|
+
backgroundColor: t.colors.neutralStroke1,
|
|
7
|
+
height: theme_tokens_1.globalTokens.stroke.width.thin,
|
|
8
|
+
margin: theme_tokens_1.globalTokens.spacing.xxs,
|
|
9
|
+
}); };
|
|
10
|
+
exports.defaultMenuDividerTokens = defaultMenuDividerTokens;
|
|
11
|
+
//# sourceMappingURL=MenuDividerTokens.win32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDividerTokens.win32.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.win32.ts"],"names":[],"mappings":";;;AACA,oEAAmE;AAI5D,IAAM,wBAAwB,GAA4C,UAAC,CAAQ,IAAwB,OAAA,CAAC;IACjH,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IACxC,MAAM,EAAE,2BAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI;IACtC,MAAM,EAAE,2BAAY,CAAC,OAAO,CAAC,GAAG;CACjC,CAAC,EAJgH,CAIhH,CAAC;AAJU,QAAA,wBAAwB,4BAIlC"}
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export { MenuPopover } from './MenuPopover/MenuPopover';
|
|
|
4
4
|
export { MenuItem } from './MenuItem/MenuItem';
|
|
5
5
|
export { MenuItemCheckbox } from './MenuItemCheckbox/MenuItemCheckbox';
|
|
6
6
|
export { MenuList } from './MenuList/MenuList';
|
|
7
|
+
export { MenuDivider } from './MenuDivider/MenuDivider';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MenuList = exports.MenuItemCheckbox = exports.MenuItem = exports.MenuPopover = exports.MenuTrigger = exports.Menu = void 0;
|
|
3
|
+
exports.MenuDivider = exports.MenuList = exports.MenuItemCheckbox = exports.MenuItem = exports.MenuPopover = exports.MenuTrigger = exports.Menu = void 0;
|
|
4
4
|
var Menu_1 = require("./Menu/Menu");
|
|
5
5
|
Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { return Menu_1.Menu; } });
|
|
6
6
|
var MenuTrigger_1 = require("./MenuTrigger/MenuTrigger");
|
|
@@ -13,4 +13,6 @@ var MenuItemCheckbox_1 = require("./MenuItemCheckbox/MenuItemCheckbox");
|
|
|
13
13
|
Object.defineProperty(exports, "MenuItemCheckbox", { enumerable: true, get: function () { return MenuItemCheckbox_1.MenuItemCheckbox; } });
|
|
14
14
|
var MenuList_1 = require("./MenuList/MenuList");
|
|
15
15
|
Object.defineProperty(exports, "MenuList", { enumerable: true, get: function () { return MenuList_1.MenuList; } });
|
|
16
|
+
var MenuDivider_1 = require("./MenuDivider/MenuDivider");
|
|
17
|
+
Object.defineProperty(exports, "MenuDivider", { enumerable: true, get: function () { return MenuDivider_1.MenuDivider; } });
|
|
16
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,yDAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,yDAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,gDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,wEAAuE;AAA9D,oHAAA,gBAAgB,OAAA;AACzB,gDAA+C;AAAtC,oGAAA,QAAQ,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,yDAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,yDAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,gDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,wEAAuE;AAA9D,oHAAA,gBAAgB,OAAA;AACzB,gDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,yDAAwD;AAA/C,0GAAA,WAAW,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "A cross-platform Menu component using the Fluent Design System",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fluentui-react-native/adapters": ">=0.8.5 <1.0.0",
|
|
26
|
-
"@fluentui-react-native/callout": ">=0.20.
|
|
27
|
-
"@fluentui-react-native/experimental-text": ">=0.7.
|
|
28
|
-
"@fluentui-react-native/framework": "0.7.
|
|
29
|
-
"@fluentui-react-native/interactive-hooks": ">=0.15.
|
|
30
|
-
"@fluentui-react-native/theme-tokens": ">=0.16.
|
|
31
|
-
"@fluentui-react-native/tokens": ">=0.12.
|
|
26
|
+
"@fluentui-react-native/callout": ">=0.20.2 <1.0.0",
|
|
27
|
+
"@fluentui-react-native/experimental-text": ">=0.7.28 <1.0.0",
|
|
28
|
+
"@fluentui-react-native/framework": "0.7.28",
|
|
29
|
+
"@fluentui-react-native/interactive-hooks": ">=0.15.8 <1.0.0",
|
|
30
|
+
"@fluentui-react-native/theme-tokens": ">=0.16.3 <1.0.0",
|
|
31
|
+
"@fluentui-react-native/tokens": ">=0.12.2 <1.0.0",
|
|
32
32
|
"@fluentui-react-native/use-styling": ">=0.8.3 <1.0.0",
|
|
33
33
|
"react-native-svg": "^12.3.0",
|
|
34
34
|
"tslib": "^2.3.1"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseStylingOptions, buildProps } from '@fluentui-react-native/framework';
|
|
2
|
+
import { defaultMenuDividerTokens } from './MenuDividerTokens.win32';
|
|
3
|
+
import { menuDividerName, MenuDividerProps, MenuDividerTokens, MenuDividerSlotProps } from './MenuDivider.types';
|
|
4
|
+
|
|
5
|
+
export const stylingSettings: UseStylingOptions<MenuDividerProps, MenuDividerSlotProps, MenuDividerTokens> = {
|
|
6
|
+
tokens: [defaultMenuDividerTokens, menuDividerName],
|
|
7
|
+
slotProps: {
|
|
8
|
+
root: buildProps(
|
|
9
|
+
(tokens: MenuDividerTokens) => ({
|
|
10
|
+
style: {
|
|
11
|
+
height: tokens.height,
|
|
12
|
+
width: tokens.width,
|
|
13
|
+
backgroundColor: tokens.backgroundColor,
|
|
14
|
+
margin: tokens.margin,
|
|
15
|
+
marginVertical: tokens.marginVertical,
|
|
16
|
+
display: 'flex',
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
['backgroundColor', 'height', 'margin', 'marginVertical', 'width'],
|
|
20
|
+
),
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** @jsx withSlots */
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { compose, UseSlots, withSlots } from '@fluentui-react-native/framework';
|
|
4
|
+
import { menuDividerName, MenuDividerProps, MenuDividerType } from './MenuDivider.types';
|
|
5
|
+
import { stylingSettings } from './MenuDivider.styling';
|
|
6
|
+
|
|
7
|
+
export const MenuDivider = compose<MenuDividerType>({
|
|
8
|
+
displayName: menuDividerName,
|
|
9
|
+
...stylingSettings,
|
|
10
|
+
slots: {
|
|
11
|
+
root: View,
|
|
12
|
+
},
|
|
13
|
+
useRender: (userProps: MenuDividerProps, useSlots: UseSlots<MenuDividerType>) => {
|
|
14
|
+
const Slots = useSlots(userProps);
|
|
15
|
+
|
|
16
|
+
return (final: MenuDividerProps) => {
|
|
17
|
+
return <Slots.root {...final} />;
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
4
|
+
import { IBackgroundColorTokens } from '@fluentui-react-native/tokens';
|
|
5
|
+
|
|
6
|
+
export const menuDividerName = 'MenuDivider';
|
|
7
|
+
|
|
8
|
+
export type MenuDividerTokens = IBackgroundColorTokens & {
|
|
9
|
+
height?: number;
|
|
10
|
+
margin?: number;
|
|
11
|
+
marginVertical?: number;
|
|
12
|
+
width?: ViewStyle['width'];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type MenuDividerProps = IViewProps;
|
|
16
|
+
|
|
17
|
+
export interface MenuDividerSlotProps {
|
|
18
|
+
root: React.PropsWithRef<IViewProps>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface MenuDividerType {
|
|
22
|
+
props: MenuDividerProps;
|
|
23
|
+
tokens: MenuDividerTokens;
|
|
24
|
+
slotProps: MenuDividerSlotProps;
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
3
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
4
|
+
import { MenuDividerTokens } from './MenuDivider.types';
|
|
5
|
+
|
|
6
|
+
export const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme> = (t: Theme): MenuDividerTokens => ({
|
|
7
|
+
backgroundColor: t.colors.neutralStroke2,
|
|
8
|
+
height: globalTokens.stroke.width.thin,
|
|
9
|
+
marginVertical: globalTokens.spacing.xs,
|
|
10
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
3
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
4
|
+
import { MenuDividerTokens } from './MenuDivider.types';
|
|
5
|
+
|
|
6
|
+
export const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme> = (t: Theme): MenuDividerTokens => ({
|
|
7
|
+
backgroundColor: t.colors.neutralStroke1,
|
|
8
|
+
height: globalTokens.stroke.width.thin,
|
|
9
|
+
margin: globalTokens.spacing.xxs,
|
|
10
|
+
});
|
package/src/index.ts
CHANGED
|
@@ -4,3 +4,4 @@ export { MenuPopover } from './MenuPopover/MenuPopover';
|
|
|
4
4
|
export { MenuItem } from './MenuItem/MenuItem';
|
|
5
5
|
export { MenuItemCheckbox } from './MenuItemCheckbox/MenuItemCheckbox';
|
|
6
6
|
export { MenuList } from './MenuList/MenuList';
|
|
7
|
+
export { MenuDivider } from './MenuDivider/MenuDivider';
|