@workday/canvas-kit-react 7.0.0-alpha.129-next.3 → 7.0.0-alpha.256-next.2
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/ActionBarItem.tsx +2 -7
- package/action-bar/lib/ActionBarList.tsx +14 -4
- package/action-bar/lib/ActionBarOverflowButton.tsx +10 -6
- package/banner/lib/Banner.tsx +3 -6
- package/breadcrumbs/LICENSE +52 -0
- package/breadcrumbs/README.md +9 -0
- package/breadcrumbs/index.ts +2 -0
- package/breadcrumbs/lib/Breadcrumbs.tsx +151 -0
- package/breadcrumbs/lib/BreadcrumbsCurrentItem.tsx +76 -0
- package/breadcrumbs/lib/BreadcrumbsItem.tsx +82 -0
- package/breadcrumbs/lib/BreadcrumbsLink.tsx +52 -0
- package/breadcrumbs/lib/BreadcrumbsList.tsx +51 -0
- package/breadcrumbs/lib/BreadcrumbsMenu.tsx +28 -0
- package/breadcrumbs/lib/BreadcrumbsOverflowButton.tsx +58 -0
- package/breadcrumbs/lib/hooks/useBreadcrumbsModel.tsx +76 -0
- package/breadcrumbs/lib/hooks/utils/index.ts +22 -0
- package/breadcrumbs/package.json +6 -0
- package/button/index.ts +7 -1
- package/button/lib/BaseButton.tsx +7 -4
- package/button/lib/DeleteButton.tsx +2 -2
- package/button/lib/PrimaryButton.tsx +2 -2
- package/button/lib/SecondaryButton.tsx +2 -2
- package/button/lib/TertiaryButton.tsx +21 -10
- package/card/lib/CardBody.tsx +3 -6
- package/card/lib/CardHeading.tsx +13 -10
- package/checkbox/index.ts +0 -1
- package/checkbox/lib/Checkbox.tsx +9 -24
- package/color-picker/index.ts +0 -1
- package/color-picker/lib/ColorInput.tsx +1 -2
- package/common/index.ts +1 -0
- package/common/lib/InputProvider.tsx +0 -5
- package/common/lib/responsive/useResponsiveContainerStyles.ts +128 -0
- package/common/lib/theming/index.ts +1 -1
- package/common/lib/theming/styled.ts +6 -3
- package/common/lib/utils/components.ts +48 -22
- package/common/lib/utils/elements.ts +7 -12
- package/common/lib/utils/index.ts +0 -1
- package/common/lib/utils/isWithinBreakpoint.ts +6 -0
- package/common/lib/utils/models.ts +10 -2
- package/common/lib/utils/useModalityType.ts +13 -13
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +8 -0
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarItem.js +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +92 -0
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarList.js +5 -5
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts +5 -1
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.js +3 -3
- package/dist/commonjs/banner/lib/Banner.d.ts +0 -9
- package/dist/commonjs/banner/lib/Banner.d.ts.map +1 -1
- package/dist/commonjs/banner/lib/Banner.js +2 -4
- package/dist/commonjs/breadcrumbs/index.d.ts +3 -0
- package/dist/commonjs/breadcrumbs/index.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/index.js +14 -0
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts +3851 -0
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.js +177 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +212 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.js +63 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts +226 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.js +76 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsLink.d.ts +17 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsLink.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsLink.js +46 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts +164 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.js +63 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts +1717 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.js +58 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +241 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.js +68 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +1661 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.js +67 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/utils/index.d.ts +6 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/utils/index.d.ts.map +1 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/utils/index.js +22 -0
- 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 -1
- package/dist/commonjs/button/lib/BaseButton.d.ts +7 -4
- package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/DeleteButton.d.ts +2 -1
- package/dist/commonjs/button/lib/DeleteButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.d.ts +2 -1
- package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/SecondaryButton.d.ts +2 -1
- package/dist/commonjs/button/lib/SecondaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/TertiaryButton.d.ts +11 -1
- package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/TertiaryButton.js +9 -8
- package/dist/commonjs/card/lib/Card.d.ts +1 -1
- 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 +1 -6
- package/dist/commonjs/card/lib/CardHeading.d.ts.map +1 -1
- package/dist/commonjs/card/lib/CardHeading.js +2 -10
- package/dist/commonjs/checkbox/index.d.ts.map +1 -1
- package/dist/commonjs/checkbox/lib/Checkbox.d.ts.map +1 -1
- package/dist/commonjs/checkbox/lib/Checkbox.js +2 -13
- package/dist/commonjs/collection/lib/ListBox.d.ts +0 -57
- package/dist/commonjs/collection/lib/ListBox.d.ts.map +1 -1
- package/dist/commonjs/color-picker/index.d.ts.map +1 -1
- package/dist/commonjs/color-picker/lib/ColorInput.d.ts.map +1 -1
- package/dist/commonjs/color-picker/lib/ColorInput.js +1 -2
- package/dist/commonjs/common/index.d.ts +1 -0
- package/dist/commonjs/common/index.d.ts.map +1 -1
- package/dist/commonjs/common/index.js +1 -0
- package/dist/commonjs/common/lib/InputProvider.d.ts.map +1 -1
- package/dist/commonjs/common/lib/InputProvider.js +0 -7
- package/dist/commonjs/common/lib/responsive/useResponsiveContainerStyles.d.ts +78 -0
- package/dist/commonjs/common/lib/responsive/useResponsiveContainerStyles.d.ts.map +1 -0
- package/dist/commonjs/common/lib/responsive/useResponsiveContainerStyles.js +139 -0
- package/dist/commonjs/common/lib/theming/index.d.ts +1 -1
- package/dist/commonjs/common/lib/theming/index.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/styled.d.ts +2 -0
- package/dist/commonjs/common/lib/theming/styled.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/styled.js +1 -2
- package/dist/commonjs/common/lib/utils/components.d.ts +30 -18
- package/dist/commonjs/common/lib/utils/components.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/components.js +10 -5
- package/dist/commonjs/common/lib/utils/elements.d.ts +1 -1
- package/dist/commonjs/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/elements.js +5 -11
- package/dist/commonjs/common/lib/utils/index.d.ts +0 -1
- package/dist/commonjs/common/lib/utils/index.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/index.js +0 -1
- package/dist/commonjs/common/lib/utils/isWithinBreakpoint.d.ts +5 -0
- package/dist/commonjs/common/lib/utils/isWithinBreakpoint.d.ts.map +1 -0
- package/dist/commonjs/common/lib/utils/isWithinBreakpoint.js +10 -0
- package/dist/commonjs/common/lib/utils/models.d.ts +10 -2
- package/dist/commonjs/common/lib/utils/models.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/models.js +3 -0
- package/dist/commonjs/common/lib/utils/useModalityType.js +13 -13
- package/dist/commonjs/dialog/lib/Dialog.d.ts +1 -1
- package/dist/commonjs/form-field/index.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/Hint.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/Hint.js +5 -13
- package/dist/commonjs/form-field/lib/Label.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/Label.js +0 -2
- package/dist/commonjs/icon/lib/SystemIcon.d.ts +1 -1
- package/dist/commonjs/icon/lib/SystemIcon.d.ts.map +1 -1
- package/dist/commonjs/index.d.ts +4 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -1
- package/dist/commonjs/layout/index.d.ts +15 -5
- package/dist/commonjs/layout/index.d.ts.map +1 -1
- package/dist/commonjs/layout/index.js +14 -3
- package/dist/commonjs/layout/lib/Box.d.ts +23 -11
- package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Box.js +34 -8
- package/dist/commonjs/layout/lib/Column.d.ts +13 -4
- package/dist/commonjs/layout/lib/Column.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Column.js +10 -7
- package/dist/commonjs/layout/lib/Flex.d.ts +6 -3
- package/dist/commonjs/layout/lib/Flex.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Flex.js +5 -1
- package/dist/commonjs/layout/lib/Grid.d.ts +51 -0
- package/dist/commonjs/layout/lib/Grid.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/Grid.js +115 -0
- package/dist/commonjs/layout/lib/Layout.d.ts +26 -9
- package/dist/commonjs/layout/lib/Layout.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Layout.js +21 -10
- package/dist/commonjs/layout/lib/Stack.d.ts +4 -4
- package/dist/commonjs/layout/lib/Stack.js +4 -4
- package/dist/commonjs/layout/lib/utils/background.d.ts +44 -0
- package/dist/commonjs/layout/lib/utils/background.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/background.js +57 -0
- package/dist/commonjs/layout/lib/utils/border/color.d.ts +47 -0
- package/dist/commonjs/layout/lib/utils/border/color.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/color.js +42 -0
- package/dist/commonjs/layout/lib/utils/border/index.d.ts +26 -0
- package/dist/commonjs/layout/lib/utils/border/index.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/index.js +46 -0
- package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts +38 -0
- package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/lineStyle.js +52 -0
- package/dist/commonjs/layout/lib/utils/border/radius.d.ts +33 -0
- package/dist/commonjs/layout/lib/utils/border/radius.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/radius.js +32 -0
- package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts +34 -0
- package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/shorthand.js +42 -0
- package/dist/commonjs/layout/lib/utils/border/width.d.ts +34 -0
- package/dist/commonjs/layout/lib/utils/border/width.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/width.js +42 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts +12 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.js +90 -0
- package/dist/commonjs/layout/lib/utils/color.d.ts +23 -16
- package/dist/commonjs/layout/lib/utils/color.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/color.js +25 -48
- package/dist/commonjs/layout/lib/utils/depth.d.ts +17 -11
- package/dist/commonjs/layout/lib/utils/depth.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/depth.js +20 -20
- package/dist/commonjs/layout/lib/utils/flex.d.ts +33 -14
- package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flex.js +58 -25
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts +18 -15
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flexItem.js +43 -26
- package/dist/commonjs/layout/lib/utils/grid.d.ts +72 -0
- package/dist/commonjs/layout/lib/utils/grid.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/grid.js +112 -0
- package/dist/commonjs/layout/lib/utils/gridItem.d.ts +42 -0
- package/dist/commonjs/layout/lib/utils/gridItem.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/gridItem.js +71 -0
- package/dist/commonjs/layout/lib/utils/layout.d.ts +47 -25
- package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/layout.js +71 -33
- package/dist/commonjs/layout/lib/utils/other.d.ts +46 -2
- package/dist/commonjs/layout/lib/utils/other.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/other.js +101 -17
- package/dist/commonjs/layout/lib/utils/position.d.ts +37 -20
- package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/position.js +49 -66
- package/dist/commonjs/layout/lib/utils/space.d.ts +107 -51
- package/dist/commonjs/layout/lib/utils/space.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/space.js +98 -148
- package/dist/commonjs/layout/lib/utils/stack.d.ts +3 -6
- package/dist/commonjs/layout/lib/utils/stack.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/stack.js +13 -39
- package/dist/commonjs/layout/lib/utils/styleProps.d.ts +41 -0
- package/dist/commonjs/layout/lib/utils/styleProps.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/styleProps.js +2 -0
- package/dist/commonjs/layout/lib/utils/systemProps.d.ts +31 -0
- package/dist/commonjs/layout/lib/utils/systemProps.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/systemProps.js +2 -0
- package/dist/commonjs/layout/lib/utils/text.d.ts +53 -0
- package/dist/commonjs/layout/lib/utils/text.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/text.js +84 -0
- package/dist/commonjs/loading-dots/index.d.ts +2 -0
- package/dist/commonjs/loading-dots/index.d.ts.map +1 -0
- package/dist/commonjs/loading-dots/index.js +13 -0
- package/dist/commonjs/{loading-animation → loading-dots}/lib/LoadingDots.d.ts +0 -0
- package/dist/commonjs/loading-dots/lib/LoadingDots.d.ts.map +1 -0
- package/dist/commonjs/{loading-animation → loading-dots}/lib/LoadingDots.js +0 -0
- package/dist/commonjs/menu/lib/MenuCard.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuCard.js +1 -1
- package/dist/commonjs/menu/lib/MenuContextTarget.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuContextTarget.js +2 -4
- package/dist/commonjs/menu/lib/MenuItem.js +13 -12
- package/dist/commonjs/menu/lib/MenuTarget.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuTarget.js +2 -4
- package/dist/commonjs/modal/lib/Modal.d.ts +1 -1
- package/dist/commonjs/modal/lib/ModalCard.d.ts.map +1 -1
- package/dist/commonjs/modal/lib/ModalCard.js +15 -1
- package/dist/commonjs/modal/lib/ModalHeading.d.ts.map +1 -1
- package/dist/commonjs/modal/lib/ModalHeading.js +11 -1
- package/dist/commonjs/modal/lib/ModalOverlay.d.ts.map +1 -1
- package/dist/commonjs/modal/lib/ModalOverlay.js +21 -16
- package/dist/commonjs/modal/lib/hooks/useCloseOnOverlayClick.d.ts.map +1 -1
- package/dist/commonjs/modal/lib/hooks/useCloseOnOverlayClick.js +3 -1
- package/dist/commonjs/modal/lib/hooks/useModalModel.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.js +5 -4
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Label.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Label.js +2 -4
- package/dist/commonjs/pagination/lib/Pagination/usePaginationModel.d.ts.map +1 -1
- package/dist/commonjs/pagination/lib/Pagination/usePaginationModel.js +5 -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.js +1 -1
- package/dist/commonjs/popup/lib/PopupCard.d.ts +3 -2
- package/dist/commonjs/popup/lib/PopupCard.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/PopupCard.js +20 -13
- package/dist/commonjs/popup/lib/PopupCloseButton.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/PopupCloseButton.js +1 -1
- package/dist/commonjs/popup/lib/PopupCloseIcon.js +1 -1
- package/dist/commonjs/popup/lib/PopupHeading.js +1 -1
- package/dist/commonjs/popup/lib/PopupPopper.d.ts +2 -3
- package/dist/commonjs/popup/lib/PopupPopper.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/index.d.ts +1 -0
- package/dist/commonjs/popup/lib/hooks/index.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/index.js +1 -0
- package/dist/commonjs/popup/lib/hooks/useCloseOnTargetHidden.d.ts +31 -0
- package/dist/commonjs/popup/lib/hooks/useCloseOnTargetHidden.d.ts.map +1 -0
- package/dist/commonjs/popup/lib/hooks/useCloseOnTargetHidden.js +56 -0
- package/dist/commonjs/popup/lib/hooks/useReturnFocus.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/useReturnFocus.js +97 -3
- package/dist/commonjs/radio/lib/Radio.d.ts.map +1 -1
- package/dist/commonjs/radio/lib/Radio.js +2 -13
- package/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts +3 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlButton.js +11 -2
- 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 +1149 -1
- package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -1
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts +2773 -469
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/commonjs/testing/index.d.ts +5 -0
- package/dist/commonjs/testing/index.d.ts.map +1 -0
- package/dist/commonjs/testing/index.js +16 -0
- package/dist/commonjs/testing/lib/ComponentStatesTable.d.ts +26 -0
- package/dist/commonjs/testing/lib/ComponentStatesTable.d.ts.map +1 -0
- package/dist/commonjs/testing/lib/ComponentStatesTable.js +48 -0
- package/dist/commonjs/testing/lib/StaticStates.d.ts +7 -0
- package/dist/commonjs/testing/lib/StaticStates.d.ts.map +1 -0
- package/dist/commonjs/{common/lib/utils → testing/lib}/StaticStates.js +1 -1
- package/dist/commonjs/testing/lib/permutateProps.d.ts +5 -0
- package/dist/commonjs/testing/lib/permutateProps.d.ts.map +1 -0
- package/dist/commonjs/testing/lib/permutateProps.js +47 -0
- package/dist/commonjs/testing/lib/propTypes.d.ts +15 -0
- package/dist/commonjs/testing/lib/propTypes.d.ts.map +1 -0
- package/dist/commonjs/testing/lib/propTypes.js +2 -0
- package/dist/commonjs/text/index.d.ts +4 -0
- package/dist/commonjs/text/index.d.ts.map +1 -0
- package/dist/commonjs/text/index.js +15 -0
- package/dist/commonjs/text/lib/LabelText.d.ts +30 -0
- package/dist/commonjs/text/lib/LabelText.d.ts.map +1 -0
- package/dist/commonjs/text/lib/LabelText.js +73 -0
- package/dist/commonjs/text/lib/Text.d.ts +58 -0
- package/dist/commonjs/text/lib/Text.d.ts.map +1 -0
- package/dist/commonjs/text/lib/Text.js +123 -0
- package/dist/commonjs/text/lib/TypeLevelComponents.d.ts +132 -0
- package/dist/commonjs/text/lib/TypeLevelComponents.d.ts.map +1 -0
- package/dist/commonjs/text/lib/TypeLevelComponents.js +195 -0
- package/dist/commonjs/text-input/index.d.ts.map +1 -1
- package/dist/commonjs/toast/lib/Toast.d.ts.map +1 -1
- package/dist/commonjs/toast/lib/Toast.js +1 -2
- package/dist/commonjs/tokens/lib/colors.types.d.ts +4 -6
- package/dist/commonjs/tokens/lib/colors.types.d.ts.map +1 -1
- package/dist/commonjs/tooltip/lib/OverflowTooltip.d.ts.map +1 -1
- package/dist/commonjs/tooltip/lib/OverflowTooltip.js +1 -4
- package/dist/commonjs/tooltip/lib/TooltipContainer.d.ts.map +1 -1
- package/dist/commonjs/tooltip/lib/TooltipContainer.js +5 -0
- package/dist/commonjs/tooltip/lib/useTooltip.d.ts.map +1 -1
- package/dist/commonjs/tooltip/lib/useTooltip.js +1 -0
- package/dist/es6/action-bar/lib/ActionBar.d.ts +1 -1
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts +8 -0
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarItem.js +2 -2
- package/dist/es6/action-bar/lib/ActionBarList.d.ts +92 -0
- package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarList.js +4 -4
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts +5 -1
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.js +3 -3
- package/dist/es6/banner/lib/Banner.d.ts +0 -9
- package/dist/es6/banner/lib/Banner.d.ts.map +1 -1
- package/dist/es6/banner/lib/Banner.js +2 -4
- package/dist/es6/breadcrumbs/index.d.ts +3 -0
- package/dist/es6/breadcrumbs/index.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/index.js +2 -0
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts +3851 -0
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.js +155 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +212 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.js +57 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts +226 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.js +54 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsLink.d.ts +17 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsLink.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsLink.js +40 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts +164 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.js +41 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts +1717 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.js +36 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +241 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.js +46 -0
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +1661 -0
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.js +61 -0
- package/dist/es6/breadcrumbs/lib/hooks/utils/index.d.ts +6 -0
- package/dist/es6/breadcrumbs/lib/hooks/utils/index.d.ts.map +1 -0
- package/dist/es6/breadcrumbs/lib/hooks/utils/index.js +18 -0
- 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 +7 -4
- package/dist/es6/button/lib/BaseButton.d.ts.map +1 -1
- package/dist/es6/button/lib/DeleteButton.d.ts +2 -1
- package/dist/es6/button/lib/DeleteButton.d.ts.map +1 -1
- package/dist/es6/button/lib/PrimaryButton.d.ts +2 -1
- package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/SecondaryButton.d.ts +2 -1
- package/dist/es6/button/lib/SecondaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/TertiaryButton.d.ts +11 -1
- package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/TertiaryButton.js +9 -8
- package/dist/es6/card/lib/Card.d.ts +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 -3
- package/dist/es6/card/lib/CardHeading.d.ts.map +1 -1
- package/dist/es6/card/lib/CardHeading.js +2 -7
- package/dist/es6/checkbox/index.d.ts.map +1 -1
- package/dist/es6/checkbox/lib/Checkbox.d.ts.map +1 -1
- package/dist/es6/checkbox/lib/Checkbox.js +3 -14
- package/dist/es6/collection/lib/ListBox.d.ts +0 -57
- package/dist/es6/collection/lib/ListBox.d.ts.map +1 -1
- package/dist/es6/color-picker/index.d.ts.map +1 -1
- package/dist/es6/color-picker/lib/ColorInput.d.ts.map +1 -1
- package/dist/es6/color-picker/lib/ColorInput.js +1 -2
- package/dist/es6/common/index.d.ts +1 -0
- package/dist/es6/common/index.d.ts.map +1 -1
- package/dist/es6/common/index.js +1 -0
- package/dist/es6/common/lib/InputProvider.d.ts.map +1 -1
- package/dist/es6/common/lib/InputProvider.js +0 -4
- package/dist/es6/common/lib/responsive/useResponsiveContainerStyles.d.ts +78 -0
- package/dist/es6/common/lib/responsive/useResponsiveContainerStyles.d.ts.map +1 -0
- package/dist/es6/common/lib/responsive/useResponsiveContainerStyles.js +135 -0
- package/dist/es6/common/lib/theming/index.d.ts +1 -1
- package/dist/es6/common/lib/theming/index.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/styled.d.ts +2 -0
- package/dist/es6/common/lib/theming/styled.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/styled.js +1 -2
- package/dist/es6/common/lib/utils/components.d.ts +30 -18
- package/dist/es6/common/lib/utils/components.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/components.js +10 -5
- package/dist/es6/common/lib/utils/elements.d.ts +1 -1
- package/dist/es6/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/elements.js +5 -11
- package/dist/es6/common/lib/utils/index.d.ts +0 -1
- package/dist/es6/common/lib/utils/index.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/index.js +0 -1
- package/dist/es6/common/lib/utils/isWithinBreakpoint.d.ts +5 -0
- package/dist/es6/common/lib/utils/isWithinBreakpoint.d.ts.map +1 -0
- package/dist/es6/common/lib/utils/isWithinBreakpoint.js +6 -0
- package/dist/es6/common/lib/utils/models.d.ts +10 -2
- package/dist/es6/common/lib/utils/models.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/models.js +3 -0
- package/dist/es6/common/lib/utils/useModalityType.js +13 -13
- package/dist/es6/dialog/lib/Dialog.d.ts +1 -1
- package/dist/es6/form-field/index.d.ts.map +1 -1
- package/dist/es6/form-field/lib/Hint.d.ts.map +1 -1
- package/dist/es6/form-field/lib/Hint.js +6 -14
- package/dist/es6/form-field/lib/Label.d.ts.map +1 -1
- package/dist/es6/form-field/lib/Label.js +0 -2
- package/dist/es6/icon/lib/SystemIcon.d.ts +1 -1
- package/dist/es6/icon/lib/SystemIcon.d.ts.map +1 -1
- package/dist/es6/index.d.ts +4 -1
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +4 -1
- package/dist/es6/layout/index.d.ts +15 -5
- package/dist/es6/layout/index.d.ts.map +1 -1
- package/dist/es6/layout/index.js +12 -3
- package/dist/es6/layout/lib/Box.d.ts +23 -11
- package/dist/es6/layout/lib/Box.d.ts.map +1 -1
- package/dist/es6/layout/lib/Box.js +34 -8
- package/dist/es6/layout/lib/Column.d.ts +13 -4
- package/dist/es6/layout/lib/Column.d.ts.map +1 -1
- package/dist/es6/layout/lib/Column.js +9 -6
- package/dist/es6/layout/lib/Flex.d.ts +6 -3
- package/dist/es6/layout/lib/Flex.d.ts.map +1 -1
- package/dist/es6/layout/lib/Flex.js +5 -1
- package/dist/es6/layout/lib/Grid.d.ts +51 -0
- package/dist/es6/layout/lib/Grid.d.ts.map +1 -0
- package/dist/es6/layout/lib/Grid.js +90 -0
- package/dist/es6/layout/lib/Layout.d.ts +26 -9
- package/dist/es6/layout/lib/Layout.d.ts.map +1 -1
- package/dist/es6/layout/lib/Layout.js +21 -10
- package/dist/es6/layout/lib/Stack.d.ts +4 -4
- package/dist/es6/layout/lib/Stack.js +4 -4
- package/dist/es6/layout/lib/utils/background.d.ts +44 -0
- package/dist/es6/layout/lib/utils/background.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/background.js +54 -0
- package/dist/es6/layout/lib/utils/border/color.d.ts +47 -0
- package/dist/es6/layout/lib/utils/border/color.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/color.js +39 -0
- package/dist/es6/layout/lib/utils/border/index.d.ts +26 -0
- package/dist/es6/layout/lib/utils/border/index.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/index.js +43 -0
- package/dist/es6/layout/lib/utils/border/lineStyle.d.ts +38 -0
- package/dist/es6/layout/lib/utils/border/lineStyle.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/lineStyle.js +49 -0
- package/dist/es6/layout/lib/utils/border/radius.d.ts +33 -0
- package/dist/es6/layout/lib/utils/border/radius.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/radius.js +29 -0
- package/dist/es6/layout/lib/utils/border/shorthand.d.ts +34 -0
- package/dist/es6/layout/lib/utils/border/shorthand.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/shorthand.js +39 -0
- package/dist/es6/layout/lib/utils/border/width.d.ts +34 -0
- package/dist/es6/layout/lib/utils/border/width.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/width.js +39 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.d.ts +12 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.js +85 -0
- package/dist/es6/layout/lib/utils/color.d.ts +23 -16
- package/dist/es6/layout/lib/utils/color.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/color.js +24 -46
- package/dist/es6/layout/lib/utils/depth.d.ts +17 -11
- package/dist/es6/layout/lib/utils/depth.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/depth.js +19 -18
- package/dist/es6/layout/lib/utils/flex.d.ts +33 -14
- package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flex.js +57 -23
- package/dist/es6/layout/lib/utils/flexItem.d.ts +18 -15
- package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flexItem.js +42 -24
- package/dist/es6/layout/lib/utils/grid.d.ts +72 -0
- package/dist/es6/layout/lib/utils/grid.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/grid.js +109 -0
- package/dist/es6/layout/lib/utils/gridItem.d.ts +42 -0
- package/dist/es6/layout/lib/utils/gridItem.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/gridItem.js +68 -0
- package/dist/es6/layout/lib/utils/layout.d.ts +47 -25
- package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/layout.js +70 -31
- package/dist/es6/layout/lib/utils/other.d.ts +46 -2
- package/dist/es6/layout/lib/utils/other.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/other.js +100 -15
- package/dist/es6/layout/lib/utils/position.d.ts +37 -20
- package/dist/es6/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/position.js +48 -64
- package/dist/es6/layout/lib/utils/space.d.ts +107 -51
- package/dist/es6/layout/lib/utils/space.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/space.js +97 -146
- package/dist/es6/layout/lib/utils/stack.d.ts +3 -6
- package/dist/es6/layout/lib/utils/stack.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/stack.js +13 -39
- package/dist/es6/layout/lib/utils/styleProps.d.ts +41 -0
- package/dist/es6/layout/lib/utils/styleProps.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/styleProps.js +1 -0
- package/dist/es6/layout/lib/utils/systemProps.d.ts +31 -0
- package/dist/es6/layout/lib/utils/systemProps.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/systemProps.js +1 -0
- package/dist/es6/layout/lib/utils/text.d.ts +53 -0
- package/dist/es6/layout/lib/utils/text.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/text.js +81 -0
- package/dist/es6/loading-dots/index.d.ts +2 -0
- package/dist/es6/loading-dots/index.d.ts.map +1 -0
- package/dist/es6/loading-dots/index.js +1 -0
- package/dist/es6/{loading-animation → loading-dots}/lib/LoadingDots.d.ts +0 -0
- package/dist/es6/loading-dots/lib/LoadingDots.d.ts.map +1 -0
- package/dist/es6/{loading-animation → loading-dots}/lib/LoadingDots.js +0 -0
- package/dist/es6/menu/lib/MenuCard.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuCard.js +1 -1
- package/dist/es6/menu/lib/MenuContextTarget.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuContextTarget.js +2 -4
- package/dist/es6/menu/lib/MenuItem.js +13 -12
- package/dist/es6/menu/lib/MenuTarget.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuTarget.js +2 -4
- package/dist/es6/modal/lib/Modal.d.ts +1 -1
- package/dist/es6/modal/lib/ModalCard.d.ts.map +1 -1
- package/dist/es6/modal/lib/ModalCard.js +16 -2
- package/dist/es6/modal/lib/ModalHeading.d.ts.map +1 -1
- package/dist/es6/modal/lib/ModalHeading.js +12 -2
- package/dist/es6/modal/lib/ModalOverlay.d.ts.map +1 -1
- package/dist/es6/modal/lib/ModalOverlay.js +21 -16
- package/dist/es6/modal/lib/hooks/useCloseOnOverlayClick.d.ts.map +1 -1
- package/dist/es6/modal/lib/hooks/useCloseOnOverlayClick.js +4 -2
- package/dist/es6/modal/lib/hooks/useModalModel.js +1 -1
- package/dist/es6/pagination/lib/Pagination/AdditionalDetails.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/AdditionalDetails.js +6 -5
- package/dist/es6/pagination/lib/Pagination/GoTo/Label.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/Label.js +2 -4
- package/dist/es6/pagination/lib/Pagination/usePaginationModel.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/usePaginationModel.js +5 -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.js +1 -1
- package/dist/es6/popup/lib/PopupCard.d.ts +3 -2
- package/dist/es6/popup/lib/PopupCard.d.ts.map +1 -1
- package/dist/es6/popup/lib/PopupCard.js +21 -14
- package/dist/es6/popup/lib/PopupCloseButton.d.ts.map +1 -1
- package/dist/es6/popup/lib/PopupCloseButton.js +1 -1
- package/dist/es6/popup/lib/PopupCloseIcon.js +1 -1
- package/dist/es6/popup/lib/PopupHeading.js +1 -1
- package/dist/es6/popup/lib/PopupPopper.d.ts +2 -3
- package/dist/es6/popup/lib/PopupPopper.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/index.d.ts +1 -0
- package/dist/es6/popup/lib/hooks/index.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/index.js +1 -0
- package/dist/es6/popup/lib/hooks/useCloseOnTargetHidden.d.ts +31 -0
- package/dist/es6/popup/lib/hooks/useCloseOnTargetHidden.d.ts.map +1 -0
- package/dist/es6/popup/lib/hooks/useCloseOnTargetHidden.js +50 -0
- package/dist/es6/popup/lib/hooks/useReturnFocus.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/useReturnFocus.js +98 -4
- package/dist/es6/radio/lib/Radio.d.ts.map +1 -1
- package/dist/es6/radio/lib/Radio.js +3 -14
- package/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts +3 -1
- package/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControlButton.js +12 -3
- 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 +1149 -1
- package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.d.ts +1 -1
- package/dist/es6/tabs/lib/useTabsModel.d.ts +2773 -469
- package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/es6/testing/index.d.ts +5 -0
- package/dist/es6/testing/index.d.ts.map +1 -0
- package/dist/es6/testing/index.js +4 -0
- package/dist/es6/testing/lib/ComponentStatesTable.d.ts +26 -0
- package/dist/es6/testing/lib/ComponentStatesTable.d.ts.map +1 -0
- package/dist/es6/testing/lib/ComponentStatesTable.js +41 -0
- package/dist/es6/testing/lib/StaticStates.d.ts +7 -0
- package/dist/es6/testing/lib/StaticStates.d.ts.map +1 -0
- package/dist/es6/{common/lib/utils → testing/lib}/StaticStates.js +1 -1
- package/dist/es6/testing/lib/permutateProps.d.ts +5 -0
- package/dist/es6/testing/lib/permutateProps.d.ts.map +1 -0
- package/dist/es6/testing/lib/permutateProps.js +43 -0
- package/dist/es6/testing/lib/propTypes.d.ts +15 -0
- package/dist/es6/testing/lib/propTypes.d.ts.map +1 -0
- package/dist/es6/testing/lib/propTypes.js +1 -0
- package/dist/es6/text/index.d.ts +4 -0
- package/dist/es6/text/index.d.ts.map +1 -0
- package/dist/es6/text/index.js +3 -0
- package/dist/es6/text/lib/LabelText.d.ts +30 -0
- package/dist/es6/text/lib/LabelText.d.ts.map +1 -0
- package/dist/es6/text/lib/LabelText.js +51 -0
- package/dist/es6/text/lib/Text.d.ts +58 -0
- package/dist/es6/text/lib/Text.d.ts.map +1 -0
- package/dist/es6/text/lib/Text.js +101 -0
- package/dist/es6/text/lib/TypeLevelComponents.d.ts +132 -0
- package/dist/es6/text/lib/TypeLevelComponents.d.ts.map +1 -0
- package/dist/es6/text/lib/TypeLevelComponents.js +173 -0
- package/dist/es6/text-input/index.d.ts.map +1 -1
- package/dist/es6/toast/lib/Toast.d.ts.map +1 -1
- package/dist/es6/toast/lib/Toast.js +1 -2
- package/dist/es6/tokens/lib/colors.types.d.ts +4 -6
- package/dist/es6/tokens/lib/colors.types.d.ts.map +1 -1
- package/dist/es6/tooltip/lib/OverflowTooltip.d.ts.map +1 -1
- package/dist/es6/tooltip/lib/OverflowTooltip.js +1 -4
- package/dist/es6/tooltip/lib/TooltipContainer.d.ts.map +1 -1
- package/dist/es6/tooltip/lib/TooltipContainer.js +5 -0
- package/dist/es6/tooltip/lib/useTooltip.d.ts.map +1 -1
- package/dist/es6/tooltip/lib/useTooltip.js +2 -1
- package/form-field/index.ts +0 -1
- package/form-field/lib/Hint.tsx +8 -19
- package/form-field/lib/Label.tsx +1 -2
- package/icon/lib/SystemIcon.tsx +1 -1
- package/index.ts +4 -1
- package/layout/README.md +28 -27
- package/layout/index.ts +15 -5
- package/layout/lib/Box.tsx +63 -45
- package/layout/lib/Column.tsx +22 -5
- package/layout/lib/Flex.tsx +6 -2
- package/layout/lib/Grid.tsx +85 -0
- package/layout/lib/Layout.tsx +37 -12
- package/layout/lib/Stack.tsx +4 -4
- package/layout/lib/utils/background.ts +83 -0
- package/layout/lib/utils/border/color.ts +85 -0
- package/layout/lib/utils/border/index.ts +49 -0
- package/layout/lib/utils/border/lineStyle.ts +87 -0
- package/layout/lib/utils/border/radius.ts +61 -0
- package/layout/lib/utils/border/shorthand.ts +73 -0
- package/layout/lib/utils/border/width.ts +73 -0
- package/layout/lib/utils/buildStyleFns.ts +117 -0
- package/layout/lib/utils/color.ts +40 -50
- package/layout/lib/utils/depth.ts +28 -24
- package/layout/lib/utils/flex.ts +85 -34
- package/layout/lib/utils/flexItem.ts +54 -36
- package/layout/lib/utils/grid.ts +166 -0
- package/layout/lib/utils/gridItem.ts +96 -0
- package/layout/lib/utils/layout.ts +109 -50
- package/layout/lib/utils/other.ts +144 -15
- package/layout/lib/utils/position.ts +79 -73
- package/layout/lib/utils/space.ts +202 -196
- package/layout/lib/utils/stack.ts +19 -45
- package/layout/lib/utils/styleProps.ts +56 -0
- package/layout/lib/utils/systemProps.ts +46 -0
- package/layout/lib/utils/text.ts +122 -0
- package/{loading-animation → loading-dots}/LICENSE +0 -0
- package/loading-dots/README.md +7 -0
- package/loading-dots/index.ts +1 -0
- package/{loading-animation → loading-dots}/lib/LoadingDots.tsx +0 -0
- package/loading-dots/package.json +6 -0
- package/menu/lib/MenuCard.tsx +1 -0
- package/menu/lib/MenuContextTarget.tsx +2 -4
- package/menu/lib/MenuItem.tsx +12 -12
- package/menu/lib/MenuTarget.tsx +2 -4
- package/modal/lib/ModalCard.tsx +17 -4
- package/modal/lib/ModalHeading.tsx +14 -2
- package/modal/lib/ModalOverlay.tsx +11 -13
- package/modal/lib/hooks/useCloseOnOverlayClick.ts +4 -2
- package/modal/lib/hooks/useModalModel.ts +1 -1
- package/package.json +3 -6
- package/pagination/lib/Pagination/AdditionalDetails.tsx +7 -8
- package/pagination/lib/Pagination/GoTo/Label.tsx +3 -11
- package/pagination/lib/Pagination/usePaginationModel.ts +5 -2
- package/popup/lib/PopupBody.tsx +1 -1
- package/popup/lib/PopupCard.tsx +16 -8
- package/popup/lib/PopupCloseButton.tsx +5 -1
- package/popup/lib/PopupCloseIcon.tsx +1 -1
- package/popup/lib/PopupHeading.tsx +1 -1
- package/popup/lib/PopupPopper.tsx +2 -3
- package/popup/lib/hooks/index.ts +1 -0
- package/popup/lib/hooks/useCloseOnTargetHidden.ts +66 -0
- package/popup/lib/hooks/useReturnFocus.tsx +112 -4
- package/radio/lib/Radio.tsx +9 -24
- package/segmented-control/lib/SegmentedControlButton.tsx +24 -5
- package/select/lib/Select.tsx +1 -1
- package/side-panel/lib/SidePanel.tsx +7 -7
- package/tabs/lib/useTabsModel.tsx +2 -2
- package/testing/LICENSE +52 -0
- package/testing/README.md +6 -0
- package/testing/index.ts +4 -0
- package/testing/lib/ComponentStatesTable.tsx +80 -0
- package/{common/lib/utils → testing/lib}/StaticStates.tsx +5 -4
- package/testing/lib/permutateProps.ts +47 -0
- package/testing/lib/propTypes.ts +15 -0
- package/testing/package.json +6 -0
- package/text/LICENSE +52 -0
- package/text/README.md +5 -0
- package/text/index.ts +3 -0
- package/text/lib/LabelText.tsx +47 -0
- package/text/lib/Text.tsx +110 -0
- package/text/lib/TypeLevelComponents.tsx +164 -0
- package/text/package.json +6 -0
- package/text-input/index.ts +0 -1
- package/toast/lib/Toast.tsx +1 -2
- package/tokens/lib/colors.types.ts +4 -7
- package/tooltip/lib/OverflowTooltip.tsx +1 -4
- package/tooltip/lib/TooltipContainer.tsx +6 -0
- package/tooltip/lib/useTooltip.tsx +2 -0
- package/dist/commonjs/common/lib/utils/StaticStates.d.ts +0 -8
- package/dist/commonjs/common/lib/utils/StaticStates.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/border.d.ts +0 -103
- package/dist/commonjs/layout/lib/utils/border.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/border.js +0 -153
- package/dist/commonjs/loading-animation/index.d.ts +0 -3
- package/dist/commonjs/loading-animation/index.d.ts.map +0 -1
- package/dist/commonjs/loading-animation/index.js +0 -5
- package/dist/commonjs/loading-animation/lib/LoadingDots.d.ts.map +0 -1
- package/dist/es6/common/lib/utils/StaticStates.d.ts +0 -8
- package/dist/es6/common/lib/utils/StaticStates.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/border.d.ts +0 -103
- package/dist/es6/layout/lib/utils/border.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/border.js +0 -149
- package/dist/es6/loading-animation/index.d.ts +0 -3
- package/dist/es6/loading-animation/index.d.ts.map +0 -1
- package/dist/es6/loading-animation/index.js +0 -2
- package/dist/es6/loading-animation/lib/LoadingDots.d.ts.map +0 -1
- package/layout/lib/utils/border.ts +0 -263
- package/loading-animation/README.md +0 -7
- package/loading-animation/index.ts +0 -3
- package/loading-animation/package.json +0 -6
|
@@ -45,6 +45,8 @@ import React from 'react';
|
|
|
45
45
|
* onOpen: 'open'
|
|
46
46
|
* }
|
|
47
47
|
* })
|
|
48
|
+
*
|
|
49
|
+
* @deprecated `createModelHook` uses Template Literal Types to create event map types
|
|
48
50
|
*/
|
|
49
51
|
export var createEventMap = function () { return function (config) {
|
|
50
52
|
// Instruct Typescript that all valid guards and callbacks exist
|
|
@@ -71,6 +73,7 @@ var keys = function (input) { return Object.keys(input); };
|
|
|
71
73
|
* }
|
|
72
74
|
* }
|
|
73
75
|
* })
|
|
76
|
+
* @deprecated Use `createModelHook` instead
|
|
74
77
|
*/
|
|
75
78
|
export var useEventMap = function (eventMap, state, config, events) {
|
|
76
79
|
// use refs so we can memoize the returned `events` object
|
|
@@ -8,23 +8,23 @@ import React from 'react';
|
|
|
8
8
|
// a. if localStorage isn't primed, use clientWidth of the browsers
|
|
9
9
|
// b. if < 768, default to 'touch'
|
|
10
10
|
// c. else default to 'mouse'
|
|
11
|
-
var localStorageValue =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
var localStorageValue = ((typeof localStorage !== 'undefined'
|
|
12
|
+
? localStorage.getItem('modality')
|
|
13
|
+
: '') ||
|
|
14
|
+
(typeof document !== 'undefined'
|
|
15
|
+
? document.documentElement.clientWidth < 768
|
|
16
|
+
? 'touch'
|
|
17
|
+
: ''
|
|
18
|
+
: '') ||
|
|
19
|
+
'mouse');
|
|
20
20
|
// Update the `localStorageValue`, but conditionally update localStorage only if the value has
|
|
21
21
|
// changed. This prevents too many calls to `localStorage` which can be costly on spinning disk
|
|
22
22
|
// drives
|
|
23
23
|
var updateLocalStorage = function (value) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
if (localStorageValue !== value) {
|
|
25
|
+
localStorage.setItem('modality', value);
|
|
26
|
+
}
|
|
27
|
+
localStorageValue = value;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* Uses heuristics to determine if the user is on a touch device, uses a pen, or a mouse. This hook
|
|
@@ -88,7 +88,7 @@ export declare const Dialog: import("../../common").ComponentM<DialogProps & Par
|
|
|
88
88
|
hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
|
|
89
89
|
};
|
|
90
90
|
}> & {
|
|
91
|
-
Body: import("../../common").ElementComponentM<"div", import("../..").
|
|
91
|
+
Body: import("../../common").ElementComponentM<"div", import("../..").BackgroundStyleProps & import("../../layout/lib/utils/border/color").BorderColorStyleProps & import("../../layout/lib/utils/border/lineStyle").BorderLineStyleProps & import("../../layout/lib/utils/border/radius").BorderRadiusStyleProps & import("../../layout/lib/utils/border/shorthand").BorderShorthandStyleProps & import("../../layout/lib/utils/border/width").BorderWidthStyleProps & import("../..").ColorStyleProps & import("../..").DepthStyleProps & import("../..").FlexItemStyleProps & import("../..").GridItemStyleProps & import("../..").LayoutStyleProps & import("../..").OtherStyleProps & import("../..").PositionStyleProps & import("../..").SpaceStyleProps & import("../..").TextStyleProps & React.HTMLAttributes<HTMLDivElement>, {
|
|
92
92
|
state: {
|
|
93
93
|
stackRef: React.RefObject<HTMLDivElement>;
|
|
94
94
|
targetRef: React.RefObject<HTMLButtonElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../form-field/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../form-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hint.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Hint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"Hint.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Hint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,SAAS,EAAE,SAAS,EAAS,MAAM,kCAAkC,CAAC;AAI9E,MAAM,WAAW,SAAU,SAAQ,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IACtF;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD,cAAM,IAAK,SAAQ,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;IAC3C,MAAM,CAAC,SAAS,mBAAa;IAEtB,MAAM;CAsBd;AAID,OAAO,EAAC,IAAI,EAAC,CAAC"}
|
|
@@ -24,17 +24,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
24
|
};
|
|
25
25
|
import * as React from 'react';
|
|
26
26
|
import { ErrorType, styled } from '@workday/canvas-kit-react/common';
|
|
27
|
-
import { space
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, function (_a) {
|
|
31
|
-
var error = _a.error, theme = _a.theme;
|
|
32
|
-
return error === ErrorType.Error && { color: theme.canvas.palette.error.main };
|
|
33
|
-
});
|
|
34
|
-
var Message = styled('p')(type.levels.subtext.medium, {
|
|
35
|
-
margin: space.xxs + " 0 0",
|
|
36
|
-
width: '100%',
|
|
37
|
-
}, function (_a) {
|
|
27
|
+
import { space } from '@workday/canvas-kit-react/tokens';
|
|
28
|
+
import { Subtext, Text } from '@workday/canvas-kit-react/text';
|
|
29
|
+
var Message = styled(Subtext)(function (_a) {
|
|
38
30
|
var error = _a.error, theme = _a.theme;
|
|
39
31
|
return error === ErrorType.Error && { color: theme.canvas.palette.error.main };
|
|
40
32
|
});
|
|
@@ -55,10 +47,10 @@ var Hint = /** @class */ (function (_super) {
|
|
|
55
47
|
break;
|
|
56
48
|
default:
|
|
57
49
|
}
|
|
58
|
-
return (React.createElement(Message, __assign({}, this.props),
|
|
59
|
-
typeof error !== 'undefined' && hintLabel && React.createElement(
|
|
50
|
+
return (React.createElement(Message, __assign({ size: "medium", margin: space.xxs + " 0 0", width: "100%" }, this.props),
|
|
51
|
+
typeof error !== 'undefined' && hintLabel && (React.createElement(Text, { fontWeight: "medium" },
|
|
60
52
|
hintLabel,
|
|
61
|
-
": "),
|
|
53
|
+
": ")),
|
|
62
54
|
children));
|
|
63
55
|
};
|
|
64
56
|
Hint.ErrorType = ErrorType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,UAAW,SAAQ,8BAA8B;IAChE;;;OAGG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,UAAW,SAAQ,8BAA8B;IAChE;;;OAGG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAsDD,cAAM,KAAM,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACtE,MAAM,CAAC,QAAQ,gCAA0B;IAElC,MAAM;CA8Bd;AAID,OAAO,EAAC,KAAK,EAAC,CAAC"}
|
|
@@ -74,8 +74,6 @@ var RequiredAstrisk = styled('abbr')({
|
|
|
74
74
|
textDecoration: 'unset',
|
|
75
75
|
});
|
|
76
76
|
// Used inside the fieldset component instead of a label for accessible radio groups.
|
|
77
|
-
// Extra `width: 100%` style is to help IE11 wrap text properly in a top-positioned
|
|
78
|
-
// FormField's legend element.
|
|
79
77
|
var LegendComponent = styled('legend').apply(void 0, __spreadArrays(labelStyles, [function (_a) {
|
|
80
78
|
var labelPosition = _a.labelPosition;
|
|
81
79
|
if (labelPosition === Label.Position.Top) {
|
|
@@ -39,7 +39,7 @@ export interface SystemIconStyles {
|
|
|
39
39
|
*/
|
|
40
40
|
fillHover?: string;
|
|
41
41
|
}
|
|
42
|
-
export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src' | 'color' | 'type' | 'background'> {
|
|
42
|
+
export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src' | 'color' | 'fill' | 'type' | 'background'> {
|
|
43
43
|
/**
|
|
44
44
|
* The icon to display from `@workday/canvas-system-icons-web`.
|
|
45
45
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/SystemIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAO,SAAS,EAAC,MAAM,QAAQ,CAAC;AAGvC,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,SAAS,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"SystemIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/SystemIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAO,SAAS,EAAC,MAAM,QAAQ,CAAC;AAGvC,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,SAAS,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;IACnE;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,8FAS1B,gBAAgB,KAAG,SAmBpB,CAAC;AAEH,eAAO,MAAM,UAAU,kEA4CrB,CAAC"}
|
package/dist/es6/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './action-bar';
|
|
|
2
2
|
export * from './avatar';
|
|
3
3
|
export * from './badge';
|
|
4
4
|
export * from './banner';
|
|
5
|
+
export * from './breadcrumbs';
|
|
5
6
|
export * from './button';
|
|
6
7
|
export * from './card';
|
|
7
8
|
export * from './checkbox';
|
|
@@ -13,7 +14,7 @@ export * from './disclosure';
|
|
|
13
14
|
export * from './form-field';
|
|
14
15
|
export * from './icon';
|
|
15
16
|
export * from './layout';
|
|
16
|
-
export * from './loading-
|
|
17
|
+
export * from './loading-dots';
|
|
17
18
|
export * from './menu';
|
|
18
19
|
export * from './modal';
|
|
19
20
|
export * from './pagination';
|
|
@@ -27,6 +28,8 @@ export * from './status-indicator';
|
|
|
27
28
|
export * from './switch';
|
|
28
29
|
export * from './table';
|
|
29
30
|
export * from './tabs';
|
|
31
|
+
export * from './testing';
|
|
32
|
+
export * from './text';
|
|
30
33
|
export * from './text-area';
|
|
31
34
|
export * from './text-input';
|
|
32
35
|
export * from './toast';
|
package/dist/es6/index.d.ts.map
CHANGED
|
@@ -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,cAAc,CAAC;AAC7B,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,
|
|
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,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,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,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,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,WAAW,CAAC;AAC1B,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/es6/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from './action-bar';
|
|
|
2
2
|
export * from './avatar';
|
|
3
3
|
export * from './badge';
|
|
4
4
|
export * from './banner';
|
|
5
|
+
export * from './breadcrumbs';
|
|
5
6
|
export * from './button';
|
|
6
7
|
export * from './card';
|
|
7
8
|
export * from './checkbox';
|
|
@@ -13,7 +14,7 @@ export * from './disclosure';
|
|
|
13
14
|
export * from './form-field';
|
|
14
15
|
export * from './icon';
|
|
15
16
|
export * from './layout';
|
|
16
|
-
export * from './loading-
|
|
17
|
+
export * from './loading-dots';
|
|
17
18
|
export * from './menu';
|
|
18
19
|
export * from './modal';
|
|
19
20
|
export * from './pagination';
|
|
@@ -27,6 +28,8 @@ export * from './status-indicator';
|
|
|
27
28
|
export * from './switch';
|
|
28
29
|
export * from './table';
|
|
29
30
|
export * from './tabs';
|
|
31
|
+
export * from './testing';
|
|
32
|
+
export * from './text';
|
|
30
33
|
export * from './text-area';
|
|
31
34
|
export * from './text-input';
|
|
32
35
|
export * from './toast';
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { DeprecatedLayout } from './lib/Layout';
|
|
2
|
+
import { DeprecatedColumn } from './lib/Column';
|
|
3
|
+
export { DeprecatedLayout, DeprecatedColumn };
|
|
4
4
|
export * from './lib/Box';
|
|
5
|
+
export * from './lib/utils/background';
|
|
5
6
|
export * from './lib/utils/border';
|
|
6
7
|
export * from './lib/utils/color';
|
|
7
|
-
export { DepthStyleProps } from './lib/utils/depth';
|
|
8
|
+
export { DepthStyleProps, depthStyleFnConfigs } from './lib/utils/depth';
|
|
9
|
+
export * from './lib/utils/flex';
|
|
8
10
|
export * from './lib/utils/flexItem';
|
|
11
|
+
export * from './lib/utils/grid';
|
|
12
|
+
export * from './lib/utils/gridItem';
|
|
9
13
|
export * from './lib/utils/layout';
|
|
14
|
+
export * from './lib/utils/other';
|
|
10
15
|
export * from './lib/utils/position';
|
|
11
|
-
export { SpaceStyleProps } from './lib/utils/space';
|
|
16
|
+
export { SpaceStyleProps, spaceStyleFnConfigs } from './lib/utils/space';
|
|
17
|
+
export { AllStyleProps, CommonStyleProps } from './lib/utils/styleProps';
|
|
18
|
+
export * from './lib/utils/text';
|
|
12
19
|
export * from './lib/Flex';
|
|
20
|
+
export * from './lib/Grid';
|
|
13
21
|
export * from './lib/Stack';
|
|
14
22
|
export type { FlexStyleProps } from './lib/utils/flex';
|
|
23
|
+
export type { GridStyleProps } from './lib/utils/grid';
|
|
24
|
+
export type { GridItemStyleProps, gridItemStyleFnConfigs } from './lib/utils/gridItem';
|
|
15
25
|
export type { StackSpacing, StackDirection, StackStyleProps } from './lib/utils/stack';
|
|
16
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAC,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACvE,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/es6/layout/index.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { DeprecatedLayout } from './lib/Layout';
|
|
2
|
+
import { DeprecatedColumn } from './lib/Column';
|
|
3
|
+
export { DeprecatedLayout, DeprecatedColumn };
|
|
4
4
|
export * from './lib/Box';
|
|
5
|
+
export * from './lib/utils/background';
|
|
5
6
|
export * from './lib/utils/border';
|
|
6
7
|
export * from './lib/utils/color';
|
|
8
|
+
export { depthStyleFnConfigs } from './lib/utils/depth';
|
|
9
|
+
export * from './lib/utils/flex';
|
|
7
10
|
export * from './lib/utils/flexItem';
|
|
11
|
+
export * from './lib/utils/grid';
|
|
12
|
+
export * from './lib/utils/gridItem';
|
|
8
13
|
export * from './lib/utils/layout';
|
|
14
|
+
export * from './lib/utils/other';
|
|
9
15
|
export * from './lib/utils/position';
|
|
16
|
+
export { spaceStyleFnConfigs } from './lib/utils/space';
|
|
17
|
+
export * from './lib/utils/text';
|
|
10
18
|
export * from './lib/Flex';
|
|
19
|
+
export * from './lib/Grid';
|
|
11
20
|
export * from './lib/Stack';
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { CommonStyleProps } from './utils/styleProps';
|
|
3
|
+
/**
|
|
4
|
+
* Box Props
|
|
5
|
+
* ---
|
|
6
|
+
* Common style props + children
|
|
7
|
+
*
|
|
8
|
+
* - background
|
|
9
|
+
* - border
|
|
10
|
+
* - color
|
|
11
|
+
* - depth
|
|
12
|
+
* - flexItem
|
|
13
|
+
* - gridItem
|
|
14
|
+
* - layout
|
|
15
|
+
* - other
|
|
16
|
+
* - position
|
|
17
|
+
* - space
|
|
18
|
+
* - text
|
|
19
|
+
*/
|
|
20
|
+
export declare type BoxProps = CommonStyleProps & {
|
|
11
21
|
children?: React.ReactNode;
|
|
12
22
|
};
|
|
13
23
|
/**
|
|
14
24
|
* A function that allows us to call Box styles on an element and reduce the amount of elements in the React Dom tree.
|
|
15
25
|
* Instead of using the `as` in a styled function, you can just call this instead to pass those props to the styled element
|
|
16
26
|
* @example
|
|
27
|
+
* ```
|
|
17
28
|
* import { boxStyleFn } from '@workday/canvas-kit-react/layout';
|
|
18
29
|
* const StyledHeader = styled('h1')(
|
|
19
30
|
* boxStyleFn,
|
|
@@ -22,9 +33,10 @@ export declare type BoxProps = BorderStyleProps & ColorStyleProps & DepthStylePr
|
|
|
22
33
|
* }
|
|
23
34
|
* )
|
|
24
35
|
*
|
|
25
|
-
*
|
|
36
|
+
* ...
|
|
26
37
|
*
|
|
27
38
|
* <StyledHeader color='red'>Hello World</StyledHeader>
|
|
39
|
+
* ```
|
|
28
40
|
*/
|
|
29
41
|
export declare const boxStyleFn: <P extends BoxProps>(props: P) => {};
|
|
30
42
|
/**
|
|
@@ -44,5 +56,5 @@ export declare const boxStyleFn: <P extends BoxProps>(props: P) => {};
|
|
|
44
56
|
* );
|
|
45
57
|
*
|
|
46
58
|
*/
|
|
47
|
-
export declare const Box: import("../../common").ElementComponent<"div",
|
|
59
|
+
export declare const Box: import("../../common").ElementComponent<"div", CommonStyleProps>;
|
|
48
60
|
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,oBAAY,QAAQ,GAAG,gBAAgB,GAAG;IACxC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AA6BF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,sCA0BtB,CAAC;AAQF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,GAAG,kEAad,CAAC"}
|
|
@@ -25,15 +25,39 @@ import styled from '@emotion/styled';
|
|
|
25
25
|
import isPropValid from '@emotion/is-prop-valid';
|
|
26
26
|
import { createComponent, useConstant } from '@workday/canvas-kit-react/common';
|
|
27
27
|
// style props
|
|
28
|
+
import { background } from './utils/background';
|
|
28
29
|
import { border } from './utils/border';
|
|
29
30
|
import { color } from './utils/color';
|
|
30
31
|
import { depth } from './utils/depth';
|
|
31
32
|
import { flexItem } from './utils/flexItem';
|
|
33
|
+
import { gridItem } from './utils/gridItem';
|
|
32
34
|
import { layout } from './utils/layout';
|
|
33
35
|
import { other } from './utils/other';
|
|
34
36
|
import { position } from './utils/position';
|
|
35
37
|
import { space } from './utils/space';
|
|
36
|
-
|
|
38
|
+
import { text } from './utils/text';
|
|
39
|
+
var omittedProps = [
|
|
40
|
+
'display',
|
|
41
|
+
'color',
|
|
42
|
+
'height',
|
|
43
|
+
'overflow',
|
|
44
|
+
'width',
|
|
45
|
+
'border',
|
|
46
|
+
'background',
|
|
47
|
+
'fontSize',
|
|
48
|
+
'fontWeight',
|
|
49
|
+
'fontFamily',
|
|
50
|
+
'letterSpacing',
|
|
51
|
+
'lineHeight',
|
|
52
|
+
'textAlign',
|
|
53
|
+
'opacity',
|
|
54
|
+
'textDecoration',
|
|
55
|
+
'textOverflow',
|
|
56
|
+
'textTransform',
|
|
57
|
+
'textShadow',
|
|
58
|
+
'whiteSpace',
|
|
59
|
+
'wordBreak',
|
|
60
|
+
];
|
|
37
61
|
var shouldForwardProp = function (prop) {
|
|
38
62
|
return isPropValid(prop) && !omittedProps.includes(prop);
|
|
39
63
|
};
|
|
@@ -41,6 +65,7 @@ var shouldForwardProp = function (prop) {
|
|
|
41
65
|
* A function that allows us to call Box styles on an element and reduce the amount of elements in the React Dom tree.
|
|
42
66
|
* Instead of using the `as` in a styled function, you can just call this instead to pass those props to the styled element
|
|
43
67
|
* @example
|
|
68
|
+
* ```
|
|
44
69
|
* import { boxStyleFn } from '@workday/canvas-kit-react/layout';
|
|
45
70
|
* const StyledHeader = styled('h1')(
|
|
46
71
|
* boxStyleFn,
|
|
@@ -49,22 +74,27 @@ var shouldForwardProp = function (prop) {
|
|
|
49
74
|
* }
|
|
50
75
|
* )
|
|
51
76
|
*
|
|
52
|
-
*
|
|
77
|
+
* ...
|
|
53
78
|
*
|
|
54
79
|
* <StyledHeader color='red'>Hello World</StyledHeader>
|
|
80
|
+
* ```
|
|
55
81
|
*/
|
|
56
82
|
export var boxStyleFn = function (props) {
|
|
57
83
|
return [
|
|
58
84
|
{
|
|
59
85
|
boxSizing: 'border-box',
|
|
60
86
|
},
|
|
87
|
+
background,
|
|
61
88
|
border,
|
|
62
89
|
color,
|
|
63
90
|
depth,
|
|
64
91
|
flexItem,
|
|
92
|
+
gridItem,
|
|
65
93
|
layout,
|
|
94
|
+
other,
|
|
66
95
|
position,
|
|
67
96
|
space,
|
|
97
|
+
text,
|
|
68
98
|
].reduce(function (result, style) {
|
|
69
99
|
// @ts-ignore
|
|
70
100
|
var temp = typeof style === 'function' ? style(props) : style;
|
|
@@ -77,13 +107,9 @@ export var boxStyleFn = function (props) {
|
|
|
77
107
|
}, {});
|
|
78
108
|
};
|
|
79
109
|
// Meant to be used with elements. The `shouldForwardProps` will remove all style props
|
|
80
|
-
var StyledBoxElement = styled('div', { shouldForwardProp: shouldForwardProp })(
|
|
81
|
-
boxSizing: 'border-box',
|
|
82
|
-
}, border, color, depth, flexItem, layout, position, space);
|
|
110
|
+
var StyledBoxElement = styled('div', { shouldForwardProp: shouldForwardProp })(boxStyleFn);
|
|
83
111
|
// Meant to be used with components. There is no `shouldForwardProps` - all props will be forwarded to the component
|
|
84
|
-
var StyledBoxComponent = styled('div')(
|
|
85
|
-
boxSizing: 'border-box',
|
|
86
|
-
}, border, color, depth, flexItem, layout, other, position, space);
|
|
112
|
+
var StyledBoxComponent = styled('div')(boxStyleFn);
|
|
87
113
|
/**
|
|
88
114
|
* `Box` is a primitive component that provides a common, ergonomic API around Canvas design tokens.
|
|
89
115
|
* It is highly flexible, and its primary purpose is to build other components.
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* ### Deprecated Layout Column Props
|
|
4
|
+
*
|
|
5
|
+
* As of Canvas Kit v8, Layout is being soft-deprecated.
|
|
6
|
+
* It will be hard-deprecated (completely removed) in v9. Please see the
|
|
7
|
+
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
8
|
+
* for more information.
|
|
9
|
+
*/
|
|
10
|
+
export interface DeprecatedColumnProps {
|
|
3
11
|
/**
|
|
4
|
-
* The children of the
|
|
12
|
+
* The children of the DeprecatedColumn (cannot be empty).
|
|
5
13
|
*/
|
|
6
14
|
children?: React.ReactNode;
|
|
7
15
|
/**
|
|
8
|
-
* The left and right padding of the
|
|
16
|
+
* The left and right padding of the DeprecatedColumn (inherits from Layout prop).
|
|
9
17
|
* @default 12
|
|
10
18
|
*/
|
|
11
19
|
spacing?: number;
|
|
@@ -18,7 +26,8 @@ export interface ColumnProps {
|
|
|
18
26
|
*/
|
|
19
27
|
width?: number | string;
|
|
20
28
|
}
|
|
21
|
-
export declare class
|
|
29
|
+
export declare class DeprecatedColumn extends React.Component<DeprecatedColumnProps> {
|
|
30
|
+
componentDidMount(): void;
|
|
22
31
|
render(): JSX.Element;
|
|
23
32
|
}
|
|
24
33
|
//# sourceMappingURL=Column.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Column.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Column.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC3D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAsCD,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC;IAC1E,iBAAiB;IASV,MAAM;CASd"}
|
|
@@ -67,15 +67,18 @@ var ColumnContainer = styled('div', {
|
|
|
67
67
|
}
|
|
68
68
|
return { flex: 1 };
|
|
69
69
|
});
|
|
70
|
-
var
|
|
71
|
-
__extends(
|
|
72
|
-
function
|
|
70
|
+
var DeprecatedColumn = /** @class */ (function (_super) {
|
|
71
|
+
__extends(DeprecatedColumn, _super);
|
|
72
|
+
function DeprecatedColumn() {
|
|
73
73
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
DeprecatedColumn.prototype.componentDidMount = function () {
|
|
76
|
+
console.warn("This component is being deprecated and will be removed in Canvas Kit V9.\n\n For more information, please see the V8 upgrade guide:\n\n https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page\n ");
|
|
77
|
+
};
|
|
78
|
+
DeprecatedColumn.prototype.render = function () {
|
|
76
79
|
var _a = this.props, children = _a.children, spacing = _a.spacing, columns = _a.columns, width = _a.width, elemProps = __rest(_a, ["children", "spacing", "columns", "width"]);
|
|
77
80
|
return (React.createElement(ColumnContainer, __assign({ spacing: spacing, columns: columns, width: width }, elemProps), children));
|
|
78
81
|
};
|
|
79
|
-
return
|
|
82
|
+
return DeprecatedColumn;
|
|
80
83
|
}(React.Component));
|
|
81
|
-
export {
|
|
84
|
+
export { DeprecatedColumn };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { BoxProps } from './Box';
|
|
2
2
|
import { FlexStyleProps } from './utils/flex';
|
|
3
|
-
export declare type FlexProps = BoxProps & FlexStyleProps;
|
|
3
|
+
export declare type FlexProps = Omit<BoxProps, 'display'> & FlexStyleProps;
|
|
4
4
|
/**
|
|
5
5
|
* `Flex` is a low-level layout component that provides a common, ergonomic API for applying CSS flexbox styles.
|
|
6
6
|
* It is highly flexible, and can be used on its own or to build other components.
|
|
7
7
|
* `Flex` is built on top of `Box` and has access to all `BoxProps`.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
|
+
* ```tsx
|
|
10
11
|
* import { Flex, FlexProps } from '@workday/canvas-kit-react/layout';
|
|
11
12
|
*
|
|
12
13
|
* interface CardProps extends FlexProps {
|
|
@@ -20,7 +21,9 @@ export declare type FlexProps = BoxProps & FlexStyleProps;
|
|
|
20
21
|
* <p>This card uses flexbox to set its layout.</p>
|
|
21
22
|
* </Flex>
|
|
22
23
|
* );
|
|
23
|
-
*
|
|
24
|
+
* ```
|
|
24
25
|
*/
|
|
25
|
-
export declare const Flex: import("../../common").ElementComponent<"div",
|
|
26
|
+
export declare const Flex: import("../../common").ElementComponent<"div", FlexProps> & {
|
|
27
|
+
Item: import("../../common").ElementComponent<"div", import("..").CommonStyleProps>;
|
|
28
|
+
};
|
|
26
29
|
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Flex.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAM,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAO,cAAc,EAAC,MAAM,cAAc,CAAC;AAElD,oBAAY,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Flex.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAM,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAO,cAAc,EAAC,MAAM,cAAc,CAAC;AAElD,oBAAY,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,cAAc,CAAC;AASnE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,IAAI;;CAYf,CAAC"}
|
|
@@ -34,6 +34,7 @@ var StyledFlex = styled(Box)({
|
|
|
34
34
|
* `Flex` is built on top of `Box` and has access to all `BoxProps`.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
+
* ```tsx
|
|
37
38
|
* import { Flex, FlexProps } from '@workday/canvas-kit-react/layout';
|
|
38
39
|
*
|
|
39
40
|
* interface CardProps extends FlexProps {
|
|
@@ -47,7 +48,7 @@ var StyledFlex = styled(Box)({
|
|
|
47
48
|
* <p>This card uses flexbox to set its layout.</p>
|
|
48
49
|
* </Flex>
|
|
49
50
|
* );
|
|
50
|
-
*
|
|
51
|
+
* ```
|
|
51
52
|
*/
|
|
52
53
|
export var Flex = createComponent('div')({
|
|
53
54
|
displayName: 'Flex',
|
|
@@ -55,4 +56,7 @@ export var Flex = createComponent('div')({
|
|
|
55
56
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
56
57
|
return (React.createElement(StyledFlex, __assign({ as: Element, ref: ref }, elemProps), children));
|
|
57
58
|
},
|
|
59
|
+
subComponents: {
|
|
60
|
+
Item: Box,
|
|
61
|
+
},
|
|
58
62
|
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BoxProps } from './Box';
|
|
2
|
+
import { GridStyleProps } from './utils/grid';
|
|
3
|
+
export declare type GridProps = Omit<BoxProps, 'display'> & GridStyleProps;
|
|
4
|
+
export declare type GridItemProps = BoxProps;
|
|
5
|
+
/**
|
|
6
|
+
* `Grid` is a two-dimensional layout system for the web. It lets you lay content out in rows and columns.
|
|
7
|
+
* It is highly flexible, and can be used on its own or to build other components.
|
|
8
|
+
* `Grid` is built on top of `Box` and has access to all `BoxProps`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { Grid } from '@workday/canvas-kit-react/layout';
|
|
13
|
+
*
|
|
14
|
+
* interface CardProps extends GridProps {
|
|
15
|
+
* // card-specific props
|
|
16
|
+
* }
|
|
17
|
+
*
|
|
18
|
+
* // `Card`'s default values are set using `GridProps`
|
|
19
|
+
* const Card = (props: CardProps) => (
|
|
20
|
+
* <Grid gridAutoFlow="row" alignItems="start" depth={1} space="m" {...props}>
|
|
21
|
+
* <h1>Hello, Card!</h1>
|
|
22
|
+
* <p>This card uses grid to set its layout.</p>
|
|
23
|
+
* </Grid>
|
|
24
|
+
* );
|
|
25
|
+
*```
|
|
26
|
+
*/
|
|
27
|
+
export declare const Grid: import("../../common").ElementComponent<"div", GridProps> & {
|
|
28
|
+
/**
|
|
29
|
+
* `<Grid.Item />` is the child specific sub-component to `<Grid/>`. `<Grid.Item />` gets child specific props, whereas `<Grid./>` gets parent container props.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```
|
|
33
|
+
* import { Grid } from '@workday/canvas-kit-react/layout';
|
|
34
|
+
* `Grid` is built on top of `Box` so `<Grid.Item />` gets all `BoxProps` as well.
|
|
35
|
+
*
|
|
36
|
+
* interface CardProps extends GridItemStyleProps {
|
|
37
|
+
* // card-specific props
|
|
38
|
+
* }
|
|
39
|
+
*
|
|
40
|
+
* // `Card`'s default values are set using `GridItemStyleProps`
|
|
41
|
+
* const Card = (props: CardProps) => (
|
|
42
|
+
* <Grid.Item gridRowStart="1" gridArea="Card" {...props}>
|
|
43
|
+
* <h1>Hello, Card!</h1>
|
|
44
|
+
* <p>This card uses grid child specific props to set its layout.</p>
|
|
45
|
+
* </Grid.Item>
|
|
46
|
+
* );
|
|
47
|
+
*```
|
|
48
|
+
*/
|
|
49
|
+
Item: import("../../common").ElementComponent<"div", import("..").CommonStyleProps>;
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Grid.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAM,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAO,cAAc,EAAC,MAAM,cAAc,CAAC;AAElD,oBAAY,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,cAAc,CAAC;AACnE,oBAAY,aAAa,GAAG,QAAQ,CAAC;AAoBrC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,IAAI;IAUb;;;;;;;;;;;;;;;;;;;;OAoBG;;CAIL,CAAC"}
|