@workday/canvas-kit-react 7.0.0-alpha.0-next.7 → 7.0.0-alpha.80-next.8
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/badge/README.md +2 -3
- package/banner/lib/BannerIcon.tsx +2 -2
- package/button/README.md +68 -1
- package/button/index.ts +1 -1
- package/button/lib/{parts/ButtonContainer.tsx → BaseButton.tsx} +123 -66
- package/button/lib/DeleteButton.tsx +7 -4
- package/button/lib/PrimaryButton.tsx +86 -109
- package/button/lib/SecondaryButton.tsx +41 -64
- package/button/lib/TertiaryButton.tsx +86 -53
- package/button/lib/ToolbarDropdownButton.tsx +12 -11
- package/button/lib/ToolbarIconButton.tsx +22 -17
- package/button/lib/parts/ButtonLabel.tsx +17 -2
- package/button/lib/parts/ButtonLabelIcon.tsx +30 -54
- package/button/lib/parts/index.tsx +0 -2
- package/button/lib/types.ts +2 -2
- package/card/lib/Card.tsx +1 -1
- package/common/lib/parts/_brand-assets.ts +5 -5
- package/common/lib/utils/StaticStates.tsx +6 -5
- package/dist/commonjs/banner/lib/BannerIcon.js +2 -2
- package/dist/commonjs/button/index.d.ts +1 -1
- package/dist/commonjs/button/index.d.ts.map +1 -1
- package/dist/commonjs/button/index.js +3 -3
- package/dist/commonjs/button/lib/BaseButton.d.ts +31 -0
- package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -0
- package/dist/commonjs/button/lib/BaseButton.js +198 -0
- package/dist/commonjs/button/lib/DeleteButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/DeleteButton.js +4 -3
- package/dist/commonjs/button/lib/PrimaryButton.d.ts +4 -76
- package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.js +15 -36
- package/dist/commonjs/button/lib/SecondaryButton.d.ts +0 -5
- package/dist/commonjs/button/lib/SecondaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/SecondaryButton.js +13 -36
- package/dist/commonjs/button/lib/TertiaryButton.d.ts +2 -2
- package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/TertiaryButton.js +66 -38
- package/dist/commonjs/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/ToolbarDropdownButton.js +7 -7
- package/dist/commonjs/button/lib/ToolbarIconButton.d.ts +5 -2
- package/dist/commonjs/button/lib/ToolbarIconButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/ToolbarIconButton.js +5 -11
- package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +4 -4
- package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts.map +1 -1
- package/dist/commonjs/button/lib/parts/ButtonLabel.js +35 -1
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +13 -62
- package/dist/commonjs/button/lib/parts/index.d.ts +0 -2
- package/dist/commonjs/button/lib/parts/index.d.ts.map +1 -1
- package/dist/commonjs/button/lib/parts/index.js +1 -5
- package/dist/commonjs/button/lib/types.d.ts +2 -2
- package/dist/commonjs/button/lib/types.d.ts.map +1 -1
- package/dist/commonjs/card/lib/Card.js +1 -1
- package/dist/commonjs/common/lib/parts/_brand-assets.d.ts.map +1 -1
- package/dist/commonjs/common/lib/parts/_brand-assets.js +5 -5
- package/dist/commonjs/common/lib/utils/StaticStates.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/StaticStates.js +5 -2
- package/dist/commonjs/icon/lib/AccentIcon.d.ts +3 -5
- package/dist/commonjs/icon/lib/AccentIcon.d.ts.map +1 -1
- package/dist/commonjs/icon/lib/AccentIcon.js +8 -24
- package/dist/commonjs/icon/lib/AppletIcon.d.ts +5 -6
- package/dist/commonjs/icon/lib/AppletIcon.d.ts.map +1 -1
- package/dist/commonjs/icon/lib/AppletIcon.js +13 -27
- package/dist/commonjs/icon/lib/Graphic.d.ts +3 -5
- package/dist/commonjs/icon/lib/Graphic.d.ts.map +1 -1
- package/dist/commonjs/icon/lib/Graphic.js +8 -24
- package/dist/commonjs/icon/lib/Icon.d.ts +2 -5
- package/dist/commonjs/icon/lib/Icon.d.ts.map +1 -1
- package/dist/commonjs/icon/lib/Icon.js +10 -25
- package/dist/commonjs/icon/lib/Svg.d.ts +4 -6
- package/dist/commonjs/icon/lib/Svg.d.ts.map +1 -1
- package/dist/commonjs/icon/lib/Svg.js +11 -27
- package/dist/commonjs/icon/lib/SystemIcon.d.ts +5 -6
- package/dist/commonjs/icon/lib/SystemIcon.d.ts.map +1 -1
- package/dist/commonjs/icon/lib/SystemIcon.js +8 -24
- package/dist/commonjs/icon/lib/SystemIconCircle.d.ts +3 -6
- package/dist/commonjs/icon/lib/SystemIconCircle.d.ts.map +1 -1
- package/dist/commonjs/icon/lib/SystemIconCircle.js +7 -25
- package/dist/commonjs/layout/lib/Box.d.ts +18 -1
- package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Box.js +42 -2
- package/dist/commonjs/layout/lib/Flex.d.ts +1 -1
- package/dist/commonjs/layout/lib/Flex.js +1 -1
- package/dist/commonjs/modal/lib/ModalCard.js +1 -1
- package/dist/commonjs/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Controls.d.ts +2 -2
- package/dist/commonjs/pagination/lib/Pagination/Controls.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Controls.js +4 -4
- package/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts +1 -2
- package/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageButton.js +34 -9
- package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/PopupCard.js +1 -1
- package/dist/commonjs/popup/lib/PopupCloseIcon.d.ts +2 -2
- package/dist/commonjs/popup/lib/PopupCloseIcon.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/PopupCloseIcon.js +5 -6
- package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.js +4 -0
- package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +9 -7
- package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControl.js +21 -57
- package/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
- package/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts.map +1 -0
- package/dist/commonjs/segmented-control/lib/SegmentedControlButton.js +106 -0
- package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
- package/dist/commonjs/side-panel/lib/SidePanel.js +2 -2
- package/dist/commonjs/tabs/lib/Tabs.d.ts +2 -2
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -2
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsList.js +1 -1
- package/dist/commonjs/tabs/lib/menu/Menu.d.ts +1 -1
- package/dist/commonjs/tabs/lib/menu/MenuItem.d.ts +1 -2
- package/dist/commonjs/tabs/lib/menu/MenuItem.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/InputIconContainer.d.ts +1 -1
- package/dist/commonjs/text-input/lib/InputIconContainer.d.ts.map +1 -1
- package/dist/commonjs/toast/lib/Toast.d.ts.map +1 -1
- package/dist/commonjs/toast/lib/Toast.js +1 -1
- package/dist/commonjs/tokens/lib/depth.d.ts +48 -17
- package/dist/commonjs/tokens/lib/depth.d.ts.map +1 -1
- package/dist/commonjs/tokens/lib/depth.js +14 -9
- package/dist/commonjs/tooltip/lib/Tooltip.d.ts +1 -1
- package/dist/commonjs/tooltip/lib/useTooltip.d.ts +1 -1
- package/dist/es6/banner/lib/BannerIcon.js +2 -2
- package/dist/es6/button/index.d.ts +1 -1
- package/dist/es6/button/index.d.ts.map +1 -1
- package/dist/es6/button/index.js +1 -1
- package/dist/es6/button/lib/BaseButton.d.ts +31 -0
- package/dist/es6/button/lib/BaseButton.d.ts.map +1 -0
- package/dist/es6/button/lib/BaseButton.js +174 -0
- package/dist/es6/button/lib/DeleteButton.d.ts.map +1 -1
- package/dist/es6/button/lib/DeleteButton.js +4 -3
- package/dist/es6/button/lib/PrimaryButton.d.ts +4 -76
- package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/PrimaryButton.js +15 -35
- package/dist/es6/button/lib/SecondaryButton.d.ts +0 -5
- package/dist/es6/button/lib/SecondaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/SecondaryButton.js +13 -36
- package/dist/es6/button/lib/TertiaryButton.d.ts +2 -2
- package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/TertiaryButton.js +68 -40
- package/dist/es6/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
- package/dist/es6/button/lib/ToolbarDropdownButton.js +8 -8
- package/dist/es6/button/lib/ToolbarIconButton.d.ts +5 -2
- package/dist/es6/button/lib/ToolbarIconButton.d.ts.map +1 -1
- package/dist/es6/button/lib/ToolbarIconButton.js +7 -13
- package/dist/es6/button/lib/parts/ButtonLabel.d.ts +4 -4
- package/dist/es6/button/lib/parts/ButtonLabel.d.ts.map +1 -1
- package/dist/es6/button/lib/parts/ButtonLabel.js +33 -2
- package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
- package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
- package/dist/es6/button/lib/parts/ButtonLabelIcon.js +13 -42
- package/dist/es6/button/lib/parts/index.d.ts +0 -2
- package/dist/es6/button/lib/parts/index.d.ts.map +1 -1
- package/dist/es6/button/lib/parts/index.js +0 -2
- package/dist/es6/button/lib/types.d.ts +2 -2
- package/dist/es6/button/lib/types.d.ts.map +1 -1
- package/dist/es6/card/lib/Card.js +1 -1
- package/dist/es6/common/lib/parts/_brand-assets.d.ts.map +1 -1
- package/dist/es6/common/lib/parts/_brand-assets.js +5 -5
- package/dist/es6/common/lib/utils/StaticStates.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/StaticStates.js +5 -2
- package/dist/es6/icon/lib/AccentIcon.d.ts +3 -5
- package/dist/es6/icon/lib/AccentIcon.d.ts.map +1 -1
- package/dist/es6/icon/lib/AccentIcon.js +8 -24
- package/dist/es6/icon/lib/AppletIcon.d.ts +5 -6
- package/dist/es6/icon/lib/AppletIcon.d.ts.map +1 -1
- package/dist/es6/icon/lib/AppletIcon.js +11 -25
- package/dist/es6/icon/lib/Graphic.d.ts +3 -5
- package/dist/es6/icon/lib/Graphic.d.ts.map +1 -1
- package/dist/es6/icon/lib/Graphic.js +8 -24
- package/dist/es6/icon/lib/Icon.d.ts +2 -5
- package/dist/es6/icon/lib/Icon.d.ts.map +1 -1
- package/dist/es6/icon/lib/Icon.js +8 -24
- package/dist/es6/icon/lib/Svg.d.ts +4 -6
- package/dist/es6/icon/lib/Svg.d.ts.map +1 -1
- package/dist/es6/icon/lib/Svg.js +10 -27
- package/dist/es6/icon/lib/SystemIcon.d.ts +5 -6
- package/dist/es6/icon/lib/SystemIcon.d.ts.map +1 -1
- package/dist/es6/icon/lib/SystemIcon.js +8 -24
- package/dist/es6/icon/lib/SystemIconCircle.d.ts +3 -6
- package/dist/es6/icon/lib/SystemIconCircle.d.ts.map +1 -1
- package/dist/es6/icon/lib/SystemIconCircle.js +8 -26
- package/dist/es6/layout/lib/Box.d.ts +18 -1
- package/dist/es6/layout/lib/Box.d.ts.map +1 -1
- package/dist/es6/layout/lib/Box.js +40 -1
- package/dist/es6/layout/lib/Flex.d.ts +1 -1
- package/dist/es6/layout/lib/Flex.js +1 -1
- package/dist/es6/modal/lib/ModalCard.js +1 -1
- package/dist/es6/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/es6/pagination/lib/Pagination/Controls.d.ts +2 -2
- package/dist/es6/pagination/lib/Pagination/Controls.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/Controls.js +5 -5
- package/dist/es6/pagination/lib/Pagination/PageButton.d.ts +1 -2
- package/dist/es6/pagination/lib/Pagination/PageButton.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/PageButton.js +35 -10
- package/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/dist/es6/pagination/lib/Pagination/Pagination.d.ts.map +1 -1
- package/dist/es6/popup/lib/PopupCard.js +1 -1
- package/dist/es6/popup/lib/PopupCloseIcon.d.ts +2 -2
- package/dist/es6/popup/lib/PopupCloseIcon.d.ts.map +1 -1
- package/dist/es6/popup/lib/PopupCloseIcon.js +6 -7
- package/dist/es6/popup/lib/hooks/useDisableBodyScroll.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/useDisableBodyScroll.js +4 -0
- package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +9 -7
- package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControl.js +20 -57
- package/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
- package/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts.map +1 -0
- package/dist/es6/segmented-control/lib/SegmentedControlButton.js +100 -0
- package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
- package/dist/es6/side-panel/lib/SidePanel.js +3 -3
- package/dist/es6/tabs/lib/Tabs.d.ts +2 -2
- package/dist/es6/tabs/lib/TabsItem.d.ts +1 -2
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsList.js +1 -1
- package/dist/es6/tabs/lib/menu/Menu.d.ts +1 -1
- package/dist/es6/tabs/lib/menu/MenuItem.d.ts +1 -2
- package/dist/es6/tabs/lib/menu/MenuItem.d.ts.map +1 -1
- package/dist/es6/text-input/lib/InputIconContainer.d.ts +1 -1
- package/dist/es6/text-input/lib/InputIconContainer.d.ts.map +1 -1
- package/dist/es6/toast/lib/Toast.d.ts.map +1 -1
- package/dist/es6/toast/lib/Toast.js +1 -1
- package/dist/es6/tokens/lib/depth.d.ts +48 -17
- package/dist/es6/tokens/lib/depth.d.ts.map +1 -1
- package/dist/es6/tokens/lib/depth.js +14 -9
- package/dist/es6/tooltip/lib/Tooltip.d.ts +1 -1
- package/dist/es6/tooltip/lib/useTooltip.d.ts +1 -1
- package/icon/README.md +0 -30
- package/icon/lib/AccentIcon.tsx +17 -16
- package/icon/lib/AppletIcon.tsx +18 -12
- package/icon/lib/Graphic.tsx +15 -8
- package/icon/lib/Icon.tsx +10 -8
- package/icon/lib/Svg.tsx +12 -14
- package/icon/lib/SystemIcon.tsx +21 -12
- package/icon/lib/SystemIconCircle.tsx +17 -14
- package/layout/lib/Box.tsx +41 -1
- package/layout/lib/Flex.tsx +1 -1
- package/modal/lib/ModalCard.tsx +1 -1
- package/modal/lib/ModalOverflowOverlay.tsx +1 -1
- package/package.json +5 -5
- package/pagination/lib/Pagination/Controls.tsx +6 -10
- package/pagination/lib/Pagination/PageButton.tsx +38 -17
- package/pagination/lib/Pagination/Pagination.tsx +5 -5
- package/popup/lib/PopupCard.tsx +1 -1
- package/popup/lib/PopupCloseIcon.tsx +7 -8
- package/popup/lib/hooks/useDisableBodyScroll.ts +6 -0
- package/segmented-control/README.md +8 -9
- package/segmented-control/lib/SegmentedControl.tsx +39 -78
- package/segmented-control/lib/SegmentedControlButton.tsx +109 -0
- package/side-panel/README.md +3 -3
- package/side-panel/lib/SidePanel.tsx +4 -5
- package/tabs/lib/TabsList.tsx +1 -1
- package/text-input/lib/InputIconContainer.tsx +1 -1
- package/toast/lib/Toast.tsx +1 -0
- package/tokens/README.md +11 -8
- package/tokens/lib/depth.ts +60 -24
- package/tooltip/README.md +6 -5
- package/tooltip/lib/Tooltip.tsx +1 -1
- package/tooltip/lib/useTooltip.tsx +1 -1
- package/ts3.5/dist/commonjs/button/index.d.ts +1 -1
- package/ts3.5/dist/commonjs/button/lib/BaseButton.d.ts +31 -0
- package/ts3.5/dist/commonjs/button/lib/PrimaryButton.d.ts +4 -76
- package/ts3.5/dist/commonjs/button/lib/SecondaryButton.d.ts +0 -5
- package/ts3.5/dist/commonjs/button/lib/TertiaryButton.d.ts +2 -2
- package/ts3.5/dist/commonjs/button/lib/ToolbarIconButton.d.ts +5 -2
- package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +4 -4
- package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
- package/ts3.5/dist/commonjs/button/lib/parts/index.d.ts +0 -2
- package/ts3.5/dist/commonjs/button/lib/types.d.ts +2 -2
- package/ts3.5/dist/commonjs/icon/lib/AccentIcon.d.ts +3 -5
- package/ts3.5/dist/commonjs/icon/lib/AppletIcon.d.ts +5 -6
- package/ts3.5/dist/commonjs/icon/lib/Graphic.d.ts +3 -5
- package/ts3.5/dist/commonjs/icon/lib/Icon.d.ts +2 -5
- package/ts3.5/dist/commonjs/icon/lib/Svg.d.ts +4 -6
- package/ts3.5/dist/commonjs/icon/lib/SystemIcon.d.ts +5 -6
- package/ts3.5/dist/commonjs/icon/lib/SystemIconCircle.d.ts +3 -6
- package/ts3.5/dist/commonjs/layout/lib/Box.d.ts +18 -1
- package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +1 -1
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/Controls.d.ts +2 -2
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts +1 -2
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/ts3.5/dist/commonjs/popup/lib/PopupCloseIcon.d.ts +2 -2
- package/ts3.5/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +9 -7
- package/ts3.5/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
- package/ts3.5/dist/commonjs/tabs/lib/Tabs.d.ts +2 -2
- package/ts3.5/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -2
- package/ts3.5/dist/commonjs/tabs/lib/menu/Menu.d.ts +1 -1
- package/ts3.5/dist/commonjs/tabs/lib/menu/MenuItem.d.ts +1 -2
- package/ts3.5/dist/commonjs/text-input/lib/InputIconContainer.d.ts +1 -1
- package/ts3.5/dist/commonjs/tokens/lib/depth.d.ts +48 -17
- package/ts3.5/dist/commonjs/tooltip/lib/Tooltip.d.ts +1 -1
- package/ts3.5/dist/commonjs/tooltip/lib/useTooltip.d.ts +1 -1
- package/ts3.5/dist/es6/button/index.d.ts +1 -1
- package/ts3.5/dist/es6/button/lib/BaseButton.d.ts +31 -0
- package/ts3.5/dist/es6/button/lib/PrimaryButton.d.ts +4 -76
- package/ts3.5/dist/es6/button/lib/SecondaryButton.d.ts +0 -5
- package/ts3.5/dist/es6/button/lib/TertiaryButton.d.ts +2 -2
- package/ts3.5/dist/es6/button/lib/ToolbarIconButton.d.ts +5 -2
- package/ts3.5/dist/es6/button/lib/parts/ButtonLabel.d.ts +4 -4
- package/ts3.5/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
- package/ts3.5/dist/es6/button/lib/parts/index.d.ts +0 -2
- package/ts3.5/dist/es6/button/lib/types.d.ts +2 -2
- package/ts3.5/dist/es6/icon/lib/AccentIcon.d.ts +3 -5
- package/ts3.5/dist/es6/icon/lib/AppletIcon.d.ts +5 -6
- package/ts3.5/dist/es6/icon/lib/Graphic.d.ts +3 -5
- package/ts3.5/dist/es6/icon/lib/Icon.d.ts +2 -5
- package/ts3.5/dist/es6/icon/lib/Svg.d.ts +4 -6
- package/ts3.5/dist/es6/icon/lib/SystemIcon.d.ts +5 -6
- package/ts3.5/dist/es6/icon/lib/SystemIconCircle.d.ts +3 -6
- package/ts3.5/dist/es6/layout/lib/Box.d.ts +18 -1
- package/ts3.5/dist/es6/layout/lib/Flex.d.ts +1 -1
- package/ts3.5/dist/es6/pagination/lib/Pagination/Controls.d.ts +2 -2
- package/ts3.5/dist/es6/pagination/lib/Pagination/PageButton.d.ts +1 -2
- package/ts3.5/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/ts3.5/dist/es6/popup/lib/PopupCloseIcon.d.ts +2 -2
- package/ts3.5/dist/es6/segmented-control/lib/SegmentedControl.d.ts +9 -7
- package/ts3.5/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
- package/ts3.5/dist/es6/tabs/lib/Tabs.d.ts +2 -2
- package/ts3.5/dist/es6/tabs/lib/TabsItem.d.ts +1 -2
- package/ts3.5/dist/es6/tabs/lib/menu/Menu.d.ts +1 -1
- package/ts3.5/dist/es6/tabs/lib/menu/MenuItem.d.ts +1 -2
- package/ts3.5/dist/es6/text-input/lib/InputIconContainer.d.ts +1 -1
- package/ts3.5/dist/es6/tokens/lib/depth.d.ts +48 -17
- package/ts3.5/dist/es6/tooltip/lib/Tooltip.d.ts +1 -1
- package/ts3.5/dist/es6/tooltip/lib/useTooltip.d.ts +1 -1
- package/button/lib/IconButton.tsx +0 -279
- package/button/lib/parts/ButtonLabelData.tsx +0 -16
- package/dist/commonjs/button/lib/IconButton.d.ts +0 -44
- package/dist/commonjs/button/lib/IconButton.d.ts.map +0 -1
- package/dist/commonjs/button/lib/IconButton.js +0 -219
- package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +0 -33
- package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts.map +0 -1
- package/dist/commonjs/button/lib/parts/ButtonContainer.js +0 -126
- package/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts +0 -3
- package/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts.map +0 -1
- package/dist/commonjs/button/lib/parts/ButtonLabelData.js +0 -45
- package/dist/es6/button/lib/IconButton.d.ts +0 -44
- package/dist/es6/button/lib/IconButton.d.ts.map +0 -1
- package/dist/es6/button/lib/IconButton.js +0 -197
- package/dist/es6/button/lib/parts/ButtonContainer.d.ts +0 -33
- package/dist/es6/button/lib/parts/ButtonContainer.d.ts.map +0 -1
- package/dist/es6/button/lib/parts/ButtonContainer.js +0 -120
- package/dist/es6/button/lib/parts/ButtonLabelData.d.ts +0 -3
- package/dist/es6/button/lib/parts/ButtonLabelData.d.ts.map +0 -1
- package/dist/es6/button/lib/parts/ButtonLabelData.js +0 -22
- package/ts3.5/dist/commonjs/button/lib/IconButton.d.ts +0 -44
- package/ts3.5/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +0 -33
- package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts +0 -3
- package/ts3.5/dist/es6/button/lib/IconButton.d.ts +0 -44
- package/ts3.5/dist/es6/button/lib/parts/ButtonContainer.d.ts +0 -33
- package/ts3.5/dist/es6/button/lib/parts/ButtonLabelData.d.ts +0 -3
|
@@ -23,34 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import { useTheme, createComponent, focusRing, } from '@workday/canvas-kit-react/common';
|
|
25
25
|
import { colors } from '@workday/canvas-kit-react/tokens';
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
var dataLabelSizes = ['medium', 'large'];
|
|
29
|
-
// All disabled buttons are set to 40% opacity.
|
|
30
|
-
// This will eventually live in the ButtonContainer styles, but for now we're scoping it to Primary, Secondary, and Tertiary buttons.
|
|
31
|
-
var disabledButtonOpacity = {
|
|
32
|
-
'&:disabled, &:disabled:active': {
|
|
33
|
-
opacity: 0.4,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
export var PrimaryButton = createComponent('button')({
|
|
37
|
-
displayName: 'PrimaryButton',
|
|
38
|
-
Component: function (_a, ref, Element) {
|
|
39
|
-
var
|
|
40
|
-
// TODO: Fix useTheme and make it a real hook
|
|
41
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
42
|
-
_b = _a.theme,
|
|
43
|
-
// TODO: Fix useTheme and make it a real hook
|
|
44
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
45
|
-
theme = _b === void 0 ? useTheme() : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.iconPosition, iconPosition = _d === void 0 ? 'left' : _d, variant = _a.variant, dataLabel = _a.dataLabel, icon = _a.icon, _e = _a.shouldMirrorIcon, shouldMirrorIcon = _e === void 0 ? false : _e, children = _a.children, elemProps = __rest(_a, ["theme", "size", "iconPosition", "variant", "dataLabel", "icon", "shouldMirrorIcon", "children"]);
|
|
46
|
-
return (React.createElement(ButtonContainer, __assign({ ref: ref, as: Element, colors: getPrimaryButtonColors(variant, theme), size: size, extraStyles: disabledButtonOpacity }, elemProps),
|
|
47
|
-
icon && iconPosition === 'left' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
|
|
48
|
-
React.createElement(ButtonLabel, null, children),
|
|
49
|
-
dataLabel && dataLabelSizes.includes(size) && React.createElement(ButtonLabelData, null, dataLabel),
|
|
50
|
-
icon && iconPosition === 'right' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
export var getPrimaryButtonColors = function (variant, theme) {
|
|
26
|
+
import { BaseButton, getMinWidthStyles, getPaddingStyles } from './BaseButton';
|
|
27
|
+
var getPrimaryButtonColors = function (variant, theme) {
|
|
54
28
|
var themePrimary = theme.canvas.palette.primary;
|
|
55
29
|
switch (variant) {
|
|
56
30
|
case undefined:
|
|
@@ -80,29 +54,25 @@ export var getPrimaryButtonColors = function (variant, theme) {
|
|
|
80
54
|
background: colors.frenchVanilla100,
|
|
81
55
|
icon: colors.blackPepper400,
|
|
82
56
|
label: colors.blackPepper400,
|
|
83
|
-
labelData: colors.blackPepper400,
|
|
84
57
|
},
|
|
85
58
|
hover: {
|
|
86
59
|
background: colors.soap300,
|
|
87
60
|
icon: colors.blackPepper500,
|
|
88
61
|
label: colors.blackPepper500,
|
|
89
|
-
labelData: colors.blackPepper500,
|
|
90
62
|
},
|
|
91
63
|
active: {
|
|
92
|
-
background: colors.
|
|
64
|
+
background: colors.soap400,
|
|
93
65
|
icon: colors.blackPepper500,
|
|
94
66
|
label: colors.blackPepper500,
|
|
95
|
-
labelData: colors.blackPepper500,
|
|
96
67
|
},
|
|
97
68
|
focus: {
|
|
98
69
|
background: colors.frenchVanilla100,
|
|
99
70
|
border: colors.blackPepper400,
|
|
100
71
|
icon: colors.blackPepper400,
|
|
101
72
|
label: colors.blackPepper400,
|
|
102
|
-
labelData: colors.blackPepper400,
|
|
103
73
|
focusRing: focusRing({
|
|
104
74
|
separation: 1,
|
|
105
|
-
innerColor: colors.
|
|
75
|
+
innerColor: colors.blackPepper400,
|
|
106
76
|
outerColor: colors.frenchVanilla100,
|
|
107
77
|
}, theme),
|
|
108
78
|
},
|
|
@@ -111,8 +81,18 @@ export var getPrimaryButtonColors = function (variant, theme) {
|
|
|
111
81
|
background: colors.frenchVanilla100,
|
|
112
82
|
icon: colors.blackPepper400,
|
|
113
83
|
label: colors.blackPepper400,
|
|
114
|
-
labelData: colors.blackPepper400,
|
|
115
84
|
},
|
|
116
85
|
};
|
|
117
86
|
}
|
|
118
87
|
};
|
|
88
|
+
export var PrimaryButton = createComponent('button')({
|
|
89
|
+
displayName: 'PrimaryButton',
|
|
90
|
+
Component: function (_a, ref, Element) {
|
|
91
|
+
var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? 'start' : _c, variant = _a.variant, icon = _a.icon, _d = _a.shouldMirrorIcon, shouldMirrorIcon = _d === void 0 ? false : _d, children = _a.children, elemProps = __rest(_a, ["size", "iconPosition", "variant", "icon", "shouldMirrorIcon", "children"]);
|
|
92
|
+
var theme = useTheme();
|
|
93
|
+
return (React.createElement(BaseButton, __assign({ ref: ref, size: size, colors: getPrimaryButtonColors(variant, theme), padding: getPaddingStyles(children, size, icon, iconPosition), minWidth: getMinWidthStyles(children, size), as: Element }, elemProps),
|
|
94
|
+
icon && iconPosition === 'start' && (React.createElement(BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
|
|
95
|
+
children && React.createElement(BaseButton.Label, null, children),
|
|
96
|
+
icon && iconPosition === 'end' && (React.createElement(BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
|
|
97
|
+
},
|
|
98
|
+
});
|
|
@@ -15,11 +15,6 @@ export interface SecondaryButtonProps extends Themeable, GrowthBehavior {
|
|
|
15
15
|
* @default 'medium'
|
|
16
16
|
*/
|
|
17
17
|
size?: ButtonSizes;
|
|
18
|
-
/**
|
|
19
|
-
* The data label of the Button.
|
|
20
|
-
* Note: not displayed at `small` size
|
|
21
|
-
*/
|
|
22
|
-
dataLabel?: String;
|
|
23
18
|
/**
|
|
24
19
|
* The icon of the Button.
|
|
25
20
|
* Note: not displayed at `small` size
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/SecondaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,cAAc,EAEd,SAAS,EACT,kBAAkB,EAGnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,oBAAqB,SAAQ,SAAS,EAAE,cAAc;IACrE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"SecondaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/SecondaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,cAAc,EAEd,SAAS,EACT,kBAAkB,EAGnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,oBAAqB,SAAQ,SAAS,EAAE,cAAc;IACrE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe,yEA+C1B,CAAC;AAEH,eAAO,MAAM,wBAAwB,YAC1B,SAAS,GAAG,SAAS,SACvB,kBAAkB,KACxB,YAoFF,CAAC"}
|
|
@@ -23,31 +23,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import { colors } from '@workday/canvas-kit-react/tokens';
|
|
25
25
|
import { useTheme, createComponent, focusRing, } from '@workday/canvas-kit-react/common';
|
|
26
|
-
import {
|
|
27
|
-
// Button sizes where data labels are enabled
|
|
28
|
-
var dataLabelSizes = ['medium', 'large'];
|
|
29
|
-
// All disabled buttons are set to 40% opacity.
|
|
30
|
-
// This will eventually live in the ButtonContainer styles, but for now we're scoping it to Primary, Secondary, and Tertiary buttons.
|
|
31
|
-
var disabledButtonOpacity = {
|
|
32
|
-
'&:disabled, &:disabled:active': {
|
|
33
|
-
opacity: 0.4,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
26
|
+
import { BaseButton, getMinWidthStyles, getPaddingStyles } from './BaseButton';
|
|
36
27
|
export var SecondaryButton = createComponent('button')({
|
|
37
28
|
displayName: 'SecondaryButton',
|
|
38
29
|
Component: function (_a, ref, Element) {
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
theme = _b === void 0 ? useTheme() : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.iconPosition, iconPosition = _d === void 0 ? 'left' : _d, variant = _a.variant, dataLabel = _a.dataLabel, icon = _a.icon, _e = _a.shouldMirrorIcon, shouldMirrorIcon = _e === void 0 ? false : _e, children = _a.children, elemProps = __rest(_a, ["theme", "size", "iconPosition", "variant", "dataLabel", "icon", "shouldMirrorIcon", "children"]);
|
|
46
|
-
return (React.createElement(ButtonContainer, __assign({ ref: ref, as: Element, colors: getSecondaryButtonColors(variant, theme), size: size, extraStyles: disabledButtonOpacity }, elemProps),
|
|
47
|
-
icon && iconPosition === 'left' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
|
|
48
|
-
React.createElement(ButtonLabel, null, children),
|
|
49
|
-
dataLabel && dataLabelSizes.includes(size) && React.createElement(ButtonLabelData, null, dataLabel),
|
|
50
|
-
icon && iconPosition === 'right' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
|
|
30
|
+
var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? 'start' : _c, variant = _a.variant, icon = _a.icon, _d = _a.shouldMirrorIcon, shouldMirrorIcon = _d === void 0 ? false : _d, children = _a.children, elemProps = __rest(_a, ["size", "iconPosition", "variant", "icon", "shouldMirrorIcon", "children"]);
|
|
31
|
+
var theme = useTheme();
|
|
32
|
+
return (React.createElement(BaseButton, __assign({ ref: ref, size: size, colors: getSecondaryButtonColors(variant, theme), padding: getPaddingStyles(children, size, icon, iconPosition), minWidth: getMinWidthStyles(children, size), as: Element }, elemProps),
|
|
33
|
+
icon && iconPosition === 'start' && (React.createElement(BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
|
|
34
|
+
children && React.createElement(BaseButton.Label, null, children),
|
|
35
|
+
icon && iconPosition === 'end' && (React.createElement(BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
|
|
51
36
|
},
|
|
52
37
|
});
|
|
53
38
|
export var getSecondaryButtonColors = function (variant, theme) {
|
|
@@ -61,27 +46,23 @@ export var getSecondaryButtonColors = function (variant, theme) {
|
|
|
61
46
|
border: colors.blackPepper400,
|
|
62
47
|
icon: colors.blackPepper400,
|
|
63
48
|
label: colors.blackPepper400,
|
|
64
|
-
labelData: colors.blackPepper400,
|
|
65
49
|
},
|
|
66
50
|
hover: {
|
|
67
51
|
background: colors.blackPepper400,
|
|
68
52
|
border: colors.blackPepper400,
|
|
69
53
|
icon: themePrimary.contrast,
|
|
70
54
|
label: themePrimary.contrast,
|
|
71
|
-
labelData: themePrimary.contrast,
|
|
72
55
|
},
|
|
73
56
|
active: {
|
|
74
57
|
background: colors.blackPepper500,
|
|
75
58
|
border: colors.blackPepper500,
|
|
76
59
|
icon: themePrimary.contrast,
|
|
77
60
|
label: themePrimary.contrast,
|
|
78
|
-
labelData: themePrimary.contrast,
|
|
79
61
|
},
|
|
80
62
|
focus: {
|
|
81
63
|
border: colors.blackPepper400,
|
|
82
64
|
icon: colors.blackPepper400,
|
|
83
65
|
label: colors.blackPepper400,
|
|
84
|
-
labelData: colors.blackPepper400,
|
|
85
66
|
},
|
|
86
67
|
// Identical to 'default' styles. ButtonContainer will set opacity to 40%
|
|
87
68
|
disabled: {
|
|
@@ -89,7 +70,6 @@ export var getSecondaryButtonColors = function (variant, theme) {
|
|
|
89
70
|
border: colors.blackPepper400,
|
|
90
71
|
icon: colors.blackPepper400,
|
|
91
72
|
label: colors.blackPepper400,
|
|
92
|
-
labelData: colors.blackPepper400,
|
|
93
73
|
},
|
|
94
74
|
};
|
|
95
75
|
case 'inverse':
|
|
@@ -103,22 +83,19 @@ export var getSecondaryButtonColors = function (variant, theme) {
|
|
|
103
83
|
hover: {
|
|
104
84
|
background: colors.soap300,
|
|
105
85
|
border: colors.soap300,
|
|
106
|
-
icon: colors.
|
|
107
|
-
label: colors.
|
|
108
|
-
labelData: colors.blackPepper400,
|
|
86
|
+
icon: colors.blackPepper500,
|
|
87
|
+
label: colors.blackPepper500,
|
|
109
88
|
},
|
|
110
89
|
active: {
|
|
111
90
|
background: colors.soap400,
|
|
112
91
|
border: colors.soap400,
|
|
113
|
-
icon: colors.
|
|
114
|
-
label: colors.
|
|
115
|
-
labelData: colors.blackPepper400,
|
|
92
|
+
icon: colors.blackPepper500,
|
|
93
|
+
label: colors.blackPepper500,
|
|
116
94
|
},
|
|
117
95
|
focus: {
|
|
118
96
|
background: colors.frenchVanilla100,
|
|
119
|
-
icon: colors.
|
|
120
|
-
label: colors.
|
|
121
|
-
labelData: colors.blackPepper400,
|
|
97
|
+
icon: colors.blackPepper500,
|
|
98
|
+
label: colors.blackPepper500,
|
|
122
99
|
focusRing: focusRing({
|
|
123
100
|
separation: 2,
|
|
124
101
|
innerColor: 'currentColor',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Themeable } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
4
|
-
import {
|
|
4
|
+
import { IconPositions, ButtonSizes } from './types';
|
|
5
5
|
export interface TertiaryButtonProps extends Themeable {
|
|
6
6
|
/**
|
|
7
7
|
* The variant of the TertiaryButton.
|
|
@@ -14,7 +14,7 @@ export interface TertiaryButtonProps extends Themeable {
|
|
|
14
14
|
*
|
|
15
15
|
* @default 'medium'
|
|
16
16
|
*/
|
|
17
|
-
size?:
|
|
17
|
+
size?: ButtonSizes;
|
|
18
18
|
/**
|
|
19
19
|
* Button icon positions can either be `left` or `right`.
|
|
20
20
|
* If no value is provided, it defaults to `left`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TertiaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/TertiaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TertiaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/TertiaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAe,aAAa,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAgJD,eAAO,MAAM,cAAc,wEAkDzB,CAAC"}
|
|
@@ -21,10 +21,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
|
-
import { focusRing, useTheme, createComponent, } from '@workday/canvas-kit-react/common';
|
|
25
|
-
import { colors, space
|
|
26
|
-
import {
|
|
27
|
-
var getTertiaryButtonColors = function (variant, theme) {
|
|
24
|
+
import { focusRing, useTheme, createComponent, styled, } from '@workday/canvas-kit-react/common';
|
|
25
|
+
import { borderRadius, colors, space } from '@workday/canvas-kit-react/tokens';
|
|
26
|
+
import { BaseButton } from './BaseButton';
|
|
27
|
+
var getTertiaryButtonColors = function (variant, theme, children) {
|
|
28
28
|
var themePrimary = theme.canvas.palette.primary;
|
|
29
29
|
if (variant === 'inverse') {
|
|
30
30
|
return {
|
|
@@ -64,66 +64,94 @@ var getTertiaryButtonColors = function (variant, theme) {
|
|
|
64
64
|
else {
|
|
65
65
|
return {
|
|
66
66
|
default: {
|
|
67
|
-
icon: themePrimary.main,
|
|
67
|
+
icon: children ? themePrimary.main : colors.blackPepper400,
|
|
68
68
|
label: themePrimary.main,
|
|
69
69
|
},
|
|
70
70
|
hover: {
|
|
71
71
|
background: colors.soap200,
|
|
72
|
-
icon: themePrimary.dark,
|
|
72
|
+
icon: children ? themePrimary.dark : colors.blackPepper500,
|
|
73
73
|
label: themePrimary.dark,
|
|
74
74
|
},
|
|
75
75
|
active: {
|
|
76
76
|
background: colors.soap300,
|
|
77
|
-
icon: themePrimary.dark,
|
|
77
|
+
icon: children ? themePrimary.dark : colors.blackPepper500,
|
|
78
78
|
label: themePrimary.dark,
|
|
79
79
|
},
|
|
80
80
|
focus: {
|
|
81
|
-
icon: themePrimary.
|
|
82
|
-
label: themePrimary.
|
|
83
|
-
focusRing: focusRing({}, theme),
|
|
81
|
+
icon: children ? themePrimary.main : colors.blackPepper500,
|
|
82
|
+
label: themePrimary.main,
|
|
83
|
+
focusRing: focusRing({ innerColor: colors.blueberry400 }, theme),
|
|
84
84
|
},
|
|
85
85
|
disabled: {
|
|
86
|
-
icon: themePrimary.main,
|
|
86
|
+
icon: children ? themePrimary.main : colors.blackPepper400,
|
|
87
87
|
label: themePrimary.main,
|
|
88
88
|
},
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
var StyledButtonLabel = styled(BaseButton.Label)({
|
|
93
|
+
textDecoration: 'underline',
|
|
94
|
+
});
|
|
95
|
+
var StyledTertiaryButtonContainer = styled(BaseButton)({
|
|
96
|
+
border: '0',
|
|
97
|
+
}, function (_a) {
|
|
98
|
+
var allCaps = _a.allCaps;
|
|
99
|
+
return ({
|
|
100
|
+
textTransform: allCaps ? 'uppercase' : undefined,
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
var getPaddingStyles = function (icon, iconPosition, children, size) {
|
|
104
|
+
if (children) {
|
|
105
|
+
// if there is an icon on the left, add 4px extra padding to the right for visual balance
|
|
106
|
+
if (icon && iconPosition === 'start') {
|
|
107
|
+
if (size === 'extraSmall') {
|
|
108
|
+
return "0 " + space.xxs + " 0 " + space.xxxs;
|
|
109
|
+
}
|
|
110
|
+
return "0 " + space.xs + " 0 " + space.xxs;
|
|
111
|
+
}
|
|
112
|
+
// if there is an icon on the right, add 4px extra padding to the left for visual balance
|
|
113
|
+
if (icon && iconPosition === 'end') {
|
|
114
|
+
if (size === 'extraSmall') {
|
|
115
|
+
return "0 " + space.xxxs + " 0 " + space.xxs;
|
|
116
|
+
}
|
|
117
|
+
return "0 " + space.xxs + " 0 " + space.xs;
|
|
118
|
+
}
|
|
119
|
+
// if there is no icon, return the default padding
|
|
120
|
+
return "0 " + space.xxs;
|
|
96
121
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return "0 " + space.xxs + " 0 " + space.xs;
|
|
122
|
+
else {
|
|
123
|
+
return '0';
|
|
100
124
|
}
|
|
101
|
-
// if there is no icon, return the default padding
|
|
102
|
-
return "0 " + space.xxs;
|
|
103
125
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
126
|
+
var getMinWidthStyles = function (children, size) {
|
|
127
|
+
var minWidthNum;
|
|
128
|
+
switch (size) {
|
|
129
|
+
case 'large':
|
|
130
|
+
minWidthNum = '48px';
|
|
131
|
+
break;
|
|
132
|
+
case 'medium':
|
|
133
|
+
minWidthNum = space.xl;
|
|
134
|
+
break;
|
|
135
|
+
case 'small':
|
|
136
|
+
minWidthNum = space.l;
|
|
137
|
+
break;
|
|
138
|
+
case 'extraSmall':
|
|
139
|
+
minWidthNum = space.m;
|
|
140
|
+
break;
|
|
141
|
+
default:
|
|
142
|
+
minWidthNum = space.xl;
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
return children ? 'auto' : minWidthNum;
|
|
110
146
|
};
|
|
111
147
|
export var TertiaryButton = createComponent('button')({
|
|
112
148
|
displayName: 'TertiaryButton',
|
|
113
149
|
Component: function (_a, ref, Element) {
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
theme = _b === void 0 ? useTheme() : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.iconPosition, iconPosition = _d === void 0 ? 'left' : _d, variant = _a.variant, children = _a.children, icon = _a.icon, _e = _a.shouldMirrorIcon, shouldMirrorIcon = _e === void 0 ? false : _e, allCaps = _a.allCaps, elemProps = __rest(_a, ["theme", "size", "iconPosition", "variant", "children", "icon", "shouldMirrorIcon", "allCaps"]);
|
|
121
|
-
var allContainerStyles = __assign({ borderRadius: borderRadius.m, border: '0', padding: getPaddingStyles(icon, iconPosition), minWidth: 'auto', textTransform: allCaps ? 'uppercase' : undefined, '.wdc-text-button-label': {
|
|
122
|
-
textDecoration: 'underline',
|
|
123
|
-
} }, disabledButtonOpacity);
|
|
124
|
-
return (React.createElement(ButtonContainer, __assign({ ref: ref, as: Element, colors: getTertiaryButtonColors(variant, theme), size: size, extraStyles: allContainerStyles }, elemProps),
|
|
125
|
-
icon && iconPosition === 'left' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
|
|
126
|
-
React.createElement(ButtonLabel, { className: "wdc-text-button-label" }, children),
|
|
127
|
-
icon && iconPosition === 'right' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
|
|
150
|
+
var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? 'start' : _c, variant = _a.variant, children = _a.children, icon = _a.icon, _d = _a.shouldMirrorIcon, shouldMirrorIcon = _d === void 0 ? false : _d, allCaps = _a.allCaps, elemProps = __rest(_a, ["size", "iconPosition", "variant", "children", "icon", "shouldMirrorIcon", "allCaps"]);
|
|
151
|
+
var theme = useTheme();
|
|
152
|
+
return (React.createElement(StyledTertiaryButtonContainer, __assign({ ref: ref, as: Element, allCaps: allCaps, colors: getTertiaryButtonColors(variant, theme, children), size: size, padding: getPaddingStyles(icon, iconPosition, children, size), minWidth: getMinWidthStyles(children, size), style: { borderRadius: children ? borderRadius.m : borderRadius.circle } }, elemProps),
|
|
153
|
+
icon && iconPosition === 'start' && (React.createElement(BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
|
|
154
|
+
children && React.createElement(StyledButtonLabel, null, children),
|
|
155
|
+
icon && iconPosition === 'end' && (React.createElement(BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
|
|
128
156
|
},
|
|
129
157
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarDropdownButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/ToolbarDropdownButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,
|
|
1
|
+
{"version":3,"file":"ToolbarDropdownButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/ToolbarDropdownButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAE3D,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,SAAS,GAAG,gBAAgB,CAAC,EAChE,SAAS;CAAG;AAwBhB,eAAO,MAAM,qBAAqB,+EAuChC,CAAC"}
|
|
@@ -22,11 +22,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import React from 'react';
|
|
24
24
|
import { colors, space, borderRadius } from '@workday/canvas-kit-react/tokens';
|
|
25
|
-
import { focusRing, useTheme, createComponent, } from '@workday/canvas-kit-react/common';
|
|
26
|
-
import {
|
|
27
|
-
import { ButtonContainer } from './parts';
|
|
25
|
+
import { focusRing, useTheme, createComponent, styled, } from '@workday/canvas-kit-react/common';
|
|
26
|
+
import { BaseButton } from './BaseButton';
|
|
28
27
|
import { chevronDownSmallIcon } from '@workday/canvas-system-icons-web';
|
|
29
|
-
var
|
|
28
|
+
var StyledToolbarDropdownButton = styled(BaseButton)({
|
|
30
29
|
padding: space.zero,
|
|
31
30
|
minWidth: space.l,
|
|
32
31
|
width: 'auto',
|
|
@@ -46,7 +45,7 @@ var containerStyles = {
|
|
|
46
45
|
marginRight: 0,
|
|
47
46
|
width: 18,
|
|
48
47
|
},
|
|
49
|
-
};
|
|
48
|
+
});
|
|
50
49
|
export var ToolbarDropdownButton = createComponent('button')({
|
|
51
50
|
displayName: 'ToolbarDropdownButton',
|
|
52
51
|
Component: function (_a, ref, Element) {
|
|
@@ -57,9 +56,9 @@ export var ToolbarDropdownButton = createComponent('button')({
|
|
|
57
56
|
// TODO: Fix useTheme and make it a real hook
|
|
58
57
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59
58
|
theme = _b === void 0 ? useTheme() : _b, icon = _a.icon, _c = _a.shouldMirrorIcon, shouldMirrorIcon = _c === void 0 ? false : _c, children = _a.children, elemProps = __rest(_a, ["theme", "icon", "shouldMirrorIcon", "children"]);
|
|
60
|
-
return (React.createElement(
|
|
61
|
-
icon ? (React.createElement(
|
|
62
|
-
React.createElement(
|
|
59
|
+
return (React.createElement(StyledToolbarDropdownButton, __assign({ ref: ref, as: Element, colors: getToolbarDropdownButtonColors(theme) }, elemProps),
|
|
60
|
+
icon ? (React.createElement(BaseButton.Icon, { className: 'wdc-toolbar-dropdown-btn-custom-icon', icon: icon, shouldMirrorIcon: shouldMirrorIcon })) : (children),
|
|
61
|
+
React.createElement(BaseButton.Icon, { className: 'wdc-toolbar-dropdown-btn-arrow', icon: chevronDownSmallIcon, shouldMirrorIcon: shouldMirrorIcon })));
|
|
63
62
|
},
|
|
64
63
|
});
|
|
65
64
|
var getToolbarDropdownButtonColors = function (theme) {
|
|
@@ -83,6 +82,7 @@ var getToolbarDropdownButtonColors = function (theme) {
|
|
|
83
82
|
disabled: {
|
|
84
83
|
icon: colors.soap600,
|
|
85
84
|
background: 'transparent',
|
|
85
|
+
opacity: '1',
|
|
86
86
|
},
|
|
87
87
|
};
|
|
88
88
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Themeable } from '@workday/canvas-kit-react/common';
|
|
2
|
-
import {
|
|
3
|
-
export interface ToolbarIconButtonProps extends Omit<
|
|
2
|
+
import { TertiaryButtonProps } from './TertiaryButton';
|
|
3
|
+
export interface ToolbarIconButtonProps extends Omit<TertiaryButtonProps, 'size' | 'variant'>, Themeable {
|
|
4
|
+
onToggleChange?: (toggled: boolean | undefined) => void;
|
|
5
|
+
toggled?: boolean;
|
|
6
|
+
shouldMirrorIcon?: boolean;
|
|
4
7
|
}
|
|
5
8
|
export declare const ToolbarIconButton: import("../../common").ElementComponent<"button", ToolbarIconButtonProps>;
|
|
6
9
|
//# sourceMappingURL=ToolbarIconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarIconButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/ToolbarIconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,
|
|
1
|
+
{"version":3,"file":"ToolbarIconButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/ToolbarIconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAErD,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC,EACnD,SAAS;IACX,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,KAAK,IAAI,CAAC;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAWD,eAAO,MAAM,iBAAiB,2EAiD5B,CAAC"}
|
|
@@ -22,24 +22,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
var _a;
|
|
24
24
|
import * as React from 'react';
|
|
25
|
-
import { colors, space
|
|
26
|
-
import { focusRing, useTheme, createComponent, } from '@workday/canvas-kit-react/common';
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
var containerStyles = (_a = {
|
|
30
|
-
padding: 0,
|
|
31
|
-
minWidth: space.l,
|
|
32
|
-
width: space.l,
|
|
33
|
-
height: space.l,
|
|
34
|
-
borderRadius: borderRadius.m
|
|
35
|
-
},
|
|
25
|
+
import { borderRadius, colors, space } from '@workday/canvas-kit-react/tokens';
|
|
26
|
+
import { focusRing, useTheme, createComponent, styled, } from '@workday/canvas-kit-react/common';
|
|
27
|
+
import { BaseButton } from './BaseButton';
|
|
28
|
+
var StyledToolbarIconButton = styled(BaseButton)((_a = {},
|
|
36
29
|
_a['& .wd-icon'] = {
|
|
37
30
|
display: 'inline-block',
|
|
38
31
|
verticalAlign: 'middle',
|
|
39
32
|
width: 20,
|
|
40
33
|
height: 20,
|
|
41
34
|
},
|
|
42
|
-
_a);
|
|
35
|
+
_a));
|
|
43
36
|
export var ToolbarIconButton = createComponent('button')({
|
|
44
37
|
displayName: 'ToolbarIconButton',
|
|
45
38
|
Component: function (_a, ref, Element) {
|
|
@@ -62,7 +55,7 @@ export var ToolbarIconButton = createComponent('button')({
|
|
|
62
55
|
}
|
|
63
56
|
}
|
|
64
57
|
}, [toggled, onToggleChange]);
|
|
65
|
-
return (React.createElement(
|
|
58
|
+
return (React.createElement(StyledToolbarIconButton, __assign({ ref: ref, as: Element, colors: getToolbarIconButtonColors(theme, toggled), size: 'small', fillIcon: toggled, "aria-pressed": toggled, padding: "zero", minWidth: space.l, width: space.l, height: space.l, borderRadius: borderRadius.m }, elemProps), icon ? React.createElement(BaseButton.Icon, { icon: icon, shouldMirrorIcon: shouldMirrorIcon }) : children));
|
|
66
59
|
},
|
|
67
60
|
});
|
|
68
61
|
var getToolbarIconButtonColors = function (theme, toggled) {
|
|
@@ -88,6 +81,7 @@ var getToolbarIconButtonColors = function (theme, toggled) {
|
|
|
88
81
|
disabled: {
|
|
89
82
|
icon: toggled ? themePrimary.light : colors.soap600,
|
|
90
83
|
background: toggled ? themePrimary.lightest : 'transparent',
|
|
84
|
+
opacity: '1',
|
|
91
85
|
},
|
|
92
86
|
};
|
|
93
87
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { BoxProps } from '@workday/canvas-kit-react/layout';
|
|
2
|
+
export interface ButtonLabelProps extends BoxProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const ButtonLabel: import("../../../common").ElementComponent<"span", ButtonLabelProps>;
|
|
5
5
|
//# sourceMappingURL=ButtonLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLabel.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabel.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"ButtonLabel.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAM,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE/D,MAAM,WAAW,gBAAiB,SAAQ,QAAQ;CAAG;AASrD,eAAO,MAAM,WAAW,sEAStB,CAAC"}
|
|
@@ -1,7 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { styled, createComponent } from '@workday/canvas-kit-react/common';
|
|
25
|
+
import { Box } from '@workday/canvas-kit-react/layout';
|
|
26
|
+
var StyledButtonLabel = styled(Box.as('span'))({
|
|
3
27
|
position: 'relative',
|
|
4
28
|
textOverflow: 'ellipsis',
|
|
5
29
|
overflow: 'hidden',
|
|
6
30
|
whiteSpace: 'nowrap',
|
|
7
31
|
});
|
|
32
|
+
export var ButtonLabel = createComponent('span')({
|
|
33
|
+
displayName: 'ButtonLabel',
|
|
34
|
+
Component: function (_a, ref, Element) {
|
|
35
|
+
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
36
|
+
return (React.createElement(StyledButtonLabel, __assign({ as: Element, ref: ref }, elemProps), children));
|
|
37
|
+
},
|
|
38
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
2
2
|
import { ButtonSizes, IconPositions } from '../types';
|
|
3
|
-
|
|
3
|
+
import { BoxProps } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface ButtonLabelIconProps extends BoxProps {
|
|
4
5
|
/**
|
|
5
6
|
* There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
|
|
6
7
|
*
|
|
@@ -15,7 +16,7 @@ export interface ButtonLabelIconProps {
|
|
|
15
16
|
/**
|
|
16
17
|
* Button icon positions can either be `left` or `right`.
|
|
17
18
|
* If no value is provided, it defaults to `left`.
|
|
18
|
-
* @default '
|
|
19
|
+
* @default 'start'
|
|
19
20
|
*/
|
|
20
21
|
iconPosition?: IconPositions;
|
|
21
22
|
/**
|
|
@@ -24,5 +25,5 @@ export interface ButtonLabelIconProps {
|
|
|
24
25
|
*/
|
|
25
26
|
shouldMirrorIcon?: boolean;
|
|
26
27
|
}
|
|
27
|
-
export declare const ButtonLabelIcon: (
|
|
28
|
+
export declare const ButtonLabelIcon: import("../../../common").ElementComponent<"span", ButtonLabelIconProps>;
|
|
28
29
|
//# sourceMappingURL=ButtonLabelIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLabelIcon.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabelIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonLabelIcon.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabelIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAGpD,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE1D,MAAM,WAAW,oBAAqB,SAAQ,QAAQ;IACpD;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,eAAO,MAAM,eAAe,0EAyB1B,CAAC"}
|