carbon-react 152.2.1 → 153.0.0-beta.1
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/esm/__internal__/fieldset/fieldset.style.d.ts +3 -3
- package/esm/__internal__/focus-trap/focus-trap-utils.d.ts +1 -1
- package/esm/__internal__/focus-trap/focus-trap.component.d.ts +1 -1
- package/esm/__internal__/input/input-presentation.component.d.ts +1 -1
- package/esm/__internal__/input/input-presentation.style.d.ts +1 -1
- package/esm/__internal__/input/input.component.d.ts +1 -1
- package/esm/__internal__/popover/popover.component.d.ts +1 -1
- package/esm/__internal__/popover/popover.style.d.ts +1 -1
- package/esm/__internal__/validations/validation-icon.component.d.ts +1 -1
- package/esm/__internal__/validations/validation-icon.style.d.ts +1 -1
- package/esm/components/accordion/accordion-group/accordion-group.component.d.ts +1 -1
- package/esm/components/accordion/accordion.style.js +2 -2
- package/esm/components/action-popover/__internal__/action-popover-utils.d.ts +1 -1
- package/esm/components/action-popover/__internal__/action-popover.context.d.ts +2 -2
- package/esm/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.d.ts +1 -1
- package/esm/components/action-popover/action-popover.component.d.ts +1 -1
- package/esm/components/action-popover/action-popover.style.d.ts +1 -1
- package/esm/components/badge/badge.style.d.ts +1 -1
- package/esm/components/batch-selection/__internal__/batch-selection.context.d.ts +1 -1
- package/esm/components/box/box.component.d.ts +6 -6
- package/esm/components/breadcrumbs/__internal__/breadcrumbs.context.d.ts +1 -1
- package/esm/components/button/button.component.d.ts +8 -8
- package/esm/components/button/button.component.js +1 -1
- package/esm/components/button/button.style.js +22 -8
- package/esm/components/button-minor/button-minor.style.d.ts +1 -1
- package/esm/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +1 -1
- package/esm/components/button-toggle/button-toggle-group/button-toggle-group.style.d.ts +1 -1
- package/esm/components/button-toggle/button-toggle.style.d.ts +1 -1
- package/esm/components/carbon-provider/__internal__/top-modal.context.d.ts +1 -1
- package/esm/components/card/card.component.d.ts +2 -2
- package/esm/components/card/card.config.d.ts +2 -2
- package/esm/components/card/card.style.d.ts +2 -2
- package/esm/components/content/content.style.d.ts +2 -2
- package/esm/components/date/__internal__/date-picker/date-picker.component.d.ts +1 -1
- package/esm/components/date/__internal__/weekday/weekday.style.js +1 -1
- package/esm/components/date-range/__internal__/date-range.context.d.ts +4 -4
- package/esm/components/definition-list/__internal__/dl.context.d.ts +1 -1
- package/esm/components/dialog/dialog.component.d.ts +2 -2
- package/esm/components/dialog/dialog.config.d.ts +1 -1
- package/esm/components/dialog/dialog.style.d.ts +1 -1
- package/esm/components/dialog-full-screen/content.style.d.ts +1 -1
- package/esm/components/dialog-full-screen/content.style.js +8 -7
- package/esm/components/duelling-picklist/__internal__/duelling-picklist.context.d.ts +1 -1
- package/esm/components/duelling-picklist/picklist-divider/picklist-divider.component.d.ts +1 -1
- package/esm/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +1 -1
- package/esm/components/duelling-picklist/picklist-item/picklist-item.component.d.ts +1 -1
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +1 -1
- package/esm/components/file-input/__internal__/file-upload-status/file-upload-status.component.d.ts +1 -1
- package/esm/components/flat-table/index.d.ts +2 -2
- package/esm/components/form/__internal__/form-summary.style.d.ts +2 -2
- package/esm/components/form/form.config.d.ts +1 -1
- package/esm/components/grouped-character/grouped-character.component.d.ts +2 -2
- package/esm/components/heading/heading.component.d.ts +1 -1
- package/esm/components/heading/heading.style.d.ts +3 -3
- package/esm/components/icon/icon-type.d.ts +1 -1
- package/esm/components/icon/icon-unicodes.d.ts +248 -248
- package/esm/components/icon/icon.component.d.ts +1 -1
- package/esm/components/icon/icon.style.d.ts +3 -3
- package/esm/components/icon/icon.style.js +5 -11
- package/esm/components/image/image.style.d.ts +2 -2
- package/esm/components/inline-inputs/inline-inputs.style.d.ts +1 -1
- package/esm/components/link/link.style.d.ts +1 -1
- package/esm/components/loader-spinner/loader-spinner.config.d.ts +3 -3
- package/esm/components/loader-spinner/loader-spinner.style.js +1 -1
- package/esm/components/menu/__internal__/locators.d.ts +3 -3
- package/esm/components/menu/__internal__/menu.context.d.ts +1 -1
- package/esm/components/menu/menu-item/menu-item.component.d.ts +1 -1
- package/esm/components/menu/menu-segment-title/menu-segment-title.component.d.ts +1 -1
- package/esm/components/message/__internal__/type-icon/type-icon.style.d.ts +1 -1
- package/esm/components/message/message.component.d.ts +1 -1
- package/esm/components/message/message.style.d.ts +1 -1
- package/esm/components/modal/__internal__/modal-manager.d.ts +2 -2
- package/esm/components/modal/modal.style.d.ts +1 -1
- package/esm/components/multi-action-button/multi-action-button.component.d.ts +1 -1
- package/esm/components/multi-action-button/multi-action-button.style.d.ts +1 -1
- package/esm/components/multi-action-button/multi-action-button.style.js +6 -5
- package/esm/components/navigation-bar/__internal__/fixed-navigation-bar.context.d.ts +1 -1
- package/esm/components/navigation-bar/navigation-bar.component.d.ts +3 -3
- package/esm/components/navigation-bar/navigation-bar.style.d.ts +1 -1
- package/esm/components/numeral-date/__internal__/numeral-date.context.d.ts +1 -1
- package/esm/components/numeral-date/numeral-date.component.d.ts +2 -2
- package/esm/components/pager/pager.component.d.ts +1 -1
- package/esm/components/pod/pod.config.d.ts +3 -3
- package/esm/components/popover-container/popover-container.component.d.ts +1 -1
- package/esm/components/popover-container/popover-container.style.d.ts +3 -3
- package/esm/components/portrait/portrait.component.d.ts +2 -2
- package/esm/components/portrait/portrait.config.d.ts +1 -1
- package/esm/components/portrait/portrait.style.d.ts +1 -1
- package/esm/components/preview/preview.component.d.ts +1 -1
- package/esm/components/preview/preview.style.js +4 -4
- package/esm/components/profile/profile.config.d.ts +2 -2
- package/esm/components/progress-tracker/progress-tracker.style.js +1 -1
- package/esm/components/search/search.component.d.ts +1 -1
- package/esm/components/select/__internal__/select-list/select-list.component.d.ts +2 -2
- package/esm/components/select/__internal__/select-list/select-list.context.d.ts +1 -1
- package/esm/components/select/__internal__/select-textbox/select-textbox.context.d.ts +1 -1
- package/esm/components/select/option/option.component.d.ts +1 -1
- package/esm/components/sidebar/sidebar.component.d.ts +1 -1
- package/esm/components/sidebar/sidebar.style.d.ts +1 -1
- package/esm/components/simple-color-picker/simple-color-picker.style.d.ts +1 -1
- package/esm/components/split-button/split-button-children.style.d.ts +1 -1
- package/esm/components/split-button/split-button-toggle.style.d.ts +1 -1
- package/esm/components/split-button/split-button.component.d.ts +1 -1
- package/esm/components/step-flow/__internal__/step-flow.context.d.ts +1 -1
- package/esm/components/step-flow/step-flow.component.d.ts +2 -2
- package/esm/components/switch/switch.style.d.ts +6 -1
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +3 -4
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.d.ts +5 -5
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -2
- package/esm/components/tabs/tab/tab.style.d.ts +1 -1
- package/esm/components/text-editor/__internal__/plugins/Toolbar/toolbar.style.d.ts +1 -1
- package/esm/components/text-editor/text-editor.style.d.ts +1 -1
- package/esm/components/textarea/textarea.style.js +1 -1
- package/esm/components/tile/tile.component.d.ts +2 -2
- package/esm/components/time/time.component.d.ts +3 -3
- package/esm/components/toast/toast.component.d.ts +3 -3
- package/esm/components/toast/toast.style.d.ts +2 -2
- package/esm/components/tooltip/tooltip.component.d.ts +1 -1
- package/esm/components/tooltip/tooltip.config.d.ts +1 -1
- package/esm/components/typography/typography.component.d.ts +1 -1
- package/esm/components/typography/typography.component.js +16 -1
- package/esm/components/typography/typography.style.d.ts +1 -10
- package/esm/components/typography/typography.style.js +39 -63
- package/esm/components/vertical-divider/vertical-divider.component.d.ts +1 -1
- package/esm/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.d.ts +1 -1
- package/esm/global.d.ts +1 -1
- package/esm/hooks/__internal__/useChildButtons/useChildButtons.d.ts +1 -1
- package/esm/hooks/__internal__/useDebounce/useDebounce.d.ts +1 -1
- package/esm/hooks/__internal__/useFloating/useFloating.d.ts +1 -1
- package/esm/hooks/__internal__/useModalManager/useModalManager.d.ts +1 -1
- package/esm/hooks/__internal__/useThrottle/useThrottle.d.ts +1 -1
- package/esm/style/palette/index.d.ts +1 -1
- package/esm/style/themes/base/base-theme.config.d.ts +1 -1
- package/esm/style/utils/box-gap.d.ts +2 -2
- package/lib/__internal__/fieldset/fieldset.style.d.ts +3 -3
- package/lib/__internal__/focus-trap/focus-trap-utils.d.ts +1 -1
- package/lib/__internal__/focus-trap/focus-trap.component.d.ts +1 -1
- package/lib/__internal__/input/input-presentation.component.d.ts +1 -1
- package/lib/__internal__/input/input-presentation.style.d.ts +1 -1
- package/lib/__internal__/input/input.component.d.ts +1 -1
- package/lib/__internal__/popover/popover.component.d.ts +1 -1
- package/lib/__internal__/popover/popover.style.d.ts +1 -1
- package/lib/__internal__/validations/validation-icon.component.d.ts +1 -1
- package/lib/__internal__/validations/validation-icon.style.d.ts +1 -1
- package/lib/components/accordion/accordion-group/accordion-group.component.d.ts +1 -1
- package/lib/components/accordion/accordion.style.js +2 -2
- package/lib/components/action-popover/__internal__/action-popover-utils.d.ts +1 -1
- package/lib/components/action-popover/__internal__/action-popover.context.d.ts +2 -2
- package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.d.ts +1 -1
- package/lib/components/action-popover/action-popover.component.d.ts +1 -1
- package/lib/components/action-popover/action-popover.style.d.ts +1 -1
- package/lib/components/badge/badge.style.d.ts +1 -1
- package/lib/components/batch-selection/__internal__/batch-selection.context.d.ts +1 -1
- package/lib/components/box/box.component.d.ts +6 -6
- package/lib/components/breadcrumbs/__internal__/breadcrumbs.context.d.ts +1 -1
- package/lib/components/button/button.component.d.ts +8 -8
- package/lib/components/button/button.component.js +1 -1
- package/lib/components/button/button.style.js +22 -8
- package/lib/components/button-minor/button-minor.style.d.ts +1 -1
- package/lib/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +1 -1
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.style.d.ts +1 -1
- package/lib/components/button-toggle/button-toggle.style.d.ts +1 -1
- package/lib/components/carbon-provider/__internal__/top-modal.context.d.ts +1 -1
- package/lib/components/card/card.component.d.ts +2 -2
- package/lib/components/card/card.config.d.ts +2 -2
- package/lib/components/card/card.style.d.ts +2 -2
- package/lib/components/content/content.style.d.ts +2 -2
- package/lib/components/date/__internal__/date-picker/date-picker.component.d.ts +1 -1
- package/lib/components/date/__internal__/weekday/weekday.style.js +1 -1
- package/lib/components/date-range/__internal__/date-range.context.d.ts +4 -4
- package/lib/components/definition-list/__internal__/dl.context.d.ts +1 -1
- package/lib/components/dialog/dialog.component.d.ts +2 -2
- package/lib/components/dialog/dialog.config.d.ts +1 -1
- package/lib/components/dialog/dialog.style.d.ts +1 -1
- package/lib/components/dialog-full-screen/content.style.d.ts +1 -1
- package/lib/components/dialog-full-screen/content.style.js +8 -7
- package/lib/components/duelling-picklist/__internal__/duelling-picklist.context.d.ts +1 -1
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.component.d.ts +1 -1
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.d.ts +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +1 -1
- package/lib/components/file-input/__internal__/file-upload-status/file-upload-status.component.d.ts +1 -1
- package/lib/components/flat-table/index.d.ts +2 -2
- package/lib/components/form/__internal__/form-summary.style.d.ts +2 -2
- package/lib/components/form/form.config.d.ts +1 -1
- package/lib/components/grouped-character/grouped-character.component.d.ts +2 -2
- package/lib/components/heading/heading.component.d.ts +1 -1
- package/lib/components/heading/heading.style.d.ts +3 -3
- package/lib/components/icon/icon-type.d.ts +1 -1
- package/lib/components/icon/icon-unicodes.d.ts +248 -248
- package/lib/components/icon/icon.component.d.ts +1 -1
- package/lib/components/icon/icon.style.d.ts +3 -3
- package/lib/components/icon/icon.style.js +5 -11
- package/lib/components/image/image.style.d.ts +2 -2
- package/lib/components/inline-inputs/inline-inputs.style.d.ts +1 -1
- package/lib/components/link/link.style.d.ts +1 -1
- package/lib/components/loader-spinner/loader-spinner.config.d.ts +3 -3
- package/lib/components/loader-spinner/loader-spinner.style.js +1 -1
- package/lib/components/menu/__internal__/locators.d.ts +3 -3
- package/lib/components/menu/__internal__/menu.context.d.ts +1 -1
- package/lib/components/menu/menu-item/menu-item.component.d.ts +1 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.d.ts +1 -1
- package/lib/components/message/__internal__/type-icon/type-icon.style.d.ts +1 -1
- package/lib/components/message/message.component.d.ts +1 -1
- package/lib/components/message/message.style.d.ts +1 -1
- package/lib/components/modal/__internal__/modal-manager.d.ts +2 -2
- package/lib/components/modal/modal.style.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.component.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.style.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.style.js +6 -5
- package/lib/components/navigation-bar/__internal__/fixed-navigation-bar.context.d.ts +1 -1
- package/lib/components/navigation-bar/navigation-bar.component.d.ts +3 -3
- package/lib/components/navigation-bar/navigation-bar.style.d.ts +1 -1
- package/lib/components/numeral-date/__internal__/numeral-date.context.d.ts +1 -1
- package/lib/components/numeral-date/numeral-date.component.d.ts +2 -2
- package/lib/components/pager/pager.component.d.ts +1 -1
- package/lib/components/pod/pod.config.d.ts +3 -3
- package/lib/components/popover-container/popover-container.component.d.ts +1 -1
- package/lib/components/popover-container/popover-container.style.d.ts +3 -3
- package/lib/components/portrait/portrait.component.d.ts +2 -2
- package/lib/components/portrait/portrait.config.d.ts +1 -1
- package/lib/components/portrait/portrait.style.d.ts +1 -1
- package/lib/components/preview/preview.component.d.ts +1 -1
- package/lib/components/preview/preview.style.js +4 -4
- package/lib/components/profile/profile.config.d.ts +2 -2
- package/lib/components/progress-tracker/progress-tracker.style.js +1 -1
- package/lib/components/search/search.component.d.ts +1 -1
- package/lib/components/select/__internal__/select-list/select-list.component.d.ts +2 -2
- package/lib/components/select/__internal__/select-list/select-list.context.d.ts +1 -1
- package/lib/components/select/__internal__/select-textbox/select-textbox.context.d.ts +1 -1
- package/lib/components/select/option/option.component.d.ts +1 -1
- package/lib/components/sidebar/sidebar.component.d.ts +1 -1
- package/lib/components/sidebar/sidebar.style.d.ts +1 -1
- package/lib/components/simple-color-picker/simple-color-picker.style.d.ts +1 -1
- package/lib/components/split-button/split-button-children.style.d.ts +1 -1
- package/lib/components/split-button/split-button-toggle.style.d.ts +1 -1
- package/lib/components/split-button/split-button.component.d.ts +1 -1
- package/lib/components/step-flow/__internal__/step-flow.context.d.ts +1 -1
- package/lib/components/step-flow/step-flow.component.d.ts +2 -2
- package/lib/components/switch/switch.style.d.ts +6 -1
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +3 -4
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.d.ts +5 -5
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -2
- package/lib/components/tabs/tab/tab.style.d.ts +1 -1
- package/lib/components/text-editor/__internal__/plugins/Toolbar/toolbar.style.d.ts +1 -1
- package/lib/components/text-editor/text-editor.style.d.ts +1 -1
- package/lib/components/textarea/textarea.style.js +1 -1
- package/lib/components/tile/tile.component.d.ts +2 -2
- package/lib/components/time/time.component.d.ts +3 -3
- package/lib/components/toast/toast.component.d.ts +3 -3
- package/lib/components/toast/toast.style.d.ts +2 -2
- package/lib/components/tooltip/tooltip.component.d.ts +1 -1
- package/lib/components/tooltip/tooltip.config.d.ts +1 -1
- package/lib/components/typography/typography.component.d.ts +1 -1
- package/lib/components/typography/typography.component.js +16 -1
- package/lib/components/typography/typography.style.d.ts +1 -10
- package/lib/components/typography/typography.style.js +39 -63
- package/lib/components/vertical-divider/vertical-divider.component.d.ts +1 -1
- package/lib/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.d.ts +1 -1
- package/lib/global.d.ts +1 -1
- package/lib/hooks/__internal__/useChildButtons/useChildButtons.d.ts +1 -1
- package/lib/hooks/__internal__/useDebounce/useDebounce.d.ts +1 -1
- package/lib/hooks/__internal__/useFloating/useFloating.d.ts +1 -1
- package/lib/hooks/__internal__/useModalManager/useModalManager.d.ts +1 -1
- package/lib/hooks/__internal__/useThrottle/useThrottle.d.ts +1 -1
- package/lib/style/palette/index.d.ts +1 -1
- package/lib/style/themes/base/base-theme.config.d.ts +1 -1
- package/lib/style/utils/box-gap.d.ts +2 -2
- package/package.json +8 -8
|
@@ -106,10 +106,13 @@ const StyledNavigationButtonWrapper = styled.div`
|
|
|
106
106
|
visible,
|
|
107
107
|
size
|
|
108
108
|
}) => css`
|
|
109
|
-
height: ${size === "default" ? "48px" : "56px"}
|
|
109
|
+
height: ${size === "default" ? "48px" : "56px"};
|
|
110
110
|
z-index: 8;
|
|
111
111
|
display: ${visible ? "block" : "none"};
|
|
112
|
-
${position === "right" && `
|
|
112
|
+
${position === "right" && `
|
|
113
|
+
right: 0;
|
|
114
|
+
position: absolute;
|
|
115
|
+
`}
|
|
113
116
|
`}
|
|
114
117
|
`;
|
|
115
118
|
const StyledNavigationButton = styled.button`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeObject } from "../../../style/themes/base";
|
|
2
2
|
import { TabProps } from ".";
|
|
3
|
-
export
|
|
3
|
+
export type StyledTabProps = Pick<TabProps, "position" | "isTabSelected"> & {
|
|
4
4
|
theme?: ThemeObject;
|
|
5
5
|
};
|
|
6
6
|
declare const StyledTab: import("styled-components").StyledComponent<"div", any, Pick<TabProps, "position" | "isTabSelected"> & {
|
|
@@ -7,5 +7,5 @@ interface FormattingButtonProps extends ButtonProps {
|
|
|
7
7
|
declare const StyledToolbar: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
8
|
declare const FormattingButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
9
|
declare const CommandButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
-
declare const FormattingButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, FormattingButtonProps, never>;
|
|
10
|
+
declare const FormattingButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, any, FormattingButtonProps, never>;
|
|
11
11
|
export { StyledToolbar, FormattingButtons, CommandButtons, FormattingButton };
|
|
@@ -3,8 +3,8 @@ import * as DesignTokens from "@sage/design-tokens/js/base/common";
|
|
|
3
3
|
import { SpaceProps, WidthProps } from "styled-system";
|
|
4
4
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
5
5
|
import { TILE_HIGHLIGHT_VARIANTS } from "./tile.config";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type DesignTokensType = keyof typeof DesignTokens;
|
|
7
|
+
type HighlightVariantType = (typeof TILE_HIGHLIGHT_VARIANTS)[number];
|
|
8
8
|
export interface TileProps extends SpaceProps, WidthProps, TagProps {
|
|
9
9
|
/** Sets the theme of the tile */
|
|
10
10
|
variant?: "tile" | "transparent" | "active" | "grey";
|
|
@@ -4,8 +4,8 @@ import { ValidationProps } from "../../__internal__/validations";
|
|
|
4
4
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
5
5
|
import { Sizes } from "../../__internal__/input/input-presentation.component";
|
|
6
6
|
import { ToggleDataProps } from "./__internal__/time-toggle";
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type ToggleValue = "AM" | "PM";
|
|
8
|
+
export type TimeValue = {
|
|
9
9
|
hours: string;
|
|
10
10
|
minutes: string;
|
|
11
11
|
period?: ToggleValue;
|
|
@@ -69,7 +69,7 @@ export interface TimeProps extends TagProps, MarginProps {
|
|
|
69
69
|
/** Set custom data- attributes on the toggle elements */
|
|
70
70
|
toggleProps?: ToggleDataProps;
|
|
71
71
|
}
|
|
72
|
-
export
|
|
72
|
+
export type TimeHandle = {
|
|
73
73
|
/** Programmatically focus the hours input. */
|
|
74
74
|
focusHoursInput: () => void;
|
|
75
75
|
/** Programmatically focus the minutes input. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type ToastVariants = "error" | "info" | "success" | "warning" | "notice" | "neutral" | "notification";
|
|
4
|
+
type AlignOptions = "left" | "center" | "right";
|
|
5
|
+
type AlignYOptions = "top" | "center" | "bottom";
|
|
6
6
|
export interface ToastProps extends TagProps {
|
|
7
7
|
/** Sets the horizontal alignment of the component. */
|
|
8
8
|
align?: AlignOptions;
|
|
@@ -6,8 +6,8 @@ declare const StyledPortal: import("styled-components").StyledComponent<({ child
|
|
|
6
6
|
alignY?: "center" | "top" | "bottom" | undefined;
|
|
7
7
|
isNotice?: boolean | undefined;
|
|
8
8
|
}, never>;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type ToastVariants = MessageVariant;
|
|
10
|
+
type ToastStyleProps = {
|
|
11
11
|
align?: "left" | "center" | "right";
|
|
12
12
|
alignY?: "top" | "center" | "bottom";
|
|
13
13
|
maxWidth?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TooltipPositions } from "./tooltip.config";
|
|
3
3
|
import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
4
|
-
export
|
|
4
|
+
export type InputSizes = "small" | "medium" | "large";
|
|
5
5
|
export interface TooltipProps extends TagProps {
|
|
6
6
|
/** The message to be displayed within the tooltip */
|
|
7
7
|
message: React.ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const TOOLTIP_POSITIONS: string[];
|
|
2
|
-
export
|
|
2
|
+
export type TooltipPositions = "top" | "bottom" | "left" | "right";
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
3
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
4
4
|
export declare const VARIANT_TYPES: readonly ["h1-large", "h1", "h2", "h3", "h4", "h5", "segment-header", "segment-header-small", "segment-subheader", "segment-subheader-alt", "p", "span", "small", "big", "sup", "sub", "strong", "b", "em", "ul", "ol"];
|
|
5
|
-
export
|
|
5
|
+
export type VariantTypes = (typeof VARIANT_TYPES)[number];
|
|
6
6
|
export interface TypographyProps extends SpaceProps, TagProps {
|
|
7
7
|
/** Override the variant component */
|
|
8
8
|
as?: React.ElementType;
|
|
@@ -4,6 +4,21 @@ import tagComponent from "../../__internal__/utils/helpers/tags";
|
|
|
4
4
|
import { filterStyledSystemMarginProps, filterStyledSystemPaddingProps } from "../../style/utils";
|
|
5
5
|
import StyledTypography from "./typography.style";
|
|
6
6
|
export const VARIANT_TYPES = ["h1-large", "h1", "h2", "h3", "h4", "h5", "segment-header", "segment-header-small", "segment-subheader", "segment-subheader-alt", "p", "span", "small", "big", "sup", "sub", "strong", "b", "em", "ul", "ol"];
|
|
7
|
+
const getAs = variant => {
|
|
8
|
+
switch (variant) {
|
|
9
|
+
case "h1-large":
|
|
10
|
+
return "h1";
|
|
11
|
+
case "segment-header":
|
|
12
|
+
case "segment-header-small":
|
|
13
|
+
case "segment-subheader":
|
|
14
|
+
case "segment-subheader-alt":
|
|
15
|
+
return "h5";
|
|
16
|
+
case "big":
|
|
17
|
+
return "p";
|
|
18
|
+
default:
|
|
19
|
+
return variant;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
7
22
|
export const Typography = ({
|
|
8
23
|
"data-component": dataComponent,
|
|
9
24
|
variant = "p",
|
|
@@ -35,7 +50,7 @@ export const Typography = ({
|
|
|
35
50
|
}) => {
|
|
36
51
|
return /*#__PURE__*/React.createElement(StyledTypography, _extends({
|
|
37
52
|
variant: variant,
|
|
38
|
-
as: as,
|
|
53
|
+
as: as || getAs(variant),
|
|
39
54
|
id: id,
|
|
40
55
|
fontSize: fontSize,
|
|
41
56
|
fontWeight: fontWeight,
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TypographyProps } from "./typography.component";
|
|
3
|
-
declare const StyledTypography: import("styled-components").StyledComponent<"span", any,
|
|
4
|
-
as: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
size: string;
|
|
6
|
-
weight: string;
|
|
7
|
-
textTransform: string;
|
|
8
|
-
textDecoration: string;
|
|
9
|
-
lineHeight: string;
|
|
10
|
-
defaultMargin: string;
|
|
11
|
-
} & TypographyProps, "textDecoration" | "size" | "as" | "weight" | "textTransform" | "lineHeight" | "defaultMargin">;
|
|
2
|
+
declare const StyledTypography: import("styled-components").StyledComponent<"span", any, TypographyProps, never>;
|
|
12
3
|
export default StyledTypography;
|
|
@@ -3,21 +3,6 @@ import { space } from "styled-system";
|
|
|
3
3
|
import styledColor from "../../style/utils/color";
|
|
4
4
|
import baseTheme from "../../style/themes/base";
|
|
5
5
|
import visuallyHidden from "../../style/utils/visually-hidden";
|
|
6
|
-
const getAs = variant => {
|
|
7
|
-
switch (variant) {
|
|
8
|
-
case "h1-large":
|
|
9
|
-
return "h1";
|
|
10
|
-
case "segment-header":
|
|
11
|
-
case "segment-header-small":
|
|
12
|
-
case "segment-subheader":
|
|
13
|
-
case "segment-subheader-alt":
|
|
14
|
-
return "h5";
|
|
15
|
-
case "big":
|
|
16
|
-
return "p";
|
|
17
|
-
default:
|
|
18
|
-
return variant;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
6
|
const getSize = variant => {
|
|
22
7
|
switch (variant) {
|
|
23
8
|
case "h1-large":
|
|
@@ -125,67 +110,57 @@ const getDecoration = variant => {
|
|
|
125
110
|
}
|
|
126
111
|
return "none";
|
|
127
112
|
};
|
|
128
|
-
const StyledTypography = styled.span
|
|
129
|
-
|
|
130
|
-
as,
|
|
113
|
+
const StyledTypography = styled.span`
|
|
114
|
+
${({
|
|
131
115
|
fontSize,
|
|
132
116
|
fontWeight,
|
|
133
|
-
textTransform,
|
|
134
|
-
lineHeight,
|
|
135
|
-
textDecoration
|
|
136
|
-
}) => {
|
|
137
|
-
return {
|
|
138
|
-
as: as || getAs(variant),
|
|
139
|
-
size: fontSize || getSize(variant),
|
|
140
|
-
weight: fontWeight || getWeight(variant),
|
|
141
|
-
textTransform: textTransform || getTransform(variant),
|
|
142
|
-
textDecoration: textDecoration || getDecoration(variant),
|
|
143
|
-
lineHeight: lineHeight || getLineHeight(variant),
|
|
144
|
-
defaultMargin: variant === "p" ? "0 0 16px" : "0"
|
|
145
|
-
};
|
|
146
|
-
})`
|
|
147
|
-
${({
|
|
148
|
-
size,
|
|
149
|
-
weight,
|
|
150
|
-
textTransform,
|
|
151
|
-
lineHeight,
|
|
152
|
-
defaultMargin,
|
|
153
|
-
textDecoration,
|
|
154
117
|
display,
|
|
155
118
|
variant,
|
|
119
|
+
lineHeight: lHeight,
|
|
156
120
|
listStyleType,
|
|
157
121
|
whiteSpace,
|
|
158
122
|
wordBreak,
|
|
159
123
|
wordWrap,
|
|
160
124
|
textAlign,
|
|
125
|
+
textDecoration: decoration,
|
|
161
126
|
textOverflow,
|
|
127
|
+
textTransform: transform,
|
|
162
128
|
truncate,
|
|
163
129
|
screenReaderOnly
|
|
164
|
-
}) =>
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
130
|
+
}) => {
|
|
131
|
+
const size = fontSize || getSize(variant);
|
|
132
|
+
const weight = fontWeight || getWeight(variant);
|
|
133
|
+
const textTransform = transform || getTransform(variant);
|
|
134
|
+
const textDecoration = decoration || getDecoration(variant);
|
|
135
|
+
const lineHeight = lHeight || getLineHeight(variant);
|
|
136
|
+
const defaultMargin = variant === "p" ? "0 0 16px" : "0";
|
|
137
|
+
return css`
|
|
138
|
+
font-style: normal;
|
|
139
|
+
font-size: ${size};
|
|
140
|
+
font-weight: ${weight};
|
|
141
|
+
text-transform: ${textTransform};
|
|
142
|
+
text-decoration: ${textDecoration};
|
|
143
|
+
line-height: ${lineHeight};
|
|
144
|
+
margin: ${defaultMargin};
|
|
145
|
+
padding: 0;
|
|
146
|
+
white-space: ${truncate ? "nowrap" : whiteSpace};
|
|
147
|
+
word-break: ${wordBreak};
|
|
148
|
+
word-wrap: ${wordWrap};
|
|
149
|
+
text-align: ${textAlign};
|
|
150
|
+
text-overflow: ${textOverflow || truncate && "ellipsis"};
|
|
151
|
+
${truncate && `
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
`};
|
|
154
|
+
${screenReaderOnly && visuallyHidden}
|
|
155
|
+
${variant === "sup" && "vertical-align: super;"}
|
|
156
|
+
${variant === "sub" && "vertical-align: sub;"}
|
|
157
|
+
${display && `display: ${display};`}
|
|
158
|
+
${listStyleType && `list-style-type: ${listStyleType};`}
|
|
159
|
+
`;
|
|
160
|
+
}}
|
|
187
161
|
${space}
|
|
188
|
-
|
|
162
|
+
|
|
163
|
+
${({
|
|
189
164
|
color,
|
|
190
165
|
bg,
|
|
191
166
|
backgroundColor,
|
|
@@ -196,6 +171,7 @@ const StyledTypography = styled.span.attrs(({
|
|
|
196
171
|
backgroundColor,
|
|
197
172
|
...rest
|
|
198
173
|
})}
|
|
174
|
+
|
|
199
175
|
${({
|
|
200
176
|
isDisabled
|
|
201
177
|
}) => isDisabled && css`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceProps } from "styled-system";
|
|
2
2
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
3
|
-
|
|
3
|
+
type TintRange = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100;
|
|
4
4
|
export interface VerticalDividerProps extends SpaceProps, TagProps {
|
|
5
5
|
/** Shorthand for the height attribute */
|
|
6
6
|
h?: number | string;
|
|
@@ -22,6 +22,6 @@ export interface VerticalMenuItemProps<T = React.ElementType> extends PaddingPro
|
|
|
22
22
|
/** Optional component to render instead of the default div, useful for rendering router link components */
|
|
23
23
|
component?: T;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
type InferredComponentProps<T extends React.ElementType> = Omit<React.ComponentProps<T>, keyof VerticalMenuItemProps<T>>;
|
|
26
26
|
export declare const VerticalMenuItem: <T>({ defaultOpen, title, iconType, adornment, children, component, active, height, href, ...rest }: T extends React.ElementType<any, keyof React.JSX.IntrinsicElements> ? InferredComponentProps<T> & VerticalMenuItemProps<T> : VerticalMenuItemProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>) => React.JSX.Element;
|
|
27
27
|
export default VerticalMenuItem;
|
package/esm/global.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const useChildButtons: (toggleButtonRef: React.RefObject<HTMLButtonEleme
|
|
|
4
4
|
showButtons: () => void;
|
|
5
5
|
hideButtons: () => void;
|
|
6
6
|
buttonNode: import("react").RefObject<HTMLDivElement>;
|
|
7
|
-
handleToggleButtonKeyDown: (ev: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
7
|
+
handleToggleButtonKeyDown: (ev: React.KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
8
8
|
wrapperProps: {
|
|
9
9
|
"data-element": string;
|
|
10
10
|
role: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaletteFunction } from "../../palette";
|
|
2
|
-
export
|
|
2
|
+
export type BasePalette = Record<string, string | PaletteFunction> & {
|
|
3
3
|
blackOpacity: PaletteFunction;
|
|
4
4
|
whiteOpacity: PaletteFunction;
|
|
5
5
|
[key: string]: PaletteFunction;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const GAP_VALUES: number[];
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type AllowedNumericalValues = (typeof GAP_VALUES)[number];
|
|
3
|
+
export type Gap = AllowedNumericalValues | string;
|
|
4
4
|
export declare const getGapValue: (gapValue: number | string) => string;
|
|
5
5
|
export default function gap(gapValue: number | string): string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
type StyledFieldsetProps = {
|
|
2
2
|
width?: string;
|
|
3
3
|
};
|
|
4
4
|
declare const StyledFieldset: import("styled-components").StyledComponent<"fieldset", any, StyledFieldsetProps, never>;
|
|
5
|
-
|
|
5
|
+
type StyledLegendContentProps = {
|
|
6
6
|
isRequired?: boolean;
|
|
7
7
|
isOptional?: boolean;
|
|
8
8
|
isDisabled?: boolean;
|
|
9
9
|
};
|
|
10
10
|
declare const StyledLegendContent: import("styled-components").StyledComponent<"span", any, StyledLegendContentProps, never>;
|
|
11
|
-
export
|
|
11
|
+
export type StyledLegendProps = {
|
|
12
12
|
inline?: boolean;
|
|
13
13
|
width?: number;
|
|
14
14
|
align?: "left" | "right";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type CustomRefObject<T> = {
|
|
2
2
|
current?: T | null;
|
|
3
3
|
};
|
|
4
4
|
declare const defaultFocusableSelectors = "button:not([disabled]), [href], input:not([type=\"hidden\"]):not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare const TAB_GUARD_TOP = "tab-guard-top";
|
|
3
3
|
export declare const TAB_GUARD_BOTTOM = "tab-guard-bottom";
|
|
4
|
-
export
|
|
4
|
+
export type CustomRefObject<T> = {
|
|
5
5
|
current?: T | null;
|
|
6
6
|
};
|
|
7
7
|
export interface FocusTrapProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BorderRadiusType } from "../../components/box/box.component";
|
|
3
3
|
import { ValidationProps } from "../validations";
|
|
4
|
-
export
|
|
4
|
+
export type Sizes = "small" | "medium" | "large";
|
|
5
5
|
export interface CommonInputPresentationProps extends ValidationProps {
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
/** If true, the component will be disabled */
|
|
@@ -2,5 +2,5 @@ import { CommonInputPresentationProps } from "./input-presentation.component";
|
|
|
2
2
|
import { InputContextProps } from "../input-behaviour";
|
|
3
3
|
import { CarbonProviderProps } from "../../components/carbon-provider";
|
|
4
4
|
export declare const StyledInputPresentationContainer: import("styled-components").StyledComponent<"div", any, Pick<CommonInputPresentationProps, "maxWidth" | "inputWidth">, never>;
|
|
5
|
-
declare const InputPresentationStyle: import("styled-components").StyledComponent<"div", any, Pick<InputContextProps, "hasFocus"> & Pick<CommonInputPresentationProps, "disabled" | "error" | "info" | "warning" | "prefix" | "align" | "
|
|
5
|
+
declare const InputPresentationStyle: import("styled-components").StyledComponent<"div", any, Pick<InputContextProps, "hasFocus"> & Pick<CommonInputPresentationProps, "disabled" | "error" | "info" | "warning" | "prefix" | "align" | "size" | "readOnly" | "borderRadius" | "hasIcon" | "hideBorders"> & Pick<CarbonProviderProps, "validationRedesignOptIn">, never>;
|
|
6
6
|
export default InputPresentationStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BorderRadiusType } from "../../components/box/box.component";
|
|
3
|
-
export
|
|
3
|
+
export type EnterKeyHintTypes = "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
4
4
|
export interface CommonInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
5
5
|
align?: "right" | "left";
|
|
6
6
|
/** The id of the element that describe the input. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const StyledBackdrop: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
|
|
2
|
+
type StyledPopoverContentProps = {
|
|
3
3
|
isOpen?: boolean;
|
|
4
4
|
};
|
|
5
5
|
export declare const StyledPopoverContent: import("styled-components").StyledComponent<"div", any, StyledPopoverContentProps, never>;
|
|
@@ -17,7 +17,7 @@ export interface ValidationProps {
|
|
|
17
17
|
*/
|
|
18
18
|
warning?: boolean | string;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
type TooltipPositions = "top" | "bottom" | "left" | "right";
|
|
21
21
|
export interface ValidationIconProps extends ValidationProps, Pick<MarginProps, "mr" | "ml"> {
|
|
22
22
|
/** A small string to indicate the size of the icon */
|
|
23
23
|
size?: "small" | "medium" | "large";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValidationIconProps } from "./validation-icon.component";
|
|
2
|
-
|
|
2
|
+
type ValidationType = "error" | "warning" | "info";
|
|
3
3
|
declare const ValidationIconStyle: import("styled-components").StyledComponent<"span", any, ValidationIconProps & {
|
|
4
4
|
validationType: ValidationType;
|
|
5
5
|
}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { MarginProps } from "styled-system";
|
|
3
3
|
import { TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
4
|
-
|
|
4
|
+
type AccordionGroupChild = React.ReactElement | boolean | null | undefined | AccordionGroupChildArray;
|
|
5
5
|
interface AccordionGroupChildArray extends Array<AccordionGroupChild> {
|
|
6
6
|
}
|
|
7
7
|
export interface AccordionGroupProps extends MarginProps, TagProps {
|
|
@@ -81,8 +81,8 @@ const StyledAccordionIcon = exports.StyledAccordionIcon = (0, _styledComponents.
|
|
|
81
81
|
isExpanded,
|
|
82
82
|
iconAlign
|
|
83
83
|
}) => {
|
|
84
|
-
return isExpanded && (iconAlign === "right" ? "transform: rotate(180deg)" : "transform: rotate(-180deg)");
|
|
85
|
-
}}
|
|
84
|
+
return isExpanded && (iconAlign === "right" ? "transform: rotate(180deg);" : "transform: rotate(-180deg);");
|
|
85
|
+
}}
|
|
86
86
|
|
|
87
87
|
color: var(--colorsActionMinor500);
|
|
88
88
|
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
type ReactItem = React.ReactChild | React.ReactFragment | React.ReactPortal;
|
|
3
3
|
export declare const getItems: (children: React.ReactNode | React.ReactNode[]) => ReactItem[];
|
|
4
4
|
export declare const isItemDisabled: (item: ReactItem) => boolean;
|
|
5
5
|
export declare const findFirstFocusableItem: (items: ReactItem[]) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type Alignment = "left" | "right";
|
|
3
|
+
type ActionPopoverContextType = {
|
|
4
4
|
setOpenPopover: (isOpen: boolean) => void;
|
|
5
5
|
focusButton: () => void;
|
|
6
6
|
submenuPosition: Alignment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ButtonIconPosition, ButtonTypes, SizeOptions } from "../../button/button.component";
|
|
3
3
|
import { IconType } from "../../icon";
|
|
4
|
-
export
|
|
4
|
+
export type ActionPopoverMenuButtonAria = {
|
|
5
5
|
"aria-haspopup": string;
|
|
6
6
|
"aria-label"?: string;
|
|
7
7
|
"aria-labelledby"?: string;
|
|
@@ -40,7 +40,7 @@ export interface ActionPopoverProps extends MarginProps, TagProps {
|
|
|
40
40
|
/** Prop to specify an aria-describedby for the component */
|
|
41
41
|
"aria-describedby"?: string;
|
|
42
42
|
}
|
|
43
|
-
export
|
|
43
|
+
export type ActionPopoverHandle = {
|
|
44
44
|
focusButton: () => void;
|
|
45
45
|
} | null;
|
|
46
46
|
export declare const ActionPopover: React.ForwardRefExoticComponent<ActionPopoverProps & React.RefAttributes<ActionPopoverHandle>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
declare const Menu: import("styled-components").StyledComponent<"ul", any, {
|
|
3
3
|
isOpen?: boolean | undefined;
|
|
4
4
|
}, never>;
|
|
5
|
-
|
|
5
|
+
type StyledMenuItemProps = {
|
|
6
6
|
isDisabled: boolean;
|
|
7
7
|
horizontalAlignment?: "left" | "right";
|
|
8
8
|
submenuPosition?: "left" | "right";
|
|
@@ -7,7 +7,7 @@ interface StyledBadgeProps {
|
|
|
7
7
|
isHovered?: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const StyledBadge: import("styled-components").StyledComponent<"span", any, {
|
|
10
|
-
as: import("react").ForwardRefExoticComponent<import("../button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>> | undefined;
|
|
10
|
+
as: import("react").ForwardRefExoticComponent<import("../button").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> | undefined;
|
|
11
11
|
} & StyledBadgeProps, "as">;
|
|
12
12
|
declare const StyledCrossIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../icon").IconProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
13
13
|
export { StyledBadge, StyledBadgeWrapper, StyledCrossIcon, StyledCounter };
|