@workday/canvas-kit-react 7.0.0-alpha.0-next.5 → 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/action-bar/lib/ActionBar.tsx +1 -1
- package/badge/README.md +2 -3
- package/banner/lib/Banner.tsx +1 -1
- package/banner/lib/BannerActionText.tsx +1 -1
- package/banner/lib/BannerIcon.tsx +2 -2
- package/banner/lib/BannerLabel.tsx +1 -1
- 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/card/lib/Card.tsx +1 -1
- package/card/lib/CardBody.tsx +1 -1
- package/card/lib/CardHeading.tsx +1 -1
- package/common/lib/parts/_brand-assets.ts +5 -5
- package/common/lib/utils/StaticStates.tsx +6 -5
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts +1 -1
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBar.js +2 -2
- package/dist/commonjs/banner/lib/Banner.d.ts +1 -1
- package/dist/commonjs/banner/lib/Banner.d.ts.map +1 -1
- package/dist/commonjs/banner/lib/Banner.js +1 -1
- package/dist/commonjs/banner/lib/BannerActionText.d.ts +1 -1
- package/dist/commonjs/banner/lib/BannerActionText.d.ts.map +1 -1
- package/dist/commonjs/banner/lib/BannerActionText.js +2 -2
- package/dist/commonjs/banner/lib/BannerIcon.js +2 -2
- package/dist/commonjs/banner/lib/BannerLabel.d.ts +1 -1
- package/dist/commonjs/banner/lib/BannerLabel.d.ts.map +1 -1
- package/dist/commonjs/banner/lib/BannerLabel.js +1 -1
- 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/card/lib/Card.d.ts +2 -2
- package/dist/commonjs/card/lib/Card.d.ts.map +1 -1
- package/dist/commonjs/card/lib/Card.js +2 -2
- package/dist/commonjs/card/lib/CardBody.d.ts +1 -1
- package/dist/commonjs/card/lib/CardBody.d.ts.map +1 -1
- package/dist/commonjs/card/lib/CardBody.js +2 -2
- package/dist/commonjs/card/lib/CardHeading.d.ts +1 -1
- package/dist/commonjs/card/lib/CardHeading.d.ts.map +1 -1
- package/dist/commonjs/card/lib/CardHeading.js +2 -2
- 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/dialog/lib/Dialog.d.ts +1 -1
- 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/index.d.ts +0 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +0 -2
- package/dist/commonjs/layout/index.d.ts +12 -2
- package/dist/commonjs/layout/index.d.ts.map +1 -1
- package/dist/commonjs/layout/index.js +8 -2
- package/dist/commonjs/layout/lib/Box.d.ts +48 -0
- package/dist/commonjs/layout/lib/Box.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/Box.js +139 -0
- package/dist/commonjs/layout/lib/Flex.d.ts +26 -0
- package/dist/commonjs/layout/lib/Flex.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/Flex.js +83 -0
- package/dist/commonjs/layout/lib/Stack.d.ts +27 -0
- package/dist/commonjs/layout/lib/Stack.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/Stack.js +99 -0
- package/dist/commonjs/layout/lib/utils/border.d.ts +103 -0
- package/dist/commonjs/layout/lib/utils/border.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border.js +153 -0
- package/dist/commonjs/layout/lib/utils/color.d.ts +26 -0
- package/dist/commonjs/layout/lib/utils/color.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/color.js +57 -0
- package/dist/commonjs/layout/lib/utils/depth.d.ts +22 -0
- package/dist/commonjs/layout/lib/utils/depth.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/depth.js +29 -0
- package/dist/commonjs/layout/lib/utils/flex.d.ts +36 -0
- package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/flex.js +38 -0
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts +33 -0
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/flexItem.js +39 -0
- package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +3 -0
- package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts.map +1 -0
- package/dist/commonjs/{button/lib/parts/ButtonLabelData.js → layout/lib/utils/getValidChildren.js} +7 -23
- package/dist/commonjs/layout/lib/utils/layout.d.ts +43 -0
- package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/layout.js +43 -0
- package/dist/commonjs/layout/lib/utils/other.d.ts +5 -0
- package/dist/commonjs/layout/lib/utils/other.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/other.js +19 -0
- package/dist/commonjs/layout/lib/utils/position.d.ts +41 -0
- package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/position.js +78 -0
- package/dist/commonjs/layout/lib/utils/space.d.ts +64 -0
- package/dist/commonjs/layout/lib/utils/space.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/space.js +161 -0
- package/dist/commonjs/layout/lib/utils/stack.d.ts +26 -0
- package/dist/commonjs/layout/lib/utils/stack.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/stack.js +55 -0
- package/dist/commonjs/layout/lib/utils/types.d.ts +20 -0
- package/dist/commonjs/layout/lib/utils/types.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/types.js +2 -0
- package/dist/commonjs/modal/lib/Modal.d.ts +1 -1
- package/dist/commonjs/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/commonjs/modal/lib/ModalOverlay.d.ts +1 -1
- package/dist/commonjs/modal/lib/ModalOverlay.d.ts.map +1 -1
- package/dist/commonjs/modal/lib/ModalOverlay.js +2 -2
- package/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.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 +5 -5
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Form.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Form.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Form.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Nav.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Nav.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Nav.js +1 -1
- 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/PageList.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageList.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageList.js +1 -1
- 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/pagination/lib/Pagination/common/List.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/common/List.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/common/List.js +1 -1
- package/dist/commonjs/popup/lib/Popup.d.ts +1 -1
- package/dist/commonjs/popup/lib/PopupBody.d.ts +1 -1
- package/dist/commonjs/popup/lib/PopupBody.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/PopupCard.d.ts +1 -1
- package/dist/commonjs/popup/lib/PopupCard.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 +3 -5
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.js +2 -2
- package/dist/commonjs/tabs/lib/TabsList.d.ts +1 -1
- package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsList.js +2 -2
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts +1 -1
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanel.js +2 -2
- 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/tabs/lib/menu/MenuItem.js +2 -2
- package/dist/commonjs/tabs/lib/menu/MenuList.d.ts +1 -1
- package/dist/commonjs/tabs/lib/menu/MenuList.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/menu/MenuList.js +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/action-bar/lib/ActionBar.d.ts +1 -1
- package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBar.js +1 -1
- package/dist/es6/banner/lib/Banner.d.ts +1 -1
- package/dist/es6/banner/lib/Banner.d.ts.map +1 -1
- package/dist/es6/banner/lib/Banner.js +1 -1
- package/dist/es6/banner/lib/BannerActionText.d.ts +1 -1
- package/dist/es6/banner/lib/BannerActionText.d.ts.map +1 -1
- package/dist/es6/banner/lib/BannerActionText.js +1 -1
- package/dist/es6/banner/lib/BannerIcon.js +2 -2
- package/dist/es6/banner/lib/BannerLabel.d.ts +1 -1
- package/dist/es6/banner/lib/BannerLabel.d.ts.map +1 -1
- package/dist/es6/banner/lib/BannerLabel.js +1 -1
- 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/card/lib/Card.d.ts +2 -2
- package/dist/es6/card/lib/Card.d.ts.map +1 -1
- package/dist/es6/card/lib/Card.js +1 -1
- package/dist/es6/card/lib/CardBody.d.ts +1 -1
- package/dist/es6/card/lib/CardBody.d.ts.map +1 -1
- package/dist/es6/card/lib/CardBody.js +1 -1
- package/dist/es6/card/lib/CardHeading.d.ts +1 -1
- package/dist/es6/card/lib/CardHeading.d.ts.map +1 -1
- package/dist/es6/card/lib/CardHeading.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/dialog/lib/Dialog.d.ts +1 -1
- 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/index.d.ts +0 -2
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +0 -2
- package/dist/es6/layout/index.d.ts +12 -2
- package/dist/es6/layout/index.d.ts.map +1 -1
- package/dist/es6/layout/index.js +8 -2
- package/dist/es6/layout/lib/Box.d.ts +48 -0
- package/dist/es6/layout/lib/Box.d.ts.map +1 -0
- package/dist/es6/layout/lib/Box.js +113 -0
- package/dist/es6/layout/lib/Flex.d.ts +26 -0
- package/dist/es6/layout/lib/Flex.d.ts.map +1 -0
- package/dist/es6/layout/lib/Flex.js +58 -0
- package/dist/es6/layout/lib/Stack.d.ts +27 -0
- package/dist/es6/layout/lib/Stack.d.ts.map +1 -0
- package/dist/es6/layout/lib/Stack.js +74 -0
- package/dist/es6/layout/lib/utils/border.d.ts +103 -0
- package/dist/es6/layout/lib/utils/border.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border.js +149 -0
- package/dist/es6/layout/lib/utils/color.d.ts +26 -0
- package/dist/es6/layout/lib/utils/color.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/color.js +53 -0
- package/dist/es6/layout/lib/utils/depth.d.ts +22 -0
- package/dist/es6/layout/lib/utils/depth.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/depth.js +25 -0
- package/dist/es6/layout/lib/utils/flex.d.ts +36 -0
- package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/flex.js +34 -0
- package/dist/es6/layout/lib/utils/flexItem.d.ts +33 -0
- package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/flexItem.js +35 -0
- package/dist/es6/layout/lib/utils/getValidChildren.d.ts +3 -0
- package/dist/es6/layout/lib/utils/getValidChildren.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/getValidChildren.js +6 -0
- package/dist/es6/layout/lib/utils/layout.d.ts +43 -0
- package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/layout.js +39 -0
- package/dist/es6/layout/lib/utils/other.d.ts +5 -0
- package/dist/es6/layout/lib/utils/other.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/other.js +15 -0
- package/dist/es6/layout/lib/utils/position.d.ts +41 -0
- package/dist/es6/layout/lib/utils/position.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/position.js +74 -0
- package/dist/es6/layout/lib/utils/space.d.ts +64 -0
- package/dist/es6/layout/lib/utils/space.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/space.js +157 -0
- package/dist/es6/layout/lib/utils/stack.d.ts +26 -0
- package/dist/es6/layout/lib/utils/stack.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/stack.js +51 -0
- package/dist/es6/layout/lib/utils/types.d.ts +20 -0
- package/dist/es6/layout/lib/utils/types.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/types.js +1 -0
- package/dist/es6/modal/lib/Modal.d.ts +1 -1
- package/dist/es6/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/es6/modal/lib/ModalOverlay.d.ts +1 -1
- package/dist/es6/modal/lib/ModalOverlay.d.ts.map +1 -1
- package/dist/es6/modal/lib/ModalOverlay.js +1 -1
- package/dist/es6/pagination/lib/Pagination/AdditionalDetails.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/AdditionalDetails.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/AdditionalDetails.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 +6 -6
- package/dist/es6/pagination/lib/Pagination/GoTo/Form.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/Form.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/Form.js +1 -1
- package/dist/es6/pagination/lib/Pagination/Nav.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/Nav.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/Nav.js +1 -1
- 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/PageList.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/PageList.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/PageList.js +1 -1
- 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/pagination/lib/Pagination/common/List.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/common/List.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/common/List.js +1 -1
- package/dist/es6/popup/lib/Popup.d.ts +1 -1
- package/dist/es6/popup/lib/PopupBody.d.ts +1 -1
- package/dist/es6/popup/lib/PopupBody.d.ts.map +1 -1
- package/dist/es6/popup/lib/PopupCard.d.ts +1 -1
- package/dist/es6/popup/lib/PopupCard.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 +3 -5
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.js +1 -1
- package/dist/es6/tabs/lib/TabsList.d.ts +1 -1
- package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsList.js +2 -2
- package/dist/es6/tabs/lib/TabsPanel.d.ts +1 -1
- package/dist/es6/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanel.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/tabs/lib/menu/MenuItem.js +1 -1
- package/dist/es6/tabs/lib/menu/MenuList.d.ts +1 -1
- package/dist/es6/tabs/lib/menu/MenuList.d.ts.map +1 -1
- package/dist/es6/tabs/lib/menu/MenuList.js +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/index.ts +0 -2
- package/layout/LICENSE +1 -0
- package/layout/README.md +31 -0
- package/layout/index.ts +13 -3
- package/layout/lib/Box.tsx +132 -0
- package/layout/lib/Flex.tsx +47 -0
- package/layout/lib/Stack.tsx +95 -0
- package/layout/lib/utils/border.ts +263 -0
- package/layout/lib/utils/color.ts +62 -0
- package/layout/lib/utils/depth.ts +37 -0
- package/layout/lib/utils/flex.ts +65 -0
- package/layout/lib/utils/flexItem.ts +56 -0
- package/layout/lib/utils/getValidChildren.ts +7 -0
- package/layout/lib/utils/layout.ts +77 -0
- package/layout/lib/utils/other.ts +20 -0
- package/layout/lib/utils/position.ts +96 -0
- package/layout/lib/utils/space.ts +207 -0
- package/layout/lib/utils/stack.ts +78 -0
- package/layout/lib/utils/types.ts +148 -0
- package/modal/lib/ModalOverflowOverlay.tsx +1 -1
- package/modal/lib/ModalOverlay.tsx +1 -1
- package/package.json +6 -5
- package/pagination/lib/Pagination/AdditionalDetails.tsx +1 -1
- package/pagination/lib/Pagination/Controls.tsx +7 -11
- package/pagination/lib/Pagination/GoTo/Form.tsx +1 -1
- package/pagination/lib/Pagination/Nav.tsx +1 -1
- package/pagination/lib/Pagination/PageButton.tsx +38 -17
- package/pagination/lib/Pagination/PageList.tsx +1 -1
- package/pagination/lib/Pagination/Pagination.tsx +5 -5
- package/pagination/lib/Pagination/common/List.tsx +1 -1
- 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/TabsItem.tsx +1 -2
- package/tabs/lib/TabsList.tsx +2 -2
- package/tabs/lib/TabsPanel.tsx +1 -1
- package/tabs/lib/menu/MenuItem.tsx +1 -1
- package/tabs/lib/menu/MenuList.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/action-bar/lib/ActionBar.d.ts +1 -1
- package/ts3.5/dist/commonjs/banner/lib/Banner.d.ts +1 -1
- package/ts3.5/dist/commonjs/banner/lib/BannerActionText.d.ts +1 -1
- package/ts3.5/dist/commonjs/banner/lib/BannerLabel.d.ts +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/card/lib/Card.d.ts +2 -2
- package/ts3.5/dist/commonjs/card/lib/CardBody.d.ts +1 -1
- package/ts3.5/dist/commonjs/card/lib/CardHeading.d.ts +1 -1
- package/ts3.5/dist/commonjs/dialog/lib/Dialog.d.ts +1 -1
- 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/index.d.ts +0 -2
- package/ts3.5/dist/commonjs/layout/index.d.ts +12 -2
- package/ts3.5/dist/commonjs/layout/lib/Box.d.ts +48 -0
- package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +26 -0
- package/ts3.5/dist/commonjs/layout/lib/Stack.d.ts +27 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/border.d.ts +103 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/color.d.ts +26 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/depth.d.ts +22 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/flex.d.ts +36 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/flexItem.d.ts +33 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +3 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/layout.d.ts +43 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/other.d.ts +5 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/position.d.ts +41 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/space.d.ts +64 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/stack.d.ts +26 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/types.d.ts +20 -0
- package/ts3.5/dist/commonjs/modal/lib/Modal.d.ts +1 -1
- package/ts3.5/dist/commonjs/modal/lib/ModalOverlay.d.ts +1 -1
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.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/GoTo/Form.d.ts +1 -1
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/Nav.d.ts +1 -1
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts +1 -2
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +1 -1
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/common/List.d.ts +1 -1
- package/ts3.5/dist/commonjs/popup/lib/Popup.d.ts +1 -1
- package/ts3.5/dist/commonjs/popup/lib/PopupBody.d.ts +1 -1
- package/ts3.5/dist/commonjs/popup/lib/PopupCard.d.ts +1 -1
- 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 +3 -5
- package/ts3.5/dist/commonjs/tabs/lib/TabsList.d.ts +1 -1
- package/ts3.5/dist/commonjs/tabs/lib/TabsPanel.d.ts +1 -1
- 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/tabs/lib/menu/MenuList.d.ts +1 -1
- 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/action-bar/lib/ActionBar.d.ts +1 -1
- package/ts3.5/dist/es6/banner/lib/Banner.d.ts +1 -1
- package/ts3.5/dist/es6/banner/lib/BannerActionText.d.ts +1 -1
- package/ts3.5/dist/es6/banner/lib/BannerLabel.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/card/lib/Card.d.ts +2 -2
- package/ts3.5/dist/es6/card/lib/CardBody.d.ts +1 -1
- package/ts3.5/dist/es6/card/lib/CardHeading.d.ts +1 -1
- package/ts3.5/dist/es6/dialog/lib/Dialog.d.ts +1 -1
- 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/index.d.ts +0 -2
- package/ts3.5/dist/es6/layout/index.d.ts +12 -2
- package/ts3.5/dist/es6/layout/lib/Box.d.ts +48 -0
- package/ts3.5/dist/es6/layout/lib/Flex.d.ts +26 -0
- package/ts3.5/dist/es6/layout/lib/Stack.d.ts +27 -0
- package/ts3.5/dist/es6/layout/lib/utils/border.d.ts +103 -0
- package/ts3.5/dist/es6/layout/lib/utils/color.d.ts +26 -0
- package/ts3.5/dist/es6/layout/lib/utils/depth.d.ts +22 -0
- package/ts3.5/dist/es6/layout/lib/utils/flex.d.ts +36 -0
- package/ts3.5/dist/es6/layout/lib/utils/flexItem.d.ts +33 -0
- package/ts3.5/dist/es6/layout/lib/utils/getValidChildren.d.ts +3 -0
- package/ts3.5/dist/es6/layout/lib/utils/layout.d.ts +43 -0
- package/ts3.5/dist/es6/layout/lib/utils/other.d.ts +5 -0
- package/ts3.5/dist/es6/layout/lib/utils/position.d.ts +41 -0
- package/ts3.5/dist/es6/layout/lib/utils/space.d.ts +64 -0
- package/ts3.5/dist/es6/layout/lib/utils/stack.d.ts +26 -0
- package/ts3.5/dist/es6/layout/lib/utils/types.d.ts +20 -0
- package/ts3.5/dist/es6/modal/lib/Modal.d.ts +1 -1
- package/ts3.5/dist/es6/modal/lib/ModalOverlay.d.ts +1 -1
- package/ts3.5/dist/es6/pagination/lib/Pagination/AdditionalDetails.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/GoTo/Form.d.ts +1 -1
- package/ts3.5/dist/es6/pagination/lib/Pagination/Nav.d.ts +1 -1
- package/ts3.5/dist/es6/pagination/lib/Pagination/PageButton.d.ts +1 -2
- package/ts3.5/dist/es6/pagination/lib/Pagination/PageList.d.ts +1 -1
- package/ts3.5/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/ts3.5/dist/es6/pagination/lib/Pagination/common/List.d.ts +1 -1
- package/ts3.5/dist/es6/popup/lib/Popup.d.ts +1 -1
- package/ts3.5/dist/es6/popup/lib/PopupBody.d.ts +1 -1
- package/ts3.5/dist/es6/popup/lib/PopupCard.d.ts +1 -1
- 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 +3 -5
- package/ts3.5/dist/es6/tabs/lib/TabsList.d.ts +1 -1
- package/ts3.5/dist/es6/tabs/lib/TabsPanel.d.ts +1 -1
- 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/tabs/lib/menu/MenuList.d.ts +1 -1
- 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/cookie-banner/LICENSE +0 -51
- package/cookie-banner/README.md +0 -104
- package/cookie-banner/index.ts +0 -5
- package/cookie-banner/lib/CookieBanner.tsx +0 -152
- package/cookie-banner/package.json +0 -5
- 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/cookie-banner/index.d.ts +0 -5
- package/dist/commonjs/cookie-banner/index.d.ts.map +0 -1
- package/dist/commonjs/cookie-banner/index.js +0 -20
- package/dist/commonjs/cookie-banner/lib/CookieBanner.d.ts +0 -48
- package/dist/commonjs/cookie-banner/lib/CookieBanner.d.ts.map +0 -1
- package/dist/commonjs/cookie-banner/lib/CookieBanner.js +0 -143
- package/dist/commonjs/page-header/index.d.ts +0 -5
- package/dist/commonjs/page-header/index.d.ts.map +0 -1
- package/dist/commonjs/page-header/index.js +0 -20
- package/dist/commonjs/page-header/lib/PageHeader.d.ts +0 -39
- package/dist/commonjs/page-header/lib/PageHeader.d.ts.map +0 -1
- package/dist/commonjs/page-header/lib/PageHeader.js +0 -142
- 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/dist/es6/cookie-banner/index.d.ts +0 -5
- package/dist/es6/cookie-banner/index.d.ts.map +0 -1
- package/dist/es6/cookie-banner/index.js +0 -4
- package/dist/es6/cookie-banner/lib/CookieBanner.d.ts +0 -48
- package/dist/es6/cookie-banner/lib/CookieBanner.d.ts.map +0 -1
- package/dist/es6/cookie-banner/lib/CookieBanner.js +0 -119
- package/dist/es6/page-header/index.d.ts +0 -5
- package/dist/es6/page-header/index.d.ts.map +0 -1
- package/dist/es6/page-header/index.js +0 -4
- package/dist/es6/page-header/lib/PageHeader.d.ts +0 -39
- package/dist/es6/page-header/lib/PageHeader.d.ts.map +0 -1
- package/dist/es6/page-header/lib/PageHeader.js +0 -118
- package/page-header/LICENSE +0 -51
- package/page-header/README.md +0 -72
- package/page-header/index.ts +0 -5
- package/page-header/lib/PageHeader.tsx +0 -126
- package/page-header/package.json +0 -5
- 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/commonjs/cookie-banner/index.d.ts +0 -5
- package/ts3.5/dist/commonjs/cookie-banner/lib/CookieBanner.d.ts +0 -48
- package/ts3.5/dist/commonjs/page-header/index.d.ts +0 -5
- package/ts3.5/dist/commonjs/page-header/lib/PageHeader.d.ts +0 -39
- 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
- package/ts3.5/dist/es6/cookie-banner/index.d.ts +0 -5
- package/ts3.5/dist/es6/cookie-banner/lib/CookieBanner.d.ts +0 -48
- package/ts3.5/dist/es6/page-header/index.d.ts +0 -5
- package/ts3.5/dist/es6/page-header/lib/PageHeader.d.ts +0 -39
|
@@ -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
|
|
@@ -7,7 +7,6 @@ export * from './card';
|
|
|
7
7
|
export * from './checkbox';
|
|
8
8
|
export * from './color-picker';
|
|
9
9
|
export * from './common';
|
|
10
|
-
export * from './cookie-banner';
|
|
11
10
|
export * from './dialog';
|
|
12
11
|
export * from './disclosure';
|
|
13
12
|
export * from './form-field';
|
|
@@ -15,7 +14,6 @@ export * from './icon';
|
|
|
15
14
|
export * from './layout';
|
|
16
15
|
export * from './loading-animation';
|
|
17
16
|
export * from './modal';
|
|
18
|
-
export * from './page-header';
|
|
19
17
|
export * from './pagination';
|
|
20
18
|
export * from './popup';
|
|
21
19
|
export * from './radio';
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import Layout from './lib/Layout';
|
|
2
2
|
import Column from './lib/Column';
|
|
3
|
-
export default Layout;
|
|
4
3
|
export { Layout, Column };
|
|
5
|
-
export * from './lib/
|
|
4
|
+
export * from './lib/Box';
|
|
5
|
+
export * from './lib/utils/border';
|
|
6
|
+
export * from './lib/utils/color';
|
|
7
|
+
export { DepthStyleProps } from './lib/utils/depth';
|
|
8
|
+
export * from './lib/utils/flexItem';
|
|
9
|
+
export * from './lib/utils/layout';
|
|
10
|
+
export * from './lib/utils/position';
|
|
11
|
+
export { SpaceStyleProps } from './lib/utils/space';
|
|
12
|
+
export * from './lib/Flex';
|
|
13
|
+
export * from './lib/Stack';
|
|
14
|
+
export { FlexStyleProps } from './lib/utils/flex';
|
|
15
|
+
export { StackSpacing, StackDirection, StackStyleProps } from './lib/utils/stack';
|
|
6
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BorderStyleProps } from './utils/border';
|
|
3
|
+
import { ColorStyleProps } from './utils/color';
|
|
4
|
+
import { DepthStyleProps } from './utils/depth';
|
|
5
|
+
import { FlexItemStyleProps } from './utils/flexItem';
|
|
6
|
+
import { LayoutStyleProps } from './utils/layout';
|
|
7
|
+
import { OtherStyleProps } from './utils/other';
|
|
8
|
+
import { PositionStyleProps } from './utils/position';
|
|
9
|
+
import { SpaceStyleProps } from './utils/space';
|
|
10
|
+
export declare type BoxProps = BorderStyleProps & ColorStyleProps & DepthStyleProps & FlexItemStyleProps & LayoutStyleProps & OtherStyleProps & PositionStyleProps & SpaceStyleProps & {
|
|
11
|
+
children?: React.ReactNode;
|
|
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) => {};
|
|
30
|
+
/**
|
|
31
|
+
* `Box` is a primitive component that provides a common, ergonomic API around Canvas design tokens.
|
|
32
|
+
* It is highly flexible, and its primary purpose is to build other components.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* import { Box, BoxProps } from '@workday/canvas-kit-react/layout';
|
|
36
|
+
*
|
|
37
|
+
* interface CardProps extends BoxProps {
|
|
38
|
+
* // card-specific props
|
|
39
|
+
* }
|
|
40
|
+
*
|
|
41
|
+
* // `Card`'s default values are set using `BoxProps`
|
|
42
|
+
* const Card = (props: CardProps) => (
|
|
43
|
+
* <Box depth={2} padding="m" borderRadius="l" {...props}>Hello, Card!</Box>
|
|
44
|
+
* );
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export declare const Box: import("../../common").ElementComponent<"div", import("./utils/border").BorderShorthandStyleProps & import("./utils/border").BorderColorStyleProps & import("./utils/border").BorderRadiusStyleProps & import("./utils/border").BorderLineStyleProps & import("./utils/border").BorderWidthStyleProps & import("./utils/border").BorderLogicalStyleProps & ColorStyleProps & DepthStyleProps & FlexItemStyleProps & LayoutStyleProps & OtherStyleProps & import("./utils/position").PositionStandardProps & import("./utils/position").PositionLogicalProps & import("./utils/space").SpaceStandardProps & import("./utils/space").SpaceLogicalProps>;
|
|
48
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BoxProps } from '@workday/canvas-kit-react/layout';
|
|
2
|
+
import { FlexStyleProps } from './utils/flex';
|
|
3
|
+
export declare type FlexProps = BoxProps & FlexStyleProps;
|
|
4
|
+
/**
|
|
5
|
+
* `Flex` is a low-level layout component that provides a common, ergonomic API for applying CSS flexbox styles.
|
|
6
|
+
* It is highly flexible, and can be used on its own or to build other components.
|
|
7
|
+
* `Flex` is built on top of `Box` and has access to all `BoxProps`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* import { Flex, FlexProps } from '@workday/canvas-kit-react/layout';
|
|
11
|
+
*
|
|
12
|
+
* interface CardProps extends FlexProps {
|
|
13
|
+
* // card-specific props
|
|
14
|
+
* }
|
|
15
|
+
*
|
|
16
|
+
* // `Card`'s default values are set using `FlexProps`
|
|
17
|
+
* const Card = (props: CardProps) => (
|
|
18
|
+
* <Flex flexDirection="column" alignItems="flex-start" depth={2} space="m" {...props}>
|
|
19
|
+
* <h1>Hello, Card!</h1>
|
|
20
|
+
* <p>This card uses flexbox to set its layout.</p>
|
|
21
|
+
* </Flex>
|
|
22
|
+
* );
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare const Flex: import("../../common").ElementComponent<"div", import("..").BorderShorthandStyleProps & import("..").BorderColorStyleProps & import("..").BorderRadiusStyleProps & import("..").BorderLineStyleProps & import("..").BorderWidthStyleProps & import("..").BorderLogicalStyleProps & import("..").ColorStyleProps & import("..").DepthStyleProps & import("..").FlexItemStyleProps & import("..").LayoutStyleProps & import("./utils/other").OtherStyleProps & import("..").PositionStandardProps & import("..").PositionLogicalProps & import("./utils/space").SpaceStandardProps & import("./utils/space").SpaceLogicalProps & FlexStyleProps>;
|
|
26
|
+
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FlexProps } from './Flex';
|
|
2
|
+
import { StackStyleProps } from './utils/stack';
|
|
3
|
+
export declare type StackProps = FlexProps & StackStyleProps;
|
|
4
|
+
export declare const Stack: import("../../common").ElementComponent<"div", import("..").BorderShorthandStyleProps & import("..").BorderColorStyleProps & import("..").BorderRadiusStyleProps & import("..").BorderLineStyleProps & import("..").BorderWidthStyleProps & import("..").BorderLogicalStyleProps & import("..").ColorStyleProps & import("..").DepthStyleProps & import("..").FlexItemStyleProps & import("..").LayoutStyleProps & import("./utils/other").OtherStyleProps & import("..").PositionStandardProps & import("..").PositionLogicalProps & import("./utils/space").SpaceStandardProps & import("./utils/space").SpaceLogicalProps & import("..").FlexStyleProps & StackStyleProps> & {
|
|
5
|
+
Item: import("../../common").ElementComponent<"div", import("..").BorderShorthandStyleProps & import("..").BorderColorStyleProps & import("..").BorderRadiusStyleProps & import("..").BorderLineStyleProps & import("..").BorderWidthStyleProps & import("..").BorderLogicalStyleProps & import("..").ColorStyleProps & import("..").DepthStyleProps & import("..").FlexItemStyleProps & import("..").LayoutStyleProps & import("./utils/other").OtherStyleProps & import("..").PositionStandardProps & import("..").PositionLogicalProps & import("./utils/space").SpaceStandardProps & import("./utils/space").SpaceLogicalProps>;
|
|
6
|
+
};
|
|
7
|
+
export interface HStackProps extends StackProps {
|
|
8
|
+
/**
|
|
9
|
+
* sets the direction for the stack
|
|
10
|
+
* @default "row"
|
|
11
|
+
* */
|
|
12
|
+
flexDirection?: 'row' | 'row-reverse';
|
|
13
|
+
}
|
|
14
|
+
export declare const HStack: import("../../common").ElementComponent<"div", HStackProps> & {
|
|
15
|
+
Item: import("../../common").ElementComponent<"div", import("..").BorderShorthandStyleProps & import("..").BorderColorStyleProps & import("..").BorderRadiusStyleProps & import("..").BorderLineStyleProps & import("..").BorderWidthStyleProps & import("..").BorderLogicalStyleProps & import("..").ColorStyleProps & import("..").DepthStyleProps & import("..").FlexItemStyleProps & import("..").LayoutStyleProps & import("./utils/other").OtherStyleProps & import("..").PositionStandardProps & import("..").PositionLogicalProps & import("./utils/space").SpaceStandardProps & import("./utils/space").SpaceLogicalProps>;
|
|
16
|
+
};
|
|
17
|
+
export interface VStackProps extends StackProps {
|
|
18
|
+
/**
|
|
19
|
+
* sets the direction for the stack
|
|
20
|
+
* @default "column"
|
|
21
|
+
* */
|
|
22
|
+
flexDirection?: 'column' | 'column-reverse';
|
|
23
|
+
}
|
|
24
|
+
export declare const VStack: import("../../common").ElementComponent<"div", VStackProps> & {
|
|
25
|
+
Item: import("../../common").ElementComponent<"div", import("..").BorderShorthandStyleProps & import("..").BorderColorStyleProps & import("..").BorderRadiusStyleProps & import("..").BorderLineStyleProps & import("..").BorderWidthStyleProps & import("..").BorderLogicalStyleProps & import("..").ColorStyleProps & import("..").DepthStyleProps & import("..").FlexItemStyleProps & import("..").LayoutStyleProps & import("./utils/other").OtherStyleProps & import("..").PositionStandardProps & import("..").PositionLogicalProps & import("./utils/space").SpaceStandardProps & import("./utils/space").SpaceLogicalProps>;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { CanvasBorderRadiusKeys, CanvasColor } from '@workday/canvas-kit-react/tokens';
|
|
2
|
+
import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { PropertyBorder } from './types';
|
|
4
|
+
/** style props to set the border properties */
|
|
5
|
+
export declare type BorderShorthandStyleProps = {
|
|
6
|
+
/** sets `border` property */
|
|
7
|
+
border?: string;
|
|
8
|
+
/** sets `border-top` property */
|
|
9
|
+
borderTop?: string;
|
|
10
|
+
/** sets `border-right` property (no bidirectional support) */
|
|
11
|
+
borderRight?: string;
|
|
12
|
+
/** sets `border-bottom` property */
|
|
13
|
+
borderBottom?: string;
|
|
14
|
+
/** sets `border-left` property (no bidirectional support) */
|
|
15
|
+
borderLeft?: string;
|
|
16
|
+
};
|
|
17
|
+
/** style props to set the border color properties */
|
|
18
|
+
export declare type BorderColorStyleProps = {
|
|
19
|
+
/** sets `border-color` property */
|
|
20
|
+
borderColor?: CanvasColor | (string & {});
|
|
21
|
+
/** sets `border-top-color` property */
|
|
22
|
+
borderTopColor?: CanvasColor | (string & {});
|
|
23
|
+
/** sets `border-right-color` property (no bidirectional support) */
|
|
24
|
+
borderRightColor?: CanvasColor | (string & {});
|
|
25
|
+
/** sets `border-bottom-color` property */
|
|
26
|
+
borderBottomColor?: CanvasColor | (string & {});
|
|
27
|
+
/** sets `border-left-color` property (no bidirectional support) */
|
|
28
|
+
borderLeftColor?: CanvasColor | (string & {});
|
|
29
|
+
};
|
|
30
|
+
/** style props to set the border radius properties */
|
|
31
|
+
export declare type BorderRadiusStyleProps = {
|
|
32
|
+
/** sets `border-radius` property */
|
|
33
|
+
borderRadius?: CanvasBorderRadiusKeys | number | (string & {});
|
|
34
|
+
/** sets `border-top-left-radius` property */
|
|
35
|
+
borderTopLeftRadius?: CanvasBorderRadiusKeys | number | (string & {});
|
|
36
|
+
/** sets `border-top-right-radius` property */
|
|
37
|
+
borderTopRightRadius?: CanvasBorderRadiusKeys | number | (string & {});
|
|
38
|
+
/** sets `border-bottom-left-radius` property */
|
|
39
|
+
borderBottomLeftRadius?: CanvasBorderRadiusKeys | number | (string & {});
|
|
40
|
+
/** sets `border-bottom-right-radius` property */
|
|
41
|
+
borderBottomRightRadius?: CanvasBorderRadiusKeys | number | (string & {});
|
|
42
|
+
};
|
|
43
|
+
/** style props to set the border style properties */
|
|
44
|
+
export declare type BorderLineStyleProps = {
|
|
45
|
+
/** sets `border-style` property */
|
|
46
|
+
borderStyle?: PropertyBorder;
|
|
47
|
+
/** sets `border-top-style` property */
|
|
48
|
+
borderTopStyle?: PropertyBorder;
|
|
49
|
+
/** sets `border-right-style` property (no bidirectional support) */
|
|
50
|
+
borderRightStyle?: PropertyBorder;
|
|
51
|
+
/** sets `border-bottom-style` property */
|
|
52
|
+
borderBottomStyle?: PropertyBorder;
|
|
53
|
+
/** sets `border-left-style` property (no bidirectional support) */
|
|
54
|
+
borderLeftStyle?: PropertyBorder;
|
|
55
|
+
};
|
|
56
|
+
/** style props to set the border width properties */
|
|
57
|
+
export declare type BorderWidthStyleProps = {
|
|
58
|
+
/** sets `border-width` property */
|
|
59
|
+
borderWidth?: string | number;
|
|
60
|
+
/** sets `border-top-width` property */
|
|
61
|
+
borderTopWidth?: string | number;
|
|
62
|
+
/** sets `border-right-width` property (no bidirectional support) */
|
|
63
|
+
borderRightWidth?: string | number;
|
|
64
|
+
/** sets `border-bottom-width` property */
|
|
65
|
+
borderBottomWidth?: string | number;
|
|
66
|
+
/** sets `border-left-width` property (no bidirectional support) */
|
|
67
|
+
borderLeftWidth?: string | number;
|
|
68
|
+
};
|
|
69
|
+
export declare type BorderLogicalStyleProps = {
|
|
70
|
+
/** sets `border-left` property (bidirectional support) */
|
|
71
|
+
borderInlineStart?: string;
|
|
72
|
+
/** sets `border-left-color` property (bidirectional support) */
|
|
73
|
+
borderInlineStartColor?: CanvasColor | (string & {});
|
|
74
|
+
/** sets `border-left-style` property (bidirectional support) */
|
|
75
|
+
borderInlineStartStyle?: PropertyBorder;
|
|
76
|
+
/** sets `border-left-width` property (bidirectional support) */
|
|
77
|
+
borderInlineStartWidth?: string | number;
|
|
78
|
+
/** sets `border-right` property (bidirectional support) */
|
|
79
|
+
borderInlineEnd?: string;
|
|
80
|
+
/** sets `border-right-color` property (bidirectional support) */
|
|
81
|
+
borderInlineEndColor?: CanvasColor | (string & {});
|
|
82
|
+
/** sets `border-right-style` property (bidirectional support) */
|
|
83
|
+
borderInlineEndStyle?: PropertyBorder;
|
|
84
|
+
/** sets `border-right-width` property (bidirectional support) */
|
|
85
|
+
borderInlineEndWidth?: string | number;
|
|
86
|
+
};
|
|
87
|
+
/** a collection style props for border properties */
|
|
88
|
+
export declare type BorderStyleProps = BorderShorthandStyleProps & BorderColorStyleProps & BorderRadiusStyleProps & BorderLineStyleProps & BorderWidthStyleProps & BorderLogicalStyleProps;
|
|
89
|
+
/**
|
|
90
|
+
* A style prop function that takes components props and returns border styles. Some props, such as borderRadius and borderColor, are connected to our design tokens.
|
|
91
|
+
* If no `BorderStyleProps` are found, it returns an empty object.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* // You'll most likely use `border` with low-level, styled components
|
|
95
|
+
* const BoxExample = () => (
|
|
96
|
+
* <Box border={`solid 1px #333333 ${colors.blackPepper400}`}>Hello, border styles!</Box>
|
|
97
|
+
* );
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
export declare function border<P extends BorderStyleProps & {
|
|
101
|
+
theme?: PartialEmotionCanvasTheme;
|
|
102
|
+
}>(props: P): {};
|
|
103
|
+
//# sourceMappingURL=border.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { colors as colorTokens, CanvasColor } from '@workday/canvas-kit-react/tokens';
|
|
2
|
+
export declare type ColorTokens = typeof colorTokens;
|
|
3
|
+
/** style props to for color properties */
|
|
4
|
+
export declare type ColorStyleProps = {
|
|
5
|
+
/** sets `background` property */
|
|
6
|
+
background?: CanvasColor | (string & {});
|
|
7
|
+
/** sets `background-color` property */
|
|
8
|
+
backgroundColor?: CanvasColor | (string & {});
|
|
9
|
+
/** sets `background-image` property */
|
|
10
|
+
backgroundImage?: string;
|
|
11
|
+
/** sets `color` property */
|
|
12
|
+
color?: CanvasColor | (string & {});
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A style prop function that takes components props and returns color styles from canvas token values.
|
|
16
|
+
* If no `ColorStyleProps` are found, it returns an empty object.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // You'll most likely use `color` with low-level, styled components
|
|
20
|
+
* const BoxExample = () => (
|
|
21
|
+
* <Box backgroundColor="blueberry500" color="frenchVanilla100">Hello, colors!</Box>
|
|
22
|
+
* );
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function color<P extends ColorStyleProps>(props: P): {};
|
|
26
|
+
//# sourceMappingURL=color.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { depth as depthTokens } from '@workday/canvas-kit-react/tokens';
|
|
2
|
+
export declare type DepthTokens = typeof depthTokens;
|
|
3
|
+
export declare type DepthTokenKeys = keyof DepthTokens;
|
|
4
|
+
export declare type DepthTokenValues = DepthTokens[keyof DepthTokens];
|
|
5
|
+
/** style props to for depth styles */
|
|
6
|
+
export declare type DepthStyleProps = {
|
|
7
|
+
/** sets depth styles (box-shadow & border) */
|
|
8
|
+
depth?: DepthTokenKeys;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A style prop function that takes components props and returns depth styles from canvas token values.
|
|
12
|
+
* If no `DepthStyleProps` are found, it returns an empty object.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // You'll mostly likely use `depth` with low-level, styled components
|
|
16
|
+
* const BoxExample = () => (
|
|
17
|
+
* <Box depth={3}>Hello, box shadows!</Box>
|
|
18
|
+
* );
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare function depth<P extends DepthStyleProps>(props: P): DepthTokenValues;
|
|
22
|
+
//# sourceMappingURL=depth.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropertyAlignItems, PropertyAlignContent, PropertyJustifyItems, PropertyJustifyContent, PropertyFlexWrap, PropertyFlexDirection } from './types';
|
|
2
|
+
/** style props to for flexbox container properties */
|
|
3
|
+
export declare type FlexStyleProps = {
|
|
4
|
+
/** sets `align-items` property */
|
|
5
|
+
alignItems?: PropertyAlignItems;
|
|
6
|
+
/** sets `align-content` property */
|
|
7
|
+
alignContent?: PropertyAlignContent;
|
|
8
|
+
/**
|
|
9
|
+
* sets `display` property
|
|
10
|
+
* @default 'flex'
|
|
11
|
+
* */
|
|
12
|
+
display?: 'flex' | 'inline-flex';
|
|
13
|
+
/** sets `justify-items` property */
|
|
14
|
+
justifyItems?: PropertyJustifyItems;
|
|
15
|
+
/** sets `justify-content` property */
|
|
16
|
+
justifyContent?: PropertyJustifyContent;
|
|
17
|
+
/** sets `flex-wrap` property */
|
|
18
|
+
flexWrap?: PropertyFlexWrap;
|
|
19
|
+
/** sets `flex-direction` property */
|
|
20
|
+
flexDirection?: PropertyFlexDirection;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* A style prop function that takes component props and returns flexbox styles.
|
|
24
|
+
* If no `FlexStyleProps` are found, it returns an empty object.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // You'll most likely use `flex` with low-level, styled components
|
|
28
|
+
* const FlexExample = () => (
|
|
29
|
+
* <Flex justifyContent="center" alignItems="center">
|
|
30
|
+
* Hello, flex!
|
|
31
|
+
* </Flex>
|
|
32
|
+
* );
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare function flex<P extends FlexStyleProps>(props: P): {};
|
|
36
|
+
//# sourceMappingURL=flex.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PropertyJustifySelf, PropertyAlignSelf, PropertyOrder } from './types';
|
|
2
|
+
/** style props to for flexbox item properties */
|
|
3
|
+
export declare type FlexItemStyleProps = {
|
|
4
|
+
/** sets `flex` property */
|
|
5
|
+
flex?: number | string;
|
|
6
|
+
/** sets `flex-grow` property */
|
|
7
|
+
flexGrow?: number | string;
|
|
8
|
+
/** sets `flex-shrink` property */
|
|
9
|
+
flexShrink?: number | string;
|
|
10
|
+
/** sets `flex-basis` property */
|
|
11
|
+
flexBasis?: number | string;
|
|
12
|
+
/** sets `justify-self` property */
|
|
13
|
+
justifySelf?: PropertyJustifySelf;
|
|
14
|
+
/** sets `align-self` property */
|
|
15
|
+
alignSelf?: PropertyAlignSelf;
|
|
16
|
+
/** sets `order` property */
|
|
17
|
+
order?: PropertyOrder;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A style prop function that takes component props and returns flexbox item styles.
|
|
21
|
+
* If no `FlexItemStyleProps` are found, it returns an empty object.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // You'll most likely use `flexItem` with low-level, styled components
|
|
25
|
+
* const FlexItemExample = () => (
|
|
26
|
+
* <Box flex={1} flexBasis="auto" alignSelf={center}>
|
|
27
|
+
* Hello, flex item!
|
|
28
|
+
* </Box>
|
|
29
|
+
* );
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare function flexItem<P extends FlexItemStyleProps>(props: P): {};
|
|
33
|
+
//# sourceMappingURL=flexItem.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>[];
|
|
3
|
+
//# sourceMappingURL=getValidChildren.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PropertyDisplay, PropertyListStyle, PropertyOverflow, PropertyOverflowX, PropertyOverflowY, PropertyVerticalAlign } from './types';
|
|
2
|
+
/** style props to for layout properties */
|
|
3
|
+
export declare type LayoutStyleProps = {
|
|
4
|
+
/** sets `display` property */
|
|
5
|
+
display?: PropertyDisplay;
|
|
6
|
+
/** sets `height` property */
|
|
7
|
+
height?: number | string;
|
|
8
|
+
/** sets `list-style property */
|
|
9
|
+
listStyle?: PropertyListStyle;
|
|
10
|
+
/** sets `max-height` property */
|
|
11
|
+
maxHeight?: number | string;
|
|
12
|
+
/** sets `max-width` property */
|
|
13
|
+
maxWidth?: number | string;
|
|
14
|
+
/** sets `min-height` property */
|
|
15
|
+
minHeight?: number | string;
|
|
16
|
+
/** sets `min-width` property */
|
|
17
|
+
minWidth?: number | string;
|
|
18
|
+
/** sets `overflow` property */
|
|
19
|
+
overflow?: PropertyOverflow;
|
|
20
|
+
/** sets `overflow-x` property */
|
|
21
|
+
overflowX?: PropertyOverflowX;
|
|
22
|
+
/** sets `overflow-y` property */
|
|
23
|
+
overflowY?: PropertyOverflowY;
|
|
24
|
+
/** sets `vertical-align` property */
|
|
25
|
+
verticalAlign?: PropertyVerticalAlign;
|
|
26
|
+
/** sets `width` property */
|
|
27
|
+
width?: number | string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* A style prop function that takes components props and returns layout styles.
|
|
31
|
+
* If no `LayoutStyleProps` are found, it returns an empty object.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // You'll most likely use `layout` with low-level, styled components
|
|
35
|
+
* const BoxExample = () => (
|
|
36
|
+
* <Box display="inline-block" height="50%">
|
|
37
|
+
* Hello, positions!
|
|
38
|
+
* </Box>
|
|
39
|
+
* );
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export declare function layout<P extends LayoutStyleProps>(props: P): {};
|
|
43
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { PropertyPosition, PropertyZIndex } from './types';
|
|
3
|
+
/** style props to for standard position properties */
|
|
4
|
+
export declare type PositionStandardProps = {
|
|
5
|
+
/** sets `position` property */
|
|
6
|
+
position?: PropertyPosition;
|
|
7
|
+
/** sets `zIndex` property */
|
|
8
|
+
zIndex?: PropertyZIndex;
|
|
9
|
+
/** sets `top` property */
|
|
10
|
+
top?: number | string;
|
|
11
|
+
/** sets `right` property (no bidirectional support) */
|
|
12
|
+
right?: number | string;
|
|
13
|
+
/** sets `bottom` property */
|
|
14
|
+
bottom?: number | string;
|
|
15
|
+
/** sets `left` property (no bidirectional support) */
|
|
16
|
+
left?: number | string;
|
|
17
|
+
};
|
|
18
|
+
export declare type PositionLogicalProps = {
|
|
19
|
+
/** sets `left` property (bidirectional support) */
|
|
20
|
+
insetInlineStart?: number | string;
|
|
21
|
+
/** sets `right` property (bidirectional support) */
|
|
22
|
+
insetInlineEnd?: number | string;
|
|
23
|
+
};
|
|
24
|
+
export declare type PositionStyleProps = PositionStandardProps & PositionLogicalProps;
|
|
25
|
+
/**
|
|
26
|
+
* A style prop function that takes components props and returns position styles.
|
|
27
|
+
* If no `PositionProps` are found, it returns an empty object.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // You'll most likely use `position` with low-level, styled components
|
|
31
|
+
* const BoxExample = () => (
|
|
32
|
+
* <Box position="absolute" top="50%">
|
|
33
|
+
* Hello, positions!
|
|
34
|
+
* </Box>
|
|
35
|
+
* );
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare function position<P extends PositionStyleProps & {
|
|
39
|
+
theme?: PartialEmotionCanvasTheme;
|
|
40
|
+
}>(props: P): {};
|
|
41
|
+
//# sourceMappingURL=position.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
2
|
+
import { CanvasSpaceKeys } from '@workday/canvas-kit-react/tokens';
|
|
3
|
+
declare type SpacePropValues = CanvasSpaceKeys | number | (string & {});
|
|
4
|
+
/** These props automatically adjust for bidirectionality (LTR & RTL) */
|
|
5
|
+
export declare type SpaceLogicalProps = {
|
|
6
|
+
/** sets margin-left property (bidirectional support) */
|
|
7
|
+
marginInlineStart?: SpacePropValues;
|
|
8
|
+
/** sets margin-right property (bidirectional support) */
|
|
9
|
+
marginInlineEnd?: SpacePropValues;
|
|
10
|
+
/** sets padding-left property (bidirectional support) */
|
|
11
|
+
paddingInlineStart?: SpacePropValues;
|
|
12
|
+
/** sets padding-right property (bidirectional support) */
|
|
13
|
+
paddingInlineEnd?: SpacePropValues;
|
|
14
|
+
};
|
|
15
|
+
/** These props do not adjust for bidirectionality (LTR & RTL) */
|
|
16
|
+
export declare type SpaceStandardProps = {
|
|
17
|
+
/** sets margin property */
|
|
18
|
+
margin?: SpacePropValues;
|
|
19
|
+
/** sets margin-left and margin-right properties */
|
|
20
|
+
marginX?: SpacePropValues;
|
|
21
|
+
/** sets margin-top and margin-bottom properties */
|
|
22
|
+
marginY?: SpacePropValues;
|
|
23
|
+
/** sets margin-top property */
|
|
24
|
+
marginTop?: SpacePropValues;
|
|
25
|
+
/** sets margin-right property (no bidirectional support) */
|
|
26
|
+
marginRight?: SpacePropValues;
|
|
27
|
+
/** sets margin-bottom property */
|
|
28
|
+
marginBottom?: SpacePropValues;
|
|
29
|
+
/** sets margin-left property (no bidirectional support) */
|
|
30
|
+
marginLeft?: SpacePropValues;
|
|
31
|
+
/** sets padding property */
|
|
32
|
+
padding?: SpacePropValues;
|
|
33
|
+
/** sets padding-left and margin-right properties */
|
|
34
|
+
paddingX?: SpacePropValues;
|
|
35
|
+
/** sets padding-top and padding-bottom properties */
|
|
36
|
+
paddingY?: SpacePropValues;
|
|
37
|
+
/** sets padding-top property */
|
|
38
|
+
paddingTop?: SpacePropValues;
|
|
39
|
+
/** sets padding-right property (no bidirectional support) */
|
|
40
|
+
paddingRight?: SpacePropValues;
|
|
41
|
+
/** sets padding-bottom */
|
|
42
|
+
paddingBottom?: SpacePropValues;
|
|
43
|
+
/** sets padding-left property (no bidirectional support) */
|
|
44
|
+
paddingLeft?: SpacePropValues;
|
|
45
|
+
};
|
|
46
|
+
export declare type SpaceStyleProps = SpaceStandardProps & SpaceLogicalProps;
|
|
47
|
+
/**
|
|
48
|
+
* A style prop function that takes component props and returns space styles.
|
|
49
|
+
* If no `SpaceStyleProps` are found, it returns an empty object.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* // You'll most likely use `space` with low-level, styled components
|
|
53
|
+
* const BoxExample = () => (
|
|
54
|
+
* <Box padding="xs" margin="m">
|
|
55
|
+
* Hello, space!
|
|
56
|
+
* </Box>
|
|
57
|
+
* );
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare function space<P extends SpaceStyleProps & {
|
|
61
|
+
theme?: PartialEmotionCanvasTheme;
|
|
62
|
+
}>(props: P): {};
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=space.d.ts.map
|