@workday/canvas-kit-react 15.0.0-alpha.1283-next.0 → 15.0.0-alpha.1287-next.0
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/dist/commonjs/action-bar/lib/ActionBarList.js +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.js +1 -1
- package/dist/commonjs/avatar/lib/Avatar.js +20 -20
- package/dist/commonjs/badge/lib/CountBadge.js +6 -6
- package/dist/commonjs/banner/lib/Banner.js +5 -5
- package/dist/commonjs/banner/lib/BannerActionText.js +2 -2
- package/dist/commonjs/banner/lib/BannerIcon.js +1 -1
- package/dist/commonjs/banner/lib/BannerLabel.js +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.js +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.js +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsLink.js +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.js +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.js +2 -2
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.js +1 -1
- package/dist/commonjs/button/lib/BaseButton.js +21 -21
- package/dist/commonjs/button/lib/DeleteButton.js +1 -1
- package/dist/commonjs/button/lib/ExternalHyperlink.js +1 -1
- package/dist/commonjs/button/lib/Hyperlink.js +4 -4
- package/dist/commonjs/button/lib/PrimaryButton.js +2 -2
- package/dist/commonjs/button/lib/SecondaryButton.js +2 -2
- package/dist/commonjs/button/lib/TertiaryButton.js +17 -17
- package/dist/commonjs/button/lib/ToolbarDropdownButton.js +3 -3
- package/dist/commonjs/button/lib/ToolbarIconButton.js +1 -1
- package/dist/commonjs/card/lib/Card.js +3 -3
- package/dist/commonjs/card/lib/CardBody.js +1 -1
- package/dist/commonjs/card/lib/CardHeading.js +1 -1
- package/dist/commonjs/checkbox/lib/CheckBackground.js +3 -3
- package/dist/commonjs/checkbox/lib/CheckboxCheck.js +5 -5
- package/dist/commonjs/checkbox/lib/CheckboxContainer.js +1 -1
- package/dist/commonjs/checkbox/lib/CheckboxInput.js +5 -5
- package/dist/commonjs/checkbox/lib/CheckboxRipple.js +1 -1
- package/dist/commonjs/collection/lib/ListBox.js +3 -3
- package/dist/commonjs/color-picker/lib/ColorInput.js +3 -3
- package/dist/commonjs/color-picker/lib/ColorPreview.js +1 -1
- package/dist/commonjs/color-picker/lib/parts/ColorSwatch.js +2 -2
- package/dist/commonjs/combobox/lib/ComboboxMenuList.js +1 -1
- package/dist/commonjs/common/lib/AccessibleHide.js +1 -1
- package/dist/commonjs/common/lib/CanvasProvider.js +1 -1
- package/dist/commonjs/expandable/lib/Expandable.js +1 -1
- package/dist/commonjs/expandable/lib/ExpandableAvatar.js +1 -1
- package/dist/commonjs/expandable/lib/ExpandableContent.js +1 -1
- package/dist/commonjs/expandable/lib/ExpandableIcon.js +10 -10
- package/dist/commonjs/expandable/lib/ExpandableTarget.js +1 -1
- package/dist/commonjs/expandable/lib/ExpandableTitle.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldContainer.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldField.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldGroupLabel.js +5 -5
- package/dist/commonjs/form-field/lib/FormFieldGroupList.js +3 -3
- package/dist/commonjs/form-field/lib/FormFieldHint.js +3 -3
- package/dist/commonjs/form-field/lib/FormFieldLabel.js +6 -6
- package/dist/commonjs/form-field/lib/formFieldStencil.js +8 -8
- package/dist/commonjs/icon/lib/AccentIcon.js +2 -2
- package/dist/commonjs/icon/lib/AppletIcon.js +1 -1
- package/dist/commonjs/icon/lib/Graphic.js +4 -4
- package/dist/commonjs/icon/lib/Svg.js +3 -3
- package/dist/commonjs/icon/lib/SystemIcon.js +1 -1
- package/dist/commonjs/icon/lib/SystemIconCircle.js +1 -1
- package/dist/commonjs/layout/lib/Box.d.ts +1 -0
- package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Box.js +2 -0
- package/dist/commonjs/layout/lib/utils/background.d.ts +25 -8
- package/dist/commonjs/layout/lib/utils/background.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/background.js +3 -0
- package/dist/commonjs/layout/lib/utils/border/color.d.ts +12 -1
- package/dist/commonjs/layout/lib/utils/border/color.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/color.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/index.d.ts +3 -0
- package/dist/commonjs/layout/lib/utils/border/index.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/index.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts +24 -6
- package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/lineStyle.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/radius.d.ts +15 -6
- package/dist/commonjs/layout/lib/utils/border/radius.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/radius.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts +22 -8
- package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/shorthand.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/width.d.ts +18 -4
- package/dist/commonjs/layout/lib/utils/border/width.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/width.js +2 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts +4 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/buildStyleFns.js +9 -0
- package/dist/commonjs/layout/lib/utils/color.d.ts +13 -4
- package/dist/commonjs/layout/lib/utils/color.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/color.js +3 -0
- package/dist/commonjs/layout/lib/utils/depth.d.ts +11 -3
- package/dist/commonjs/layout/lib/utils/depth.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/depth.js +3 -0
- package/dist/commonjs/layout/lib/utils/flex.d.ts +32 -11
- package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flex.js +3 -0
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts +27 -8
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flexItem.js +3 -0
- package/dist/commonjs/layout/lib/utils/grid.d.ts +56 -19
- package/dist/commonjs/layout/lib/utils/grid.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/grid.js +3 -0
- package/dist/commonjs/layout/lib/utils/gridItem.d.ts +36 -11
- package/dist/commonjs/layout/lib/utils/gridItem.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/gridItem.js +3 -0
- package/dist/commonjs/layout/lib/utils/layout.d.ts +36 -13
- package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/layout.js +3 -0
- package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts +1 -0
- package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/mergeStyles.js +1 -0
- package/dist/commonjs/layout/lib/utils/other.d.ts +106 -34
- package/dist/commonjs/layout/lib/utils/other.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/other.js +3 -0
- package/dist/commonjs/layout/lib/utils/position.d.ts +24 -9
- package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/position.js +3 -0
- package/dist/commonjs/layout/lib/utils/space.d.ts +42 -19
- package/dist/commonjs/layout/lib/utils/space.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/space.js +3 -0
- package/dist/commonjs/layout/lib/utils/styleProps.d.ts +2 -0
- package/dist/commonjs/layout/lib/utils/styleProps.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/systemProps.d.ts +17 -0
- package/dist/commonjs/layout/lib/utils/systemProps.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/text.d.ts +45 -14
- package/dist/commonjs/layout/lib/utils/text.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/text.js +3 -0
- package/dist/commonjs/loading-dots/lib/LoadingDots.js +3 -3
- package/dist/commonjs/menu/lib/MenuCard.js +1 -1
- package/dist/commonjs/menu/lib/MenuDivider.js +1 -1
- package/dist/commonjs/menu/lib/MenuGroup.js +1 -1
- package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuItem.js +1 -1
- package/dist/commonjs/menu/lib/MenuList.js +3 -3
- package/dist/commonjs/modal/lib/ModalBody.js +1 -1
- package/dist/commonjs/modal/lib/ModalCard.js +1 -1
- package/dist/commonjs/modal/lib/ModalHeading.js +1 -1
- package/dist/commonjs/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/commonjs/modal/lib/ModalOverlay.js +2 -2
- package/dist/commonjs/pagination/lib/Pagination/AdditionalDetails.js +2 -2
- package/dist/commonjs/pagination/lib/Pagination/Controls.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Form.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/Label.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/GoTo/TextInput.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Nav.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageButton.js +2 -2
- package/dist/commonjs/pagination/lib/Pagination/PageList.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Pagination.js +1 -1
- package/dist/commonjs/pagination/lib/Pagination/common/List.js +2 -2
- package/dist/commonjs/popup/lib/PopupBody.js +1 -1
- package/dist/commonjs/popup/lib/PopupCard.js +2 -2
- package/dist/commonjs/popup/lib/PopupCloseIcon.js +1 -1
- package/dist/commonjs/popup/lib/PopupHeading.js +1 -1
- package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.js +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlButton.js +4 -4
- package/dist/commonjs/select/lib/SelectCard.js +1 -1
- package/dist/commonjs/select/lib/SelectInput.js +3 -3
- package/dist/commonjs/skeleton/lib/Skeleton.js +2 -2
- package/dist/commonjs/skeleton/lib/parts/SkeletonHeader.js +1 -1
- package/dist/commonjs/skeleton/lib/parts/SkeletonShape.js +1 -1
- package/dist/commonjs/skeleton/lib/parts/SkeletonText.js +1 -1
- package/dist/commonjs/switch/lib/Switch.js +7 -7
- package/dist/commonjs/table/lib/BaseTable.js +1 -1
- package/dist/commonjs/table/lib/Table.js +7 -7
- package/dist/commonjs/table/lib/parts/BaseTableBody.js +1 -1
- package/dist/commonjs/table/lib/parts/BaseTableCaption.js +1 -1
- package/dist/commonjs/table/lib/parts/BaseTableCell.js +1 -1
- package/dist/commonjs/table/lib/parts/BaseTableHead.js +1 -1
- package/dist/commonjs/table/lib/parts/BaseTableHeader.js +1 -1
- package/dist/commonjs/table/lib/parts/css-grid-table/TableRow.js +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.js +1 -1
- package/dist/commonjs/tabs/lib/TabsList.js +8 -8
- package/dist/commonjs/tabs/lib/TabsOverflowButton.js +1 -1
- package/dist/commonjs/text/lib/LabelText.js +6 -6
- package/dist/commonjs/text/lib/Text.js +16 -16
- package/dist/commonjs/text/lib/TypeLevelComponents.js +4 -4
- package/dist/commonjs/text-area/lib/TextArea.js +5 -5
- package/dist/commonjs/text-input/lib/InputGroup.js +6 -6
- package/dist/commonjs/text-input/lib/TextInput.js +5 -5
- package/dist/commonjs/toast/lib/Toast.js +1 -1
- package/dist/commonjs/toast/lib/ToastBody.js +1 -1
- package/dist/commonjs/toast/lib/ToastCloseIcon.js +1 -1
- package/dist/commonjs/toast/lib/ToastIcon.js +1 -1
- package/dist/commonjs/toast/lib/ToastMessage.js +1 -1
- package/dist/commonjs/tooltip/lib/TooltipContainer.js +2 -2
- package/dist/commonjs/version/lib/version.js +1 -1
- package/dist/es6/action-bar/lib/ActionBarList.js +1 -1
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.js +1 -1
- package/dist/es6/avatar/lib/Avatar.js +20 -20
- package/dist/es6/badge/lib/CountBadge.js +6 -6
- package/dist/es6/banner/lib/Banner.js +5 -5
- package/dist/es6/banner/lib/BannerActionText.js +2 -2
- package/dist/es6/banner/lib/BannerIcon.js +1 -1
- package/dist/es6/banner/lib/BannerLabel.js +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.js +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.js +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsLink.js +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.js +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.js +2 -2
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.js +1 -1
- package/dist/es6/button/lib/BaseButton.js +21 -21
- package/dist/es6/button/lib/DeleteButton.js +1 -1
- package/dist/es6/button/lib/ExternalHyperlink.js +1 -1
- package/dist/es6/button/lib/Hyperlink.js +4 -4
- package/dist/es6/button/lib/PrimaryButton.js +2 -2
- package/dist/es6/button/lib/SecondaryButton.js +2 -2
- package/dist/es6/button/lib/TertiaryButton.js +17 -17
- package/dist/es6/button/lib/ToolbarDropdownButton.js +3 -3
- package/dist/es6/button/lib/ToolbarIconButton.js +1 -1
- package/dist/es6/card/lib/Card.js +3 -3
- package/dist/es6/card/lib/CardBody.js +1 -1
- package/dist/es6/card/lib/CardHeading.js +1 -1
- package/dist/es6/checkbox/lib/CheckBackground.js +3 -3
- package/dist/es6/checkbox/lib/CheckboxCheck.js +5 -5
- package/dist/es6/checkbox/lib/CheckboxContainer.js +1 -1
- package/dist/es6/checkbox/lib/CheckboxInput.js +5 -5
- package/dist/es6/checkbox/lib/CheckboxRipple.js +1 -1
- package/dist/es6/collection/lib/ListBox.js +3 -3
- package/dist/es6/color-picker/lib/ColorInput.js +3 -3
- package/dist/es6/color-picker/lib/ColorPreview.js +1 -1
- package/dist/es6/color-picker/lib/parts/ColorSwatch.js +2 -2
- package/dist/es6/combobox/lib/ComboboxMenuList.js +1 -1
- package/dist/es6/common/lib/AccessibleHide.js +1 -1
- package/dist/es6/common/lib/CanvasProvider.js +1 -1
- package/dist/es6/expandable/lib/Expandable.js +1 -1
- package/dist/es6/expandable/lib/ExpandableAvatar.js +1 -1
- package/dist/es6/expandable/lib/ExpandableContent.js +1 -1
- package/dist/es6/expandable/lib/ExpandableIcon.js +10 -10
- package/dist/es6/expandable/lib/ExpandableTarget.js +1 -1
- package/dist/es6/expandable/lib/ExpandableTitle.js +1 -1
- package/dist/es6/form-field/lib/FormFieldContainer.js +1 -1
- package/dist/es6/form-field/lib/FormFieldField.js +1 -1
- package/dist/es6/form-field/lib/FormFieldGroupLabel.js +5 -5
- package/dist/es6/form-field/lib/FormFieldGroupList.js +3 -3
- package/dist/es6/form-field/lib/FormFieldHint.js +3 -3
- package/dist/es6/form-field/lib/FormFieldLabel.js +6 -6
- package/dist/es6/form-field/lib/formFieldStencil.js +8 -8
- package/dist/es6/icon/lib/AccentIcon.js +2 -2
- package/dist/es6/icon/lib/AppletIcon.js +1 -1
- package/dist/es6/icon/lib/Graphic.js +4 -4
- package/dist/es6/icon/lib/Svg.js +3 -3
- package/dist/es6/icon/lib/SystemIcon.js +1 -1
- package/dist/es6/icon/lib/SystemIconCircle.js +1 -1
- package/dist/es6/layout/lib/Box.d.ts +1 -0
- package/dist/es6/layout/lib/Box.d.ts.map +1 -1
- package/dist/es6/layout/lib/Box.js +2 -0
- package/dist/es6/layout/lib/utils/background.d.ts +25 -8
- package/dist/es6/layout/lib/utils/background.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/background.js +3 -0
- package/dist/es6/layout/lib/utils/border/color.d.ts +12 -1
- package/dist/es6/layout/lib/utils/border/color.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/color.js +2 -0
- package/dist/es6/layout/lib/utils/border/index.d.ts +3 -0
- package/dist/es6/layout/lib/utils/border/index.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/index.js +2 -0
- package/dist/es6/layout/lib/utils/border/lineStyle.d.ts +24 -6
- package/dist/es6/layout/lib/utils/border/lineStyle.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/lineStyle.js +2 -0
- package/dist/es6/layout/lib/utils/border/radius.d.ts +15 -6
- package/dist/es6/layout/lib/utils/border/radius.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/radius.js +2 -0
- package/dist/es6/layout/lib/utils/border/shorthand.d.ts +22 -8
- package/dist/es6/layout/lib/utils/border/shorthand.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/shorthand.js +2 -0
- package/dist/es6/layout/lib/utils/border/width.d.ts +18 -4
- package/dist/es6/layout/lib/utils/border/width.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/width.js +2 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.d.ts +4 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/buildStyleFns.js +9 -0
- package/dist/es6/layout/lib/utils/color.d.ts +13 -4
- package/dist/es6/layout/lib/utils/color.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/color.js +3 -0
- package/dist/es6/layout/lib/utils/depth.d.ts +11 -3
- package/dist/es6/layout/lib/utils/depth.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/depth.js +3 -0
- package/dist/es6/layout/lib/utils/flex.d.ts +32 -11
- package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flex.js +3 -0
- package/dist/es6/layout/lib/utils/flexItem.d.ts +27 -8
- package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flexItem.js +3 -0
- package/dist/es6/layout/lib/utils/grid.d.ts +56 -19
- package/dist/es6/layout/lib/utils/grid.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/grid.js +3 -0
- package/dist/es6/layout/lib/utils/gridItem.d.ts +36 -11
- package/dist/es6/layout/lib/utils/gridItem.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/gridItem.js +3 -0
- package/dist/es6/layout/lib/utils/layout.d.ts +36 -13
- package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/layout.js +3 -0
- package/dist/es6/layout/lib/utils/mergeStyles.d.ts +1 -0
- package/dist/es6/layout/lib/utils/mergeStyles.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/mergeStyles.js +1 -0
- package/dist/es6/layout/lib/utils/other.d.ts +106 -34
- package/dist/es6/layout/lib/utils/other.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/other.js +3 -0
- package/dist/es6/layout/lib/utils/position.d.ts +24 -9
- package/dist/es6/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/position.js +3 -0
- package/dist/es6/layout/lib/utils/space.d.ts +42 -19
- package/dist/es6/layout/lib/utils/space.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/space.js +3 -0
- package/dist/es6/layout/lib/utils/styleProps.d.ts +2 -0
- package/dist/es6/layout/lib/utils/styleProps.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/systemProps.d.ts +17 -0
- package/dist/es6/layout/lib/utils/systemProps.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/text.d.ts +45 -14
- package/dist/es6/layout/lib/utils/text.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/text.js +3 -0
- package/dist/es6/loading-dots/lib/LoadingDots.js +3 -3
- package/dist/es6/menu/lib/MenuCard.js +1 -1
- package/dist/es6/menu/lib/MenuDivider.js +1 -1
- package/dist/es6/menu/lib/MenuGroup.js +1 -1
- package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuItem.js +1 -1
- package/dist/es6/menu/lib/MenuList.js +3 -3
- package/dist/es6/modal/lib/ModalBody.js +1 -1
- package/dist/es6/modal/lib/ModalCard.js +1 -1
- package/dist/es6/modal/lib/ModalHeading.js +1 -1
- package/dist/es6/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/es6/modal/lib/ModalOverlay.js +2 -2
- package/dist/es6/pagination/lib/Pagination/AdditionalDetails.js +2 -2
- package/dist/es6/pagination/lib/Pagination/Controls.js +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/Form.js +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/Label.js +1 -1
- package/dist/es6/pagination/lib/Pagination/GoTo/TextInput.js +1 -1
- package/dist/es6/pagination/lib/Pagination/Nav.js +1 -1
- package/dist/es6/pagination/lib/Pagination/PageButton.js +2 -2
- package/dist/es6/pagination/lib/Pagination/PageList.js +1 -1
- package/dist/es6/pagination/lib/Pagination/Pagination.js +1 -1
- package/dist/es6/pagination/lib/Pagination/common/List.js +2 -2
- package/dist/es6/popup/lib/PopupBody.js +1 -1
- package/dist/es6/popup/lib/PopupCard.js +2 -2
- package/dist/es6/popup/lib/PopupCloseIcon.js +1 -1
- package/dist/es6/popup/lib/PopupHeading.js +1 -1
- package/dist/es6/popup/lib/hooks/useDisableBodyScroll.js +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControlButton.js +4 -4
- package/dist/es6/select/lib/SelectCard.js +1 -1
- package/dist/es6/select/lib/SelectInput.js +3 -3
- package/dist/es6/skeleton/lib/Skeleton.js +2 -2
- package/dist/es6/skeleton/lib/parts/SkeletonHeader.js +1 -1
- package/dist/es6/skeleton/lib/parts/SkeletonShape.js +1 -1
- package/dist/es6/skeleton/lib/parts/SkeletonText.js +1 -1
- package/dist/es6/switch/lib/Switch.js +7 -7
- package/dist/es6/table/lib/BaseTable.js +1 -1
- package/dist/es6/table/lib/Table.js +7 -7
- package/dist/es6/table/lib/parts/BaseTableBody.js +1 -1
- package/dist/es6/table/lib/parts/BaseTableCaption.js +1 -1
- package/dist/es6/table/lib/parts/BaseTableCell.js +1 -1
- package/dist/es6/table/lib/parts/BaseTableHead.js +1 -1
- package/dist/es6/table/lib/parts/BaseTableHeader.js +1 -1
- package/dist/es6/table/lib/parts/css-grid-table/TableRow.js +1 -1
- package/dist/es6/tabs/lib/TabsItem.js +1 -1
- package/dist/es6/tabs/lib/TabsList.js +8 -8
- package/dist/es6/tabs/lib/TabsOverflowButton.js +1 -1
- package/dist/es6/text/lib/LabelText.js +6 -6
- package/dist/es6/text/lib/Text.js +16 -16
- package/dist/es6/text/lib/TypeLevelComponents.js +4 -4
- package/dist/es6/text-area/lib/TextArea.js +5 -5
- package/dist/es6/text-input/lib/InputGroup.js +6 -6
- package/dist/es6/text-input/lib/TextInput.js +5 -5
- package/dist/es6/toast/lib/Toast.js +1 -1
- package/dist/es6/toast/lib/ToastBody.js +1 -1
- package/dist/es6/toast/lib/ToastCloseIcon.js +1 -1
- package/dist/es6/toast/lib/ToastIcon.js +1 -1
- package/dist/es6/toast/lib/ToastMessage.js +1 -1
- package/dist/es6/tooltip/lib/TooltipContainer.js +2 -2
- package/dist/es6/version/lib/version.js +1 -1
- package/layout/lib/Box.tsx +2 -0
- package/layout/lib/utils/background.ts +25 -8
- package/layout/lib/utils/border/color.ts +12 -1
- package/layout/lib/utils/border/index.ts +3 -0
- package/layout/lib/utils/border/lineStyle.ts +24 -6
- package/layout/lib/utils/border/radius.ts +15 -6
- package/layout/lib/utils/border/shorthand.ts +22 -8
- package/layout/lib/utils/border/width.ts +18 -4
- package/layout/lib/utils/buildStyleFns.ts +11 -0
- package/layout/lib/utils/color.ts +13 -4
- package/layout/lib/utils/depth.ts +11 -3
- package/layout/lib/utils/flex.ts +32 -11
- package/layout/lib/utils/flexItem.ts +27 -8
- package/layout/lib/utils/grid.ts +56 -19
- package/layout/lib/utils/gridItem.ts +36 -11
- package/layout/lib/utils/layout.ts +36 -13
- package/layout/lib/utils/mergeStyles.ts +1 -0
- package/layout/lib/utils/other.ts +106 -34
- package/layout/lib/utils/position.ts +24 -9
- package/layout/lib/utils/space.ts +42 -19
- package/layout/lib/utils/styleProps.ts +2 -0
- package/layout/lib/utils/systemProps.ts +17 -0
- package/layout/lib/utils/text.ts +45 -14
- package/menu/lib/MenuItem.tsx +3 -5
- package/package.json +4 -4
- package/text-input/lib/TextInput.tsx +1 -1
|
@@ -2,36 +2,49 @@ import {Property} from 'csstype';
|
|
|
2
2
|
|
|
3
3
|
import {buildStyleFns, StyleFnConfig} from '../buildStyleFns';
|
|
4
4
|
|
|
5
|
-
/** style props to set CSS border properties
|
|
5
|
+
/** style props to set CSS border properties
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
6
8
|
export type BorderShorthandStyleProps = {
|
|
7
|
-
/** sets [CSS border property](https://developer.mozilla.org/en-US/docs/Web/CSS/border)
|
|
9
|
+
/** sets [CSS border property](https://developer.mozilla.org/en-US/docs/Web/CSS/border)
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
8
12
|
border?: Property.Border;
|
|
9
|
-
/** sets [CSS border-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top)
|
|
13
|
+
/** sets [CSS border-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top)
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
10
16
|
borderTop?: Property.BorderTop;
|
|
11
17
|
/**
|
|
12
18
|
* - sets [CSS border-right property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right)
|
|
13
19
|
* - no bidirectional support
|
|
14
|
-
*
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
15
22
|
borderRight?: Property.BorderRight;
|
|
16
|
-
/** sets [CSS border-bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom)
|
|
23
|
+
/** sets [CSS border-bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom)
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
17
26
|
borderBottom?: Property.BorderBottom;
|
|
18
27
|
/**
|
|
19
28
|
* - sets [CSS border-left property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-left)
|
|
20
29
|
* - no bidirectional support
|
|
21
|
-
*
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
22
32
|
borderLeft?: Property.BorderLeft;
|
|
23
33
|
/**
|
|
24
34
|
* - sets [CSS border-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-start)
|
|
25
35
|
* - bidirectional support
|
|
26
|
-
*
|
|
36
|
+
* @deprecated
|
|
37
|
+
*/
|
|
27
38
|
borderInlineStart?: Property.BorderInlineStart;
|
|
28
39
|
/**
|
|
29
40
|
* - sets [CSS border-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end)
|
|
30
41
|
* - bidirectional support
|
|
31
|
-
*
|
|
42
|
+
* @deprecated
|
|
43
|
+
*/
|
|
32
44
|
borderInlineEnd?: Property.BorderInlineEnd;
|
|
33
45
|
};
|
|
34
46
|
|
|
47
|
+
/** @deprecated */
|
|
35
48
|
export const borderShorthandStyleFnConfigs: StyleFnConfig[] = [
|
|
36
49
|
{
|
|
37
50
|
name: 'border',
|
|
@@ -70,4 +83,5 @@ export const borderShorthandStyleFnConfigs: StyleFnConfig[] = [
|
|
|
70
83
|
},
|
|
71
84
|
];
|
|
72
85
|
|
|
86
|
+
/** @deprecated */
|
|
73
87
|
export const borderShorthandFns = buildStyleFns(borderShorthandStyleFnConfigs);
|
|
@@ -2,36 +2,49 @@ import {Property} from 'csstype';
|
|
|
2
2
|
|
|
3
3
|
import {buildStyleFns, StyleFnConfig} from '../buildStyleFns';
|
|
4
4
|
|
|
5
|
-
/** style props to set CSS border width properties
|
|
5
|
+
/** style props to set CSS border width properties
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
6
8
|
export type BorderWidthStyleProps = {
|
|
7
|
-
/** sets [CSS border-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-width)
|
|
9
|
+
/** sets [CSS border-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-width)
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
8
12
|
borderWidth?: Property.BorderWidth | number;
|
|
9
|
-
/** sets [CSS border-top-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-width)
|
|
13
|
+
/** sets [CSS border-top-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-width)
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
10
16
|
borderTopWidth?: Property.BorderTopWidth | number;
|
|
11
17
|
/**
|
|
12
18
|
* - sets [CSS border-right-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-width)
|
|
13
19
|
* - no bidirectional support
|
|
20
|
+
* @deprecated
|
|
14
21
|
* */
|
|
15
22
|
borderRightWidth?: Property.BorderRightWidth | number;
|
|
16
|
-
/** sets [CSS border-bottom-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width)
|
|
23
|
+
/** sets [CSS border-bottom-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width)
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
17
26
|
borderBottomWidth?: Property.BorderBottomWidth | number;
|
|
18
27
|
/**
|
|
19
28
|
* - sets [CSS border-left-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-width)
|
|
20
29
|
* - no bidirectional support
|
|
30
|
+
* @deprecated
|
|
21
31
|
* */
|
|
22
32
|
borderLeftWidth?: Property.BorderLeftWidth | number;
|
|
23
33
|
/**
|
|
24
34
|
* - sets [CSS border-inline-start-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-start-width)
|
|
25
35
|
* - bidirectional support
|
|
36
|
+
* @deprecated
|
|
26
37
|
* */
|
|
27
38
|
borderInlineStartWidth?: Property.BorderInlineStartWidth | number;
|
|
28
39
|
/**
|
|
29
40
|
* - sets [CSS border-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end)
|
|
30
41
|
* - bidirectional support
|
|
42
|
+
* @deprecated
|
|
31
43
|
* */
|
|
32
44
|
borderInlineEndWidth?: Property.BorderInlineEndWidth | number;
|
|
33
45
|
};
|
|
34
46
|
|
|
47
|
+
/** @deprecated */
|
|
35
48
|
export const borderWidthStyleFnConfigs: StyleFnConfig[] = [
|
|
36
49
|
{
|
|
37
50
|
name: 'borderWidth',
|
|
@@ -70,4 +83,5 @@ export const borderWidthStyleFnConfigs: StyleFnConfig[] = [
|
|
|
70
83
|
},
|
|
71
84
|
];
|
|
72
85
|
|
|
86
|
+
/** @deprecated */
|
|
73
87
|
export const borderWidthFns = buildStyleFns(borderWidthStyleFnConfigs);
|
|
@@ -9,32 +9,39 @@ import {wrapProperty} from '@workday/canvas-kit-styling';
|
|
|
9
9
|
|
|
10
10
|
import {CanvasSystemPropValues, SystemPropNames, SystemPropValues} from './systemProps';
|
|
11
11
|
|
|
12
|
+
/** @deprecated */
|
|
12
13
|
export type StyleFnConfig = {
|
|
13
14
|
name: string;
|
|
14
15
|
properties: string[];
|
|
15
16
|
system: SystemPropNames | 'none';
|
|
16
17
|
};
|
|
17
18
|
|
|
19
|
+
/** @deprecated */
|
|
18
20
|
export type StyleFns = {
|
|
19
21
|
[key: string]: (value: unknown) => {};
|
|
20
22
|
};
|
|
21
23
|
|
|
24
|
+
/** @deprecated */
|
|
22
25
|
const getColor = (value: SystemPropValues['color']) => {
|
|
23
26
|
return colorTokens[value] || wrapProperty(value);
|
|
24
27
|
};
|
|
25
28
|
|
|
29
|
+
/** @deprecated */
|
|
26
30
|
const getDepth = (value: SystemPropValues['depth']) => {
|
|
27
31
|
return depthTokens[value];
|
|
28
32
|
};
|
|
29
33
|
|
|
34
|
+
/** @deprecated */
|
|
30
35
|
const getShape = (value: SystemPropValues['shape']) => {
|
|
31
36
|
return borderRadiusTokens[value as CanvasSystemPropValues['shape']] || wrapProperty(value);
|
|
32
37
|
};
|
|
33
38
|
|
|
39
|
+
/** @deprecated */
|
|
34
40
|
const getSpace = (value: SystemPropValues['space']) => {
|
|
35
41
|
return spaceTokens[value as CanvasSystemPropValues['space']] || wrapProperty(value);
|
|
36
42
|
};
|
|
37
43
|
|
|
44
|
+
/** @deprecated */
|
|
38
45
|
const getFont = (value: SystemPropValues['font']) => {
|
|
39
46
|
return (
|
|
40
47
|
typeTokens.properties.fontFamilies[value as CanvasSystemPropValues['font']] ||
|
|
@@ -42,6 +49,7 @@ const getFont = (value: SystemPropValues['font']) => {
|
|
|
42
49
|
);
|
|
43
50
|
};
|
|
44
51
|
|
|
52
|
+
/** @deprecated */
|
|
45
53
|
const getFontSize = (value: SystemPropValues['fontSize'] | string) => {
|
|
46
54
|
return (
|
|
47
55
|
typeTokens.properties.fontSizes[value as CanvasSystemPropValues['fontSize']] ||
|
|
@@ -49,6 +57,7 @@ const getFontSize = (value: SystemPropValues['fontSize'] | string) => {
|
|
|
49
57
|
);
|
|
50
58
|
};
|
|
51
59
|
|
|
60
|
+
/** @deprecated */
|
|
52
61
|
const getFontWeight = (value: SystemPropValues['fontWeight'] | string) => {
|
|
53
62
|
return (
|
|
54
63
|
typeTokens.properties.fontWeights[value as CanvasSystemPropValues['fontWeight']] ||
|
|
@@ -56,6 +65,7 @@ const getFontWeight = (value: SystemPropValues['fontWeight'] | string) => {
|
|
|
56
65
|
);
|
|
57
66
|
};
|
|
58
67
|
|
|
68
|
+
/** @deprecated */
|
|
59
69
|
export function buildStyleFns(styleFnConfigs: StyleFnConfig[]): StyleFns {
|
|
60
70
|
return styleFnConfigs.reduce((styleFns = {}, styleFnConfig) => {
|
|
61
71
|
const styleFn = (value: unknown) => {
|
|
@@ -110,6 +120,7 @@ export function buildStyleFns(styleFnConfigs: StyleFnConfig[]): StyleFns {
|
|
|
110
120
|
}, {});
|
|
111
121
|
}
|
|
112
122
|
|
|
123
|
+
/** @deprecated */
|
|
113
124
|
export function buildStylePropFn<P extends {}>(styleFns: StyleFns) {
|
|
114
125
|
return (props: P) => {
|
|
115
126
|
let styles = {};
|
|
@@ -3,22 +3,29 @@ import {Property} from 'csstype';
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
import {SystemPropValues} from './systemProps';
|
|
5
5
|
|
|
6
|
-
/** style props to set CSS color properties
|
|
6
|
+
/** style props to set CSS color properties
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
7
9
|
export type ColorStyleProps = {
|
|
8
10
|
/**
|
|
9
11
|
* - sets [CSS background-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)
|
|
10
12
|
* - system tokens: `color`
|
|
11
|
-
*
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
12
15
|
backgroundColor?: SystemPropValues['color'];
|
|
13
16
|
/**
|
|
14
17
|
* - sets [CSS color property](https://developer.mozilla.org/en-US/docs/Web/CSS/color)
|
|
15
18
|
* - system tokens: `color`
|
|
16
|
-
*
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
17
21
|
color?: SystemPropValues['color'];
|
|
18
|
-
/** sets [CSS opacity property](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
22
|
+
/** sets [CSS opacity property](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
19
25
|
opacity?: Property.Opacity;
|
|
20
26
|
};
|
|
21
27
|
|
|
28
|
+
/** @deprecated */
|
|
22
29
|
export const colorStyleFnConfigs: StyleFnConfig[] = [
|
|
23
30
|
{
|
|
24
31
|
name: 'backgroundColor',
|
|
@@ -37,6 +44,7 @@ export const colorStyleFnConfigs: StyleFnConfig[] = [
|
|
|
37
44
|
},
|
|
38
45
|
];
|
|
39
46
|
|
|
47
|
+
/** @deprecated */
|
|
40
48
|
export const colorFns = buildStyleFns(colorStyleFnConfigs);
|
|
41
49
|
/**
|
|
42
50
|
* A style prop function that takes component props and returns color styles from Canvas token values.
|
|
@@ -48,5 +56,6 @@ export const colorFns = buildStyleFns(colorStyleFnConfigs);
|
|
|
48
56
|
* <Box color="frenchVanilla100" opacity={0.6}>Hello, colors!</Box>
|
|
49
57
|
* );
|
|
50
58
|
* ```
|
|
59
|
+
* @deprecated
|
|
51
60
|
*/
|
|
52
61
|
export const color = buildStylePropFn<ColorStyleProps>(colorFns);
|
|
@@ -2,17 +2,23 @@ import {Property} from 'csstype';
|
|
|
2
2
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
3
3
|
import {SystemPropValues} from './systemProps';
|
|
4
4
|
|
|
5
|
-
/** style props to for depth styles
|
|
5
|
+
/** style props to for depth styles
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
6
8
|
export type DepthStyleProps = {
|
|
7
|
-
/** sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
9
|
+
/** sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
8
12
|
boxShadow?: Property.BoxShadow;
|
|
9
13
|
/**
|
|
10
14
|
* - sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
11
15
|
* - system tokens: `depth`
|
|
12
|
-
*
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
13
18
|
depth?: SystemPropValues['depth'];
|
|
14
19
|
};
|
|
15
20
|
|
|
21
|
+
/** @deprecated */
|
|
16
22
|
export const depthStyleFnConfigs: StyleFnConfig[] = [
|
|
17
23
|
{
|
|
18
24
|
name: 'boxShadow',
|
|
@@ -26,6 +32,7 @@ export const depthStyleFnConfigs: StyleFnConfig[] = [
|
|
|
26
32
|
},
|
|
27
33
|
];
|
|
28
34
|
|
|
35
|
+
/** @deprecated */
|
|
29
36
|
export const depthStyleFns = buildStyleFns(depthStyleFnConfigs);
|
|
30
37
|
/**
|
|
31
38
|
* A style prop function that takes component props and returns depth styles from Canvas token values.
|
|
@@ -37,5 +44,6 @@ export const depthStyleFns = buildStyleFns(depthStyleFnConfigs);
|
|
|
37
44
|
* <Box depth={3}>Hello, box shadows!</Box>
|
|
38
45
|
* );
|
|
39
46
|
* ```
|
|
47
|
+
* @deprecated
|
|
40
48
|
*/
|
|
41
49
|
export const depth = buildStylePropFn<DepthStyleProps>(depthStyleFns);
|
package/layout/lib/utils/flex.ts
CHANGED
|
@@ -3,42 +3,61 @@ import {Property, Globals} from 'csstype';
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
import {SystemPropValues} from './systemProps';
|
|
5
5
|
|
|
6
|
-
/** style props to for CSS flexbox container properties
|
|
6
|
+
/** style props to for CSS flexbox container properties
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
7
9
|
export type FlexStyleProps = {
|
|
8
|
-
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
10
|
+
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
9
13
|
alignItems?: Property.AlignItems;
|
|
10
|
-
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
14
|
+
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
11
17
|
alignContent?: Property.AlignContent;
|
|
12
18
|
/**
|
|
13
19
|
* - sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
14
20
|
* - @default 'flex'
|
|
15
|
-
*
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
16
23
|
display?: 'flex' | 'inline-flex' | 'none' | Globals | (string & {});
|
|
17
|
-
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
24
|
+
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
18
27
|
justifyItems?: Property.JustifyItems;
|
|
19
|
-
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
28
|
+
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
20
31
|
justifyContent?: Property.JustifyContent;
|
|
21
|
-
/** sets [CSS flex-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)
|
|
32
|
+
/** sets [CSS flex-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
22
35
|
flexWrap?: Property.FlexWrap;
|
|
23
|
-
/** sets [CSS flex-direction property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction)
|
|
36
|
+
/** sets [CSS flex-direction property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction)
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
24
39
|
flexDirection?: Property.FlexDirection;
|
|
25
40
|
/**
|
|
26
41
|
* - sets [CSS gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/gap)
|
|
27
42
|
* - system tokens: `space`
|
|
28
|
-
*
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
29
45
|
gap?: SystemPropValues['space'];
|
|
30
46
|
/**
|
|
31
47
|
* - sets [CSS column-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
|
|
32
48
|
* - system tokens: `space`
|
|
33
|
-
*
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
34
51
|
columnGap?: SystemPropValues['space'];
|
|
35
52
|
/**
|
|
36
53
|
* - sets [CSS row-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
|
|
37
54
|
* - system tokens: `space`
|
|
38
|
-
*
|
|
55
|
+
* @deprecated
|
|
56
|
+
*/
|
|
39
57
|
rowGap?: SystemPropValues['space'];
|
|
40
58
|
};
|
|
41
59
|
|
|
60
|
+
/** @deprecated */
|
|
42
61
|
export const flexStyleFnConfigs: StyleFnConfig[] = [
|
|
43
62
|
{
|
|
44
63
|
name: 'alignContent',
|
|
@@ -92,6 +111,7 @@ export const flexStyleFnConfigs: StyleFnConfig[] = [
|
|
|
92
111
|
},
|
|
93
112
|
];
|
|
94
113
|
|
|
114
|
+
/** @deprecated */
|
|
95
115
|
export const flexStyleFns = buildStyleFns(flexStyleFnConfigs);
|
|
96
116
|
/**
|
|
97
117
|
* A style prop function that takes component props and returns flexbox styles.
|
|
@@ -105,5 +125,6 @@ export const flexStyleFns = buildStyleFns(flexStyleFnConfigs);
|
|
|
105
125
|
* </Flex>
|
|
106
126
|
* );
|
|
107
127
|
* ```
|
|
128
|
+
* @deprecated ⚠️ `flex` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs
|
|
108
129
|
*/
|
|
109
130
|
export const flex = buildStylePropFn<FlexStyleProps>(flexStyleFns);
|
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
import {Property} from 'csstype';
|
|
2
2
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
3
3
|
|
|
4
|
-
/** style props to for CSS flex item properties
|
|
4
|
+
/** style props to for CSS flex item properties
|
|
5
|
+
* @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
|
|
6
|
+
*/
|
|
5
7
|
export type FlexItemStyleProps = {
|
|
6
|
-
/** sets [CSS flex property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex)
|
|
8
|
+
/** sets [CSS flex property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex)
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
7
11
|
flex?: Property.Flex;
|
|
8
|
-
/** sets [CSS flex-grow property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow)
|
|
12
|
+
/** sets [CSS flex-grow property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow)
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
9
15
|
flexGrow?: Property.FlexGrow;
|
|
10
|
-
/** sets [CSS flex-shrink property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink)
|
|
16
|
+
/** sets [CSS flex-shrink property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink)
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
11
19
|
flexShrink?: Property.FlexShrink;
|
|
12
|
-
/** sets [CSS flex-basis property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis)
|
|
20
|
+
/** sets [CSS flex-basis property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis)
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
13
23
|
flexBasis?: Property.FlexBasis;
|
|
14
|
-
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
24
|
+
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
15
27
|
justifySelf?: Property.JustifySelf;
|
|
16
|
-
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
28
|
+
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
17
31
|
alignSelf?: Property.AlignSelf;
|
|
18
|
-
/** sets [CSS order property](https://developer.mozilla.org/en-US/docs/Web/CSS/order)
|
|
32
|
+
/** sets [CSS order property](https://developer.mozilla.org/en-US/docs/Web/CSS/order)
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
19
35
|
order?: Property.Order;
|
|
20
36
|
};
|
|
21
37
|
|
|
38
|
+
/** @deprecated */
|
|
22
39
|
export const flexItemStyleFnConfigs: StyleFnConfig[] = [
|
|
23
40
|
{
|
|
24
41
|
name: 'flex',
|
|
@@ -57,6 +74,7 @@ export const flexItemStyleFnConfigs: StyleFnConfig[] = [
|
|
|
57
74
|
},
|
|
58
75
|
];
|
|
59
76
|
|
|
77
|
+
/** @deprecated */
|
|
60
78
|
export const flexItemStyleFns = buildStyleFns(flexItemStyleFnConfigs);
|
|
61
79
|
/**
|
|
62
80
|
* A style prop function that takes component props and returns flexbox item styles.
|
|
@@ -70,5 +88,6 @@ export const flexItemStyleFns = buildStyleFns(flexItemStyleFnConfigs);
|
|
|
70
88
|
* </Box>
|
|
71
89
|
* );
|
|
72
90
|
* ```
|
|
91
|
+
* @deprecated
|
|
73
92
|
*/
|
|
74
93
|
export const flexItem = buildStylePropFn<FlexItemStyleProps>(flexItemStyleFns);
|
package/layout/lib/utils/grid.ts
CHANGED
|
@@ -3,58 +3,93 @@ import {Property, Globals} from 'csstype';
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
import {SystemPropValues} from './systemProps';
|
|
5
5
|
|
|
6
|
-
/** style props to for CSS grid container properties
|
|
6
|
+
/** style props to for CSS grid container properties
|
|
7
|
+
* @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
|
|
8
|
+
*/
|
|
7
9
|
export type GridStyleProps = {
|
|
8
|
-
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
10
|
+
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
9
13
|
alignItems?: Property.AlignItems;
|
|
10
|
-
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
14
|
+
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
11
17
|
alignContent?: Property.AlignContent;
|
|
12
18
|
/**
|
|
13
19
|
* - sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
14
20
|
* - @default 'grid'
|
|
15
|
-
*
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
16
23
|
display?: 'grid' | 'inline-grid' | 'none' | Globals | (string & {});
|
|
17
|
-
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
24
|
+
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
18
27
|
justifyItems?: Property.JustifyItems;
|
|
19
|
-
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
28
|
+
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
20
31
|
justifyContent?: Property.JustifyContent;
|
|
21
|
-
/** sets [CSS grid-template property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template)
|
|
32
|
+
/** sets [CSS grid-template property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template)
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
22
35
|
gridTemplate?: Property.GridTemplate;
|
|
23
|
-
/** sets [CSS grid-template-areas property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)
|
|
36
|
+
/** sets [CSS grid-template-areas property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
24
39
|
gridTemplateAreas?: Property.GridTemplateAreas;
|
|
25
|
-
/** sets [CSS grid-template-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)
|
|
40
|
+
/** sets [CSS grid-template-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
26
43
|
gridTemplateColumns?: Property.GridTemplateColumns;
|
|
27
|
-
/** sets [CSS grid-template-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)
|
|
44
|
+
/** sets [CSS grid-template-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
28
47
|
gridTemplateRows?: Property.GridTemplateRows;
|
|
29
48
|
/**
|
|
30
49
|
* - sets [CSS column-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
|
|
31
50
|
* - system tokens: `space`
|
|
32
|
-
*
|
|
51
|
+
* @deprecated
|
|
52
|
+
*/
|
|
33
53
|
gridColumnGap?: Property.GridColumnGap | SystemPropValues['space'];
|
|
34
54
|
/**
|
|
35
55
|
* - sets [CSS row-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
|
|
36
56
|
* - system tokens: `space`
|
|
37
|
-
*
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
38
59
|
gridRowGap?: Property.GridRowGap | SystemPropValues['space'];
|
|
39
60
|
/**
|
|
40
61
|
* - sets [CSS grid-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap)
|
|
41
62
|
* - system tokens: `space`
|
|
42
|
-
*
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
43
65
|
gridGap?: Property.GridGap | SystemPropValues['space'];
|
|
44
|
-
/** sets [CSS place-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-items)
|
|
66
|
+
/** sets [CSS place-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-items)
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
45
69
|
gridPlaceItems?: Property.PlaceItems;
|
|
46
|
-
/** sets [CSS grid-auto-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)
|
|
70
|
+
/** sets [CSS grid-auto-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
47
73
|
gridAutoColumns?: Property.GridAutoColumns;
|
|
48
|
-
/** sets [CSS grid-auto-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)
|
|
74
|
+
/** sets [CSS grid-auto-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)
|
|
75
|
+
* @deprecated
|
|
76
|
+
*/
|
|
49
77
|
gridAutoRows?: Property.GridAutoRows;
|
|
50
|
-
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
78
|
+
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
79
|
+
* @deprecated
|
|
80
|
+
*/
|
|
51
81
|
gridArea?: Property.GridArea;
|
|
52
|
-
/** sets [CSS grid-auto-flow property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)
|
|
82
|
+
/** sets [CSS grid-auto-flow property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)
|
|
83
|
+
* @deprecated
|
|
84
|
+
*/
|
|
53
85
|
gridAutoFlow?: Property.GridAutoFlow;
|
|
54
|
-
/** sets [CSS grid property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid)
|
|
86
|
+
/** sets [CSS grid property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid)
|
|
87
|
+
* @deprecated
|
|
88
|
+
*/
|
|
55
89
|
grid?: Property.Grid;
|
|
56
90
|
};
|
|
57
91
|
|
|
92
|
+
/** @deprecated */
|
|
58
93
|
export const gridStyleFnConfigs: StyleFnConfig[] = [
|
|
59
94
|
{
|
|
60
95
|
name: 'gridGap',
|
|
@@ -148,6 +183,7 @@ export const gridStyleFnConfigs: StyleFnConfig[] = [
|
|
|
148
183
|
},
|
|
149
184
|
];
|
|
150
185
|
|
|
186
|
+
/** @deprecated */
|
|
151
187
|
export const gridStyleFns = buildStyleFns(gridStyleFnConfigs);
|
|
152
188
|
/**
|
|
153
189
|
* A style prop function that takes component props and returns grid styles.
|
|
@@ -162,5 +198,6 @@ export const gridStyleFns = buildStyleFns(gridStyleFnConfigs);
|
|
|
162
198
|
* </Grid>
|
|
163
199
|
* );
|
|
164
200
|
* ```
|
|
201
|
+
* @deprecated
|
|
165
202
|
*/
|
|
166
203
|
export const grid = buildStylePropFn<GridStyleProps>(gridStyleFns);
|
|
@@ -2,30 +2,53 @@ import {Property} from 'csstype';
|
|
|
2
2
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
|
|
5
|
-
/** style props to for CSS grid item properties
|
|
5
|
+
/** style props to for CSS grid item properties
|
|
6
|
+
* @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
|
|
7
|
+
*/
|
|
6
8
|
export type GridItemStyleProps = {
|
|
7
|
-
/** sets [CSS grid-column-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start)
|
|
9
|
+
/** sets [CSS grid-column-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start)
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
8
12
|
gridColumnStart?: Property.GridColumnStart;
|
|
9
|
-
/** sets [CSS grid-column-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)
|
|
13
|
+
/** sets [CSS grid-column-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
10
16
|
gridColumnEnd?: Property.GridColumnEnd;
|
|
11
|
-
/** sets [CSS grid-row-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start)
|
|
17
|
+
/** sets [CSS grid-row-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start)
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
12
20
|
gridRowStart?: Property.GridRowStart;
|
|
13
|
-
/** sets [CSS grid-row-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)
|
|
21
|
+
/** sets [CSS grid-row-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
14
24
|
gridRowEnd?: Property.GridRowEnd;
|
|
15
|
-
/** sets [CSS grid-column property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)
|
|
25
|
+
/** sets [CSS grid-column property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
16
28
|
gridColumn?: Property.GridColumn;
|
|
17
|
-
/** sets [CSS grid-row property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)
|
|
29
|
+
/** sets [CSS grid-row property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
18
32
|
gridRow?: Property.GridRow;
|
|
19
|
-
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
33
|
+
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
20
36
|
gridArea?: Property.GridArea;
|
|
21
|
-
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
37
|
+
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
38
|
+
* @deprecated
|
|
39
|
+
*/
|
|
22
40
|
justifySelf?: Property.JustifySelf;
|
|
23
|
-
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
41
|
+
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
42
|
+
* @deprecated
|
|
43
|
+
*/
|
|
24
44
|
alignSelf?: Property.AlignSelf;
|
|
25
|
-
/** sets [CSS place-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-self)
|
|
45
|
+
/** sets [CSS place-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-self)
|
|
46
|
+
* @deprecated
|
|
47
|
+
*/
|
|
26
48
|
placeSelf?: Property.PlaceSelf;
|
|
27
49
|
};
|
|
28
50
|
|
|
51
|
+
/** @deprecated */
|
|
29
52
|
export const gridItemStyleFnConfigs: StyleFnConfig[] = [
|
|
30
53
|
{
|
|
31
54
|
name: 'gridColumnStart',
|
|
@@ -79,6 +102,7 @@ export const gridItemStyleFnConfigs: StyleFnConfig[] = [
|
|
|
79
102
|
},
|
|
80
103
|
];
|
|
81
104
|
|
|
105
|
+
/** @deprecated */
|
|
82
106
|
export const gridItemStyleFns = buildStyleFns(gridItemStyleFnConfigs);
|
|
83
107
|
/**
|
|
84
108
|
* A style prop function that takes component props and returns grid styles.
|
|
@@ -92,5 +116,6 @@ export const gridItemStyleFns = buildStyleFns(gridItemStyleFnConfigs);
|
|
|
92
116
|
* </Grid.Item>
|
|
93
117
|
* );
|
|
94
118
|
* ```
|
|
119
|
+
* @deprecated
|
|
95
120
|
*/
|
|
96
121
|
export const gridItem = buildStylePropFn<GridItemStyleProps>(gridItemStyleFns);
|