carbon-react 105.1.1 → 106.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/esm/__internal__/tooltip-provider/index.d.ts +19 -24
- package/esm/__internal__/tooltip-provider/index.js +1 -11
- package/esm/__internal__/utils/helpers/browser/index.d.ts +15 -1
- package/esm/__internal__/utils/helpers/browser/index.js +33 -1
- package/esm/__internal__/utils/helpers/browser-type-check/index.d.ts +7 -1
- package/esm/__internal__/utils/helpers/browser-type-check/index.js +8 -1
- package/esm/__internal__/utils/helpers/events/composedPath.d.ts +1 -1
- package/esm/__internal__/utils/helpers/events/events.d.ts +132 -31
- package/esm/__internal__/utils/helpers/events/events.js +10 -125
- package/esm/__internal__/utils/helpers/guid/index.d.ts +5 -0
- package/esm/__internal__/utils/helpers/guid/{guid.js → index.js} +0 -2
- package/esm/__internal__/utils/helpers/tags/tags-specs/tags-specs.d.ts +4 -2
- package/esm/__internal__/utils/helpers/tags/tags-specs/tags-specs.js +2 -1
- package/esm/__internal__/utils/helpers/tags/tags.d.ts +10 -6
- package/esm/__internal__/utils/helpers/tags/tags.js +2 -6
- package/esm/__internal__/utils/helpers/useUniqueId/index.d.ts +2 -0
- package/esm/__internal__/utils/helpers/useUniqueId/index.js +7 -0
- package/esm/__internal__/utils/logger/index.d.ts +5 -1
- package/esm/__internal__/utils/logger/index.js +25 -1
- package/esm/__spec_helper__/mock-match-media.d.ts +3 -1
- package/esm/components/app-wrapper/app-wrapper.component.d.ts +4 -0
- package/esm/components/app-wrapper/app-wrapper.component.js +5 -3
- package/esm/components/badge/badge.style.d.ts +4 -2
- package/esm/components/button/button-types.style.d.ts +1 -2
- package/esm/components/button/button-types.style.js +3 -1
- package/esm/components/button/button.component.d.ts +67 -36
- package/esm/components/button/button.component.js +3314 -165
- package/esm/components/button/button.config.d.ts +4 -3
- package/esm/components/button/button.style.d.ts +6 -8
- package/esm/components/button/button.style.js +51 -95
- package/esm/components/button/index.d.ts +2 -2
- package/esm/components/confirm/confirm.component.js +1 -1
- package/esm/components/dialog/dialog.component.js +1 -1
- package/esm/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/esm/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +1 -2
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +1 -2
- package/esm/components/fieldset/fieldset.component.d.ts +6 -1
- package/esm/components/fieldset/fieldset.component.js +14 -15
- package/esm/components/heading/heading.component.d.ts +5 -0
- package/esm/components/icon/index.d.ts +1 -0
- package/esm/components/multi-action-button/multi-action-button.component.d.ts +3 -1
- package/esm/components/multi-action-button/multi-action-button.component.js +7 -5
- package/esm/components/multi-action-button/multi-action-button.d.ts +4 -2
- package/esm/components/multi-step-wizard/multi-step-wizard.d.ts +22 -0
- package/esm/components/multi-step-wizard/step/step.d.ts +6 -0
- package/esm/components/multi-step-wizard/step/step.style.d.ts +4 -2
- package/esm/components/portrait/portrait-initials.component.js +1 -1
- package/esm/components/radio-button/radio-button-svg.component.js +29 -16
- package/esm/components/scrollable-list/scrollable-list.component.d.ts +8 -0
- package/esm/components/select/option/index.d.ts +1 -1
- package/esm/components/select/select-list/select-list.component.js +1 -1
- package/esm/components/select/select-textbox/select-textbox.component.js +1 -1
- package/esm/components/split-button/split-button-toggle.style.d.ts +2 -6
- package/esm/components/split-button/split-button.component.d.ts +3 -1
- package/esm/components/split-button/split-button.component.js +7 -4
- package/esm/components/split-button/split-button.d.ts +5 -2
- package/esm/components/textbox/textbox.component.d.ts +1 -2
- package/esm/components/textbox/textbox.component.js +7 -6
- package/esm/components/tooltip/index.d.ts +2 -1
- package/esm/components/tooltip/tooltip-pointer.style.d.ts +10 -1
- package/esm/components/tooltip/tooltip-pointer.style.js +5 -12
- package/esm/components/tooltip/tooltip.component.d.ts +33 -2
- package/esm/components/tooltip/tooltip.component.js +255 -110
- package/esm/components/tooltip/tooltip.config.d.ts +2 -1
- package/esm/components/tooltip/tooltip.style.d.ts +7 -2
- package/esm/components/tooltip/tooltip.style.js +7 -21
- package/esm/components/typography/typography.component.d.ts +1 -1
- package/esm/hooks/__internal__/useCharacterCount/index.d.ts +1 -2
- package/esm/hooks/__internal__/useCharacterCount/index.js +1 -18
- package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.d.ts +3 -0
- package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.js +24 -0
- package/esm/hooks/__internal__/useInputAccessibility/index.d.ts +1 -24
- package/esm/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +11 -11
- package/esm/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +1 -3
- package/esm/hooks/__internal__/useIsAboveBreakpoint/index.d.ts +1 -1
- package/esm/hooks/__internal__/useIsAboveBreakpoint/index.js +1 -6
- package/esm/hooks/__internal__/useIsAboveBreakpoint/useIsAboveBreakpoint.d.ts +1 -0
- package/esm/hooks/__internal__/useIsAboveBreakpoint/useIsAboveBreakpoint.js +6 -0
- package/esm/hooks/__internal__/useLocale/index.d.ts +1 -1
- package/esm/hooks/__internal__/useLocale/index.js +1 -5
- package/esm/hooks/__internal__/useLocale/useLocale.d.ts +1 -0
- package/esm/hooks/__internal__/useLocale/useLocale.js +5 -0
- package/esm/hooks/__internal__/useResizeObserver/index.d.ts +1 -10
- package/esm/hooks/__internal__/useResizeObserver/index.js +1 -23
- package/esm/hooks/__internal__/useResizeObserver/useResizeObserver.d.ts +8 -0
- package/esm/hooks/__internal__/useResizeObserver/useResizeObserver.js +29 -0
- package/esm/hooks/__internal__/useScrollBlock/index.d.ts +1 -4
- package/esm/hooks/__internal__/useScrollBlock/scroll-block-manager.d.ts +23 -9
- package/esm/hooks/__internal__/useScrollBlock/scroll-block-manager.js +24 -12
- package/esm/hooks/__internal__/useScrollBlock/useScrollBlock.d.ts +2 -2
- package/esm/hooks/__internal__/useScrollBlock/useScrollBlock.js +3 -5
- package/esm/hooks/useMediaQuery/index.d.ts +1 -1
- package/esm/hooks/useMediaQuery/index.js +1 -19
- package/esm/hooks/useMediaQuery/useMediaQuery.d.ts +1 -0
- package/esm/hooks/useMediaQuery/useMediaQuery.js +19 -0
- package/esm/locales/en-gb.d.ts +3 -5
- package/esm/locales/en-gb.js +5 -4
- package/esm/locales/index.d.ts +1 -1
- package/esm/locales/index.js +2 -0
- package/esm/locales/locale.d.ts +99 -105
- package/esm/locales/locale.js +1 -0
- package/esm/locales/pl-pl.d.ts +3 -5
- package/esm/locales/pl-pl.js +5 -4
- package/esm/style/{fonts → assets}/carbon-icons-webfont.woff +0 -0
- package/esm/style/fonts.css +30 -0
- package/esm/style/global-style.js +1 -1
- package/esm/style/themes/base/base-theme.config.d.ts +17 -8
- package/esm/style/themes/sage/index.d.ts +17 -8
- package/lib/__internal__/tooltip-provider/index.d.ts +19 -24
- package/lib/__internal__/tooltip-provider/index.js +2 -13
- package/lib/__internal__/utils/helpers/browser/index.d.ts +15 -1
- package/lib/__internal__/utils/helpers/browser/index.js +33 -8
- package/lib/__internal__/utils/helpers/browser-type-check/index.d.ts +7 -1
- package/lib/__internal__/utils/helpers/browser-type-check/index.js +10 -21
- package/lib/__internal__/utils/helpers/events/composedPath.d.ts +1 -1
- package/lib/__internal__/utils/helpers/events/events.d.ts +132 -31
- package/lib/__internal__/utils/helpers/events/events.js +10 -125
- package/lib/__internal__/utils/helpers/guid/index.d.ts +5 -0
- package/lib/__internal__/utils/helpers/guid/{guid.js → index.js} +0 -2
- package/lib/__internal__/utils/helpers/guid/package.json +5 -2
- package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.d.ts +4 -2
- package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.js +2 -1
- package/lib/__internal__/utils/helpers/tags/tags.d.ts +10 -6
- package/lib/__internal__/utils/helpers/tags/tags.js +2 -6
- package/lib/__internal__/utils/helpers/useUniqueId/index.d.ts +2 -0
- package/lib/__internal__/utils/helpers/useUniqueId/index.js +20 -0
- package/lib/__internal__/utils/helpers/useUniqueId/package.json +6 -0
- package/lib/__internal__/utils/logger/index.d.ts +5 -1
- package/lib/__internal__/utils/logger/index.js +26 -8
- package/lib/__spec_helper__/mock-match-media.d.ts +3 -1
- package/lib/components/app-wrapper/app-wrapper.component.d.ts +4 -0
- package/lib/components/app-wrapper/app-wrapper.component.js +5 -4
- package/lib/components/badge/badge.style.d.ts +4 -2
- package/lib/components/button/button-types.style.d.ts +1 -2
- package/lib/components/button/button-types.style.js +0 -1
- package/lib/components/button/button.component.d.ts +67 -36
- package/lib/components/button/button.component.js +3381 -172
- package/lib/components/button/button.config.d.ts +4 -3
- package/lib/components/button/button.style.d.ts +6 -8
- package/lib/components/button/button.style.js +52 -101
- package/lib/components/button/index.d.ts +2 -2
- package/lib/components/confirm/confirm.component.js +1 -1
- package/lib/components/dialog/dialog.component.js +1 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +1 -2
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +1 -2
- package/lib/components/fieldset/fieldset.component.d.ts +6 -1
- package/lib/components/fieldset/fieldset.component.js +14 -16
- package/lib/components/heading/heading.component.d.ts +5 -0
- package/lib/components/icon/index.d.ts +1 -0
- package/lib/components/multi-action-button/multi-action-button.component.d.ts +3 -1
- package/lib/components/multi-action-button/multi-action-button.component.js +6 -4
- package/lib/components/multi-action-button/multi-action-button.d.ts +4 -2
- package/lib/components/multi-step-wizard/multi-step-wizard.d.ts +22 -0
- package/lib/components/multi-step-wizard/step/step.d.ts +6 -0
- package/lib/components/multi-step-wizard/step/step.style.d.ts +4 -2
- package/lib/components/portrait/portrait-initials.component.js +1 -1
- package/lib/components/radio-button/radio-button-svg.component.js +38 -20
- package/lib/components/scrollable-list/scrollable-list.component.d.ts +8 -0
- package/lib/components/select/option/index.d.ts +1 -1
- package/lib/components/select/select-list/select-list.component.js +1 -1
- package/lib/components/select/select-textbox/select-textbox.component.js +1 -1
- package/lib/components/split-button/split-button-toggle.style.d.ts +2 -6
- package/lib/components/split-button/split-button.component.d.ts +3 -1
- package/lib/components/split-button/split-button.component.js +6 -3
- package/lib/components/split-button/split-button.d.ts +5 -2
- package/lib/components/textbox/textbox.component.d.ts +1 -2
- package/lib/components/textbox/textbox.component.js +7 -8
- package/lib/components/tooltip/index.d.ts +2 -1
- package/lib/components/tooltip/tooltip-pointer.style.d.ts +10 -1
- package/lib/components/tooltip/tooltip-pointer.style.js +7 -15
- package/lib/components/tooltip/tooltip.component.d.ts +33 -2
- package/lib/components/tooltip/tooltip.component.js +221 -130
- package/lib/components/tooltip/tooltip.config.d.ts +2 -1
- package/lib/components/tooltip/tooltip.style.d.ts +7 -2
- package/lib/components/tooltip/tooltip.style.js +7 -22
- package/lib/components/typography/typography.component.d.ts +1 -1
- package/lib/components/vertical-divider/vertical-divider.component.js +3 -0
- package/lib/hooks/__internal__/useCharacterCount/index.d.ts +1 -2
- package/lib/hooks/__internal__/useCharacterCount/index.js +8 -27
- package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.d.ts +3 -0
- package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.js +40 -0
- package/lib/hooks/__internal__/useInputAccessibility/index.d.ts +1 -24
- package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +11 -11
- package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +1 -3
- package/lib/hooks/__internal__/useIsAboveBreakpoint/index.d.ts +1 -1
- package/lib/hooks/__internal__/useIsAboveBreakpoint/index.js +8 -9
- package/lib/hooks/__internal__/useIsAboveBreakpoint/useIsAboveBreakpoint.d.ts +1 -0
- package/lib/hooks/__internal__/useIsAboveBreakpoint/useIsAboveBreakpoint.js +16 -0
- package/lib/hooks/__internal__/useLocale/index.d.ts +1 -1
- package/lib/hooks/__internal__/useLocale/index.js +8 -9
- package/lib/hooks/__internal__/useLocale/useLocale.d.ts +1 -0
- package/lib/hooks/__internal__/useLocale/useLocale.js +16 -0
- package/lib/hooks/__internal__/useResizeObserver/index.d.ts +1 -10
- package/lib/hooks/__internal__/useResizeObserver/index.js +8 -24
- package/lib/hooks/__internal__/useResizeObserver/useResizeObserver.d.ts +8 -0
- package/lib/hooks/__internal__/useResizeObserver/useResizeObserver.js +37 -0
- package/lib/hooks/__internal__/useScrollBlock/index.d.ts +1 -4
- package/lib/hooks/__internal__/useScrollBlock/scroll-block-manager.d.ts +23 -9
- package/lib/hooks/__internal__/useScrollBlock/scroll-block-manager.js +24 -12
- package/lib/hooks/__internal__/useScrollBlock/useScrollBlock.d.ts +2 -2
- package/lib/hooks/__internal__/useScrollBlock/useScrollBlock.js +3 -5
- package/lib/hooks/useMediaQuery/index.d.ts +1 -1
- package/lib/hooks/useMediaQuery/index.js +8 -25
- package/lib/hooks/useMediaQuery/useMediaQuery.d.ts +1 -0
- package/lib/hooks/useMediaQuery/useMediaQuery.js +32 -0
- package/lib/locales/en-gb.d.ts +3 -5
- package/lib/locales/en-gb.js +2 -1
- package/lib/locales/index.d.ts +1 -1
- package/lib/locales/index.js +23 -0
- package/lib/locales/locale.d.ts +99 -105
- package/lib/locales/locale.js +5 -0
- package/lib/{__internal__/utils/ether → locales}/package.json +1 -1
- package/lib/locales/pl-pl.d.ts +3 -5
- package/lib/locales/pl-pl.js +2 -1
- package/lib/style/{fonts → assets}/carbon-icons-webfont.woff +0 -0
- package/lib/style/fonts.css +30 -0
- package/lib/style/global-style.js +1 -1
- package/lib/style/themes/base/base-theme.config.d.ts +17 -8
- package/lib/style/themes/sage/index.d.ts +17 -8
- package/package.json +10 -5
- package/esm/__internal__/utils/ether/ether.d.ts +0 -19
- package/esm/__internal__/utils/ether/ether.js +0 -29
- package/esm/__internal__/utils/ether/index.d.ts +0 -1
- package/esm/__internal__/utils/ether/index.js +0 -1
- package/esm/__internal__/utils/helpers/browser/browser.d.ts +0 -17
- package/esm/__internal__/utils/helpers/browser/browser.js +0 -198
- package/esm/__internal__/utils/helpers/browser-type-check/browser-type-check.d.ts +0 -7
- package/esm/__internal__/utils/helpers/browser-type-check/browser-type-check.js +0 -14
- package/esm/__internal__/utils/helpers/guid/__spec__.d.ts +0 -1
- package/esm/__internal__/utils/helpers/guid/__spec__.js +0 -10
- package/esm/__internal__/utils/helpers/guid/guid.d.ts +0 -2
- package/esm/__internal__/utils/helpers/guid/package.json +0 -3
- package/esm/__internal__/utils/helpers/immutable/__spec__.d.ts +0 -1
- package/esm/__internal__/utils/helpers/immutable/__spec__.js +0 -117
- package/esm/__internal__/utils/helpers/immutable/immutable.d.ts +0 -4
- package/esm/__internal__/utils/helpers/immutable/immutable.js +0 -36
- package/esm/__internal__/utils/helpers/immutable/package.json +0 -4
- package/esm/__internal__/utils/helpers/with-unique-id-props/index.d.ts +0 -1
- package/esm/__internal__/utils/helpers/with-unique-id-props/index.js +0 -1
- package/esm/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.d.ts +0 -7
- package/esm/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.js +0 -82
- package/esm/__internal__/utils/logger/logger.d.ts +0 -9
- package/esm/__internal__/utils/logger/logger.js +0 -71
- package/esm/components/button/button.d.ts +0 -85
- package/esm/components/tooltip/tooltip.d.ts +0 -40
- package/lib/__internal__/utils/ether/ether.d.ts +0 -19
- package/lib/__internal__/utils/ether/ether.js +0 -33
- package/lib/__internal__/utils/ether/index.d.ts +0 -1
- package/lib/__internal__/utils/ether/index.js +0 -18
- package/lib/__internal__/utils/helpers/browser/browser.d.ts +0 -17
- package/lib/__internal__/utils/helpers/browser/browser.js +0 -213
- package/lib/__internal__/utils/helpers/browser-type-check/browser-type-check.d.ts +0 -7
- package/lib/__internal__/utils/helpers/browser-type-check/browser-type-check.js +0 -26
- package/lib/__internal__/utils/helpers/guid/__spec__.d.ts +0 -1
- package/lib/__internal__/utils/helpers/guid/__spec__.js +0 -15
- package/lib/__internal__/utils/helpers/guid/guid.d.ts +0 -2
- package/lib/__internal__/utils/helpers/immutable/__spec__.d.ts +0 -1
- package/lib/__internal__/utils/helpers/immutable/__spec__.js +0 -135
- package/lib/__internal__/utils/helpers/immutable/immutable.d.ts +0 -4
- package/lib/__internal__/utils/helpers/immutable/immutable.js +0 -46
- package/lib/__internal__/utils/helpers/immutable/package.json +0 -4
- package/lib/__internal__/utils/helpers/with-unique-id-props/index.d.ts +0 -1
- package/lib/__internal__/utils/helpers/with-unique-id-props/index.js +0 -15
- package/lib/__internal__/utils/helpers/with-unique-id-props/package.json +0 -6
- package/lib/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.d.ts +0 -7
- package/lib/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.js +0 -96
- package/lib/__internal__/utils/logger/logger.d.ts +0 -9
- package/lib/__internal__/utils/logger/logger.js +0 -78
- package/lib/components/button/button.d.ts +0 -85
- package/lib/components/tooltip/tooltip.d.ts +0 -40
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export const
|
|
3
|
-
export const
|
|
1
|
+
import { ButtonTypes } from "./button.component";
|
|
2
|
+
export declare const BUTTON_VARIANTS: ButtonTypes[];
|
|
3
|
+
export declare const BUTTON_SIZES: string[];
|
|
4
|
+
export declare const BUTTON_ICON_POSITIONS: string[];
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const StyledButton: import("styled-components").StyledComponent<"button", any, {
|
|
4
|
-
iconOnly
|
|
5
|
-
disabled: any;
|
|
6
|
-
buttonType: any;
|
|
7
|
-
size: any;
|
|
8
|
-
destructive: any;
|
|
1
|
+
import { SpaceProps } from "styled-system";
|
|
2
|
+
import { ButtonProps } from "./button.component";
|
|
3
|
+
declare const StyledButton: import("styled-components").StyledComponent<"button", any, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<ButtonProps, "as"> & {
|
|
4
|
+
iconOnly?: boolean | undefined;
|
|
9
5
|
}, never>;
|
|
6
|
+
export declare const StyledButtonSubtext: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
|
+
export default StyledButton;
|
|
@@ -9,80 +9,19 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
9
9
|
|
|
10
10
|
var _styledSystem = require("styled-system");
|
|
11
11
|
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
|
-
var _propTypes2 = _interopRequireDefault(require("@styled-system/prop-types"));
|
|
15
|
-
|
|
16
12
|
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
17
13
|
|
|
18
14
|
var _buttonTypes = _interopRequireDefault(require("./button-types.style"));
|
|
19
15
|
|
|
20
16
|
var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
21
17
|
|
|
22
|
-
var _button = require("./button.config");
|
|
23
|
-
|
|
24
|
-
var _iconConfig = require("../icon/icon-config");
|
|
25
|
-
|
|
26
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
19
|
|
|
28
20
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
29
21
|
|
|
30
22
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
23
|
|
|
32
|
-
|
|
33
|
-
${_styledSystem.space}
|
|
34
|
-
${({
|
|
35
|
-
disabled,
|
|
36
|
-
noWrap
|
|
37
|
-
}) => (0, _styledComponents.css)`
|
|
38
|
-
align-items: center;
|
|
39
|
-
cursor: ${disabled ? "not-allowed" : "pointer"};
|
|
40
|
-
display: inline-flex;
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
flex-flow: wrap;
|
|
43
|
-
border-radius: 0;
|
|
44
|
-
|
|
45
|
-
${noWrap && (0, _styledComponents.css)`
|
|
46
|
-
white-space: nowrap;
|
|
47
|
-
`}
|
|
48
|
-
justify-content: center;
|
|
49
|
-
vertical-align: middle;
|
|
50
|
-
outline-offset: 0;
|
|
51
|
-
${stylingForType}
|
|
52
|
-
`}
|
|
53
|
-
|
|
54
|
-
${({
|
|
55
|
-
fullWidth
|
|
56
|
-
}) => fullWidth && (0, _styledComponents.css)`
|
|
57
|
-
width: 100%;
|
|
58
|
-
`}
|
|
59
|
-
|
|
60
|
-
${({
|
|
61
|
-
iconOnly,
|
|
62
|
-
iconPosition
|
|
63
|
-
}) => (0, _styledComponents.css)`
|
|
64
|
-
${_icon.default} {
|
|
65
|
-
margin-left: ${!iconOnly && iconPosition === "after" ? "var(--spacing100)" : "0px"};
|
|
66
|
-
margin-right: ${!iconOnly && iconPosition === "before" ? "var(--spacing100)" : "0px"};
|
|
67
|
-
margin-bottom: ${iconOnly ? "1px" : "0px"};
|
|
68
|
-
height: ${additionalIconStyle};
|
|
69
|
-
svg {
|
|
70
|
-
margin-top: 0;
|
|
71
|
-
}
|
|
72
|
-
${iconOnly && "margin-left: auto; margin-right: auto"}
|
|
73
|
-
}
|
|
74
|
-
`}
|
|
75
|
-
`;
|
|
76
|
-
const StyledButtonSubtext = _styledComponents.default.span`
|
|
77
|
-
font-size: 14px;
|
|
78
|
-
font-weight: 400;
|
|
79
|
-
display: block;
|
|
80
|
-
`;
|
|
81
|
-
exports.StyledButtonSubtext = StyledButtonSubtext;
|
|
82
|
-
|
|
83
|
-
function additionalIconStyle({
|
|
84
|
-
iconType
|
|
85
|
-
}) {
|
|
24
|
+
function additionalIconStyle(iconType) {
|
|
86
25
|
if (iconType === "services") return "6px";
|
|
87
26
|
return "16px";
|
|
88
27
|
}
|
|
@@ -112,7 +51,7 @@ function stylingForIconOnly(size) {
|
|
|
112
51
|
function stylingForType({
|
|
113
52
|
iconOnly,
|
|
114
53
|
disabled,
|
|
115
|
-
buttonType,
|
|
54
|
+
buttonType = "secondary",
|
|
116
55
|
size,
|
|
117
56
|
destructive
|
|
118
57
|
}) {
|
|
@@ -145,47 +84,59 @@ function stylingForType({
|
|
|
145
84
|
`;
|
|
146
85
|
}
|
|
147
86
|
|
|
148
|
-
StyledButton
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
/** The text the button displays */
|
|
161
|
-
children: _propTypes.default.node.isRequired,
|
|
162
|
-
|
|
163
|
-
/** Apply destructive style to the button */
|
|
164
|
-
destructive: _propTypes.default.bool,
|
|
165
|
-
|
|
166
|
-
/** Apply disabled state to the button */
|
|
167
|
-
disabled: _propTypes.default.bool,
|
|
168
|
-
|
|
169
|
-
/** Apply fullWidth style to the button */
|
|
170
|
-
fullWidth: _propTypes.default.bool,
|
|
171
|
-
|
|
172
|
-
/** Apply iconOnly to display button with the icon only */
|
|
173
|
-
iconOnly: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
|
|
174
|
-
|
|
175
|
-
/** Defines an Icon position within the button */
|
|
176
|
-
iconPosition: _propTypes.default.oneOf([..._button.BUTTON_ICON_POSITIONS, ""]),
|
|
177
|
-
|
|
178
|
-
/** Defines an Icon type within the button (see Icon for options) */
|
|
179
|
-
iconType: _propTypes.default.oneOf([..._iconConfig.ICONS, ""]),
|
|
87
|
+
const StyledButton = _styledComponents.default.button`
|
|
88
|
+
${_styledSystem.space}
|
|
89
|
+
${({
|
|
90
|
+
disabled,
|
|
91
|
+
noWrap
|
|
92
|
+
}) => (0, _styledComponents.css)`
|
|
93
|
+
align-items: center;
|
|
94
|
+
cursor: ${disabled ? "not-allowed" : "pointer"};
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
flex-flow: wrap;
|
|
98
|
+
border-radius: 0;
|
|
180
99
|
|
|
181
|
-
|
|
182
|
-
|
|
100
|
+
${noWrap && (0, _styledComponents.css)`
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
`}
|
|
103
|
+
justify-content: center;
|
|
104
|
+
vertical-align: middle;
|
|
105
|
+
outline-offset: 0;
|
|
106
|
+
${stylingForType}
|
|
107
|
+
`}
|
|
183
108
|
|
|
184
|
-
|
|
185
|
-
|
|
109
|
+
${({
|
|
110
|
+
fullWidth
|
|
111
|
+
}) => fullWidth && (0, _styledComponents.css)`
|
|
112
|
+
width: 100%;
|
|
113
|
+
`}
|
|
186
114
|
|
|
187
|
-
|
|
188
|
-
|
|
115
|
+
${({
|
|
116
|
+
iconOnly,
|
|
117
|
+
iconPosition,
|
|
118
|
+
iconType
|
|
119
|
+
}) => (0, _styledComponents.css)`
|
|
120
|
+
${_icon.default} {
|
|
121
|
+
margin-left: ${!iconOnly && iconPosition === "after" ? "var(--spacing100)" : "0px"};
|
|
122
|
+
margin-right: ${!iconOnly && iconPosition === "before" ? "var(--spacing100)" : "0px"};
|
|
123
|
+
margin-bottom: ${iconOnly ? "1px" : "0px"};
|
|
124
|
+
height: ${additionalIconStyle(iconType)};
|
|
125
|
+
svg {
|
|
126
|
+
margin-top: 0;
|
|
127
|
+
}
|
|
128
|
+
${iconOnly && "margin-left: auto; margin-right: auto"}
|
|
129
|
+
}
|
|
130
|
+
`}
|
|
131
|
+
`;
|
|
132
|
+
const StyledButtonSubtext = _styledComponents.default.span`
|
|
133
|
+
font-size: 14px;
|
|
134
|
+
font-weight: 400;
|
|
135
|
+
display: block;
|
|
136
|
+
`;
|
|
137
|
+
exports.StyledButtonSubtext = StyledButtonSubtext;
|
|
138
|
+
StyledButton.defaultProps = {
|
|
139
|
+
theme: _base.default
|
|
189
140
|
};
|
|
190
141
|
var _default = StyledButton;
|
|
191
142
|
exports.default = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from "./button";
|
|
2
|
-
export
|
|
1
|
+
export { default, ButtonWithForwardRef } from "./button.component";
|
|
2
|
+
export type { ButtonProps } from "./button.component";
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid
|
|
12
|
+
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid"));
|
|
13
13
|
|
|
14
14
|
var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid
|
|
12
|
+
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid"));
|
|
13
13
|
|
|
14
14
|
var _modal = _interopRequireDefault(require("../modal"));
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid
|
|
12
|
+
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid"));
|
|
13
13
|
|
|
14
14
|
var _modal = _interopRequireDefault(require("../modal"));
|
|
15
15
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export const StyledGroupWrapper: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
2
2
|
export const StyledPicklistGroupUl: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
3
3
|
export const StyledPicklistGroup: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
4
|
-
export const StyledGroupButton: import("styled-components").StyledComponent<
|
|
5
|
-
import { ButtonWithForwardRef } from "../../button/button";
|
|
4
|
+
export const StyledGroupButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export const StyledPicklistItem: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
2
|
-
export const StyledButton: import("styled-components").StyledComponent<
|
|
2
|
+
export const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
3
3
|
export const StyledLockIcon: import("styled-components").StyledComponent<typeof Icon, any, {}, never>;
|
|
4
|
-
import { ButtonWithForwardRef } from "../../button/button";
|
|
5
4
|
import Icon from "../../icon";
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export default Fieldset;
|
|
2
|
-
declare function Fieldset(
|
|
2
|
+
declare function Fieldset({ children, inline, legend, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
children: any;
|
|
5
|
+
inline: any;
|
|
6
|
+
legend: any;
|
|
7
|
+
}): JSX.Element;
|
|
3
8
|
declare namespace Fieldset {
|
|
4
9
|
namespace propTypes {
|
|
5
10
|
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -11,8 +11,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes2 = _interopRequireDefault(require("@styled-system/prop-types"));
|
|
13
13
|
|
|
14
|
-
var _ether = require("../../__internal__/utils/ether");
|
|
15
|
-
|
|
16
14
|
var _tags = _interopRequireDefault(require("../../__internal__/utils/helpers/tags/tags"));
|
|
17
15
|
|
|
18
16
|
var _utils = require("../../style/utils");
|
|
@@ -27,32 +25,32 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
27
25
|
|
|
28
26
|
const marginPropTypes = (0, _utils.filterStyledSystemMarginProps)(_propTypes2.default.space);
|
|
29
27
|
|
|
30
|
-
const Fieldset =
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
const Fieldset = ({
|
|
29
|
+
children,
|
|
30
|
+
inline,
|
|
31
|
+
legend,
|
|
32
|
+
...rest
|
|
33
|
+
}) => {
|
|
34
|
+
const getLegend = () => {
|
|
35
|
+
if (!legend) return null;
|
|
33
36
|
return /*#__PURE__*/_react.default.createElement(_fieldset.LegendContainerStyle, {
|
|
34
|
-
inline:
|
|
37
|
+
inline: inline,
|
|
35
38
|
"data-component": "legend-style"
|
|
36
39
|
}, /*#__PURE__*/_react.default.createElement("legend", {
|
|
37
40
|
"data-element": "legend"
|
|
38
|
-
},
|
|
41
|
+
}, legend));
|
|
39
42
|
};
|
|
40
43
|
|
|
41
|
-
const { ...safeProps
|
|
42
|
-
} = (0, _ether.validProps)({
|
|
43
|
-
propTypes: Fieldset.propTypes,
|
|
44
|
-
props
|
|
45
|
-
});
|
|
46
44
|
return /*#__PURE__*/_react.default.createElement(_carbonProvider.NewValidationContext.Provider, {
|
|
47
45
|
value: {
|
|
48
46
|
validationRedesignOptIn: false
|
|
49
47
|
}
|
|
50
|
-
}, /*#__PURE__*/_react.default.createElement(_fieldset.FieldsetStyle, _extends({}, (0, _tags.default)("fieldset",
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_fieldset.FieldsetStyle, _extends({}, (0, _tags.default)("fieldset", rest), rest, {
|
|
51
49
|
m: 0
|
|
52
|
-
}, (0, _utils.filterStyledSystemMarginProps)(
|
|
50
|
+
}, (0, _utils.filterStyledSystemMarginProps)(rest)), /*#__PURE__*/_react.default.createElement(_fieldset.FieldsetContentStyle, {
|
|
53
51
|
"data-component": "fieldset-style",
|
|
54
|
-
inline:
|
|
55
|
-
},
|
|
52
|
+
inline: inline
|
|
53
|
+
}, getLegend(), children)));
|
|
56
54
|
};
|
|
57
55
|
|
|
58
56
|
Fieldset.propTypes = {
|
|
@@ -44,6 +44,11 @@ declare class Heading extends React.Component<any, any, any> {
|
|
|
44
44
|
* @return {Object} JSX
|
|
45
45
|
*/
|
|
46
46
|
get pills(): Object;
|
|
47
|
+
/**
|
|
48
|
+
* @method render
|
|
49
|
+
* @return {Object} JSX
|
|
50
|
+
*/
|
|
51
|
+
render(): Object;
|
|
47
52
|
}
|
|
48
53
|
declare namespace Heading {
|
|
49
54
|
namespace propTypes {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default MultiActionButton;
|
|
2
|
-
declare function MultiActionButton({ align, disabled, as, buttonType, size, children, text, subtext, ...rest }: {
|
|
2
|
+
declare function MultiActionButton({ align, disabled, as, buttonType, size, children, text, subtext, "data-element": dataElement, "data-role": dataRole, ...rest }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
align?: string | undefined;
|
|
5
5
|
disabled: any;
|
|
@@ -9,6 +9,8 @@ declare function MultiActionButton({ align, disabled, as, buttonType, size, chil
|
|
|
9
9
|
children: any;
|
|
10
10
|
text: any;
|
|
11
11
|
subtext: any;
|
|
12
|
+
"data-element": any;
|
|
13
|
+
"data-role": any;
|
|
12
14
|
}): JSX.Element;
|
|
13
15
|
declare namespace MultiActionButton {
|
|
14
16
|
const propTypes: {
|
|
@@ -45,6 +45,8 @@ const MultiActionButton = ({
|
|
|
45
45
|
children,
|
|
46
46
|
text,
|
|
47
47
|
subtext,
|
|
48
|
+
"data-element": dataElement,
|
|
49
|
+
"data-role": dataRole,
|
|
48
50
|
...rest
|
|
49
51
|
}) => {
|
|
50
52
|
if (!deprecatedWarnTriggered && as) {
|
|
@@ -159,7 +161,6 @@ const MultiActionButton = ({
|
|
|
159
161
|
disabled,
|
|
160
162
|
displayed: showAdditionalButtons,
|
|
161
163
|
onTouchStart: showButtons,
|
|
162
|
-
onClick: rest.onClick,
|
|
163
164
|
onFocus: focusMainButton,
|
|
164
165
|
onBlur: () => {
|
|
165
166
|
isMainButtonFocused.current = false;
|
|
@@ -167,7 +168,8 @@ const MultiActionButton = ({
|
|
|
167
168
|
onKeyDown: handleMainButtonKeyDown,
|
|
168
169
|
buttonType: buttonType || as,
|
|
169
170
|
size,
|
|
170
|
-
subtext
|
|
171
|
+
subtext,
|
|
172
|
+
...(0, _utils.filterOutStyledSystemSpacingProps)(rest)
|
|
171
173
|
};
|
|
172
174
|
|
|
173
175
|
if (!disabled) {
|
|
@@ -211,8 +213,8 @@ const MultiActionButton = ({
|
|
|
211
213
|
onMouseLeave: hideButtons,
|
|
212
214
|
ref: ref,
|
|
213
215
|
"data-component": "multi-action-button",
|
|
214
|
-
"data-element":
|
|
215
|
-
"data-role":
|
|
216
|
+
"data-element": dataElement,
|
|
217
|
+
"data-role": dataRole,
|
|
216
218
|
align: align,
|
|
217
219
|
displayed: showAdditionalButtons
|
|
218
220
|
}, (0, _utils.filterStyledSystemMarginProps)(rest)), /*#__PURE__*/_react.default.createElement(_button.default, _extends({
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SplitButtonProps } from "../split-button";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export interface MultiActionButtonProps extends SplitButtonProps {
|
|
4
4
|
/** Button type: "primary" | "secondary" | "tertiary" */
|
|
5
5
|
buttonType?: "primary" | "secondary" | "tertiary";
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
declare function MultiActionButton(props: MultiActionButtonProps): JSX.Element;
|
|
9
|
+
|
|
8
10
|
export default MultiActionButton;
|
|
@@ -8,6 +8,21 @@ declare class MultiStepWizard extends React.Component<any, any, any> {
|
|
|
8
8
|
* @return {void}
|
|
9
9
|
*/
|
|
10
10
|
getChildContext(): void;
|
|
11
|
+
/**
|
|
12
|
+
* A lifecycle method that is called before initial render.
|
|
13
|
+
* Can set up state of component without causing a re-render.
|
|
14
|
+
*
|
|
15
|
+
* @method componentWillMount
|
|
16
|
+
*/
|
|
17
|
+
UNSAFE_componentWillMount(): void;
|
|
18
|
+
/**
|
|
19
|
+
* A lifecycle method to update the currentStep state when a new valid value has been specified.
|
|
20
|
+
*
|
|
21
|
+
* @method componentWillReceiveProps
|
|
22
|
+
* @param {Object} props The new props passed down to the component
|
|
23
|
+
* @return {void}
|
|
24
|
+
*/
|
|
25
|
+
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
11
26
|
/**
|
|
12
27
|
* Validate step props
|
|
13
28
|
*
|
|
@@ -50,6 +65,13 @@ declare class MultiStepWizard extends React.Component<any, any, any> {
|
|
|
50
65
|
* @return {Object} JSX
|
|
51
66
|
*/
|
|
52
67
|
get wizardStepsHTML(): Object;
|
|
68
|
+
/**
|
|
69
|
+
* Renders the component.
|
|
70
|
+
*
|
|
71
|
+
* @method render
|
|
72
|
+
* @return {Object} JSX
|
|
73
|
+
*/
|
|
74
|
+
render(): Object;
|
|
53
75
|
}
|
|
54
76
|
declare namespace MultiStepWizard {
|
|
55
77
|
namespace propTypes {
|
|
@@ -124,6 +124,12 @@ declare class Step extends React.Component<any, any, any> {
|
|
|
124
124
|
* @return {String}
|
|
125
125
|
*/
|
|
126
126
|
get mainClasses(): string;
|
|
127
|
+
/**
|
|
128
|
+
* Renders the component.
|
|
129
|
+
*
|
|
130
|
+
* @method render
|
|
131
|
+
*/
|
|
132
|
+
render(): JSX.Element;
|
|
127
133
|
}
|
|
128
134
|
declare namespace Step {
|
|
129
135
|
namespace propTypes {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export const StyledStep: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
2
|
export const StyledStepContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export const StyledStepButton: import("styled-components").StyledComponent<
|
|
3
|
+
export const StyledStepButton: import("styled-components").StyledComponent<{
|
|
4
|
+
({ size, subtext, as, children, forwardRef, "aria-label": ariaLabel, disabled, destructive, buttonType: buttonTypeProp, iconType, iconPosition, href, m, px, noWrap, target, rel, iconTooltipMessage, iconTooltipPosition, fullWidth, ...rest }: import("../../button").ButtonProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
}, any, {}, never>;
|
|
4
7
|
export const StyledStepIndicatorBar: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
8
|
export const StyledStepIndicatorBackground: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
9
|
export const StyledStepIndicatorIconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
10
|
export const StepIndicatorIconPlaceholder: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
11
|
export const StepIndicatorIconContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
12
|
export const StyledStepIndicatorIcon: import("styled-components").StyledComponent<typeof Icon, any, {}, never>;
|
|
10
|
-
import Button from "../../button";
|
|
11
13
|
import Icon from "../../icon";
|
|
@@ -60,7 +60,7 @@ const PortraitInitials = ({
|
|
|
60
60
|
canvas.height = dimensions; // Select a font family to support different language characters
|
|
61
61
|
// like Arial
|
|
62
62
|
|
|
63
|
-
context.font = `${Math.round(canvas.width / 2.4)}px
|
|
63
|
+
context.font = `${Math.round(canvas.width / 2.4)}px "Sage UI", Arial`;
|
|
64
64
|
context.textAlign = "center"; // Setup background and front color
|
|
65
65
|
|
|
66
66
|
context.fillStyle = _common.default[bgColor];
|
|
@@ -1,34 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
4
|
+
value: true,
|
|
5
5
|
});
|
|
6
|
+
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
11
|
|
|
10
|
-
var _checkableInputSvgWrapper = _interopRequireDefault(
|
|
12
|
+
var _checkableInputSvgWrapper = _interopRequireDefault(
|
|
13
|
+
require("../../__internal__/checkable-input/checkable-input-svg-wrapper.style")
|
|
14
|
+
);
|
|
11
15
|
|
|
12
|
-
function _interopRequireDefault(obj) {
|
|
16
|
+
function _interopRequireDefault(obj) {
|
|
17
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
18
|
+
}
|
|
13
19
|
|
|
14
20
|
const RadioButtonSvg = () => {
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
return /*#__PURE__*/ _react.default.createElement(
|
|
22
|
+
_checkableInputSvgWrapper.default,
|
|
23
|
+
null,
|
|
24
|
+
/*#__PURE__*/ _react.default.createElement(
|
|
25
|
+
"svg",
|
|
26
|
+
{
|
|
27
|
+
focusable: "false",
|
|
28
|
+
viewBox: "0 0 15 15",
|
|
29
|
+
},
|
|
30
|
+
/*#__PURE__*/ _react.default.createElement(
|
|
31
|
+
"g",
|
|
32
|
+
{
|
|
33
|
+
stroke: "none",
|
|
34
|
+
strokeWidth: "1",
|
|
35
|
+
fill: "none",
|
|
36
|
+
fillRule: "evenodd",
|
|
37
|
+
},
|
|
38
|
+
/*#__PURE__*/ _react.default.createElement("circle", {
|
|
39
|
+
className: "radio-button-check",
|
|
40
|
+
fill: "#FFFFFF",
|
|
41
|
+
cx: "7.5",
|
|
42
|
+
cy: "7.5",
|
|
43
|
+
r: "5",
|
|
44
|
+
})
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
);
|
|
30
48
|
};
|
|
31
49
|
|
|
32
|
-
var _default = /*#__PURE__*/_react.default.memo(RadioButtonSvg, () => true);
|
|
50
|
+
var _default = /*#__PURE__*/ _react.default.memo(RadioButtonSvg, () => true);
|
|
33
51
|
|
|
34
|
-
exports.default = _default;
|
|
52
|
+
exports.default = _default;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
export default ScrollableList;
|
|
2
2
|
declare class ScrollableList extends React.Component<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
|
+
state: {
|
|
5
|
+
selectedItem: number;
|
|
6
|
+
};
|
|
4
7
|
blockOptionsHover: boolean;
|
|
5
8
|
scrollBox: React.RefObject<any>;
|
|
9
|
+
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
10
|
+
componentDidUpdate(prevProps: any): void;
|
|
11
|
+
componentDidMount(): void;
|
|
12
|
+
componentWillUnmount(): void;
|
|
6
13
|
updateScroll(item: any): void;
|
|
7
14
|
setScrollTop({ item, children, listHeight, itemHeight }: {
|
|
8
15
|
item: any;
|
|
@@ -28,6 +35,7 @@ declare class ScrollableList extends React.Component<any, any, any> {
|
|
|
28
35
|
};
|
|
29
36
|
}) => void;
|
|
30
37
|
handleKeyDown: (e: any) => void;
|
|
38
|
+
render(): JSX.Element;
|
|
31
39
|
}
|
|
32
40
|
declare namespace ScrollableList {
|
|
33
41
|
namespace propTypes {
|
|
@@ -4,7 +4,7 @@ export interface OptionProps {
|
|
|
4
4
|
/** The option's visible text, displayed within <Textbox> of <Select>, and used for filtering */
|
|
5
5
|
text: string;
|
|
6
6
|
/** Optional: alternative rendered content, displayed within <SelectList> of <Select> (eg: an icon, an image, etc) */
|
|
7
|
-
children?: React.
|
|
7
|
+
children?: React.ReactNode;
|
|
8
8
|
/** The option's invisible internal value */
|
|
9
9
|
value: string | Record<string, unknown>;
|
|
10
10
|
/** MultiSelect only - custom Pill border color - provide any color from palette or any valid css color value. */
|
|
@@ -31,7 +31,7 @@ var _loader = _interopRequireDefault(require("../../loader"));
|
|
|
31
31
|
|
|
32
32
|
var _option = _interopRequireDefault(require("../option/option.component"));
|
|
33
33
|
|
|
34
|
-
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid
|
|
34
|
+
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid"));
|
|
35
35
|
|
|
36
36
|
var _selectListContext = _interopRequireDefault(require("../__internal__/select-list-context"));
|
|
37
37
|
|
|
@@ -15,7 +15,7 @@ var _textbox = _interopRequireDefault(require("../../textbox"));
|
|
|
15
15
|
|
|
16
16
|
var _selectText = _interopRequireDefault(require("../__internal__/select-text/select-text.component"));
|
|
17
17
|
|
|
18
|
-
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid
|
|
18
|
+
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid"));
|
|
19
19
|
|
|
20
20
|
var _useLocale = _interopRequireDefault(require("../../../hooks/__internal__/useLocale"));
|
|
21
21
|
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export default StyledSplitButtonToggle;
|
|
2
|
-
declare const StyledSplitButtonToggle: import("styled-components").StyledComponent<"button", any, {
|
|
3
|
-
iconOnly
|
|
4
|
-
disabled: any;
|
|
5
|
-
buttonType: any;
|
|
6
|
-
size: any;
|
|
7
|
-
destructive: any;
|
|
2
|
+
declare const StyledSplitButtonToggle: import("styled-components").StyledComponent<"button", any, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<import("../button").ButtonProps, "as"> & {
|
|
3
|
+
iconOnly?: boolean | undefined;
|
|
8
4
|
}, never>;
|