@workday/canvas-kit-react 16.0.0-alpha.0499-next.0 → 16.0.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/common/lib/CanvasProvider.tsx +156 -324
- package/common/lib/theming/README.md +49 -6
- package/common/lib/theming/brandScope.ts +566 -0
- package/common/lib/theming/index.ts +1 -0
- package/common/lib/theming/sanaTheme.ts +133 -0
- package/common/lib/theming/types.ts +292 -0
- 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 +13 -13
- package/dist/commonjs/avatar/lib/AvatarImage.js +1 -1
- package/dist/commonjs/avatar/lib/AvatarName.js +1 -1
- package/dist/commonjs/avatar/lib/BaseAvatar.js +14 -14
- 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 +2 -2
- package/dist/commonjs/button/lib/ExternalHyperlink.js +1 -1
- package/dist/commonjs/button/lib/Hyperlink.js +5 -5
- 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 +14 -14
- package/dist/commonjs/button/lib/ToolbarDropdownButton.js +3 -3
- package/dist/commonjs/button/lib/ToolbarIconButton.js +1 -1
- package/dist/commonjs/button/lib/parts/ButtonLabel.js +1 -1
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +5 -5
- 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 +6 -6
- package/dist/commonjs/checkbox/lib/CheckboxCheck.js +6 -6
- package/dist/commonjs/checkbox/lib/CheckboxContainer.js +2 -2
- 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.d.ts +296 -5
- package/dist/commonjs/common/lib/CanvasProvider.d.ts.map +1 -1
- package/dist/commonjs/common/lib/CanvasProvider.js +105 -287
- package/dist/commonjs/common/lib/EllipsisText.js +1 -1
- package/dist/commonjs/common/lib/styles/cornerShape.js +1 -1
- package/dist/commonjs/common/lib/theming/brandScope.d.ts +64 -0
- package/dist/commonjs/common/lib/theming/brandScope.d.ts.map +1 -0
- package/dist/commonjs/common/lib/theming/brandScope.js +499 -0
- package/dist/commonjs/common/lib/theming/index.d.ts +1 -0
- package/dist/commonjs/common/lib/theming/index.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/index.js +1 -0
- package/dist/commonjs/common/lib/theming/sanaTheme.d.ts +33 -0
- package/dist/commonjs/common/lib/theming/sanaTheme.d.ts.map +1 -0
- package/dist/commonjs/common/lib/theming/sanaTheme.js +130 -0
- package/dist/commonjs/common/lib/theming/types.d.ts +162 -0
- package/dist/commonjs/common/lib/theming/types.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/types.js +81 -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/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/ExpressiveIcon.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 +2 -2
- package/dist/commonjs/information-highlight/lib/InformationHighlight.js +9 -9
- package/dist/commonjs/information-highlight/lib/parts/Body.js +3 -3
- package/dist/commonjs/information-highlight/lib/parts/Heading.js +3 -3
- package/dist/commonjs/information-highlight/lib/parts/Link.js +3 -3
- 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.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 +2 -2
- 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/pill/lib/Pill.d.ts +2 -2
- package/dist/commonjs/pill/lib/Pill.js +3 -3
- package/dist/commonjs/pill/lib/PillAvatar.js +1 -1
- package/dist/commonjs/pill/lib/PillCount.js +1 -1
- package/dist/commonjs/pill/lib/PillIcon.js +1 -1
- package/dist/commonjs/pill/lib/PillIconButton.js +1 -1
- package/dist/commonjs/pill/lib/PillLabel.js +1 -1
- package/dist/commonjs/popup/lib/PopupBody.js +1 -1
- package/dist/commonjs/popup/lib/PopupButtonGroup.js +5 -5
- 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/popup/lib/hooks/usePopupStack.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/usePopupStack.js +18 -16
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +16 -16
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +6 -6
- package/dist/commonjs/select/lib/SelectCard.js +1 -1
- package/dist/commonjs/select/lib/SelectInput.js +3 -3
- package/dist/commonjs/side-panel/lib/SidePanel.js +8 -8
- package/dist/commonjs/side-panel/lib/SidePanelHeading.js +3 -3
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +7 -7
- 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 +2 -2
- package/dist/commonjs/skeleton/lib/parts/SkeletonText.js +2 -2
- 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/testing/lib/ComponentStatesTable.js +1 -1
- package/dist/commonjs/testing/lib/StaticStates.d.ts +2 -2
- package/dist/commonjs/testing/lib/StaticStates.d.ts.map +1 -1
- package/dist/commonjs/testing/lib/StaticStates.js +5 -2
- 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 +7 -7
- 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 +4 -4
- 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 +13 -13
- package/dist/es6/avatar/lib/AvatarImage.js +1 -1
- package/dist/es6/avatar/lib/AvatarName.js +1 -1
- package/dist/es6/avatar/lib/BaseAvatar.js +14 -14
- 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 +2 -2
- package/dist/es6/button/lib/ExternalHyperlink.js +1 -1
- package/dist/es6/button/lib/Hyperlink.js +5 -5
- 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 +14 -14
- package/dist/es6/button/lib/ToolbarDropdownButton.js +3 -3
- package/dist/es6/button/lib/ToolbarIconButton.js +1 -1
- package/dist/es6/button/lib/parts/ButtonLabel.js +1 -1
- package/dist/es6/button/lib/parts/ButtonLabelIcon.js +5 -5
- 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 +6 -6
- package/dist/es6/checkbox/lib/CheckboxCheck.js +6 -6
- package/dist/es6/checkbox/lib/CheckboxContainer.js +2 -2
- 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.d.ts +296 -5
- package/dist/es6/common/lib/CanvasProvider.d.ts.map +1 -1
- package/dist/es6/common/lib/CanvasProvider.js +82 -288
- package/dist/es6/common/lib/EllipsisText.js +1 -1
- package/dist/es6/common/lib/styles/cornerShape.js +1 -1
- package/dist/es6/common/lib/theming/brandScope.d.ts +64 -0
- package/dist/es6/common/lib/theming/brandScope.d.ts.map +1 -0
- package/dist/es6/common/lib/theming/brandScope.js +483 -0
- package/dist/es6/common/lib/theming/index.d.ts +1 -0
- package/dist/es6/common/lib/theming/index.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/index.js +1 -0
- package/dist/es6/common/lib/theming/sanaTheme.d.ts +33 -0
- package/dist/es6/common/lib/theming/sanaTheme.d.ts.map +1 -0
- package/dist/es6/common/lib/theming/sanaTheme.js +127 -0
- package/dist/es6/common/lib/theming/types.d.ts +162 -0
- package/dist/es6/common/lib/theming/types.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/types.js +78 -0
- 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/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/ExpressiveIcon.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 +2 -2
- package/dist/es6/information-highlight/lib/InformationHighlight.js +9 -9
- package/dist/es6/information-highlight/lib/parts/Body.js +3 -3
- package/dist/es6/information-highlight/lib/parts/Heading.js +3 -3
- package/dist/es6/information-highlight/lib/parts/Link.js +3 -3
- 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.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 +2 -2
- 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/pill/lib/Pill.d.ts +2 -2
- package/dist/es6/pill/lib/Pill.js +3 -3
- package/dist/es6/pill/lib/PillAvatar.js +1 -1
- package/dist/es6/pill/lib/PillCount.js +1 -1
- package/dist/es6/pill/lib/PillIcon.js +1 -1
- package/dist/es6/pill/lib/PillIconButton.js +1 -1
- package/dist/es6/pill/lib/PillLabel.js +1 -1
- package/dist/es6/popup/lib/PopupBody.js +1 -1
- package/dist/es6/popup/lib/PopupButtonGroup.js +5 -5
- 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/popup/lib/hooks/usePopupStack.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/usePopupStack.js +13 -11
- package/dist/es6/segmented-control/lib/SegmentedControlItem.js +16 -16
- package/dist/es6/segmented-control/lib/SegmentedControlList.js +6 -6
- package/dist/es6/select/lib/SelectCard.js +1 -1
- package/dist/es6/select/lib/SelectInput.js +3 -3
- package/dist/es6/side-panel/lib/SidePanel.js +8 -8
- package/dist/es6/side-panel/lib/SidePanelHeading.js +3 -3
- package/dist/es6/side-panel/lib/SidePanelToggleButton.js +7 -7
- 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 +2 -2
- package/dist/es6/skeleton/lib/parts/SkeletonText.js +2 -2
- 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/testing/lib/ComponentStatesTable.js +1 -1
- package/dist/es6/testing/lib/StaticStates.d.ts +2 -2
- package/dist/es6/testing/lib/StaticStates.d.ts.map +1 -1
- package/dist/es6/testing/lib/StaticStates.js +6 -3
- 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 +7 -7
- 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 +4 -4
- package/dist/es6/version/lib/version.js +1 -1
- package/package.json +4 -4
- package/popup/lib/hooks/usePopupStack.ts +13 -11
- package/testing/lib/StaticStates.tsx +11 -9
|
@@ -14,24 +14,24 @@ exports.checkboxBackgroundStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
14
14
|
parts: {
|
|
15
15
|
background: 'checkbox-background',
|
|
16
16
|
},
|
|
17
|
-
base: { name: "
|
|
17
|
+
base: { name: "2mm1s4", styles: "box-sizing:border-box;align-items:center;background-color:var(--cnvs-sys-color-surface-default, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));--shape-corner-shape-ccab68:var(--cnvs-sys-shape-xs, 0.25rem);display:flex;justify-content:center;padding:0 0.125rem;pointer-events:none;position:absolute;transition:border 200ms ease, background 200ms;height:var(--cnvs-sys-size-xxxs, var(--cnvs-sys-space-x4, 1rem));width:var(--cnvs-sys-size-xxxs, var(--cnvs-sys-space-x4, 1rem));border:0.0625rem solid var(--cnvs-sys-color-border-input-default);" },
|
|
18
18
|
modifiers: {
|
|
19
19
|
variant: {
|
|
20
|
-
inverse: { name: "
|
|
20
|
+
inverse: { name: "ac2pn", styles: "background-color:var(--cnvs-sys-color-surface-inverse, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));" }
|
|
21
21
|
},
|
|
22
22
|
error: {
|
|
23
|
-
error: { name: "
|
|
24
|
-
caution: { name: "
|
|
23
|
+
error: { name: "2a65u2", styles: "--errorRingColorInner-checkbox-background-c73dbe:var(--cnvs-sys-color-brand-border-critical, oklch(0.6495 0.2369 30.04 / 1));--errorRingColorOuter-checkbox-background-c73dbe:var(--cnvs-sys-color-brand-border-critical, oklch(0.6495 0.2369 30.04 / 1));" },
|
|
24
|
+
caution: { name: "11vle0", styles: "--errorRingColorInner-checkbox-background-c73dbe:var(--cnvs-sys-color-brand-focus-caution-inner, var(--cnvs-brand-common-alert-inner, oklch(0.7909 0.1711 70.15 / 1)));--errorRingColorOuter-checkbox-background-c73dbe:var(--cnvs-sys-color-brand-border-caution, var(--cnvs-brand-alert-dark, oklch(0.6601 0.1537 60.7 / 1)));" }
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
compound: [
|
|
28
28
|
{
|
|
29
29
|
modifiers: { variant: 'inverse', error: 'error' },
|
|
30
|
-
styles: { name: "
|
|
30
|
+
styles: { name: "12bryb", styles: "background-color:var(--cnvs-sys-color-surface-inverse, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));" }
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
modifiers: { variant: 'inverse', error: 'caution' },
|
|
34
|
-
styles: { name: "
|
|
34
|
+
styles: { name: "3l4gta", styles: "background-color:var(--cnvs-sys-color-surface-inverse, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));" }
|
|
35
35
|
}
|
|
36
36
|
]
|
|
37
37
|
}, "checkbox-background-c73dbe");
|
|
@@ -9,24 +9,24 @@ const canvas_system_icons_web_1 = require("@workday/canvas-system-icons-web");
|
|
|
9
9
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
10
10
|
const CheckBackground_1 = require("./CheckBackground");
|
|
11
11
|
const checkboxCheckStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
12
|
-
base: { name: "
|
|
12
|
+
base: { name: "2g9qna", styles: "box-sizing:border-box;--size-svg-bca693:var(--cnvs-component-system-icon-size-md, var(--cnvs-sys-space-x5, 1.25rem));display:flex;flex-direction:column;justify-content:center;max-width:100%;pointer-events:none;transition:transform 200ms ease, opacity 200ms ease;span{margin-inline-start:calc(0.3125rem * -1);transition:margin 200ms ease;}opacity:var(--cnvs-sys-opacity-zero);transform:scale(0.5);" },
|
|
13
13
|
modifiers: {
|
|
14
14
|
checked: {
|
|
15
|
-
true: { name: "
|
|
15
|
+
true: { name: "3dsut1", styles: "--color-system-icon-c9acc3:var(--cnvs-sys-color-fg-inverse);opacity:var(--cnvs-sys-opacity-full);transform:scale(1);" }
|
|
16
16
|
},
|
|
17
17
|
indeterminate: {
|
|
18
|
-
true: { name: "
|
|
18
|
+
true: { name: "2o0m2e", styles: "opacity:var(--cnvs-sys-opacity-full);transform:scale(1);" }
|
|
19
19
|
},
|
|
20
20
|
variant: {
|
|
21
|
-
inverse: { name: "
|
|
21
|
+
inverse: { name: "31balq", styles: "--color-system-icon-c9acc3:var(--cnvs-sys-color-brand-accent-primary, var(--cnvs-brand-primary-base, oklch(0.5198 0.1782 256.11 / 1)));& > div{background-color:var(--cnvs-sys-color-brand-accent-primary, var(--cnvs-brand-primary-base, oklch(0.5198 0.1782 256.11 / 1)));}" }
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}, "checkbox-check-f2bc56");
|
|
25
25
|
const indeterminateBoxStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
26
|
-
base: { name: "
|
|
26
|
+
base: { name: "3hpgf1", styles: "box-sizing:border-box;width:0.625rem;height:0.125rem;background-color:var(--cnvs-sys-color-fg-inverse);" },
|
|
27
27
|
modifiers: {
|
|
28
28
|
variant: {
|
|
29
|
-
inverse: { name: "
|
|
29
|
+
inverse: { name: "olgox", styles: "background-color:var(--cnvs-sys-color-brand-accent-positive, var(--cnvs-brand-success-base, oklch(0.5069 0.1569 145.56 / 1)));" }
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}, "indeterminate-box-db8fc6");
|
|
@@ -10,10 +10,10 @@ const checkboxContainerStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
10
10
|
parts: {
|
|
11
11
|
label: 'checkbox-container-label',
|
|
12
12
|
},
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "qnryq", styles: "box-sizing:border-box;display:flex;align-items:center;min-height:var(--cnvs-sys-size-xxxs, var(--cnvs-sys-space-x4, 1rem));position:relative;&>div{display:flex;height:var(--cnvs-sys-size-xxxs, var(--cnvs-sys-space-x4, 1rem));min-width:var(--cnvs-sys-size-xxxs, var(--cnvs-sys-space-x4, 1rem));align-self:flex-start;position:relative;}[data-part=\"checkbox-container-label\"]{padding-inline-start:var(--cnvs-sys-padding-xs, var(--cnvs-sys-space-x2, 0.5rem));cursor:pointer;margin-block-start:calc(0.125rem * -1);}" },
|
|
14
14
|
modifiers: {
|
|
15
15
|
disabled: {
|
|
16
|
-
true: { name: "
|
|
16
|
+
true: { name: "1rexmc", styles: "[data-part=\"checkbox-container-label\"]{cursor:default;}" }
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}, "checkbox-container-bafc3c");
|
|
@@ -9,22 +9,22 @@ const CheckBackground_1 = require("./CheckBackground");
|
|
|
9
9
|
const CheckboxRipple_1 = require("./CheckboxRipple");
|
|
10
10
|
const checkboxInputStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
11
11
|
extends: common_1.cornerShapeStencil,
|
|
12
|
-
base: { name: "
|
|
12
|
+
base: { name: "gifr7", styles: "box-sizing:border-box;--shape-corner-shape-ccab68:var(--cnvs-sys-shape-sm, var(--cnvs-sys-shape-x1, 0.25rem));width:var(--cnvs-sys-size-xs, var(--cnvs-sys-space-x6, 1.5rem));height:var(--cnvs-sys-size-xs, var(--cnvs-sys-space-x6, 1.5rem));margin:0;margin-block-start:calc(0.25rem * -1);margin-inline-start:calc(0.25rem * -1);position:absolute;opacity:var(--cnvs-sys-opacity-zero);&:not(:disabled){cursor:pointer;}&:where(:hover,.hover) ~ [data-part=\"checkbox-ripple\"]{box-shadow:0 0 0 0.375rem var(--cnvs-sys-color-surface-overlay-hover-default, oklch(0.3343 0.0951 253.3 / 0.05));}&:not(:where(:checked, :indeterminate, :disabled, :focus-visible, .focus)):where(:hover, .hover, :active, .active) ~ [data-part=\"checkbox-background\"]{border-color:var(--cnvs-sys-color-border-input-hover, var(--cnvs-sys-color-border-input-strong, oklch(0.1595 0.0431 250.87 / 0.7)));}&:where(:checked, :indeterminate) ~ [data-part=\"checkbox-background\"]{border-color:var(--cnvs-sys-color-brand-accent-positive, var(--cnvs-brand-success-base, oklch(0.5069 0.1569 145.56 / 1)));background-color:var(--cnvs-sys-color-brand-accent-positive, var(--cnvs-brand-success-base, oklch(0.5069 0.1569 145.56 / 1)));}&:where(:focus-visible, :active, .focus, .active){outline:none;}&:where(:focus-visible, .focus) ~ [data-part=\"checkbox-background\"]{border-color:var(--cnvs-sys-color-brand-border-primary, oklch(0.6023 0.2032 255.68 / 1));border-width:0.125rem;box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse-default, var(--cnvs-base-palette-neutral-0)), 0 0 0 0px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}&:checked:focus-visible, &:indeterminate:focus-visible, &:checked.focus, &:indeterminate.focus{& ~ [data-part=\"checkbox-background\"]{box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse-default, var(--cnvs-base-palette-neutral-0)), 0 0 0 4px var(--cnvs-sys-color-brand-border-primary, oklch(0.6023 0.2032 255.68 / 1));border-color:var(--cnvs-sys-color-brand-accent-positive, var(--cnvs-brand-success-base, oklch(0.5069 0.1569 145.56 / 1)));border-width:0.125rem;> div{span{margin-inline-start:calc(0.375rem * -1);}div{margin-inline-start:calc(0.0625rem * -1);}}}}" },
|
|
13
13
|
modifiers: {
|
|
14
14
|
variant: {
|
|
15
|
-
inverse: { name: "
|
|
15
|
+
inverse: { name: "k4aco", styles: "& ~ [data-part=\"checkbox-background\"]{border-color:var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));}&:not(:where(:checked, :indeterminate, :disabled, :focus-visible, .focus)):where(:hover, .hover, :active, .active) ~ [data-part=\"checkbox-background\"]{border-color:var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));}&:where(:hover,.hover) ~ [data-part=\"checkbox-ripple\"]{box-shadow:0 0 0 0.4375rem var(--cnvs-sys-color-surface-overlay-hover-inverse, oklch(1 0 0 / 0.16));}&:where(:checked, :indeterminate):not(:disabled):not(.disabled) ~ [data-part=\"checkbox-background\"]{border-color:var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));background-color:var(--cnvs-sys-color-surface-inverse, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));}&:where(:checked, :indeterminate):where(:disabled, .disabled) ~ [data-part=\"checkbox-background\"]{background-color:var(--cnvs-sys-color-surface-inverse, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));}&:where(:focus-visible, .focus) ~ [data-part=\"checkbox-background\"]{border-color:var(--cnvs-sys-color-border-contrast-default);box-shadow:0 0 0 0rem var(--cnvs-sys-color-border-contrast-default) ,0 0 0 0.125rem var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1))) ;}&:checked:focus-visible, &:checked.focus, &:indeterminate:focus-visible, &:indeterminate.focus{& ~ div:first-of-type{box-shadow:0 0 0 0.125rem var(--cnvs-sys-color-border-contrast-default) ,0 0 0 0.25rem var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1))) ;border-color:var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));}}" }
|
|
16
16
|
},
|
|
17
17
|
disabled: {
|
|
18
|
-
true: { name: "
|
|
18
|
+
true: { name: "1a3l7y", styles: "&:where(:hover, .hover) ~ span:first-of-type{box-shadow:none;}" }
|
|
19
19
|
},
|
|
20
20
|
error: {
|
|
21
|
-
true: { name: "
|
|
21
|
+
true: { name: "3qwscf", styles: "&:not(:where(:focus-visible, .focus)) ~ div:first-of-type{border-color:var(--errorRingColorInner-checkbox-background-c73dbe);box-shadow:\n 0 0 0 0.0625rem var(--errorRingColorOuter-checkbox-background-c73dbe),\n 0 0 0 0.0625rem var(--errorRingColorInner-checkbox-background-c73dbe);}&:where(:checked, :indeterminate) ~ div:first-of-type{border-color:transparent;box-shadow:\n 0 0 0 0.125rem var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1))),\n 0 0 0 0.1875rem var(--errorRingColorInner-checkbox-background-c73dbe),\n 0 0 0 0.25rem var(--errorRingColorOuter-checkbox-background-c73dbe);}&:not(:where(:checked, :indeterminate, :disabled, :focus-visible, .focus)):where(:hover, .hover, :active, .active) ~ div:first-of-type{border-color:var(--errorRingColorInner-checkbox-background-c73dbe);}" }
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
compound: [
|
|
25
25
|
{
|
|
26
26
|
modifiers: { variant: 'inverse', error: 'true' },
|
|
27
|
-
styles: { name: "
|
|
27
|
+
styles: { name: "1giflr", styles: "&:not(:where(:focus-visible, .focus)) ~ div:first-of-type{border:0.0625rem solid var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));}&:not(:where(:checked, :indeterminate, :disabled, :focus-visible, .focus)):where(:hover, .hover, :active, .active) ~ div:first-of-type{border-color:var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));}&:where(:checked, :indeterminate) ~ div:first-of-type{border-color:var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));}" }
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
30
|
}, "checkbox-input-3ab799");
|
|
@@ -9,7 +9,7 @@ exports.checkboxRippleStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
9
9
|
parts: {
|
|
10
10
|
ripple: 'checkbox-ripple',
|
|
11
11
|
},
|
|
12
|
-
base: { name: "
|
|
12
|
+
base: { name: "3fmbh2", styles: "box-sizing:border-box;border-radius:var(--cnvs-sys-shape-full, var(--cnvs-sys-shape-round, 65rem));box-shadow:none;height:var(--cnvs-sys-size-xxxs, var(--cnvs-sys-space-x4, 1rem));width:var(--cnvs-sys-size-xxxs, var(--cnvs-sys-space-x4, 1rem));transition:box-shadow 150ms ease-out;position:absolute;pointer-events:none;" }
|
|
13
13
|
}, "checkbox-ripple-6d137e");
|
|
14
14
|
exports.CheckboxRipple = (0, common_1.createComponent)('span')({
|
|
15
15
|
displayName: 'CheckboxRipple',
|
|
@@ -27,11 +27,11 @@ const listBoxContainerStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
27
27
|
parts: {
|
|
28
28
|
listBoxContainer: 'list-box-container',
|
|
29
29
|
},
|
|
30
|
-
base: { name: "
|
|
30
|
+
base: { name: "47bxt2", styles: "box-sizing:border-box;& :where([data-part=\"list\"]){display:flex;flex-direction:column;margin-block:0;}" },
|
|
31
31
|
modifiers: {
|
|
32
32
|
orientation: {
|
|
33
|
-
vertical: { name: "
|
|
34
|
-
horizontal: { name: "
|
|
33
|
+
vertical: { name: "2ooni8", styles: "overflow-y:auto;" },
|
|
34
|
+
horizontal: { name: "n2qrx", styles: "overflow-y:undefined;& :where([data-part=\"list\"]){flex-direction:row;}" }
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}, "list-box-container-77c2bf");
|
|
@@ -17,13 +17,13 @@ exports.colorPickerHexInputStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
17
17
|
poundSign: 'color-picker-hex-input-pound-sign',
|
|
18
18
|
swatch: 'color-picker-hex-input-swatch',
|
|
19
19
|
},
|
|
20
|
-
base: { name: "
|
|
20
|
+
base: { name: "6ib91", styles: "box-sizing:border-box;--width-color-picker-hex-input-9e7717:7.25rem;position:relative;width:var(--width-color-picker-hex-input-9e7717);[data-part=\"color-picker-hex-input\"]{min-width:var(--width-color-picker-hex-input-9e7717);width:var(--width-color-picker-hex-input-9e7717);font-family:var(--cnvs-sys-font-family-mono);padding-inline-start:calc(100% - 5.375rem);&:focus::placeholder{color:transparent;}}[data-part=\"color-picker-hex-input-pound-sign\"]{position:absolute;top:0.625rem;left:5.5rem;font-family:var(--cnvs-sys-font-family-mono);}[data-part=\"color-picker-hex-input-swatch\"]{position:absolute;top:0.625rem;left:var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem));box-shadow:inset 0 0 0 0.0625rem rgba(0,0,0,0.25);pointer-events:none;@media (forced-colors: active){outline:solid 0.0625rem SelectedItemText;}}:dir(ltr){[data-part=\"color-picker-hex-input\"]{padding-inline-start:2.875rem;}[data-part=\"color-picker-hex-input-pound-sign\"]{left:2.25rem;}}" },
|
|
21
21
|
modifiers: {
|
|
22
22
|
grow: {
|
|
23
|
-
true: { name: "
|
|
23
|
+
true: { name: "2oxk69", styles: "--width-color-picker-hex-input-9e7717:100%;" }
|
|
24
24
|
},
|
|
25
25
|
disabled: {
|
|
26
|
-
true: { name: "
|
|
26
|
+
true: { name: "4cxj9", styles: "[data-part=\"color-picker-hex-input-pound-sign\"]{opacity:var(--cnvs-sys-opacity-disabled);}" }
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}, "color-picker-hex-input-9e7717");
|
|
@@ -7,7 +7,7 @@ const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
|
7
7
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
8
8
|
const ColorInput_1 = require("./ColorInput");
|
|
9
9
|
exports.colorPreviewStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "2y5s7l", styles: "box-sizing:border-box;background-color:var(--cnvs-sys-color-surface-default, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));border-color:var(--cnvs-sys-color-border-inverse-default, var(--cnvs-sys-color-border-inverse, oklch(1 0 0 / 1)));pointer-events:none;" }
|
|
11
11
|
}, "color-preview-1326de");
|
|
12
12
|
exports.ColorPreview = (0, common_1.createComponent)('input')({
|
|
13
13
|
displayName: 'ColorPreview',
|
|
@@ -13,10 +13,10 @@ exports.colorPickerColorSwatchStencil = (0, canvas_kit_styling_1.createStencil)(
|
|
|
13
13
|
color: '',
|
|
14
14
|
iconColor: '',
|
|
15
15
|
},
|
|
16
|
-
base: { name: "
|
|
16
|
+
base: { name: "2vb340", styles: "box-sizing:border-box;--color-system-icon-c9acc3:var(--iconColor-color-picker-color-swatch-5765a0);--shape-corner-shape-ccab68:var(--cnvs-sys-shape-sm, var(--cnvs-sys-shape-x1, 0.25rem));width:var(--cnvs-sys-size-xxs, var(--cnvs-sys-space-x5, 1.25rem));height:var(--cnvs-sys-size-xxs, var(--cnvs-sys-space-x5, 1.25rem));background-color:var(--color-color-picker-color-swatch-5765a0);display:flex;align-items:center;justify-content:center;forced-color-adjust:none;& > *{margin:calc(0.125rem * -1);}" },
|
|
17
17
|
modifiers: {
|
|
18
18
|
withShadow: {
|
|
19
|
-
true: { name: "
|
|
19
|
+
true: { name: "2vkj9d", styles: "box-shadow:inset 0px 0px 0px 0.0625rem rgba(0, 0, 0, 0.25);@media (forced-colors: active){outline:solid 0.0625rem SelectedItemText;}" }
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}, "color-picker-color-swatch-5765a0");
|
|
@@ -21,7 +21,7 @@ exports.useComboboxMenuList = (0, common_1.createElemPropsHook)(menu_1.useMenuMo
|
|
|
21
21
|
};
|
|
22
22
|
});
|
|
23
23
|
const comboboxMenuListStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
24
|
-
base: { name: "
|
|
24
|
+
base: { name: "2fmclj", styles: "box-sizing:border-box;" },
|
|
25
25
|
extends: menu_1.menuListStencil
|
|
26
26
|
}, "combobox-menu-list-6c92ed");
|
|
27
27
|
exports.ComboboxMenuList = (0, common_1.createSubcomponent)('ul')({
|
|
@@ -22,7 +22,7 @@ exports.accessibleHide = {
|
|
|
22
22
|
padding: 0,
|
|
23
23
|
border: 0,
|
|
24
24
|
};
|
|
25
|
-
exports.accessibleHideStyles = (0, canvas_kit_styling_1.createStyles)({ name: "
|
|
25
|
+
exports.accessibleHideStyles = (0, canvas_kit_styling_1.createStyles)({ name: "12xt1y", styles: "clip:rect(1px, 1px, 1px, 1px);clip-path:polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px);position:absolute;overflow:hidden;white-space:nowrap;height:1px;min-height:1px;width:1px;min-width:1px;margin:-1px;padding:0;border:0;" });
|
|
26
26
|
/**
|
|
27
27
|
* A convenient component wrapper to visually hide content, while still making it accessible to screen readers
|
|
28
28
|
*/
|
|
@@ -1,19 +1,310 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CanvasProviderTheme, CanvasThemingScope, EmotionCanvasTheme } from './theming';
|
|
3
|
+
/**
|
|
4
|
+
* Context for providing brand CSS variables to popup containers.
|
|
5
|
+
* This carries the resolved CSS variable style map from CanvasProvider
|
|
6
|
+
* to usePopupStack for proper popup theming, regardless of whether
|
|
7
|
+
* a numerical or legacy theme is used.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CanvasBrandStyleContext: React.Context<React.CSSProperties>;
|
|
3
10
|
export interface CanvasProviderProps {
|
|
4
11
|
/**
|
|
5
12
|
* ⚠️ Only use this prop if you intent to to theme a part of your application that is different from global theming.
|
|
6
|
-
* For more information, view our [Theming Docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs#
|
|
13
|
+
* For more information, view our [Theming Docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs#scoped-theming).
|
|
7
14
|
*
|
|
8
15
|
* While we support theme overrides, we advise to use global theming via CSS Variables.
|
|
9
16
|
*/
|
|
10
|
-
theme?:
|
|
17
|
+
theme?: CanvasProviderTheme;
|
|
18
|
+
/**
|
|
19
|
+
* How partial theme input expands. Default `'brand'`.
|
|
20
|
+
*
|
|
21
|
+
* **Numerical `brand` shape:** `'brand'` applies the `primary['600']` shortcut
|
|
22
|
+
* (PrimaryButton + selected states). `'full'` writes each ramp key literally with
|
|
23
|
+
* no shortcuts. Other `brand.*` keys always map 1:1 to CSS variables.
|
|
24
|
+
*
|
|
25
|
+
* **Legacy `canvas.palette` shape:** `'brand'` = primary.main shortcut only.
|
|
26
|
+
* `'full'` = auto-generated ramps + broad `system.color.brand.*` forwarding.
|
|
27
|
+
*
|
|
28
|
+
* @default 'brand'
|
|
29
|
+
*/
|
|
30
|
+
themeScope?: CanvasThemingScope;
|
|
11
31
|
}
|
|
12
32
|
/**
|
|
13
33
|
* If you wish to reset the theme to the default, apply this class on the CanvasProvider.
|
|
14
34
|
*/
|
|
15
35
|
export declare const defaultBranding: string;
|
|
16
|
-
|
|
36
|
+
/** Pure function — safe to call outside React hooks (e.g. usePopupStack). */
|
|
37
|
+
export declare function canvasThemeToCssVars(theme: CanvasProviderTheme | undefined, elemProps: React.HTMLAttributes<HTMLElement>, options?: {
|
|
38
|
+
themeScope?: CanvasThemingScope;
|
|
39
|
+
filledSemanticTheme?: EmotionCanvasTheme;
|
|
40
|
+
}): {
|
|
41
|
+
className: string;
|
|
42
|
+
style: React.CSSProperties;
|
|
43
|
+
defaultChecked?: boolean | undefined;
|
|
44
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
45
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
46
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
47
|
+
accessKey?: string | undefined;
|
|
48
|
+
autoFocus?: boolean | undefined;
|
|
49
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
50
|
+
contextMenu?: string | undefined;
|
|
51
|
+
dir?: string | undefined;
|
|
52
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
53
|
+
hidden?: boolean | undefined;
|
|
54
|
+
id?: string | undefined;
|
|
55
|
+
lang?: string | undefined;
|
|
56
|
+
nonce?: string | undefined;
|
|
57
|
+
slot?: string | undefined;
|
|
58
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
59
|
+
tabIndex?: number | undefined;
|
|
60
|
+
title?: string | undefined;
|
|
61
|
+
translate?: "no" | "yes" | undefined;
|
|
62
|
+
radioGroup?: string | undefined;
|
|
63
|
+
role?: React.AriaRole | undefined;
|
|
64
|
+
about?: string | undefined;
|
|
65
|
+
content?: string | undefined;
|
|
66
|
+
datatype?: string | undefined;
|
|
67
|
+
inlist?: any;
|
|
68
|
+
prefix?: string | undefined;
|
|
69
|
+
property?: string | undefined;
|
|
70
|
+
rel?: string | undefined;
|
|
71
|
+
resource?: string | undefined;
|
|
72
|
+
rev?: string | undefined;
|
|
73
|
+
typeof?: string | undefined;
|
|
74
|
+
vocab?: string | undefined;
|
|
75
|
+
autoCapitalize?: string | undefined;
|
|
76
|
+
autoCorrect?: string | undefined;
|
|
77
|
+
autoSave?: string | undefined;
|
|
78
|
+
color?: string | undefined;
|
|
79
|
+
itemProp?: string | undefined;
|
|
80
|
+
itemScope?: boolean | undefined;
|
|
81
|
+
itemType?: string | undefined;
|
|
82
|
+
itemID?: string | undefined;
|
|
83
|
+
itemRef?: string | undefined;
|
|
84
|
+
results?: number | undefined;
|
|
85
|
+
security?: string | undefined;
|
|
86
|
+
unselectable?: "on" | "off" | undefined;
|
|
87
|
+
inputMode?: "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
88
|
+
is?: string | undefined;
|
|
89
|
+
"aria-activedescendant"?: string | undefined;
|
|
90
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
91
|
+
"aria-autocomplete"?: "none" | "both" | "inline" | "list" | undefined;
|
|
92
|
+
"aria-braillelabel"?: string | undefined;
|
|
93
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
94
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
95
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
96
|
+
"aria-colcount"?: number | undefined;
|
|
97
|
+
"aria-colindex"?: number | undefined;
|
|
98
|
+
"aria-colindextext"?: string | undefined;
|
|
99
|
+
"aria-colspan"?: number | undefined;
|
|
100
|
+
"aria-controls"?: string | undefined;
|
|
101
|
+
"aria-current"?: boolean | "time" | "page" | "false" | "true" | "date" | "step" | "location" | undefined;
|
|
102
|
+
"aria-describedby"?: string | undefined;
|
|
103
|
+
"aria-description"?: string | undefined;
|
|
104
|
+
"aria-details"?: string | undefined;
|
|
105
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
106
|
+
"aria-dropeffect"?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
107
|
+
"aria-errormessage"?: string | undefined;
|
|
108
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
109
|
+
"aria-flowto"?: string | undefined;
|
|
110
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
111
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
|
|
112
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
113
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
114
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
115
|
+
"aria-label"?: string | undefined;
|
|
116
|
+
"aria-labelledby"?: string | undefined;
|
|
117
|
+
"aria-level"?: number | undefined;
|
|
118
|
+
"aria-live"?: "off" | "polite" | "assertive" | undefined;
|
|
119
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
120
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
121
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
122
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
123
|
+
"aria-owns"?: string | undefined;
|
|
124
|
+
"aria-placeholder"?: string | undefined;
|
|
125
|
+
"aria-posinset"?: number | undefined;
|
|
126
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
127
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
128
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
129
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
130
|
+
"aria-roledescription"?: string | undefined;
|
|
131
|
+
"aria-rowcount"?: number | undefined;
|
|
132
|
+
"aria-rowindex"?: number | undefined;
|
|
133
|
+
"aria-rowindextext"?: string | undefined;
|
|
134
|
+
"aria-rowspan"?: number | undefined;
|
|
135
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
136
|
+
"aria-setsize"?: number | undefined;
|
|
137
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
138
|
+
"aria-valuemax"?: number | undefined;
|
|
139
|
+
"aria-valuemin"?: number | undefined;
|
|
140
|
+
"aria-valuenow"?: number | undefined;
|
|
141
|
+
"aria-valuetext"?: string | undefined;
|
|
142
|
+
children?: React.ReactNode;
|
|
143
|
+
dangerouslySetInnerHTML?: {
|
|
144
|
+
__html: string | TrustedHTML;
|
|
145
|
+
} | undefined;
|
|
146
|
+
onCopy?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
147
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
148
|
+
onCut?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
149
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
150
|
+
onPaste?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
151
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
152
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
153
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
154
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
155
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
156
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
157
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
158
|
+
onFocus?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
159
|
+
onFocusCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
160
|
+
onBlur?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
161
|
+
onBlurCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
162
|
+
onChange?: React.FormEventHandler<HTMLElement> | undefined;
|
|
163
|
+
onChangeCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
164
|
+
onBeforeInput?: React.FormEventHandler<HTMLElement> | undefined;
|
|
165
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
166
|
+
onInput?: React.FormEventHandler<HTMLElement> | undefined;
|
|
167
|
+
onInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
168
|
+
onReset?: React.FormEventHandler<HTMLElement> | undefined;
|
|
169
|
+
onResetCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
170
|
+
onSubmit?: React.FormEventHandler<HTMLElement> | undefined;
|
|
171
|
+
onSubmitCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
172
|
+
onInvalid?: React.FormEventHandler<HTMLElement> | undefined;
|
|
173
|
+
onInvalidCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
174
|
+
onLoad?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
175
|
+
onLoadCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
176
|
+
onError?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
177
|
+
onErrorCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
178
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
179
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
180
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
181
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
182
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
183
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
184
|
+
onAbort?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
185
|
+
onAbortCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
186
|
+
onCanPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
187
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
188
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
189
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
190
|
+
onDurationChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
191
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
192
|
+
onEmptied?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
193
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
194
|
+
onEncrypted?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
195
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
196
|
+
onEnded?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
197
|
+
onEndedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
198
|
+
onLoadedData?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
199
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
200
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
201
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
202
|
+
onLoadStart?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
203
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
204
|
+
onPause?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
205
|
+
onPauseCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
206
|
+
onPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
207
|
+
onPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
208
|
+
onPlaying?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
209
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
210
|
+
onProgress?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
211
|
+
onProgressCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
212
|
+
onRateChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
213
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
214
|
+
onResize?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
215
|
+
onResizeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
216
|
+
onSeeked?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
217
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
218
|
+
onSeeking?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
219
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
220
|
+
onStalled?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
221
|
+
onStalledCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
222
|
+
onSuspend?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
223
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
224
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
225
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
226
|
+
onVolumeChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
227
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
228
|
+
onWaiting?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
229
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
230
|
+
onAuxClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
231
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
232
|
+
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
233
|
+
onClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
234
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
235
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
236
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
237
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
238
|
+
onDrag?: React.DragEventHandler<HTMLElement> | undefined;
|
|
239
|
+
onDragCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
240
|
+
onDragEnd?: React.DragEventHandler<HTMLElement> | undefined;
|
|
241
|
+
onDragEndCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
242
|
+
onDragEnter?: React.DragEventHandler<HTMLElement> | undefined;
|
|
243
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
244
|
+
onDragExit?: React.DragEventHandler<HTMLElement> | undefined;
|
|
245
|
+
onDragExitCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
246
|
+
onDragLeave?: React.DragEventHandler<HTMLElement> | undefined;
|
|
247
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
248
|
+
onDragOver?: React.DragEventHandler<HTMLElement> | undefined;
|
|
249
|
+
onDragOverCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
250
|
+
onDragStart?: React.DragEventHandler<HTMLElement> | undefined;
|
|
251
|
+
onDragStartCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
252
|
+
onDrop?: React.DragEventHandler<HTMLElement> | undefined;
|
|
253
|
+
onDropCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
254
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
255
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
256
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
257
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
258
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
259
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
260
|
+
onMouseOut?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
261
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
262
|
+
onMouseOver?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
263
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
264
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
265
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
266
|
+
onSelect?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
267
|
+
onSelectCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
268
|
+
onTouchCancel?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
269
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
270
|
+
onTouchEnd?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
271
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
272
|
+
onTouchMove?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
273
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
274
|
+
onTouchStart?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
275
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
276
|
+
onPointerDown?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
277
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
278
|
+
onPointerMove?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
279
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
280
|
+
onPointerUp?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
281
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
282
|
+
onPointerCancel?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
283
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
284
|
+
onPointerEnter?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
285
|
+
onPointerLeave?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
286
|
+
onPointerOver?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
287
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
288
|
+
onPointerOut?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
289
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
290
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
291
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
292
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
293
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
294
|
+
onScroll?: React.UIEventHandler<HTMLElement> | undefined;
|
|
295
|
+
onScrollCapture?: React.UIEventHandler<HTMLElement> | undefined;
|
|
296
|
+
onWheel?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
297
|
+
onWheelCapture?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
298
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
299
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
300
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
301
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
302
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
303
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
304
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
305
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
306
|
+
};
|
|
307
|
+
export declare const useCanvasThemeToCssVars: (theme: CanvasProviderTheme | undefined, elemProps: React.HTMLAttributes<HTMLElement>, themeScope?: CanvasThemingScope) => {
|
|
17
308
|
className: string;
|
|
18
309
|
style: React.CSSProperties;
|
|
19
310
|
defaultChecked?: boolean | undefined;
|
|
@@ -280,5 +571,5 @@ export declare const useCanvasThemeToCssVars: (theme: PartialEmotionCanvasTheme
|
|
|
280
571
|
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
281
572
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
282
573
|
};
|
|
283
|
-
export declare const CanvasProvider: ({ children, theme, ...props }: CanvasProviderProps & React.HTMLAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
|
|
574
|
+
export declare const CanvasProvider: ({ children, theme, themeScope, ...props }: CanvasProviderProps & React.HTMLAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
|
|
284
575
|
//# sourceMappingURL=CanvasProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasProvider.d.ts","sourceRoot":"","sources":["../../../../common/lib/CanvasProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,
|
|
1
|
+
{"version":3,"file":"CanvasProvider.d.ts","sourceRoot":"","sources":["../../../../common/lib/CanvasProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAOnB,MAAM,WAAW,CAAC;AASnB;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,oCAA+C,CAAC;AAEpF,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,QA+E1B,CAAC;AAEH,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,GAAG,SAAS,EACtC,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAC5C,OAAO,CAAC,EAAE;IACR,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,mBAAmB,CAAC,EAAE,kBAAkB,CAAC;CAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBF;AAED,eAAO,MAAM,uBAAuB,UAI3B,mBAAmB,GAAG,SAAS,aAC3B,MAAM,cAAc,CAAC,WAAW,CAAC,eAC/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYhC,CAAC;AAEF,eAAO,MAAM,cAAc,8CAKxB,mBAAmB,GAAG,MAAM,cAAc,CAAC,WAAW,CAAC,4CA2EzD,CAAC"}
|