@cloudscape-design/components 3.0.989 → 3.0.991
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/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +34 -34
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/button-group/analytics-metadata/interfaces.d.ts +10 -0
- package/button-group/analytics-metadata/interfaces.d.ts.map +1 -0
- package/button-group/analytics-metadata/interfaces.js +4 -0
- package/button-group/analytics-metadata/interfaces.js.map +1 -0
- package/button-group/index.d.ts.map +1 -1
- package/button-group/index.js +6 -1
- package/button-group/index.js.map +1 -1
- package/button-group/internal.d.ts.map +1 -1
- package/button-group/internal.js +2 -2
- package/button-group/internal.js.map +1 -1
- package/button-group/item-element.d.ts +1 -0
- package/button-group/item-element.d.ts.map +1 -1
- package/button-group/item-element.js +7 -4
- package/button-group/item-element.js.map +1 -1
- package/button-group/menu-dropdown-item.d.ts +1 -0
- package/button-group/menu-dropdown-item.d.ts.map +1 -1
- package/button-group/menu-dropdown-item.js +3 -2
- package/button-group/menu-dropdown-item.js.map +1 -1
- package/copy-to-clipboard/interfaces.d.ts +10 -0
- package/copy-to-clipboard/interfaces.d.ts.map +1 -1
- package/copy-to-clipboard/interfaces.js.map +1 -1
- package/copy-to-clipboard/internal.d.ts +1 -1
- package/copy-to-clipboard/internal.d.ts.map +1 -1
- package/copy-to-clipboard/internal.js +3 -3
- package/copy-to-clipboard/internal.js.map +1 -1
- package/flashbar/interfaces.d.ts +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/internal/base-component/styles.scoped.css +14 -0
- package/internal/components/drag-handle/button.js +1 -1
- package/internal/components/drag-handle/button.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.d.ts +2 -0
- package/internal/generated/styles/tokens.js +2 -0
- package/internal/generated/theming/index.cjs +62 -0
- package/internal/generated/theming/index.js +62 -0
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/popover/container.d.ts +1 -1
- package/popover/container.d.ts.map +1 -1
- package/popover/container.js +7 -1
- package/popover/container.js.map +1 -1
- package/test-utils/dom/autosuggest/index.js +2 -1
- package/test-utils/dom/autosuggest/index.js.map +1 -1
- package/test-utils/dom/internal/dropdown-host.js +2 -1
- package/test-utils/dom/internal/dropdown-host.js.map +1 -1
- package/test-utils/selectors/autosuggest/index.js +2 -1
- package/test-utils/selectors/autosuggest/index.js.map +1 -1
- package/test-utils/selectors/internal/dropdown-host.js +2 -1
- package/test-utils/selectors/internal/dropdown-host.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-dropdown-item.js","sourceRoot":"","sources":["../../../src/button-group/menu-dropdown-item.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,OAAO,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAA0B,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGjF,OAAO,cAAc,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-dropdown-item.js","sourceRoot":"","sources":["../../../src/button-group/menu-dropdown-item.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,OAAO,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAA0B,mBAAmB,EAAE,MAAM,oBA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O,IAAI,CAC5D,oBAAC,OAAO,IACN,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,IAAI,CAAC,EAAE,EACjB,KAAK,EAAE,IAAI,CAAC,IAAI,EAChB,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,sBAAsB,CAAC,CAAC,EAC/E,SAAS,EAAE,gBAAgB,GAC3B,CACH;YACD,oBAAC,cAAc,IACb,GAAG,EAAE,UAAU,EACf,OAAO,EAAC,MAAM,EACd,SAAS,EAAE,SAAS,iBACP,IAAI,CAAC,EAAE,EACpB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,EACpD,QAAQ,EAAC,UAAU,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAC,EAAE,GACV,CACE,CACP,GACD,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalButton from '../button/internal';\nimport { ButtonDropdownProps } from '../button-dropdown/interfaces';\nimport ButtonDropdown from '../button-dropdown/internal';\nimport Tooltip from '../internal/components/tooltip';\nimport { CancelableEventHandler, fireCancelableEvent } from '../internal/events';\nimport { ButtonGroupProps } from './interfaces';\n\nimport testUtilStyles from './test-classes/styles.css.js';\n\ninterface MenuDropdownItemProps {\n item: ButtonGroupProps.MenuDropdown;\n showTooltip: boolean;\n onTooltipDismiss: () => void;\n onItemClick?: CancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n expandToViewport?: boolean;\n position: string;\n}\n\nconst MenuDropdownItem = React.forwardRef(\n (\n { item, showTooltip, onItemClick, onTooltipDismiss, expandToViewport, position }: MenuDropdownItemProps,\n ref: React.Ref<ButtonDropdownProps.Ref>\n ) => {\n const containerRef = React.useRef<HTMLDivElement>(null);\n const onClickHandler = (event: CustomEvent<ButtonDropdownProps.ItemClickDetails>) => {\n fireCancelableEvent(onItemClick, { id: event.detail.id, checked: event.detail.checked }, event);\n };\n\n return (\n <ButtonDropdown\n ref={ref}\n variant=\"icon\"\n items={item.items}\n onItemClick={onClickHandler}\n expandToViewport={expandToViewport}\n ariaLabel={item.text}\n className={testUtilStyles['button-group-item']}\n position={position}\n data-testid={item.id}\n disabled={item.disabled}\n customTriggerBuilder={({ onClick, isOpen, triggerRef, ariaLabel, ariaExpanded, testUtilsClass }) => (\n <div ref={containerRef} {...(item.disabled ? {} : getAnalyticsMetadataAttribute({ detail: { position } }))}>\n {!isOpen && showTooltip && !item.disabled && !item.loading && (\n <Tooltip\n trackRef={containerRef}\n trackKey={item.id}\n value={item.text}\n className={clsx(testUtilStyles.tooltip, testUtilStyles['button-group-tooltip'])}\n onDismiss={onTooltipDismiss}\n />\n )}\n <InternalButton\n ref={triggerRef}\n variant=\"icon\"\n ariaLabel={ariaLabel}\n data-itemid={item.id}\n ariaExpanded={ariaExpanded}\n className={clsx(testUtilStyles.item, testUtilsClass)}\n iconName=\"ellipsis\"\n loading={item.loading}\n loadingText={item.loadingText}\n disabled={item.disabled}\n disabledReason={item.disabledReason}\n onClick={onClick}\n __title=\"\"\n />\n </div>\n )}\n />\n );\n }\n);\n\nexport default MenuDropdownItem;\n"]}
|
|
@@ -42,6 +42,16 @@ export interface CopyToClipboardProps extends BaseComponentProps {
|
|
|
42
42
|
* Enable this setting if you need the popover to ignore its parent stacking context.
|
|
43
43
|
*/
|
|
44
44
|
popoverRenderWithPortal?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Renders the copy to clipboard button as disabled and prevents clicks.
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Provides a reason why the copy to clipboard button is disabled (only when `disabled` is `true`).
|
|
51
|
+
* If provided, the copy to clipboard button becomes focusable.
|
|
52
|
+
* Applicable for all variants except inline.
|
|
53
|
+
*/
|
|
54
|
+
disabledReason?: string;
|
|
45
55
|
}
|
|
46
56
|
export declare namespace CopyToClipboardProps {
|
|
47
57
|
type Variant = 'button' | 'icon' | 'inline';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/copy-to-clipboard/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC9D;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC;IAEvC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/copy-to-clipboard/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC9D;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC;IAEvC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,oBAAoB,CAAC;IACpC,KAAY,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;CACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/copy-to-clipboard/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface CopyToClipboardProps extends BaseComponentProps {\n /** Determines the general styling of the copy button as follows:\n *\n * * `button` to display a standalone secondary button with an icon, and `copyButtonText` as text.\n * * `icon` to display a standalone icon-only (no text) button.\n * * `inline` to display an icon-only (no text) button within a text context.\n *\n * Defaults to `button`.\n */\n variant?: CopyToClipboardProps.Variant;\n\n /**\n * The text of the copy button (for variant=\"button\").\n */\n copyButtonText?: string;\n\n /**\n * Adds `aria-label` to the copy button. Use this to provide an accessible name for buttons that don't have visible text,\n * and to distinguish between multiple buttons with identical visible text. The text will also be added to the `title` attribute of the button.\n */\n copyButtonAriaLabel?: string;\n\n /**\n * The text content to be copied. It is displayed next to the copy button when `variant=\"inline\"` unless when `content` is specified, and is not shown otherwise.\n */\n textToCopy: string;\n\n /**\n * The text content to display next to the copy button when `variant=\"inline\"`. If not provided, `textToCopy` will be displayed instead.\n */\n textToDisplay?: string;\n\n /**\n * The message shown when the text is copied successfully.\n */\n copySuccessText: string;\n\n /**\n * The message shown when the text is not copied due to an error, see [https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext](https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext).\n */\n copyErrorText: string;\n\n /**\n * By default, the popover is constrained to fit inside its parent\n * [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).\n * Enabling this property will allow the popover to be rendered in the root stack context using\n * [React Portals](https://reactjs.org/docs/portals.html).\n * Enable this setting if you need the popover to ignore its parent stacking context.\n */\n popoverRenderWithPortal?: boolean;\n}\n\nexport namespace CopyToClipboardProps {\n export type Variant = 'button' | 'icon' | 'inline';\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/copy-to-clipboard/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface CopyToClipboardProps extends BaseComponentProps {\n /** Determines the general styling of the copy button as follows:\n *\n * * `button` to display a standalone secondary button with an icon, and `copyButtonText` as text.\n * * `icon` to display a standalone icon-only (no text) button.\n * * `inline` to display an icon-only (no text) button within a text context.\n *\n * Defaults to `button`.\n */\n variant?: CopyToClipboardProps.Variant;\n\n /**\n * The text of the copy button (for variant=\"button\").\n */\n copyButtonText?: string;\n\n /**\n * Adds `aria-label` to the copy button. Use this to provide an accessible name for buttons that don't have visible text,\n * and to distinguish between multiple buttons with identical visible text. The text will also be added to the `title` attribute of the button.\n */\n copyButtonAriaLabel?: string;\n\n /**\n * The text content to be copied. It is displayed next to the copy button when `variant=\"inline\"` unless when `content` is specified, and is not shown otherwise.\n */\n textToCopy: string;\n\n /**\n * The text content to display next to the copy button when `variant=\"inline\"`. If not provided, `textToCopy` will be displayed instead.\n */\n textToDisplay?: string;\n\n /**\n * The message shown when the text is copied successfully.\n */\n copySuccessText: string;\n\n /**\n * The message shown when the text is not copied due to an error, see [https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext](https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext).\n */\n copyErrorText: string;\n\n /**\n * By default, the popover is constrained to fit inside its parent\n * [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).\n * Enabling this property will allow the popover to be rendered in the root stack context using\n * [React Portals](https://reactjs.org/docs/portals.html).\n * Enable this setting if you need the popover to ignore its parent stacking context.\n */\n popoverRenderWithPortal?: boolean;\n\n /**\n * Renders the copy to clipboard button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the copy to clipboard button is disabled (only when `disabled` is `true`).\n * If provided, the copy to clipboard button becomes focusable.\n * Applicable for all variants except inline.\n */\n disabledReason?: string;\n}\n\nexport namespace CopyToClipboardProps {\n export type Variant = 'button' | 'icon' | 'inline';\n}\n"]}
|
|
@@ -3,6 +3,6 @@ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component
|
|
|
3
3
|
import { CopyToClipboardProps } from './interfaces';
|
|
4
4
|
interface InternalCopyToClipboardProps extends CopyToClipboardProps, InternalBaseComponentProps {
|
|
5
5
|
}
|
|
6
|
-
export default function InternalCopyToClipboard({ variant, copyButtonAriaLabel, copyButtonText, copySuccessText, copyErrorText, textToCopy, textToDisplay, popoverRenderWithPortal, __internalRootRef, ...restProps }: InternalCopyToClipboardProps): JSX.Element;
|
|
6
|
+
export default function InternalCopyToClipboard({ variant, copyButtonAriaLabel, copyButtonText, copySuccessText, copyErrorText, textToCopy, textToDisplay, popoverRenderWithPortal, disabled, disabledReason, __internalRootRef, ...restProps }: InternalCopyToClipboardProps): JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/copy-to-clipboard/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAKpD,UAAU,4BAA6B,SAAQ,oBAAoB,EAAE,0BAA0B;CAAG;AAElG,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,OAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,aAAa,EACb,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,iBAAwB,EACxB,GAAG,SAAS,EACb,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/copy-to-clipboard/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAKpD,UAAU,4BAA6B,SAAQ,oBAAoB,EAAE,0BAA0B;CAAG;AAElG,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,OAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,aAAa,EACb,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,QAAQ,EACR,cAAc,EACd,iBAAwB,EACxB,GAAG,SAAS,EACb,EAAE,4BAA4B,eAkF9B"}
|
|
@@ -10,7 +10,7 @@ import InternalStatusIndicator from '../status-indicator/internal';
|
|
|
10
10
|
import styles from './styles.css.js';
|
|
11
11
|
import testStyles from './test-classes/styles.css.js';
|
|
12
12
|
export default function InternalCopyToClipboard(_a) {
|
|
13
|
-
var { variant = 'button', copyButtonAriaLabel, copyButtonText, copySuccessText, copyErrorText, textToCopy, textToDisplay, popoverRenderWithPortal, __internalRootRef = null } = _a, restProps = __rest(_a, ["variant", "copyButtonAriaLabel", "copyButtonText", "copySuccessText", "copyErrorText", "textToCopy", "textToDisplay", "popoverRenderWithPortal", "__internalRootRef"]);
|
|
13
|
+
var { variant = 'button', copyButtonAriaLabel, copyButtonText, copySuccessText, copyErrorText, textToCopy, textToDisplay, popoverRenderWithPortal, disabled, disabledReason, __internalRootRef = null } = _a, restProps = __rest(_a, ["variant", "copyButtonAriaLabel", "copyButtonText", "copySuccessText", "copyErrorText", "textToCopy", "textToDisplay", "popoverRenderWithPortal", "disabled", "disabledReason", "__internalRootRef"]);
|
|
14
14
|
const [status, setStatus] = useState('pending');
|
|
15
15
|
const [statusText, setStatusText] = useState('');
|
|
16
16
|
const baseProps = getBaseProps(restProps);
|
|
@@ -40,8 +40,8 @@ export default function InternalCopyToClipboard(_a) {
|
|
|
40
40
|
inline: 'inline-icon',
|
|
41
41
|
}[variant];
|
|
42
42
|
const isInline = variant === 'inline';
|
|
43
|
-
const
|
|
44
|
-
|
|
43
|
+
const button = (React.createElement(InternalButton, { ariaLabel: copyButtonAriaLabel !== null && copyButtonAriaLabel !== void 0 ? copyButtonAriaLabel : copyButtonText, iconName: "copy", variant: triggerVariant, wrapText: false, formAction: "none", disabled: disabled, disabledReason: disabledReason }, copyButtonText));
|
|
44
|
+
const trigger = disabled ? (button) : (React.createElement(InternalPopover, { isInline: isInline, size: "medium", position: "top", triggerType: "custom", dismissButton: false, renderWithPortal: popoverRenderWithPortal, content: React.createElement(InternalStatusIndicator, { type: status }, statusText), __onOpen: onClick }, button));
|
|
45
45
|
return (React.createElement("span", Object.assign({}, baseProps, { ref: __internalRootRef, className: clsx(baseProps.className, styles.root, testStyles.root) }), isInline ? (React.createElement("span", { className: styles['inline-container'] },
|
|
46
46
|
React.createElement("span", { className: styles['inline-container-trigger'] }, trigger),
|
|
47
47
|
React.createElement("span", { className: clsx(testStyles['text-to-display'], testStyles['text-to-copy']) }, textToDisplay !== null && textToDisplay !== void 0 ? textToDisplay : textToCopy))) : (trigger)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/copy-to-clipboard/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAClD,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAGnE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAItD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/copy-to-clipboard/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAClD,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAGnE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAItD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAajB;QAbiB,EAC9C,OAAO,GAAG,QAAQ,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,aAAa,EACb,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,QAAQ,EACR,cAAc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,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,IAE7B,cAAc,CACA,CAClB,CAAC;IAEF,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CACzB,MAAM,CACP,CAAC,CAAC,CAAC,CACF,oBAAC,eAAe,IACd,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAC,KAAK,EACd,WAAW,EAAC,QAAQ,EACpB,aAAa,EAAE,KAAK,EACpB,gBAAgB,EAAE,uBAAuB,EACzC,OAAO,EAAE,oBAAC,uBAAuB,IAAC,IAAI,EAAE,MAAM,IAAG,UAAU,CAA2B,EACtF,QAAQ,EAAE,OAAO,IAEhB,MAAM,CACS,CACnB,CAAC;IAEF,OAAO,CACL,8CAAU,SAAS,IAAE,GAAG,EAAE,iBAAiB,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,KAC5G,QAAQ,CAAC,CAAC,CAAC,CACV,8BAAM,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC;QACzC,8BAAM,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC,IAAG,OAAO,CAAQ;QACrE,8BAAM,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC,IAC7E,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,UAAU,CACvB,CACF,CACR,CAAC,CAAC,CAAC,CACF,OAAO,CACR,CACI,CACR,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalButton from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport InternalPopover from '../popover/internal';\nimport InternalStatusIndicator from '../status-indicator/internal';\nimport { CopyToClipboardProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\n\ninterface InternalCopyToClipboardProps extends CopyToClipboardProps, InternalBaseComponentProps {}\n\nexport default function InternalCopyToClipboard({\n variant = 'button',\n copyButtonAriaLabel,\n copyButtonText,\n copySuccessText,\n copyErrorText,\n textToCopy,\n textToDisplay,\n popoverRenderWithPortal,\n disabled,\n disabledReason,\n __internalRootRef = null,\n ...restProps\n}: InternalCopyToClipboardProps) {\n const [status, setStatus] = useState<'pending' | 'success' | 'error'>('pending');\n const [statusText, setStatusText] = useState('');\n\n const baseProps = getBaseProps(restProps);\n const onClick = () => {\n if (!navigator.clipboard) {\n // The clipboard API is not available in insecure contexts.\n setStatus('error');\n setStatusText(copyErrorText);\n return;\n }\n\n setStatus('pending');\n setStatusText('');\n navigator.clipboard\n .writeText(textToCopy)\n .then(() => {\n setStatus('success');\n setStatusText(copySuccessText);\n })\n .catch(() => {\n setStatus('error');\n setStatusText(copyErrorText);\n });\n };\n\n const triggerVariant = (\n {\n button: 'normal',\n icon: 'icon',\n inline: 'inline-icon',\n } as const\n )[variant];\n\n const isInline = variant === 'inline';\n\n const button = (\n <InternalButton\n ariaLabel={copyButtonAriaLabel ?? copyButtonText}\n iconName=\"copy\"\n variant={triggerVariant}\n wrapText={false}\n formAction=\"none\"\n disabled={disabled}\n disabledReason={disabledReason}\n >\n {copyButtonText}\n </InternalButton>\n );\n\n const trigger = disabled ? (\n button\n ) : (\n <InternalPopover\n isInline={isInline}\n size=\"medium\"\n position=\"top\"\n triggerType=\"custom\"\n dismissButton={false}\n renderWithPortal={popoverRenderWithPortal}\n content={<InternalStatusIndicator type={status}>{statusText}</InternalStatusIndicator>}\n __onOpen={onClick}\n >\n {button}\n </InternalPopover>\n );\n\n return (\n <span {...baseProps} ref={__internalRootRef} className={clsx(baseProps.className, styles.root, testStyles.root)}>\n {isInline ? (\n <span className={styles['inline-container']}>\n <span className={styles['inline-container-trigger']}>{trigger}</span>\n <span className={clsx(testStyles['text-to-display'], testStyles['text-to-copy'])}>\n {textToDisplay ?? textToCopy}\n </span>\n </span>\n ) : (\n trigger\n )}\n </span>\n );\n}\n"]}
|
package/flashbar/interfaces.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface FlashbarProps extends BaseComponentProps {
|
|
|
44
44
|
* A flash message object contains the following properties:
|
|
45
45
|
* * `header` (ReactNode) - Specifies the heading text.
|
|
46
46
|
* * `content` (ReactNode) - Specifies the primary text displayed in the flash element.
|
|
47
|
-
* * `type` (string) - Indicates the type of the message to be displayed. Allowed values are as follows: `success, error, warning, info`. The default is `info`.
|
|
47
|
+
* * `type` (string) - Indicates the type of the message to be displayed. Allowed values are as follows: `success, error, warning, info, in-progress`. The default is `info`.
|
|
48
48
|
* * `loading` (boolean) - Replaces the status icon with a spinner and forces the type to `info`.
|
|
49
49
|
* * `dismissible` (boolean) - Determines whether the component includes a close button icon. By default, the close button is not included.
|
|
50
50
|
* When a user clicks on this button the `onDismiss` handler is called.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/flashbar/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { ErrorContext } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport namespace FlashbarProps {\n export interface MessageDefinition {\n header?: React.ReactNode;\n content?: React.ReactNode;\n dismissible?: boolean;\n dismissLabel?: string;\n statusIconAriaLabel?: string;\n loading?: boolean;\n type?: FlashbarProps.Type;\n ariaRole?: FlashbarProps.AriaRole;\n action?: React.ReactNode;\n id?: string;\n buttonText?: ButtonProps['children'];\n onButtonClick?: ButtonProps['onClick'];\n onDismiss?: ButtonProps['onClick'];\n analyticsMetadata?: FlashbarProps.ItemAnalyticsMetadata;\n }\n\n export interface ItemAnalyticsMetadata {\n suppressFlowMetricEvents?: boolean;\n errorContext?: ErrorContext;\n }\n\n export interface I18nStrings {\n ariaLabel?: string;\n errorIconAriaLabel?: string;\n infoIconAriaLabel?: string;\n inProgressIconAriaLabel?: string;\n notificationBarAriaLabel?: string;\n notificationBarText?: string;\n successIconAriaLabel?: string;\n warningIconAriaLabel?: string;\n }\n\n export type Type = 'success' | 'warning' | 'info' | 'error' | 'in-progress';\n export type AriaRole = 'alert' | 'status';\n}\n\nexport interface FlashbarProps extends BaseComponentProps {\n /**\n * Specifies flash messages that appear in the same order that they are listed.\n * The value is an array of flash message definition objects.\n *\n * A flash message object contains the following properties:\n * * `header` (ReactNode) - Specifies the heading text.\n * * `content` (ReactNode) - Specifies the primary text displayed in the flash element.\n * * `type` (string) - Indicates the type of the message to be displayed. Allowed values are as follows: `success, error, warning, info`. The default is `info`.\n * * `loading` (boolean) - Replaces the status icon with a spinner and forces the type to `info`.\n * * `dismissible` (boolean) - Determines whether the component includes a close button icon. By default, the close button is not included.\n * When a user clicks on this button the `onDismiss` handler is called.\n * * `dismissLabel` (string) - Specifies an `aria-label` for to the dismiss icon button for improved accessibility.\n * * `statusIconAriaLabel` (string) - Specifies an `aria-label` for to the status icon for improved accessibility.\n * If not provided, `i18nStrings.{type}IconAriaLabel` will be used as a fallback.\n * * `ariaRole` (string) - For flash messages added after page load, specifies how this message is communicated to assistive\n * technology. Use \"status\" for status updates or informational content. Use \"alert\" for important messages that need the\n * user's attention.\n * * `action` (ReactNode) - Specifies an action for the flash message. Although it is technically possible to insert any content,\n * our UX guidelines only allow you to add a button.\n * * `buttonText` (string) - Specifies that an action button should be displayed, with the specified text.\n * When a user clicks on this button the `onButtonClick` handler is called.\n * If the `action` property is set, this property is ignored. **Deprecated**, replaced by `action`.\n * * `onButtonClick` (event => void) - Called when a user clicks on the action button. This is not called if you create a custom button\n * using the `action` property. **Deprecated**, replaced by `action`.\n * * `id` (string) - Specifies a unique flash message identifier. This property is used in two ways:\n * 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.\n * 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.\n * * `analyticsMetadata` (FlashbarProps.ItemAnalyticsMetadata) - (Optional) Specifies additional analytics-related metadata.\n * * `suppressFlowMetricEvents` - Prevent this item from generating events related to flow metrics.\n * @analytics\n */\n items: ReadonlyArray<FlashbarProps.MessageDefinition>;\n\n /**\n * Specifies whether flash messages should be stacked.\n */\n stackItems?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component. The object should contain:\n *\n * * `ariaLabel` - Specifies the ARIA label for the list of notifications.\n *\n * If `stackItems` is set to `true`, it should also contain:\n *\n * * `notificationBarAriaLabel` - (optional) Specifies the ARIA label for the notification bar\n * * `notificationBarText` - (optional) Specifies the text shown in the notification bar\n * * `errorIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `error`.\n * * `warningIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `warning`.\n * * `infoIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `info`.\n * * `successIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `success`.\n * * `inProgressIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `in-progress` or with `loading` set to `true`.\n * @i18n\n */\n i18nStrings?: FlashbarProps.I18nStrings;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/flashbar/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { ErrorContext } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport namespace FlashbarProps {\n export interface MessageDefinition {\n header?: React.ReactNode;\n content?: React.ReactNode;\n dismissible?: boolean;\n dismissLabel?: string;\n statusIconAriaLabel?: string;\n loading?: boolean;\n type?: FlashbarProps.Type;\n ariaRole?: FlashbarProps.AriaRole;\n action?: React.ReactNode;\n id?: string;\n buttonText?: ButtonProps['children'];\n onButtonClick?: ButtonProps['onClick'];\n onDismiss?: ButtonProps['onClick'];\n analyticsMetadata?: FlashbarProps.ItemAnalyticsMetadata;\n }\n\n export interface ItemAnalyticsMetadata {\n suppressFlowMetricEvents?: boolean;\n errorContext?: ErrorContext;\n }\n\n export interface I18nStrings {\n ariaLabel?: string;\n errorIconAriaLabel?: string;\n infoIconAriaLabel?: string;\n inProgressIconAriaLabel?: string;\n notificationBarAriaLabel?: string;\n notificationBarText?: string;\n successIconAriaLabel?: string;\n warningIconAriaLabel?: string;\n }\n\n export type Type = 'success' | 'warning' | 'info' | 'error' | 'in-progress';\n export type AriaRole = 'alert' | 'status';\n}\n\nexport interface FlashbarProps extends BaseComponentProps {\n /**\n * Specifies flash messages that appear in the same order that they are listed.\n * The value is an array of flash message definition objects.\n *\n * A flash message object contains the following properties:\n * * `header` (ReactNode) - Specifies the heading text.\n * * `content` (ReactNode) - Specifies the primary text displayed in the flash element.\n * * `type` (string) - Indicates the type of the message to be displayed. Allowed values are as follows: `success, error, warning, info, in-progress`. The default is `info`.\n * * `loading` (boolean) - Replaces the status icon with a spinner and forces the type to `info`.\n * * `dismissible` (boolean) - Determines whether the component includes a close button icon. By default, the close button is not included.\n * When a user clicks on this button the `onDismiss` handler is called.\n * * `dismissLabel` (string) - Specifies an `aria-label` for to the dismiss icon button for improved accessibility.\n * * `statusIconAriaLabel` (string) - Specifies an `aria-label` for to the status icon for improved accessibility.\n * If not provided, `i18nStrings.{type}IconAriaLabel` will be used as a fallback.\n * * `ariaRole` (string) - For flash messages added after page load, specifies how this message is communicated to assistive\n * technology. Use \"status\" for status updates or informational content. Use \"alert\" for important messages that need the\n * user's attention.\n * * `action` (ReactNode) - Specifies an action for the flash message. Although it is technically possible to insert any content,\n * our UX guidelines only allow you to add a button.\n * * `buttonText` (string) - Specifies that an action button should be displayed, with the specified text.\n * When a user clicks on this button the `onButtonClick` handler is called.\n * If the `action` property is set, this property is ignored. **Deprecated**, replaced by `action`.\n * * `onButtonClick` (event => void) - Called when a user clicks on the action button. This is not called if you create a custom button\n * using the `action` property. **Deprecated**, replaced by `action`.\n * * `id` (string) - Specifies a unique flash message identifier. This property is used in two ways:\n * 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.\n * 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.\n * * `analyticsMetadata` (FlashbarProps.ItemAnalyticsMetadata) - (Optional) Specifies additional analytics-related metadata.\n * * `suppressFlowMetricEvents` - Prevent this item from generating events related to flow metrics.\n * @analytics\n */\n items: ReadonlyArray<FlashbarProps.MessageDefinition>;\n\n /**\n * Specifies whether flash messages should be stacked.\n */\n stackItems?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component. The object should contain:\n *\n * * `ariaLabel` - Specifies the ARIA label for the list of notifications.\n *\n * If `stackItems` is set to `true`, it should also contain:\n *\n * * `notificationBarAriaLabel` - (optional) Specifies the ARIA label for the notification bar\n * * `notificationBarText` - (optional) Specifies the text shown in the notification bar\n * * `errorIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `error`.\n * * `warningIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `warning`.\n * * `infoIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `info`.\n * * `successIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `success`.\n * * `inProgressIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `in-progress` or with `loading` set to `true`.\n * @i18n\n */\n i18nStrings?: FlashbarProps.I18nStrings;\n}\n"]}
|
|
@@ -418,6 +418,8 @@
|
|
|
418
418
|
--color-text-status-success-4f6v4h:#00802f;
|
|
419
419
|
--color-text-status-warning-fa077b:#855900;
|
|
420
420
|
--color-text-top-navigation-title-kiop92:#0f141a;
|
|
421
|
+
--color-text-tutorial-hotspot-default-aq2wj8:#006ce0;
|
|
422
|
+
--color-text-tutorial-hotspot-hover-93wlda:#002b66;
|
|
421
423
|
--color-board-placeholder-active-3nv7j5:#ebebf0;
|
|
422
424
|
--color-board-placeholder-hover-1hv3br:#d1f1ff;
|
|
423
425
|
--color-drag-placeholder-active-7dewab:#ebebf0;
|
|
@@ -1036,6 +1038,8 @@
|
|
|
1036
1038
|
--color-text-status-success-4f6v4h:#2bb534;
|
|
1037
1039
|
--color-text-status-warning-fa077b:#fbd332;
|
|
1038
1040
|
--color-text-top-navigation-title-kiop92:#f9f9fa;
|
|
1041
|
+
--color-text-tutorial-hotspot-default-aq2wj8:#42b4ff;
|
|
1042
|
+
--color-text-tutorial-hotspot-hover-93wlda:#75cfff;
|
|
1039
1043
|
--color-board-placeholder-active-3nv7j5:#656871;
|
|
1040
1044
|
--color-board-placeholder-hover-1hv3br:#006ce0;
|
|
1041
1045
|
--color-drag-placeholder-active-7dewab:#656871;
|
|
@@ -1353,6 +1357,8 @@
|
|
|
1353
1357
|
--color-text-status-success-4f6v4h:#2bb534;
|
|
1354
1358
|
--color-text-status-warning-fa077b:#fbd332;
|
|
1355
1359
|
--color-text-top-navigation-title-kiop92:#f9f9fa;
|
|
1360
|
+
--color-text-tutorial-hotspot-default-aq2wj8:#42b4ff;
|
|
1361
|
+
--color-text-tutorial-hotspot-hover-93wlda:#75cfff;
|
|
1356
1362
|
--color-board-placeholder-active-3nv7j5:#656871;
|
|
1357
1363
|
--color-board-placeholder-hover-1hv3br:#006ce0;
|
|
1358
1364
|
--color-drag-placeholder-active-7dewab:#656871;
|
|
@@ -1565,6 +1571,8 @@
|
|
|
1565
1571
|
--color-text-status-success-4f6v4h:#2bb534;
|
|
1566
1572
|
--color-text-status-warning-fa077b:#fbd332;
|
|
1567
1573
|
--color-text-top-navigation-title-kiop92:#f9f9fa;
|
|
1574
|
+
--color-text-tutorial-hotspot-default-aq2wj8:#42b4ff;
|
|
1575
|
+
--color-text-tutorial-hotspot-hover-93wlda:#75cfff;
|
|
1568
1576
|
--color-board-placeholder-active-3nv7j5:#656871;
|
|
1569
1577
|
--color-board-placeholder-hover-1hv3br:#006ce0;
|
|
1570
1578
|
--color-drag-placeholder-active-7dewab:#656871;
|
|
@@ -1621,6 +1629,8 @@
|
|
|
1621
1629
|
--color-text-expandable-section-hover-ztre2n:#ffffff;
|
|
1622
1630
|
--color-text-heading-secondary-3uj5r4:#f9f9fa;
|
|
1623
1631
|
--color-text-segment-hover-ldx8k3:#ffffff;
|
|
1632
|
+
--color-text-tutorial-hotspot-default-aq2wj8:#dedee3;
|
|
1633
|
+
--color-text-tutorial-hotspot-hover-93wlda:#f9f9fa;
|
|
1624
1634
|
}
|
|
1625
1635
|
|
|
1626
1636
|
.awsui-context-flashbar-warning:not(#\9) {
|
|
@@ -1654,6 +1664,8 @@
|
|
|
1654
1664
|
--color-text-link-inverted-hover-ocd3u3:#0f141a;
|
|
1655
1665
|
--color-text-notification-default-1iey72:#0f141a;
|
|
1656
1666
|
--color-text-segment-hover-ldx8k3:#0f141a;
|
|
1667
|
+
--color-text-tutorial-hotspot-default-aq2wj8:#656871;
|
|
1668
|
+
--color-text-tutorial-hotspot-hover-93wlda:#131920;
|
|
1657
1669
|
}
|
|
1658
1670
|
|
|
1659
1671
|
.awsui-context-alert:not(#\9) {
|
|
@@ -1886,6 +1898,8 @@
|
|
|
1886
1898
|
--color-text-status-success-4f6v4h:#2bb534;
|
|
1887
1899
|
--color-text-status-warning-fa077b:#fbd332;
|
|
1888
1900
|
--color-text-top-navigation-title-kiop92:#f9f9fa;
|
|
1901
|
+
--color-text-tutorial-hotspot-default-aq2wj8:#42b4ff;
|
|
1902
|
+
--color-text-tutorial-hotspot-hover-93wlda:#75cfff;
|
|
1889
1903
|
--color-board-placeholder-active-3nv7j5:#656871;
|
|
1890
1904
|
--color-board-placeholder-hover-1hv3br:#006ce0;
|
|
1891
1905
|
--color-drag-placeholder-active-7dewab:#656871;
|
|
@@ -28,7 +28,7 @@ const DragHandleButton = forwardRef(({ variant = 'drag-indicator', size = 'norma
|
|
|
28
28
|
// (See https://bugs.webkit.org/show_bug.cgi?id=22261)
|
|
29
29
|
// Otherwise, we can't reliably catch keyboard events coming from the handle
|
|
30
30
|
// when it is being dragged.
|
|
31
|
-
React.createElement("div", { ref: useMergeRefs(ref, dragHandleRefObject), role: ariaValue ? 'slider' : '
|
|
31
|
+
React.createElement("div", { ref: useMergeRefs(ref, dragHandleRefObject), role: ariaValue ? 'slider' : 'application', tabIndex: 0, className: clsx(className, styles.handle, testUtilsStyles.root, styles[`handle-${variant}`], styles[`handle-size-${size}`], disabled && styles['handle-disabled']), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedby, "aria-disabled": disabled, "aria-valuemax": ariaValue === null || ariaValue === void 0 ? void 0 : ariaValue.valueMax, "aria-valuemin": ariaValue === null || ariaValue === void 0 ? void 0 : ariaValue.valueMin, "aria-valuenow": ariaValue === null || ariaValue === void 0 ? void 0 : ariaValue.valueNow, onPointerDown: onPointerDown, onKeyDown: onKeyDown },
|
|
32
32
|
React.createElement(InternalIcon, Object.assign({}, iconProps))));
|
|
33
33
|
});
|
|
34
34
|
export default DragHandleButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle/button.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAG7E,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAA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AAO;IACL,4DAA4D;IAC5D,oDAAoD;IACpD,sDAAsD;IACtD,4EAA4E;IAC5E,4BAA4B;IAC5B,6BACE,GAAG,EAAE,YAAY,CAAC,GAAG,EAAE,mBAAmB,CAAC,EAC3C,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,EAC1C,QAAQ,EAAE,CAAC,EACX,SAAS,EAAE,IAAI,CACb,SAAS,EACT,MAAM,CAAC,MAAM,EACb,eAAe,CAAC,IAAI,EACpB,MAAM,CAAC,UAAU,OAAO,EAAE,CAAC,EAC3B,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC,EAC7B,QAAQ,IAAI,MAAM,CAAC,iBAAiB,CAAC,CACtC,gBACW,SAAS,qBACJ,cAAc,sBACb,eAAe,mBAClB,QAAQ,mBACR,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,mBACnB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,mBACnB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,EAClC,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,SAAS;QAEpB,oBAAC,YAAY,oBAAK,SAAS,EAAI,CAC3B,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\nimport { IconProps } from '../../../icon/interfaces';\nimport InternalIcon from '../../../icon/internal';\nimport { DragHandleProps } from './interfaces';\nimport { ResizeIcon } from './resize-icon';\n\nimport styles from './styles.css.js';\nimport testUtilsStyles from './test-classes/styles.css.js';\n\nconst DragHandleButton = forwardRef(\n (\n {\n variant = 'drag-indicator',\n size = 'normal',\n className,\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedby,\n ariaValue,\n disabled,\n onPointerDown,\n onKeyDown,\n }: DragHandleProps,\n ref: React.Ref<Element>\n ) => {\n const dragHandleRefObject = useRef<HTMLDivElement>(null);\n\n const iconProps: IconProps = (() => {\n const shared = { variant: disabled ? ('disabled' as const) : undefined, size };\n switch (variant) {\n case 'drag-indicator':\n return { ...shared, name: 'drag-indicator' };\n case 'resize-area':\n return { ...shared, name: 'resize-area' };\n case 'resize-horizontal':\n return { ...shared, svg: <ResizeIcon variant=\"horizontal\" /> };\n case 'resize-vertical':\n return { ...shared, svg: <ResizeIcon variant=\"vertical\" /> };\n }\n })();\n\n return (\n // We need to use a div with button role instead of a button\n // so that Safari will focus on it when clicking it.\n // (See https://bugs.webkit.org/show_bug.cgi?id=22261)\n // Otherwise, we can't reliably catch keyboard events coming from the handle\n // when it is being dragged.\n <div\n ref={useMergeRefs(ref, dragHandleRefObject)}\n role={ariaValue ? 'slider' : 'application'}\n tabIndex={0}\n className={clsx(\n className,\n styles.handle,\n testUtilsStyles.root,\n styles[`handle-${variant}`],\n styles[`handle-size-${size}`],\n disabled && styles['handle-disabled']\n )}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedby}\n aria-disabled={disabled}\n aria-valuemax={ariaValue?.valueMax}\n aria-valuemin={ariaValue?.valueMin}\n aria-valuenow={ariaValue?.valueNow}\n onPointerDown={onPointerDown}\n onKeyDown={onKeyDown}\n >\n <InternalIcon {...iconProps} />\n </div>\n );\n }\n);\n\nexport default DragHandleButton;\n"]}
|
package/internal/environment.js
CHANGED
|
@@ -481,6 +481,8 @@ export const colorTextStatusInfo: string;
|
|
|
481
481
|
export const colorTextStatusSuccess: string;
|
|
482
482
|
export const colorTextStatusWarning: string;
|
|
483
483
|
export const colorTextTopNavigationTitle: string;
|
|
484
|
+
export const colorTextTutorialHotspotDefault: string;
|
|
485
|
+
export const colorTextTutorialHotspotHover: string;
|
|
484
486
|
export const colorBoardPlaceholderActive: string;
|
|
485
487
|
export const colorBoardPlaceholderHover: string;
|
|
486
488
|
export const colorDragPlaceholderActive: string;
|
|
@@ -481,6 +481,8 @@ export var colorTextStatusInfo = "var(--color-text-status-info-xbstx5, #006ce0)"
|
|
|
481
481
|
export var colorTextStatusSuccess = "var(--color-text-status-success-4f6v4h, #00802f)";
|
|
482
482
|
export var colorTextStatusWarning = "var(--color-text-status-warning-fa077b, #855900)";
|
|
483
483
|
export var colorTextTopNavigationTitle = "var(--color-text-top-navigation-title-kiop92, #0f141a)";
|
|
484
|
+
export var colorTextTutorialHotspotDefault = "var(--color-text-tutorial-hotspot-default-aq2wj8, #006ce0)";
|
|
485
|
+
export var colorTextTutorialHotspotHover = "var(--color-text-tutorial-hotspot-hover-93wlda, #002b66)";
|
|
484
486
|
export var colorBoardPlaceholderActive = "var(--color-board-placeholder-active-3nv7j5, #ebebf0)";
|
|
485
487
|
export var colorBoardPlaceholderHover = "var(--color-board-placeholder-hover-1hv3br, #d1f1ff)";
|
|
486
488
|
export var colorDragPlaceholderActive = "var(--color-drag-placeholder-active-7dewab, #ebebf0)";
|
|
@@ -1818,6 +1818,14 @@ module.exports.preset = {
|
|
|
1818
1818
|
"light": "{colorGrey950}",
|
|
1819
1819
|
"dark": "{colorGrey100}"
|
|
1820
1820
|
},
|
|
1821
|
+
"colorTextTutorialHotspotDefault": {
|
|
1822
|
+
"light": "{colorTextLinkDefault}",
|
|
1823
|
+
"dark": "{colorTextLinkDefault}"
|
|
1824
|
+
},
|
|
1825
|
+
"colorTextTutorialHotspotHover": {
|
|
1826
|
+
"light": "{colorTextLinkHover}",
|
|
1827
|
+
"dark": "{colorTextLinkHover}"
|
|
1828
|
+
},
|
|
1821
1829
|
"colorBoardPlaceholderActive": {
|
|
1822
1830
|
"light": "{colorGrey250}",
|
|
1823
1831
|
"dark": "{colorGrey600}"
|
|
@@ -4090,6 +4098,14 @@ module.exports.preset = {
|
|
|
4090
4098
|
"light": "{colorGrey100}",
|
|
4091
4099
|
"dark": "{colorGrey100}"
|
|
4092
4100
|
},
|
|
4101
|
+
"colorTextTutorialHotspotDefault": {
|
|
4102
|
+
"light": "{colorTextLinkDefault}",
|
|
4103
|
+
"dark": "{colorTextLinkDefault}"
|
|
4104
|
+
},
|
|
4105
|
+
"colorTextTutorialHotspotHover": {
|
|
4106
|
+
"light": "{colorTextLinkHover}",
|
|
4107
|
+
"dark": "{colorTextLinkHover}"
|
|
4108
|
+
},
|
|
4093
4109
|
"colorBoardPlaceholderActive": {
|
|
4094
4110
|
"light": "{colorGrey600}",
|
|
4095
4111
|
"dark": "{colorGrey600}"
|
|
@@ -5260,6 +5276,14 @@ module.exports.preset = {
|
|
|
5260
5276
|
"light": "{colorGrey100}",
|
|
5261
5277
|
"dark": "{colorGrey100}"
|
|
5262
5278
|
},
|
|
5279
|
+
"colorTextTutorialHotspotDefault": {
|
|
5280
|
+
"light": "{colorTextLinkDefault}",
|
|
5281
|
+
"dark": "{colorTextLinkDefault}"
|
|
5282
|
+
},
|
|
5283
|
+
"colorTextTutorialHotspotHover": {
|
|
5284
|
+
"light": "{colorTextLinkHover}",
|
|
5285
|
+
"dark": "{colorTextLinkHover}"
|
|
5286
|
+
},
|
|
5263
5287
|
"colorBoardPlaceholderActive": {
|
|
5264
5288
|
"light": "{colorGrey600}",
|
|
5265
5289
|
"dark": "{colorGrey600}"
|
|
@@ -6362,6 +6386,14 @@ module.exports.preset = {
|
|
|
6362
6386
|
"light": "{colorGrey950}",
|
|
6363
6387
|
"dark": "{colorGrey100}"
|
|
6364
6388
|
},
|
|
6389
|
+
"colorTextTutorialHotspotDefault": {
|
|
6390
|
+
"light": "{colorGrey300}",
|
|
6391
|
+
"dark": "{colorGrey300}"
|
|
6392
|
+
},
|
|
6393
|
+
"colorTextTutorialHotspotHover": {
|
|
6394
|
+
"light": "{colorGrey100}",
|
|
6395
|
+
"dark": "{colorGrey100}"
|
|
6396
|
+
},
|
|
6365
6397
|
"colorBoardPlaceholderActive": {
|
|
6366
6398
|
"light": "{colorGrey250}",
|
|
6367
6399
|
"dark": "{colorGrey600}"
|
|
@@ -7464,6 +7496,14 @@ module.exports.preset = {
|
|
|
7464
7496
|
"light": "{colorGrey950}",
|
|
7465
7497
|
"dark": "{colorGrey100}"
|
|
7466
7498
|
},
|
|
7499
|
+
"colorTextTutorialHotspotDefault": {
|
|
7500
|
+
"light": "{colorGrey600}",
|
|
7501
|
+
"dark": "{colorGrey600}"
|
|
7502
|
+
},
|
|
7503
|
+
"colorTextTutorialHotspotHover": {
|
|
7504
|
+
"light": "{colorGrey900}",
|
|
7505
|
+
"dark": "{colorGrey900}"
|
|
7506
|
+
},
|
|
7467
7507
|
"colorBoardPlaceholderActive": {
|
|
7468
7508
|
"light": "{colorGrey250}",
|
|
7469
7509
|
"dark": "{colorGrey600}"
|
|
@@ -8566,6 +8606,14 @@ module.exports.preset = {
|
|
|
8566
8606
|
"light": "{colorGrey950}",
|
|
8567
8607
|
"dark": "{colorGrey100}"
|
|
8568
8608
|
},
|
|
8609
|
+
"colorTextTutorialHotspotDefault": {
|
|
8610
|
+
"light": "{colorTextLinkDefault}",
|
|
8611
|
+
"dark": "{colorTextLinkDefault}"
|
|
8612
|
+
},
|
|
8613
|
+
"colorTextTutorialHotspotHover": {
|
|
8614
|
+
"light": "{colorTextLinkHover}",
|
|
8615
|
+
"dark": "{colorTextLinkHover}"
|
|
8616
|
+
},
|
|
8569
8617
|
"colorBoardPlaceholderActive": {
|
|
8570
8618
|
"light": "{colorGrey250}",
|
|
8571
8619
|
"dark": "{colorGrey600}"
|
|
@@ -9680,6 +9728,14 @@ module.exports.preset = {
|
|
|
9680
9728
|
"light": "{colorGrey100}",
|
|
9681
9729
|
"dark": "{colorGrey100}"
|
|
9682
9730
|
},
|
|
9731
|
+
"colorTextTutorialHotspotDefault": {
|
|
9732
|
+
"light": "{colorTextLinkDefault}",
|
|
9733
|
+
"dark": "{colorTextLinkDefault}"
|
|
9734
|
+
},
|
|
9735
|
+
"colorTextTutorialHotspotHover": {
|
|
9736
|
+
"light": "{colorTextLinkHover}",
|
|
9737
|
+
"dark": "{colorTextLinkHover}"
|
|
9738
|
+
},
|
|
9683
9739
|
"colorBoardPlaceholderActive": {
|
|
9684
9740
|
"light": "{colorGrey600}",
|
|
9685
9741
|
"dark": "{colorGrey600}"
|
|
@@ -10160,6 +10216,8 @@ module.exports.preset = {
|
|
|
10160
10216
|
"colorTextStatusSuccess": "color",
|
|
10161
10217
|
"colorTextStatusWarning": "color",
|
|
10162
10218
|
"colorTextTopNavigationTitle": "color",
|
|
10219
|
+
"colorTextTutorialHotspotDefault": "color",
|
|
10220
|
+
"colorTextTutorialHotspotHover": "color",
|
|
10163
10221
|
"colorBoardPlaceholderActive": "color",
|
|
10164
10222
|
"colorBoardPlaceholderHover": "color",
|
|
10165
10223
|
"colorDragPlaceholderActive": "color",
|
|
@@ -11470,6 +11528,8 @@ module.exports.preset = {
|
|
|
11470
11528
|
"colorTextStatusSuccess": "color-text-status-success",
|
|
11471
11529
|
"colorTextStatusWarning": "color-text-status-warning",
|
|
11472
11530
|
"colorTextTopNavigationTitle": "color-text-top-navigation-title",
|
|
11531
|
+
"colorTextTutorialHotspotDefault": "color-text-tutorial-hotspot-default",
|
|
11532
|
+
"colorTextTutorialHotspotHover": "color-text-tutorial-hotspot-hover",
|
|
11473
11533
|
"colorBoardPlaceholderActive": "color-board-placeholder-active",
|
|
11474
11534
|
"colorBoardPlaceholderHover": "color-board-placeholder-hover",
|
|
11475
11535
|
"colorDragPlaceholderActive": "color-drag-placeholder-active",
|
|
@@ -12225,6 +12285,8 @@ module.exports.preset = {
|
|
|
12225
12285
|
"colorTextStatusSuccess": "--color-text-status-success-4f6v4h",
|
|
12226
12286
|
"colorTextStatusWarning": "--color-text-status-warning-fa077b",
|
|
12227
12287
|
"colorTextTopNavigationTitle": "--color-text-top-navigation-title-kiop92",
|
|
12288
|
+
"colorTextTutorialHotspotDefault": "--color-text-tutorial-hotspot-default-aq2wj8",
|
|
12289
|
+
"colorTextTutorialHotspotHover": "--color-text-tutorial-hotspot-hover-93wlda",
|
|
12228
12290
|
"colorBoardPlaceholderActive": "--color-board-placeholder-active-3nv7j5",
|
|
12229
12291
|
"colorBoardPlaceholderHover": "--color-board-placeholder-hover-1hv3br",
|
|
12230
12292
|
"colorDragPlaceholderActive": "--color-drag-placeholder-active-7dewab",
|
|
@@ -1818,6 +1818,14 @@ export var preset = {
|
|
|
1818
1818
|
"light": "{colorGrey950}",
|
|
1819
1819
|
"dark": "{colorGrey100}"
|
|
1820
1820
|
},
|
|
1821
|
+
"colorTextTutorialHotspotDefault": {
|
|
1822
|
+
"light": "{colorTextLinkDefault}",
|
|
1823
|
+
"dark": "{colorTextLinkDefault}"
|
|
1824
|
+
},
|
|
1825
|
+
"colorTextTutorialHotspotHover": {
|
|
1826
|
+
"light": "{colorTextLinkHover}",
|
|
1827
|
+
"dark": "{colorTextLinkHover}"
|
|
1828
|
+
},
|
|
1821
1829
|
"colorBoardPlaceholderActive": {
|
|
1822
1830
|
"light": "{colorGrey250}",
|
|
1823
1831
|
"dark": "{colorGrey600}"
|
|
@@ -4090,6 +4098,14 @@ export var preset = {
|
|
|
4090
4098
|
"light": "{colorGrey100}",
|
|
4091
4099
|
"dark": "{colorGrey100}"
|
|
4092
4100
|
},
|
|
4101
|
+
"colorTextTutorialHotspotDefault": {
|
|
4102
|
+
"light": "{colorTextLinkDefault}",
|
|
4103
|
+
"dark": "{colorTextLinkDefault}"
|
|
4104
|
+
},
|
|
4105
|
+
"colorTextTutorialHotspotHover": {
|
|
4106
|
+
"light": "{colorTextLinkHover}",
|
|
4107
|
+
"dark": "{colorTextLinkHover}"
|
|
4108
|
+
},
|
|
4093
4109
|
"colorBoardPlaceholderActive": {
|
|
4094
4110
|
"light": "{colorGrey600}",
|
|
4095
4111
|
"dark": "{colorGrey600}"
|
|
@@ -5260,6 +5276,14 @@ export var preset = {
|
|
|
5260
5276
|
"light": "{colorGrey100}",
|
|
5261
5277
|
"dark": "{colorGrey100}"
|
|
5262
5278
|
},
|
|
5279
|
+
"colorTextTutorialHotspotDefault": {
|
|
5280
|
+
"light": "{colorTextLinkDefault}",
|
|
5281
|
+
"dark": "{colorTextLinkDefault}"
|
|
5282
|
+
},
|
|
5283
|
+
"colorTextTutorialHotspotHover": {
|
|
5284
|
+
"light": "{colorTextLinkHover}",
|
|
5285
|
+
"dark": "{colorTextLinkHover}"
|
|
5286
|
+
},
|
|
5263
5287
|
"colorBoardPlaceholderActive": {
|
|
5264
5288
|
"light": "{colorGrey600}",
|
|
5265
5289
|
"dark": "{colorGrey600}"
|
|
@@ -6362,6 +6386,14 @@ export var preset = {
|
|
|
6362
6386
|
"light": "{colorGrey950}",
|
|
6363
6387
|
"dark": "{colorGrey100}"
|
|
6364
6388
|
},
|
|
6389
|
+
"colorTextTutorialHotspotDefault": {
|
|
6390
|
+
"light": "{colorGrey300}",
|
|
6391
|
+
"dark": "{colorGrey300}"
|
|
6392
|
+
},
|
|
6393
|
+
"colorTextTutorialHotspotHover": {
|
|
6394
|
+
"light": "{colorGrey100}",
|
|
6395
|
+
"dark": "{colorGrey100}"
|
|
6396
|
+
},
|
|
6365
6397
|
"colorBoardPlaceholderActive": {
|
|
6366
6398
|
"light": "{colorGrey250}",
|
|
6367
6399
|
"dark": "{colorGrey600}"
|
|
@@ -7464,6 +7496,14 @@ export var preset = {
|
|
|
7464
7496
|
"light": "{colorGrey950}",
|
|
7465
7497
|
"dark": "{colorGrey100}"
|
|
7466
7498
|
},
|
|
7499
|
+
"colorTextTutorialHotspotDefault": {
|
|
7500
|
+
"light": "{colorGrey600}",
|
|
7501
|
+
"dark": "{colorGrey600}"
|
|
7502
|
+
},
|
|
7503
|
+
"colorTextTutorialHotspotHover": {
|
|
7504
|
+
"light": "{colorGrey900}",
|
|
7505
|
+
"dark": "{colorGrey900}"
|
|
7506
|
+
},
|
|
7467
7507
|
"colorBoardPlaceholderActive": {
|
|
7468
7508
|
"light": "{colorGrey250}",
|
|
7469
7509
|
"dark": "{colorGrey600}"
|
|
@@ -8566,6 +8606,14 @@ export var preset = {
|
|
|
8566
8606
|
"light": "{colorGrey950}",
|
|
8567
8607
|
"dark": "{colorGrey100}"
|
|
8568
8608
|
},
|
|
8609
|
+
"colorTextTutorialHotspotDefault": {
|
|
8610
|
+
"light": "{colorTextLinkDefault}",
|
|
8611
|
+
"dark": "{colorTextLinkDefault}"
|
|
8612
|
+
},
|
|
8613
|
+
"colorTextTutorialHotspotHover": {
|
|
8614
|
+
"light": "{colorTextLinkHover}",
|
|
8615
|
+
"dark": "{colorTextLinkHover}"
|
|
8616
|
+
},
|
|
8569
8617
|
"colorBoardPlaceholderActive": {
|
|
8570
8618
|
"light": "{colorGrey250}",
|
|
8571
8619
|
"dark": "{colorGrey600}"
|
|
@@ -9680,6 +9728,14 @@ export var preset = {
|
|
|
9680
9728
|
"light": "{colorGrey100}",
|
|
9681
9729
|
"dark": "{colorGrey100}"
|
|
9682
9730
|
},
|
|
9731
|
+
"colorTextTutorialHotspotDefault": {
|
|
9732
|
+
"light": "{colorTextLinkDefault}",
|
|
9733
|
+
"dark": "{colorTextLinkDefault}"
|
|
9734
|
+
},
|
|
9735
|
+
"colorTextTutorialHotspotHover": {
|
|
9736
|
+
"light": "{colorTextLinkHover}",
|
|
9737
|
+
"dark": "{colorTextLinkHover}"
|
|
9738
|
+
},
|
|
9683
9739
|
"colorBoardPlaceholderActive": {
|
|
9684
9740
|
"light": "{colorGrey600}",
|
|
9685
9741
|
"dark": "{colorGrey600}"
|
|
@@ -10160,6 +10216,8 @@ export var preset = {
|
|
|
10160
10216
|
"colorTextStatusSuccess": "color",
|
|
10161
10217
|
"colorTextStatusWarning": "color",
|
|
10162
10218
|
"colorTextTopNavigationTitle": "color",
|
|
10219
|
+
"colorTextTutorialHotspotDefault": "color",
|
|
10220
|
+
"colorTextTutorialHotspotHover": "color",
|
|
10163
10221
|
"colorBoardPlaceholderActive": "color",
|
|
10164
10222
|
"colorBoardPlaceholderHover": "color",
|
|
10165
10223
|
"colorDragPlaceholderActive": "color",
|
|
@@ -11470,6 +11528,8 @@ export var preset = {
|
|
|
11470
11528
|
"colorTextStatusSuccess": "color-text-status-success",
|
|
11471
11529
|
"colorTextStatusWarning": "color-text-status-warning",
|
|
11472
11530
|
"colorTextTopNavigationTitle": "color-text-top-navigation-title",
|
|
11531
|
+
"colorTextTutorialHotspotDefault": "color-text-tutorial-hotspot-default",
|
|
11532
|
+
"colorTextTutorialHotspotHover": "color-text-tutorial-hotspot-hover",
|
|
11473
11533
|
"colorBoardPlaceholderActive": "color-board-placeholder-active",
|
|
11474
11534
|
"colorBoardPlaceholderHover": "color-board-placeholder-hover",
|
|
11475
11535
|
"colorDragPlaceholderActive": "color-drag-placeholder-active",
|
|
@@ -12225,6 +12285,8 @@ export var preset = {
|
|
|
12225
12285
|
"colorTextStatusSuccess": "--color-text-status-success-4f6v4h",
|
|
12226
12286
|
"colorTextStatusWarning": "--color-text-status-warning-fa077b",
|
|
12227
12287
|
"colorTextTopNavigationTitle": "--color-text-top-navigation-title-kiop92",
|
|
12288
|
+
"colorTextTutorialHotspotDefault": "--color-text-tutorial-hotspot-default-aq2wj8",
|
|
12289
|
+
"colorTextTutorialHotspotHover": "--color-text-tutorial-hotspot-hover-93wlda",
|
|
12228
12290
|
"colorBoardPlaceholderActive": "--color-board-placeholder-active-3nv7j5",
|
|
12229
12291
|
"colorBoardPlaceholderHover": "--color-board-placeholder-hover-1hv3br",
|
|
12230
12292
|
"colorDragPlaceholderActive": "--color-drag-placeholder-active-7dewab",
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
package/popover/container.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface PopoverContainerProps {
|
|
|
6
6
|
getTrack?: () => null | HTMLElement | SVGElement;
|
|
7
7
|
/**
|
|
8
8
|
Used to update the container position in case track or track position changes:
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
const trackRef = useRef<Element>(null)
|
|
11
11
|
return (<>
|
|
12
12
|
<Track style={getPosition(selectedIt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