@fluentui-react-native/menu 0.4.0 → 0.5.0
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 +46 -1
- package/CHANGELOG.md +15 -2
- package/lib/MenuItem/MenuItem.d.ts.map +1 -1
- package/lib/MenuItem/MenuItem.js +6 -19
- package/lib/MenuItem/MenuItem.js.map +1 -1
- package/lib/MenuItem/MenuItem.styling.d.ts +5 -0
- package/lib/MenuItem/MenuItem.styling.d.ts.map +1 -0
- package/lib/MenuItem/MenuItem.styling.js +26 -0
- package/lib/MenuItem/MenuItem.styling.js.map +1 -0
- package/lib/MenuItem/MenuItem.types.d.ts +6 -2
- package/lib/MenuItem/MenuItem.types.d.ts.map +1 -1
- package/lib/MenuItem/MenuItemTokens.d.ts +5 -0
- package/lib/MenuItem/MenuItemTokens.d.ts.map +1 -0
- package/lib/MenuItem/MenuItemTokens.js +26 -0
- package/lib/MenuItem/MenuItemTokens.js.map +1 -0
- package/lib/MenuItem/MenuItemTokens.win32.d.ts +5 -0
- package/lib/MenuItem/MenuItemTokens.win32.d.ts.map +1 -0
- package/lib/MenuItem/MenuItemTokens.win32.js +27 -0
- package/lib/MenuItem/MenuItemTokens.win32.js.map +1 -0
- package/lib/MenuList/MenuList.d.ts +4 -0
- package/lib/MenuList/MenuList.d.ts.map +1 -0
- package/lib/MenuList/MenuList.js +15 -0
- package/lib/MenuList/MenuList.js.map +1 -0
- package/lib/MenuList/MenuList.styling.d.ts +4 -0
- package/lib/MenuList/MenuList.styling.d.ts.map +1 -0
- package/lib/MenuList/MenuList.styling.js +14 -0
- package/lib/MenuList/MenuList.styling.js.map +1 -0
- package/lib/MenuList/MenuList.types.d.ts +17 -0
- package/lib/MenuList/MenuList.types.d.ts.map +1 -0
- package/lib/MenuList/MenuList.types.js +2 -0
- package/lib/MenuList/MenuList.types.js.map +1 -0
- package/lib/MenuList/MenuListTokens.d.ts +5 -0
- package/lib/MenuList/MenuListTokens.d.ts.map +1 -0
- package/lib/MenuList/MenuListTokens.js +8 -0
- package/lib/MenuList/MenuListTokens.js.map +1 -0
- package/lib/MenuList/MenuListTokens.win32.d.ts +5 -0
- package/lib/MenuList/MenuListTokens.win32.d.ts.map +1 -0
- package/lib/MenuList/MenuListTokens.win32.js +8 -0
- package/lib/MenuList/MenuListTokens.win32.js.map +1 -0
- package/lib/MenuPopover/MenuPopover.d.ts.map +1 -1
- package/lib/MenuPopover/MenuPopover.js +3 -2
- package/lib/MenuPopover/MenuPopover.js.map +1 -1
- 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/MenuItem/MenuItem.d.ts.map +1 -1
- package/lib-commonjs/MenuItem/MenuItem.js +6 -19
- package/lib-commonjs/MenuItem/MenuItem.js.map +1 -1
- package/lib-commonjs/MenuItem/MenuItem.styling.d.ts +5 -0
- package/lib-commonjs/MenuItem/MenuItem.styling.d.ts.map +1 -0
- package/lib-commonjs/MenuItem/MenuItem.styling.js +29 -0
- package/lib-commonjs/MenuItem/MenuItem.styling.js.map +1 -0
- package/lib-commonjs/MenuItem/MenuItem.types.d.ts +6 -2
- package/lib-commonjs/MenuItem/MenuItem.types.d.ts.map +1 -1
- package/lib-commonjs/MenuItem/MenuItemTokens.d.ts +5 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.d.ts.map +1 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.js +30 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.js.map +1 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.win32.d.ts +5 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.win32.d.ts.map +1 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.win32.js +31 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.win32.js.map +1 -0
- package/lib-commonjs/MenuList/MenuList.d.ts +4 -0
- package/lib-commonjs/MenuList/MenuList.d.ts.map +1 -0
- package/lib-commonjs/MenuList/MenuList.js +18 -0
- package/lib-commonjs/MenuList/MenuList.js.map +1 -0
- package/lib-commonjs/MenuList/MenuList.styling.d.ts +4 -0
- package/lib-commonjs/MenuList/MenuList.styling.d.ts.map +1 -0
- package/lib-commonjs/MenuList/MenuList.styling.js +17 -0
- package/lib-commonjs/MenuList/MenuList.styling.js.map +1 -0
- package/lib-commonjs/MenuList/MenuList.types.d.ts +17 -0
- package/lib-commonjs/MenuList/MenuList.types.d.ts.map +1 -0
- package/lib-commonjs/MenuList/MenuList.types.js +5 -0
- package/lib-commonjs/MenuList/MenuList.types.js.map +1 -0
- package/lib-commonjs/MenuList/MenuListTokens.d.ts +5 -0
- package/lib-commonjs/MenuList/MenuListTokens.d.ts.map +1 -0
- package/lib-commonjs/MenuList/MenuListTokens.js +12 -0
- package/lib-commonjs/MenuList/MenuListTokens.js.map +1 -0
- package/lib-commonjs/MenuList/MenuListTokens.win32.d.ts +5 -0
- package/lib-commonjs/MenuList/MenuListTokens.win32.d.ts.map +1 -0
- package/lib-commonjs/MenuList/MenuListTokens.win32.js +12 -0
- package/lib-commonjs/MenuList/MenuListTokens.win32.js.map +1 -0
- package/lib-commonjs/MenuPopover/MenuPopover.d.ts.map +1 -1
- package/lib-commonjs/MenuPopover/MenuPopover.js +2 -1
- package/lib-commonjs/MenuPopover/MenuPopover.js.map +1 -1
- 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 +8 -6
- package/src/MenuItem/MenuItem.styling.ts +45 -0
- package/src/MenuItem/MenuItem.tsx +4 -12
- package/src/MenuItem/MenuItem.types.ts +7 -2
- package/src/MenuItem/MenuItemTokens.ts +29 -0
- package/src/MenuItem/MenuItemTokens.win32.ts +30 -0
- package/src/MenuList/MenuList.styling.ts +20 -0
- package/src/MenuList/MenuList.tsx +23 -0
- package/src/MenuList/MenuList.types.ts +17 -0
- package/src/MenuList/MenuListTokens.ts +11 -0
- package/src/MenuList/MenuListTokens.win32.ts +11 -0
- package/src/MenuPopover/MenuPopover.tsx +7 -2
- package/src/index.ts +1 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,52 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/menu",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 04 May 2022 21:04:45 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/menu_v0.5.0",
|
|
7
|
+
"version": "0.5.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "ruaraki@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/menu",
|
|
13
|
+
"commit": "d503e2af4e84ba5c8c1c40ea3698fcbd1691dda6",
|
|
14
|
+
"comment": "MenuList styling"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/menu",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/callout to v0.19.46",
|
|
20
|
+
"commit": "d503e2af4e84ba5c8c1c40ea3698fcbd1691dda6"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/menu",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/experimental-text to v0.7.26",
|
|
26
|
+
"commit": "d503e2af4e84ba5c8c1c40ea3698fcbd1691dda6"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/menu",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/framework to v0.7.26",
|
|
32
|
+
"commit": "d503e2af4e84ba5c8c1c40ea3698fcbd1691dda6"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/menu",
|
|
37
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.15.6",
|
|
38
|
+
"commit": "d503e2af4e84ba5c8c1c40ea3698fcbd1691dda6"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui-react-native/menu",
|
|
43
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.12.0",
|
|
44
|
+
"commit": "d503e2af4e84ba5c8c1c40ea3698fcbd1691dda6"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Mon, 02 May 2022 22:14:40 GMT",
|
|
6
51
|
"tag": "@fluentui-react-native/menu_v0.4.0",
|
|
7
52
|
"version": "0.4.0",
|
|
8
53
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/menu
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 04 May 2022 21:04:45 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.5.0
|
|
8
|
+
|
|
9
|
+
Wed, 04 May 2022 21:04:45 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- MenuList styling (ruaraki@microsoft.com)
|
|
14
|
+
- Bump @fluentui-react-native/callout to v0.19.46
|
|
15
|
+
- Bump @fluentui-react-native/experimental-text to v0.7.26
|
|
16
|
+
- Bump @fluentui-react-native/framework to v0.7.26
|
|
17
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.15.6
|
|
18
|
+
- Bump @fluentui-react-native/tokens to v0.12.0
|
|
19
|
+
|
|
7
20
|
## 0.4.0
|
|
8
21
|
|
|
9
|
-
Mon, 02 May 2022 22:14:
|
|
22
|
+
Mon, 02 May 2022 22:14:40 GMT
|
|
10
23
|
|
|
11
24
|
### Minor changes
|
|
12
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAgB,aAAa,EAAgB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAgB,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAI7E,eAAO,MAAM,QAAQ,gLA2BnB,CAAC"}
|
package/lib/MenuItem/MenuItem.js
CHANGED
|
@@ -6,33 +6,20 @@ import { compose, mergeProps, withSlots } from '@fluentui-react-native/framework
|
|
|
6
6
|
import { Text } from '@fluentui-react-native/experimental-text';
|
|
7
7
|
import { menuItemName } from './MenuItem.types';
|
|
8
8
|
import { useMenuItem } from './useMenuItem';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
tokens: [],
|
|
12
|
-
slotProps: {
|
|
13
|
-
root: {
|
|
14
|
-
style: { height: 48, width: 200, flexDirection: 'row', alignItems: 'center', backgroundColor: 'transparent' },
|
|
15
|
-
},
|
|
16
|
-
content: {
|
|
17
|
-
color: 'white',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
slots: {
|
|
9
|
+
import { stylingSettings } from './MenuItem.styling';
|
|
10
|
+
export var MenuItem = compose(__assign(__assign({ displayName: menuItemName }, stylingSettings), { slots: {
|
|
21
11
|
root: View,
|
|
22
12
|
content: Text,
|
|
23
13
|
submenuIndicator: SvgXml,
|
|
24
|
-
},
|
|
25
|
-
useRender: function (userProps, useSlots) {
|
|
14
|
+
}, useRender: function (userProps, useSlots) {
|
|
26
15
|
var menuItem = useMenuItem(userProps);
|
|
27
|
-
|
|
28
|
-
var Slots = useSlots(userProps);
|
|
16
|
+
var Slots = useSlots(userProps, function (layer) { return menuItem.state[layer]; });
|
|
29
17
|
return function (final) {
|
|
30
18
|
var mergedProps = mergeProps(menuItem.props, final);
|
|
31
|
-
var chevronXml = "\n <svg width=\"12\" height=\"16\" viewBox=\"0 0 11 6\">\n <path fill='
|
|
19
|
+
var chevronXml = "\n <svg width=\"12\" height=\"16\" viewBox=\"0 0 11 6\">\n <path fill='currentColor' d='M0.646447 0.646447C0.841709 0.451184 1.15829 0.451184 1.35355 0.646447L5.5 4.79289L9.64645 0.646447C9.84171 0.451185 10.1583 0.451185 10.3536 0.646447C10.5488 0.841709 10.5488 1.15829 10.3536 1.35355L5.85355 5.85355C5.65829 6.04882 5.34171 6.04882 5.14645 5.85355L0.646447 1.35355C0.451184 1.15829 0.451184 0.841709 0.646447 0.646447Z' />\n </svg>";
|
|
32
20
|
return (withSlots(Slots.root, __assign({}, mergedProps),
|
|
33
21
|
mergedProps.content && withSlots(Slots.content, null, mergedProps.content),
|
|
34
22
|
mergedProps.hasSubmenu && withSlots(Slots.submenuIndicator, { xml: chevronXml })));
|
|
35
23
|
};
|
|
36
|
-
}
|
|
37
|
-
});
|
|
24
|
+
} }));
|
|
38
25
|
//# sourceMappingURL=MenuItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":";AAAA,qBAAqB;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAY,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":";AAAA,qBAAqB;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAY,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,CAAC,IAAM,QAAQ,GAAG,OAAO,qBAC7B,WAAW,EAAE,YAAY,IACtB,eAAe,KAClB,KAAK,EAAE;QACL,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI;QACb,gBAAgB,EAAE,MAAM;KACzB,EACD,SAAS,EAAE,UAAC,SAAwB,EAAE,QAAgC;QACpE,IAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;QACxC,IAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,EAAE,UAAC,KAAK,IAAc,OAAA,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAArB,CAAqB,CAAC,CAAC;QAE7E,OAAO,UAAC,KAAoB;YAC1B,IAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACtD,IAAM,UAAU,GAAG,scAGZ,CAAC;YAER,OAAO,CACL,UAAC,KAAK,CAAC,IAAI,eAAK,WAAW;gBACxB,WAAW,CAAC,OAAO,IAAI,UAAC,KAAK,CAAC,OAAO,QAAE,WAAW,CAAC,OAAO,CAAiB;gBAC3E,WAAW,CAAC,UAAU,IAAI,UAAC,KAAK,CAAC,gBAAgB,IAAC,GAAG,EAAE,UAAU,GAAI,CAC3D,CACd,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,IACD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseStylingOptions } from '@fluentui-react-native/framework';
|
|
2
|
+
import { MenuItemProps, MenuItemTokens, MenuItemSlotProps } from './MenuItem.types';
|
|
3
|
+
export declare const menuItemStates: (keyof MenuItemTokens)[];
|
|
4
|
+
export declare const stylingSettings: UseStylingOptions<MenuItemProps, MenuItemSlotProps, MenuItemTokens>;
|
|
5
|
+
//# sourceMappingURL=MenuItem.styling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItem.styling.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,iBAAiB,EAAc,MAAM,kCAAkC,CAAC;AAGxF,OAAO,EAAgB,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAElG,eAAO,MAAM,cAAc,EAAE,CAAC,MAAM,cAAc,CAAC,EAAkD,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,CAqC/F,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __assign, __spreadArray } from "tslib";
|
|
2
|
+
import { buildProps } from '@fluentui-react-native/framework';
|
|
3
|
+
import { fontStyles, layoutStyles } from '@fluentui-react-native/tokens';
|
|
4
|
+
import { defaultMenuItemTokens } from './MenuItemTokens';
|
|
5
|
+
import { menuItemName } from './MenuItem.types';
|
|
6
|
+
export var menuItemStates = ['hovered', 'focused', 'pressed', 'disabled'];
|
|
7
|
+
export var stylingSettings = {
|
|
8
|
+
tokens: [defaultMenuItemTokens, menuItemName],
|
|
9
|
+
states: menuItemStates,
|
|
10
|
+
slotProps: {
|
|
11
|
+
root: buildProps(function (tokens, theme) { return ({
|
|
12
|
+
style: __assign({ alignItems: 'center', backgroundColor: tokens.backgroundColor, display: 'flex', flexDirection: 'row' }, layoutStyles.from(tokens, theme)),
|
|
13
|
+
}); }, __spreadArray(['backgroundColor'], layoutStyles.keys, true)),
|
|
14
|
+
content: buildProps(function (tokens, theme) {
|
|
15
|
+
return {
|
|
16
|
+
style: __assign({ flexGrow: 1, color: tokens.color }, fontStyles.from(tokens, theme)),
|
|
17
|
+
};
|
|
18
|
+
}, __spreadArray(['color'], fontStyles.keys, true)),
|
|
19
|
+
submenuIndicator: buildProps(function (tokens) {
|
|
20
|
+
return {
|
|
21
|
+
color: tokens.color,
|
|
22
|
+
};
|
|
23
|
+
}, ['color']),
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=MenuItem.styling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItem.styling.js","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.styling.ts"],"names":[],"mappings":";AAAA,OAAO,EAA4B,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAoD,MAAM,kBAAkB,CAAC;AAElG,MAAM,CAAC,IAAM,cAAc,GAA6B,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAEtG,MAAM,CAAC,IAAM,eAAe,GAAwE;IAClG,MAAM,EAAE,CAAC,qBAAqB,EAAE,YAAY,CAAC;IAC7C,MAAM,EAAE,cAAc;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,UAAU,CACd,UAAC,MAAsB,EAAE,KAAY,IAAK,OAAA,CAAC;YACzC,KAAK,aACH,UAAU,EAAE,QAAQ,EACpB,eAAe,EAAE,MAAM,CAAC,eAAe,EACvC,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,KAAK,IACjB,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CACpC;SACF,CAAC,EARwC,CAQxC,iBACD,iBAAiB,GAAK,YAAY,CAAC,IAAI,QACzC;QACD,OAAO,EAAE,UAAU,CACjB,UAAC,MAAsB,EAAE,KAAY;YACnC,OAAO;gBACL,KAAK,aACH,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,MAAM,CAAC,KAAK,IAChB,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAClC;aACF,CAAC;QACJ,CAAC,iBACA,OAAO,GAAK,UAAU,CAAC,IAAI,QAC7B;QACD,gBAAgB,EAAE,UAAU,CAC1B,UAAC,MAAsB;YACrB,OAAO;gBACL,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB,CAAC;QACJ,CAAC,EACD,CAAC,OAAO,CAAC,CACV;KACF;CACF,CAAC"}
|
|
@@ -4,9 +4,13 @@ import { SvgProps, 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
6
|
import { IFocusable, InteractionEvent, IPressableHooks, IWithPressableOptions } from '@fluentui-react-native/interactive-hooks';
|
|
7
|
-
import { FontTokens, IBorderTokens, IColorTokens,
|
|
7
|
+
import { FontTokens, IBorderTokens, IColorTokens, LayoutTokens } from '@fluentui-react-native/tokens';
|
|
8
8
|
export declare const menuItemName = "MenuItem";
|
|
9
|
-
export interface MenuItemTokens extends LayoutTokens, FontTokens, IBorderTokens,
|
|
9
|
+
export interface MenuItemTokens extends LayoutTokens, FontTokens, IBorderTokens, IColorTokens {
|
|
10
|
+
disabled?: MenuItemTokens;
|
|
11
|
+
focused?: MenuItemTokens;
|
|
12
|
+
hovered?: MenuItemTokens;
|
|
13
|
+
pressed?: MenuItemTokens;
|
|
10
14
|
}
|
|
11
15
|
export interface MenuItemProps extends Omit<IWithPressableOptions<ViewProps>, 'onPress'> {
|
|
12
16
|
content: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.types.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"MenuItem.types.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEtG,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,MAAM,WAAW,cAAe,SAAQ,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY;IAC3F,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtF,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAE3C;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzC;AAED,oBAAY,aAAa,GAAG,eAAe,CAAC,aAAa,GAAG,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;AAE9F,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CACxC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE,iBAAiB,CAAC;CAC9B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { MenuItemTokens } from './MenuItem.types';
|
|
4
|
+
export declare const defaultMenuItemTokens: TokenSettings<MenuItemTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=MenuItemTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItemTokens.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItemTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,cAAc,EAAE,KAAK,CAuBrE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
2
|
+
export var defaultMenuItemTokens = function (t) { return ({
|
|
3
|
+
backgroundColor: t.colors.neutralBackground1,
|
|
4
|
+
borderRadius: globalTokens.corner.radius.medium,
|
|
5
|
+
color: t.colors.neutralForeground2,
|
|
6
|
+
fontFamily: t.typography.families.primary,
|
|
7
|
+
fontSize: globalTokens.font.size[300],
|
|
8
|
+
fontWeight: globalTokens.font.weight.regular,
|
|
9
|
+
minHeight: 32,
|
|
10
|
+
minWidth: 160,
|
|
11
|
+
maxWidth: 300,
|
|
12
|
+
padding: globalTokens.spacing.sNudge,
|
|
13
|
+
hovered: {
|
|
14
|
+
backgroundColor: t.colors.neutralBackground1Hover,
|
|
15
|
+
color: t.colors.neutralForeground2Hover,
|
|
16
|
+
},
|
|
17
|
+
pressed: {
|
|
18
|
+
backgroundColor: t.colors.neutralBackground1Pressed,
|
|
19
|
+
color: t.colors.neutralForeground2Pressed,
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
backgroundColor: t.colors.neutralBackground1,
|
|
23
|
+
color: t.colors.neutralForegroundDisabled,
|
|
24
|
+
},
|
|
25
|
+
}); };
|
|
26
|
+
//# sourceMappingURL=MenuItemTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItemTokens.js","sourceRoot":"","sources":["../../src/MenuItem/MenuItemTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,MAAM,CAAC,IAAM,qBAAqB,GAAyC,UAAC,CAAQ,IAAqB,OAAA,CAAC;IACxG,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB;IAC5C,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM;IAC/C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB;IAClC,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO;IACzC,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IACrC,UAAU,EAAE,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,OAA0B;IAC/D,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,GAAG;IACb,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,MAAM;IACpC,OAAO,EAAE;QACP,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,uBAAuB;QACjD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,uBAAuB;KACxC;IACD,OAAO,EAAE;QACP,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB;QACnD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB;KAC1C;IACD,QAAQ,EAAE;QACR,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB;QAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB;KAC1C;CACF,CAAC,EAvBuG,CAuBvG,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { MenuItemTokens } from './MenuItem.types';
|
|
4
|
+
export declare const defaultMenuItemTokens: TokenSettings<MenuItemTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=MenuItemTokens.win32.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItemTokens.win32.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItemTokens.win32.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,cAAc,EAAE,KAAK,CAwBrE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
2
|
+
export var defaultMenuItemTokens = function (t) { return ({
|
|
3
|
+
backgroundColor: t.colors.neutralBackground1,
|
|
4
|
+
borderRadius: globalTokens.corner.radius.none,
|
|
5
|
+
color: t.colors.neutralForeground1,
|
|
6
|
+
fontFamily: t.typography.families.primary,
|
|
7
|
+
fontSize: globalTokens.font.size[200],
|
|
8
|
+
fontWeight: globalTokens.font.weight.regular,
|
|
9
|
+
minHeight: 24,
|
|
10
|
+
minWidth: 160,
|
|
11
|
+
maxWidth: 300,
|
|
12
|
+
padding: globalTokens.spacing.xs,
|
|
13
|
+
paddingHorizontal: globalTokens.spacing.s,
|
|
14
|
+
hovered: {
|
|
15
|
+
backgroundColor: t.colors.neutralBackground1Hover,
|
|
16
|
+
color: t.colors.neutralForeground1Hover,
|
|
17
|
+
},
|
|
18
|
+
pressed: {
|
|
19
|
+
backgroundColor: t.colors.neutralBackground1Pressed,
|
|
20
|
+
color: t.colors.neutralForeground1Pressed,
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
backgroundColor: t.colors.neutralBackground1,
|
|
24
|
+
color: t.colors.neutralForegroundDisabled,
|
|
25
|
+
},
|
|
26
|
+
}); };
|
|
27
|
+
//# sourceMappingURL=MenuItemTokens.win32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItemTokens.win32.js","sourceRoot":"","sources":["../../src/MenuItem/MenuItemTokens.win32.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,MAAM,CAAC,IAAM,qBAAqB,GAAyC,UAAC,CAAQ,IAAqB,OAAA,CAAC;IACxG,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB;IAC5C,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI;IAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB;IAClC,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO;IACzC,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IACrC,UAAU,EAAE,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,OAA0B;IAC/D,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,GAAG;IACb,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE;IAChC,iBAAiB,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACzC,OAAO,EAAE;QACP,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,uBAAuB;QACjD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,uBAAuB;KACxC;IACD,OAAO,EAAE;QACP,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB;QACnD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB;KAC1C;IACD,QAAQ,EAAE;QACR,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB;QAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB;KAC1C;CACF,CAAC,EAxBuG,CAwBvG,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MenuListProps } from './MenuList.types';
|
|
2
|
+
export declare const MenuList: import("@fluentui-react-native/framework").ComposableComponent<MenuListProps, import("./MenuList.types").MenuListSlotProps, import("./MenuList.types").MenuListTokens, object>;
|
|
3
|
+
export default MenuList;
|
|
4
|
+
//# sourceMappingURL=MenuList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../src/MenuList/MenuList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAgB,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAG7E,eAAO,MAAM,QAAQ,gLAanB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { compose, withSlots } from '@fluentui-react-native/framework';
|
|
4
|
+
import { menuListName } from './MenuList.types';
|
|
5
|
+
import { stylingSettings } from './MenuList.styling';
|
|
6
|
+
export var MenuList = compose(__assign(__assign({ displayName: menuListName }, stylingSettings), { slots: {
|
|
7
|
+
root: View,
|
|
8
|
+
}, useRender: function (userProps, useSlots) {
|
|
9
|
+
var Slots = useSlots(userProps);
|
|
10
|
+
return function (_final, children) {
|
|
11
|
+
return withSlots(Slots.root, null, children);
|
|
12
|
+
};
|
|
13
|
+
} }));
|
|
14
|
+
export default MenuList;
|
|
15
|
+
//# sourceMappingURL=MenuList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuList.js","sourceRoot":"","sources":["../../src/MenuList/MenuList.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAY,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,CAAC,IAAM,QAAQ,GAAG,OAAO,qBAC7B,WAAW,EAAE,YAAY,IACtB,eAAe,KAClB,KAAK,EAAE;QACL,IAAI,EAAE,IAAI;KACX,EACD,SAAS,EAAE,UAAC,SAAwB,EAAE,QAAgC;QACpE,IAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;QAElC,OAAO,UAAC,MAAqB,EAAE,QAAyB;YACtD,OAAO,UAAC,KAAK,CAAC,IAAI,QAAE,QAAQ,CAAc,CAAC;QAC7C,CAAC,CAAC;IACJ,CAAC,IACD,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseStylingOptions } from '@fluentui-react-native/framework';
|
|
2
|
+
import { MenuListProps, MenuListTokens, MenuListSlotProps } from './MenuList.types';
|
|
3
|
+
export declare const stylingSettings: UseStylingOptions<MenuListProps, MenuListSlotProps, MenuListTokens>;
|
|
4
|
+
//# sourceMappingURL=MenuList.styling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuList.styling.d.ts","sourceRoot":"","sources":["../../src/MenuList/MenuList.styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,iBAAiB,EAAc,MAAM,kCAAkC,CAAC;AAGxF,OAAO,EAAgB,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAElG,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,CAc/F,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __assign, __spreadArray } from "tslib";
|
|
2
|
+
import { buildProps } from '@fluentui-react-native/framework';
|
|
3
|
+
import { layoutStyles } from '@fluentui-react-native/tokens';
|
|
4
|
+
import { defaultMenuListTokens } from './MenuListTokens';
|
|
5
|
+
import { menuListName } from './MenuList.types';
|
|
6
|
+
export var stylingSettings = {
|
|
7
|
+
tokens: [defaultMenuListTokens, menuListName],
|
|
8
|
+
slotProps: {
|
|
9
|
+
root: buildProps(function (tokens, theme) { return ({
|
|
10
|
+
style: __assign({ backgroundColor: tokens.backgroundColor, display: 'flex' }, layoutStyles.from(tokens, theme)),
|
|
11
|
+
}); }, __spreadArray(['backgroundColor'], layoutStyles.keys, true)),
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=MenuList.styling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuList.styling.js","sourceRoot":"","sources":["../../src/MenuList/MenuList.styling.ts"],"names":[],"mappings":";AAAA,OAAO,EAA4B,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAoD,MAAM,kBAAkB,CAAC;AAElG,MAAM,CAAC,IAAM,eAAe,GAAwE;IAClG,MAAM,EAAE,CAAC,qBAAqB,EAAE,YAAY,CAAC;IAC7C,SAAS,EAAE;QACT,IAAI,EAAE,UAAU,CACd,UAAC,MAAsB,EAAE,KAAY,IAAK,OAAA,CAAC;YACzC,KAAK,aACH,eAAe,EAAE,MAAM,CAAC,eAAe,EACvC,OAAO,EAAE,MAAM,IACZ,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CACpC;SACF,CAAC,EANwC,CAMxC,iBACD,iBAAiB,GAAK,YAAY,CAAC,IAAI,QACzC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
3
|
+
import { IBackgroundColorTokens, LayoutTokens } from '@fluentui-react-native/tokens';
|
|
4
|
+
export declare const menuListName = "MenuList";
|
|
5
|
+
export interface MenuListTokens extends LayoutTokens, IBackgroundColorTokens {
|
|
6
|
+
}
|
|
7
|
+
export interface MenuListProps extends Omit<IViewProps, 'onPress'> {
|
|
8
|
+
}
|
|
9
|
+
export interface MenuListSlotProps {
|
|
10
|
+
root: React.PropsWithRef<IViewProps>;
|
|
11
|
+
}
|
|
12
|
+
export interface MenuListType {
|
|
13
|
+
props: MenuListProps;
|
|
14
|
+
tokens: MenuListTokens;
|
|
15
|
+
slotProps: MenuListSlotProps;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=MenuList.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuList.types.d.ts","sourceRoot":"","sources":["../../src/MenuList/MenuList.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAErF,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,MAAM,WAAW,cAAe,SAAQ,YAAY,EAAE,sBAAsB;CAAG;AAE/E,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;CAAG;AAErE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;CACtC;AACD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE,iBAAiB,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuList.types.js","sourceRoot":"","sources":["../../src/MenuList/MenuList.types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,YAAY,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { MenuListTokens } from './MenuList.types';
|
|
4
|
+
export declare const defaultMenuListTokens: TokenSettings<MenuListTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=MenuListTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuListTokens.d.ts","sourceRoot":"","sources":["../../src/MenuList/MenuListTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,cAAc,EAAE,KAAK,CAKrE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
2
|
+
export var defaultMenuListTokens = function (t) { return ({
|
|
3
|
+
padding: globalTokens.spacing.xs,
|
|
4
|
+
minWidth: 128,
|
|
5
|
+
maxWidth: 300,
|
|
6
|
+
backgroundColor: t.colors.neutralBackground1,
|
|
7
|
+
}); };
|
|
8
|
+
//# sourceMappingURL=MenuListTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuListTokens.js","sourceRoot":"","sources":["../../src/MenuList/MenuListTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,MAAM,CAAC,IAAM,qBAAqB,GAAyC,UAAC,CAAQ,IAAqB,OAAA,CAAC;IACxG,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE;IAChC,QAAQ,EAAE,GAAG;IACb,QAAQ,EAAE,GAAG;IACb,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB;CAC7C,CAAC,EALuG,CAKvG,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { MenuListTokens } from './MenuList.types';
|
|
4
|
+
export declare const defaultMenuListTokens: TokenSettings<MenuListTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=MenuListTokens.win32.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuListTokens.win32.d.ts","sourceRoot":"","sources":["../../src/MenuList/MenuListTokens.win32.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,cAAc,EAAE,KAAK,CAKrE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
2
|
+
export var defaultMenuListTokens = function (t) { return ({
|
|
3
|
+
paddingVertical: globalTokens.spacing.xs,
|
|
4
|
+
minWidth: 128,
|
|
5
|
+
maxWidth: 300,
|
|
6
|
+
backgroundColor: t.colors.neutralBackground1,
|
|
7
|
+
}); };
|
|
8
|
+
//# sourceMappingURL=MenuListTokens.win32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuListTokens.win32.js","sourceRoot":"","sources":["../../src/MenuList/MenuListTokens.win32.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,MAAM,CAAC,IAAM,qBAAqB,GAAyC,UAAC,CAAQ,IAAqB,OAAA,CAAC;IACxG,eAAe,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE;IACxC,QAAQ,EAAE,GAAG;IACb,QAAQ,EAAE,GAAG;IACb,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB;CAC7C,CAAC,EALuG,CAKvG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPopover.d.ts","sourceRoot":"","sources":["../../src/MenuPopover/MenuPopover.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGxE,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"MenuPopover.d.ts","sourceRoot":"","sources":["../../src/MenuPopover/MenuPopover.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGxE,eAAO,MAAM,WAAW,iFAWtB,CAAC;AAGH,eAAe,WAAW,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { stagedComponent } from '@fluentui-react-native/framework';
|
|
2
|
+
import { stagedComponent, useFluentTheme } from '@fluentui-react-native/framework';
|
|
3
3
|
import { Callout } from '@fluentui-react-native/callout';
|
|
4
4
|
import { menuPopoverName } from './MenuPopover.types';
|
|
5
5
|
import { useMenuPopover } from './useMenuPopover';
|
|
6
6
|
export var MenuPopover = stagedComponent(function (props) {
|
|
7
7
|
var state = useMenuPopover(props);
|
|
8
|
+
var theme = useFluentTheme();
|
|
8
9
|
return function (_rest, children) {
|
|
9
|
-
return React.createElement(Callout, { target: state.triggerRef }, children);
|
|
10
|
+
return (React.createElement(Callout, { target: state.triggerRef, borderWidth: 1, borderColor: theme.colors.neutralStrokeAccessible }, children));
|
|
10
11
|
};
|
|
11
12
|
});
|
|
12
13
|
MenuPopover.displayName = menuPopoverName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPopover.js","sourceRoot":"","sources":["../../src/MenuPopover/MenuPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuPopover.js","sourceRoot":"","sources":["../../src/MenuPopover/MenuPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,eAAe,EAAoB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,IAAM,WAAW,GAAG,eAAe,CAAC,UAAC,KAAuB;IACjE,IAAM,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IACpC,IAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,OAAO,UAAC,KAAuB,EAAE,QAAyB;QACxD,OAAO,CACL,oBAAC,OAAO,IAAC,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,uBAAuB,IACjG,QAAQ,CACD,CACX,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,WAAW,CAAC,WAAW,GAAG,eAAe,CAAC;AAE1C,eAAe,WAAW,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { Menu } from './Menu/Menu';
|
|
|
2
2
|
export { MenuTrigger } from './MenuTrigger/MenuTrigger';
|
|
3
3
|
export { MenuPopover } from './MenuPopover/MenuPopover';
|
|
4
4
|
export { MenuItem } from './MenuItem/MenuItem';
|
|
5
|
+
export { MenuList } from './MenuList/MenuList';
|
|
5
6
|
//# 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"}
|
|
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,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -2,4 +2,5 @@ export { Menu } from './Menu/Menu';
|
|
|
2
2
|
export { MenuTrigger } from './MenuTrigger/MenuTrigger';
|
|
3
3
|
export { MenuPopover } from './MenuPopover/MenuPopover';
|
|
4
4
|
export { MenuItem } from './MenuItem/MenuItem';
|
|
5
|
+
export { MenuList } from './MenuList/MenuList';
|
|
5
6
|
//# 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"}
|
|
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,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAgB,aAAa,EAAgB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAgB,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAI7E,eAAO,MAAM,QAAQ,gLA2BnB,CAAC"}
|
|
@@ -9,33 +9,20 @@ var framework_1 = require("@fluentui-react-native/framework");
|
|
|
9
9
|
var experimental_text_1 = require("@fluentui-react-native/experimental-text");
|
|
10
10
|
var MenuItem_types_1 = require("./MenuItem.types");
|
|
11
11
|
var useMenuItem_1 = require("./useMenuItem");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
tokens: [],
|
|
15
|
-
slotProps: {
|
|
16
|
-
root: {
|
|
17
|
-
style: { height: 48, width: 200, flexDirection: 'row', alignItems: 'center', backgroundColor: 'transparent' },
|
|
18
|
-
},
|
|
19
|
-
content: {
|
|
20
|
-
color: 'white',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
slots: {
|
|
12
|
+
var MenuItem_styling_1 = require("./MenuItem.styling");
|
|
13
|
+
exports.MenuItem = (0, framework_1.compose)((0, tslib_1.__assign)((0, tslib_1.__assign)({ displayName: MenuItem_types_1.menuItemName }, MenuItem_styling_1.stylingSettings), { slots: {
|
|
24
14
|
root: react_native_1.View,
|
|
25
15
|
content: experimental_text_1.Text,
|
|
26
16
|
submenuIndicator: react_native_svg_1.SvgXml,
|
|
27
|
-
},
|
|
28
|
-
useRender: function (userProps, useSlots) {
|
|
17
|
+
}, useRender: function (userProps, useSlots) {
|
|
29
18
|
var menuItem = (0, useMenuItem_1.useMenuItem)(userProps);
|
|
30
|
-
|
|
31
|
-
var Slots = useSlots(userProps);
|
|
19
|
+
var Slots = useSlots(userProps, function (layer) { return menuItem.state[layer]; });
|
|
32
20
|
return function (final) {
|
|
33
21
|
var mergedProps = (0, framework_1.mergeProps)(menuItem.props, final);
|
|
34
|
-
var chevronXml = "\n <svg width=\"12\" height=\"16\" viewBox=\"0 0 11 6\">\n <path fill='
|
|
22
|
+
var chevronXml = "\n <svg width=\"12\" height=\"16\" viewBox=\"0 0 11 6\">\n <path fill='currentColor' d='M0.646447 0.646447C0.841709 0.451184 1.15829 0.451184 1.35355 0.646447L5.5 4.79289L9.64645 0.646447C9.84171 0.451185 10.1583 0.451185 10.3536 0.646447C10.5488 0.841709 10.5488 1.15829 10.3536 1.35355L5.85355 5.85355C5.65829 6.04882 5.34171 6.04882 5.14645 5.85355L0.646447 1.35355C0.451184 1.15829 0.451184 0.841709 0.646447 0.646447Z' />\n </svg>";
|
|
35
23
|
return ((0, framework_1.withSlots)(Slots.root, (0, tslib_1.__assign)({}, mergedProps),
|
|
36
24
|
mergedProps.content && (0, framework_1.withSlots)(Slots.content, null, mergedProps.content),
|
|
37
25
|
mergedProps.hasSubmenu && (0, framework_1.withSlots)(Slots.submenuIndicator, { xml: chevronXml })));
|
|
38
26
|
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
27
|
+
} }));
|
|
41
28
|
//# sourceMappingURL=MenuItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":";;;;AAAA,qBAAqB;AACrB,6CAAoC;AACpC,qDAA0C;AAC1C,8DAA4F;AAC5F,8EAAgE;AAChE,mDAA6E;AAC7E,6CAA4C;
|
|
1
|
+
{"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":";;;;AAAA,qBAAqB;AACrB,6CAAoC;AACpC,qDAA0C;AAC1C,8DAA4F;AAC5F,8EAAgE;AAChE,mDAA6E;AAC7E,6CAA4C;AAC5C,uDAAqD;AAExC,QAAA,QAAQ,GAAG,IAAA,mBAAO,gDAC7B,WAAW,EAAE,6BAAY,IACtB,kCAAe,KAClB,KAAK,EAAE;QACL,IAAI,EAAE,mBAAI;QACV,OAAO,EAAE,wBAAI;QACb,gBAAgB,EAAE,yBAAM;KACzB,EACD,SAAS,EAAE,UAAC,SAAwB,EAAE,QAAgC;QACpE,IAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,SAAS,CAAC,CAAC;QACxC,IAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,EAAE,UAAC,KAAK,IAAc,OAAA,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAArB,CAAqB,CAAC,CAAC;QAE7E,OAAO,UAAC,KAAoB;YAC1B,IAAM,WAAW,GAAG,IAAA,sBAAU,EAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACtD,IAAM,UAAU,GAAG,scAGZ,CAAC;YAER,OAAO,CACL,2BAAC,KAAK,CAAC,IAAI,4BAAK,WAAW;gBACxB,WAAW,CAAC,OAAO,IAAI,2BAAC,KAAK,CAAC,OAAO,QAAE,WAAW,CAAC,OAAO,CAAiB;gBAC3E,WAAW,CAAC,UAAU,IAAI,2BAAC,KAAK,CAAC,gBAAgB,IAAC,GAAG,EAAE,UAAU,GAAI,CAC3D,CACd,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,IACD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseStylingOptions } from '@fluentui-react-native/framework';
|
|
2
|
+
import { MenuItemProps, MenuItemTokens, MenuItemSlotProps } from './MenuItem.types';
|
|
3
|
+
export declare const menuItemStates: (keyof MenuItemTokens)[];
|
|
4
|
+
export declare const stylingSettings: UseStylingOptions<MenuItemProps, MenuItemSlotProps, MenuItemTokens>;
|
|
5
|
+
//# sourceMappingURL=MenuItem.styling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItem.styling.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,iBAAiB,EAAc,MAAM,kCAAkC,CAAC;AAGxF,OAAO,EAAgB,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAElG,eAAO,MAAM,cAAc,EAAE,CAAC,MAAM,cAAc,CAAC,EAAkD,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,CAqC/F,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stylingSettings = exports.menuItemStates = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var framework_1 = require("@fluentui-react-native/framework");
|
|
6
|
+
var tokens_1 = require("@fluentui-react-native/tokens");
|
|
7
|
+
var MenuItemTokens_1 = require("./MenuItemTokens");
|
|
8
|
+
var MenuItem_types_1 = require("./MenuItem.types");
|
|
9
|
+
exports.menuItemStates = ['hovered', 'focused', 'pressed', 'disabled'];
|
|
10
|
+
exports.stylingSettings = {
|
|
11
|
+
tokens: [MenuItemTokens_1.defaultMenuItemTokens, MenuItem_types_1.menuItemName],
|
|
12
|
+
states: exports.menuItemStates,
|
|
13
|
+
slotProps: {
|
|
14
|
+
root: (0, framework_1.buildProps)(function (tokens, theme) { return ({
|
|
15
|
+
style: (0, tslib_1.__assign)({ alignItems: 'center', backgroundColor: tokens.backgroundColor, display: 'flex', flexDirection: 'row' }, tokens_1.layoutStyles.from(tokens, theme)),
|
|
16
|
+
}); }, (0, tslib_1.__spreadArray)(['backgroundColor'], tokens_1.layoutStyles.keys, true)),
|
|
17
|
+
content: (0, framework_1.buildProps)(function (tokens, theme) {
|
|
18
|
+
return {
|
|
19
|
+
style: (0, tslib_1.__assign)({ flexGrow: 1, color: tokens.color }, tokens_1.fontStyles.from(tokens, theme)),
|
|
20
|
+
};
|
|
21
|
+
}, (0, tslib_1.__spreadArray)(['color'], tokens_1.fontStyles.keys, true)),
|
|
22
|
+
submenuIndicator: (0, framework_1.buildProps)(function (tokens) {
|
|
23
|
+
return {
|
|
24
|
+
color: tokens.color,
|
|
25
|
+
};
|
|
26
|
+
}, ['color']),
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=MenuItem.styling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItem.styling.js","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.styling.ts"],"names":[],"mappings":";;;;AAAA,8DAAwF;AACxF,wDAAyE;AACzE,mDAAyD;AACzD,mDAAkG;AAErF,QAAA,cAAc,GAA6B,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAEzF,QAAA,eAAe,GAAwE;IAClG,MAAM,EAAE,CAAC,sCAAqB,EAAE,6BAAY,CAAC;IAC7C,MAAM,EAAE,sBAAc;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAA,sBAAU,EACd,UAAC,MAAsB,EAAE,KAAY,IAAK,OAAA,CAAC;YACzC,KAAK,0BACH,UAAU,EAAE,QAAQ,EACpB,eAAe,EAAE,MAAM,CAAC,eAAe,EACvC,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,KAAK,IACjB,qBAAY,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CACpC;SACF,CAAC,EARwC,CAQxC,8BACD,iBAAiB,GAAK,qBAAY,CAAC,IAAI,QACzC;QACD,OAAO,EAAE,IAAA,sBAAU,EACjB,UAAC,MAAsB,EAAE,KAAY;YACnC,OAAO;gBACL,KAAK,0BACH,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,MAAM,CAAC,KAAK,IAChB,mBAAU,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAClC;aACF,CAAC;QACJ,CAAC,8BACA,OAAO,GAAK,mBAAU,CAAC,IAAI,QAC7B;QACD,gBAAgB,EAAE,IAAA,sBAAU,EAC1B,UAAC,MAAsB;YACrB,OAAO;gBACL,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB,CAAC;QACJ,CAAC,EACD,CAAC,OAAO,CAAC,CACV;KACF;CACF,CAAC"}
|