@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
|
@@ -51,6 +51,8 @@ var react_1 = __importDefault(require("react"));
|
|
|
51
51
|
* onOpen: 'open'
|
|
52
52
|
* }
|
|
53
53
|
* })
|
|
54
|
+
*
|
|
55
|
+
* @deprecated `createModelHook` uses Template Literal Types to create event map types
|
|
54
56
|
*/
|
|
55
57
|
var createEventMap = function () { return function (config) {
|
|
56
58
|
// Instruct Typescript that all valid guards and callbacks exist
|
|
@@ -78,6 +80,7 @@ var keys = function (input) { return Object.keys(input); };
|
|
|
78
80
|
* }
|
|
79
81
|
* }
|
|
80
82
|
* })
|
|
83
|
+
* @deprecated Use `createModelHook` instead
|
|
81
84
|
*/
|
|
82
85
|
var useEventMap = function (eventMap, state, config, events) {
|
|
83
86
|
// use refs so we can memoize the returned `events` object
|
|
@@ -14,23 +14,23 @@ var react_1 = __importDefault(require("react"));
|
|
|
14
14
|
// a. if localStorage isn't primed, use clientWidth of the browsers
|
|
15
15
|
// b. if < 768, default to 'touch'
|
|
16
16
|
// c. else default to 'mouse'
|
|
17
|
-
var localStorageValue =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
var localStorageValue = ((typeof localStorage !== 'undefined'
|
|
18
|
+
? localStorage.getItem('modality')
|
|
19
|
+
: '') ||
|
|
20
|
+
(typeof document !== 'undefined'
|
|
21
|
+
? document.documentElement.clientWidth < 768
|
|
22
|
+
? 'touch'
|
|
23
|
+
: ''
|
|
24
|
+
: '') ||
|
|
25
|
+
'mouse');
|
|
26
26
|
// Update the `localStorageValue`, but conditionally update localStorage only if the value has
|
|
27
27
|
// changed. This prevents too many calls to `localStorage` which can be costly on spinning disk
|
|
28
28
|
// drives
|
|
29
29
|
var updateLocalStorage = function (value) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
if (localStorageValue !== value) {
|
|
31
|
+
localStorage.setItem('modality', value);
|
|
32
|
+
}
|
|
33
|
+
localStorageValue = value;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
36
|
* 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"}
|
|
@@ -47,16 +47,8 @@ exports.Hint = void 0;
|
|
|
47
47
|
var React = __importStar(require("react"));
|
|
48
48
|
var common_1 = require("@workday/canvas-kit-react/common");
|
|
49
49
|
var tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
}, function (_a) {
|
|
53
|
-
var error = _a.error, theme = _a.theme;
|
|
54
|
-
return error === common_1.ErrorType.Error && { color: theme.canvas.palette.error.main };
|
|
55
|
-
});
|
|
56
|
-
var Message = common_1.styled('p')(tokens_1.type.levels.subtext.medium, {
|
|
57
|
-
margin: tokens_1.space.xxs + " 0 0",
|
|
58
|
-
width: '100%',
|
|
59
|
-
}, function (_a) {
|
|
50
|
+
var text_1 = require("@workday/canvas-kit-react/text");
|
|
51
|
+
var Message = common_1.styled(text_1.Subtext)(function (_a) {
|
|
60
52
|
var error = _a.error, theme = _a.theme;
|
|
61
53
|
return error === common_1.ErrorType.Error && { color: theme.canvas.palette.error.main };
|
|
62
54
|
});
|
|
@@ -77,10 +69,10 @@ var Hint = /** @class */ (function (_super) {
|
|
|
77
69
|
break;
|
|
78
70
|
default:
|
|
79
71
|
}
|
|
80
|
-
return (React.createElement(Message, __assign({}, this.props),
|
|
81
|
-
typeof error !== 'undefined' && hintLabel && React.createElement(
|
|
72
|
+
return (React.createElement(Message, __assign({ size: "medium", margin: tokens_1.space.xxs + " 0 0", width: "100%" }, this.props),
|
|
73
|
+
typeof error !== 'undefined' && hintLabel && (React.createElement(text_1.Text, { fontWeight: "medium" },
|
|
82
74
|
hintLabel,
|
|
83
|
-
": "),
|
|
75
|
+
": ")),
|
|
84
76
|
children));
|
|
85
77
|
};
|
|
86
78
|
Hint.ErrorType = common_1.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"}
|
|
@@ -96,8 +96,6 @@ var RequiredAstrisk = common_1.styled('abbr')({
|
|
|
96
96
|
textDecoration: 'unset',
|
|
97
97
|
});
|
|
98
98
|
// Used inside the fieldset component instead of a label for accessible radio groups.
|
|
99
|
-
// Extra `width: 100%` style is to help IE11 wrap text properly in a top-positioned
|
|
100
|
-
// FormField's legend element.
|
|
101
99
|
var LegendComponent = common_1.styled('legend').apply(void 0, __spreadArrays(labelStyles, [function (_a) {
|
|
102
100
|
var labelPosition = _a.labelPosition;
|
|
103
101
|
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/commonjs/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';
|
|
@@ -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/commonjs/index.js
CHANGED
|
@@ -14,6 +14,7 @@ __exportStar(require("./action-bar"), exports);
|
|
|
14
14
|
__exportStar(require("./avatar"), exports);
|
|
15
15
|
__exportStar(require("./badge"), exports);
|
|
16
16
|
__exportStar(require("./banner"), exports);
|
|
17
|
+
__exportStar(require("./breadcrumbs"), exports);
|
|
17
18
|
__exportStar(require("./button"), exports);
|
|
18
19
|
__exportStar(require("./card"), exports);
|
|
19
20
|
__exportStar(require("./checkbox"), exports);
|
|
@@ -25,7 +26,7 @@ __exportStar(require("./disclosure"), exports);
|
|
|
25
26
|
__exportStar(require("./form-field"), exports);
|
|
26
27
|
__exportStar(require("./icon"), exports);
|
|
27
28
|
__exportStar(require("./layout"), exports);
|
|
28
|
-
__exportStar(require("./loading-
|
|
29
|
+
__exportStar(require("./loading-dots"), exports);
|
|
29
30
|
__exportStar(require("./menu"), exports);
|
|
30
31
|
__exportStar(require("./modal"), exports);
|
|
31
32
|
__exportStar(require("./pagination"), exports);
|
|
@@ -39,6 +40,8 @@ __exportStar(require("./status-indicator"), exports);
|
|
|
39
40
|
__exportStar(require("./switch"), exports);
|
|
40
41
|
__exportStar(require("./table"), exports);
|
|
41
42
|
__exportStar(require("./tabs"), exports);
|
|
43
|
+
__exportStar(require("./testing"), exports);
|
|
44
|
+
__exportStar(require("./text"), exports);
|
|
42
45
|
__exportStar(require("./text-area"), exports);
|
|
43
46
|
__exportStar(require("./text-input"), exports);
|
|
44
47
|
__exportStar(require("./toast"), exports);
|
|
@@ -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"}
|
|
@@ -10,16 +10,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.spaceStyleFnConfigs = exports.depthStyleFnConfigs = exports.DeprecatedColumn = exports.DeprecatedLayout = void 0;
|
|
14
14
|
var Layout_1 = require("./lib/Layout");
|
|
15
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "DeprecatedLayout", { enumerable: true, get: function () { return Layout_1.DeprecatedLayout; } });
|
|
16
16
|
var Column_1 = require("./lib/Column");
|
|
17
|
-
Object.defineProperty(exports, "
|
|
17
|
+
Object.defineProperty(exports, "DeprecatedColumn", { enumerable: true, get: function () { return Column_1.DeprecatedColumn; } });
|
|
18
18
|
__exportStar(require("./lib/Box"), exports);
|
|
19
|
+
__exportStar(require("./lib/utils/background"), exports);
|
|
19
20
|
__exportStar(require("./lib/utils/border"), exports);
|
|
20
21
|
__exportStar(require("./lib/utils/color"), exports);
|
|
22
|
+
var depth_1 = require("./lib/utils/depth");
|
|
23
|
+
Object.defineProperty(exports, "depthStyleFnConfigs", { enumerable: true, get: function () { return depth_1.depthStyleFnConfigs; } });
|
|
24
|
+
__exportStar(require("./lib/utils/flex"), exports);
|
|
21
25
|
__exportStar(require("./lib/utils/flexItem"), exports);
|
|
26
|
+
__exportStar(require("./lib/utils/grid"), exports);
|
|
27
|
+
__exportStar(require("./lib/utils/gridItem"), exports);
|
|
22
28
|
__exportStar(require("./lib/utils/layout"), exports);
|
|
29
|
+
__exportStar(require("./lib/utils/other"), exports);
|
|
23
30
|
__exportStar(require("./lib/utils/position"), exports);
|
|
31
|
+
var space_1 = require("./lib/utils/space");
|
|
32
|
+
Object.defineProperty(exports, "spaceStyleFnConfigs", { enumerable: true, get: function () { return space_1.spaceStyleFnConfigs; } });
|
|
33
|
+
__exportStar(require("./lib/utils/text"), exports);
|
|
24
34
|
__exportStar(require("./lib/Flex"), exports);
|
|
35
|
+
__exportStar(require("./lib/Grid"), exports);
|
|
25
36
|
__exportStar(require("./lib/Stack"), exports);
|
|
@@ -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"}
|
|
@@ -50,15 +50,39 @@ var styled_1 = __importDefault(require("@emotion/styled"));
|
|
|
50
50
|
var is_prop_valid_1 = __importDefault(require("@emotion/is-prop-valid"));
|
|
51
51
|
var common_1 = require("@workday/canvas-kit-react/common");
|
|
52
52
|
// style props
|
|
53
|
+
var background_1 = require("./utils/background");
|
|
53
54
|
var border_1 = require("./utils/border");
|
|
54
55
|
var color_1 = require("./utils/color");
|
|
55
56
|
var depth_1 = require("./utils/depth");
|
|
56
57
|
var flexItem_1 = require("./utils/flexItem");
|
|
58
|
+
var gridItem_1 = require("./utils/gridItem");
|
|
57
59
|
var layout_1 = require("./utils/layout");
|
|
58
60
|
var other_1 = require("./utils/other");
|
|
59
61
|
var position_1 = require("./utils/position");
|
|
60
62
|
var space_1 = require("./utils/space");
|
|
61
|
-
var
|
|
63
|
+
var text_1 = require("./utils/text");
|
|
64
|
+
var omittedProps = [
|
|
65
|
+
'display',
|
|
66
|
+
'color',
|
|
67
|
+
'height',
|
|
68
|
+
'overflow',
|
|
69
|
+
'width',
|
|
70
|
+
'border',
|
|
71
|
+
'background',
|
|
72
|
+
'fontSize',
|
|
73
|
+
'fontWeight',
|
|
74
|
+
'fontFamily',
|
|
75
|
+
'letterSpacing',
|
|
76
|
+
'lineHeight',
|
|
77
|
+
'textAlign',
|
|
78
|
+
'opacity',
|
|
79
|
+
'textDecoration',
|
|
80
|
+
'textOverflow',
|
|
81
|
+
'textTransform',
|
|
82
|
+
'textShadow',
|
|
83
|
+
'whiteSpace',
|
|
84
|
+
'wordBreak',
|
|
85
|
+
];
|
|
62
86
|
var shouldForwardProp = function (prop) {
|
|
63
87
|
return is_prop_valid_1.default(prop) && !omittedProps.includes(prop);
|
|
64
88
|
};
|
|
@@ -66,6 +90,7 @@ var shouldForwardProp = function (prop) {
|
|
|
66
90
|
* A function that allows us to call Box styles on an element and reduce the amount of elements in the React Dom tree.
|
|
67
91
|
* Instead of using the `as` in a styled function, you can just call this instead to pass those props to the styled element
|
|
68
92
|
* @example
|
|
93
|
+
* ```
|
|
69
94
|
* import { boxStyleFn } from '@workday/canvas-kit-react/layout';
|
|
70
95
|
* const StyledHeader = styled('h1')(
|
|
71
96
|
* boxStyleFn,
|
|
@@ -74,22 +99,27 @@ var shouldForwardProp = function (prop) {
|
|
|
74
99
|
* }
|
|
75
100
|
* )
|
|
76
101
|
*
|
|
77
|
-
*
|
|
102
|
+
* ...
|
|
78
103
|
*
|
|
79
104
|
* <StyledHeader color='red'>Hello World</StyledHeader>
|
|
105
|
+
* ```
|
|
80
106
|
*/
|
|
81
107
|
var boxStyleFn = function (props) {
|
|
82
108
|
return [
|
|
83
109
|
{
|
|
84
110
|
boxSizing: 'border-box',
|
|
85
111
|
},
|
|
112
|
+
background_1.background,
|
|
86
113
|
border_1.border,
|
|
87
114
|
color_1.color,
|
|
88
115
|
depth_1.depth,
|
|
89
116
|
flexItem_1.flexItem,
|
|
117
|
+
gridItem_1.gridItem,
|
|
90
118
|
layout_1.layout,
|
|
119
|
+
other_1.other,
|
|
91
120
|
position_1.position,
|
|
92
121
|
space_1.space,
|
|
122
|
+
text_1.text,
|
|
93
123
|
].reduce(function (result, style) {
|
|
94
124
|
// @ts-ignore
|
|
95
125
|
var temp = typeof style === 'function' ? style(props) : style;
|
|
@@ -103,13 +133,9 @@ var boxStyleFn = function (props) {
|
|
|
103
133
|
};
|
|
104
134
|
exports.boxStyleFn = boxStyleFn;
|
|
105
135
|
// 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);
|
|
136
|
+
var StyledBoxElement = styled_1.default('div', { shouldForwardProp: shouldForwardProp })(exports.boxStyleFn);
|
|
109
137
|
// 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);
|
|
138
|
+
var StyledBoxComponent = styled_1.default('div')(exports.boxStyleFn);
|
|
113
139
|
/**
|
|
114
140
|
* `Box` is a primitive component that provides a common, ergonomic API around Canvas design tokens.
|
|
115
141
|
* 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"}
|
|
@@ -57,7 +57,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
57
57
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
58
58
|
};
|
|
59
59
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60
|
-
exports.
|
|
60
|
+
exports.DeprecatedColumn = void 0;
|
|
61
61
|
var React = __importStar(require("react"));
|
|
62
62
|
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
63
63
|
var is_prop_valid_1 = __importDefault(require("@emotion/is-prop-valid"));
|
|
@@ -92,15 +92,18 @@ var ColumnContainer = styled_1.default('div', {
|
|
|
92
92
|
}
|
|
93
93
|
return { flex: 1 };
|
|
94
94
|
});
|
|
95
|
-
var
|
|
96
|
-
__extends(
|
|
97
|
-
function
|
|
95
|
+
var DeprecatedColumn = /** @class */ (function (_super) {
|
|
96
|
+
__extends(DeprecatedColumn, _super);
|
|
97
|
+
function DeprecatedColumn() {
|
|
98
98
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
DeprecatedColumn.prototype.componentDidMount = function () {
|
|
101
|
+
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 ");
|
|
102
|
+
};
|
|
103
|
+
DeprecatedColumn.prototype.render = function () {
|
|
101
104
|
var _a = this.props, children = _a.children, spacing = _a.spacing, columns = _a.columns, width = _a.width, elemProps = __rest(_a, ["children", "spacing", "columns", "width"]);
|
|
102
105
|
return (React.createElement(ColumnContainer, __assign({ spacing: spacing, columns: columns, width: width }, elemProps), children));
|
|
103
106
|
};
|
|
104
|
-
return
|
|
107
|
+
return DeprecatedColumn;
|
|
105
108
|
}(React.Component));
|
|
106
|
-
exports.
|
|
109
|
+
exports.DeprecatedColumn = 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"}
|
|
@@ -59,6 +59,7 @@ var StyledFlex = styled_1.default(Box_1.Box)({
|
|
|
59
59
|
* `Flex` is built on top of `Box` and has access to all `BoxProps`.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
+
* ```tsx
|
|
62
63
|
* import { Flex, FlexProps } from '@workday/canvas-kit-react/layout';
|
|
63
64
|
*
|
|
64
65
|
* interface CardProps extends FlexProps {
|
|
@@ -72,7 +73,7 @@ var StyledFlex = styled_1.default(Box_1.Box)({
|
|
|
72
73
|
* <p>This card uses flexbox to set its layout.</p>
|
|
73
74
|
* </Flex>
|
|
74
75
|
* );
|
|
75
|
-
*
|
|
76
|
+
* ```
|
|
76
77
|
*/
|
|
77
78
|
exports.Flex = common_1.createComponent('div')({
|
|
78
79
|
displayName: 'Flex',
|
|
@@ -80,4 +81,7 @@ exports.Flex = common_1.createComponent('div')({
|
|
|
80
81
|
var children = _a.children, elemProps = __rest(_a, ["children"]);
|
|
81
82
|
return (React.createElement(StyledFlex, __assign({ as: Element, ref: ref }, elemProps), children));
|
|
82
83
|
},
|
|
84
|
+
subComponents: {
|
|
85
|
+
Item: Box_1.Box,
|
|
86
|
+
},
|
|
83
87
|
});
|
|
@@ -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
|