@fluentui/react-button 1.0.0-beta.8 → 9.0.0-alpha.100
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +3258 -1
- package/CHANGELOG.md +1247 -2
- package/README.md +19 -108
- package/dist/demo/index.html +71 -0
- package/dist/demo/react-dom.development.js +21413 -0
- package/dist/demo/react.development.js +3155 -0
- package/dist/react-button.d.ts +130 -355
- package/lib/Button.js.map +1 -1
- package/lib/CompoundButton.js.map +1 -1
- package/lib/MenuButton.js.map +1 -1
- package/lib/SplitButton.js.map +1 -1
- package/lib/ToggleButton.js.map +1 -1
- package/lib/common/isConformant.d.ts +4 -2
- package/lib/common/isConformant.js +9 -5
- package/lib/common/isConformant.js.map +1 -1
- package/lib/components/Button/Button.d.ts +4 -5
- package/lib/components/Button/Button.js +8 -9
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.types.d.ts +46 -114
- package/lib/components/Button/Button.types.js +1 -0
- package/lib/components/Button/Button.types.js.map +1 -1
- package/lib/components/Button/index.d.ts +3 -3
- package/lib/components/Button/index.js +4 -3
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/renderButton.d.ts +2 -2
- package/lib/components/Button/renderButton.js +10 -10
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.d.ts +5 -10
- package/lib/components/Button/useButton.js +49 -24
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.d.ts +10 -0
- package/lib/components/Button/useButtonStyles.js +354 -0
- package/lib/components/Button/useButtonStyles.js.map +1 -0
- package/lib/components/CompoundButton/CompoundButton.d.ts +4 -5
- package/lib/components/CompoundButton/CompoundButton.js +8 -11
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.types.d.ts +8 -27
- package/lib/components/CompoundButton/CompoundButton.types.js +1 -0
- package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib/components/CompoundButton/index.d.ts +2 -1
- package/lib/components/CompoundButton/index.js +3 -1
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.d.ts +2 -2
- package/lib/components/CompoundButton/renderCompoundButton.js +10 -12
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.d.ts +5 -10
- package/lib/components/CompoundButton/useCompoundButton.js +25 -28
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +2 -0
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +164 -0
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -0
- package/lib/components/MenuButton/MenuButton.d.ts +4 -5
- package/lib/components/MenuButton/MenuButton.js +8 -21
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.d.ts +7 -50
- package/lib/components/MenuButton/MenuButton.types.js +1 -0
- package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib/components/MenuButton/index.d.ts +2 -3
- package/lib/components/MenuButton/index.js +3 -3
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/renderMenuButton.d.ts +2 -4
- package/lib/components/MenuButton/renderMenuButton.js +10 -14
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.d.ts +3 -7
- package/lib/components/MenuButton/useMenuButton.js +28 -22
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.d.ts +2 -0
- package/lib/components/MenuButton/useMenuButtonStyles.js +34 -0
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -0
- package/lib/components/SplitButton/SplitButton.d.ts +5 -5
- package/lib/components/SplitButton/SplitButton.js +9 -22
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.d.ts +12 -28
- package/lib/components/SplitButton/SplitButton.types.js +1 -0
- package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib/components/SplitButton/index.d.ts +3 -2
- package/lib/components/SplitButton/index.js +3 -1
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.d.ts +2 -4
- package/lib/components/SplitButton/renderSplitButton.js +8 -10
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.d.ts +5 -7
- package/lib/components/SplitButton/useSplitButton.js +69 -47
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.d.ts +2 -0
- package/lib/components/SplitButton/useSplitButtonStyles.js +77 -0
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -0
- package/lib/components/ToggleButton/ToggleButton.d.ts +4 -5
- package/lib/components/ToggleButton/ToggleButton.js +8 -11
- package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.types.d.ts +11 -17
- package/lib/components/ToggleButton/ToggleButton.types.js +1 -0
- package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib/components/ToggleButton/index.d.ts +3 -3
- package/lib/components/ToggleButton/index.js +4 -3
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -0
- package/lib/components/ToggleButton/renderToggleButton.js +2 -0
- package/lib/components/ToggleButton/renderToggleButton.js.map +1 -0
- package/lib/components/ToggleButton/useToggleButton.d.ts +8 -5
- package/lib/components/ToggleButton/useToggleButton.js +47 -5
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +2 -0
- package/lib/components/ToggleButton/useToggleButtonStyles.js +190 -0
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib-commonjs/Button.js +7 -2
- package/lib-commonjs/Button.js.map +1 -1
- package/lib-commonjs/CompoundButton.js +7 -2
- package/lib-commonjs/CompoundButton.js.map +1 -1
- package/lib-commonjs/MenuButton.js +7 -2
- package/lib-commonjs/MenuButton.js.map +1 -1
- package/lib-commonjs/SplitButton.js +7 -2
- package/lib-commonjs/SplitButton.js.map +1 -1
- package/lib-commonjs/ToggleButton.js +7 -2
- package/lib-commonjs/ToggleButton.js.map +1 -1
- package/lib-commonjs/common/isConformant.d.ts +4 -2
- package/lib-commonjs/common/isConformant.js +19 -7
- package/lib-commonjs/common/isConformant.js.map +1 -1
- package/lib-commonjs/components/Button/Button.d.ts +4 -5
- package/lib-commonjs/components/Button/Button.js +20 -12
- package/lib-commonjs/components/Button/Button.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.d.ts +46 -114
- package/lib-commonjs/components/Button/Button.types.js +4 -1
- package/lib-commonjs/components/Button/Button.types.js.map +1 -1
- package/lib-commonjs/components/Button/index.d.ts +3 -3
- package/lib-commonjs/components/Button/index.js +23 -5
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.d.ts +2 -2
- package/lib-commonjs/components/Button/renderButton.js +24 -14
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.d.ts +5 -10
- package/lib-commonjs/components/Button/useButton.js +59 -25
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.d.ts +10 -0
- package/lib-commonjs/components/Button/useButtonStyles.js +365 -0
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -0
- package/lib-commonjs/components/CompoundButton/CompoundButton.d.ts +4 -5
- package/lib-commonjs/components/CompoundButton/CompoundButton.js +20 -14
- package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +8 -27
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.js +4 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.d.ts +2 -1
- package/lib-commonjs/components/CompoundButton/index.js +22 -3
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +2 -2
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +24 -16
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +5 -10
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +35 -28
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +2 -0
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +175 -0
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -0
- package/lib-commonjs/components/MenuButton/MenuButton.d.ts +4 -5
- package/lib-commonjs/components/MenuButton/MenuButton.js +20 -24
- package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +7 -50
- package/lib-commonjs/components/MenuButton/MenuButton.types.js +4 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib-commonjs/components/MenuButton/index.d.ts +2 -3
- package/lib-commonjs/components/MenuButton/index.js +22 -5
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +2 -4
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +24 -18
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +3 -7
- package/lib-commonjs/components/MenuButton/useMenuButton.js +41 -23
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +2 -0
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +44 -0
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -0
- package/lib-commonjs/components/SplitButton/SplitButton.d.ts +5 -5
- package/lib-commonjs/components/SplitButton/SplitButton.js +21 -25
- package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +12 -28
- package/lib-commonjs/components/SplitButton/SplitButton.types.js +4 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib-commonjs/components/SplitButton/index.d.ts +3 -2
- package/lib-commonjs/components/SplitButton/index.js +22 -3
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +2 -4
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +22 -14
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +5 -7
- package/lib-commonjs/components/SplitButton/useSplitButton.js +81 -48
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +2 -0
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +88 -0
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -0
- package/lib-commonjs/components/ToggleButton/ToggleButton.d.ts +4 -5
- package/lib-commonjs/components/ToggleButton/ToggleButton.js +20 -14
- package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +11 -17
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.js +4 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/index.d.ts +3 -3
- package/lib-commonjs/components/ToggleButton/index.js +23 -5
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -0
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js +16 -0
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -0
- package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +8 -5
- package/lib-commonjs/components/ToggleButton/useToggleButton.js +60 -7
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +2 -0
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +200 -0
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -0
- package/lib-commonjs/index.d.ts +0 -1
- package/lib-commonjs/index.js +11 -3
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +37 -35
- package/config/api-extractor.json +0 -3
- package/config/pre-copy.json +0 -9
- package/config/tests.js +0 -11
- package/etc/react-button.api.md +0 -335
- package/just.config.ts +0 -3
- package/lib/components/Button/useButtonClasses.d.ts +0 -29
- package/lib/components/Button/useButtonClasses.js +0 -417
- package/lib/components/Button/useButtonClasses.js.map +0 -1
- package/lib/components/Button/useButtonState.d.ts +0 -6
- package/lib/components/Button/useButtonState.js +0 -28
- package/lib/components/Button/useButtonState.js.map +0 -1
- package/lib/components/CompoundButton/useCompoundButtonClasses.d.ts +0 -4
- package/lib/components/CompoundButton/useCompoundButtonClasses.js +0 -180
- package/lib/components/CompoundButton/useCompoundButtonClasses.js.map +0 -1
- package/lib/components/MenuButton/useExpanded.d.ts +0 -18
- package/lib/components/MenuButton/useExpanded.js +0 -61
- package/lib/components/MenuButton/useExpanded.js.map +0 -1
- package/lib/components/MenuButton/useMenuButtonClasses.d.ts +0 -3
- package/lib/components/MenuButton/useMenuButtonClasses.js +0 -78
- package/lib/components/MenuButton/useMenuButtonClasses.js.map +0 -1
- package/lib/components/MenuButton/useMenuButtonState.d.ts +0 -2
- package/lib/components/MenuButton/useMenuButtonState.js +0 -9
- package/lib/components/MenuButton/useMenuButtonState.js.map +0 -1
- package/lib/components/SplitButton/useSplitButtonClasses.d.ts +0 -3
- package/lib/components/SplitButton/useSplitButtonClasses.js +0 -123
- package/lib/components/SplitButton/useSplitButtonClasses.js.map +0 -1
- package/lib/components/ToggleButton/useChecked.d.ts +0 -14
- package/lib/components/ToggleButton/useChecked.js +0 -25
- package/lib/components/ToggleButton/useChecked.js.map +0 -1
- package/lib/components/ToggleButton/useToggleButtonClasses.d.ts +0 -3
- package/lib/components/ToggleButton/useToggleButtonClasses.js +0 -130
- package/lib/components/ToggleButton/useToggleButtonClasses.js.map +0 -1
- package/lib/utils/tempTypes.d.ts +0 -33
- package/lib/utils/tempTypes.js +0 -4
- package/lib/utils/tempTypes.js.map +0 -1
- package/lib/version.d.ts +0 -1
- package/lib/version.js +0 -5
- package/lib/version.js.map +0 -1
- package/lib-amd/Button.d.ts +0 -1
- package/lib-amd/Button.js +0 -6
- package/lib-amd/Button.js.map +0 -1
- package/lib-amd/CompoundButton.d.ts +0 -1
- package/lib-amd/CompoundButton.js +0 -6
- package/lib-amd/CompoundButton.js.map +0 -1
- package/lib-amd/MenuButton.d.ts +0 -1
- package/lib-amd/MenuButton.js +0 -6
- package/lib-amd/MenuButton.js.map +0 -1
- package/lib-amd/SplitButton.d.ts +0 -1
- package/lib-amd/SplitButton.js +0 -6
- package/lib-amd/SplitButton.js.map +0 -1
- package/lib-amd/ToggleButton.d.ts +0 -1
- package/lib-amd/ToggleButton.js +0 -6
- package/lib-amd/ToggleButton.js.map +0 -1
- package/lib-amd/common/isConformant.d.ts +0 -2
- package/lib-amd/common/isConformant.js +0 -13
- package/lib-amd/common/isConformant.js.map +0 -1
- package/lib-amd/components/Button/Button.d.ts +0 -7
- package/lib-amd/components/Button/Button.js +0 -16
- package/lib-amd/components/Button/Button.js.map +0 -1
- package/lib-amd/components/Button/Button.types.d.ts +0 -130
- package/lib-amd/components/Button/Button.types.js +0 -5
- package/lib-amd/components/Button/Button.types.js.map +0 -1
- package/lib-amd/components/Button/index.d.ts +0 -5
- package/lib-amd/components/Button/index.js +0 -9
- package/lib-amd/components/Button/index.js.map +0 -1
- package/lib-amd/components/Button/renderButton.d.ts +0 -5
- package/lib-amd/components/Button/renderButton.js +0 -17
- package/lib-amd/components/Button/renderButton.js.map +0 -1
- package/lib-amd/components/Button/useButton.d.ts +0 -13
- package/lib-amd/components/Button/useButton.js +0 -28
- package/lib-amd/components/Button/useButton.js.map +0 -1
- package/lib-amd/components/Button/useButtonClasses.d.ts +0 -29
- package/lib-amd/components/Button/useButtonClasses.js +0 -417
- package/lib-amd/components/Button/useButtonClasses.js.map +0 -1
- package/lib-amd/components/Button/useButtonState.d.ts +0 -6
- package/lib-amd/components/Button/useButtonState.js +0 -32
- package/lib-amd/components/Button/useButtonState.js.map +0 -1
- package/lib-amd/components/CompoundButton/CompoundButton.d.ts +0 -7
- package/lib-amd/components/CompoundButton/CompoundButton.js +0 -17
- package/lib-amd/components/CompoundButton/CompoundButton.js.map +0 -1
- package/lib-amd/components/CompoundButton/CompoundButton.types.d.ts +0 -33
- package/lib-amd/components/CompoundButton/CompoundButton.types.js +0 -5
- package/lib-amd/components/CompoundButton/CompoundButton.types.js.map +0 -1
- package/lib-amd/components/CompoundButton/index.d.ts +0 -4
- package/lib-amd/components/CompoundButton/index.js +0 -8
- package/lib-amd/components/CompoundButton/index.js.map +0 -1
- package/lib-amd/components/CompoundButton/renderCompoundButton.d.ts +0 -5
- package/lib-amd/components/CompoundButton/renderCompoundButton.js +0 -19
- package/lib-amd/components/CompoundButton/renderCompoundButton.js.map +0 -1
- package/lib-amd/components/CompoundButton/useCompoundButton.d.ts +0 -13
- package/lib-amd/components/CompoundButton/useCompoundButton.js +0 -32
- package/lib-amd/components/CompoundButton/useCompoundButton.js.map +0 -1
- package/lib-amd/components/CompoundButton/useCompoundButtonClasses.d.ts +0 -4
- package/lib-amd/components/CompoundButton/useCompoundButtonClasses.js +0 -182
- package/lib-amd/components/CompoundButton/useCompoundButtonClasses.js.map +0 -1
- package/lib-amd/components/MenuButton/MenuButton.d.ts +0 -7
- package/lib-amd/components/MenuButton/MenuButton.js +0 -26
- package/lib-amd/components/MenuButton/MenuButton.js.map +0 -1
- package/lib-amd/components/MenuButton/MenuButton.types.d.ts +0 -54
- package/lib-amd/components/MenuButton/MenuButton.types.js +0 -5
- package/lib-amd/components/MenuButton/MenuButton.types.js.map +0 -1
- package/lib-amd/components/MenuButton/index.d.ts +0 -6
- package/lib-amd/components/MenuButton/index.js +0 -10
- package/lib-amd/components/MenuButton/index.js.map +0 -1
- package/lib-amd/components/MenuButton/renderMenuButton.d.ts +0 -7
- package/lib-amd/components/MenuButton/renderMenuButton.js +0 -21
- package/lib-amd/components/MenuButton/renderMenuButton.js.map +0 -1
- package/lib-amd/components/MenuButton/useExpanded.d.ts +0 -18
- package/lib-amd/components/MenuButton/useExpanded.js +0 -62
- package/lib-amd/components/MenuButton/useExpanded.js.map +0 -1
- package/lib-amd/components/MenuButton/useMenuButton.d.ts +0 -10
- package/lib-amd/components/MenuButton/useMenuButton.js +0 -27
- package/lib-amd/components/MenuButton/useMenuButton.js.map +0 -1
- package/lib-amd/components/MenuButton/useMenuButtonClasses.d.ts +0 -3
- package/lib-amd/components/MenuButton/useMenuButtonClasses.js +0 -81
- package/lib-amd/components/MenuButton/useMenuButtonClasses.js.map +0 -1
- package/lib-amd/components/MenuButton/useMenuButtonState.d.ts +0 -2
- package/lib-amd/components/MenuButton/useMenuButtonState.js +0 -11
- package/lib-amd/components/MenuButton/useMenuButtonState.js.map +0 -1
- package/lib-amd/components/SplitButton/SplitButton.d.ts +0 -7
- package/lib-amd/components/SplitButton/SplitButton.js +0 -26
- package/lib-amd/components/SplitButton/SplitButton.js.map +0 -1
- package/lib-amd/components/SplitButton/SplitButton.types.d.ts +0 -35
- package/lib-amd/components/SplitButton/SplitButton.types.js +0 -5
- package/lib-amd/components/SplitButton/SplitButton.types.js.map +0 -1
- package/lib-amd/components/SplitButton/index.d.ts +0 -4
- package/lib-amd/components/SplitButton/index.js +0 -8
- package/lib-amd/components/SplitButton/index.js.map +0 -1
- package/lib-amd/components/SplitButton/renderSplitButton.d.ts +0 -7
- package/lib-amd/components/SplitButton/renderSplitButton.js +0 -17
- package/lib-amd/components/SplitButton/renderSplitButton.js.map +0 -1
- package/lib-amd/components/SplitButton/useSplitButton.d.ts +0 -10
- package/lib-amd/components/SplitButton/useSplitButton.js +0 -50
- package/lib-amd/components/SplitButton/useSplitButton.js.map +0 -1
- package/lib-amd/components/SplitButton/useSplitButtonClasses.d.ts +0 -3
- package/lib-amd/components/SplitButton/useSplitButtonClasses.js +0 -123
- package/lib-amd/components/SplitButton/useSplitButtonClasses.js.map +0 -1
- package/lib-amd/components/ToggleButton/ToggleButton.d.ts +0 -7
- package/lib-amd/components/ToggleButton/ToggleButton.js +0 -17
- package/lib-amd/components/ToggleButton/ToggleButton.js.map +0 -1
- package/lib-amd/components/ToggleButton/ToggleButton.types.d.ts +0 -25
- package/lib-amd/components/ToggleButton/ToggleButton.types.js +0 -5
- package/lib-amd/components/ToggleButton/ToggleButton.types.js.map +0 -1
- package/lib-amd/components/ToggleButton/index.d.ts +0 -5
- package/lib-amd/components/ToggleButton/index.js +0 -9
- package/lib-amd/components/ToggleButton/index.js.map +0 -1
- package/lib-amd/components/ToggleButton/useChecked.d.ts +0 -14
- package/lib-amd/components/ToggleButton/useChecked.js +0 -27
- package/lib-amd/components/ToggleButton/useChecked.js.map +0 -1
- package/lib-amd/components/ToggleButton/useToggleButton.d.ts +0 -6
- package/lib-amd/components/ToggleButton/useToggleButton.js +0 -10
- package/lib-amd/components/ToggleButton/useToggleButton.js.map +0 -1
- package/lib-amd/components/ToggleButton/useToggleButtonClasses.d.ts +0 -3
- package/lib-amd/components/ToggleButton/useToggleButtonClasses.js +0 -132
- package/lib-amd/components/ToggleButton/useToggleButtonClasses.js.map +0 -1
- package/lib-amd/index.d.ts +0 -6
- package/lib-amd/index.js +0 -10
- package/lib-amd/index.js.map +0 -1
- package/lib-amd/utils/tempTypes.d.ts +0 -33
- package/lib-amd/utils/tempTypes.js +0 -8
- package/lib-amd/utils/tempTypes.js.map +0 -1
- package/lib-amd/version.d.ts +0 -1
- package/lib-amd/version.js +0 -6
- package/lib-amd/version.js.map +0 -1
- package/lib-commonjs/components/Button/useButtonClasses.d.ts +0 -29
- package/lib-commonjs/components/Button/useButtonClasses.js +0 -419
- package/lib-commonjs/components/Button/useButtonClasses.js.map +0 -1
- package/lib-commonjs/components/Button/useButtonState.d.ts +0 -6
- package/lib-commonjs/components/Button/useButtonState.js +0 -30
- package/lib-commonjs/components/Button/useButtonState.js.map +0 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonClasses.d.ts +0 -4
- package/lib-commonjs/components/CompoundButton/useCompoundButtonClasses.js +0 -182
- package/lib-commonjs/components/CompoundButton/useCompoundButtonClasses.js.map +0 -1
- package/lib-commonjs/components/MenuButton/useExpanded.d.ts +0 -18
- package/lib-commonjs/components/MenuButton/useExpanded.js +0 -63
- package/lib-commonjs/components/MenuButton/useExpanded.js.map +0 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonClasses.d.ts +0 -3
- package/lib-commonjs/components/MenuButton/useMenuButtonClasses.js +0 -80
- package/lib-commonjs/components/MenuButton/useMenuButtonClasses.js.map +0 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonState.d.ts +0 -2
- package/lib-commonjs/components/MenuButton/useMenuButtonState.js +0 -11
- package/lib-commonjs/components/MenuButton/useMenuButtonState.js.map +0 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonClasses.d.ts +0 -3
- package/lib-commonjs/components/SplitButton/useSplitButtonClasses.js +0 -125
- package/lib-commonjs/components/SplitButton/useSplitButtonClasses.js.map +0 -1
- package/lib-commonjs/components/ToggleButton/useChecked.d.ts +0 -14
- package/lib-commonjs/components/ToggleButton/useChecked.js +0 -27
- package/lib-commonjs/components/ToggleButton/useChecked.js.map +0 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonClasses.d.ts +0 -3
- package/lib-commonjs/components/ToggleButton/useToggleButtonClasses.js +0 -132
- package/lib-commonjs/components/ToggleButton/useToggleButtonClasses.js.map +0 -1
- package/lib-commonjs/utils/tempTypes.d.ts +0 -33
- package/lib-commonjs/utils/tempTypes.js +0 -6
- package/lib-commonjs/utils/tempTypes.js.map +0 -1
- package/lib-commonjs/version.d.ts +0 -1
- package/lib-commonjs/version.js +0 -7
- package/lib-commonjs/version.js.map +0 -1
- package/src/components/Button/Button.types.ts +0 -166
- package/src/components/CompoundButton/CompoundButton.types.ts +0 -37
- package/src/components/MenuButton/MenuButton.types.ts +0 -63
- package/src/components/SplitButton/SplitButton.types.ts +0 -41
- package/src/components/ToggleButton/ToggleButton.types.ts +0 -29
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
package/package.json
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-button",
|
3
|
-
"version": "
|
3
|
+
"version": "9.0.0-alpha.100",
|
4
4
|
"description": "Fluent UI React Button component.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
7
7
|
"typings": "lib/index.d.ts",
|
8
|
-
"sideEffects":
|
9
|
-
"lib/version.js"
|
10
|
-
],
|
8
|
+
"sideEffects": false,
|
11
9
|
"repository": {
|
12
10
|
"type": "git",
|
13
11
|
"url": "https://github.com/microsoft/fluentui"
|
@@ -15,54 +13,58 @@
|
|
15
13
|
"license": "MIT",
|
16
14
|
"scripts": {
|
17
15
|
"build": "just-scripts build",
|
18
|
-
"bundle": "
|
16
|
+
"bundle-size": "bundle-size measure",
|
19
17
|
"clean": "just-scripts clean",
|
20
18
|
"code-style": "just-scripts code-style",
|
21
19
|
"just": "just-scripts",
|
22
20
|
"lint": "just-scripts lint",
|
23
|
-
"start": "
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"update-snapshots": "just-scripts jest -u"
|
21
|
+
"start": "yarn storybook",
|
22
|
+
"test": "jest",
|
23
|
+
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
24
|
+
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/packages/react-button/src && yarn docs",
|
25
|
+
"storybook": "start-storybook"
|
29
26
|
},
|
30
27
|
"devDependencies": {
|
31
|
-
"@fluentui/
|
32
|
-
"@fluentui/
|
33
|
-
"@fluentui/
|
28
|
+
"@fluentui/a11y-testing": "^0.1.0",
|
29
|
+
"@fluentui/babel-make-styles": "9.0.0-alpha.59",
|
30
|
+
"@fluentui/eslint-plugin": "*",
|
31
|
+
"@fluentui/jest-serializer-make-styles": "9.0.0-alpha.52",
|
32
|
+
"@fluentui/react-conformance": "*",
|
33
|
+
"@fluentui/react-conformance-make-styles": "9.0.0-alpha.21",
|
34
|
+
"@fluentui/react-menu": "9.0.0-alpha.91",
|
35
|
+
"@fluentui/scripts": "^1.0.0",
|
34
36
|
"@types/enzyme": "3.10.3",
|
35
37
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
36
|
-
"@types/
|
37
|
-
"@types/react": "16.
|
38
|
-
"@types/react-dom": "16.8.4",
|
38
|
+
"@types/react": "16.9.42",
|
39
|
+
"@types/react-dom": "16.9.10",
|
39
40
|
"@types/react-test-renderer": "^16.0.0",
|
40
|
-
"@types/webpack-env": "1.15.1",
|
41
|
-
"@fluentui/scripts": "^1.0.0",
|
42
41
|
"enzyme": "~3.10.0",
|
43
42
|
"enzyme-adapter-react-16": "^1.15.0",
|
44
43
|
"react": "16.8.6",
|
45
|
-
"react-app-polyfill": "~1.0.1",
|
46
44
|
"react-dom": "16.8.6",
|
47
45
|
"react-test-renderer": "^16.3.0"
|
48
46
|
},
|
49
47
|
"dependencies": {
|
50
|
-
"@fluentui/
|
51
|
-
"@fluentui/
|
52
|
-
"@fluentui/react-icons
|
53
|
-
"@fluentui/react-
|
54
|
-
"@fluentui/
|
55
|
-
"@
|
56
|
-
"
|
57
|
-
"@fluentui/set-version": "^8.0.0-beta.0",
|
58
|
-
"@fluentui/style-utilities": "^8.0.0-beta.5",
|
59
|
-
"@fluentui/utilities": "^8.0.0-beta.5",
|
60
|
-
"tslib": "^1.10.0"
|
48
|
+
"@fluentui/keyboard-keys": "9.0.0-alpha.5",
|
49
|
+
"@fluentui/react-aria": "9.0.0-alpha.44",
|
50
|
+
"@fluentui/react-icons": "^1.1.140",
|
51
|
+
"@fluentui/react-make-styles": "9.0.0-alpha.77",
|
52
|
+
"@fluentui/react-tabster": "9.0.0-alpha.72",
|
53
|
+
"@fluentui/react-utilities": "9.0.0-alpha.56",
|
54
|
+
"tslib": "^2.1.0"
|
61
55
|
},
|
62
56
|
"peerDependencies": {
|
63
|
-
"@types/react": ">=16.8.0 <
|
64
|
-
"@types/react-dom": ">=16.8.0 <
|
65
|
-
"react": ">=16.8.0 <
|
66
|
-
"react-dom": ">=16.8.0 <
|
57
|
+
"@types/react": ">=16.8.0 <18.0.0",
|
58
|
+
"@types/react-dom": ">=16.8.0 <18.0.0",
|
59
|
+
"react": ">=16.8.0 <18.0.0",
|
60
|
+
"react-dom": ">=16.8.0 <18.0.0"
|
61
|
+
},
|
62
|
+
"beachball": {
|
63
|
+
"tag": "alpha",
|
64
|
+
"disallowedChangeTypes": [
|
65
|
+
"major",
|
66
|
+
"minor",
|
67
|
+
"patch"
|
68
|
+
]
|
67
69
|
}
|
68
70
|
}
|
package/config/pre-copy.json
DELETED
package/config/tests.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
/** Jest test setup file. */
|
2
|
-
const { configure } = require('enzyme');
|
3
|
-
const Adapter = require('enzyme-adapter-react-16');
|
4
|
-
|
5
|
-
// Mock requestAnimationFrame for React 16+.
|
6
|
-
global.requestAnimationFrame = callback => {
|
7
|
-
setTimeout(callback, 0);
|
8
|
-
};
|
9
|
-
|
10
|
-
// Configure enzyme.
|
11
|
-
configure({ adapter: new Adapter() });
|
package/etc/react-button.api.md
DELETED
@@ -1,335 +0,0 @@
|
|
1
|
-
## API Report File for "@fluentui/react-button"
|
2
|
-
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
4
|
-
|
5
|
-
```ts
|
6
|
-
|
7
|
-
import { ColorTokens } from '@fluentui/theme';
|
8
|
-
import { ComponentProps } from '@fluentui/react-compose/lib/next/index';
|
9
|
-
import { FontTokens } from '@fluentui/theme';
|
10
|
-
import * as React from 'react';
|
11
|
-
import { RecursivePartial } from '@fluentui/theme';
|
12
|
-
import { ShorthandProps } from '@fluentui/react-compose/lib/next/index';
|
13
|
-
import { SizeValue } from '@fluentui/theme';
|
14
|
-
import { Theme } from '@fluentui/react-theme-provider';
|
15
|
-
|
16
|
-
// @public
|
17
|
-
export const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, string | number> & React.RefAttributes<HTMLElement>>;
|
18
|
-
|
19
|
-
// @public (undocumented)
|
20
|
-
export type ButtonProps = ComponentProps & React.HTMLAttributes<HTMLElement> & {
|
21
|
-
icon?: ShorthandProps;
|
22
|
-
loader?: ShorthandProps;
|
23
|
-
content?: ShorthandProps;
|
24
|
-
href?: string;
|
25
|
-
target?: string;
|
26
|
-
circular?: boolean;
|
27
|
-
disabled?: boolean;
|
28
|
-
block?: boolean;
|
29
|
-
iconOnly?: boolean;
|
30
|
-
iconPosition?: 'before' | 'after';
|
31
|
-
inverted?: boolean;
|
32
|
-
variant?: string;
|
33
|
-
loading?: boolean;
|
34
|
-
primary?: boolean;
|
35
|
-
secondary?: boolean;
|
36
|
-
ghost?: boolean;
|
37
|
-
transparent?: boolean;
|
38
|
-
size?: SizeValue;
|
39
|
-
tokens?: RecursivePartial<ButtonTokens>;
|
40
|
-
};
|
41
|
-
|
42
|
-
// @public
|
43
|
-
export const buttonShorthandProps: string[];
|
44
|
-
|
45
|
-
// @public (undocumented)
|
46
|
-
export const ButtonSizeVariants: {
|
47
|
-
size_smallest: {
|
48
|
-
height: string;
|
49
|
-
minHeight: string;
|
50
|
-
};
|
51
|
-
size_smaller: {
|
52
|
-
height: string;
|
53
|
-
minHeight: string;
|
54
|
-
};
|
55
|
-
size_small: {
|
56
|
-
height: string;
|
57
|
-
minHeight: string;
|
58
|
-
};
|
59
|
-
size_large: {
|
60
|
-
height: string;
|
61
|
-
minHeight: string;
|
62
|
-
};
|
63
|
-
size_larger: {
|
64
|
-
height: string;
|
65
|
-
minHeight: string;
|
66
|
-
};
|
67
|
-
size_largest: {
|
68
|
-
height: string;
|
69
|
-
minHeight: string;
|
70
|
-
};
|
71
|
-
};
|
72
|
-
|
73
|
-
// @public (undocumented)
|
74
|
-
export interface ButtonState extends ButtonProps {
|
75
|
-
// (undocumented)
|
76
|
-
buttonRef?: React.RefObject<HTMLButtonElement>;
|
77
|
-
}
|
78
|
-
|
79
|
-
// @public (undocumented)
|
80
|
-
export type ButtonTokens = ColorTokens & FontTokens & {
|
81
|
-
paddingLeft?: string;
|
82
|
-
paddingRight?: string;
|
83
|
-
paddingTop?: string;
|
84
|
-
paddingBottom?: string;
|
85
|
-
margin?: string;
|
86
|
-
height?: string;
|
87
|
-
minWidth?: string;
|
88
|
-
maxWidth?: string;
|
89
|
-
minHeight?: string;
|
90
|
-
contentGap?: string;
|
91
|
-
iconSize?: string;
|
92
|
-
borderRadius?: string;
|
93
|
-
borderTopLeftRadius?: string;
|
94
|
-
borderTopRightRadius?: string;
|
95
|
-
borderBottomLeftRadius?: string;
|
96
|
-
borderBottomRightRadius?: string;
|
97
|
-
borderWidth?: string;
|
98
|
-
boxShadow?: string;
|
99
|
-
width?: string;
|
100
|
-
forcedColorAdjust?: string;
|
101
|
-
transform?: string;
|
102
|
-
transition?: string;
|
103
|
-
size?: {
|
104
|
-
smallest?: string;
|
105
|
-
smaller?: string;
|
106
|
-
small?: string;
|
107
|
-
regular?: string;
|
108
|
-
large?: string;
|
109
|
-
larger?: string;
|
110
|
-
largest?: string;
|
111
|
-
};
|
112
|
-
pressed?: {
|
113
|
-
transform?: string;
|
114
|
-
transition?: string;
|
115
|
-
};
|
116
|
-
};
|
117
|
-
|
118
|
-
// @public (undocumented)
|
119
|
-
export type ButtonVariants<TTokens = ButtonTokens> = {
|
120
|
-
root?: TTokens;
|
121
|
-
block?: TTokens;
|
122
|
-
circular?: TTokens;
|
123
|
-
iconOnly?: TTokens;
|
124
|
-
ghost?: TTokens;
|
125
|
-
primary?: TTokens;
|
126
|
-
transparent?: TTokens;
|
127
|
-
};
|
128
|
-
|
129
|
-
// @public (undocumented)
|
130
|
-
export interface CheckedState {
|
131
|
-
// (undocumented)
|
132
|
-
'aria-checked'?: React.AriaAttributes['aria-pressed'];
|
133
|
-
// (undocumented)
|
134
|
-
'aria-pressed'?: React.AriaAttributes['aria-pressed'];
|
135
|
-
// (undocumented)
|
136
|
-
checked?: boolean;
|
137
|
-
// (undocumented)
|
138
|
-
defaultChecked?: boolean;
|
139
|
-
// (undocumented)
|
140
|
-
onClick?: React.DOMAttributes<HTMLElement>['onClick'];
|
141
|
-
// (undocumented)
|
142
|
-
role?: string;
|
143
|
-
}
|
144
|
-
|
145
|
-
// @public
|
146
|
-
export const CompoundButton: React.ForwardRefExoticComponent<Pick<CompoundButtonProps, string | number> & React.RefAttributes<HTMLElement>>;
|
147
|
-
|
148
|
-
// @public (undocumented)
|
149
|
-
export interface CompoundButtonProps extends ButtonProps {
|
150
|
-
contentContainer?: ShorthandProps;
|
151
|
-
secondaryContent?: ShorthandProps;
|
152
|
-
}
|
153
|
-
|
154
|
-
// @public
|
155
|
-
export const compoundButtonShorthandProps: string[];
|
156
|
-
|
157
|
-
// @public (undocumented)
|
158
|
-
export interface CompoundButtonState extends CompoundButtonProps {
|
159
|
-
}
|
160
|
-
|
161
|
-
// @public (undocumented)
|
162
|
-
export type CompoundButtonTokens = ButtonTokens & {
|
163
|
-
secondaryContentColor?: string;
|
164
|
-
secondaryContentFontSize?: string;
|
165
|
-
secondaryContentFontWeight?: string;
|
166
|
-
secondaryContentGap?: string;
|
167
|
-
};
|
168
|
-
|
169
|
-
// @public (undocumented)
|
170
|
-
export type CompoundButtonVariants = ButtonVariants<CompoundButtonTokens>;
|
171
|
-
|
172
|
-
// @public (undocumented)
|
173
|
-
export type ExpandedState = {
|
174
|
-
ref?: React.Ref<unknown>;
|
175
|
-
expanded?: boolean;
|
176
|
-
defaultExpanded?: boolean;
|
177
|
-
onClick?: (ev: React.MouseEvent) => void;
|
178
|
-
onMenuDismiss?: () => void;
|
179
|
-
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
180
|
-
'aria-expanded'?: React.HTMLAttributes<HTMLElement>['aria-expanded'];
|
181
|
-
'aria-haspopup'?: React.HTMLAttributes<HTMLElement>['aria-haspopup'];
|
182
|
-
menu?: MenuButtonState['menu'];
|
183
|
-
};
|
184
|
-
|
185
|
-
// @public
|
186
|
-
export const MenuButton: React.ForwardRefExoticComponent<Pick<MenuButtonProps, string | number> & React.RefAttributes<HTMLElement>>;
|
187
|
-
|
188
|
-
// @public (undocumented)
|
189
|
-
export type MenuButtonProps = Omit<ButtonProps, 'iconPosition' | 'loader'> & {
|
190
|
-
menu?: ShorthandProps;
|
191
|
-
menuIcon?: ShorthandProps;
|
192
|
-
defaultExpanded?: boolean;
|
193
|
-
expanded?: boolean;
|
194
|
-
onMenuDismiss?: () => void;
|
195
|
-
};
|
196
|
-
|
197
|
-
// @public (undocumented)
|
198
|
-
export const menuButtonShorthandProps: string[];
|
199
|
-
|
200
|
-
// @public (undocumented)
|
201
|
-
export interface MenuButtonState extends Omit<MenuButtonProps, 'menu'>, Omit<ButtonState, 'iconPosition' | 'loader'> {
|
202
|
-
// (undocumented)
|
203
|
-
menu?: React.PropsWithChildren<MinimalMenuProps>;
|
204
|
-
}
|
205
|
-
|
206
|
-
// @public (undocumented)
|
207
|
-
export type MenuButtonTokens = ButtonTokens & {
|
208
|
-
menuIconColor?: string;
|
209
|
-
menuIconSize?: string;
|
210
|
-
};
|
211
|
-
|
212
|
-
// @public (undocumented)
|
213
|
-
export type MenuButtonVariants = ButtonVariants<MenuButtonTokens>;
|
214
|
-
|
215
|
-
// @public (undocumented)
|
216
|
-
export type MinimalMenuProps = {
|
217
|
-
hidden?: boolean;
|
218
|
-
onDismiss?: () => void;
|
219
|
-
target?: React.Ref<HTMLElement | undefined>;
|
220
|
-
};
|
221
|
-
|
222
|
-
// @public
|
223
|
-
export const SplitButton: React.ForwardRefExoticComponent<Pick<SplitButtonProps, string | number> & React.RefAttributes<HTMLElement>>;
|
224
|
-
|
225
|
-
// @public (undocumented)
|
226
|
-
export interface SplitButtonProps extends ButtonProps, MenuButtonProps {
|
227
|
-
button?: ShorthandProps;
|
228
|
-
divider?: ShorthandProps;
|
229
|
-
menuButton?: ShorthandProps;
|
230
|
-
}
|
231
|
-
|
232
|
-
// @public (undocumented)
|
233
|
-
export const splitButtonShorthandProps: string[];
|
234
|
-
|
235
|
-
// @public (undocumented)
|
236
|
-
export interface SplitButtonState extends Omit<SplitButtonProps, 'menu'>, MenuButtonState {
|
237
|
-
// (undocumented)
|
238
|
-
menuButtonRef?: React.RefObject<HTMLButtonElement>;
|
239
|
-
}
|
240
|
-
|
241
|
-
// @public (undocumented)
|
242
|
-
export type SplitButtonTokens = MenuButtonTokens & {
|
243
|
-
dividerColor?: string;
|
244
|
-
dividerThickness?: string;
|
245
|
-
};
|
246
|
-
|
247
|
-
// @public (undocumented)
|
248
|
-
export type SplitButtonVariants = ButtonVariants<SplitButtonTokens>;
|
249
|
-
|
250
|
-
// @public
|
251
|
-
export const ToggleButton: React.ForwardRefExoticComponent<Pick<ToggleButtonProps, string | number> & React.RefAttributes<HTMLElement>>;
|
252
|
-
|
253
|
-
// @public (undocumented)
|
254
|
-
export interface ToggleButtonProps extends ButtonProps {
|
255
|
-
checked?: boolean;
|
256
|
-
defaultChecked?: boolean;
|
257
|
-
}
|
258
|
-
|
259
|
-
// @public (undocumented)
|
260
|
-
export interface ToggleButtonState extends ToggleButtonProps {
|
261
|
-
}
|
262
|
-
|
263
|
-
// @public (undocumented)
|
264
|
-
export type ToggleButtonTokens = ButtonTokens;
|
265
|
-
|
266
|
-
// @public (undocumented)
|
267
|
-
export type ToggleButtonVariants = ButtonVariants<ToggleButtonTokens>;
|
268
|
-
|
269
|
-
// @public
|
270
|
-
export const useButton: (props: ButtonProps, ref: React.Ref<HTMLElement>, defaultProps?: ButtonProps | undefined) => {
|
271
|
-
state: Record<string, any>;
|
272
|
-
render: (state: import("./Button.types").ButtonState) => JSX.Element;
|
273
|
-
};
|
274
|
-
|
275
|
-
// @public (undocumented)
|
276
|
-
export const useButtonClasses: (state: ButtonState, theme?: Theme | undefined, renderer?: import("@fluentui/react-theme-provider").StyleRenderer | undefined) => void;
|
277
|
-
|
278
|
-
// @public
|
279
|
-
export const useButtonState: (draftState: ButtonState) => void;
|
280
|
-
|
281
|
-
// @public
|
282
|
-
export const useChecked: <TDraftState extends CheckedState>(draftState: TDraftState) => void;
|
283
|
-
|
284
|
-
// @public (undocumented)
|
285
|
-
export const useClasses: (state: CompoundButtonState, theme?: Theme | undefined, renderer?: import("@fluentui/react-theme-provider").StyleRenderer | undefined) => void;
|
286
|
-
|
287
|
-
// @public
|
288
|
-
export const useCompoundButton: (props: CompoundButtonProps, ref: React.Ref<HTMLElement>, defaultProps?: CompoundButtonProps | undefined) => {
|
289
|
-
state: Record<string, any>;
|
290
|
-
render: (state: import("./CompoundButton.types").CompoundButtonState) => JSX.Element;
|
291
|
-
};
|
292
|
-
|
293
|
-
// @public (undocumented)
|
294
|
-
export const useCompoundButtonClasses: (state: CompoundButtonState) => void;
|
295
|
-
|
296
|
-
// @public (undocumented)
|
297
|
-
export const useExpanded: <TDraftState extends ExpandedState>(draftState: TDraftState) => void;
|
298
|
-
|
299
|
-
// @public
|
300
|
-
export const useMenuButton: (props: MenuButtonProps, ref: React.Ref<HTMLElement>, defaultProps?: MenuButtonProps | undefined) => {
|
301
|
-
state: MenuButtonState;
|
302
|
-
render: (state: MenuButtonState) => JSX.Element;
|
303
|
-
};
|
304
|
-
|
305
|
-
// @public (undocumented)
|
306
|
-
export const useMenuButtonClasses: (state: MenuButtonState, theme?: Theme | undefined, renderer?: import("@fluentui/react-theme-provider").StyleRenderer | undefined) => void;
|
307
|
-
|
308
|
-
// @public (undocumented)
|
309
|
-
export const useMenuButtonState: (state: MenuButtonState) => void;
|
310
|
-
|
311
|
-
// @public (undocumented)
|
312
|
-
export const useMenuContext: () => MinimalMenuProps;
|
313
|
-
|
314
|
-
// @public
|
315
|
-
export const useSplitButton: (props: SplitButtonProps, ref: React.Ref<HTMLElement>, defaultProps?: SplitButtonProps | undefined) => {
|
316
|
-
state: SplitButtonState;
|
317
|
-
render: (state: SplitButtonState) => JSX.Element;
|
318
|
-
};
|
319
|
-
|
320
|
-
// @public (undocumented)
|
321
|
-
export const useSplitButtonClasses: (state: SplitButtonState, theme?: Theme | undefined, renderer?: import("@fluentui/react-theme-provider").StyleRenderer | undefined) => void;
|
322
|
-
|
323
|
-
// @public (undocumented)
|
324
|
-
export const useToggleButton: (props: ToggleButtonProps, ref: React.Ref<HTMLElement>, defaultProps?: ToggleButtonProps | undefined) => {
|
325
|
-
state: Record<string, any>;
|
326
|
-
render: (state: import("../Button").ButtonState) => JSX.Element;
|
327
|
-
};
|
328
|
-
|
329
|
-
// @public (undocumented)
|
330
|
-
export const useToggleButtonClasses: (state: ToggleButtonState, theme?: Theme | undefined, renderer?: import("@fluentui/react-theme-provider").StyleRenderer | undefined) => void;
|
331
|
-
|
332
|
-
|
333
|
-
// (No @packageDocumentation comment for this package)
|
334
|
-
|
335
|
-
```
|
package/just.config.ts
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
import { Theme } from '@fluentui/react-theme-provider';
|
2
|
-
import { ButtonState } from './Button.types';
|
3
|
-
export declare const ButtonSizeVariants: {
|
4
|
-
size_smallest: {
|
5
|
-
height: string;
|
6
|
-
minHeight: string;
|
7
|
-
};
|
8
|
-
size_smaller: {
|
9
|
-
height: string;
|
10
|
-
minHeight: string;
|
11
|
-
};
|
12
|
-
size_small: {
|
13
|
-
height: string;
|
14
|
-
minHeight: string;
|
15
|
-
};
|
16
|
-
size_large: {
|
17
|
-
height: string;
|
18
|
-
minHeight: string;
|
19
|
-
};
|
20
|
-
size_larger: {
|
21
|
-
height: string;
|
22
|
-
minHeight: string;
|
23
|
-
};
|
24
|
-
size_largest: {
|
25
|
-
height: string;
|
26
|
-
minHeight: string;
|
27
|
-
};
|
28
|
-
};
|
29
|
-
export declare const useButtonClasses: (state: ButtonState, theme?: Theme | undefined, renderer?: import("@fluentui/react-theme-provider").StyleRenderer | undefined) => void;
|