@fluentui/react-toolbar 9.1.4 → 9.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.swcrc +30 -0
- package/CHANGELOG.json +115 -1
- package/CHANGELOG.md +34 -2
- package/lib/Toolbar.js.map +1 -1
- package/lib/ToolbarButton.js.map +1 -1
- package/lib/ToolbarDivider.js.map +1 -1
- package/lib/ToolbarGroup.js.map +1 -1
- package/lib/ToolbarRadioButton.js.map +1 -1
- package/lib/ToolbarRadioGroup.js.map +1 -1
- package/lib/ToolbarToggleButton.js.map +1 -1
- package/lib/components/Toolbar/Toolbar.js.map +1 -1
- package/lib/components/Toolbar/Toolbar.types.js +1 -1
- package/lib/components/Toolbar/Toolbar.types.js.map +1 -1
- package/lib/components/Toolbar/ToolbarContext.js.map +1 -1
- package/lib/components/Toolbar/index.js.map +1 -1
- package/lib/components/Toolbar/renderToolbar.js +1 -3
- package/lib/components/Toolbar/renderToolbar.js.map +1 -1
- package/lib/components/Toolbar/useToolbar.js +1 -0
- package/lib/components/Toolbar/useToolbar.js.map +1 -1
- package/lib/components/Toolbar/useToolbarContextValues.js.map +1 -1
- package/lib/components/Toolbar/useToolbarStyles.js.map +1 -1
- package/lib/components/ToolbarButton/ToolbarButton.js.map +1 -1
- package/lib/components/ToolbarButton/ToolbarButton.types.js.map +1 -1
- package/lib/components/ToolbarButton/index.js.map +1 -1
- package/lib/components/ToolbarButton/useToolbarButton.js +1 -0
- package/lib/components/ToolbarButton/useToolbarButton.js.map +1 -1
- package/lib/components/ToolbarButton/useToolbarButtonStyles.js.map +1 -1
- package/lib/components/ToolbarDivider/ToolbarDivider.js.map +1 -1
- package/lib/components/ToolbarDivider/ToolbarDivider.types.js.map +1 -1
- package/lib/components/ToolbarDivider/index.js.map +1 -1
- package/lib/components/ToolbarDivider/useToolbarDivider.js +1 -0
- package/lib/components/ToolbarDivider/useToolbarDivider.js.map +1 -1
- package/lib/components/ToolbarDivider/useToolbarDividerStyles.js.map +1 -1
- package/lib/components/ToolbarGroup/ToolbarGroup.js.map +1 -1
- package/lib/components/ToolbarGroup/ToolbarGroup.types.js.map +1 -1
- package/lib/components/ToolbarGroup/index.js.map +1 -1
- package/lib/components/ToolbarGroup/renderToolbarGroup.js +1 -3
- package/lib/components/ToolbarGroup/renderToolbarGroup.js.map +1 -1
- package/lib/components/ToolbarGroup/useToolbarGroup.js +1 -0
- package/lib/components/ToolbarGroup/useToolbarGroup.js.map +1 -1
- package/lib/components/ToolbarGroup/useToolbarGroupStyles.js.map +1 -1
- package/lib/components/ToolbarRadioButton/ToolbarRadioButton.js.map +1 -1
- package/lib/components/ToolbarRadioButton/ToolbarRadioButton.types.js.map +1 -1
- package/lib/components/ToolbarRadioButton/index.js.map +1 -1
- package/lib/components/ToolbarRadioButton/useToolbarRadioButton.js +3 -2
- package/lib/components/ToolbarRadioButton/useToolbarRadioButton.js.map +1 -1
- package/lib/components/ToolbarRadioButton/useToolbarRadioButtonStyles.js.map +1 -1
- package/lib/components/ToolbarRadioGroup/ToolbarRadioGroup.js.map +1 -1
- package/lib/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js.map +1 -1
- package/lib/components/ToolbarRadioGroup/index.js.map +1 -1
- package/lib/components/ToolbarToggleButton/ToolbarToggleButton.js.map +1 -1
- package/lib/components/ToolbarToggleButton/ToolbarToggleButton.types.js.map +1 -1
- package/lib/components/ToolbarToggleButton/index.js.map +1 -1
- package/lib/components/ToolbarToggleButton/useToolbarToggleButton.js +3 -2
- package/lib/components/ToolbarToggleButton/useToolbarToggleButton.js.map +1 -1
- package/lib/components/ToolbarToggleButton/useToolbarToggleButtonStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Toolbar.js +5 -4
- package/lib-commonjs/Toolbar.js.map +1 -1
- package/lib-commonjs/ToolbarButton.js +5 -4
- package/lib-commonjs/ToolbarButton.js.map +1 -1
- package/lib-commonjs/ToolbarDivider.js +5 -4
- package/lib-commonjs/ToolbarDivider.js.map +1 -1
- package/lib-commonjs/ToolbarGroup.js +5 -4
- package/lib-commonjs/ToolbarGroup.js.map +1 -1
- package/lib-commonjs/ToolbarRadioButton.js +5 -4
- package/lib-commonjs/ToolbarRadioButton.js.map +1 -1
- package/lib-commonjs/ToolbarRadioGroup.js +5 -4
- package/lib-commonjs/ToolbarRadioGroup.js.map +1 -1
- package/lib-commonjs/ToolbarToggleButton.js +5 -4
- package/lib-commonjs/ToolbarToggleButton.js.map +1 -1
- package/lib-commonjs/components/Toolbar/Toolbar.js +21 -22
- package/lib-commonjs/components/Toolbar/Toolbar.js.map +1 -1
- package/lib-commonjs/components/Toolbar/Toolbar.types.js +5 -2
- package/lib-commonjs/components/Toolbar/Toolbar.types.js.map +1 -1
- package/lib-commonjs/components/Toolbar/ToolbarContext.js +20 -12
- package/lib-commonjs/components/Toolbar/ToolbarContext.js.map +1 -1
- package/lib-commonjs/components/Toolbar/index.js +9 -8
- package/lib-commonjs/components/Toolbar/index.js.map +1 -1
- package/lib-commonjs/components/Toolbar/renderToolbar.js +16 -21
- package/lib-commonjs/components/Toolbar/renderToolbar.js.map +1 -1
- package/lib-commonjs/components/Toolbar/useToolbar.js +101 -109
- package/lib-commonjs/components/Toolbar/useToolbar.js.map +1 -1
- package/lib-commonjs/components/Toolbar/useToolbarContextValues.js +19 -23
- package/lib-commonjs/components/Toolbar/useToolbarContextValues.js.map +1 -1
- package/lib-commonjs/components/Toolbar/useToolbarStyles.js +66 -45
- package/lib-commonjs/components/Toolbar/useToolbarStyles.js.map +1 -1
- package/lib-commonjs/components/ToolbarButton/ToolbarButton.js +19 -22
- package/lib-commonjs/components/ToolbarButton/ToolbarButton.js.map +1 -1
- package/lib-commonjs/components/ToolbarButton/ToolbarButton.types.js +3 -2
- package/lib-commonjs/components/ToolbarButton/ToolbarButton.types.js.map +1 -1
- package/lib-commonjs/components/ToolbarButton/index.js +8 -7
- package/lib-commonjs/components/ToolbarButton/index.js.map +1 -1
- package/lib-commonjs/components/ToolbarButton/useToolbarButton.js +20 -25
- package/lib-commonjs/components/ToolbarButton/useToolbarButton.js.map +1 -1
- package/lib-commonjs/components/ToolbarButton/useToolbarButtonStyles.js +27 -25
- package/lib-commonjs/components/ToolbarButton/useToolbarButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToolbarDivider/ToolbarDivider.js +19 -20
- package/lib-commonjs/components/ToolbarDivider/ToolbarDivider.js.map +1 -1
- package/lib-commonjs/components/ToolbarDivider/ToolbarDivider.types.js +3 -2
- package/lib-commonjs/components/ToolbarDivider/ToolbarDivider.types.js.map +1 -1
- package/lib-commonjs/components/ToolbarDivider/index.js +8 -7
- package/lib-commonjs/components/ToolbarDivider/index.js.map +1 -1
- package/lib-commonjs/components/ToolbarDivider/useToolbarDivider.js +17 -22
- package/lib-commonjs/components/ToolbarDivider/useToolbarDivider.js.map +1 -1
- package/lib-commonjs/components/ToolbarDivider/useToolbarDividerStyles.js +28 -27
- package/lib-commonjs/components/ToolbarDivider/useToolbarDividerStyles.js.map +1 -1
- package/lib-commonjs/components/ToolbarGroup/ToolbarGroup.js +19 -22
- package/lib-commonjs/components/ToolbarGroup/ToolbarGroup.js.map +1 -1
- package/lib-commonjs/components/ToolbarGroup/ToolbarGroup.types.js +3 -2
- package/lib-commonjs/components/ToolbarGroup/ToolbarGroup.types.js.map +1 -1
- package/lib-commonjs/components/ToolbarGroup/index.js +9 -8
- package/lib-commonjs/components/ToolbarGroup/index.js.map +1 -1
- package/lib-commonjs/components/ToolbarGroup/renderToolbarGroup.js +13 -18
- package/lib-commonjs/components/ToolbarGroup/renderToolbarGroup.js.map +1 -1
- package/lib-commonjs/components/ToolbarGroup/useToolbarGroup.js +21 -22
- package/lib-commonjs/components/ToolbarGroup/useToolbarGroup.js.map +1 -1
- package/lib-commonjs/components/ToolbarGroup/useToolbarGroupStyles.js +31 -23
- package/lib-commonjs/components/ToolbarGroup/useToolbarGroupStyles.js.map +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/ToolbarRadioButton.js +19 -20
- package/lib-commonjs/components/ToolbarRadioButton/ToolbarRadioButton.js.map +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/ToolbarRadioButton.types.js +3 -2
- package/lib-commonjs/components/ToolbarRadioButton/ToolbarRadioButton.types.js.map +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/index.js +8 -7
- package/lib-commonjs/components/ToolbarRadioButton/index.js.map +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButton.js +39 -43
- package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButton.js.map +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButtonStyles.js +20 -20
- package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToolbarRadioGroup/ToolbarRadioGroup.js +20 -23
- package/lib-commonjs/components/ToolbarRadioGroup/ToolbarRadioGroup.js.map +1 -1
- package/lib-commonjs/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js +3 -2
- package/lib-commonjs/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js.map +1 -1
- package/lib-commonjs/components/ToolbarRadioGroup/index.js +6 -5
- package/lib-commonjs/components/ToolbarRadioGroup/index.js.map +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/ToolbarToggleButton.js +19 -20
- package/lib-commonjs/components/ToolbarToggleButton/ToolbarToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/ToolbarToggleButton.types.js +3 -2
- package/lib-commonjs/components/ToolbarToggleButton/ToolbarToggleButton.types.js.map +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/index.js +8 -7
- package/lib-commonjs/components/ToolbarToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButton.js +40 -44
- package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButtonStyles.js +20 -20
- package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/index.js +42 -149
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +13 -12
- package/lib-amd/Toolbar.js +0 -6
- package/lib-amd/Toolbar.js.map +0 -1
- package/lib-amd/ToolbarButton.js +0 -6
- package/lib-amd/ToolbarButton.js.map +0 -1
- package/lib-amd/ToolbarDivider.js +0 -6
- package/lib-amd/ToolbarDivider.js.map +0 -1
- package/lib-amd/ToolbarGroup.js +0 -6
- package/lib-amd/ToolbarGroup.js.map +0 -1
- package/lib-amd/ToolbarRadioButton.js +0 -6
- package/lib-amd/ToolbarRadioButton.js.map +0 -1
- package/lib-amd/ToolbarRadioGroup.js +0 -6
- package/lib-amd/ToolbarRadioGroup.js.map +0 -1
- package/lib-amd/ToolbarToggleButton.js +0 -6
- package/lib-amd/ToolbarToggleButton.js.map +0 -1
- package/lib-amd/components/Toolbar/Toolbar.js +0 -18
- package/lib-amd/components/Toolbar/Toolbar.js.map +0 -1
- package/lib-amd/components/Toolbar/Toolbar.types.js +0 -5
- package/lib-amd/components/Toolbar/Toolbar.types.js.map +0 -1
- package/lib-amd/components/Toolbar/ToolbarContext.js +0 -21
- package/lib-amd/components/Toolbar/ToolbarContext.js.map +0 -1
- package/lib-amd/components/Toolbar/index.js +0 -10
- package/lib-amd/components/Toolbar/index.js.map +0 -1
- package/lib-amd/components/Toolbar/renderToolbar.js +0 -15
- package/lib-amd/components/Toolbar/renderToolbar.js.map +0 -1
- package/lib-amd/components/Toolbar/useToolbar.js +0 -85
- package/lib-amd/components/Toolbar/useToolbar.js.map +0 -1
- package/lib-amd/components/Toolbar/useToolbarContextValues.js +0 -19
- package/lib-amd/components/Toolbar/useToolbarContextValues.js.map +0 -1
- package/lib-amd/components/Toolbar/useToolbarStyles.js +0 -38
- package/lib-amd/components/Toolbar/useToolbarStyles.js.map +0 -1
- package/lib-amd/components/ToolbarButton/ToolbarButton.js +0 -19
- package/lib-amd/components/ToolbarButton/ToolbarButton.js.map +0 -1
- package/lib-amd/components/ToolbarButton/ToolbarButton.types.js +0 -5
- package/lib-amd/components/ToolbarButton/ToolbarButton.types.js.map +0 -1
- package/lib-amd/components/ToolbarButton/index.js +0 -9
- package/lib-amd/components/ToolbarButton/index.js.map +0 -1
- package/lib-amd/components/ToolbarButton/useToolbarButton.js +0 -18
- package/lib-amd/components/ToolbarButton/useToolbarButton.js.map +0 -1
- package/lib-amd/components/ToolbarButton/useToolbarButtonStyles.js +0 -26
- package/lib-amd/components/ToolbarButton/useToolbarButtonStyles.js.map +0 -1
- package/lib-amd/components/ToolbarDivider/ToolbarDivider.js +0 -17
- package/lib-amd/components/ToolbarDivider/ToolbarDivider.js.map +0 -1
- package/lib-amd/components/ToolbarDivider/ToolbarDivider.types.js +0 -5
- package/lib-amd/components/ToolbarDivider/ToolbarDivider.types.js.map +0 -1
- package/lib-amd/components/ToolbarDivider/index.js +0 -9
- package/lib-amd/components/ToolbarDivider/index.js.map +0 -1
- package/lib-amd/components/ToolbarDivider/useToolbarDivider.js +0 -20
- package/lib-amd/components/ToolbarDivider/useToolbarDivider.js.map +0 -1
- package/lib-amd/components/ToolbarDivider/useToolbarDividerStyles.js +0 -27
- package/lib-amd/components/ToolbarDivider/useToolbarDividerStyles.js.map +0 -1
- package/lib-amd/components/ToolbarGroup/ToolbarGroup.js +0 -19
- package/lib-amd/components/ToolbarGroup/ToolbarGroup.js.map +0 -1
- package/lib-amd/components/ToolbarGroup/ToolbarGroup.types.js +0 -5
- package/lib-amd/components/ToolbarGroup/ToolbarGroup.types.js.map +0 -1
- package/lib-amd/components/ToolbarGroup/index.js +0 -10
- package/lib-amd/components/ToolbarGroup/index.js.map +0 -1
- package/lib-amd/components/ToolbarGroup/renderToolbarGroup.js +0 -14
- package/lib-amd/components/ToolbarGroup/renderToolbarGroup.js.map +0 -1
- package/lib-amd/components/ToolbarGroup/useToolbarGroup.js +0 -20
- package/lib-amd/components/ToolbarGroup/useToolbarGroup.js.map +0 -1
- package/lib-amd/components/ToolbarGroup/useToolbarGroupStyles.js +0 -24
- package/lib-amd/components/ToolbarGroup/useToolbarGroupStyles.js.map +0 -1
- package/lib-amd/components/ToolbarRadioButton/ToolbarRadioButton.js +0 -17
- package/lib-amd/components/ToolbarRadioButton/ToolbarRadioButton.js.map +0 -1
- package/lib-amd/components/ToolbarRadioButton/ToolbarRadioButton.types.js +0 -5
- package/lib-amd/components/ToolbarRadioButton/ToolbarRadioButton.types.js.map +0 -1
- package/lib-amd/components/ToolbarRadioButton/index.js +0 -9
- package/lib-amd/components/ToolbarRadioButton/index.js.map +0 -1
- package/lib-amd/components/ToolbarRadioButton/useToolbarRadioButton.js +0 -28
- package/lib-amd/components/ToolbarRadioButton/useToolbarRadioButton.js.map +0 -1
- package/lib-amd/components/ToolbarRadioButton/useToolbarRadioButtonStyles.js +0 -20
- package/lib-amd/components/ToolbarRadioButton/useToolbarRadioButtonStyles.js.map +0 -1
- package/lib-amd/components/ToolbarRadioGroup/ToolbarRadioGroup.js +0 -19
- package/lib-amd/components/ToolbarRadioGroup/ToolbarRadioGroup.js.map +0 -1
- package/lib-amd/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js +0 -5
- package/lib-amd/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js.map +0 -1
- package/lib-amd/components/ToolbarRadioGroup/index.js +0 -7
- package/lib-amd/components/ToolbarRadioGroup/index.js.map +0 -1
- package/lib-amd/components/ToolbarToggleButton/ToolbarToggleButton.js +0 -17
- package/lib-amd/components/ToolbarToggleButton/ToolbarToggleButton.js.map +0 -1
- package/lib-amd/components/ToolbarToggleButton/ToolbarToggleButton.types.js +0 -5
- package/lib-amd/components/ToolbarToggleButton/ToolbarToggleButton.types.js.map +0 -1
- package/lib-amd/components/ToolbarToggleButton/index.js +0 -9
- package/lib-amd/components/ToolbarToggleButton/index.js.map +0 -1
- package/lib-amd/components/ToolbarToggleButton/useToolbarToggleButton.js +0 -32
- package/lib-amd/components/ToolbarToggleButton/useToolbarToggleButton.js.map +0 -1
- package/lib-amd/components/ToolbarToggleButton/useToolbarToggleButtonStyles.js +0 -20
- package/lib-amd/components/ToolbarToggleButton/useToolbarToggleButtonStyles.js.map +0 -1
- package/lib-amd/index.js +0 -29
- package/lib-amd/index.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
|
6
|
+
_exportStar(require("./ToolbarButton"), exports);
|
|
7
|
+
_exportStar(require("./ToolbarButton.types"), exports);
|
|
8
|
+
_exportStar(require("./useToolbarButton"), exports);
|
|
9
|
+
_exportStar(require("./useToolbarButtonStyles"), exports);
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
11
|
+
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarButton/index.js"],"sourcesContent":["export * from './ToolbarButton';\nexport * from './ToolbarButton.types';\nexport * from './useToolbarButton';\nexport * from './useToolbarButtonStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;CACd,iCAAiC"}
|
|
@@ -1,29 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useToolbarButton_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>useToolbarButton_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...buttonProps
|
|
22
|
-
}, ref);
|
|
23
|
-
return {
|
|
24
|
-
vertical,
|
|
25
|
-
...state
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
exports.useToolbarButton_unstable = useToolbarButton_unstable;
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactButton = require("@fluentui/react-button");
|
|
12
|
+
const useToolbarButton_unstable = (props, ref)=>{
|
|
13
|
+
const { vertical =false , ...buttonProps } = props;
|
|
14
|
+
const state = (0, _reactButton.useButton_unstable)({
|
|
15
|
+
appearance: 'subtle',
|
|
16
|
+
...buttonProps
|
|
17
|
+
}, ref);
|
|
18
|
+
return {
|
|
19
|
+
vertical,
|
|
20
|
+
...state
|
|
21
|
+
};
|
|
22
|
+
}; //# sourceMappingURL=useToolbarButton.js.map
|
|
23
|
+
|
|
29
24
|
//# sourceMappingURL=useToolbarButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarButton/useToolbarButton.js"],"sourcesContent":["import * as React from 'react';\nimport { useButton_unstable } from '@fluentui/react-button';\n/**\n * Given user props, defines default props for the Button, calls useButtonState and useChecked, and returns\n * processed state.\n * @param props - User provided props to the Button component.\n * @param ref - User provided ref to be passed to the Button component.\n */\nexport const useToolbarButton_unstable = (props, ref) => {\n const {\n vertical = false,\n ...buttonProps\n } = props;\n const state = useButton_unstable({\n appearance: 'subtle',\n ...buttonProps\n }, ref);\n return {\n vertical,\n ...state\n };\n};\n//# sourceMappingURL=useToolbarButton.js.map"],"names":["useToolbarButton_unstable","props","ref","vertical","buttonProps","state","useButton_unstable","appearance"],"mappings":";;;;+BAQaA;;aAAAA;;;6DARU;6BACY;AAO5B,MAAMA,4BAA4B,CAACC,OAAOC,MAAQ;IACvD,MAAM,EACJC,UAAW,KAAK,CAAA,EAChB,GAAGC,aACJ,GAAGH;IACJ,MAAMI,QAAQC,IAAAA,+BAAkB,EAAC;QAC/BC,YAAY;QACZ,GAAGH,WAAW;IAChB,GAAGF;IACH,OAAO;QACLC;QACA,GAAGE,KAAK;IACV;AACF,GACA,4CAA4C"}
|
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useToolbarButtonStyles_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>useToolbarButtonStyles_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
9
|
+
const _react = require("@griffel/react");
|
|
10
|
+
const _reactButton = require("@fluentui/react-button");
|
|
11
|
+
const useBaseStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
|
12
|
+
vertical: {
|
|
13
|
+
Beiy3e4: "f1vx9l62"
|
|
14
|
+
},
|
|
15
|
+
verticalIcon: {
|
|
16
|
+
Be2twd7: "f1rt2boy"
|
|
17
|
+
}
|
|
16
18
|
}, {
|
|
17
|
-
|
|
19
|
+
d: [
|
|
20
|
+
".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",
|
|
21
|
+
".f1rt2boy{font-size:24px;}"
|
|
22
|
+
]
|
|
18
23
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.useToolbarButtonStyles_unstable = useToolbarButtonStyles_unstable;
|
|
24
|
+
const useToolbarButtonStyles_unstable = (state)=>{
|
|
25
|
+
(0, _reactButton.useButtonStyles_unstable)(state);
|
|
26
|
+
const buttonStyles = useBaseStyles();
|
|
27
|
+
state.root.className = (0, _react.mergeClasses)(state.root.className, state.vertical && buttonStyles.vertical);
|
|
28
|
+
if (state.icon) {
|
|
29
|
+
state.icon.className = (0, _react.mergeClasses)(state.icon.className, state.vertical && buttonStyles.verticalIcon);
|
|
30
|
+
}
|
|
31
|
+
}; //# sourceMappingURL=useToolbarButtonStyles.js.map
|
|
32
|
+
|
|
31
33
|
//# sourceMappingURL=useToolbarButtonStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarButton/useToolbarButtonStyles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nimport { useButtonStyles_unstable } from '@fluentui/react-button';\nconst useBaseStyles = /*#__PURE__*/__styles({\n vertical: {\n Beiy3e4: \"f1vx9l62\"\n },\n verticalIcon: {\n Be2twd7: \"f1rt2boy\"\n }\n}, {\n d: [\".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}\", \".f1rt2boy{font-size:24px;}\"]\n});\n/**\n * Apply styling to the ToolbarButton slots based on the state\n */\nexport const useToolbarButtonStyles_unstable = state => {\n useButtonStyles_unstable(state);\n const buttonStyles = useBaseStyles();\n state.root.className = mergeClasses(state.root.className, state.vertical && buttonStyles.vertical);\n if (state.icon) {\n state.icon.className = mergeClasses(state.icon.className, state.vertical && buttonStyles.verticalIcon);\n }\n};\n//# sourceMappingURL=useToolbarButtonStyles.js.map"],"names":["useToolbarButtonStyles_unstable","useBaseStyles","__styles","vertical","Beiy3e4","verticalIcon","Be2twd7","d","state","useButtonStyles_unstable","buttonStyles","root","className","mergeClasses","icon"],"mappings":";;;;+BAeaA;;aAAAA;;uBAf0B;6BACE;AACzC,MAAMC,gBAAgB,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IAC1CC,UAAU;QACRC,SAAS;IACX;IACAC,cAAc;QACZC,SAAS;IACX;AACF,GAAG;IACDC,GAAG;QAAC;QAA6F;KAA6B;AAChI;AAIO,MAAMP,kCAAkCQ,CAAAA,QAAS;IACtDC,IAAAA,qCAAwB,EAACD;IACzB,MAAME,eAAeT;IACrBO,MAAMG,IAAI,CAACC,SAAS,GAAGC,IAAAA,mBAAY,EAACL,MAAMG,IAAI,CAACC,SAAS,EAAEJ,MAAML,QAAQ,IAAIO,aAAaP,QAAQ;IACjG,IAAIK,MAAMM,IAAI,EAAE;QACdN,MAAMM,IAAI,CAACF,SAAS,GAAGC,IAAAA,mBAAY,EAACL,MAAMM,IAAI,CAACF,SAAS,EAAEJ,MAAML,QAAQ,IAAIO,aAAaL,YAAY;IACvG,CAAC;AACH,GACA,kDAAkD"}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "ToolbarDivider", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>ToolbarDivider
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
useToolbarDividerStyles_unstable: useCustomStyles
|
|
20
|
-
} = react_shared_contexts_1.useCustomStyleHooks_unstable();
|
|
21
|
-
useCustomStyles(state);
|
|
22
|
-
return react_divider_1.renderDivider_unstable(state);
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _useToolbarDividerStyles = require("./useToolbarDividerStyles");
|
|
12
|
+
const _reactDivider = require("@fluentui/react-divider");
|
|
13
|
+
const _useToolbarDivider = require("./useToolbarDivider");
|
|
14
|
+
const _reactSharedContexts = require("@fluentui/react-shared-contexts");
|
|
15
|
+
const ToolbarDivider = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
16
|
+
const state = (0, _useToolbarDivider.useToolbarDivider_unstable)(props, ref);
|
|
17
|
+
(0, _useToolbarDividerStyles.useToolbarDividerStyles_unstable)(state);
|
|
18
|
+
const { useToolbarDividerStyles_unstable: useCustomStyles } = (0, _reactSharedContexts.useCustomStyleHooks_unstable)();
|
|
19
|
+
useCustomStyles(state);
|
|
20
|
+
return (0, _reactDivider.renderDivider_unstable)(state);
|
|
23
21
|
});
|
|
24
|
-
|
|
22
|
+
ToolbarDivider.displayName = 'ToolbarDivider'; //# sourceMappingURL=ToolbarDivider.js.map
|
|
23
|
+
|
|
25
24
|
//# sourceMappingURL=ToolbarDivider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarDivider/ToolbarDivider.js"],"sourcesContent":["import * as React from 'react';\nimport { useToolbarDividerStyles_unstable } from './useToolbarDividerStyles';\nimport { renderDivider_unstable } from '@fluentui/react-divider';\nimport { useToolbarDivider_unstable } from './useToolbarDivider';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n/**\n * ToolbarDivider component\n */\nexport const ToolbarDivider = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useToolbarDivider_unstable(props, ref);\n useToolbarDividerStyles_unstable(state);\n const {\n useToolbarDividerStyles_unstable: useCustomStyles\n } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n return renderDivider_unstable(state);\n});\nToolbarDivider.displayName = 'ToolbarDivider';\n//# sourceMappingURL=ToolbarDivider.js.map"],"names":["ToolbarDivider","React","forwardRef","props","ref","state","useToolbarDivider_unstable","useToolbarDividerStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderDivider_unstable","displayName"],"mappings":";;;;+BAQaA;;aAAAA;;;6DARU;yCAC0B;8BACV;mCACI;qCACE;AAItC,MAAMA,iBAAiB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IAC1E,MAAMC,QAAQC,IAAAA,6CAA0B,EAACH,OAAOC;IAChDG,IAAAA,yDAAgC,EAACF;IACjC,MAAM,EACJE,kCAAkCC,gBAAe,EAClD,GAAGC,IAAAA,iDAA4B;IAChCD,gBAAgBH;IAChB,OAAOK,IAAAA,oCAAsB,EAACL;AAChC;AACAL,eAAeW,WAAW,GAAG,kBAC7B,0CAA0C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarDivider/ToolbarDivider.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=ToolbarDivider.types.js.map"],"names":[],"mappings":";;;;CACA,gDAAgD"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
|
6
|
+
_exportStar(require("./ToolbarDivider"), exports);
|
|
7
|
+
_exportStar(require("./ToolbarDivider.types"), exports);
|
|
8
|
+
_exportStar(require("./useToolbarDividerStyles"), exports);
|
|
9
|
+
_exportStar(require("./useToolbarDivider"), exports);
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
11
|
+
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarDivider/index.js"],"sourcesContent":["export * from './ToolbarDivider';\nexport * from './ToolbarDivider.types';\nexport * from './useToolbarDividerStyles';\nexport * from './useToolbarDivider';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;CACd,iCAAiC"}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useToolbarDivider_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>useToolbarDivider_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const useToolbarDivider_unstable = (props, ref) => {
|
|
19
|
-
const vertical = ToolbarContext_1.useToolbarContext_unstable(ctx => ctx.vertical);
|
|
20
|
-
return react_divider_1.useDivider_unstable({
|
|
21
|
-
vertical: !vertical,
|
|
22
|
-
...props
|
|
23
|
-
}, ref);
|
|
24
|
-
};
|
|
25
|
-
exports.useToolbarDivider_unstable = useToolbarDivider_unstable;
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactDivider = require("@fluentui/react-divider");
|
|
12
|
+
const _toolbarContext = require("../Toolbar/ToolbarContext");
|
|
13
|
+
const useToolbarDivider_unstable = (props, ref)=>{
|
|
14
|
+
const vertical = (0, _toolbarContext.useToolbarContext_unstable)((ctx)=>ctx.vertical);
|
|
15
|
+
return (0, _reactDivider.useDivider_unstable)({
|
|
16
|
+
vertical: !vertical,
|
|
17
|
+
...props
|
|
18
|
+
}, ref);
|
|
19
|
+
}; //# sourceMappingURL=useToolbarDivider.js.map
|
|
20
|
+
|
|
26
21
|
//# sourceMappingURL=useToolbarDivider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarDivider/useToolbarDivider.js"],"sourcesContent":["import * as React from 'react';\nimport { useDivider_unstable } from '@fluentui/react-divider';\nimport { useToolbarContext_unstable } from '../Toolbar/ToolbarContext';\n/**\n * Create the state required to render ToolbarDivider.\n *\n * The returned state can be modified with hooks such as useToolbarDividerStyles_unstable,\n * before being passed to renderToolbar_unstable.\n *\n * @param props - props from this instance of ToolbarDivider\n * @param ref - reference to root HTMLElement of ToolbarDivider\n */\nexport const useToolbarDivider_unstable = (props, ref) => {\n const vertical = useToolbarContext_unstable(ctx => ctx.vertical);\n return useDivider_unstable({\n vertical: !vertical,\n ...props\n }, ref);\n};\n//# sourceMappingURL=useToolbarDivider.js.map"],"names":["useToolbarDivider_unstable","props","ref","vertical","useToolbarContext_unstable","ctx","useDivider_unstable"],"mappings":";;;;+BAYaA;;aAAAA;;;6DAZU;8BACa;gCACO;AAUpC,MAAMA,6BAA6B,CAACC,OAAOC,MAAQ;IACxD,MAAMC,WAAWC,IAAAA,0CAA0B,EAACC,CAAAA,MAAOA,IAAIF,QAAQ;IAC/D,OAAOG,IAAAA,iCAAmB,EAAC;QACzBH,UAAU,CAACA;QACX,GAAGF,KAAK;IACV,GAAGC;AACL,GACA,6CAA6C"}
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useToolbarDividerStyles_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>useToolbarDividerStyles_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
9
|
+
const _react = require("@griffel/react");
|
|
10
|
+
const _reactDivider = require("@fluentui/react-divider");
|
|
11
|
+
const useBaseStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
|
12
|
+
root: {
|
|
13
|
+
mc9l5x: "ftuwxu6",
|
|
14
|
+
B2u0y6b: "f1lwjmbk"
|
|
15
|
+
},
|
|
16
|
+
vertical: {
|
|
17
|
+
B2u0y6b: "fe668z"
|
|
18
|
+
}
|
|
17
19
|
}, {
|
|
18
|
-
|
|
20
|
+
d: [
|
|
21
|
+
".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}",
|
|
22
|
+
".f1lwjmbk{max-width:1px;}",
|
|
23
|
+
".fe668z{max-width:initial;}"
|
|
24
|
+
]
|
|
19
25
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const toolbarDividerStyles = useBaseStyles();
|
|
29
|
-
state.root.className = react_1.mergeClasses(state.root.className, toolbarDividerStyles.root, !vertical && toolbarDividerStyles.vertical);
|
|
30
|
-
return state;
|
|
31
|
-
};
|
|
32
|
-
exports.useToolbarDividerStyles_unstable = useToolbarDividerStyles_unstable;
|
|
26
|
+
const useToolbarDividerStyles_unstable = (state)=>{
|
|
27
|
+
(0, _reactDivider.useDividerStyles_unstable)(state);
|
|
28
|
+
const { vertical } = state;
|
|
29
|
+
const toolbarDividerStyles = useBaseStyles();
|
|
30
|
+
state.root.className = (0, _react.mergeClasses)(state.root.className, toolbarDividerStyles.root, !vertical && toolbarDividerStyles.vertical);
|
|
31
|
+
return state;
|
|
32
|
+
}; //# sourceMappingURL=useToolbarDividerStyles.js.map
|
|
33
|
+
|
|
33
34
|
//# sourceMappingURL=useToolbarDividerStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarDivider/useToolbarDividerStyles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nimport { useDividerStyles_unstable } from '@fluentui/react-divider';\nconst useBaseStyles = /*#__PURE__*/__styles({\n root: {\n mc9l5x: \"ftuwxu6\",\n B2u0y6b: \"f1lwjmbk\"\n },\n vertical: {\n B2u0y6b: \"fe668z\"\n }\n}, {\n d: [\".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}\", \".f1lwjmbk{max-width:1px;}\", \".fe668z{max-width:initial;}\"]\n});\n/**\n * Apply styling to the ToolbarDivider slots based on the state\n */\nexport const useToolbarDividerStyles_unstable = state => {\n useDividerStyles_unstable(state);\n const {\n vertical\n } = state;\n const toolbarDividerStyles = useBaseStyles();\n state.root.className = mergeClasses(state.root.className, toolbarDividerStyles.root, !vertical && toolbarDividerStyles.vertical);\n return state;\n};\n//# sourceMappingURL=useToolbarDividerStyles.js.map"],"names":["useToolbarDividerStyles_unstable","useBaseStyles","__styles","root","mc9l5x","B2u0y6b","vertical","d","state","useDividerStyles_unstable","toolbarDividerStyles","className","mergeClasses"],"mappings":";;;;+BAgBaA;;aAAAA;;uBAhB0B;8BACG;AAC1C,MAAMC,gBAAgB,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IAC1CC,MAAM;QACJC,QAAQ;QACRC,SAAS;IACX;IACAC,UAAU;QACRD,SAAS;IACX;AACF,GAAG;IACDE,GAAG;QAAC;QAAoH;QAA6B;KAA8B;AACrL;AAIO,MAAMP,mCAAmCQ,CAAAA,QAAS;IACvDC,IAAAA,uCAAyB,EAACD;IAC1B,MAAM,EACJF,SAAQ,EACT,GAAGE;IACJ,MAAME,uBAAuBT;IAC7BO,MAAML,IAAI,CAACQ,SAAS,GAAGC,IAAAA,mBAAY,EAACJ,MAAML,IAAI,CAACQ,SAAS,EAAED,qBAAqBP,IAAI,EAAE,CAACG,YAAYI,qBAAqBJ,QAAQ;IAC/H,OAAOE;AACT,GACA,mDAAmD"}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "ToolbarGroup", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>ToolbarGroup
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const {
|
|
20
|
-
useToolbarGroupStyles_unstable: useCustomStyles
|
|
21
|
-
} = react_shared_contexts_1.useCustomStyleHooks_unstable();
|
|
22
|
-
useCustomStyles(state);
|
|
23
|
-
return renderToolbarGroup_1.renderToolbarGroup_unstable(state);
|
|
24
|
-
// Casting is required due to lack of distributive union to support unions on @types/react
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _useToolbarGroup = require("./useToolbarGroup");
|
|
12
|
+
const _useToolbarGroupStyles = require("./useToolbarGroupStyles");
|
|
13
|
+
const _renderToolbarGroup = require("./renderToolbarGroup");
|
|
14
|
+
const _reactSharedContexts = require("@fluentui/react-shared-contexts");
|
|
15
|
+
const ToolbarGroup = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
16
|
+
const state = (0, _useToolbarGroup.useToolbarGroup_unstable)(props, ref);
|
|
17
|
+
(0, _useToolbarGroupStyles.useToolbarGroupStyles_unstable)(state);
|
|
18
|
+
const { useToolbarGroupStyles_unstable: useCustomStyles } = (0, _reactSharedContexts.useCustomStyleHooks_unstable)();
|
|
19
|
+
useCustomStyles(state);
|
|
20
|
+
return (0, _renderToolbarGroup.renderToolbarGroup_unstable)(state);
|
|
21
|
+
// Casting is required due to lack of distributive union to support unions on @types/react
|
|
25
22
|
});
|
|
23
|
+
ToolbarGroup.displayName = 'ToolbarGroup'; //# sourceMappingURL=ToolbarGroup.js.map
|
|
26
24
|
|
|
27
|
-
exports.ToolbarGroup.displayName = 'ToolbarGroup';
|
|
28
25
|
//# sourceMappingURL=ToolbarGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarGroup/ToolbarGroup.js"],"sourcesContent":["import * as React from 'react';\nimport { useToolbarGroup_unstable } from './useToolbarGroup';\nimport { useToolbarGroupStyles_unstable } from './useToolbarGroupStyles';\nimport { renderToolbarGroup_unstable } from './renderToolbarGroup';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n/**\n * ToolbarGroup component is a Button to be used inside Toolbar\n * which will respect toolbar props such as `size`\n */\nexport const ToolbarGroup = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useToolbarGroup_unstable(props, ref);\n useToolbarGroupStyles_unstable(state);\n const {\n useToolbarGroupStyles_unstable: useCustomStyles\n } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n return renderToolbarGroup_unstable(state);\n // Casting is required due to lack of distributive union to support unions on @types/react\n});\n\nToolbarGroup.displayName = 'ToolbarGroup';\n//# sourceMappingURL=ToolbarGroup.js.map"],"names":["ToolbarGroup","React","forwardRef","props","ref","state","useToolbarGroup_unstable","useToolbarGroupStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderToolbarGroup_unstable","displayName"],"mappings":";;;;+BASaA;;aAAAA;;;6DATU;iCACkB;uCACM;oCACH;qCACC;AAKtC,MAAMA,eAAe,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACxE,MAAMC,QAAQC,IAAAA,yCAAwB,EAACH,OAAOC;IAC9CG,IAAAA,qDAA8B,EAACF;IAC/B,MAAM,EACJE,gCAAgCC,gBAAe,EAChD,GAAGC,IAAAA,iDAA4B;IAChCD,gBAAgBH;IAChB,OAAOK,IAAAA,+CAA2B,EAACL;AACnC,0FAA0F;AAC5F;AAEAL,aAAaW,WAAW,GAAG,gBAC3B,wCAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarGroup/ToolbarGroup.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=ToolbarGroup.types.js.map"],"names":[],"mappings":";;;;CACA,8CAA8C"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
|
6
|
+
_exportStar(require("./ToolbarGroup"), exports);
|
|
7
|
+
_exportStar(require("./ToolbarGroup.types"), exports);
|
|
8
|
+
_exportStar(require("./useToolbarGroup"), exports);
|
|
9
|
+
_exportStar(require("./useToolbarGroupStyles"), exports);
|
|
10
|
+
_exportStar(require("./renderToolbarGroup"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
12
|
+
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarGroup/index.js"],"sourcesContent":["export * from './ToolbarGroup';\nexport * from './ToolbarGroup.types';\nexport * from './useToolbarGroup';\nexport * from './useToolbarGroupStyles';\nexport * from './renderToolbarGroup';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA;CACd,iCAAiC"}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderToolbarGroup_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>renderToolbarGroup_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
slots,
|
|
15
|
-
slotProps
|
|
16
|
-
} = react_utilities_1.getSlots(state);
|
|
17
|
-
return React.createElement(slots.root, {
|
|
18
|
-
...slotProps.root
|
|
19
|
-
}, slotProps.root.children);
|
|
20
|
-
};
|
|
21
|
-
exports.renderToolbarGroup_unstable = renderToolbarGroup_unstable;
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
|
12
|
+
const renderToolbarGroup_unstable = (state)=>{
|
|
13
|
+
const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
|
|
14
|
+
return /*#__PURE__*/ _react.createElement(slots.root, slotProps.root, slotProps.root.children);
|
|
15
|
+
}; //# sourceMappingURL=renderToolbarGroup.js.map
|
|
16
|
+
|
|
22
17
|
//# sourceMappingURL=renderToolbarGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/ToolbarGroup/renderToolbarGroup.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of ToolbarGroup\n */\nexport const renderToolbarGroup_unstable = state => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n return /*#__PURE__*/React.createElement(slots.root, slotProps.root, slotProps.root.children);\n};\n//# sourceMappingURL=renderToolbarGroup.js.map"],"names":["renderToolbarGroup_unstable","state","slots","slotProps","getSlots","React","createElement","root","children"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;gCACE;AAIlB,MAAMA,8BAA8BC,CAAAA,QAAS;IAClD,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACH;IACb,OAAO,WAAW,GAAEI,OAAMC,aAAa,CAACJ,MAAMK,IAAI,EAAEJ,UAAUI,IAAI,EAAEJ,UAAUI,IAAI,CAACC,QAAQ;AAC7F,GACA,8CAA8C"}
|