@fluentui/react-button 9.0.0-beta.1 → 9.0.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/CHANGELOG.json +275 -1
  2. package/CHANGELOG.md +67 -2
  3. package/dist/react-button.d.ts +15 -2
  4. package/lib/common/isConformant.js +1 -1
  5. package/lib/common/isConformant.js.map +1 -1
  6. package/lib/components/Button/Button.js +2 -2
  7. package/lib/components/Button/Button.js.map +1 -1
  8. package/lib/components/Button/Button.types.d.ts +1 -1
  9. package/lib/components/Button/index.d.ts +1 -1
  10. package/lib/components/Button/index.js +1 -1
  11. package/lib/components/Button/index.js.map +1 -1
  12. package/lib/components/Button/renderButton.js +10 -9
  13. package/lib/components/Button/renderButton.js.map +1 -1
  14. package/lib/components/Button/useButton.js +20 -24
  15. package/lib/components/Button/useButton.js.map +1 -1
  16. package/lib/components/Button/useButtonStyles.d.ts +1 -0
  17. package/lib/components/Button/useButtonStyles.js +27 -24
  18. package/lib/components/Button/useButtonStyles.js.map +1 -1
  19. package/lib/components/CompoundButton/CompoundButton.js +2 -2
  20. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  21. package/lib/components/CompoundButton/index.d.ts +1 -1
  22. package/lib/components/CompoundButton/index.js +1 -1
  23. package/lib/components/CompoundButton/index.js.map +1 -1
  24. package/lib/components/CompoundButton/renderCompoundButton.js +10 -9
  25. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  26. package/lib/components/CompoundButton/useCompoundButton.js +8 -8
  27. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  28. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -0
  29. package/lib/components/CompoundButton/useCompoundButtonStyles.js +40 -37
  30. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  31. package/lib/components/MenuButton/MenuButton.js +2 -2
  32. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  33. package/lib/components/MenuButton/MenuButton.types.d.ts +5 -1
  34. package/lib/components/MenuButton/index.d.ts +1 -1
  35. package/lib/components/MenuButton/index.js +1 -1
  36. package/lib/components/MenuButton/index.js.map +1 -1
  37. package/lib/components/MenuButton/renderMenuButton.js +10 -9
  38. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  39. package/lib/components/MenuButton/useMenuButton.js +8 -8
  40. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  41. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -0
  42. package/lib/components/MenuButton/useMenuButtonStyles.js +5 -3
  43. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  44. package/lib/components/SplitButton/SplitButton.js +2 -2
  45. package/lib/components/SplitButton/SplitButton.js.map +1 -1
  46. package/lib/components/SplitButton/index.d.ts +1 -1
  47. package/lib/components/SplitButton/index.js +1 -1
  48. package/lib/components/SplitButton/index.js.map +1 -1
  49. package/lib/components/SplitButton/renderSplitButton.js +6 -7
  50. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  51. package/lib/components/SplitButton/useSplitButton.js +41 -45
  52. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  53. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -0
  54. package/lib/components/SplitButton/useSplitButtonStyles.js +36 -33
  55. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  56. package/lib/components/ToggleButton/ToggleButton.js +2 -2
  57. package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
  58. package/lib/components/ToggleButton/index.d.ts +1 -1
  59. package/lib/components/ToggleButton/index.js +1 -1
  60. package/lib/components/ToggleButton/index.js.map +1 -1
  61. package/lib/components/ToggleButton/useToggleButton.js +27 -29
  62. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  63. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -0
  64. package/lib/components/ToggleButton/useToggleButtonStyles.js +13 -10
  65. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  66. package/lib-commonjs/Button.js +1 -1
  67. package/lib-commonjs/CompoundButton.js +1 -1
  68. package/lib-commonjs/MenuButton.js +1 -1
  69. package/lib-commonjs/SplitButton.js +1 -1
  70. package/lib-commonjs/ToggleButton.js +1 -1
  71. package/lib-commonjs/common/isConformant.js +3 -3
  72. package/lib-commonjs/common/isConformant.js.map +1 -1
  73. package/lib-commonjs/components/Button/Button.js +6 -6
  74. package/lib-commonjs/components/Button/Button.js.map +1 -1
  75. package/lib-commonjs/components/Button/Button.types.d.ts +1 -1
  76. package/lib-commonjs/components/Button/index.d.ts +1 -1
  77. package/lib-commonjs/components/Button/index.js +8 -2
  78. package/lib-commonjs/components/Button/index.js.map +1 -1
  79. package/lib-commonjs/components/Button/renderButton.js +12 -12
  80. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  81. package/lib-commonjs/components/Button/useButton.js +22 -26
  82. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  83. package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -0
  84. package/lib-commonjs/components/Button/useButtonStyles.js +29 -26
  85. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  86. package/lib-commonjs/components/CompoundButton/CompoundButton.js +6 -6
  87. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  88. package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
  89. package/lib-commonjs/components/CompoundButton/index.js +8 -2
  90. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  91. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +12 -12
  92. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  93. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +10 -11
  94. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  95. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -0
  96. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +43 -40
  97. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  98. package/lib-commonjs/components/MenuButton/MenuButton.js +6 -6
  99. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
  100. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +5 -1
  101. package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
  102. package/lib-commonjs/components/MenuButton/index.js +8 -2
  103. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  104. package/lib-commonjs/components/MenuButton/renderMenuButton.js +12 -12
  105. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  106. package/lib-commonjs/components/MenuButton/useMenuButton.js +12 -13
  107. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  108. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -0
  109. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +9 -6
  110. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  111. package/lib-commonjs/components/SplitButton/SplitButton.js +6 -6
  112. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
  113. package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
  114. package/lib-commonjs/components/SplitButton/index.js +8 -2
  115. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  116. package/lib-commonjs/components/SplitButton/renderSplitButton.js +8 -10
  117. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  118. package/lib-commonjs/components/SplitButton/useSplitButton.js +44 -49
  119. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  120. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -0
  121. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +39 -36
  122. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  123. package/lib-commonjs/components/ToggleButton/ToggleButton.js +6 -6
  124. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
  125. package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
  126. package/lib-commonjs/components/ToggleButton/index.js +8 -2
  127. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  128. package/lib-commonjs/components/ToggleButton/useToggleButton.js +31 -34
  129. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  130. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -0
  131. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +17 -13
  132. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  133. package/lib-commonjs/index.js +1 -1
  134. package/package.json +9 -11
