@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
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { borderRadius as borderRadiusTokens, colors as colorTokens, } from '@workday/canvas-kit-react/tokens';
|
|
2
|
+
import { ContentDirection, useTheme, } from '@workday/canvas-kit-react/common';
|
|
3
|
+
// border logical prop handlers
|
|
4
|
+
var borderInlineStart = function (isRTL) { return (isRTL ? 'borderRight' : 'borderLeft'); };
|
|
5
|
+
var borderInlineEnd = function (isRTL) { return (isRTL ? 'borderLeft' : 'borderRight'); };
|
|
6
|
+
var borderInlineStartColor = function (isRTL) { return (isRTL ? 'borderRightColor' : 'borderLeftColor'); };
|
|
7
|
+
var borderInlineEndColor = function (isRTL) { return (isRTL ? 'borderLeftColor' : 'borderRightColor'); };
|
|
8
|
+
var borderInlineStartStyle = function (isRTL) { return (isRTL ? 'borderRightStyle' : 'borderLeftStyle'); };
|
|
9
|
+
var borderInlineEndStyle = function (isRTL) { return (isRTL ? 'borderLeftStyle' : 'borderRightStyle'); };
|
|
10
|
+
var borderInlineStartWidth = function (isRTL) { return (isRTL ? 'borderRightWidth' : 'borderLeftWidth'); };
|
|
11
|
+
var borderInlineEndWidth = function (isRTL) { return (isRTL ? 'borderLeftWidth' : 'borderRightWidth'); };
|
|
12
|
+
var borderShorthandProps = {
|
|
13
|
+
border: 'border',
|
|
14
|
+
borderTop: 'borderTop',
|
|
15
|
+
borderRight: 'borderRight',
|
|
16
|
+
borderBottom: 'borderBottom',
|
|
17
|
+
borderLeft: 'borderLeft',
|
|
18
|
+
borderInlineStart: borderInlineStart,
|
|
19
|
+
borderInlineEnd: borderInlineEnd,
|
|
20
|
+
};
|
|
21
|
+
var borderColors = {
|
|
22
|
+
borderColor: 'borderColor',
|
|
23
|
+
borderTopColor: 'borderTopColor',
|
|
24
|
+
borderRightColor: 'borderRightColor',
|
|
25
|
+
borderBottomColor: 'borderBottomColor',
|
|
26
|
+
borderLeftColor: 'borderLeftColor',
|
|
27
|
+
borderInlineStartColor: borderInlineStartColor,
|
|
28
|
+
borderInlineEndColor: borderInlineEndColor,
|
|
29
|
+
};
|
|
30
|
+
var borderRadii = {
|
|
31
|
+
borderRadius: 'borderRadius',
|
|
32
|
+
borderTopLeftRadius: 'borderTopLeftRadius',
|
|
33
|
+
borderTopRightRadius: 'borderTopRightRadius',
|
|
34
|
+
borderBottomLeftRadius: 'borderBottomLeftRadius',
|
|
35
|
+
borderBottomRightRadius: 'borderBottomRightRadius',
|
|
36
|
+
};
|
|
37
|
+
var borderStyles = {
|
|
38
|
+
borderStyle: 'borderStyle',
|
|
39
|
+
borderTopStyle: 'borderTopStyle',
|
|
40
|
+
borderRightStyle: 'borderRightStyle',
|
|
41
|
+
borderBottomStyle: 'borderBottomStyle',
|
|
42
|
+
borderLeftStyle: 'borderLeftStyle',
|
|
43
|
+
borderInlineStartStyle: borderInlineStartStyle,
|
|
44
|
+
borderInlineEndStyle: borderInlineEndStyle,
|
|
45
|
+
};
|
|
46
|
+
var borderWidths = {
|
|
47
|
+
borderWidth: 'borderWidth',
|
|
48
|
+
borderTopWidth: 'borderTopWidth',
|
|
49
|
+
borderRightWidth: 'borderRightWidth',
|
|
50
|
+
borderBottomWidth: 'borderBottomWidth',
|
|
51
|
+
borderLeftWidth: 'borderLeftWidth',
|
|
52
|
+
borderInlineStartWidth: borderInlineStartWidth,
|
|
53
|
+
borderInlineEndWidth: borderInlineEndWidth,
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 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.
|
|
57
|
+
* If no `BorderStyleProps` are found, it returns an empty object.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* // You'll most likely use `border` with low-level, styled components
|
|
61
|
+
* const BoxExample = () => (
|
|
62
|
+
* <Box border={`solid 1px #333333 ${colors.blackPepper400}`}>Hello, border styles!</Box>
|
|
63
|
+
* );
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export function border(props) {
|
|
67
|
+
// border will always be used within the context of a component, but eslint doesn't know that
|
|
68
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
69
|
+
var canvas = useTheme(props.theme).canvas;
|
|
70
|
+
var isRTL = canvas.direction === ContentDirection.RTL;
|
|
71
|
+
var styles = {};
|
|
72
|
+
for (var key in props) {
|
|
73
|
+
if (props.hasOwnProperty(key)) {
|
|
74
|
+
if (key in borderShorthandProps) {
|
|
75
|
+
var value = props[key];
|
|
76
|
+
var attr = void 0;
|
|
77
|
+
if (key === 'borderInlineStart') {
|
|
78
|
+
attr = borderInlineStart(isRTL);
|
|
79
|
+
}
|
|
80
|
+
else if (key === 'borderInlineEnd') {
|
|
81
|
+
attr = borderInlineEnd(isRTL);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
attr = borderShorthandProps[key];
|
|
85
|
+
}
|
|
86
|
+
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
87
|
+
styles[attr] = value;
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
if (key in borderColors) {
|
|
91
|
+
var propValue = props[key];
|
|
92
|
+
var value = colorTokens[propValue] || propValue;
|
|
93
|
+
var attr = void 0;
|
|
94
|
+
if (key === 'borderInlineStartColor') {
|
|
95
|
+
attr = borderInlineStartColor(isRTL);
|
|
96
|
+
}
|
|
97
|
+
else if (key === 'borderInlineEndColor') {
|
|
98
|
+
attr = borderInlineEndColor(isRTL);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
attr = borderColors[key];
|
|
102
|
+
}
|
|
103
|
+
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
104
|
+
styles[attr] = value;
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
if (key in borderRadii) {
|
|
108
|
+
var propValue = props[key];
|
|
109
|
+
var value = borderRadiusTokens[propValue] || propValue;
|
|
110
|
+
var attr = borderRadii[key];
|
|
111
|
+
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
112
|
+
styles[attr] = value;
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if (key in borderStyles) {
|
|
116
|
+
var value = props[key];
|
|
117
|
+
var attr = void 0;
|
|
118
|
+
if (key === 'borderInlineStartStyle') {
|
|
119
|
+
attr = borderInlineStartStyle(isRTL);
|
|
120
|
+
}
|
|
121
|
+
else if (key === 'borderInlineEndStyle') {
|
|
122
|
+
attr = borderInlineEndStyle(isRTL);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
attr = borderStyles[key];
|
|
126
|
+
}
|
|
127
|
+
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
128
|
+
styles[attr] = value;
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
if (key in borderWidths) {
|
|
132
|
+
var value = props[key];
|
|
133
|
+
var attr = void 0;
|
|
134
|
+
if (key === 'borderInlineStartWidth') {
|
|
135
|
+
attr = borderInlineStartWidth(isRTL);
|
|
136
|
+
}
|
|
137
|
+
else if (key === 'borderInlineEndWidth') {
|
|
138
|
+
attr = borderInlineEndWidth(isRTL);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
attr = borderWidths[key];
|
|
142
|
+
}
|
|
143
|
+
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
144
|
+
styles[attr] = value;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return styles;
|
|
149
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,IAAI,WAAW,EAAE,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAEpF,oBAAY,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C,0CAA0C;AAC1C,oBAAY,eAAe,GAAG;IAC5B,iCAAiC;IACjC,UAAU,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACzC,uCAAuC;IACvC,eAAe,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC9C,uCAAuC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACrC,CAAC;AAyBF;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC,MAWxD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { colors as colorTokens } from '@workday/canvas-kit-react/tokens';
|
|
13
|
+
var getBackground = function (value) { return ({
|
|
14
|
+
background: colorTokens[value] || value,
|
|
15
|
+
}); };
|
|
16
|
+
var getBackgroundColor = function (value) { return ({
|
|
17
|
+
backgroundColor: colorTokens[value] || value,
|
|
18
|
+
}); };
|
|
19
|
+
var getBackgroundImage = function (value) { return ({
|
|
20
|
+
backgroundImage: value,
|
|
21
|
+
}); };
|
|
22
|
+
var getColor = function (value) { return ({
|
|
23
|
+
color: colorTokens[value] || value,
|
|
24
|
+
}); };
|
|
25
|
+
var colorProps = {
|
|
26
|
+
background: getBackground,
|
|
27
|
+
backgroundColor: getBackgroundColor,
|
|
28
|
+
backgroundImage: getBackgroundImage,
|
|
29
|
+
color: getColor,
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* A style prop function that takes components props and returns color styles from canvas token values.
|
|
33
|
+
* If no `ColorStyleProps` are found, it returns an empty object.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* // You'll most likely use `color` with low-level, styled components
|
|
37
|
+
* const BoxExample = () => (
|
|
38
|
+
* <Box backgroundColor="blueberry500" color="frenchVanilla100">Hello, colors!</Box>
|
|
39
|
+
* );
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export function color(props) {
|
|
43
|
+
var styles = {};
|
|
44
|
+
for (var key in props) {
|
|
45
|
+
if (key in colorProps) {
|
|
46
|
+
var value = props[key];
|
|
47
|
+
var colorFn = colorProps[key];
|
|
48
|
+
var style = colorFn(value);
|
|
49
|
+
styles = __assign(__assign({}, styles), style);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return styles;
|
|
53
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/depth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAEtE,oBAAY,WAAW,GAAG,OAAO,WAAW,CAAC;AAC7C,oBAAY,cAAc,GAAG,MAAM,WAAW,CAAC;AAC/C,oBAAY,gBAAgB,GAAG,WAAW,CAAC,MAAM,WAAW,CAAC,CAAC;AAE9D,sCAAsC;AACtC,oBAAY,eAAe,GAAG;IAC5B,8CAA8C;IAC9C,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,CAAC;AAMF;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC,GAAG,gBAAgB,CAS3E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { depth as depthTokens } from '@workday/canvas-kit-react/tokens';
|
|
2
|
+
var depthProps = {
|
|
3
|
+
depth: function (token) { return depthTokens[token]; },
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* A style prop function that takes components props and returns depth styles from canvas token values.
|
|
7
|
+
* If no `DepthStyleProps` are found, it returns an empty object.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* // You'll mostly likely use `depth` with low-level, styled components
|
|
11
|
+
* const BoxExample = () => (
|
|
12
|
+
* <Box depth={3}>Hello, box shadows!</Box>
|
|
13
|
+
* );
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export function depth(props) {
|
|
17
|
+
for (var key in props) {
|
|
18
|
+
if (key in depthProps) {
|
|
19
|
+
var token = props[key];
|
|
20
|
+
var depthFn = depthProps[key];
|
|
21
|
+
return depthFn(token);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,sDAAsD;AACtD,oBAAY,cAAc,GAAG;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,oCAAoC;IACpC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,sCAAsC;IACtC,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,qCAAqC;IACrC,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAYF;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,MAWtD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var flexProps = {
|
|
2
|
+
alignContent: 'alignContent',
|
|
3
|
+
alignItems: 'alignItems',
|
|
4
|
+
display: 'display',
|
|
5
|
+
flexDirection: 'flexDirection',
|
|
6
|
+
flexWrap: 'flexWrap',
|
|
7
|
+
justifyContent: 'justifyContent',
|
|
8
|
+
justifyItems: 'justifyItems',
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A style prop function that takes component props and returns flexbox styles.
|
|
12
|
+
* If no `FlexStyleProps` are found, it returns an empty object.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // You'll most likely use `flex` with low-level, styled components
|
|
16
|
+
* const FlexExample = () => (
|
|
17
|
+
* <Flex justifyContent="center" alignItems="center">
|
|
18
|
+
* Hello, flex!
|
|
19
|
+
* </Flex>
|
|
20
|
+
* );
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function flex(props) {
|
|
24
|
+
var styles = {};
|
|
25
|
+
for (var key in props) {
|
|
26
|
+
if (key in flexProps) {
|
|
27
|
+
var attr = flexProps[key];
|
|
28
|
+
var value = props[key];
|
|
29
|
+
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
30
|
+
styles[attr] = value;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return styles;
|
|
34
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAE9E,iDAAiD;AACjD,oBAAY,kBAAkB,GAAG;IAC/B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,mCAAmC;IACnC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,iCAAiC;IACjC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAaF;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,EAAE,KAAK,EAAE,CAAC,MAW9D"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** style props to for flexbox item properties */
|
|
2
|
+
var flexItemProps = {
|
|
3
|
+
flex: 'flex',
|
|
4
|
+
flexGrow: 'flexGrow',
|
|
5
|
+
flexShrink: 'flexShrink',
|
|
6
|
+
flexBasis: 'flexBasis',
|
|
7
|
+
justifySelf: 'justifySelf',
|
|
8
|
+
alignSelf: 'alignSelf',
|
|
9
|
+
order: 'order',
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A style prop function that takes component props and returns flexbox item styles.
|
|
13
|
+
* If no `FlexItemStyleProps` are found, it returns an empty object.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // You'll most likely use `flexItem` with low-level, styled components
|
|
17
|
+
* const FlexItemExample = () => (
|
|
18
|
+
* <Box flex={1} flexBasis="auto" alignSelf={center}>
|
|
19
|
+
* Hello, flex item!
|
|
20
|
+
* </Box>
|
|
21
|
+
* );
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export function flexItem(props) {
|
|
25
|
+
var styles = {};
|
|
26
|
+
for (var key in props) {
|
|
27
|
+
if (key in flexItemProps) {
|
|
28
|
+
var attr = flexItemProps[key];
|
|
29
|
+
var value = props[key];
|
|
30
|
+
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
31
|
+
styles[attr] = value;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return styles;
|
|
35
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"getValidChildren.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/getValidChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,oJAIzD"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,2CAA2C;AAC3C,oBAAY,gBAAgB,GAAG;IAC7B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gCAAgC;IAChC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,iCAAiC;IACjC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,iCAAiC;IACjC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,qCAAqC;IACrC,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAiBF;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,gBAAgB,EAAE,KAAK,EAAE,CAAC,MAW1D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var layoutProps = {
|
|
2
|
+
display: 'display',
|
|
3
|
+
height: 'height',
|
|
4
|
+
listStyle: 'listStyle',
|
|
5
|
+
maxHeight: 'maxHeight',
|
|
6
|
+
maxWidth: 'maxWidth',
|
|
7
|
+
minHeight: 'minHeight',
|
|
8
|
+
minWidth: 'minWidth',
|
|
9
|
+
overflow: 'overflow',
|
|
10
|
+
overflowX: 'overflowX',
|
|
11
|
+
overflowY: 'overflowY',
|
|
12
|
+
verticalAlign: 'verticalAlign',
|
|
13
|
+
width: 'width',
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A style prop function that takes components props and returns layout styles.
|
|
17
|
+
* If no `LayoutStyleProps` are found, it returns an empty object.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // You'll most likely use `layout` with low-level, styled components
|
|
21
|
+
* const BoxExample = () => (
|
|
22
|
+
* <Box display="inline-block" height="50%">
|
|
23
|
+
* Hello, positions!
|
|
24
|
+
* </Box>
|
|
25
|
+
* );
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export function layout(props) {
|
|
29
|
+
var styles = {};
|
|
30
|
+
for (var key in props) {
|
|
31
|
+
if (key in layoutProps) {
|
|
32
|
+
var attr = layoutProps[key];
|
|
33
|
+
var value = props[key];
|
|
34
|
+
// @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
|
|
35
|
+
styles[attr] = value;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return styles;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"other.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/other.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAQF,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC,MASxD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var otherProps = {
|
|
2
|
+
animation: function (value) {
|
|
3
|
+
return { animation: value };
|
|
4
|
+
},
|
|
5
|
+
};
|
|
6
|
+
export function other(props) {
|
|
7
|
+
for (var key in props) {
|
|
8
|
+
if (key in otherProps) {
|
|
9
|
+
var value = props[key];
|
|
10
|
+
var styleFn = otherProps[key];
|
|
11
|
+
return styleFn(value);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEzD,sDAAsD;AACtD,oBAAY,qBAAqB,GAAG;IAClC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AA0BF,oBAAY,kBAAkB,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EACzF,KAAK,EAAE,CAAC,MAyBT"}
|