@cloudscape-design/components 3.0.266 → 3.0.268
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/button/interfaces.d.ts +3 -2
- package/button/interfaces.d.ts.map +1 -1
- package/button/interfaces.js.map +1 -1
- package/button/internal.js +2 -2
- package/button/internal.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/table/body-cell/styles.css.js +23 -23
- package/table/body-cell/styles.scoped.css +56 -55
- package/table/body-cell/styles.selectors.js +23 -23
- package/table/body-cell/td-element.d.ts +2 -1
- package/table/body-cell/td-element.d.ts.map +1 -1
- package/table/body-cell/td-element.js +7 -2
- package/table/body-cell/td-element.js.map +1 -1
- package/table/interfaces.d.ts +2 -0
- package/table/interfaces.d.ts.map +1 -1
- package/table/interfaces.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +1 -1
- package/table/internal.js.map +1 -1
- package/test-utils/dom/table/index.js +1 -1
- package/test-utils/dom/table/index.js.map +1 -1
- package/test-utils/selectors/table/index.js +1 -1
- package/test-utils/selectors/table/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/top-navigation/interfaces.d.ts +3 -0
- package/top-navigation/interfaces.d.ts.map +1 -1
- package/top-navigation/interfaces.js.map +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.d.ts +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.js +11 -33
- package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
- package/top-navigation/parts/overflow-menu/views/submenu.d.ts.map +1 -1
- package/top-navigation/parts/overflow-menu/views/submenu.js +6 -4
- package/top-navigation/parts/overflow-menu/views/submenu.js.map +1 -1
- package/top-navigation/parts/utility.d.ts.map +1 -1
- package/top-navigation/parts/utility.js +5 -2
- package/top-navigation/parts/utility.js.map +1 -1
package/button/interfaces.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseComponentProps } from '../internal/base-component';
|
|
2
2
|
import { IconProps } from '../icon/interfaces';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';
|
|
4
|
+
import { BaseNavigationDetail, CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';
|
|
5
5
|
export interface ButtonProps extends BaseComponentProps {
|
|
6
6
|
/**
|
|
7
7
|
* Renders the button as disabled and prevents clicks.
|
|
@@ -116,7 +116,7 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
116
116
|
* Called when the user clicks on the button with the left mouse button without pressing
|
|
117
117
|
* modifier keys (that is, CTRL, ALT, SHIFT, META), and the button has an `href` set.
|
|
118
118
|
*/
|
|
119
|
-
onFollow?: CancelableEventHandler<
|
|
119
|
+
onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;
|
|
120
120
|
/**
|
|
121
121
|
* Adds aria-expanded to the button element. Use when the button controls an expandable element.
|
|
122
122
|
*/
|
|
@@ -125,6 +125,7 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
125
125
|
export declare namespace ButtonProps {
|
|
126
126
|
type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon';
|
|
127
127
|
type ClickDetail = _ClickDetail;
|
|
128
|
+
type FollowDetail = BaseNavigationDetail;
|
|
128
129
|
type FormAction = 'submit' | 'none';
|
|
129
130
|
type IconAlign = 'left' | 'right';
|
|
130
131
|
interface Ref {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["button/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAA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O,CAAC;IAEnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAE1D;;;OAGG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAE5D;;OAEG;IAEH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,yBAAiB,WAAW,CAAC;IAC3B,KAAY,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CAAC;IAC7E,KAAY,WAAW,GAAG,YAAY,CAAC;IACvC,KAAY,YAAY,GAAG,oBAAoB,CAAC;IAEhD,KAAY,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;IAE3C,KAAY,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAEzC,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;KACrC;CACF"}
|
package/button/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["button/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { IconProps } from '../icon/interfaces';\nimport React from 'react';\nimport { CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';\n\nexport interface ButtonProps extends BaseComponentProps {\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents users from clicking the button, but it can still be focused.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button is in a loading state.\n */\n loadingText?: string;\n /**\n * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies the alignment of the icon.\n */\n iconAlign?: ButtonProps.IconAlign;\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if you want your custom icon to inherit colors dictated by variant or hover states.\n * When this property is set, the component will be decorated with `aria-hidden=\"true\"`. Ensure that the `svg` element:\n * - has attribute `focusable=\"false\"`.\n * - has `viewBox=\"0 0 16 16\"`.\n *\n * If you set the `svg` element as the root node of the slot, the component will automatically\n * - set `stroke=\"currentColor\"`, `fill=\"none\"`, and `vertical-align=\"top\"`.\n * - set the stroke width based on the size of the icon.\n * - set the width and height of the SVG element based on the size of the icon.\n *\n * If you don't want these styles to be automatically set, wrap the `svg` element into a `span`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n *\n * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.\n * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.\n */\n iconSvg?: React.ReactNode;\n /**\n * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.\n * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.\n */\n iconAlt?: string;\n /**\n * The form action that is performed by a button click.\n */\n formAction?: ButtonProps.FormAction;\n /**\n * Adds `aria-label` to the button element. It should be used in buttons that don't have text in order to make\n * them accessible.\n */\n ariaLabel?: string;\n /**\n * Applies button styling to a link. Use this property if you need a link styled as a button (`variant=link`).\n * For example, if you have a 'help' button that links to a documentation page.\n */\n href?: string;\n\n /**\n * Specifies where to open the linked URL (for example, to open in a new browser window or tab use `_blank`).\n * This property only applies when an `href` is provided.\n */\n target?: string;\n\n /**\n * Adds a `rel` attribute to the link. By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `target` is `\"_blank\"`.\n * If the `rel` property is provided, it overrides the default behavior.\n */\n rel?: string;\n\n /**\n * Specifies whether the linked URL, when selected, will prompt the user to download instead of navigate.\n * You can specify a string value that will be suggested as the name of the downloaded file.\n * This property only applies when an `href` is provided.\n **/\n download?: boolean | string;\n\n /**\n * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.\n */\n wrapText?: boolean;\n\n /** Determines the general styling of the button as follows:\n * * `primary` for primary buttons.\n * * `normal` for secondary buttons.\n * * `link` for tertiary buttons.\n * * `icon` to display an icon only (no text).\n * * `inline-icon` to display an icon-only (no text) button within a text context.\n */\n variant?: ButtonProps.Variant;\n\n /** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.\n * Use when a button is not the ancestor of a form element, such as when used in a modal.\n */\n form?: string;\n\n /**\n * Text displayed in the button element.\n * @displayname text\n */\n children?: React.ReactNode;\n\n /**\n * Called when the user clicks on the button and the button is not disabled or in loading state.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Called when the user clicks on the button with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the button has an `href` set.\n */\n onFollow?: CancelableEventHandler<
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["button/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { IconProps } from '../icon/interfaces';\nimport React from 'react';\nimport { BaseNavigationDetail, CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';\n\nexport interface ButtonProps extends BaseComponentProps {\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents users from clicking the button, but it can still be focused.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button is in a loading state.\n */\n loadingText?: string;\n /**\n * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies the alignment of the icon.\n */\n iconAlign?: ButtonProps.IconAlign;\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if you want your custom icon to inherit colors dictated by variant or hover states.\n * When this property is set, the component will be decorated with `aria-hidden=\"true\"`. Ensure that the `svg` element:\n * - has attribute `focusable=\"false\"`.\n * - has `viewBox=\"0 0 16 16\"`.\n *\n * If you set the `svg` element as the root node of the slot, the component will automatically\n * - set `stroke=\"currentColor\"`, `fill=\"none\"`, and `vertical-align=\"top\"`.\n * - set the stroke width based on the size of the icon.\n * - set the width and height of the SVG element based on the size of the icon.\n *\n * If you don't want these styles to be automatically set, wrap the `svg` element into a `span`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n *\n * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.\n * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.\n */\n iconSvg?: React.ReactNode;\n /**\n * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.\n * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.\n */\n iconAlt?: string;\n /**\n * The form action that is performed by a button click.\n */\n formAction?: ButtonProps.FormAction;\n /**\n * Adds `aria-label` to the button element. It should be used in buttons that don't have text in order to make\n * them accessible.\n */\n ariaLabel?: string;\n /**\n * Applies button styling to a link. Use this property if you need a link styled as a button (`variant=link`).\n * For example, if you have a 'help' button that links to a documentation page.\n */\n href?: string;\n\n /**\n * Specifies where to open the linked URL (for example, to open in a new browser window or tab use `_blank`).\n * This property only applies when an `href` is provided.\n */\n target?: string;\n\n /**\n * Adds a `rel` attribute to the link. By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `target` is `\"_blank\"`.\n * If the `rel` property is provided, it overrides the default behavior.\n */\n rel?: string;\n\n /**\n * Specifies whether the linked URL, when selected, will prompt the user to download instead of navigate.\n * You can specify a string value that will be suggested as the name of the downloaded file.\n * This property only applies when an `href` is provided.\n **/\n download?: boolean | string;\n\n /**\n * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.\n */\n wrapText?: boolean;\n\n /** Determines the general styling of the button as follows:\n * * `primary` for primary buttons.\n * * `normal` for secondary buttons.\n * * `link` for tertiary buttons.\n * * `icon` to display an icon only (no text).\n * * `inline-icon` to display an icon-only (no text) button within a text context.\n */\n variant?: ButtonProps.Variant;\n\n /** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.\n * Use when a button is not the ancestor of a form element, such as when used in a modal.\n */\n form?: string;\n\n /**\n * Text displayed in the button element.\n * @displayname text\n */\n children?: React.ReactNode;\n\n /**\n * Called when the user clicks on the button and the button is not disabled or in loading state.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Called when the user clicks on the button with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the button has an `href` set.\n */\n onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;\n\n /**\n * Adds aria-expanded to the button element. Use when the button controls an expandable element.\n */\n\n ariaExpanded?: boolean;\n}\n\nexport namespace ButtonProps {\n export type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon';\n export type ClickDetail = _ClickDetail;\n export type FollowDetail = BaseNavigationDetail;\n\n export type FormAction = 'submit' | 'none';\n\n export type IconAlign = 'left' | 'right';\n\n export interface Ref {\n /**\n * Focuses the underlying native button.\n */\n focus(options?: FocusOptions): void;\n }\n}\n"]}
|
package/button/internal.js
CHANGED
|
@@ -23,11 +23,11 @@ export const InternalButton = React.forwardRef((_a, ref) => {
|
|
|
23
23
|
return event.preventDefault();
|
|
24
24
|
}
|
|
25
25
|
if (isAnchor && isPlainLeftClick(event)) {
|
|
26
|
-
fireCancelableEvent(onFollow,
|
|
26
|
+
fireCancelableEvent(onFollow, { href, target }, event);
|
|
27
27
|
}
|
|
28
28
|
const { altKey, button, ctrlKey, metaKey, shiftKey } = event;
|
|
29
29
|
fireCancelableEvent(onClick, { altKey, button, ctrlKey, metaKey, shiftKey }, event);
|
|
30
|
-
}, [isAnchor, isNotInteractive, onClick, onFollow]);
|
|
30
|
+
}, [isAnchor, isNotInteractive, onClick, onFollow, href, target]);
|
|
31
31
|
const buttonClass = clsx(props.className, styles.button, styles[`variant-${variant}`], {
|
|
32
32
|
[styles.disabled]: isNotInteractive,
|
|
33
33
|
[styles['button-no-wrap']]: !wrapText,
|
package/button/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["button/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAmB,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAGrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,UAAU,MAAM,oCAAoC,CAAC;AAS5D,MAAM,CA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OAAO,CACL;QACE,gDACM,WAAW,IACf,IAAI,EAAE,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EACjD,QAAQ,EAAE,QAAQ,mBACH,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,KAErD,aAAa,CACP;QACR,OAAO,IAAI,WAAW,IAAI,oBAAC,UAAU,QAAE,WAAW,CAAc,CAChE,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useCallback, useRef } from 'react';\nimport { fireCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport styles from './styles.css.js';\nimport { ButtonIconProps, LeftIcon, RightIcon } from './icon-helper';\nimport { ButtonProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport LiveRegion from '../internal/components/live-region';\n\ntype InternalButtonProps = Omit<ButtonProps, 'variant'> & {\n variant?: ButtonProps['variant'] | 'flashbar-icon' | 'breadcrumb-group' | 'menu-trigger' | 'modal-dismiss';\n __nativeAttributes?: Record<string, any>;\n __iconClass?: string;\n __activated?: boolean;\n} & InternalBaseComponentProps;\n\nexport const InternalButton = React.forwardRef(\n (\n {\n children,\n iconName,\n __iconClass,\n onClick,\n onFollow,\n iconAlign = 'left',\n iconUrl,\n iconSvg,\n iconAlt,\n variant = 'normal',\n loading = false,\n loadingText,\n disabled = false,\n wrapText = true,\n href,\n target,\n rel,\n download,\n formAction = 'submit',\n ariaLabel,\n ariaExpanded,\n __nativeAttributes,\n __internalRootRef = null,\n __activated = false,\n ...props\n }: InternalButtonProps,\n ref: React.Ref<ButtonProps.Ref>\n ) => {\n checkSafeUrl('Button', href);\n const isAnchor = Boolean(href);\n const isNotInteractive = loading || disabled;\n const shouldHaveContent =\n children && ['icon', 'inline-icon', 'flashbar-icon', 'modal-dismiss'].indexOf(variant) === -1;\n\n const buttonRef = useRef<HTMLElement>(null);\n useForwardFocus(ref, buttonRef);\n\n const handleClick = useCallback(\n (event: React.MouseEvent) => {\n if (isNotInteractive) {\n return event.preventDefault();\n }\n\n if (isAnchor && isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, { href, target }, event);\n }\n\n const { altKey, button, ctrlKey, metaKey, shiftKey } = event;\n fireCancelableEvent(onClick, { altKey, button, ctrlKey, metaKey, shiftKey }, event);\n },\n [isAnchor, isNotInteractive, onClick, onFollow, href, target]\n );\n\n const buttonClass = clsx(props.className, styles.button, styles[`variant-${variant}`], {\n [styles.disabled]: isNotInteractive,\n [styles['button-no-wrap']]: !wrapText,\n [styles['button-no-text']]: !shouldHaveContent,\n [styles['is-activated']]: __activated,\n });\n\n const buttonProps = {\n ...props,\n ...__nativeAttributes,\n // https://github.com/microsoft/TypeScript/issues/36659\n ref: useMergeRefs(buttonRef as any, __internalRootRef),\n 'aria-label': ariaLabel,\n 'aria-expanded': ariaExpanded,\n className: buttonClass,\n onClick: handleClick,\n } as const;\n const iconProps: ButtonIconProps = {\n loading,\n iconName,\n iconAlign,\n iconUrl,\n iconSvg,\n iconAlt,\n variant,\n iconClass: __iconClass,\n iconSize: variant === 'modal-dismiss' ? 'medium' : 'normal',\n };\n const buttonContent = (\n <>\n <LeftIcon {...iconProps} />\n {shouldHaveContent && <span className={styles.content}>{children}</span>}\n <RightIcon {...iconProps} />\n </>\n );\n\n if (isAnchor) {\n return (\n // https://github.com/yannickcr/eslint-plugin-react/issues/2962\n // eslint-disable-next-line react/jsx-no-target-blank\n <>\n <a\n {...buttonProps}\n href={href}\n target={target}\n // security recommendation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target\n rel={rel ?? (target === '_blank' ? 'noopener noreferrer' : undefined)}\n tabIndex={isNotInteractive ? -1 : undefined}\n aria-disabled={isNotInteractive ? true : undefined}\n download={download}\n >\n {buttonContent}\n </a>\n {loading && loadingText && <LiveRegion>{loadingText}</LiveRegion>}\n </>\n );\n }\n return (\n <>\n <button\n {...buttonProps}\n type={formAction === 'none' ? 'button' : 'submit'}\n disabled={disabled}\n aria-disabled={loading && !disabled ? true : undefined}\n >\n {buttonContent}\n </button>\n {loading && loadingText && <LiveRegion>{loadingText}</LiveRegion>}\n </>\n );\n }\n);\n\nexport default InternalButton;\n"]}
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"body-cell": "awsui_body-
|
|
5
|
-
"body-cell-wrap": "awsui_body-cell-
|
|
6
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
7
|
-
"has-striped-rows": "awsui_has-striped-
|
|
8
|
-
"body-cell-edit-active": "awsui_body-cell-edit-
|
|
9
|
-
"body-cell-editable": "awsui_body-cell-
|
|
10
|
-
"has-selection": "awsui_has-
|
|
11
|
-
"body-cell-first-row": "awsui_body-cell-first-
|
|
12
|
-
"body-cell-last-row": "awsui_body-cell-last-
|
|
13
|
-
"body-cell-selected": "awsui_body-cell-
|
|
14
|
-
"has-footer": "awsui_has-
|
|
15
|
-
"body-cell-shaded": "awsui_body-cell-
|
|
16
|
-
"body-cell-next-selected": "awsui_body-cell-next-
|
|
17
|
-
"body-cell-prev-selected": "awsui_body-cell-prev-
|
|
18
|
-
"body-cell-success": "awsui_body-cell-
|
|
19
|
-
"body-cell-editor": "awsui_body-cell-
|
|
20
|
-
"body-cell-success-form": "awsui_body-cell-success-
|
|
21
|
-
"body-cell-editor-form": "awsui_body-cell-editor-
|
|
22
|
-
"body-cell-success-row": "awsui_body-cell-success-
|
|
23
|
-
"body-cell-editor-row": "awsui_body-cell-editor-
|
|
24
|
-
"body-cell-success-controls": "awsui_body-cell-success-
|
|
25
|
-
"body-cell-editor-controls": "awsui_body-cell-editor-
|
|
26
|
-
"body-cell-has-success": "awsui_body-cell-has-
|
|
4
|
+
"body-cell": "awsui_body-cell_c6tup_1p6xu_93",
|
|
5
|
+
"body-cell-wrap": "awsui_body-cell-wrap_c6tup_1p6xu_103",
|
|
6
|
+
"is-visual-refresh": "awsui_is-visual-refresh_c6tup_1p6xu_115",
|
|
7
|
+
"has-striped-rows": "awsui_has-striped-rows_c6tup_1p6xu_127",
|
|
8
|
+
"body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_1p6xu_130",
|
|
9
|
+
"body-cell-editable": "awsui_body-cell-editable_c6tup_1p6xu_130",
|
|
10
|
+
"has-selection": "awsui_has-selection_c6tup_1p6xu_136",
|
|
11
|
+
"body-cell-first-row": "awsui_body-cell-first-row_c6tup_1p6xu_142",
|
|
12
|
+
"body-cell-last-row": "awsui_body-cell-last-row_c6tup_1p6xu_145",
|
|
13
|
+
"body-cell-selected": "awsui_body-cell-selected_c6tup_1p6xu_145",
|
|
14
|
+
"has-footer": "awsui_has-footer_c6tup_1p6xu_145",
|
|
15
|
+
"body-cell-shaded": "awsui_body-cell-shaded_c6tup_1p6xu_155",
|
|
16
|
+
"body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_1p6xu_177",
|
|
17
|
+
"body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_1p6xu_181",
|
|
18
|
+
"body-cell-success": "awsui_body-cell-success_c6tup_1p6xu_205",
|
|
19
|
+
"body-cell-editor": "awsui_body-cell-editor_c6tup_1p6xu_205",
|
|
20
|
+
"body-cell-success-form": "awsui_body-cell-success-form_c6tup_1p6xu_227",
|
|
21
|
+
"body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_1p6xu_227",
|
|
22
|
+
"body-cell-success-row": "awsui_body-cell-success-row_c6tup_1p6xu_236",
|
|
23
|
+
"body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_1p6xu_236",
|
|
24
|
+
"body-cell-success-controls": "awsui_body-cell-success-controls_c6tup_1p6xu_246",
|
|
25
|
+
"body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_1p6xu_246",
|
|
26
|
+
"body-cell-has-success": "awsui_body-cell-has-success_c6tup_1p6xu_259"
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.awsui_body-
|
|
93
|
+
.awsui_body-cell_c6tup_1p6xu_93:not(#\9) {
|
|
94
94
|
box-sizing: border-box;
|
|
95
95
|
padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px) calc(
|
|
96
96
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
|
|
@@ -98,20 +98,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
98
98
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid transparent;
|
|
99
99
|
word-wrap: break-word;
|
|
100
100
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
101
|
+
font-weight: inherit;
|
|
101
102
|
}
|
|
102
|
-
.awsui_body-
|
|
103
|
+
.awsui_body-cell_c6tup_1p6xu_93:not(#\9):not(.awsui_body-cell-wrap_c6tup_1p6xu_103) {
|
|
103
104
|
white-space: nowrap;
|
|
104
105
|
overflow: hidden;
|
|
105
106
|
text-overflow: ellipsis;
|
|
106
107
|
}
|
|
107
|
-
.awsui_body-
|
|
108
|
+
.awsui_body-cell_c6tup_1p6xu_93:not(#\9):first-child {
|
|
108
109
|
border-left: var(--border-item-width-qbbbsa, 2px) solid transparent;
|
|
109
110
|
}
|
|
110
|
-
.awsui_body-
|
|
111
|
+
.awsui_body-cell_c6tup_1p6xu_93:not(#\9):last-child {
|
|
111
112
|
border-right: var(--border-item-width-qbbbsa, 2px) solid transparent;
|
|
112
113
|
padding-right: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
|
|
113
114
|
}
|
|
114
|
-
.awsui_body-
|
|
115
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_is-visual-refresh_c6tup_1p6xu_115:not(#\9):first-child {
|
|
115
116
|
/*
|
|
116
117
|
Striped rows requires additional left padding because the
|
|
117
118
|
shaded background makes the child content appear too close
|
|
@@ -123,85 +124,85 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
123
124
|
that the placeholder border would consume.
|
|
124
125
|
*/
|
|
125
126
|
}
|
|
126
|
-
.awsui_body-
|
|
127
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_is-visual-refresh_c6tup_1p6xu_115:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1p6xu_127) {
|
|
127
128
|
padding-left: var(--space-xxxs-k2w98v, 2px);
|
|
128
129
|
}
|
|
129
|
-
.awsui_body-
|
|
130
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_is-visual-refresh_c6tup_1p6xu_115:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1p6xu_127):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130).awsui_body-cell-editable_c6tup_1p6xu_130:hover {
|
|
130
131
|
padding-left: calc(var(--space-xxxs-k2w98v, 2px) + var(--border-divider-list-width-hacikr, 1px));
|
|
131
132
|
}
|
|
132
|
-
.awsui_body-
|
|
133
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_is-visual-refresh_c6tup_1p6xu_115:not(#\9):first-child:first-child.awsui_has-striped-rows_c6tup_1p6xu_127 {
|
|
133
134
|
padding-left: var(--space-xxs-ynfts5, 4px);
|
|
134
135
|
}
|
|
135
|
-
.awsui_body-
|
|
136
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_is-visual-refresh_c6tup_1p6xu_115:not(#\9):first-child:not(.awsui_has-selection_c6tup_1p6xu_136):not(.awsui_body-cell-editable_c6tup_1p6xu_130) {
|
|
136
137
|
border-left: none;
|
|
137
138
|
}
|
|
138
|
-
.awsui_body-
|
|
139
|
+
.awsui_body-cell_c6tup_1p6xu_93:not(#\9):first-child:not(.awsui_is-visual-refresh_c6tup_1p6xu_115) {
|
|
139
140
|
padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
|
|
140
141
|
}
|
|
141
|
-
.awsui_body-cell-first-
|
|
142
|
+
.awsui_body-cell-first-row_c6tup_1p6xu_142:not(#\9) {
|
|
142
143
|
border-top: var(--border-item-width-qbbbsa, 2px) solid transparent;
|
|
143
144
|
}
|
|
144
|
-
.awsui_body-cell-last-
|
|
145
|
+
.awsui_body-cell-last-row_c6tup_1p6xu_145:not(#\9):not(.awsui_body-cell-selected_c6tup_1p6xu_145):not(.awsui_has-footer_c6tup_1p6xu_145) {
|
|
145
146
|
border-bottom: var(--border-item-width-qbbbsa, 2px) solid transparent;
|
|
146
147
|
}
|
|
147
|
-
.awsui_body-cell-last-
|
|
148
|
+
.awsui_body-cell-last-row_c6tup_1p6xu_145:not(#\9):not(.awsui_body-cell-selected_c6tup_1p6xu_145).awsui_has-footer_c6tup_1p6xu_145 {
|
|
148
149
|
/*
|
|
149
150
|
Add a bottom border to the body cells of the last row as a separator between the
|
|
150
151
|
table and the footer
|
|
151
152
|
*/
|
|
152
153
|
border-bottom: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
153
154
|
}
|
|
154
|
-
.awsui_body-cell-
|
|
155
|
+
.awsui_body-cell-shaded_c6tup_1p6xu_155:not(#\9) {
|
|
155
156
|
background: var(--color-background-cell-shaded-26ubfj, #f8f8f8);
|
|
156
157
|
}
|
|
157
|
-
.awsui_body-cell-
|
|
158
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145:not(#\9) {
|
|
158
159
|
background-color: var(--color-background-item-selected-ebt4bi, #f2f8fd);
|
|
159
160
|
border-top: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
160
161
|
border-bottom: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
161
162
|
padding-bottom: var(--space-scaled-xs-6859qs, 8px);
|
|
162
163
|
}
|
|
163
|
-
.awsui_body-cell-
|
|
164
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145:not(#\9):first-child {
|
|
164
165
|
border-left: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
165
166
|
border-radius: var(--border-radius-item-u2ibpi, 8px) 0 0 var(--border-radius-item-u2ibpi, 8px);
|
|
166
167
|
}
|
|
167
|
-
.awsui_body-cell-
|
|
168
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145:not(#\9):last-child {
|
|
168
169
|
border-right: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
169
170
|
border-radius: 0 var(--border-radius-item-u2ibpi, 8px) var(--border-radius-item-u2ibpi, 8px) 0;
|
|
170
171
|
}
|
|
171
|
-
.awsui_body-cell-
|
|
172
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145:not(#\9):not(:first-child) {
|
|
172
173
|
padding-top: calc(
|
|
173
174
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
|
|
174
175
|
);
|
|
175
176
|
}
|
|
176
|
-
.awsui_body-
|
|
177
|
+
.awsui_body-cell_c6tup_1p6xu_93:not(#\9):not(.awsui_body-cell-selected_c6tup_1p6xu_145).awsui_body-cell-next-selected_c6tup_1p6xu_177 {
|
|
177
178
|
border-bottom: 0;
|
|
178
179
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) + var(--border-divider-list-width-hacikr, 1px));
|
|
179
180
|
}
|
|
180
|
-
.awsui_body-cell-
|
|
181
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145.awsui_body-cell-prev-selected_c6tup_1p6xu_181:not(#\9) {
|
|
181
182
|
padding-top: calc(
|
|
182
183
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
|
|
183
184
|
);
|
|
184
185
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-item-placeholder-jgzhnb, #0972d3);
|
|
185
186
|
}
|
|
186
|
-
.awsui_body-cell-
|
|
187
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145.awsui_body-cell-next-selected_c6tup_1p6xu_177:not(#\9) {
|
|
187
188
|
border-bottom-width: var(--border-divider-list-width-hacikr, 1px);
|
|
188
189
|
}
|
|
189
|
-
.awsui_body-cell-
|
|
190
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145.awsui_body-cell-next-selected_c6tup_1p6xu_177:not(#\9):first-child {
|
|
190
191
|
border-bottom-left-radius: 0;
|
|
191
192
|
}
|
|
192
|
-
.awsui_body-cell-
|
|
193
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145.awsui_body-cell-next-selected_c6tup_1p6xu_177:not(#\9):last-child {
|
|
193
194
|
border-bottom-right-radius: 0;
|
|
194
195
|
}
|
|
195
|
-
.awsui_body-cell-
|
|
196
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145.awsui_body-cell-prev-selected_c6tup_1p6xu_181:not(#\9):first-child {
|
|
196
197
|
border-top-left-radius: 0;
|
|
197
198
|
}
|
|
198
|
-
.awsui_body-cell-
|
|
199
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145.awsui_body-cell-prev-selected_c6tup_1p6xu_181:not(#\9):last-child {
|
|
199
200
|
border-top-right-radius: 0;
|
|
200
201
|
}
|
|
201
|
-
.awsui_body-cell-
|
|
202
|
+
.awsui_body-cell-selected_c6tup_1p6xu_145:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_1p6xu_181) {
|
|
202
203
|
padding-top: var(--space-scaled-xs-6859qs, 8px);
|
|
203
204
|
}
|
|
204
|
-
.awsui_body-cell-
|
|
205
|
+
.awsui_body-cell-success_c6tup_1p6xu_205:not(#\9), .awsui_body-cell-editor_c6tup_1p6xu_205:not(#\9) {
|
|
205
206
|
top: 0;
|
|
206
207
|
right: 0;
|
|
207
208
|
bottom: 0;
|
|
@@ -217,62 +218,62 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
217
218
|
padding-right: calc(var(--space-xs-rsr2qu, 8px) + var(--space-xxs-ynfts5, 4px));
|
|
218
219
|
color: var(--color-text-button-normal-default-u8647m, #0972d3);
|
|
219
220
|
}
|
|
220
|
-
.awsui_body-cell-
|
|
221
|
+
.awsui_body-cell-success_c6tup_1p6xu_205:not(#\9):hover, .awsui_body-cell-editor_c6tup_1p6xu_205:not(#\9):hover {
|
|
221
222
|
color: var(--color-text-button-normal-hover-kxmvcc, #033160);
|
|
222
223
|
}
|
|
223
|
-
.awsui_body-cell-
|
|
224
|
+
.awsui_body-cell-success_c6tup_1p6xu_205:not(#\9):active, .awsui_body-cell-editor_c6tup_1p6xu_205:not(#\9):active {
|
|
224
225
|
color: var(--color-text-button-normal-active-6obrzh, #033160);
|
|
225
226
|
}
|
|
226
|
-
.awsui_body-cell-success-
|
|
227
|
+
.awsui_body-cell-success-form_c6tup_1p6xu_227:not(#\9), .awsui_body-cell-editor-form_c6tup_1p6xu_227:not(#\9) {
|
|
227
228
|
margin: calc(-1 * var(--space-xs-rsr2qu, 8px)) calc(-1.5 * var(--space-xs-rsr2qu, 8px));
|
|
228
229
|
}
|
|
229
|
-
.awsui_is-visual-
|
|
230
|
+
.awsui_is-visual-refresh_c6tup_1p6xu_115.awsui_body-cell_c6tup_1p6xu_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_1p6xu_127 > .awsui_body-cell-success-form_c6tup_1p6xu_227, .awsui_is-visual-refresh_c6tup_1p6xu_115.awsui_body-cell_c6tup_1p6xu_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_1p6xu_127 > .awsui_body-cell-editor-form_c6tup_1p6xu_227 {
|
|
230
231
|
margin-left: calc(-1 * var(--space-xxs-ynfts5, 4px));
|
|
231
232
|
}
|
|
232
|
-
.awsui_is-visual-
|
|
233
|
+
.awsui_is-visual-refresh_c6tup_1p6xu_115.awsui_body-cell_c6tup_1p6xu_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1p6xu_127) > .awsui_body-cell-success-form_c6tup_1p6xu_227, .awsui_is-visual-refresh_c6tup_1p6xu_115.awsui_body-cell_c6tup_1p6xu_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1p6xu_127) > .awsui_body-cell-editor-form_c6tup_1p6xu_227 {
|
|
233
234
|
margin-left: calc(-1 * var(--space-xxxs-k2w98v, 2px));
|
|
234
235
|
}
|
|
235
|
-
.awsui_body-cell-success-
|
|
236
|
+
.awsui_body-cell-success-row_c6tup_1p6xu_236:not(#\9), .awsui_body-cell-editor-row_c6tup_1p6xu_236:not(#\9) {
|
|
236
237
|
display: flex;
|
|
237
238
|
flex-flow: row nowrap;
|
|
238
239
|
align-items: center;
|
|
239
240
|
justify-content: space-between;
|
|
240
241
|
column-gap: var(--space-xxs-ynfts5, 4px);
|
|
241
242
|
}
|
|
242
|
-
.awsui_body-cell-success-
|
|
243
|
+
.awsui_body-cell-success-row_c6tup_1p6xu_236 > :not(#\9):not(:last-child), .awsui_body-cell-editor-row_c6tup_1p6xu_236 > :not(#\9):not(:last-child) {
|
|
243
244
|
flex-grow: 1;
|
|
244
245
|
}
|
|
245
|
-
.awsui_body-cell-success-
|
|
246
|
+
.awsui_body-cell-success-controls_c6tup_1p6xu_246:not(#\9), .awsui_body-cell-editor-controls_c6tup_1p6xu_246:not(#\9) {
|
|
246
247
|
flex-shrink: 0;
|
|
247
248
|
}
|
|
248
|
-
.awsui_body-
|
|
249
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9) {
|
|
249
250
|
position: relative;
|
|
250
251
|
cursor: pointer;
|
|
251
252
|
}
|
|
252
|
-
.awsui_body-
|
|
253
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130.awsui_body-cell-edit-active_c6tup_1p6xu_130:not(#\9) {
|
|
253
254
|
overflow: visible;
|
|
254
255
|
}
|
|
255
|
-
.awsui_body-
|
|
256
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130) > .awsui_body-cell-editor_c6tup_1p6xu_205 {
|
|
256
257
|
opacity: 0;
|
|
257
258
|
}
|
|
258
|
-
.awsui_body-
|
|
259
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130).awsui_body-cell-has-success_c6tup_1p6xu_259 {
|
|
259
260
|
padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
|
|
260
261
|
}
|
|
261
|
-
.awsui_body-
|
|
262
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):focus-within {
|
|
262
263
|
padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
|
|
263
264
|
position: relative;
|
|
264
265
|
}
|
|
265
|
-
.awsui_body-
|
|
266
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):focus-within > .awsui_body-cell-editor_c6tup_1p6xu_205 {
|
|
266
267
|
opacity: 1;
|
|
267
268
|
}
|
|
268
|
-
.awsui_body-
|
|
269
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):focus-within > .awsui_body-cell-success_c6tup_1p6xu_205 {
|
|
269
270
|
opacity: 0;
|
|
270
271
|
}
|
|
271
|
-
.awsui_body-
|
|
272
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):focus-within {
|
|
272
273
|
outline: 2px dotted transparent;
|
|
273
274
|
outline-offset: calc(calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)) - 1px);
|
|
274
275
|
}
|
|
275
|
-
.awsui_body-
|
|
276
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):focus-within::before {
|
|
276
277
|
content: " ";
|
|
277
278
|
display: block;
|
|
278
279
|
position: absolute;
|
|
@@ -283,7 +284,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
283
284
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
284
285
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
285
286
|
}
|
|
286
|
-
.awsui_body-
|
|
287
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover {
|
|
287
288
|
position: relative;
|
|
288
289
|
background-color: var(--color-background-dropdown-item-hover-mqsxkv, #f4f4f4);
|
|
289
290
|
border: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-control-default-m3lmsh, #7d8998);
|
|
@@ -291,38 +292,38 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
291
292
|
right: calc(-1 * var(--border-divider-list-width-hacikr, 1px));
|
|
292
293
|
padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
|
|
293
294
|
}
|
|
294
|
-
.awsui_body-
|
|
295
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover > .awsui_body-cell-editor_c6tup_1p6xu_205 {
|
|
295
296
|
opacity: 1;
|
|
296
297
|
}
|
|
297
|
-
.awsui_body-
|
|
298
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover > .awsui_body-cell-success_c6tup_1p6xu_205 {
|
|
298
299
|
opacity: 0;
|
|
299
300
|
}
|
|
300
|
-
.awsui_body-
|
|
301
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover:first-child {
|
|
301
302
|
left: 0;
|
|
302
303
|
right: 0;
|
|
303
304
|
}
|
|
304
|
-
.awsui_body-
|
|
305
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover > .awsui_body-cell-editor_c6tup_1p6xu_205 {
|
|
305
306
|
padding-right: calc(var(--space-xs-rsr2qu, 8px) + var(--space-xxs-ynfts5, 4px) - (2 * var(--border-divider-list-width-hacikr, 1px)));
|
|
306
307
|
}
|
|
307
|
-
.awsui_body-
|
|
308
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover.awsui_body-cell-last-row_c6tup_1p6xu_145.awsui_body-cell-selected_c6tup_1p6xu_145, .awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover.awsui_body-cell-next-selected_c6tup_1p6xu_177 {
|
|
308
309
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
|
|
309
310
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
|
|
310
311
|
}
|
|
311
|
-
.awsui_body-
|
|
312
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover.awsui_body-cell-last-row_c6tup_1p6xu_145:not(.awsui_body-cell-selected_c6tup_1p6xu_145) {
|
|
312
313
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
313
314
|
}
|
|
314
|
-
.awsui_body-
|
|
315
|
+
.awsui_body-cell_c6tup_1p6xu_93.awsui_body-cell-editable_c6tup_1p6xu_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover.awsui_body-cell-first-row_c6tup_1p6xu_142:not(.awsui_body-cell-selected_c6tup_1p6xu_145) {
|
|
315
316
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
316
317
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
317
318
|
}
|
|
318
|
-
.awsui_body-cell-
|
|
319
|
+
.awsui_body-cell-editable_c6tup_1p6xu_130.awsui_is-visual-refresh_c6tup_1p6xu_115:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover:first-child {
|
|
319
320
|
border-top-left-radius: var(--border-radius-item-u2ibpi, 8px);
|
|
320
321
|
border-bottom-left-radius: var(--border-radius-item-u2ibpi, 8px);
|
|
321
322
|
}
|
|
322
|
-
.awsui_body-cell-
|
|
323
|
+
.awsui_body-cell-editable_c6tup_1p6xu_130.awsui_is-visual-refresh_c6tup_1p6xu_115:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover:last-child {
|
|
323
324
|
border-top-right-radius: var(--border-radius-item-u2ibpi, 8px);
|
|
324
325
|
border-bottom-right-radius: var(--border-radius-item-u2ibpi, 8px);
|
|
325
326
|
}
|
|
326
|
-
.awsui_body-cell-
|
|
327
|
+
.awsui_body-cell-editable_c6tup_1p6xu_130.awsui_is-visual-refresh_c6tup_1p6xu_115:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1p6xu_130):hover.awsui_body-cell-first-row_c6tup_1p6xu_142 > .awsui_body-cell-editor_c6tup_1p6xu_205 {
|
|
327
328
|
padding-top: var(--border-divider-list-width-hacikr, 1px);
|
|
328
329
|
}
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"body-cell": "awsui_body-
|
|
6
|
-
"body-cell-wrap": "awsui_body-cell-
|
|
7
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
8
|
-
"has-striped-rows": "awsui_has-striped-
|
|
9
|
-
"body-cell-edit-active": "awsui_body-cell-edit-
|
|
10
|
-
"body-cell-editable": "awsui_body-cell-
|
|
11
|
-
"has-selection": "awsui_has-
|
|
12
|
-
"body-cell-first-row": "awsui_body-cell-first-
|
|
13
|
-
"body-cell-last-row": "awsui_body-cell-last-
|
|
14
|
-
"body-cell-selected": "awsui_body-cell-
|
|
15
|
-
"has-footer": "awsui_has-
|
|
16
|
-
"body-cell-shaded": "awsui_body-cell-
|
|
17
|
-
"body-cell-next-selected": "awsui_body-cell-next-
|
|
18
|
-
"body-cell-prev-selected": "awsui_body-cell-prev-
|
|
19
|
-
"body-cell-success": "awsui_body-cell-
|
|
20
|
-
"body-cell-editor": "awsui_body-cell-
|
|
21
|
-
"body-cell-success-form": "awsui_body-cell-success-
|
|
22
|
-
"body-cell-editor-form": "awsui_body-cell-editor-
|
|
23
|
-
"body-cell-success-row": "awsui_body-cell-success-
|
|
24
|
-
"body-cell-editor-row": "awsui_body-cell-editor-
|
|
25
|
-
"body-cell-success-controls": "awsui_body-cell-success-
|
|
26
|
-
"body-cell-editor-controls": "awsui_body-cell-editor-
|
|
27
|
-
"body-cell-has-success": "awsui_body-cell-has-
|
|
5
|
+
"body-cell": "awsui_body-cell_c6tup_1p6xu_93",
|
|
6
|
+
"body-cell-wrap": "awsui_body-cell-wrap_c6tup_1p6xu_103",
|
|
7
|
+
"is-visual-refresh": "awsui_is-visual-refresh_c6tup_1p6xu_115",
|
|
8
|
+
"has-striped-rows": "awsui_has-striped-rows_c6tup_1p6xu_127",
|
|
9
|
+
"body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_1p6xu_130",
|
|
10
|
+
"body-cell-editable": "awsui_body-cell-editable_c6tup_1p6xu_130",
|
|
11
|
+
"has-selection": "awsui_has-selection_c6tup_1p6xu_136",
|
|
12
|
+
"body-cell-first-row": "awsui_body-cell-first-row_c6tup_1p6xu_142",
|
|
13
|
+
"body-cell-last-row": "awsui_body-cell-last-row_c6tup_1p6xu_145",
|
|
14
|
+
"body-cell-selected": "awsui_body-cell-selected_c6tup_1p6xu_145",
|
|
15
|
+
"has-footer": "awsui_has-footer_c6tup_1p6xu_145",
|
|
16
|
+
"body-cell-shaded": "awsui_body-cell-shaded_c6tup_1p6xu_155",
|
|
17
|
+
"body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_1p6xu_177",
|
|
18
|
+
"body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_1p6xu_181",
|
|
19
|
+
"body-cell-success": "awsui_body-cell-success_c6tup_1p6xu_205",
|
|
20
|
+
"body-cell-editor": "awsui_body-cell-editor_c6tup_1p6xu_205",
|
|
21
|
+
"body-cell-success-form": "awsui_body-cell-success-form_c6tup_1p6xu_227",
|
|
22
|
+
"body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_1p6xu_227",
|
|
23
|
+
"body-cell-success-row": "awsui_body-cell-success-row_c6tup_1p6xu_236",
|
|
24
|
+
"body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_1p6xu_236",
|
|
25
|
+
"body-cell-success-controls": "awsui_body-cell-success-controls_c6tup_1p6xu_246",
|
|
26
|
+
"body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_1p6xu_246",
|
|
27
|
+
"body-cell-has-success": "awsui_body-cell-has-success_c6tup_1p6xu_259"
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -3,12 +3,13 @@ export interface TableTdElementProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
style?: React.CSSProperties;
|
|
5
5
|
wrapLines: boolean | undefined;
|
|
6
|
+
isRowHeader?: boolean;
|
|
6
7
|
isFirstRow: boolean;
|
|
7
8
|
isLastRow: boolean;
|
|
8
9
|
isSelected: boolean;
|
|
9
10
|
isNextSelected: boolean;
|
|
10
11
|
isPrevSelected: boolean;
|
|
11
|
-
nativeAttributes?: Omit<React.
|
|
12
|
+
nativeAttributes?: Omit<React.TdHTMLAttributes<HTMLTableCellElement> | React.ThHTMLAttributes<HTMLTableCellElement>, 'style' | 'className' | 'onClick'>;
|
|
12
13
|
onClick?: () => void;
|
|
13
14
|
onMouseEnter?: () => void;
|
|
14
15
|
onMouseLeave?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"td-element.d.ts","sourceRoot":"lib/default/","sources":["table/body-cell/td-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,mBAAmB;IAClC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CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,kGA6D1B,CAAC"}
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import styles from './styles.css.js';
|
|
6
|
-
export const TableTdElement = React.forwardRef(({ className, style, children, wrapLines, isFirstRow, isLastRow, isSelected, isNextSelected, isPrevSelected, nativeAttributes, onClick, onMouseEnter, onMouseLeave, isEvenRow, stripedRows, isVisualRefresh, hasSelection, hasFooter, }, ref) => {
|
|
7
|
-
|
|
6
|
+
export const TableTdElement = React.forwardRef(({ className, style, children, wrapLines, isRowHeader, isFirstRow, isLastRow, isSelected, isNextSelected, isPrevSelected, nativeAttributes, onClick, onMouseEnter, onMouseLeave, isEvenRow, stripedRows, isVisualRefresh, hasSelection, hasFooter, }, ref) => {
|
|
7
|
+
let Element = 'td';
|
|
8
|
+
if (isRowHeader) {
|
|
9
|
+
Element = 'th';
|
|
10
|
+
nativeAttributes = Object.assign(Object.assign({}, nativeAttributes), { scope: 'row' });
|
|
11
|
+
}
|
|
12
|
+
return (React.createElement(Element, Object.assign({ style: style, className: clsx(className, styles['body-cell'], wrapLines && styles['body-cell-wrap'], isFirstRow && styles['body-cell-first-row'], isLastRow && styles['body-cell-last-row'], isSelected && styles['body-cell-selected'], isNextSelected && styles['body-cell-next-selected'], isPrevSelected && styles['body-cell-prev-selected'], !isEvenRow && stripedRows && styles['body-cell-shaded'], stripedRows && styles['has-striped-rows'], isVisualRefresh && styles['is-visual-refresh'], hasSelection && styles['has-selection'], hasFooter && styles['has-footer']), onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ref: ref }, nativeAttributes), children));
|
|
8
13
|
});
|
|
9
14
|
//# sourceMappingURL=td-element.js.map
|