@workday/canvas-kit-react 7.0.0-alpha.0-next.7 → 7.0.0-alpha.78-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +44 -66
- 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/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 +16 -38
- 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/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 +17 -0
- package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Box.js +41 -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/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/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 +16 -38
- 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/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 +17 -0
- package/dist/es6/layout/lib/Box.d.ts.map +1 -1
- package/dist/es6/layout/lib/Box.js +39 -0
- 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/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/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 +40 -0
- 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/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/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 +17 -0
- 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/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 +17 -0
- 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/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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { GrowthBehavior, Themeable
|
|
2
|
+
import { GrowthBehavior, Themeable } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
4
4
|
import { ButtonSizes, IconPositions } from './types';
|
|
5
5
|
export interface PrimaryButtonProps extends Themeable, GrowthBehavior {
|
|
@@ -15,20 +15,15 @@ export interface PrimaryButtonProps 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
|
|
26
21
|
*/
|
|
27
22
|
icon?: CanvasSystemIcon;
|
|
28
23
|
/**
|
|
29
|
-
* Button icon positions can either be `
|
|
30
|
-
* If no value is provided, it defaults to `
|
|
31
|
-
* @default '
|
|
24
|
+
* Button icon positions can either be `start` or `end`.
|
|
25
|
+
* If no value is provided, it defaults to `start`.
|
|
26
|
+
* @default 'start'
|
|
32
27
|
*/
|
|
33
28
|
iconPosition?: IconPositions;
|
|
34
29
|
/**
|
|
@@ -39,71 +34,4 @@ export interface PrimaryButtonProps extends Themeable, GrowthBehavior {
|
|
|
39
34
|
children?: React.ReactNode;
|
|
40
35
|
}
|
|
41
36
|
export declare const PrimaryButton: import("../../common").ElementComponent<"button", PrimaryButtonProps>;
|
|
42
|
-
export declare const getPrimaryButtonColors: (variant: 'inverse' | undefined, theme: EmotionCanvasTheme) => {
|
|
43
|
-
default: {
|
|
44
|
-
background: string;
|
|
45
|
-
icon: string;
|
|
46
|
-
label: string;
|
|
47
|
-
labelData?: undefined;
|
|
48
|
-
};
|
|
49
|
-
hover: {
|
|
50
|
-
background: string;
|
|
51
|
-
icon?: undefined;
|
|
52
|
-
label?: undefined;
|
|
53
|
-
labelData?: undefined;
|
|
54
|
-
};
|
|
55
|
-
active: {
|
|
56
|
-
background: string;
|
|
57
|
-
icon?: undefined;
|
|
58
|
-
label?: undefined;
|
|
59
|
-
labelData?: undefined;
|
|
60
|
-
};
|
|
61
|
-
focus: {
|
|
62
|
-
background: string;
|
|
63
|
-
border?: undefined;
|
|
64
|
-
icon?: undefined;
|
|
65
|
-
label?: undefined;
|
|
66
|
-
labelData?: undefined;
|
|
67
|
-
focusRing?: undefined;
|
|
68
|
-
};
|
|
69
|
-
disabled: {
|
|
70
|
-
background: string;
|
|
71
|
-
icon?: undefined;
|
|
72
|
-
label?: undefined;
|
|
73
|
-
labelData?: undefined;
|
|
74
|
-
};
|
|
75
|
-
} | {
|
|
76
|
-
default: {
|
|
77
|
-
background: string;
|
|
78
|
-
icon: string;
|
|
79
|
-
label: string;
|
|
80
|
-
labelData: string;
|
|
81
|
-
};
|
|
82
|
-
hover: {
|
|
83
|
-
background: string;
|
|
84
|
-
icon: string;
|
|
85
|
-
label: string;
|
|
86
|
-
labelData: string;
|
|
87
|
-
};
|
|
88
|
-
active: {
|
|
89
|
-
background: string;
|
|
90
|
-
icon: string;
|
|
91
|
-
label: string;
|
|
92
|
-
labelData: string;
|
|
93
|
-
};
|
|
94
|
-
focus: {
|
|
95
|
-
background: string;
|
|
96
|
-
border: string;
|
|
97
|
-
icon: string;
|
|
98
|
-
label: string;
|
|
99
|
-
labelData: string;
|
|
100
|
-
focusRing: import("@emotion/react").CSSObject;
|
|
101
|
-
};
|
|
102
|
-
disabled: {
|
|
103
|
-
background: string;
|
|
104
|
-
icon: string;
|
|
105
|
-
label: string;
|
|
106
|
-
labelData: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
37
|
//# sourceMappingURL=PrimaryButton.d.ts.map
|
|
@@ -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,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,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,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,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
|
|
@@ -8,7 +8,7 @@ export interface ButtonStateColors {
|
|
|
8
8
|
icon?: string;
|
|
9
9
|
iconFill?: boolean;
|
|
10
10
|
label?: string;
|
|
11
|
-
|
|
11
|
+
opacity?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface ButtonColors {
|
|
14
14
|
default: ButtonStateColors;
|
|
@@ -27,5 +27,5 @@ export interface ButtonColors {
|
|
|
27
27
|
*/
|
|
28
28
|
export declare type ButtonSizes = 'extraSmall' | 'small' | 'medium' | 'large';
|
|
29
29
|
export declare type TertiaryButtonSizes = 'extraSmall' | 'small' | 'medium';
|
|
30
|
-
export declare type IconPositions = '
|
|
30
|
+
export declare type IconPositions = 'start' | 'end';
|
|
31
31
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { CanvasAccentIcon } from '@workday/design-assets-types';
|
|
3
2
|
import { CSSObject } from '@emotion/styled';
|
|
4
3
|
import { IconProps } from './Icon';
|
|
@@ -14,7 +13,7 @@ export interface AccentIconStyles {
|
|
|
14
13
|
*/
|
|
15
14
|
transparent?: boolean;
|
|
16
15
|
}
|
|
17
|
-
export interface AccentIconProps extends AccentIconStyles, Omit<IconProps, 'src' | 'type'> {
|
|
16
|
+
export interface AccentIconProps extends AccentIconStyles, Omit<IconProps, 'src' | 'type' | 'color'> {
|
|
18
17
|
/**
|
|
19
18
|
* The icon to display from `@workday/canvas-accent-icons-web`.
|
|
20
19
|
*/
|
|
@@ -26,7 +25,6 @@ export interface AccentIconProps extends AccentIconStyles, Omit<IconProps, 'src'
|
|
|
26
25
|
size?: number;
|
|
27
26
|
}
|
|
28
27
|
export declare const accentIconStyles: ({ color, transparent, }: AccentIconStyles) => CSSObject;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
28
|
+
declare const AccentIcon: import("../../common").ElementComponent<"span", AccentIconProps>;
|
|
29
|
+
export default AccentIcon;
|
|
32
30
|
//# sourceMappingURL=AccentIcon.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { BrandingColor } from '@workday/canvas-kit-react/tokens';
|
|
3
2
|
import { CanvasAppletIcon } from '@workday/design-assets-types';
|
|
4
3
|
import { CSSObject } from '@emotion/styled';
|
|
@@ -11,7 +10,7 @@ export interface AppletIconStyles {
|
|
|
11
10
|
color?: BrandingColor;
|
|
12
11
|
}
|
|
13
12
|
export declare const appletIconStyles: ({ color, }: AppletIconStyles) => CSSObject;
|
|
14
|
-
export interface AppletIconProps extends AppletIconStyles, Pick<IconProps, '
|
|
13
|
+
export interface AppletIconProps extends AppletIconStyles, Pick<IconProps, 'shouldMirror'> {
|
|
15
14
|
/**
|
|
16
15
|
* The icon to display from `@workday/canvas-applet-icons-web`.
|
|
17
16
|
*/
|
|
@@ -22,8 +21,8 @@ export interface AppletIconProps extends AppletIconStyles, Pick<IconProps, 'icon
|
|
|
22
21
|
*/
|
|
23
22
|
size?: number;
|
|
24
23
|
}
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
export declare const AppletIcon: import("../../common").ElementComponent<"span", AppletIconProps> & {
|
|
25
|
+
Colors: typeof BrandingColor;
|
|
26
|
+
};
|
|
27
|
+
export default AppletIcon;
|
|
29
28
|
//# sourceMappingURL=AppletIcon.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { CanvasGraphic } from '@workday/design-assets-types';
|
|
3
2
|
import { CSSObject } from '@emotion/styled';
|
|
4
3
|
import { SvgProps } from './Svg';
|
|
@@ -19,14 +18,13 @@ export interface GraphicStyles {
|
|
|
19
18
|
*/
|
|
20
19
|
grow?: boolean;
|
|
21
20
|
}
|
|
22
|
-
export interface GraphicProps extends GraphicStyles, Pick<SvgProps, '
|
|
21
|
+
export interface GraphicProps extends GraphicStyles, Pick<SvgProps, 'shouldMirror'> {
|
|
23
22
|
/**
|
|
24
23
|
* The graphic to display from `@workday/canvas-graphics-web`.
|
|
25
24
|
*/
|
|
26
25
|
src: CanvasGraphic;
|
|
27
26
|
}
|
|
28
27
|
export declare const graphicStyles: ({ width, height, grow }: GraphicStyles) => CSSObject;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
28
|
+
declare const Graphic: import("../../common").ElementComponent<"span", GraphicProps>;
|
|
29
|
+
export default Graphic;
|
|
32
30
|
//# sourceMappingURL=Graphic.d.ts.map
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { CanvasIcon, CanvasIconTypes } from '@workday/design-assets-types';
|
|
3
2
|
import { SvgProps } from './Svg';
|
|
4
3
|
export interface IconProps extends SvgProps {
|
|
5
4
|
src: CanvasIcon;
|
|
6
5
|
size?: number;
|
|
7
6
|
type: CanvasIconTypes.Accent | CanvasIconTypes.Applet | CanvasIconTypes.System;
|
|
8
|
-
iconRef?: React.Ref<HTMLSpanElement>;
|
|
9
|
-
}
|
|
10
|
-
export default class Icon extends React.Component<IconProps> {
|
|
11
|
-
render(): JSX.Element;
|
|
12
7
|
}
|
|
8
|
+
export declare const Icon: import("../../common").ElementComponent<"span", IconProps>;
|
|
9
|
+
export default Icon;
|
|
13
10
|
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/styled';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
import { CanvasIcon, CanvasIconTypes } from '@workday/design-assets-types';
|
|
4
|
-
|
|
3
|
+
import { BoxProps } from '@workday/canvas-kit-react/layout';
|
|
4
|
+
export interface SvgProps extends BoxProps {
|
|
5
5
|
src: CanvasIcon;
|
|
6
6
|
styles?: CSSObject;
|
|
7
7
|
type: CanvasIconTypes;
|
|
8
|
-
iconRef?: React.Ref<HTMLSpanElement>;
|
|
9
8
|
/**
|
|
10
9
|
* If set to `true`, transform the SVG's x-axis to mirror the graphic
|
|
11
10
|
* @default false
|
|
12
11
|
*/
|
|
13
12
|
shouldMirror?: boolean;
|
|
14
13
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
}
|
|
14
|
+
export declare const Svg: import("../../common").ElementComponent<"span", SvgProps>;
|
|
15
|
+
export default Svg;
|
|
18
16
|
//# sourceMappingURL=Svg.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
3
2
|
import { CSSObject } from '@emotion/styled';
|
|
4
3
|
import { IconProps } from './Icon';
|
|
@@ -40,7 +39,7 @@ export interface SystemIconStyles {
|
|
|
40
39
|
*/
|
|
41
40
|
fillHover?: string;
|
|
42
41
|
}
|
|
43
|
-
export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src' | 'type'> {
|
|
42
|
+
export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src' | 'color' | 'type' | 'background'> {
|
|
44
43
|
/**
|
|
45
44
|
* The icon to display from `@workday/canvas-system-icons-web`.
|
|
46
45
|
*/
|
|
@@ -48,10 +47,10 @@ export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src'
|
|
|
48
47
|
/**
|
|
49
48
|
* The size of the SystemIcon in `px`.
|
|
50
49
|
*/
|
|
51
|
-
size?: number;
|
|
50
|
+
size?: number | undefined;
|
|
51
|
+
className?: string;
|
|
52
52
|
}
|
|
53
53
|
export declare const systemIconStyles: ({ accent, accentHover, background, backgroundHover, color, colorHover, fill, fillHover, }: SystemIconStyles) => CSSObject;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
54
|
+
declare const SystemIcon: import("../../common").ElementComponent<"span", SystemIconProps>;
|
|
55
|
+
export default SystemIcon;
|
|
57
56
|
//# sourceMappingURL=SystemIcon.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SystemIconProps } from './SystemIcon';
|
|
3
2
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
4
3
|
export declare enum SystemIconCircleSize {
|
|
@@ -9,7 +8,7 @@ export declare enum SystemIconCircleSize {
|
|
|
9
8
|
xl = 64,
|
|
10
9
|
xxl = 120
|
|
11
10
|
}
|
|
12
|
-
export interface SystemIconCircleProps extends Pick<SystemIconProps, '
|
|
11
|
+
export interface SystemIconCircleProps extends Pick<SystemIconProps, 'shouldMirror'> {
|
|
13
12
|
/**
|
|
14
13
|
* The background color of the SystemIconCircle from `@workday/canvas-colors-web`.
|
|
15
14
|
* @default colors.soap300
|
|
@@ -25,8 +24,6 @@ export interface SystemIconCircleProps extends Pick<SystemIconProps, 'iconRef' |
|
|
|
25
24
|
*/
|
|
26
25
|
size?: SystemIconCircleSize | number;
|
|
27
26
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
render(): JSX.Element;
|
|
31
|
-
}
|
|
27
|
+
declare const SystemIconCircle: import("../../common").ElementComponent<"span", SystemIconCircleProps>;
|
|
28
|
+
export default SystemIconCircle;
|
|
32
29
|
//# sourceMappingURL=SystemIconCircle.d.ts.map
|
|
@@ -10,6 +10,23 @@ import { SpaceStyleProps } from './utils/space';
|
|
|
10
10
|
export declare type BoxProps = BorderStyleProps & ColorStyleProps & DepthStyleProps & FlexItemStyleProps & LayoutStyleProps & OtherStyleProps & PositionStyleProps & SpaceStyleProps & {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* A function that allows us to call Box styles on an element and reduce the amount of elements in the React Dom tree.
|
|
15
|
+
* Instead of using the `as` in a styled function, you can just call this instead to pass those props to the styled element
|
|
16
|
+
* @example
|
|
17
|
+
* import { boxStyleFn } from '@workday/canvas-kit-react/layout';
|
|
18
|
+
* const StyledHeader = styled('h1')(
|
|
19
|
+
* boxStyleFn,
|
|
20
|
+
* {
|
|
21
|
+
* fontWeight: 400,
|
|
22
|
+
* }
|
|
23
|
+
* )
|
|
24
|
+
*
|
|
25
|
+
* ....
|
|
26
|
+
*
|
|
27
|
+
* <StyledHeader color='red'>Hello World</StyledHeader>
|
|
28
|
+
*/
|
|
29
|
+
export declare const boxStyleFn: <P extends BoxProps>(props: P) => {};
|
|
13
30
|
/**
|
|
14
31
|
* `Box` is a primitive component that provides a common, ergonomic API around Canvas design tokens.
|
|
15
32
|
* It is highly flexible, and its primary purpose is to build other components.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TertiaryButtonProps } from '@workday/canvas-kit-react/button';
|
|
3
3
|
import { PaginationModel } from './types';
|
|
4
|
-
export declare type ControlButtonProps =
|
|
4
|
+
export declare type ControlButtonProps = TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
5
|
model: PaginationModel;
|
|
6
6
|
};
|
|
7
7
|
export declare type ControlsProps = React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { IconButtonProps } from '@workday/canvas-kit-react/button';
|
|
3
2
|
import { PaginationModel } from './types';
|
|
4
|
-
export declare type PageButtonProps =
|
|
3
|
+
export declare type PageButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
4
|
model: PaginationModel;
|
|
6
5
|
pageNumber: number;
|
|
7
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TertiaryButtonProps } from '@workday/canvas-kit-react/button';
|
|
3
3
|
import { PaginationModel } from './types';
|
|
4
4
|
import { PaginationNavProps } from './Nav';
|
|
5
5
|
import { ControlsProps } from './Controls';
|
|
@@ -30,10 +30,10 @@ export declare type PaginationProps = PaginationConfigurationProps | PaginationM
|
|
|
30
30
|
export declare const Pagination: {
|
|
31
31
|
(props: PaginationProps): JSX.Element;
|
|
32
32
|
Controls(props: ControlsProps): JSX.Element;
|
|
33
|
-
JumpToFirstButton(props:
|
|
34
|
-
StepToPreviousButton(props:
|
|
35
|
-
StepToNextButton(props:
|
|
36
|
-
JumpToLastButton(props:
|
|
33
|
+
JumpToFirstButton(props: TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
34
|
+
StepToPreviousButton(props: TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
35
|
+
StepToNextButton(props: TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
36
|
+
JumpToLastButton(props: TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
37
37
|
PageList(props: Pick<PageListProps, Exclude<keyof PageListProps, 'model'>>): JSX.Element;
|
|
38
38
|
PageListItem(props: PageListItemProps): JSX.Element;
|
|
39
39
|
PageButton({ "aria-label": ariaLabel, ...elemProps }: Pick<PageButtonProps, Exclude<keyof PageButtonProps, 'model'>>): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
2
|
-
import {
|
|
2
|
+
import { TertiaryButton } from '@workday/canvas-kit-react/button';
|
|
3
3
|
import { PopupModel } from './hooks';
|
|
4
|
-
export interface PopupCloseIconProps extends ExtractProps<typeof
|
|
4
|
+
export interface PopupCloseIconProps extends ExtractProps<typeof TertiaryButton, never> {
|
|
5
5
|
/**
|
|
6
6
|
* Optionally pass a model directly to this component. Default is to implicitly use the same
|
|
7
7
|
* model as the container component which uses React context. Only use this for advanced use-cases
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SegmentedControlButtonProps } from './SegmentedControlButton';
|
|
3
3
|
export interface SegmentedControlProps {
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
5
|
+
* The Button children of the SegmentedControl (must be at least two).
|
|
6
6
|
* TODO: Add support for text children
|
|
7
7
|
*/
|
|
8
|
-
children: React.ReactElement<
|
|
8
|
+
children: React.ReactElement<SegmentedControlButtonProps>[];
|
|
9
9
|
/**
|
|
10
|
-
* The value or index of the
|
|
11
|
-
* If a string is provided, the
|
|
12
|
-
* If a number is provided, the
|
|
10
|
+
* The value or index of the Button that the SegmentedControl should be toggled on to.
|
|
11
|
+
* If a string is provided, the Button with the corresponding value will be selected.
|
|
12
|
+
* If a number is provided, the Button with the corresponding index will be selected.
|
|
13
13
|
* @default 0
|
|
14
14
|
*/
|
|
15
15
|
value?: string | number;
|
|
@@ -20,6 +20,8 @@ export interface SegmentedControlProps {
|
|
|
20
20
|
*/
|
|
21
21
|
onChange?: (value: string | number) => void;
|
|
22
22
|
}
|
|
23
|
-
declare const SegmentedControl: (
|
|
23
|
+
export declare const SegmentedControl: import("../../common").ElementComponent<"div", SegmentedControlProps> & {
|
|
24
|
+
Button: import("../../common").ElementComponent<"button", SegmentedControlButtonProps>;
|
|
25
|
+
};
|
|
24
26
|
export default SegmentedControl;
|
|
25
27
|
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
2
|
+
export interface SegmentedControlButtonProps {
|
|
3
|
+
toggled?: boolean;
|
|
4
|
+
icon: CanvasSystemIcon;
|
|
5
|
+
value?: string | number;
|
|
6
|
+
}
|
|
7
|
+
export declare const SegmentedControlButton: import("../../common").ElementComponent<"button", SegmentedControlButtonProps>;
|
|
8
|
+
//# sourceMappingURL=SegmentedControlButton.d.ts.map
|
|
@@ -16,7 +16,7 @@ export interface TabsProps<T = any> extends TabsModelConfig<T> {
|
|
|
16
16
|
export declare const Tabs: import("../../common").Component<TabsProps<any>> & {
|
|
17
17
|
List: import("../../common").ElementComponent<"div", import("./TabsList").TabListProps<unknown>>;
|
|
18
18
|
Item: import("../../common").ElementComponent<"button", import("./TabsItem").TabsItemProps> & {
|
|
19
|
-
Icon:
|
|
19
|
+
Icon: import("../../common").ElementComponent<"span", import("../..").SystemIconProps>;
|
|
20
20
|
Text: import("../../common").ElementComponent<"span", {}>;
|
|
21
21
|
};
|
|
22
22
|
Panel: import("../../common").ElementComponent<"div", import("./TabsPanel").TabPanelProps<unknown>>;
|
|
@@ -39,7 +39,7 @@ export declare const Tabs: import("../../common").Component<TabsProps<any>> & {
|
|
|
39
39
|
Card: import("../../common").ElementComponent<"div", import("./menu/MenuCard").MenuCardProps<unknown>>;
|
|
40
40
|
List: import("../../common").ElementComponent<"div", import("./menu/MenuList").MenuListProps<unknown>>;
|
|
41
41
|
Item: import("../../common").ElementComponent<"button", import("./menu/MenuItem").MenuItemProps<unknown>> & {
|
|
42
|
-
Icon:
|
|
42
|
+
Icon: import("../../common").ElementComponent<"span", import("../..").SystemIconProps>;
|
|
43
43
|
Text: import("@emotion/styled").StyledComponent<{
|
|
44
44
|
theme?: import("@emotion/react").Theme | undefined;
|
|
45
45
|
as?: "symbol" | "object" | "s" | "big" | "link" | "small" | "sub" | "sup" | "circle" | "stop" | "path" | "style" | "map" | "filter" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyledType, ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { Box, StackProps } from '@workday/canvas-kit-react/layout';
|
|
4
|
-
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
5
4
|
import { TabsModel } from './useTabsModel';
|
|
6
5
|
export interface TabsItemProps extends ExtractProps<typeof Box, never>, Partial<Pick<StackProps, 'spacing'>> {
|
|
7
6
|
/**
|
|
@@ -79,7 +78,7 @@ export declare const StyledTabItem: import("@emotion/styled").StyledComponent<im
|
|
|
79
78
|
hasIcon?: boolean | undefined;
|
|
80
79
|
} & Pick<TabsItemProps, "spacing">, {}, {}>;
|
|
81
80
|
export declare const TabsItem: import("../../common").ElementComponent<"button", TabsItemProps> & {
|
|
82
|
-
Icon:
|
|
81
|
+
Icon: import("../../common").ElementComponent<"span", import("../../icon").SystemIconProps>;
|
|
83
82
|
Text: import("../../common").ElementComponent<"span", {}>;
|
|
84
83
|
};
|
|
85
84
|
export declare const useTabsItem: <P extends {}, R>(model: import("./list").ListModel<unknown>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | React.RefObject<R> | null | undefined) => {} & P & (R extends HTMLOrSVGElement ? {
|
|
@@ -65,7 +65,7 @@ export declare const Menu: import("../../../common").Component<MenuProps<any>> &
|
|
|
65
65
|
* HTML. If more complex HTML is provided, consider
|
|
66
66
|
*/
|
|
67
67
|
Item: import("../../../common").ElementComponent<"button", import("./MenuItem").MenuItemProps<unknown>> & {
|
|
68
|
-
Icon:
|
|
68
|
+
Icon: import("../../../common").ElementComponent<"span", import("../../..").SystemIconProps>;
|
|
69
69
|
Text: import("@emotion/styled").StyledComponent<{
|
|
70
70
|
theme?: import("@emotion/react").Theme | undefined;
|
|
71
71
|
as?: "symbol" | "object" | "s" | "big" | "link" | "small" | "sub" | "sup" | "circle" | "stop" | "path" | "style" | "map" | "filter" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
3
2
|
import { MenuModel } from './useMenuModel';
|
|
4
3
|
export interface MenuItemProps<T = unknown> {
|
|
5
4
|
/**
|
|
@@ -38,7 +37,7 @@ export interface MenuItemProps<T = unknown> {
|
|
|
38
37
|
hasIcon?: boolean;
|
|
39
38
|
}
|
|
40
39
|
export declare const MenuItem: import("../../../common").ElementComponent<"button", MenuItemProps<unknown>> & {
|
|
41
|
-
Icon:
|
|
40
|
+
Icon: import("../../../common").ElementComponent<"span", import("../../../icon").SystemIconProps>;
|
|
42
41
|
Text: import("@emotion/styled").StyledComponent<{
|
|
43
42
|
theme?: import("@emotion/react").Theme | undefined;
|
|
44
43
|
as?: "symbol" | "object" | "s" | "big" | "link" | "small" | "sub" | "sup" | "circle" | "stop" | "path" | "style" | "map" | "filter" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { GrowthBehavior } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
4
4
|
export interface InputIconContainerProps extends GrowthBehavior {
|
|
5
|
-
icon?: React.ReactElement<SystemIcon>;
|
|
5
|
+
icon?: React.ReactElement<typeof SystemIcon>;
|
|
6
6
|
}
|
|
7
7
|
declare const InputIconContainer: React.FunctionComponent<InputIconContainerProps>;
|
|
8
8
|
export default InputIconContainer;
|
|
@@ -24,7 +24,7 @@ export interface TooltipProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
24
24
|
* Determines the tooltip type for accessibility.
|
|
25
25
|
*
|
|
26
26
|
* - `label`: Sets the accessible name for the wrapped element. Use for icons or if tooltip
|
|
27
|
-
* `title` prop is the same as the text content of the wrapped element. E.g.
|
|
27
|
+
* `title` prop is the same as the text content of the wrapped element. E.g. TertiaryButtons that render an icon or
|
|
28
28
|
* Ellipsis tooltips.
|
|
29
29
|
* - `describe`: Sets `aria-describedby` of the wrapped element. Use if the tooltip has additional
|
|
30
30
|
* information about the target.
|
|
@@ -8,7 +8,7 @@ export declare function useTooltip<T extends Element = Element>({ type, titleTex
|
|
|
8
8
|
* Determines the tooltip type for accessibility.
|
|
9
9
|
*
|
|
10
10
|
* - `label`: Sets the accessible name for the wrapped element. Use for icons or if tooltip
|
|
11
|
-
* `title` prop is the same as the text content of the wrapped element. E.g.
|
|
11
|
+
* `title` prop is the same as the text content of the wrapped element. E.g. TertiaryButton that renders an icon or
|
|
12
12
|
* Ellipsis tooltips.
|
|
13
13
|
* - `describe`: Sets `aria-describedby` of the wrapped element. Use if the tooltip has additional
|
|
14
14
|
* information about the target.
|