@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,17 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
2
|
var __assign = (this && this.__assign) || function () {
|
|
16
3
|
__assign = Object.assign || function(t) {
|
|
17
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -100,19 +87,14 @@ var Container = styled_1.default('div', {
|
|
|
100
87
|
height: size,
|
|
101
88
|
});
|
|
102
89
|
});
|
|
103
|
-
var SystemIconCircle =
|
|
104
|
-
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
SystemIconCircle.prototype.render = function () {
|
|
109
|
-
var _a = this.props, _b = _a.background, background = _b === void 0 ? tokens_1.colors.soap200 : _b, _c = _a.size, size = _c === void 0 ? SystemIconCircleSize.l : _c, icon = _a.icon, iconRef = _a.iconRef, shouldMirror = _a.shouldMirror, elemProps = __rest(_a, ["background", "size", "icon", "iconRef", "shouldMirror"]);
|
|
90
|
+
var SystemIconCircle = common_1.createComponent('span')({
|
|
91
|
+
displayName: 'SystemIconCircle',
|
|
92
|
+
Component: function (_a, ref, Element) {
|
|
93
|
+
var _b = _a.background, background = _b === void 0 ? tokens_1.colors.soap200 : _b, _c = _a.size, size = _c === void 0 ? SystemIconCircleSize.l : _c, icon = _a.icon, shouldMirror = _a.shouldMirror, elemProps = __rest(_a, ["background", "size", "icon", "shouldMirror"]);
|
|
110
94
|
var iconColor = common_1.pickForegroundColor(background, 'rgba(0,0,0,0.65)', tokens_1.colors.frenchVanilla100);
|
|
111
95
|
var iconSize = size * 0.625;
|
|
112
96
|
return (React.createElement(Container, __assign({ background: background, size: size }, elemProps),
|
|
113
|
-
React.createElement(SystemIcon_1.default, { icon: icon, color: iconColor, colorHover: iconColor, size: iconSize,
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return SystemIconCircle;
|
|
117
|
-
}(React.Component));
|
|
97
|
+
React.createElement(SystemIcon_1.default, { icon: icon, color: iconColor, colorHover: iconColor, as: Element, size: iconSize, ref: ref, shouldMirror: shouldMirror })));
|
|
98
|
+
},
|
|
99
|
+
});
|
|
118
100
|
exports.default = SystemIconCircle;
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -19,7 +19,6 @@ __exportStar(require("./card"), exports);
|
|
|
19
19
|
__exportStar(require("./checkbox"), exports);
|
|
20
20
|
__exportStar(require("./color-picker"), exports);
|
|
21
21
|
__exportStar(require("./common"), exports);
|
|
22
|
-
__exportStar(require("./cookie-banner"), exports);
|
|
23
22
|
__exportStar(require("./dialog"), exports);
|
|
24
23
|
__exportStar(require("./disclosure"), exports);
|
|
25
24
|
__exportStar(require("./form-field"), exports);
|
|
@@ -27,7 +26,6 @@ __exportStar(require("./icon"), exports);
|
|
|
27
26
|
__exportStar(require("./layout"), exports);
|
|
28
27
|
__exportStar(require("./loading-animation"), exports);
|
|
29
28
|
__exportStar(require("./modal"), exports);
|
|
30
|
-
__exportStar(require("./page-header"), exports);
|
|
31
29
|
__exportStar(require("./pagination"), exports);
|
|
32
30
|
__exportStar(require("./popup"), exports);
|
|
33
31
|
__exportStar(require("./radio"), exports);
|
|
@@ -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 type { FlexStyleProps } from './lib/utils/flex';
|
|
15
|
+
export type { StackSpacing, StackDirection, StackStyleProps } from './lib/utils/stack';
|
|
6
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,eAAe,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -18,5 +18,11 @@ var Layout_1 = __importDefault(require("./lib/Layout"));
|
|
|
18
18
|
exports.Layout = Layout_1.default;
|
|
19
19
|
var Column_1 = __importDefault(require("./lib/Column"));
|
|
20
20
|
exports.Column = Column_1.default;
|
|
21
|
-
exports
|
|
22
|
-
__exportStar(require("./lib/
|
|
21
|
+
__exportStar(require("./lib/Box"), exports);
|
|
22
|
+
__exportStar(require("./lib/utils/border"), exports);
|
|
23
|
+
__exportStar(require("./lib/utils/color"), exports);
|
|
24
|
+
__exportStar(require("./lib/utils/flexItem"), exports);
|
|
25
|
+
__exportStar(require("./lib/utils/layout"), exports);
|
|
26
|
+
__exportStar(require("./lib/utils/position"), exports);
|
|
27
|
+
__exportStar(require("./lib/Flex"), exports);
|
|
28
|
+
__exportStar(require("./lib/Stack"), exports);
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAS,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAW,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAS,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAW,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AAErD,oBAAY,QAAQ,GAAG,gBAAgB,GACrC,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,eAAe,GAAG;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAQJ;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,sCAsBtB,CAAC;AA+BF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,GAAG,unBAad,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.Box = exports.boxStyleFn = void 0;
|
|
48
|
+
var React = __importStar(require("react"));
|
|
49
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
50
|
+
var is_prop_valid_1 = __importDefault(require("@emotion/is-prop-valid"));
|
|
51
|
+
var common_1 = require("@workday/canvas-kit-react/common");
|
|
52
|
+
// style props
|
|
53
|
+
var border_1 = require("./utils/border");
|
|
54
|
+
var color_1 = require("./utils/color");
|
|
55
|
+
var depth_1 = require("./utils/depth");
|
|
56
|
+
var flexItem_1 = require("./utils/flexItem");
|
|
57
|
+
var layout_1 = require("./utils/layout");
|
|
58
|
+
var other_1 = require("./utils/other");
|
|
59
|
+
var position_1 = require("./utils/position");
|
|
60
|
+
var space_1 = require("./utils/space");
|
|
61
|
+
var omittedProps = ['display', 'color', 'height', 'overflow', 'width', 'border', 'background'];
|
|
62
|
+
var shouldForwardProp = function (prop) {
|
|
63
|
+
return is_prop_valid_1.default(prop) && !omittedProps.includes(prop);
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* A function that allows us to call Box styles on an element and reduce the amount of elements in the React Dom tree.
|
|
67
|
+
* Instead of using the `as` in a styled function, you can just call this instead to pass those props to the styled element
|
|
68
|
+
* @example
|
|
69
|
+
* import { boxStyleFn } from '@workday/canvas-kit-react/layout';
|
|
70
|
+
* const StyledHeader = styled('h1')(
|
|
71
|
+
* boxStyleFn,
|
|
72
|
+
* {
|
|
73
|
+
* fontWeight: 400,
|
|
74
|
+
* }
|
|
75
|
+
* )
|
|
76
|
+
*
|
|
77
|
+
* ....
|
|
78
|
+
*
|
|
79
|
+
* <StyledHeader color='red'>Hello World</StyledHeader>
|
|
80
|
+
*/
|
|
81
|
+
var boxStyleFn = function (props) {
|
|
82
|
+
return [
|
|
83
|
+
{
|
|
84
|
+
boxSizing: 'border-box',
|
|
85
|
+
},
|
|
86
|
+
border_1.border,
|
|
87
|
+
color_1.color,
|
|
88
|
+
depth_1.depth,
|
|
89
|
+
flexItem_1.flexItem,
|
|
90
|
+
layout_1.layout,
|
|
91
|
+
position_1.position,
|
|
92
|
+
space_1.space,
|
|
93
|
+
].reduce(function (result, style) {
|
|
94
|
+
// @ts-ignore
|
|
95
|
+
var temp = typeof style === 'function' ? style(props) : style;
|
|
96
|
+
// eslint-disable-next-line guard-for-in
|
|
97
|
+
for (var key in temp) {
|
|
98
|
+
// @ts-ignore
|
|
99
|
+
result[key] = temp[key];
|
|
100
|
+
}
|
|
101
|
+
return result;
|
|
102
|
+
}, {});
|
|
103
|
+
};
|
|
104
|
+
exports.boxStyleFn = boxStyleFn;
|
|
105
|
+
// Meant to be used with elements. The `shouldForwardProps` will remove all style props
|
|
106
|
+
var StyledBoxElement = styled_1.default('div', { shouldForwardProp: shouldForwardProp })({
|
|
107
|
+
boxSizing: 'border-box',
|
|
108
|
+
}, border_1.border, color_1.color, depth_1.depth, flexItem_1.flexItem, layout_1.layout, position_1.position, space_1.space);
|
|
109
|
+
// Meant to be used with components. There is no `shouldForwardProps` - all props will be forwarded to the component
|
|
110
|
+
var StyledBoxComponent = styled_1.default('div')({
|
|
111
|
+
boxSizing: 'border-box',
|
|
112
|
+
}, border_1.border, color_1.color, depth_1.depth, flexItem_1.flexItem, layout_1.layout, other_1.other, position_1.position, space_1.space);
|
|
113
|
+
/**
|
|
114
|
+
* `Box` is a primitive component that provides a common, ergonomic API around Canvas design tokens.
|
|
115
|
+
* It is highly flexible, and its primary purpose is to build other components.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* import { Box, BoxProps } from '@workday/canvas-kit-react/layout';
|
|
119
|
+
*
|
|
120
|
+
* interface CardProps extends BoxProps {
|
|
121
|
+
* // card-specific props
|
|
122
|
+
* }
|
|
123
|
+
*
|
|
124
|
+
* // `Card`'s default values are set using `BoxProps`
|
|
125
|
+
* const Card = (props: CardProps) => (
|
|
126
|
+
* <Box depth={2} padding="m" borderRadius="l" {...props}>Hello, Card!</Box>
|
|
127
|
+
* );
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
exports.Box = common_1.createComponent('div')({
|
|
131
|
+
displayName: 'Box',
|
|
132
|
+
Component: function (_a, ref, Element) {
|
|
133
|
+
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
134
|
+
var BoxComponent = common_1.useConstant(function () {
|
|
135
|
+
return typeof Element === 'string' ? StyledBoxElement : StyledBoxComponent;
|
|
136
|
+
});
|
|
137
|
+
return (React.createElement(BoxComponent, __assign({ as: Element, ref: ref }, elemProps), children));
|
|
138
|
+
},
|
|
139
|
+
});
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Flex.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAM,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAO,cAAc,EAAC,MAAM,cAAc,CAAC;AAElD,oBAAY,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AASlD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,gnBASf,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.Flex = void 0;
|
|
48
|
+
var React = __importStar(require("react"));
|
|
49
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
50
|
+
var common_1 = require("@workday/canvas-kit-react/common");
|
|
51
|
+
var layout_1 = require("@workday/canvas-kit-react/layout");
|
|
52
|
+
var flex_1 = require("./utils/flex");
|
|
53
|
+
var StyledFlex = styled_1.default(layout_1.Box)({
|
|
54
|
+
display: 'flex',
|
|
55
|
+
}, flex_1.flex);
|
|
56
|
+
/**
|
|
57
|
+
* `Flex` is a low-level layout component that provides a common, ergonomic API for applying CSS flexbox styles.
|
|
58
|
+
* It is highly flexible, and can be used on its own or to build other components.
|
|
59
|
+
* `Flex` is built on top of `Box` and has access to all `BoxProps`.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* import { Flex, FlexProps } from '@workday/canvas-kit-react/layout';
|
|
63
|
+
*
|
|
64
|
+
* interface CardProps extends FlexProps {
|
|
65
|
+
* // card-specific props
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* // `Card`'s default values are set using `FlexProps`
|
|
69
|
+
* const Card = (props: CardProps) => (
|
|
70
|
+
* <Flex flexDirection="column" alignItems="flex-start" depth={2} space="m" {...props}>
|
|
71
|
+
* <h1>Hello, Card!</h1>
|
|
72
|
+
* <p>This card uses flexbox to set its layout.</p>
|
|
73
|
+
* </Flex>
|
|
74
|
+
* );
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
exports.Flex = common_1.createComponent('div')({
|
|
78
|
+
displayName: 'Flex',
|
|
79
|
+
Component: function (_a, ref, Element) {
|
|
80
|
+
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
81
|
+
return (React.createElement(StyledFlex, __assign({ as: Element, ref: ref }, elemProps), children));
|
|
82
|
+
},
|
|
83
|
+
});
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Stack.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAO,SAAS,EAAC,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AAErD,oBAAY,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;AA2BrD,eAAO,MAAM,KAAK;;CAehB,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C;;;SAGK;IACL,aAAa,CAAC,EAAE,KAAK,GAAG,aAAa,CAAC;CACvC;AAED,eAAO,MAAM,MAAM;;CAYjB,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C;;;SAGK;IACL,aAAa,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAC;CAC7C;AAED,eAAO,MAAM,MAAM;;CAYjB,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.VStack = exports.HStack = exports.Stack = void 0;
|
|
48
|
+
var React = __importStar(require("react"));
|
|
49
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
50
|
+
var common_1 = require("@workday/canvas-kit-react/common");
|
|
51
|
+
var layout_1 = require("@workday/canvas-kit-react/layout");
|
|
52
|
+
var Flex_1 = require("./Flex");
|
|
53
|
+
var getValidChildren_1 = require("./utils/getValidChildren");
|
|
54
|
+
var stack_1 = require("./utils/stack");
|
|
55
|
+
var StackItem = common_1.createComponent('div')({
|
|
56
|
+
displayName: 'Stack.Item',
|
|
57
|
+
Component: function (_a, ref, Element) {
|
|
58
|
+
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
59
|
+
return (React.createElement(layout_1.Box, __assign({ as: Element, ref: ref, display: "inline-block", flex: "0 0 auto", minWidth: 0 }, elemProps), children));
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
// prevent `spacing` prop from being passed through to the HTML element
|
|
63
|
+
var shouldForwardProp = function (prop) {
|
|
64
|
+
return prop !== 'spacing';
|
|
65
|
+
};
|
|
66
|
+
var StyledStack = styled_1.default(Flex_1.Flex, { shouldForwardProp: shouldForwardProp })(stack_1.stack);
|
|
67
|
+
exports.Stack = common_1.createComponent('div')({
|
|
68
|
+
displayName: 'Stack',
|
|
69
|
+
Component: function (_a, ref, Element) {
|
|
70
|
+
var children = _a.children, _b = _a.shouldWrapChildren, shouldWrapChildren = _b === void 0 ? false : _b, elemProps = __rest(_a, ["children", "shouldWrapChildren"]);
|
|
71
|
+
var validChildren = getValidChildren_1.getValidChildren(children);
|
|
72
|
+
return (React.createElement(StyledStack, __assign({ as: Element, ref: ref, flexDirection: "row" }, elemProps), shouldWrapChildren
|
|
73
|
+
? validChildren.map(function (child) { return React.createElement(StackItem, null, child); })
|
|
74
|
+
: validChildren));
|
|
75
|
+
},
|
|
76
|
+
subComponents: {
|
|
77
|
+
Item: StackItem,
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
exports.HStack = common_1.createComponent('div')({
|
|
81
|
+
displayName: 'HStack',
|
|
82
|
+
Component: function (_a, ref, Element) {
|
|
83
|
+
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
84
|
+
return (React.createElement(exports.Stack, __assign({ as: Element, ref: ref, flexDirection: "row" }, elemProps), children));
|
|
85
|
+
},
|
|
86
|
+
subComponents: {
|
|
87
|
+
Item: StackItem,
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
exports.VStack = common_1.createComponent('div')({
|
|
91
|
+
displayName: 'VStack',
|
|
92
|
+
Component: function (_a, ref, Element) {
|
|
93
|
+
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
94
|
+
return (React.createElement(exports.Stack, __assign({ as: Element, ref: ref, flexDirection: "column" }, elemProps), children));
|
|
95
|
+
},
|
|
96
|
+
subComponents: {
|
|
97
|
+
Item: StackItem,
|
|
98
|
+
},
|
|
99
|
+
});
|