@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
|
@@ -3,52 +3,73 @@ import {Property} from 'csstype';
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
import {SystemPropValues} from './systemProps';
|
|
5
5
|
|
|
6
|
-
/** style props to for CSS layout properties
|
|
6
|
+
/** style props to for CSS layout 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 LayoutStyleProps = {
|
|
8
|
-
/** sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
10
|
+
/** sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
9
13
|
display?: Property.Display;
|
|
10
14
|
/**
|
|
11
15
|
* - sets [CSS height property](https://developer.mozilla.org/en-US/docs/Web/CSS/height)
|
|
12
16
|
* - system tokens: `space`
|
|
13
|
-
*
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
14
19
|
height?: SystemPropValues['space'];
|
|
15
|
-
/** sets [CSS list-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style)
|
|
20
|
+
/** sets [CSS list-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style)
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
16
23
|
listStyle?: Property.ListStyle;
|
|
17
24
|
/**
|
|
18
25
|
* - sets [CSS max-height property](https://developer.mozilla.org/en-US/docs/Web/CSS/max-height)
|
|
19
26
|
* - system tokens: `space`
|
|
20
|
-
*
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
21
29
|
maxHeight?: SystemPropValues['space'];
|
|
22
30
|
/**
|
|
23
31
|
* - sets [CSS max-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width)
|
|
24
32
|
* - system tokens: `space`
|
|
25
|
-
*
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
26
35
|
maxWidth?: SystemPropValues['space'];
|
|
27
36
|
/**
|
|
28
37
|
* - sets [CSS min-height property](https://developer.mozilla.org/en-US/docs/Web/CSS/min-height)
|
|
29
38
|
* - system tokens: `space`
|
|
30
|
-
*
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
31
41
|
minHeight?: SystemPropValues['space'];
|
|
32
42
|
/**
|
|
33
43
|
* - sets [CSS min-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/min-width)
|
|
34
44
|
* - system tokens: `space`
|
|
35
|
-
*
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
36
47
|
minWidth?: SystemPropValues['space'];
|
|
37
|
-
/** sets [CSS overflow property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow)
|
|
48
|
+
/** sets [CSS overflow property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow)
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
38
51
|
overflow?: Property.Overflow;
|
|
39
|
-
/** sets [CSS overflow-x property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-x)
|
|
52
|
+
/** sets [CSS overflow-x property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-x)
|
|
53
|
+
* @deprecated
|
|
54
|
+
*/
|
|
40
55
|
overflowX?: Property.OverflowX;
|
|
41
|
-
/** sets [CSS overflow-y property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-y)
|
|
56
|
+
/** sets [CSS overflow-y property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-y)
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
42
59
|
overflowY?: Property.OverflowY;
|
|
43
|
-
/** sets [CSS vertical-align property](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align)
|
|
60
|
+
/** sets [CSS vertical-align property](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align)
|
|
61
|
+
* @deprecated
|
|
62
|
+
*/
|
|
44
63
|
verticalAlign?: Property.VerticalAlign;
|
|
45
64
|
/**
|
|
46
65
|
* - sets [CSS width property](https://developer.mozilla.org/en-US/docs/Web/CSS/width)
|
|
47
66
|
* - system tokens: `space`
|
|
48
|
-
*
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
49
69
|
width?: SystemPropValues['space'];
|
|
50
70
|
};
|
|
51
71
|
|
|
72
|
+
/** @deprecated */
|
|
52
73
|
export const layoutStyleFnConfigs: StyleFnConfig[] = [
|
|
53
74
|
{
|
|
54
75
|
name: 'display',
|
|
@@ -112,6 +133,7 @@ export const layoutStyleFnConfigs: StyleFnConfig[] = [
|
|
|
112
133
|
},
|
|
113
134
|
];
|
|
114
135
|
|
|
136
|
+
/** @deprecated */
|
|
115
137
|
export const layoutStyleFns = buildStyleFns(layoutStyleFnConfigs);
|
|
116
138
|
/**
|
|
117
139
|
* A style prop function that takes component props and returns layout styles.
|
|
@@ -125,5 +147,6 @@ export const layoutStyleFns = buildStyleFns(layoutStyleFnConfigs);
|
|
|
125
147
|
* </Box>
|
|
126
148
|
* );
|
|
127
149
|
* ```
|
|
150
|
+
* @deprecated
|
|
128
151
|
*/
|
|
129
152
|
export const layout = buildStylePropFn<LayoutStyleProps>(layoutStyleFns);
|
|
@@ -43,6 +43,7 @@ function isStyleProps(prop: string): boolean {
|
|
|
43
43
|
/**
|
|
44
44
|
* This function has the same signature as {@link handleCsProp} and also calls `handleCsProps`, but
|
|
45
45
|
* adds support for style props. It can be used as a drop-in replacement for `handleCsProps`.
|
|
46
|
+
* @deprecated ⚠️ `mergeStyles` is deprecated since it supports style props. Use `handleCsProps` to ensure correct style merging order. For more information view our [docs](https://workday.github.io/canvas-kit/?path=/docs/styling-guides-merging-styles--docs#handlecsprop).
|
|
46
47
|
*/
|
|
47
48
|
export function mergeStyles<T extends {}>(
|
|
48
49
|
/**
|
|
@@ -2,76 +2,146 @@ import {Property} from 'csstype';
|
|
|
2
2
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* style props to for other CSS 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
|
+
*/
|
|
6
9
|
export type OtherStyleProps = {
|
|
7
|
-
/** sets [CSS animation property](https://developer.mozilla.org/en-US/docs/Web/CSS/animation)
|
|
10
|
+
/** sets [CSS animation property](https://developer.mozilla.org/en-US/docs/Web/CSS/animation)
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
8
13
|
animation?: Property.Animation;
|
|
9
|
-
/** sets [CSS appearance property](https://developer.mozilla.org/en-US/docs/Web/CSS/appearance)
|
|
14
|
+
/** sets [CSS appearance property](https://developer.mozilla.org/en-US/docs/Web/CSS/appearance)
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
10
17
|
appearance?: Property.Appearance;
|
|
11
|
-
/** sets [CSS box-sizing property](https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing)
|
|
18
|
+
/** sets [CSS box-sizing property](https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing)
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
12
21
|
boxSizing?: Property.BoxSizing;
|
|
13
|
-
/** sets [CSS content property](https://developer.mozilla.org/en-US/docs/Web/CSS/content)
|
|
22
|
+
/** sets [CSS content property](https://developer.mozilla.org/en-US/docs/Web/CSS/content)
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
14
25
|
content?: Property.Content;
|
|
15
|
-
/** sets [CSS cursor property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor)
|
|
26
|
+
/** sets [CSS cursor property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor)
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
16
29
|
cursor?: Property.Cursor;
|
|
17
|
-
/** sets [CSS fill property](https://developer.mozilla.org/en-US/docs/Web/CSS/fill)
|
|
30
|
+
/** sets [CSS fill property](https://developer.mozilla.org/en-US/docs/Web/CSS/fill)
|
|
31
|
+
* @deprecated
|
|
32
|
+
*/
|
|
18
33
|
fill?: Property.Fill;
|
|
19
|
-
/** sets [CSS float property](https://developer.mozilla.org/en-US/docs/Web/CSS/float)
|
|
34
|
+
/** sets [CSS float property](https://developer.mozilla.org/en-US/docs/Web/CSS/float)
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
20
37
|
float?: Property.Float;
|
|
21
|
-
/** sets [CSS object-fit property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
|
|
38
|
+
/** sets [CSS object-fit property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
22
41
|
objectFit?: Property.ObjectFit;
|
|
23
|
-
/** sets [CSS object-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position)
|
|
42
|
+
/** sets [CSS object-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position)
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
24
45
|
objectPosition?: Property.ObjectPosition;
|
|
25
|
-
/** sets [CSS opacity](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
46
|
+
/** sets [CSS opacity](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
47
|
+
* @deprecated
|
|
48
|
+
*/
|
|
26
49
|
opacity?: Property.Opacity;
|
|
27
|
-
/** sets [CSS outline property](https://developer.mozilla.org/en-US/docs/Web/CSS/outline)
|
|
50
|
+
/** sets [CSS outline property](https://developer.mozilla.org/en-US/docs/Web/CSS/outline)
|
|
51
|
+
* @deprecated
|
|
52
|
+
*/
|
|
28
53
|
outline?: Property.Outline;
|
|
29
|
-
/** sets [CSS outline-offset property](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-offset)
|
|
54
|
+
/** sets [CSS outline-offset property](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-offset)
|
|
55
|
+
* @deprecated
|
|
56
|
+
*/
|
|
30
57
|
outlineOffset?: Property.OutlineOffset;
|
|
31
|
-
/** sets [CSS overflow-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap)
|
|
58
|
+
/** sets [CSS overflow-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap)
|
|
59
|
+
* @deprecated
|
|
60
|
+
*/
|
|
32
61
|
overflowWrap?: Property.OverflowWrap;
|
|
33
|
-
/** sets [CSS pointer-events property](https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events)
|
|
62
|
+
/** sets [CSS pointer-events property](https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events)
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
34
65
|
pointerEvents?: Property.PointerEvents;
|
|
35
|
-
/** sets [CSS resize property](https://developer.mozilla.org/en-US/docs/Web/CSS/resize)
|
|
66
|
+
/** sets [CSS resize property](https://developer.mozilla.org/en-US/docs/Web/CSS/resize)
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
36
69
|
resize?: Property.Resize;
|
|
37
|
-
/** sets [CSS scroll margin property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin)
|
|
70
|
+
/** sets [CSS scroll margin property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin)
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
38
73
|
scrollMargin?: Property.ScrollMargin;
|
|
39
|
-
/** sets [CSS scroll margin bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-bottom)
|
|
74
|
+
/** sets [CSS scroll margin bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-bottom)
|
|
75
|
+
* @deprecated
|
|
76
|
+
*/
|
|
40
77
|
scrollMarginBottom?: Property.ScrollMarginBottom;
|
|
41
|
-
/** sets [CSS scroll margin top property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-top)
|
|
78
|
+
/** sets [CSS scroll margin top property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-top)
|
|
79
|
+
* @deprecated
|
|
80
|
+
*/
|
|
42
81
|
scrollMarginTop?: Property.ScrollMarginTop;
|
|
43
|
-
/** sets [CSS scroll margin inline start property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-inline-start)
|
|
82
|
+
/** sets [CSS scroll margin inline start property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-inline-start)
|
|
83
|
+
* @deprecated
|
|
84
|
+
*/
|
|
44
85
|
scrollMarginInlineStart?: Property.ScrollMarginInlineStart;
|
|
45
|
-
/** sets [CSS scroll margin inline end property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-inline-end)
|
|
86
|
+
/** sets [CSS scroll margin inline end property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-inline-end)
|
|
87
|
+
* @deprecated
|
|
88
|
+
*/
|
|
46
89
|
scrollMarginInlineEnd?: Property.ScrollMarginInlineEnd;
|
|
47
|
-
/** sets [CSS scroll padding property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding)
|
|
90
|
+
/** sets [CSS scroll padding property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding)
|
|
91
|
+
* @deprecated
|
|
92
|
+
*/
|
|
48
93
|
scrollPadding?: Property.ScrollPadding;
|
|
49
|
-
/** sets [CSS scroll padding bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-bottom)
|
|
94
|
+
/** sets [CSS scroll padding bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-bottom)
|
|
95
|
+
* @deprecated
|
|
96
|
+
*/
|
|
50
97
|
scrollPaddingBottom?: Property.ScrollPaddingBottom;
|
|
51
|
-
/** sets [CSS scroll padding top property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-top)
|
|
98
|
+
/** sets [CSS scroll padding top property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-top)
|
|
99
|
+
* @deprecated
|
|
100
|
+
*/
|
|
52
101
|
scrollPaddingTop?: Property.ScrollPaddingTop;
|
|
53
|
-
/** sets [CSS scroll padding inline start property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-inline-start)
|
|
102
|
+
/** sets [CSS scroll padding inline start property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-inline-start)
|
|
103
|
+
* @deprecated
|
|
104
|
+
*/
|
|
54
105
|
scrollPaddingInlineStart?: Property.ScrollPaddingInlineStart;
|
|
55
|
-
/** sets [CSS scroll padding inline end property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-inline-end)
|
|
106
|
+
/** sets [CSS scroll padding inline end property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-inline-end)
|
|
107
|
+
* @deprecated
|
|
108
|
+
*/
|
|
56
109
|
scrollPaddingInlineEnd?: Property.ScrollPaddingInlineEnd;
|
|
57
|
-
/** sets [CSS scroll snap align property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align)
|
|
110
|
+
/** sets [CSS scroll snap align property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align)
|
|
111
|
+
* @deprecated
|
|
112
|
+
*/
|
|
58
113
|
scrollSnapAlign?: Property.ScrollSnapAlign;
|
|
59
|
-
/** sets [CSS scroll snap stop property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop)
|
|
114
|
+
/** sets [CSS scroll snap stop property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop)
|
|
115
|
+
* @deprecated
|
|
116
|
+
*/
|
|
60
117
|
scrollSnapStop?: Property.ScrollSnapStop;
|
|
61
|
-
/** sets [CSS scroll snap type property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type)
|
|
118
|
+
/** sets [CSS scroll snap type property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type)
|
|
119
|
+
* @deprecated
|
|
120
|
+
*/
|
|
62
121
|
scrollSnapType?: Property.ScrollSnapType;
|
|
63
|
-
/** sets [CSS stroke property](https://developer.mozilla.org/en-US/docs/Web/CSS/stroke)
|
|
122
|
+
/** sets [CSS stroke property](https://developer.mozilla.org/en-US/docs/Web/CSS/stroke)
|
|
123
|
+
* @deprecated
|
|
124
|
+
*/
|
|
64
125
|
stroke?: Property.Stroke;
|
|
65
|
-
/** sets [CSS transform property](https://developer.mozilla.org/en-US/docs/Web/CSS/transform)
|
|
126
|
+
/** sets [CSS transform property](https://developer.mozilla.org/en-US/docs/Web/CSS/transform)
|
|
127
|
+
* @deprecated
|
|
128
|
+
*/
|
|
66
129
|
transform?: Property.Transform;
|
|
67
|
-
/** sets [CSS transition property](https://developer.mozilla.org/en-US/docs/Web/CSS/transition)
|
|
130
|
+
/** sets [CSS transition property](https://developer.mozilla.org/en-US/docs/Web/CSS/transition)
|
|
131
|
+
* @deprecated
|
|
132
|
+
*/
|
|
68
133
|
transition?: Property.Transition;
|
|
69
|
-
/** sets [CSS user-select property](https://developer.mozilla.org/en-US/docs/Web/CSS/user-select)
|
|
134
|
+
/** sets [CSS user-select property](https://developer.mozilla.org/en-US/docs/Web/CSS/user-select)
|
|
135
|
+
* @deprecated
|
|
136
|
+
*/
|
|
70
137
|
userSelect?: Property.UserSelect;
|
|
71
|
-
/** sets [CSS visibility property](https://developer.mozilla.org/en-US/docs/Web/CSS/visibility)
|
|
138
|
+
/** sets [CSS visibility property](https://developer.mozilla.org/en-US/docs/Web/CSS/visibility)
|
|
139
|
+
* @deprecated
|
|
140
|
+
*/
|
|
72
141
|
visibility?: Property.Visibility;
|
|
73
142
|
};
|
|
74
143
|
|
|
144
|
+
/** @deprecated */
|
|
75
145
|
export const otherStyleFnConfigs: StyleFnConfig[] = [
|
|
76
146
|
{
|
|
77
147
|
name: 'animation',
|
|
@@ -170,6 +240,8 @@ export const otherStyleFnConfigs: StyleFnConfig[] = [
|
|
|
170
240
|
},
|
|
171
241
|
];
|
|
172
242
|
|
|
243
|
+
/** @deprecated */
|
|
173
244
|
export const otherStyleFns = buildStyleFns(otherStyleFnConfigs);
|
|
174
245
|
|
|
246
|
+
/** @deprecated */
|
|
175
247
|
export const other = buildStylePropFn<OtherStyleProps>(otherStyleFns);
|
|
@@ -2,50 +2,63 @@ import {Property} from 'csstype';
|
|
|
2
2
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* style props to for CSS position 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
|
+
*/
|
|
6
9
|
export type PositionStyleProps = {
|
|
7
10
|
/**
|
|
8
11
|
* - sets [CSS position property](https://developer.mozilla.org/en-US/docs/Web/CSS/position)
|
|
9
|
-
*
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
10
14
|
position?: Property.Position;
|
|
11
15
|
/**
|
|
12
16
|
* - sets [CSS z-index property](https://developer.mozilla.org/en-US/docs/Web/CSS/z-index)
|
|
13
|
-
*
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
14
19
|
zIndex?: Property.ZIndex;
|
|
15
20
|
/**
|
|
16
21
|
* - sets [CSS top property](https://developer.mozilla.org/en-US/docs/Web/CSS/top)
|
|
17
|
-
*
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
18
24
|
top?: number | string;
|
|
19
25
|
/**
|
|
20
26
|
* - sets [CSS right property](https://developer.mozilla.org/en-US/docs/Web/CSS/right)
|
|
21
27
|
* - no bidirectional support
|
|
22
|
-
*
|
|
28
|
+
* @deprecated
|
|
29
|
+
*/
|
|
23
30
|
right?: number | string;
|
|
24
31
|
/**
|
|
25
32
|
* - sets [CSS bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/bottom)
|
|
26
|
-
*
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
27
35
|
bottom?: number | string;
|
|
28
36
|
/**
|
|
29
37
|
* - sets [CSS left property](https://developer.mozilla.org/en-US/docs/Web/CSS/left)
|
|
30
38
|
* - no bidirectional support
|
|
31
|
-
*
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
32
41
|
left?: number | string;
|
|
33
42
|
/**
|
|
34
43
|
* - sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)
|
|
44
|
+
* @deprecated
|
|
35
45
|
*/
|
|
36
46
|
inset?: number | string;
|
|
37
47
|
/**
|
|
38
48
|
* - sets [CSS inset-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-start)
|
|
39
49
|
* - bidirectional support
|
|
40
|
-
*
|
|
50
|
+
* @deprecated
|
|
51
|
+
*/
|
|
41
52
|
insetInlineStart?: number | string;
|
|
42
53
|
/**
|
|
43
54
|
* - sets [CSS inset-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-end)
|
|
44
55
|
* - bidirectional support
|
|
45
|
-
*
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
46
58
|
insetInlineEnd?: number | string;
|
|
47
59
|
};
|
|
48
60
|
|
|
61
|
+
/** @deprecated */
|
|
49
62
|
export const positionStyleFnConfigs: StyleFnConfig[] = [
|
|
50
63
|
{
|
|
51
64
|
name: 'position',
|
|
@@ -94,6 +107,7 @@ export const positionStyleFnConfigs: StyleFnConfig[] = [
|
|
|
94
107
|
},
|
|
95
108
|
];
|
|
96
109
|
|
|
110
|
+
/** @deprecated */
|
|
97
111
|
export const positionStyleFns = buildStyleFns(positionStyleFnConfigs);
|
|
98
112
|
/**
|
|
99
113
|
* A style prop function that takes component props and returns position styles.
|
|
@@ -107,5 +121,6 @@ export const positionStyleFns = buildStyleFns(positionStyleFnConfigs);
|
|
|
107
121
|
* </Box>
|
|
108
122
|
* );
|
|
109
123
|
* ```
|
|
124
|
+
* @deprecated
|
|
110
125
|
*/
|
|
111
126
|
export const position = buildStylePropFn<PositionStyleProps>(positionStyleFns);
|
|
@@ -1,108 +1,129 @@
|
|
|
1
1
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
2
2
|
import {SystemPropValues} from './systemProps';
|
|
3
3
|
|
|
4
|
-
/** style props to for CSS space properties
|
|
4
|
+
/** style props to for CSS space 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 SpaceStyleProps = {
|
|
6
8
|
/**
|
|
7
9
|
* - sets [CSS margin-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-start)
|
|
8
10
|
* - bidirectional support
|
|
9
11
|
* - system tokens: `space`
|
|
10
|
-
*
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
11
14
|
marginInlineStart?: SystemPropValues['space'];
|
|
12
15
|
/**
|
|
13
16
|
* - sets [CSS margin-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-end)
|
|
14
17
|
* - bidirectional support
|
|
15
18
|
* - system tokens: `space`
|
|
16
|
-
*
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
17
21
|
marginInlineEnd?: SystemPropValues['space'];
|
|
18
22
|
/**
|
|
19
23
|
* - sets [CSS padding-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-start)
|
|
20
24
|
* - bidirectional support
|
|
21
25
|
* - system tokens: `space`
|
|
22
|
-
*
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
23
28
|
paddingInlineStart?: SystemPropValues['space'];
|
|
24
29
|
/**
|
|
25
30
|
* - sets [CSS padding-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-end)
|
|
26
31
|
* - bidirectional support
|
|
27
32
|
* - system tokens: `space`
|
|
28
|
-
*
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
29
35
|
paddingInlineEnd?: SystemPropValues['space'];
|
|
30
36
|
/**
|
|
31
37
|
* - sets [CSS margin property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin)
|
|
32
38
|
* - system tokens: `space`
|
|
33
|
-
*
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
34
41
|
margin?: SystemPropValues['space'];
|
|
35
42
|
/**
|
|
36
43
|
* - sets [CSS margin-left](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left) and [margin-right properties](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right)
|
|
37
44
|
* - system tokens: `space`
|
|
38
|
-
*
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
39
47
|
marginX?: SystemPropValues['space'];
|
|
40
48
|
/**
|
|
41
49
|
* - sets [CSS margin-top](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top) and [margin-bottom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom)
|
|
42
50
|
* - system tokens: `space`
|
|
43
|
-
*
|
|
51
|
+
* @deprecated
|
|
52
|
+
*/
|
|
44
53
|
marginY?: SystemPropValues['space'];
|
|
45
54
|
/**
|
|
46
55
|
* - sets [CSS margin-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top)
|
|
47
56
|
* - system tokens: `space`
|
|
48
|
-
*
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
49
59
|
marginTop?: SystemPropValues['space'];
|
|
50
60
|
/**
|
|
51
61
|
* - sets [CSS margin-right property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right)
|
|
52
62
|
* - no bidirectional support
|
|
53
63
|
* - system tokens: `space`
|
|
54
|
-
*
|
|
64
|
+
* @deprecated
|
|
65
|
+
*/
|
|
55
66
|
marginRight?: SystemPropValues['space'];
|
|
56
67
|
/**
|
|
57
68
|
* - sets [CSS margin-bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom)
|
|
58
69
|
* - system tokens: `space`
|
|
59
|
-
*
|
|
70
|
+
* @deprecated
|
|
71
|
+
*/
|
|
60
72
|
marginBottom?: SystemPropValues['space'];
|
|
61
73
|
/**
|
|
62
74
|
* - sets [CSS margin-left property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left)
|
|
63
75
|
* - no bidirectional support
|
|
64
76
|
* - system tokens: `space`
|
|
65
|
-
*
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
66
79
|
marginLeft?: SystemPropValues['space'];
|
|
67
80
|
/**
|
|
68
81
|
* - sets [CSS padding property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
|
|
69
82
|
* - system tokens: `space`
|
|
70
|
-
*
|
|
83
|
+
* @deprecated
|
|
84
|
+
*/
|
|
71
85
|
padding?: SystemPropValues['space'];
|
|
72
86
|
/**
|
|
73
87
|
* - sets [CSS padding-left]((https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left) and [padding-right properties](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right)
|
|
74
88
|
* - system tokens: `space`
|
|
75
|
-
*
|
|
89
|
+
* @deprecated
|
|
90
|
+
*/
|
|
76
91
|
paddingX?: SystemPropValues['space'];
|
|
77
92
|
/**
|
|
78
93
|
* - sets [CSS padding-top](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top) and [padding-bottom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom)
|
|
79
94
|
* - system tokens: `space`
|
|
80
|
-
*
|
|
95
|
+
* @deprecated
|
|
96
|
+
*/
|
|
81
97
|
paddingY?: SystemPropValues['space'];
|
|
82
98
|
/**
|
|
83
99
|
* - sets [CSS padding-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top)
|
|
84
100
|
* - system tokens: `space`
|
|
85
|
-
*
|
|
101
|
+
* @deprecated
|
|
102
|
+
*/
|
|
86
103
|
paddingTop?: SystemPropValues['space'];
|
|
87
104
|
/**
|
|
88
105
|
* - sets [CSS padding-right property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right)
|
|
89
106
|
* - no bidirectional support
|
|
90
107
|
* - system tokens: `space`
|
|
91
|
-
*
|
|
108
|
+
* @deprecated
|
|
109
|
+
*/
|
|
92
110
|
paddingRight?: SystemPropValues['space'];
|
|
93
111
|
/**
|
|
94
112
|
* - sets [CSS padding-bottom](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
|
|
95
113
|
* - system tokens: `space`
|
|
96
|
-
*
|
|
114
|
+
* @deprecated
|
|
115
|
+
*/
|
|
97
116
|
paddingBottom?: SystemPropValues['space'];
|
|
98
117
|
/**
|
|
99
118
|
* - sets [CSS padding-left property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left)
|
|
100
119
|
* - no bidirectional support
|
|
101
120
|
* - system tokens: `space`
|
|
102
|
-
*
|
|
121
|
+
* @deprecated
|
|
122
|
+
*/
|
|
103
123
|
paddingLeft?: SystemPropValues['space'];
|
|
104
124
|
};
|
|
105
125
|
|
|
126
|
+
/** @deprecated */
|
|
106
127
|
export const spaceStyleFnConfigs: StyleFnConfig[] = [
|
|
107
128
|
{
|
|
108
129
|
name: 'marginInlineStart',
|
|
@@ -196,6 +217,7 @@ export const spaceStyleFnConfigs: StyleFnConfig[] = [
|
|
|
196
217
|
},
|
|
197
218
|
];
|
|
198
219
|
|
|
220
|
+
/** @deprecated */
|
|
199
221
|
export const spaceStyleFns = buildStyleFns(spaceStyleFnConfigs);
|
|
200
222
|
/**
|
|
201
223
|
* A style prop function that takes component props and returns space styles.
|
|
@@ -209,5 +231,6 @@ export const spaceStyleFns = buildStyleFns(spaceStyleFnConfigs);
|
|
|
209
231
|
* </Box>
|
|
210
232
|
* );
|
|
211
233
|
* ```
|
|
234
|
+
* @deprecated
|
|
212
235
|
*/
|
|
213
236
|
export const space = buildStylePropFn<SpaceStyleProps>(spaceStyleFns);
|
|
@@ -28,6 +28,7 @@ import {TextStyleProps} from './text';
|
|
|
28
28
|
* - position
|
|
29
29
|
* - space
|
|
30
30
|
* - text
|
|
31
|
+
* @deprecated
|
|
31
32
|
*/
|
|
32
33
|
export type CommonStyleProps = BackgroundStyleProps &
|
|
33
34
|
BorderStyleProps &
|
|
@@ -48,6 +49,7 @@ export type CommonStyleProps = BackgroundStyleProps &
|
|
|
48
49
|
* - common
|
|
49
50
|
* - flex
|
|
50
51
|
* - grid
|
|
52
|
+
* @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).
|
|
51
53
|
*/
|
|
52
54
|
export type AllStyleProps = CommonStyleProps &
|
|
53
55
|
// Omitting 'display' here to default to the standard csstype type Property.Display
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
CanvasTypeProperties,
|
|
7
7
|
} from '@workday/canvas-kit-react/tokens';
|
|
8
8
|
|
|
9
|
+
/** @deprecated */
|
|
9
10
|
export type SystemPropNames =
|
|
10
11
|
| 'color'
|
|
11
12
|
| 'depth'
|
|
@@ -19,14 +20,22 @@ export type SystemPropNames =
|
|
|
19
20
|
* Canvas System Prop Values
|
|
20
21
|
* ---
|
|
21
22
|
* These system prop values are restricted to Canvas token values.
|
|
23
|
+
* @deprecated
|
|
22
24
|
*/
|
|
23
25
|
export type CanvasSystemPropValues = {
|
|
26
|
+
/** @deprecated */
|
|
24
27
|
color: CanvasColor;
|
|
28
|
+
/** @deprecated */
|
|
25
29
|
depth: keyof CanvasDepth;
|
|
30
|
+
/** @deprecated */
|
|
26
31
|
font: keyof CanvasTypeProperties['fontFamilies'];
|
|
32
|
+
/** @deprecated */
|
|
27
33
|
fontSize: keyof CanvasTypeProperties['fontSizes'];
|
|
34
|
+
/** @deprecated */
|
|
28
35
|
fontWeight: keyof CanvasTypeProperties['fontWeights'];
|
|
36
|
+
/** @deprecated */
|
|
29
37
|
shape: CanvasBorderRadiusKeys;
|
|
38
|
+
/** @deprecated */
|
|
30
39
|
space: CanvasSpaceKeys;
|
|
31
40
|
};
|
|
32
41
|
|
|
@@ -34,13 +43,21 @@ export type CanvasSystemPropValues = {
|
|
|
34
43
|
* System Prop Values
|
|
35
44
|
* ---
|
|
36
45
|
* These system prop values include Canvas System Prop Values and generic values.
|
|
46
|
+
* @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).
|
|
37
47
|
*/
|
|
38
48
|
export type SystemPropValues = {
|
|
49
|
+
/** @deprecated */
|
|
39
50
|
color: CanvasSystemPropValues['color'] | (string & {});
|
|
51
|
+
/** @deprecated */
|
|
40
52
|
depth: CanvasSystemPropValues['depth'];
|
|
53
|
+
/** @deprecated */
|
|
41
54
|
font: CanvasSystemPropValues['font'] | (string & {});
|
|
55
|
+
/** @deprecated */
|
|
42
56
|
fontSize: CanvasSystemPropValues['fontSize'] | (string & {});
|
|
57
|
+
/** @deprecated */
|
|
43
58
|
fontWeight: CanvasSystemPropValues['fontWeight'] | (string & {});
|
|
59
|
+
/** @deprecated */
|
|
44
60
|
shape: CanvasSystemPropValues['shape'] | number | (string & {});
|
|
61
|
+
/** @deprecated */
|
|
45
62
|
space: CanvasSystemPropValues['space'] | number | (string & {});
|
|
46
63
|
};
|