@@ -3,39 +3,40 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useCompoundButtonStyles = void 0;
6
+ exports.useCompoundButtonStyles = exports.compoundButtonClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
9
 
10
- var useButtonStyles_1 = /*#__PURE__*/require("../Button/useButtonStyles");
10
+ const useButtonStyles_1 = /*#__PURE__*/require("../Button/useButtonStyles");
11
11
 
12
- var CompoundButtonClassNames = {
13
- secondaryContent: 'CompoundButton-secondaryContent'
12
+ exports.compoundButtonClassName = 'fui-CompoundButton';
13
+ const CompoundButtonClassNames = {
14
+ secondaryContent: `${exports.compoundButtonClassName}-secondaryContent`
14
15
  };
15
16
 
16
- var useRootStyles = /*#__PURE__*/react_make_styles_1.__styles({
17
+ const useRootStyles = /*#__PURE__*/react_make_styles_1.__styles({
17
18
  "base": {
18
19
  "rmohyg": "fsbu5mz",
19
20
  "Bqenvij": "f11ysow2",
20
- "Bekya5a": "f1smw4j4",
21
- "Bi863bl": "f1b73140",
22
- "B7j81dy": "f19sbf7w"
21
+ "Bma4kx5": "f900oq5",
22
+ "l15nfm": "f8rpug0",
23
+ "n4n7rj": "fre7xro"
23
24
  },
24
25
  "outline": {},
25
26
  "primary": {
26
- "Bekya5a": "f1wrmfx5",
27
- "Bi863bl": "fl6im4w",
28
- "B7j81dy": "f1y0ndy"
27
+ "Bma4kx5": "f1ur7rb7",
28
+ "l15nfm": "f1itoici",
29
+ "n4n7rj": "f1uen3ov"
29
30
  },
30
31
  "subtle": {
31
- "Bekya5a": "f1smw4j4",
32
- "Bi863bl": "f182e9fe",
33
- "B7j81dy": "fdrkfd0"
32
+ "Bma4kx5": "f900oq5",
33
+ "l15nfm": "f1l9nom2",
34
+ "n4n7rj": "fvjq8kx"
34
35
  },
35
36
  "transparent": {
36
- "Bekya5a": "f1smw4j4",
37
- "Bi863bl": "f182e9fe",
38
- "B7j81dy": "fdrkfd0"
37
+ "Bma4kx5": "f900oq5",
38
+ "l15nfm": "f1l9nom2",
39
+ "n4n7rj": "fvjq8kx"
39
40
  },
40
41
  "small": {
41
42
  "z8tnut": "fp9bwmr",
@@ -62,17 +63,17 @@ var useRootStyles = /*#__PURE__*/react_make_styles_1.__styles({
62
63
  "Bg96gwp": "faaz57k"
63
64
  },
64
65
  "disabled": {
65
- "Bekya5a": "f1ygg8x6",
66
- "Bi863bl": "fhtktt2",
67
- "B7j81dy": "f1v2jbe6"
66
+ "Bma4kx5": "fj9njph",
67
+ "l15nfm": "fr13fpv",
68
+ "n4n7rj": "f1xrf5v0"
68
69
  }
69
70
  }, {
70
- "d": [".fsbu5mz{gap:12px;}", ".f11ysow2{height:auto;}", ".f1smw4j4 .CompoundButton-secondaryContent{color:var(--colorNeutralForeground2);}", ".f1wrmfx5 .CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".fp9bwmr{padding-top:8px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f150uoa4{padding-bottom:8px;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1ygg8x6 .CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"],
71
- "h": [".f1b73140:hover .CompoundButton-secondaryContent{color:var(--colorNeutralForeground2Hover);}", ".fl6im4w:hover .CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".f182e9fe:hover .CompoundButton-secondaryContent{color:var(--colorNeutralForeground2BrandHover);}", ".fhtktt2:hover .CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"],
72
- "a": [".f19sbf7w:active .CompoundButton-secondaryContent{color:var(--colorNeutralForeground2Pressed);}", ".f1y0ndy:active .CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".fdrkfd0:active .CompoundButton-secondaryContent{color:var(--colorNeutralForeground2BrandPressed);}", ".f1v2jbe6:active .CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"]
71
+ "d": [".fsbu5mz{gap:12px;}", ".f11ysow2{height:auto;}", ".f900oq5 .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2);}", ".f1ur7rb7 .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".fp9bwmr{padding-top:8px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f150uoa4{padding-bottom:8px;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".fj9njph .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"],
72
+ "h": [".f8rpug0:hover .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2Hover);}", ".f1itoici:hover .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".f1l9nom2:hover .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2BrandHover);}", ".fr13fpv:hover .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"],
73
+ "a": [".fre7xro:active .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2Pressed);}", ".f1uen3ov:active .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".fvjq8kx:active .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2BrandPressed);}", ".f1xrf5v0:active .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"]
73
74
  });
74
75
 
75
- var useRootIconOnlyStyles = /*#__PURE__*/react_make_styles_1.__styles({
76
+ const useRootIconOnlyStyles = /*#__PURE__*/react_make_styles_1.__styles({
76
77
  "small": {
77
78
  "z8tnut": "f10ra9hq",
78
79
  "z189sj": ["f8wuabp", "fycuoez"],
@@ -101,7 +102,7 @@ var useRootIconOnlyStyles = /*#__PURE__*/react_make_styles_1.__styles({
101
102
  "d": [".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".ft5vyj6{max-width:48px;}", ".f17suaiq{min-width:48px;}", ".f1xp5gbu{padding-top:6px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f1d7kygh{padding-bottom:6px;}", ".fdczgix{max-width:52px;}", ".fjdcg9m{min-width:52px;}", ".fp9bwmr{padding-top:8px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f150uoa4{padding-bottom:8px;}", ".fww51uw{max-width:56px;}", ".f1qhsl2h{min-width:56px;}"]
102
103
  });
103
104
 
104
- var useIconStyles = /*#__PURE__*/react_make_styles_1.__styles({
105
+ const useIconStyles = /*#__PURE__*/react_make_styles_1.__styles({
105
106
  "base": {
106
107
  "Be2twd7": "fndrnj9",
107
108
  "Bqenvij": "fbhnoac",
@@ -111,7 +112,7 @@ var useIconStyles = /*#__PURE__*/react_make_styles_1.__styles({
111
112
  "d": [".fndrnj9{font-size:40px;}", ".fbhnoac{height:40px;}", ".feqmc2u{width:40px;}"]
112
113
  });
113
114
 
114
- var useContentContainerStyles = /*#__PURE__*/react_make_styles_1.__styles({
115
+ const useContentContainerStyles = /*#__PURE__*/react_make_styles_1.__styles({
115
116
  "base": {
116
117
  "mc9l5x": "f22iagw",
117
118
  "Beiy3e4": "f1vx9l62",
@@ -121,7 +122,7 @@ var useContentContainerStyles = /*#__PURE__*/react_make_styles_1.__styles({
121
122
  "d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f1o700av{text-align:left;}", ".fes3tcz{text-align:right;}"]
122
123
  });
123
124
 
124
- var useSecondaryContentStyles = /*#__PURE__*/react_make_styles_1.__styles({
125
+ const useSecondaryContentStyles = /*#__PURE__*/react_make_styles_1.__styles({
125
126
  "base": {
126
127
  "Bg96gwp": "flkuc6h",
127
128
  "B6of3ja": "fvjh0tl",
@@ -140,18 +141,20 @@ var useSecondaryContentStyles = /*#__PURE__*/react_make_styles_1.__styles({
140
141
  "d": [".flkuc6h{line-height:100%;}", ".fvjh0tl{margin-top:4px;}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fkhj508{font-size:var(--fontSizeBase300);}"]
141
142
  });
142
143
 
143
- var useCompoundButtonStyles = function (state) {
144
- var rootStyles = useRootStyles();
145
- var rootIconOnlyStyles = useRootIconOnlyStyles();
146
- var iconStyles = useIconStyles();
147
- var contentContainerStyles = useContentContainerStyles();
148
- var secondaryContentStyles = useSecondaryContentStyles();
149
- var appearance = state.appearance,
150
- disabled = state.disabled,
151
- disabledFocusable = state.disabledFocusable,
152
- iconOnly = state.iconOnly,
153
- size = state.size;
154
- state.root.className = react_make_styles_1.mergeClasses( // Root styles
144
+ const useCompoundButtonStyles = state => {
145
+ const rootStyles = useRootStyles();
146
+ const rootIconOnlyStyles = useRootIconOnlyStyles();
147
+ const iconStyles = useIconStyles();
148
+ const contentContainerStyles = useContentContainerStyles();
149
+ const secondaryContentStyles = useSecondaryContentStyles();
150
+ const {
151
+ appearance,
152
+ disabled,
153
+ disabledFocusable,
154
+ iconOnly,
155
+ size
156
+ } = state;
157
+ state.root.className = react_make_styles_1.mergeClasses(exports.compoundButtonClassName, // Root styles
155
158
  rootStyles.base, appearance && rootStyles[appearance], rootStyles[size], // Disabled styles
156
159
  (disabled || disabledFocusable) && rootStyles.disabled, // Icon-only styles
157
160
  iconOnly && rootIconOnlyStyles[size], // User provided class name
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CompoundButton/useCompoundButtonStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGA,IAAM,wBAAwB,GAAG;AAC/B,EAAA,gBAAgB,EAAE;AADa,CAAjC;;AAIA,IAAM,aAAa,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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, "__esModule", {
5
5
  });
6
6
  exports.MenuButton = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var renderMenuButton_1 = /*#__PURE__*/require("./renderMenuButton");
10
+ const renderMenuButton_1 = /*#__PURE__*/require("./renderMenuButton");
11
11
 
12
- var useMenuButton_1 = /*#__PURE__*/require("./useMenuButton");
12
+ const useMenuButton_1 = /*#__PURE__*/require("./useMenuButton");
13
13
 
14
- var useMenuButtonStyles_1 = /*#__PURE__*/require("./useMenuButtonStyles");
14
+ const useMenuButtonStyles_1 = /*#__PURE__*/require("./useMenuButtonStyles");
15
15
  /**
16
16
  * MenuButtons are buttons that handle opening and closing a menu when they are triggered.
17
17
  */
18
18
 
19
19
 
20
- exports.MenuButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
21
- var state = useMenuButton_1.useMenuButton(props, ref);
20
+ exports.MenuButton = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useMenuButton_1.useMenuButton(props, ref);
22
22
  useMenuButtonStyles_1.useMenuButtonStyles(state);
23
23
  return renderMenuButton_1.renderMenuButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACA,IAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AACA,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAmD,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC1F,MAAM,KAAK,GAAG,eAAA,CAAA,aAAA,CAAc,KAAd,EAAqB,GAArB,CAAd;AAEA,EAAA,qBAAA,CAAA,mBAAA,CAAoB,KAApB;AAEA,SAAO,kBAAA,CAAA,gBAAA,CAAiB,KAAjB,CAAP,CAL0F,CAM1F;AACD,CAP+D,CAAnD;AASb,OAAA,CAAA,UAAA,CAAW,WAAX,GAAyB,YAAzB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AACA,MAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAmD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC9F,QAAM,KAAK,GAAG,eAAA,CAAA,aAAA,CAAc,KAAd,EAAqB,GAArB,CAAd;AAEA,EAAA,qBAAA,CAAA,mBAAA,CAAoB,KAApB;AAEA,SAAO,kBAAA,CAAA,gBAAA,CAAiB,KAAjB,CAAP,CAL8F,CAM9F;AACD,CAP+D,CAAnD;AASb,OAAA,CAAA,UAAA,CAAW,WAAX,GAAyB,YAAzB","sourceRoot":""}
@@ -1,6 +1,9 @@
1
- import type { MenuTriggerChildProps } from '@fluentui/react-menu';
1
+ import * as React from 'react';
2
2
  import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
3
3
  import type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';
4
+ declare type MenuTriggerChildProps = Pick<React.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'> & {
5
+ ref?: React.Ref<never>;
6
+ };
4
7
  export declare type MenuButtonSlots = ButtonSlots & {
5
8
  /**
6
9
  * Menu icon that indicates that this button has a menu that can be expanded.
@@ -9,3 +12,4 @@ export declare type MenuButtonSlots = ButtonSlots & {
9
12
  };
10
13
  export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'>> & Partial<MenuTriggerChildProps>;
11
14
  export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
15
+ export {};
@@ -2,4 +2,4 @@ export * from './MenuButton.types';
2
2
  export * from './MenuButton';
3
3
  export * from './renderMenuButton';
4
4
  export * from './useMenuButton';
5
- export { useMenuButtonStyles } from './useMenuButtonStyles';
5
+ export { menuButtonClassName, useMenuButtonStyles } from './useMenuButtonStyles';
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuButtonStyles = void 0;
6
+ exports.useMenuButtonStyles = exports.menuButtonClassName = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const tslib_1 = /*#__PURE__*/require("tslib");
9
9
 
10
10
  tslib_1.__exportStar(require("./MenuButton.types"), exports);
11
11
 
@@ -17,6 +17,12 @@ tslib_1.__exportStar(require("./useMenuButton"), exports);
17
17
 
18
18
  var useMenuButtonStyles_1 = /*#__PURE__*/require("./useMenuButtonStyles");
19
19
 
20
+ Object.defineProperty(exports, "menuButtonClassName", {
21
+ enumerable: true,
22
+ get: function () {
23
+ return useMenuButtonStyles_1.menuButtonClassName;
24
+ }
25
+ });
20
26
  Object.defineProperty(exports, "useMenuButtonStyles", {
21
27
  enumerable: true,
22
28
  get: function () {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuButton/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,qBAAA,CAAA,mBAAA;AAAmB;AAAnB,CAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuButton/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,qBAAA,CAAA,mBAAA;AAAmB;AAAnB,CAAA;AAAqB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,qBAAA,CAAA,mBAAA;AAAmB;AAAnB,CAAA","sourceRoot":""}
@@ -5,24 +5,24 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.renderMenuButton = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
11
-
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
11
  /**
14
12
  * Renders a MenuButton component by passing the state defined props to the appropriate slots.
15
13
  */
16
14
 
17
15
 
18
- var renderMenuButton = function (state) {
19
- var _a = react_utilities_1.getSlots(state, ['root', 'icon', 'menuIcon']),
20
- slots = _a.slots,
21
- slotProps = _a.slotProps;
22
-
23
- var icon = state.icon,
24
- iconOnly = state.iconOnly;
25
- return React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), React.createElement(slots.icon, tslib_1.__assign({}, slotProps.icon)), !iconOnly && slotProps.root.children, (!iconOnly || !(icon === null || icon === void 0 ? void 0 : icon.children)) && React.createElement(slots.menuIcon, tslib_1.__assign({}, slotProps.menuIcon)));
16
+ const renderMenuButton = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state, ['root', 'icon', 'menuIcon']);
21
+ const {
22
+ icon,
23
+ iconOnly
24
+ } = state;
25
+ return React.createElement(slots.root, Object.assign({}, slotProps.root), React.createElement(slots.icon, Object.assign({}, slotProps.icon)), !iconOnly && slotProps.root.children, (!iconOnly || !(icon === null || icon === void 0 ? void 0 : icon.children)) && React.createElement(slots.menuIcon, Object.assign({}, slotProps.menuIcon)));
26
26
  };
27
27
 
28
28
  exports.renderMenuButton = renderMenuButton;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuButton/renderMenuButton.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,gBAAgB,GAAG,UAAC,KAAD,EAAuB;AAC/C,MAAA,EAAA,GAAuB,iBAAA,CAAA,QAAA,CAA0B,KAA1B,EAAiC,CAAC,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AAA,IAAF;AAAQ,IAAA;AAAR,MAAqB,KAA3B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CADF,EAEG,CAAC,QAAD,IAAa,SAAS,CAAC,IAAV,CAAe,QAF/B,EAGG,CAAC,CAAC,QAAD,IAAa,EAAC,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAI,KAAA,CAAJ,GAAA,IAAI,CAAE,QAAP,CAAd,KAAkC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAP,EAAe,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,QAAf,CAAf,CAHrC,CADF;AAOD,CAXM;;AAAM,OAAA,CAAA,gBAAA,GAAgB,gBAAhB","sourceRoot":""}
@@ -5,26 +5,25 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useMenuButton = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
10
+ const react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
11
11
 
12
- var react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
12
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
13
 
14
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
15
-
16
- var index_1 = /*#__PURE__*/require("../Button/index");
14
+ const index_1 = /*#__PURE__*/require("../Button/index");
17
15
  /**
18
16
  * Given user props, returns the final state for a MenuButton.
19
17
  */
20
18
 
21
19
 
22
- var useMenuButton = function (_a, ref) {
23
- var menuIcon = _a.menuIcon,
24
- props = tslib_1.__rest(_a, ["menuIcon"]);
25
-
26
- var buttonState = index_1.useButton(props, ref);
27
- return tslib_1.__assign(tslib_1.__assign({}, buttonState), {
20
+ const useMenuButton = ({
21
+ menuIcon,
22
+ ...props
23
+ }, ref) => {
24
+ const buttonState = index_1.useButton(props, ref);
25
+ return { // Button state
26
+ ...buttonState,
28
27
  // State calculated from a set of props
29
28
  iconOnly: Boolean(!props.children),
30
29
  // Slots definition
@@ -39,7 +38,7 @@ var useMenuButton = function (_a, ref) {
39
38
  },
40
39
  required: true
41
40
  })
42
- });
41
+ };
43
42
  };
44
43
 
45
44
  exports.useMenuButton = useMenuButton;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuButton/useMenuButton.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,aAAa,GAAG,UAC3B,EAD2B,EAE3B,GAF2B,EAE0B;AADnD,MAAA,QAAQ,GAAA,EAAA,CAAA,QAAR;AAAA,MAAa,KAAK,GAAA,OAAA,CAAA,MAAA,CAAA,EAAA,EAApB,CAAA,UAAA,CAAoB,CAAlB;;AAGF,MAAM,WAAW,GAAG,OAAA,CAAA,SAAA,CAAU,KAAV,EAAiB,GAAjB,CAApB;AACA,SAAA,OAAA,CAAA,QAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,EAEK,WAFL,CAAA,EAEgB;AAEd;AACA,IAAA,QAAQ,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,QAAR,CAHH;AAKd;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE,MAFI;AAGV,MAAA,QAAQ,EA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WAAW,CAAC,IAAZ,KAAqB,OAArB,GAA+B,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,oBAAD,EAAqB,IAArB,CAA/B,GAA0D,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,oBAAD,EAAqB,IAArB;AADxD,OADqB;AAInC,MAAA,QAAQ,EAAE;AAJyB,KAA3B;AAdL,GAAP;AAqBD,CA1BM;;AAAM,OAAA,CAAA,aAAA,GAAa,aAAb","sourceRoot":""}
@@ -1,2 +1,3 @@
1
1
  import type { MenuButtonState } from './MenuButton.types';
2
+ export declare const menuButtonClassName = "fui-MenuButton";
2
3
  export declare const useMenuButtonStyles: (state: MenuButtonState) => MenuButtonState;
@@ -3,13 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuButtonStyles = void 0;
6
+ exports.useMenuButtonStyles = exports.menuButtonClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
9
 
10
- var useButtonStyles_1 = /*#__PURE__*/require("../Button/useButtonStyles");
10
+ const useButtonStyles_1 = /*#__PURE__*/require("../Button/useButtonStyles");
11
11
 
12
- var useMenuIconStyles = /*#__PURE__*/react_make_styles_1.__styles({
12
+ exports.menuButtonClassName = 'fui-MenuButton';
13
+
14
+ const useMenuIconStyles = /*#__PURE__*/react_make_styles_1.__styles({
13
15
  "small": {
14
16
  "Be2twd7": "fe5j1ua",
15
17
  "Bqenvij": "fjamq6b",
@@ -29,8 +31,9 @@ var useMenuIconStyles = /*#__PURE__*/react_make_styles_1.__styles({
29
31
  "d": [".fe5j1ua{font-size:20px;}", ".fjamq6b{height:20px;}", ".f64fuq3{width:20px;}", ".f1rt2boy{font-size:24px;}", ".frvgh55{height:24px;}", ".fq4mcun{width:24px;}"]
30
32
  });
31
33
 
32
- var useMenuButtonStyles = function (state) {
33
- var menuIconStyles = useMenuIconStyles();
34
+ const useMenuButtonStyles = state => {
35
+ const menuIconStyles = useMenuIconStyles();
36
+ state.root.className = react_make_styles_1.mergeClasses(exports.menuButtonClassName, state.root.className);
34
37
 
35
38
  if (state.menuIcon) {
36
39
  state.menuIcon.className = react_make_styles_1.mergeClasses(menuIconStyles[state.size], state.menuIcon.className);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuButton/useMenuButtonStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGA,IAAM,iBAAiB,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAA1B;;AAmBO,IAAM,mBAAmB,GAAG,UAAC,KAAD,EAAuB;AACxD,MAAM,cAAc,GAAG,iBAAiB,EAAxC;;AACA,MAAI,KAAK,CAAC,QAAV,EAAoB;AAClB,IAAA,KAAK,CAAC,QAAN,CAAe,SAAf,GAA2B,mBAAA,CAAA,YAAA,CAAa,cAAc,CAAC,KAAK,CAAC,IAAP,CAA3B,EAAyC,KAAK,CAAC,QAAN,CAAe,SAAxD,CAA3B;AACD;;AAED,EAAA,iBAAA,CAAA,eAAA,CAAgB,KAAhB;AAEA,SAAO,KAAP;AACD,CATM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuButton/useMenuButtonStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGa,OAAA,CAAA,mBAAA,GAAsB,gBAAtB;;AAEb,MAAM,iBAAiB,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAA1B;;AAmBO,MAAM,mBAAmB,GAAI,KAAD,IAA4C;AAC7E,QAAM,cAAc,GAAG,iBAAiB,EAAxC;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAAa,OAAA,CAAA,mBAAb,EAAkC,KAAK,CAAC,IAAN,CAAW,SAA7C,CAAvB;;AAEA,MAAI,KAAK,CAAC,QAAV,EAAoB;AAClB,IAAA,KAAK,CAAC,QAAN,CAAe,SAAf,GAA2B,mBAAA,CAAA,YAAA,CAAa,cAAc,CAAC,KAAK,CAAC,IAAP,CAA3B,EAAyC,KAAK,CAAC,QAAN,CAAe,SAAxD,CAA3B;AACD;;AAED,EAAA,iBAAA,CAAA,eAAA,CAAgB,KAAhB;AAEA,SAAO,KAAP;AACD,CAZM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourceRoot":""}
@@ -5,21 +5,21 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.SplitButton = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var renderSplitButton_1 = /*#__PURE__*/require("./renderSplitButton");
10
+ const renderSplitButton_1 = /*#__PURE__*/require("./renderSplitButton");
11
11
 
12
- var useSplitButton_1 = /*#__PURE__*/require("./useSplitButton");
12
+ const useSplitButton_1 = /*#__PURE__*/require("./useSplitButton");
13
13
 
14
- var useSplitButtonStyles_1 = /*#__PURE__*/require("./useSplitButtonStyles");
14
+ const useSplitButtonStyles_1 = /*#__PURE__*/require("./useSplitButtonStyles");
15
15
  /**
16
16
  * SplitButtons are a grouping of two interactive surfaces where the interacting with the first one triggers a primary
17
17
  * action, while interacting with the second one opens a menu with secondary actions.
18
18
  */
19
19
 
20
20
 
21
- exports.SplitButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
22
- var state = useSplitButton_1.useSplitButton(props, ref);
21
+ exports.SplitButton = /*#__PURE__*/React.forwardRef((props, ref) => {
22
+ const state = useSplitButton_1.useSplitButton(props, ref);
23
23
  useSplitButtonStyles_1.useSplitButtonStyles(state);
24
24
  return renderSplitButton_1.renderSplitButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
25
25
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/SplitButton/SplitButton.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;;AACA,IAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,IAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAIA;;;AAGG;;;AACU,OAAA,CAAA,WAAA,gBAAqD,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC5F,MAAM,KAAK,GAAG,gBAAA,CAAA,cAAA,CAAe,KAAf,EAAsB,GAAtB,CAAd;AAEA,EAAA,sBAAA,CAAA,oBAAA,CAAqB,KAArB;AAEA,SAAO,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAP,CAL4F,CAM5F;AACD,CAPiE,CAArD;AASb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/SplitButton/SplitButton.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAIA;;;AAGG;;;AACU,OAAA,CAAA,WAAA,gBAAqD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,gBAAA,CAAA,cAAA,CAAe,KAAf,EAAsB,GAAtB,CAAd;AAEA,EAAA,sBAAA,CAAA,oBAAA,CAAqB,KAArB;AAEA,SAAO,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAP,CALgG,CAMhG;AACD,CAPiE,CAArD;AASb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
@@ -2,4 +2,4 @@ export * from './SplitButton';
2
2
  export * from './SplitButton.types';
3
3
  export * from './renderSplitButton';
4
4
  export * from './useSplitButton';
5
- export { useSplitButtonStyles } from './useSplitButtonStyles';
5
+ export { splitButtonClassName, useSplitButtonStyles } from './useSplitButtonStyles';
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useSplitButtonStyles = void 0;
6
+ exports.useSplitButtonStyles = exports.splitButtonClassName = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const tslib_1 = /*#__PURE__*/require("tslib");
9
9
 
10
10
  tslib_1.__exportStar(require("./SplitButton"), exports);
11
11
 
@@ -17,6 +17,12 @@ tslib_1.__exportStar(require("./useSplitButton"), exports);
17
17
 
18
18
  var useSplitButtonStyles_1 = /*#__PURE__*/require("./useSplitButtonStyles");
19
19
 
20
+ Object.defineProperty(exports, "splitButtonClassName", {
21
+ enumerable: true,
22
+ get: function () {
23
+ return useSplitButtonStyles_1.splitButtonClassName;
24
+ }
25
+ });
20
26
  Object.defineProperty(exports, "useSplitButtonStyles", {
21
27
  enumerable: true,
22
28
  get: function () {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/SplitButton/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,IAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,sBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,sBAAA,CAAA,oBAAA;AAAoB;AAApB,CAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/SplitButton/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,IAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,sBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,sBAAA,CAAA,oBAAA;AAAoB;AAApB,CAAA;AAAsB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,sBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,sBAAA,CAAA,oBAAA;AAAoB;AAApB,CAAA","sourceRoot":""}
@@ -5,22 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.renderSplitButton = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
11
-
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
11
  /**
14
12
  * Renders a SplitButton component by passing the state defined props to the appropriate slots.
15
13
  */
16
14
 
17
15
 
18
- var renderSplitButton = function (state) {
19
- var _a = react_utilities_1.getSlots(state, ['root', 'menuButton', 'primaryActionButton']),
20
- slots = _a.slots,
21
- slotProps = _a.slotProps;
22
-
23
- return React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), React.createElement(slots.primaryActionButton, tslib_1.__assign({}, slotProps.primaryActionButton)), React.createElement(slots.menuButton, tslib_1.__assign({}, slotProps.menuButton)));
16
+ const renderSplitButton = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state, ['root', 'menuButton', 'primaryActionButton']);
21
+ return React.createElement(slots.root, Object.assign({}, slotProps.root), React.createElement(slots.primaryActionButton, Object.assign({}, slotProps.primaryActionButton)), React.createElement(slots.menuButton, Object.assign({}, slotProps.menuButton)));
24
22
  };
25
23
 
26
24
  exports.renderSplitButton = renderSplitButton;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/SplitButton/renderSplitButton.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,iBAAiB,GAAG,UAAC,KAAD,EAAwB;AACjD,MAAA,EAAA,GAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,EAAkC,CAAC,MAAD,EAAS,YAAT,EAAuB,qBAAvB,CAAlC,CAAvB;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,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