@cloudscape-design/components-themeable 3.0.999 → 3.0.1000
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/annotation-context/annotation/styles.scss +3 -3
- package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +34 -34
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
- package/lib/internal/template/button-group/analytics-metadata/interfaces.d.ts +10 -0
- package/lib/internal/template/button-group/analytics-metadata/interfaces.d.ts.map +1 -0
- package/lib/internal/template/button-group/analytics-metadata/interfaces.js +4 -0
- package/lib/internal/template/button-group/analytics-metadata/interfaces.js.map +1 -0
- package/lib/internal/template/button-group/index.d.ts.map +1 -1
- package/lib/internal/template/button-group/index.js +6 -1
- package/lib/internal/template/button-group/index.js.map +1 -1
- package/lib/internal/template/button-group/internal.d.ts.map +1 -1
- package/lib/internal/template/button-group/internal.js +2 -2
- package/lib/internal/template/button-group/internal.js.map +1 -1
- package/lib/internal/template/button-group/item-element.d.ts +1 -0
- package/lib/internal/template/button-group/item-element.d.ts.map +1 -1
- package/lib/internal/template/button-group/item-element.js +7 -4
- package/lib/internal/template/button-group/item-element.js.map +1 -1
- package/lib/internal/template/button-group/menu-dropdown-item.d.ts +1 -0
- package/lib/internal/template/button-group/menu-dropdown-item.d.ts.map +1 -1
- package/lib/internal/template/button-group/menu-dropdown-item.js +3 -2
- package/lib/internal/template/button-group/menu-dropdown-item.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/interfaces.d.ts +10 -0
- package/lib/internal/template/copy-to-clipboard/interfaces.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/interfaces.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.d.ts +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.js +3 -3
- package/lib/internal/template/copy-to-clipboard/internal.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +34 -0
- package/lib/internal/template/internal/components/drag-handle/button.js +1 -1
- package/lib/internal/template/internal/components/drag-handle/button.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +2 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +2 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +62 -0
- package/lib/internal/template/internal/generated/theming/index.js +62 -0
- package/lib/internal/template/popover/container.d.ts +1 -1
- package/lib/internal/template/popover/container.d.ts.map +1 -1
- package/lib/internal/template/popover/container.js +7 -1
- package/lib/internal/template/popover/container.js.map +1 -1
- package/lib/internal/template/test-utils/dom/autosuggest/index.js +2 -1
- package/lib/internal/template/test-utils/dom/autosuggest/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/internal/dropdown-host.js +2 -1
- package/lib/internal/template/test-utils/dom/internal/dropdown-host.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/autosuggest/index.js +2 -1
- package/lib/internal/template/test-utils/selectors/autosuggest/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/dropdown-host.js +2 -1
- package/lib/internal/template/test-utils/selectors/internal/dropdown-host.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';
|
|
5
6
|
import InternalButton from '../button/internal';
|
|
6
7
|
import ButtonDropdown from '../button-dropdown/internal';
|
|
7
8
|
import Tooltip from '../internal/components/tooltip';
|
|
8
9
|
import { fireCancelableEvent } from '../internal/events';
|
|
9
10
|
import testUtilStyles from './test-classes/styles.css.js';
|
|
10
|
-
const MenuDropdownItem = React.forwardRef(({ item, showTooltip, onItemClick, onTooltipDismiss, expandToViewport }, ref) => {
|
|
11
|
+
const MenuDropdownItem = React.forwardRef(({ item, showTooltip, onItemClick, onTooltipDismiss, expandToViewport, position }, ref) => {
|
|
11
12
|
const containerRef = React.useRef(null);
|
|
12
13
|
const onClickHandler = (event) => {
|
|
13
14
|
fireCancelableEvent(onItemClick, { id: event.detail.id, checked: event.detail.checked }, event);
|
|
14
15
|
};
|
|
15
|
-
return (React.createElement(ButtonDropdown, { ref: ref, variant: "icon", items: item.items, onItemClick: onClickHandler, expandToViewport: expandToViewport, ariaLabel: item.text, className: testUtilStyles['button-group-item'], "data-testid": item.id, customTriggerBuilder: ({ onClick, isOpen, triggerRef, ariaLabel, ariaExpanded, testUtilsClass }) => (React.createElement("div", { ref: containerRef },
|
|
16
|
+
return (React.createElement(ButtonDropdown, { ref: ref, variant: "icon", items: item.items, onItemClick: onClickHandler, expandToViewport: expandToViewport, ariaLabel: item.text, className: testUtilStyles['button-group-item'], position: position, "data-testid": item.id, disabled: item.disabled, customTriggerBuilder: ({ onClick, isOpen, triggerRef, ariaLabel, ariaExpanded, testUtilsClass }) => (React.createElement("div", Object.assign({ ref: containerRef }, (item.disabled ? {} : getAnalyticsMetadataAttribute({ detail: { position } }))),
|
|
16
17
|
!isOpen && showTooltip && !item.disabled && !item.loading && (React.createElement(Tooltip, { trackRef: containerRef, trackKey: item.id, value: item.text, className: clsx(testUtilStyles.tooltip, testUtilStyles['button-group-tooltip']), onDismiss: onTooltipDismiss })),
|
|
17
18
|
React.createElement(InternalButton, { ref: triggerRef, variant: "icon", ariaLabel: ariaLabel, "data-itemid": item.id, ariaExpanded: ariaExpanded, className: clsx(testUtilStyles.item, testUtilsClass), iconName: "ellipsis", loading: item.loading, loadingText: item.loadingText, disabled: item.disabled, disabledReason: item.disabledReason, onClick: onClick, __title: "" }))) }));
|
|
18
19
|
});
|
|
@@ -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,oBAAoB,CAAC;AAGjF,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAW1D,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CACvC,CACE,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,QAAQ,EAAyB,EACvG,GAAuC,EACvC,EAAE;IACF,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IACxD,MAAM,cAAc,GAAG,CAAC,KAAwD,EAAE,EAAE;QAClF,mBAAmB,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,K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AI,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,uBAA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AAE,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"]}
|
|
@@ -418,6 +418,8 @@
|
|
|
418
418
|
--color-text-status-success-vmys4n:#1d8102;
|
|
419
419
|
--color-text-status-warning-75jmgn:#906806;
|
|
420
420
|
--color-text-top-navigation-title-50mcr5:#16191f;
|
|
421
|
+
--color-text-tutorial-hotspot-default-r59hr8:#0073bb;
|
|
422
|
+
--color-text-tutorial-hotspot-hover-r1skao:#0a4a74;
|
|
421
423
|
--color-board-placeholder-active-oe22ia:#d5dbdb;
|
|
422
424
|
--color-board-placeholder-hover-jxjr60:#99cbe4;
|
|
423
425
|
--color-drag-placeholder-active-mhklvu:#d5dbdb;
|
|
@@ -1035,6 +1037,8 @@
|
|
|
1035
1037
|
--color-text-status-success-vmys4n:#6aaf35;
|
|
1036
1038
|
--color-text-status-warning-75jmgn:#fbd332;
|
|
1037
1039
|
--color-text-top-navigation-title-50mcr5:#fafafa;
|
|
1040
|
+
--color-text-tutorial-hotspot-default-r59hr8:#44b9d6;
|
|
1041
|
+
--color-text-tutorial-hotspot-hover-r1skao:#99cbe4;
|
|
1038
1042
|
--color-board-placeholder-active-oe22ia:#687078;
|
|
1039
1043
|
--color-board-placeholder-hover-jxjr60:#0073bb;
|
|
1040
1044
|
--color-drag-placeholder-active-mhklvu:#687078;
|
|
@@ -1354,6 +1358,8 @@
|
|
|
1354
1358
|
--color-text-status-success-vmys4n:#6aaf35;
|
|
1355
1359
|
--color-text-status-warning-75jmgn:#fbd332;
|
|
1356
1360
|
--color-text-top-navigation-title-50mcr5:#fafafa;
|
|
1361
|
+
--color-text-tutorial-hotspot-default-r59hr8:#44b9d6;
|
|
1362
|
+
--color-text-tutorial-hotspot-hover-r1skao:#99cbe4;
|
|
1357
1363
|
--color-board-placeholder-active-oe22ia:#687078;
|
|
1358
1364
|
--color-board-placeholder-hover-jxjr60:#0073bb;
|
|
1359
1365
|
--color-drag-placeholder-active-mhklvu:#687078;
|
|
@@ -1386,6 +1392,8 @@
|
|
|
1386
1392
|
--color-text-expandable-section-default-15nt1e:#fafafa;
|
|
1387
1393
|
--color-text-expandable-section-hover-3n2kpp:#fafafa;
|
|
1388
1394
|
--color-text-heading-secondary-p3brnl:#fafafa;
|
|
1395
|
+
--color-text-tutorial-hotspot-default-r59hr8:#d5dbdb;
|
|
1396
|
+
--color-text-tutorial-hotspot-hover-r1skao:#fafafa;
|
|
1389
1397
|
}
|
|
1390
1398
|
|
|
1391
1399
|
.awsui-context-flashbar-warning:not(#\9) {
|
|
@@ -1409,6 +1417,8 @@
|
|
|
1409
1417
|
--color-text-interactive-inverted-hover-p0x69h:#16191f;
|
|
1410
1418
|
--color-text-link-inverted-hover-7jk1d1:#16191f;
|
|
1411
1419
|
--color-text-notification-default-fmebm4:#16191f;
|
|
1420
|
+
--color-text-tutorial-hotspot-default-r59hr8:#687078;
|
|
1421
|
+
--color-text-tutorial-hotspot-hover-r1skao:#131920;
|
|
1412
1422
|
}
|
|
1413
1423
|
|
|
1414
1424
|
.awsui-context-alert:not(#\9) {
|
|
@@ -1723,6 +1733,8 @@
|
|
|
1723
1733
|
--color-text-status-success-vmys4n:#00802f;
|
|
1724
1734
|
--color-text-status-warning-75jmgn:#855900;
|
|
1725
1735
|
--color-text-top-navigation-title-50mcr5:#0f141a;
|
|
1736
|
+
--color-text-tutorial-hotspot-default-r59hr8:#006ce0;
|
|
1737
|
+
--color-text-tutorial-hotspot-hover-r1skao:#002b66;
|
|
1726
1738
|
--color-board-placeholder-active-oe22ia:#ebebf0;
|
|
1727
1739
|
--color-board-placeholder-hover-jxjr60:#d1f1ff;
|
|
1728
1740
|
--color-drag-placeholder-active-mhklvu:#ebebf0;
|
|
@@ -2087,6 +2099,8 @@
|
|
|
2087
2099
|
--color-text-status-success-vmys4n:#2bb534;
|
|
2088
2100
|
--color-text-status-warning-75jmgn:#fbd332;
|
|
2089
2101
|
--color-text-top-navigation-title-50mcr5:#f9f9fa;
|
|
2102
|
+
--color-text-tutorial-hotspot-default-r59hr8:#42b4ff;
|
|
2103
|
+
--color-text-tutorial-hotspot-hover-r1skao:#75cfff;
|
|
2090
2104
|
--color-board-placeholder-active-oe22ia:#656871;
|
|
2091
2105
|
--color-board-placeholder-hover-jxjr60:#006ce0;
|
|
2092
2106
|
--color-drag-placeholder-active-mhklvu:#656871;
|
|
@@ -2375,6 +2389,8 @@
|
|
|
2375
2389
|
--color-text-status-info-q591kt:#42b4ff;
|
|
2376
2390
|
--color-text-status-success-vmys4n:#2bb534;
|
|
2377
2391
|
--color-text-top-navigation-title-50mcr5:#f9f9fa;
|
|
2392
|
+
--color-text-tutorial-hotspot-default-r59hr8:#42b4ff;
|
|
2393
|
+
--color-text-tutorial-hotspot-hover-r1skao:#75cfff;
|
|
2378
2394
|
--color-board-placeholder-active-oe22ia:#656871;
|
|
2379
2395
|
--color-board-placeholder-hover-jxjr60:#006ce0;
|
|
2380
2396
|
--color-drag-placeholder-active-mhklvu:#656871;
|
|
@@ -2583,6 +2599,8 @@
|
|
|
2583
2599
|
--color-text-status-success-vmys4n:#2bb534;
|
|
2584
2600
|
--color-text-status-warning-75jmgn:#fbd332;
|
|
2585
2601
|
--color-text-top-navigation-title-50mcr5:#f9f9fa;
|
|
2602
|
+
--color-text-tutorial-hotspot-default-r59hr8:#42b4ff;
|
|
2603
|
+
--color-text-tutorial-hotspot-hover-r1skao:#75cfff;
|
|
2586
2604
|
--color-board-placeholder-active-oe22ia:#656871;
|
|
2587
2605
|
--color-board-placeholder-hover-jxjr60:#006ce0;
|
|
2588
2606
|
--color-drag-placeholder-active-mhklvu:#656871;
|
|
@@ -2795,6 +2813,8 @@
|
|
|
2795
2813
|
--color-text-status-success-vmys4n:#2bb534;
|
|
2796
2814
|
--color-text-status-warning-75jmgn:#fbd332;
|
|
2797
2815
|
--color-text-top-navigation-title-50mcr5:#f9f9fa;
|
|
2816
|
+
--color-text-tutorial-hotspot-default-r59hr8:#42b4ff;
|
|
2817
|
+
--color-text-tutorial-hotspot-hover-r1skao:#75cfff;
|
|
2798
2818
|
--color-board-placeholder-active-oe22ia:#656871;
|
|
2799
2819
|
--color-board-placeholder-hover-jxjr60:#006ce0;
|
|
2800
2820
|
--color-drag-placeholder-active-mhklvu:#656871;
|
|
@@ -3019,6 +3039,8 @@
|
|
|
3019
3039
|
--color-text-status-success-vmys4n:#2bb534;
|
|
3020
3040
|
--color-text-status-warning-75jmgn:#fbd332;
|
|
3021
3041
|
--color-text-top-navigation-title-50mcr5:#f9f9fa;
|
|
3042
|
+
--color-text-tutorial-hotspot-default-r59hr8:#42b4ff;
|
|
3043
|
+
--color-text-tutorial-hotspot-hover-r1skao:#75cfff;
|
|
3022
3044
|
--color-board-placeholder-active-oe22ia:#656871;
|
|
3023
3045
|
--color-board-placeholder-hover-jxjr60:#006ce0;
|
|
3024
3046
|
--color-drag-placeholder-active-mhklvu:#656871;
|
|
@@ -3082,6 +3104,8 @@
|
|
|
3082
3104
|
--color-text-expandable-section-hover-3n2kpp:#ffffff;
|
|
3083
3105
|
--color-text-heading-secondary-p3brnl:#f9f9fa;
|
|
3084
3106
|
--color-text-segment-hover-bhj7qd:#ffffff;
|
|
3107
|
+
--color-text-tutorial-hotspot-default-r59hr8:#dedee3;
|
|
3108
|
+
--color-text-tutorial-hotspot-hover-r1skao:#f9f9fa;
|
|
3085
3109
|
}
|
|
3086
3110
|
|
|
3087
3111
|
.awsui-context-flashbar.awsui-visual-refresh:not(#\9) {
|
|
@@ -3115,6 +3139,8 @@
|
|
|
3115
3139
|
--color-text-expandable-section-hover-3n2kpp:#ffffff;
|
|
3116
3140
|
--color-text-heading-secondary-p3brnl:#f9f9fa;
|
|
3117
3141
|
--color-text-segment-hover-bhj7qd:#ffffff;
|
|
3142
|
+
--color-text-tutorial-hotspot-default-r59hr8:#dedee3;
|
|
3143
|
+
--color-text-tutorial-hotspot-hover-r1skao:#f9f9fa;
|
|
3118
3144
|
}
|
|
3119
3145
|
|
|
3120
3146
|
.awsui-visual-refresh .awsui-context-flashbar-warning:not(#\9) {
|
|
@@ -3155,6 +3181,7 @@
|
|
|
3155
3181
|
--color-text-link-inverted-hover-7jk1d1:#0f141a;
|
|
3156
3182
|
--color-text-notification-default-fmebm4:#0f141a;
|
|
3157
3183
|
--color-text-segment-hover-bhj7qd:#0f141a;
|
|
3184
|
+
--color-text-tutorial-hotspot-default-r59hr8:#656871;
|
|
3158
3185
|
}
|
|
3159
3186
|
|
|
3160
3187
|
.awsui-context-flashbar-warning.awsui-visual-refresh:not(#\9) {
|
|
@@ -3187,6 +3214,8 @@
|
|
|
3187
3214
|
--color-text-link-inverted-hover-7jk1d1:#0f141a;
|
|
3188
3215
|
--color-text-notification-default-fmebm4:#0f141a;
|
|
3189
3216
|
--color-text-segment-hover-bhj7qd:#0f141a;
|
|
3217
|
+
--color-text-tutorial-hotspot-default-r59hr8:#656871;
|
|
3218
|
+
--color-text-tutorial-hotspot-hover-r1skao:#131920;
|
|
3190
3219
|
}
|
|
3191
3220
|
|
|
3192
3221
|
.awsui-visual-refresh .awsui-context-alert:not(#\9) {
|
|
@@ -3455,6 +3484,8 @@
|
|
|
3455
3484
|
--color-text-status-success-vmys4n:#2bb534;
|
|
3456
3485
|
--color-text-status-warning-75jmgn:#fbd332;
|
|
3457
3486
|
--color-text-top-navigation-title-50mcr5:#f9f9fa;
|
|
3487
|
+
--color-text-tutorial-hotspot-default-r59hr8:#42b4ff;
|
|
3488
|
+
--color-text-tutorial-hotspot-hover-r1skao:#75cfff;
|
|
3458
3489
|
--color-board-placeholder-active-oe22ia:#656871;
|
|
3459
3490
|
--color-board-placeholder-hover-jxjr60:#006ce0;
|
|
3460
3491
|
--color-drag-placeholder-active-mhklvu:#656871;
|
|
@@ -3667,6 +3698,8 @@
|
|
|
3667
3698
|
--color-text-status-success-vmys4n:#2bb534;
|
|
3668
3699
|
--color-text-status-warning-75jmgn:#fbd332;
|
|
3669
3700
|
--color-text-top-navigation-title-50mcr5:#f9f9fa;
|
|
3701
|
+
--color-text-tutorial-hotspot-default-r59hr8:#42b4ff;
|
|
3702
|
+
--color-text-tutorial-hotspot-hover-r1skao:#75cfff;
|
|
3670
3703
|
--color-board-placeholder-active-oe22ia:#656871;
|
|
3671
3704
|
--color-board-placeholder-hover-jxjr60:#006ce0;
|
|
3672
3705
|
--color-drag-placeholder-active-mhklvu:#656871;
|
|
@@ -3716,6 +3749,7 @@
|
|
|
3716
3749
|
--color-border-input-focused-s42oju:#42b4ff;
|
|
3717
3750
|
--color-border-tabs-shadow-0fojr3:rgba(15, 20, 26, 1);
|
|
3718
3751
|
--color-text-body-default-1tki40:#0f141a;
|
|
3752
|
+
--color-text-tutorial-hotspot-hover-r1skao:#131920;
|
|
3719
3753
|
}
|
|
3720
3754
|
}
|
|
3721
3755
|
@media not print {
|
|
@@ -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,M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+
{"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,CAAC;AAE3C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAE3D,MAAM,gBAAgB,GAAG,UAAU,CACjC,CACE,EACE,OAAO,GAAG,gBAAgB,EAC1B,IAAI,GAAG,QAAQ,EACf,SAAS,EACT,SAAS,EACT,cAAc,EACd,eAAe,EACf,SAAS,EACT,QAAQ,EACR,aAAa,EACb,SAAS,GACO,EAClB,GAAuB,EACvB,EAAE;IACF,MAAM,mBAAmB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAEzD,MAAM,SAAS,GAAc,CAAC,GAAG,EAAE;QACjC,MAAM,MAAM,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAE,UAAoB,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC;QAC/E,QAAQ,OAAO,EAAE;YACf,KAAK,gBAAgB;gBACnB,uCAAY,MAAM,KAAE,IAAI,EAAE,gBAAgB,IAAG;YAC/C,KAAK,aAAa;gBAChB,uCAAY,MAAM,KAAE,IAAI,EAAE,aAAa,IAAG;YAC5C,KAAK,mBAAmB;gBACtB,uCAAY,MAAM,KAAE,GAAG,EAAE,oBAAC,UAAU,IAAC,OAAO,EAAC,YAAY,GAAG,IAAG;YACjE,KAAK,iBAAiB;gBACpB,uCAAY,MAAM,KAAE,GAAG,EAAE,oBAAC,UAAU,IAAC,OAAO,EAAC,UAAU,GAAG,IAAG;SAChE;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO;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"]}
|
|
@@ -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",
|