@cloudscape-design/components 3.0.1045 → 3.0.1047
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/icon/internal.d.ts.map +1 -1
- package/icon/internal.js +3 -2
- package/icon/internal.js.map +1 -1
- package/icon-provider/context.d.ts +7 -0
- package/icon-provider/context.d.ts.map +1 -0
- package/icon-provider/context.js +10 -0
- package/icon-provider/context.js.map +1 -0
- package/icon-provider/index.d.ts +7 -0
- package/icon-provider/index.d.ts.map +1 -0
- package/icon-provider/index.js +6 -0
- package/icon-provider/index.js.map +1 -0
- package/icon-provider/interfaces.d.ts +150 -0
- package/icon-provider/interfaces.d.ts.map +1 -0
- package/icon-provider/interfaces.js +4 -0
- package/icon-provider/interfaces.js.map +1 -0
- package/icon-provider/internal.d.ts +7 -0
- package/icon-provider/internal.d.ts.map +1 -0
- package/icon-provider/internal.js +24 -0
- package/icon-provider/internal.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/prompt-input/internal.d.ts.map +1 -1
- package/prompt-input/internal.js +1 -0
- package/prompt-input/internal.js.map +1 -1
- package/prompt-input/styles.css.js +17 -16
- package/prompt-input/styles.scoped.css +49 -37
- package/prompt-input/styles.selectors.js +17 -16
package/icon/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/icon/internal.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/icon/internal.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,KAAK,iBAAiB,GAAG,SAAS,GAChC,0BAA0B,GAAG;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAqBJ,QAAA,MAAM,YAAY,0FAWf,iBAAiB,gBA0FnB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,YAAY,CAAC"}
|
package/icon/internal.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
4
|
+
import React, { useContext, useLayoutEffect, useRef, useState } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useMergeRefs, warnOnce } from '@cloudscape-design/component-toolkit/internal';
|
|
7
|
+
import { InternalIconContext } from '../icon-provider/context';
|
|
7
8
|
import { getBaseProps } from '../internal/base-component';
|
|
8
9
|
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
9
|
-
import icons from './generated/icons';
|
|
10
10
|
import styles from './styles.css.js';
|
|
11
11
|
function iconSizeMap(height) {
|
|
12
12
|
if (height === null) {
|
|
@@ -31,6 +31,7 @@ function iconSizeMap(height) {
|
|
|
31
31
|
}
|
|
32
32
|
const InternalIcon = (_a) => {
|
|
33
33
|
var { name, size = 'normal', variant = 'normal', url, alt, ariaLabel, svg, badge, __internalRootRef = null } = _a, props = __rest(_a, ["name", "size", "variant", "url", "alt", "ariaLabel", "svg", "badge", "__internalRootRef"]);
|
|
34
|
+
const icons = useContext(InternalIconContext);
|
|
34
35
|
const iconRef = useRef(null);
|
|
35
36
|
// To ensure a re-render is triggered on visual mode changes
|
|
36
37
|
useVisualRefresh();
|
package/icon/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/icon/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/icon/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAOrC,SAAS,WAAW,CAAC,MAAqB;IACxC,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,2EAA2E;QAC3E,OAAO,QAAQ,CAAC;KACjB;IAED,IAAI,MAAM,IAAI,EAAE,EAAE;QAChB,OAAO,OAAO,CAAC;KAChB;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,KAAK,CAAC;KACd;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,OAAO,CAAC;KAChB;SAAM;QACL,OAAO,QAAQ,CAAC;KACjB;AACH,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,EAWF,EAAE,EAAE;QAXF,EACpB,IAAI,EACJ,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,QAAQ,EAClB,GAAG,EACH,GAAG,EACH,SAAS,EACT,G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BACL,MAAM,iBACN,eAAe;gBAE3B,8BACE,CAAC,EAAC,wKAAwK,EAC1K,SAAS,EAAC,QAAQ,GAClB,CACE,CACP,CAAC;SACH;aAAM;YACL,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;SACpB;IACH,CAAC;IAED,OAAO,CACL,8CAAU,SAAS,EAAM,eAAe,IAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,KAC1E,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CACjC,CACR,CAAC;AACJ,CAAC,CAAC;AAGF,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useLayoutEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { InternalIconContext } from '../icon-provider/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { IconProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalIconProps = IconProps &\n InternalBaseComponentProps & {\n badge?: boolean;\n };\n\nfunction iconSizeMap(height: number | null) {\n if (height === null) {\n // This is the best guess for the contextual height while server rendering.\n return 'normal';\n }\n\n if (height >= 50) {\n return 'large';\n } else if (height >= 36) {\n return 'big';\n } else if (height >= 24) {\n return 'medium';\n } else if (height <= 16) {\n return 'small';\n } else {\n return 'normal';\n }\n}\n\nconst InternalIcon = ({\n name,\n size = 'normal',\n variant = 'normal',\n url,\n alt,\n ariaLabel,\n svg,\n badge,\n __internalRootRef = null,\n ...props\n}: InternalIconProps) => {\n const icons = useContext(InternalIconContext);\n const iconRef = useRef<HTMLElement>(null);\n // To ensure a re-render is triggered on visual mode changes\n useVisualRefresh();\n const [parentHeight, setParentHeight] = useState<number | null>(null);\n const contextualSize = size === 'inherit';\n const iconSize = contextualSize ? iconSizeMap(parentHeight) : size;\n const inlineStyles = contextualSize && parentHeight !== null ? { height: `${parentHeight}px` } : {};\n const baseProps = getBaseProps(props);\n\n baseProps.className = clsx(\n baseProps.className,\n styles.icon,\n contextualSize && styles['icon-flex-height'],\n badge && styles.badge,\n !contextualSize && styles[`size-${iconSize}-mapped-height`],\n styles[`size-${iconSize}`],\n styles[`variant-${variant}`],\n styles[`name-${name}`]\n );\n\n // Possible infinite loop is not a concern here because line\n // height should not change without an external state update.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useLayoutEffect(() => {\n if (!contextualSize || !iconRef.current) {\n return;\n }\n const { lineHeight } = getComputedStyle(iconRef.current);\n const newParentHeight = parseInt(lineHeight, 10);\n setParentHeight(newParentHeight);\n });\n\n const mergedRef = useMergeRefs(iconRef, __internalRootRef);\n const hasAriaLabel = typeof ariaLabel === 'string';\n const labelAttributes = hasAriaLabel ? { role: 'img', 'aria-label': ariaLabel } : {};\n\n if (svg) {\n if (url) {\n warnOnce(\n 'Icon',\n 'You have specified both `url` and `svg`. `svg` will take precedence and `url` will be ignored.'\n );\n }\n return (\n <span {...baseProps} {...labelAttributes} ref={mergedRef} aria-hidden={!hasAriaLabel} style={inlineStyles}>\n {svg}\n </span>\n );\n }\n\n if (url) {\n return (\n <span {...baseProps} ref={mergedRef} style={inlineStyles}>\n <img src={url} alt={ariaLabel ?? alt} />\n </span>\n );\n }\n\n const validIcon = name && Object.prototype.hasOwnProperty.call(icons, name);\n\n function iconMap(name: IconProps.Name) {\n if (name === 'gen-ai' && iconSize === 'small') {\n return (\n <svg\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n aria-hidden=\"true\"\n data-testid=\"gen-ai-filled\"\n >\n <path\n d=\"m8 4.4 1.018 2.582L11.6 8 9.018 9.018 8 11.6 6.982 9.018 4.4 8l2.582-1.018L8 4.4ZM2.405 2.41l.002-.003.003-.002-.003-.002-.002-.003-.002.003-.003.002.003.002.002.003Z\"\n className=\"filled\"\n />\n </svg>\n );\n } else {\n return icons[name];\n }\n }\n\n return (\n <span {...baseProps} {...labelAttributes} ref={mergedRef} style={inlineStyles}>\n {validIcon ? iconMap(name) : undefined}\n </span>\n );\n};\n\nexport { InternalIconProps };\nexport default InternalIcon;\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconProviderProps } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Preload the context with the existing icon set.
|
|
5
|
+
* This allows the Icon component to have these icons available in the context even when no IconProvider is used.
|
|
6
|
+
*/
|
|
7
|
+
export declare const InternalIconContext: import("react").Context<IconProviderProps.Icons>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/icon-provider/context.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,kDAAyD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { createContext } from 'react';
|
|
4
|
+
import generatedIcons from '../icon/generated/icons';
|
|
5
|
+
/**
|
|
6
|
+
* Preload the context with the existing icon set.
|
|
7
|
+
* This allows the Icon component to have these icons available in the context even when no IconProvider is used.
|
|
8
|
+
*/
|
|
9
|
+
export const InternalIconContext = createContext(generatedIcons);
|
|
10
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/icon-provider/context.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,cAAc,MAAM,yBAAyB,CAAC;AAGrD;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAA0B,cAAc,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { createContext } from 'react';\n\nimport generatedIcons from '../icon/generated/icons';\nimport { IconProviderProps } from './interfaces';\n\n/**\n * Preload the context with the existing icon set.\n * This allows the Icon component to have these icons available in the context even when no IconProvider is used.\n */\nexport const InternalIconContext = createContext<IconProviderProps.Icons>(generatedIcons);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icon-provider/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,eAG5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/icon-provider/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,oBAAoB,MAAM,YAAY,CAAC;AAI9C;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAwB;IAC3D,gBAAgB,CAAC,cAAc,CAAC,CAAC;IACjC,OAAO,oBAAC,oBAAoB,oBAAK,KAAK,EAAI,CAAC;AAC7C,CAAC;AAED,gBAAgB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { IconProviderProps } from './interfaces';\nimport InternalIconProvider from './internal';\n\nexport { IconProviderProps } from './interfaces';\n\n/**\n * @awsuiSystem core\n */\nexport default function IconProvider(props: IconProviderProps) {\n useBaseComponent('IconProvider');\n return <InternalIconProvider {...props} />;\n}\n\napplyDisplayName(IconProvider, 'IconProvider');\n"]}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../internal/base-component';
|
|
3
|
+
export interface IconProviderProps extends BaseComponentProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Specifies icon overrides using existing icon names, for example, `{'add-plus': <svg>...</svg>}`.
|
|
7
|
+
*
|
|
8
|
+
* These icon overrides will automatically be applied to any component that is a descendant of this provider, including nested providers.
|
|
9
|
+
*
|
|
10
|
+
* Set to `null` to reset the icons to the default set or set specific icon names to `null` to change them back to the default set.
|
|
11
|
+
*
|
|
12
|
+
* For example, override `AppLayout` icons but not icons in the content slot by wrapping content with an `IconProvider` with this property set to `null`.
|
|
13
|
+
*
|
|
14
|
+
* `<Icon ... />` component can be used as an override (for example, `{'close': <Icon name='arrow-left' />}`).
|
|
15
|
+
* However, if the icon name is the same as the key, for example, `{'close': <Icon name='close' />}` an infinite loop will be created.
|
|
16
|
+
* The same applies to switching icons in the same configuration (for example, `{'close': <Icon name='arrow-left' />, 'arrow-left': <Icon name='close' />}`).
|
|
17
|
+
*/
|
|
18
|
+
icons: IconProviderProps.Icons | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace IconProviderProps {
|
|
21
|
+
interface Icons {
|
|
22
|
+
'add-plus'?: ReactNode | null;
|
|
23
|
+
'anchor-link'?: ReactNode | null;
|
|
24
|
+
'angle-left-double'?: ReactNode | null;
|
|
25
|
+
'angle-left'?: ReactNode | null;
|
|
26
|
+
'angle-right-double'?: ReactNode | null;
|
|
27
|
+
'angle-right'?: ReactNode | null;
|
|
28
|
+
'angle-up'?: ReactNode | null;
|
|
29
|
+
'angle-down'?: ReactNode | null;
|
|
30
|
+
'arrow-left'?: ReactNode | null;
|
|
31
|
+
'arrow-right'?: ReactNode | null;
|
|
32
|
+
'arrow-up'?: ReactNode | null;
|
|
33
|
+
'arrow-down'?: ReactNode | null;
|
|
34
|
+
'audio-full'?: ReactNode | null;
|
|
35
|
+
'audio-half'?: ReactNode | null;
|
|
36
|
+
'audio-off'?: ReactNode | null;
|
|
37
|
+
'backward-10-seconds'?: ReactNode | null;
|
|
38
|
+
bug?: ReactNode | null;
|
|
39
|
+
call?: ReactNode | null;
|
|
40
|
+
calendar?: ReactNode | null;
|
|
41
|
+
'caret-down-filled'?: ReactNode | null;
|
|
42
|
+
'caret-down'?: ReactNode | null;
|
|
43
|
+
'caret-left-filled'?: ReactNode | null;
|
|
44
|
+
'caret-right-filled'?: ReactNode | null;
|
|
45
|
+
'caret-up-filled'?: ReactNode | null;
|
|
46
|
+
'caret-up'?: ReactNode | null;
|
|
47
|
+
check?: ReactNode | null;
|
|
48
|
+
contact?: ReactNode | null;
|
|
49
|
+
close?: ReactNode | null;
|
|
50
|
+
'closed-caption'?: ReactNode | null;
|
|
51
|
+
'closed-caption-unavailable'?: ReactNode | null;
|
|
52
|
+
copy?: ReactNode | null;
|
|
53
|
+
'command-prompt'?: ReactNode | null;
|
|
54
|
+
'delete-marker'?: ReactNode | null;
|
|
55
|
+
download?: ReactNode | null;
|
|
56
|
+
'drag-indicator'?: ReactNode | null;
|
|
57
|
+
edit?: ReactNode | null;
|
|
58
|
+
ellipsis?: ReactNode | null;
|
|
59
|
+
envelope?: ReactNode | null;
|
|
60
|
+
'exit-full-screen'?: ReactNode | null;
|
|
61
|
+
expand?: ReactNode | null;
|
|
62
|
+
external?: ReactNode | null;
|
|
63
|
+
'face-happy'?: ReactNode | null;
|
|
64
|
+
'face-happy-filled'?: ReactNode | null;
|
|
65
|
+
'face-neutral'?: ReactNode | null;
|
|
66
|
+
'face-neutral-filled'?: ReactNode | null;
|
|
67
|
+
'face-sad'?: ReactNode | null;
|
|
68
|
+
'face-sad-filled'?: ReactNode | null;
|
|
69
|
+
'file-open'?: ReactNode | null;
|
|
70
|
+
file?: ReactNode | null;
|
|
71
|
+
filter?: ReactNode | null;
|
|
72
|
+
flag?: ReactNode | null;
|
|
73
|
+
'folder-open'?: ReactNode | null;
|
|
74
|
+
folder?: ReactNode | null;
|
|
75
|
+
'forward-10-seconds'?: ReactNode | null;
|
|
76
|
+
'full-screen'?: ReactNode | null;
|
|
77
|
+
'gen-ai'?: ReactNode | null;
|
|
78
|
+
globe?: ReactNode | null;
|
|
79
|
+
'grid-view'?: ReactNode | null;
|
|
80
|
+
'group-active'?: ReactNode | null;
|
|
81
|
+
group?: ReactNode | null;
|
|
82
|
+
heart?: ReactNode | null;
|
|
83
|
+
'heart-filled'?: ReactNode | null;
|
|
84
|
+
'insert-row'?: ReactNode | null;
|
|
85
|
+
key?: ReactNode | null;
|
|
86
|
+
keyboard?: ReactNode | null;
|
|
87
|
+
'list-view'?: ReactNode | null;
|
|
88
|
+
'location-pin'?: ReactNode | null;
|
|
89
|
+
'lock-private'?: ReactNode | null;
|
|
90
|
+
map?: ReactNode | null;
|
|
91
|
+
menu?: ReactNode | null;
|
|
92
|
+
microphone?: ReactNode | null;
|
|
93
|
+
'microphone-off'?: ReactNode | null;
|
|
94
|
+
'mini-player'?: ReactNode | null;
|
|
95
|
+
multiscreen?: ReactNode | null;
|
|
96
|
+
notification?: ReactNode | null;
|
|
97
|
+
pause?: ReactNode | null;
|
|
98
|
+
play?: ReactNode | null;
|
|
99
|
+
redo?: ReactNode | null;
|
|
100
|
+
refresh?: ReactNode | null;
|
|
101
|
+
remove?: ReactNode | null;
|
|
102
|
+
'resize-area'?: ReactNode | null;
|
|
103
|
+
script?: ReactNode | null;
|
|
104
|
+
search?: ReactNode | null;
|
|
105
|
+
security?: ReactNode | null;
|
|
106
|
+
settings?: ReactNode | null;
|
|
107
|
+
send?: ReactNode | null;
|
|
108
|
+
share?: ReactNode | null;
|
|
109
|
+
shrink?: ReactNode | null;
|
|
110
|
+
'star-filled'?: ReactNode | null;
|
|
111
|
+
'star-half'?: ReactNode | null;
|
|
112
|
+
star?: ReactNode | null;
|
|
113
|
+
'status-in-progress'?: ReactNode | null;
|
|
114
|
+
'status-info'?: ReactNode | null;
|
|
115
|
+
'status-negative'?: ReactNode | null;
|
|
116
|
+
'status-pending'?: ReactNode | null;
|
|
117
|
+
'status-positive'?: ReactNode | null;
|
|
118
|
+
'status-stopped'?: ReactNode | null;
|
|
119
|
+
'status-warning'?: ReactNode | null;
|
|
120
|
+
'subtract-minus'?: ReactNode | null;
|
|
121
|
+
suggestions?: ReactNode | null;
|
|
122
|
+
support?: ReactNode | null;
|
|
123
|
+
'thumbs-down-filled'?: ReactNode | null;
|
|
124
|
+
'thumbs-down'?: ReactNode | null;
|
|
125
|
+
'thumbs-up-filled'?: ReactNode | null;
|
|
126
|
+
'thumbs-up'?: ReactNode | null;
|
|
127
|
+
ticket?: ReactNode | null;
|
|
128
|
+
transcript?: ReactNode | null;
|
|
129
|
+
'treeview-collapse'?: ReactNode | null;
|
|
130
|
+
'treeview-expand'?: ReactNode | null;
|
|
131
|
+
undo?: ReactNode | null;
|
|
132
|
+
unlocked?: ReactNode | null;
|
|
133
|
+
'upload-download'?: ReactNode | null;
|
|
134
|
+
upload?: ReactNode | null;
|
|
135
|
+
'user-profile-active'?: ReactNode | null;
|
|
136
|
+
'user-profile'?: ReactNode | null;
|
|
137
|
+
'video-off'?: ReactNode | null;
|
|
138
|
+
'video-on'?: ReactNode | null;
|
|
139
|
+
'video-unavailable'?: ReactNode | null;
|
|
140
|
+
'video-camera-off'?: ReactNode | null;
|
|
141
|
+
'video-camera-on'?: ReactNode | null;
|
|
142
|
+
'video-camera-unavailable'?: ReactNode | null;
|
|
143
|
+
'view-full'?: ReactNode | null;
|
|
144
|
+
'view-horizontal'?: ReactNode | null;
|
|
145
|
+
'view-vertical'?: ReactNode | null;
|
|
146
|
+
'zoom-in'?: ReactNode | null;
|
|
147
|
+
'zoom-out'?: ReactNode | null;
|
|
148
|
+
'zoom-to-fit'?: ReactNode | null;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/icon-provider/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;;;;;;OAYG;IACH,KAAK,EAAE,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC;CACvC;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,KAAK;QAIpB,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC9B,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACjC,mBAAmB,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACvC,YAAY,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAChC,oBAAoB,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACxC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACjC,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC9B,YAAY,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAChC,YAAY,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAChC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACjC,UA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,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC5B,iBAAiB,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACrC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC1B,qBAAqB,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACzC,cAAc,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAClC,WAAW,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC/B,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC9B,mBAAmB,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACvC,kBAAkB,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACtC,iBAAiB,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACrC,0BAA0B,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC9C,WAAW,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC/B,iBAAiB,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACrC,eAAe,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QACnC,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC7B,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;QAC9B,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;KAClC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/icon-provider/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 { ReactNode } from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface IconProviderProps extends BaseComponentProps {\n children: ReactNode;\n\n /**\n * Specifies icon overrides using existing icon names, for example, `{'add-plus': <svg>...</svg>}`.\n *\n * These icon overrides will automatically be applied to any component that is a descendant of this provider, including nested providers.\n *\n * Set to `null` to reset the icons to the default set or set specific icon names to `null` to change them back to the default set.\n *\n * For example, override `AppLayout` icons but not icons in the content slot by wrapping content with an `IconProvider` with this property set to `null`.\n *\n * `<Icon ... />` component can be used as an override (for example, `{'close': <Icon name='arrow-left' />}`).\n * However, if the icon name is the same as the key, for example, `{'close': <Icon name='close' />}` an infinite loop will be created.\n * The same applies to switching icons in the same configuration (for example, `{'close': <Icon name='arrow-left' />, 'arrow-left': <Icon name='close' />}`).\n */\n icons: IconProviderProps.Icons | null;\n}\n\nexport namespace IconProviderProps {\n export interface Icons {\n // TODO: Update documenter to support mapped types to replace pedantic key declaration with [name in keyof typeof generatedIcons]: AWSUI-61054\n // Option 1: [name in keyof typeof generatedIcons]?: ReactNode | null;\n // Option 2: [name in IconProps.Name]?: ReactNode | null;\n 'add-plus'?: ReactNode | null;\n 'anchor-link'?: ReactNode | null;\n 'angle-left-double'?: ReactNode | null;\n 'angle-left'?: ReactNode | null;\n 'angle-right-double'?: ReactNode | null;\n 'angle-right'?: ReactNode | null;\n 'angle-up'?: ReactNode | null;\n 'angle-down'?: ReactNode | null;\n 'arrow-left'?: ReactNode | null;\n 'arrow-right'?: ReactNode | null;\n 'arrow-up'?: ReactNode | null;\n 'arrow-down'?: ReactNode | null;\n 'audio-full'?: ReactNode | null;\n 'audio-half'?: ReactNode | null;\n 'audio-off'?: ReactNode | null;\n 'backward-10-seconds'?: ReactNode | null;\n bug?: ReactNode | null;\n call?: ReactNode | null;\n calendar?: ReactNode | null;\n 'caret-down-filled'?: ReactNode | null;\n 'caret-down'?: ReactNode | null;\n 'caret-left-filled'?: ReactNode | null;\n 'caret-right-filled'?: ReactNode | null;\n 'caret-up-filled'?: ReactNode | null;\n 'caret-up'?: ReactNode | null;\n check?: ReactNode | null;\n contact?: ReactNode | null;\n close?: ReactNode | null;\n 'closed-caption'?: ReactNode | null;\n 'closed-caption-unavailable'?: ReactNode | null;\n copy?: ReactNode | null;\n 'command-prompt'?: ReactNode | null;\n 'delete-marker'?: ReactNode | null;\n download?: ReactNode | null;\n 'drag-indicator'?: ReactNode | null;\n edit?: ReactNode | null;\n ellipsis?: ReactNode | null;\n envelope?: ReactNode | null;\n 'exit-full-screen'?: ReactNode | null;\n expand?: ReactNode | null;\n external?: ReactNode | null;\n 'face-happy'?: ReactNode | null;\n 'face-happy-filled'?: ReactNode | null;\n 'face-neutral'?: ReactNode | null;\n 'face-neutral-filled'?: ReactNode | null;\n 'face-sad'?: ReactNode | null;\n 'face-sad-filled'?: ReactNode | null;\n 'file-open'?: ReactNode | null;\n file?: ReactNode | null;\n filter?: ReactNode | null;\n flag?: ReactNode | null;\n 'folder-open'?: ReactNode | null;\n folder?: ReactNode | null;\n 'forward-10-seconds'?: ReactNode | null;\n 'full-screen'?: ReactNode | null;\n 'gen-ai'?: ReactNode | null;\n globe?: ReactNode | null;\n 'grid-view'?: ReactNode | null;\n 'group-active'?: ReactNode | null;\n group?: ReactNode | null;\n heart?: ReactNode | null;\n 'heart-filled'?: ReactNode | null;\n 'insert-row'?: ReactNode | null;\n key?: ReactNode | null;\n keyboard?: ReactNode | null;\n 'list-view'?: ReactNode | null;\n 'location-pin'?: ReactNode | null;\n 'lock-private'?: ReactNode | null;\n map?: ReactNode | null;\n menu?: ReactNode | null;\n microphone?: ReactNode | null;\n 'microphone-off'?: ReactNode | null;\n 'mini-player'?: ReactNode | null;\n multiscreen?: ReactNode | null;\n notification?: ReactNode | null;\n pause?: ReactNode | null;\n play?: ReactNode | null;\n redo?: ReactNode | null;\n refresh?: ReactNode | null;\n remove?: ReactNode | null;\n 'resize-area'?: ReactNode | null;\n script?: ReactNode | null;\n search?: ReactNode | null;\n security?: ReactNode | null;\n settings?: ReactNode | null;\n send?: ReactNode | null;\n share?: ReactNode | null;\n shrink?: ReactNode | null;\n 'star-filled'?: ReactNode | null;\n 'star-half'?: ReactNode | null;\n star?: ReactNode | null;\n 'status-in-progress'?: ReactNode | null;\n 'status-info'?: ReactNode | null;\n 'status-negative'?: ReactNode | null;\n 'status-pending'?: ReactNode | null;\n 'status-positive'?: ReactNode | null;\n 'status-stopped'?: ReactNode | null;\n 'status-warning'?: ReactNode | null;\n 'subtract-minus'?: ReactNode | null;\n suggestions?: ReactNode | null;\n support?: ReactNode | null;\n 'thumbs-down-filled'?: ReactNode | null;\n 'thumbs-down'?: ReactNode | null;\n 'thumbs-up-filled'?: ReactNode | null;\n 'thumbs-up'?: ReactNode | null;\n ticket?: ReactNode | null;\n transcript?: ReactNode | null;\n 'treeview-collapse'?: ReactNode | null;\n 'treeview-expand'?: ReactNode | null;\n undo?: ReactNode | null;\n unlocked?: ReactNode | null;\n 'upload-download'?: ReactNode | null;\n upload?: ReactNode | null;\n 'user-profile-active'?: ReactNode | null;\n 'user-profile'?: ReactNode | null;\n 'video-off'?: ReactNode | null;\n 'video-on'?: ReactNode | null;\n 'video-unavailable'?: ReactNode | null;\n 'video-camera-off'?: ReactNode | null;\n 'video-camera-on'?: ReactNode | null;\n 'video-camera-unavailable'?: ReactNode | null;\n 'view-full'?: ReactNode | null;\n 'view-horizontal'?: ReactNode | null;\n 'view-vertical'?: ReactNode | null;\n 'zoom-in'?: ReactNode | null;\n 'zoom-out'?: ReactNode | null;\n 'zoom-to-fit'?: ReactNode | null;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/icon-provider/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,iBAAS,oBAAoB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,iBAAiB,eAqBnE;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React, { useContext } from 'react';
|
|
4
|
+
import generatedIcons from '../icon/generated/icons';
|
|
5
|
+
import { InternalIconContext } from './context';
|
|
6
|
+
function InternalIconProvider({ children, icons }) {
|
|
7
|
+
const contextIcons = useContext(InternalIconContext);
|
|
8
|
+
let iconsToProvide = generatedIcons;
|
|
9
|
+
// Merge the context icons with the custom icons, this allows child instances of IconProvider to persist parent configurations
|
|
10
|
+
if (icons !== null) {
|
|
11
|
+
const clonedIcons = Object.assign({}, icons);
|
|
12
|
+
// Reset null icon values to their original definitions
|
|
13
|
+
Object.keys(clonedIcons).forEach(name => {
|
|
14
|
+
const iconName = name;
|
|
15
|
+
if (iconName in generatedIcons && clonedIcons[iconName] === null) {
|
|
16
|
+
clonedIcons[iconName] = generatedIcons[iconName];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
iconsToProvide = Object.assign(Object.assign({}, contextIcons), clonedIcons);
|
|
20
|
+
}
|
|
21
|
+
return React.createElement(InternalIconContext.Provider, { value: iconsToProvide }, children);
|
|
22
|
+
}
|
|
23
|
+
export default InternalIconProvider;
|
|
24
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/icon-provider/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAGhD,SAAS,oBAAoB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAqB;IAClE,MAAM,YAAY,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAErD,IAAI,cAAc,GAA4B,cAAc,CAAC;IAE7D,8HAA8H;IAC9H,IAAI,KAAK,KAAK,IAAI,EAAE;QAClB,MAAM,WAAW,qBAAQ,KAAK,CAAE,CAAC;QAEjC,uDAAuD;QACvD,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACtC,MAAM,QAAQ,GAAG,IAAmC,CAAC;YACrD,IAAI,QAAQ,IAAI,cAAc,IAAI,WAAW,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE;gBAChE,WAAW,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;aAClD;QACH,CAAC,CAAC,CAAC;QAEH,cAAc,mCAAQ,YAAY,GAAK,WAAW,CAAE,CAAC;KACtD;IAED,OAAO,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,cAAc,IAAG,QAAQ,CAAgC,CAAC;AACxG,CAAC;AAED,eAAe,oBAAoB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useContext } from 'react';\n\nimport generatedIcons from '../icon/generated/icons';\nimport { InternalIconContext } from './context';\nimport { IconProviderProps } from './interfaces';\n\nfunction InternalIconProvider({ children, icons }: IconProviderProps) {\n const contextIcons = useContext(InternalIconContext);\n\n let iconsToProvide: IconProviderProps.Icons = generatedIcons;\n\n // Merge the context icons with the custom icons, this allows child instances of IconProvider to persist parent configurations\n if (icons !== null) {\n const clonedIcons = { ...icons };\n\n // Reset null icon values to their original definitions\n Object.keys(clonedIcons).forEach(name => {\n const iconName = name as keyof typeof generatedIcons;\n if (iconName in generatedIcons && clonedIcons[iconName] === null) {\n clonedIcons[iconName] = generatedIcons[iconName];\n }\n });\n\n iconsToProvide = { ...contextIcons, ...clonedIcons };\n }\n\n return <InternalIconContext.Provider value={iconsToProvide}>{children}</InternalIconContext.Provider>;\n}\n\nexport default InternalIconProvider;\n"]}
|
package/index.d.ts
CHANGED
|
@@ -80,4 +80,4 @@ export { default as TopNavigation, TopNavigationProps } from './top-navigation';
|
|
|
80
80
|
export { default as TreeView, TreeViewProps } from './tree-view';
|
|
81
81
|
export { default as TutorialPanel, TutorialPanelProps } from './tutorial-panel';
|
|
82
82
|
export { default as Wizard, WizardProps } from './wizard';
|
|
83
|
-
export * from './interfaces';
|
|
83
|
+
export * from './interfaces';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,UAAU,CA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,IAAI,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAmB,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAiB,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAc,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAkB,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAqB,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAmB,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAiB,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,UAAU,CAAC;AAC1D,cAAc,cAAc,CAAC","sourcesContent":["export { default as Alert, AlertProps } from './alert';\nexport { default as AnchorNavigation, AnchorNavigationProps } from './anchor-navigation';\nexport { default as AnnotationContext, AnnotationContextProps } from './annotation-context';\nexport { default as AppLayout, AppLayoutProps } from './app-layout';\nexport { default as AppLayoutToolbar, AppLayoutToolbarProps } from './app-layout-toolbar';\nexport { default as AreaChart, AreaChartProps } from './area-chart';\nexport { default as AttributeEditor, AttributeEditorProps } from './attribute-editor';\nexport { default as Autosuggest, AutosuggestProps } from './autosuggest';\nexport { default as Badge, BadgeProps } from './badge';\nexport { default as BarChart, BarChartProps } from './bar-chart';\nexport { default as Box, BoxProps } from './box';\nexport { default as BreadcrumbGroup, BreadcrumbGroupProps } from './breadcrumb-group';\nexport { default as Button, ButtonProps } from './button';\nexport { default as ButtonDropdown, ButtonDropdownProps } from './button-dropdown';\nexport { default as ButtonGroup, ButtonGroupProps } from './button-group';\nexport { default as Calendar, CalendarProps } from './calendar';\nexport { default as Cards, CardsProps } from './cards';\nexport { default as Checkbox, CheckboxProps } from './checkbox';\nexport { default as CodeEditor, CodeEditorProps } from './code-editor';\nexport { default as CollectionPreferences, CollectionPreferencesProps } from './collection-preferences';\nexport { default as ColumnLayout, ColumnLayoutProps } from './column-layout';\nexport { default as Container, ContainerProps } from './container';\nexport { default as ContentLayout, ContentLayoutProps } from './content-layout';\nexport { default as CopyToClipboard, CopyToClipboardProps } from './copy-to-clipboard';\nexport { default as DateInput, DateInputProps } from './date-input';\nexport { default as DatePicker, DatePickerProps } from './date-picker';\nexport { default as DateRangePicker, DateRangePickerProps } from './date-range-picker';\nexport { default as Drawer, DrawerProps } from './drawer';\nexport { default as ExpandableSection, ExpandableSectionProps } from './expandable-section';\nexport { default as FileDropzone, FileDropzoneProps } from './file-dropzone';\nexport { default as FileInput, FileInputProps } from './file-input';\nexport { default as FileTokenGroup, FileTokenGroupProps } from './file-token-group';\nexport { default as FileUpload, FileUploadProps } from './file-upload';\nexport { default as Flashbar, FlashbarProps } from './flashbar';\nexport { default as Form, FormProps } from './form';\nexport { default as FormField, FormFieldProps } from './form-field';\nexport { default as Grid, GridProps } from './grid';\nexport { default as Header, HeaderProps } from './header';\nexport { default as HelpPanel, HelpPanelProps } from './help-panel';\nexport { default as Hotspot, HotspotProps } from './hotspot';\nexport { default as Icon, IconProps } from './icon';\nexport { default as Input, InputProps } from './input';\nexport { default as KeyValuePairs, KeyValuePairsProps } from './key-value-pairs';\nexport { default as LineChart, LineChartProps } from './line-chart';\nexport { default as Link, LinkProps } from './link';\nexport { default as List, ListProps } from './list';\nexport { default as LiveRegion, LiveRegionProps } from './live-region';\nexport { default as MixedLineBarChart, MixedLineBarChartProps } from './mixed-line-bar-chart';\nexport { default as Modal, ModalProps } from './modal';\nexport { default as Multiselect, MultiselectProps } from './multiselect';\nexport { default as Pagination, PaginationProps } from './pagination';\nexport { default as PieChart, PieChartProps } from './pie-chart';\nexport { default as Popover, PopoverProps } from './popover';\nexport { default as ProgressBar, ProgressBarProps } from './progress-bar';\nexport { default as PromptInput, PromptInputProps } from './prompt-input';\nexport { default as PropertyFilter, PropertyFilterProps } from './property-filter';\nexport { default as RadioGroup, RadioGroupProps } from './radio-group';\nexport { default as S3ResourceSelector, S3ResourceSelectorProps } from './s3-resource-selector';\nexport { default as SegmentedControl, SegmentedControlProps } from './segmented-control';\nexport { default as Select, SelectProps } from './select';\nexport { default as SideNavigation, SideNavigationProps } from './side-navigation';\nexport { default as Slider, SliderProps } from './slider';\nexport { default as SpaceBetween, SpaceBetweenProps } from './space-between';\nexport { default as Spinner, SpinnerProps } from './spinner';\nexport { default as SplitPanel, SplitPanelProps } from './split-panel';\nexport { default as StatusIndicator, StatusIndicatorProps } from './status-indicator';\nexport { default as Steps, StepsProps } from './steps';\nexport { default as Table, TableProps } from './table';\nexport { default as Tabs, TabsProps } from './tabs';\nexport { default as TagEditor, TagEditorProps } from './tag-editor';\nexport { default as TextContent, TextContentProps } from './text-content';\nexport { default as TextFilter, TextFilterProps } from './text-filter';\nexport { default as Textarea, TextareaProps } from './textarea';\nexport { default as Tiles, TilesProps } from './tiles';\nexport { default as TimeInput, TimeInputProps } from './time-input';\nexport { default as Toggle, ToggleProps } from './toggle';\nexport { default as ToggleButton, ToggleButtonProps } from './toggle-button';\nexport { default as TokenGroup, TokenGroupProps } from './token-group';\nexport { default as TopNavigation, TopNavigationProps } from './top-navigation';\nexport { default as TreeView, TreeViewProps } from './tree-view';\nexport { default as TutorialPanel, TutorialPanelProps } from './tutorial-panel';\nexport { default as Wizard, WizardProps } from './wizard';\nexport * from './interfaces';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAc,MAAM,SAAS,CAAC;A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sB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAiB,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,UAAU,CAAC;AAC1D,cAAc,cAAc,CAAC","sourcesContent":["export { default as Alert, AlertProps } from './alert';\nexport { default as AnchorNavigation, AnchorNavigationProps } from './anchor-navigation';\nexport { default as AnnotationContext, AnnotationContextProps } from './annotation-context';\nexport { default as AppLayout, AppLayoutProps } from './app-layout';\nexport { default as AppLayoutToolbar, AppLayoutToolbarProps } from './app-layout-toolbar';\nexport { default as AreaChart, AreaChartProps } from './area-chart';\nexport { default as AttributeEditor, AttributeEditorProps } from './attribute-editor';\nexport { default as Autosuggest, AutosuggestProps } from './autosuggest';\nexport { default as Badge, BadgeProps } from './badge';\nexport { default as BarChart, BarChartProps } from './bar-chart';\nexport { default as Box, BoxProps } from './box';\nexport { default as BreadcrumbGroup, BreadcrumbGroupProps } from './breadcrumb-group';\nexport { default as Button, ButtonProps } from './button';\nexport { default as ButtonDropdown, ButtonDropdownProps } from './button-dropdown';\nexport { default as ButtonGroup, ButtonGroupProps } from './button-group';\nexport { default as Calendar, CalendarProps } from './calendar';\nexport { default as Cards, CardsProps } from './cards';\nexport { default as Checkbox, CheckboxProps } from './checkbox';\nexport { default as CodeEditor, CodeEditorProps } from './code-editor';\nexport { default as CollectionPreferences, CollectionPreferencesProps } from './collection-preferences';\nexport { default as ColumnLayout, ColumnLayoutProps } from './column-layout';\nexport { default as Container, ContainerProps } from './container';\nexport { default as ContentLayout, ContentLayoutProps } from './content-layout';\nexport { default as CopyToClipboard, CopyToClipboardProps } from './copy-to-clipboard';\nexport { default as DateInput, DateInputProps } from './date-input';\nexport { default as DatePicker, DatePickerProps } from './date-picker';\nexport { default as DateRangePicker, DateRangePickerProps } from './date-range-picker';\nexport { default as Drawer, DrawerProps } from './drawer';\nexport { default as ExpandableSection, ExpandableSectionProps } from './expandable-section';\nexport { default as FileDropzone, FileDropzoneProps } from './file-dropzone';\nexport { default as FileInput, FileInputProps } from './file-input';\nexport { default as FileTokenGroup, FileTokenGroupProps } from './file-token-group';\nexport { default as FileUpload, FileUploadProps } from './file-upload';\nexport { default as Flashbar, FlashbarProps } from './flashbar';\nexport { default as Form, FormProps } from './form';\nexport { default as FormField, FormFieldProps } from './form-field';\nexport { default as Grid, GridProps } from './grid';\nexport { default as Header, HeaderProps } from './header';\nexport { default as HelpPanel, HelpPanelProps } from './help-panel';\nexport { default as Hotspot, HotspotProps } from './hotspot';\nexport { default as Icon, IconProps } from './icon';\nexport { default as IconProvider, IconProviderProps } from './icon-provider';\nexport { default as Input, InputProps } from './input';\nexport { default as KeyValuePairs, KeyValuePairsProps } from './key-value-pairs';\nexport { default as LineChart, LineChartProps } from './line-chart';\nexport { default as Link, LinkProps } from './link';\nexport { default as List, ListProps } from './list';\nexport { default as LiveRegion, LiveRegionProps } from './live-region';\nexport { default as MixedLineBarChart, MixedLineBarChartProps } from './mixed-line-bar-chart';\nexport { default as Modal, ModalProps } from './modal';\nexport { default as Multiselect, MultiselectProps } from './multiselect';\nexport { default as Pagination, PaginationProps } from './pagination';\nexport { default as PieChart, PieChartProps } from './pie-chart';\nexport { default as Popover, PopoverProps } from './popover';\nexport { default as ProgressBar, ProgressBarProps } from './progress-bar';\nexport { default as PromptInput, PromptInputProps } from './prompt-input';\nexport { default as PropertyFilter, PropertyFilterProps } from './property-filter';\nexport { default as RadioGroup, RadioGroupProps } from './radio-group';\nexport { default as S3ResourceSelector, S3ResourceSelectorProps } from './s3-resource-selector';\nexport { default as SegmentedControl, SegmentedControlProps } from './segmented-control';\nexport { default as Select, SelectProps } from './select';\nexport { default as SideNavigation, SideNavigationProps } from './side-navigation';\nexport { default as Slider, SliderProps } from './slider';\nexport { default as SpaceBetween, SpaceBetweenProps } from './space-between';\nexport { default as Spinner, SpinnerProps } from './spinner';\nexport { default as SplitPanel, SplitPanelProps } from './split-panel';\nexport { default as StatusIndicator, StatusIndicatorProps } from './status-indicator';\nexport { default as Steps, StepsProps } from './steps';\nexport { default as Table, TableProps } from './table';\nexport { default as Tabs, TabsProps } from './tabs';\nexport { default as TagEditor, TagEditorProps } from './tag-editor';\nexport { default as TextContent, TextContentProps } from './text-content';\nexport { default as TextFilter, TextFilterProps } from './text-filter';\nexport { default as Textarea, TextareaProps } from './textarea';\nexport { default as Tiles, TilesProps } from './tiles';\nexport { default as TimeInput, TimeInputProps } from './time-input';\nexport { default as Toggle, ToggleProps } from './toggle';\nexport { default as ToggleButton, ToggleButtonProps } from './toggle-button';\nexport { default as TokenGroup, TokenGroupProps } from './token-group';\nexport { default as TopNavigation, TopNavigationProps } from './top-navigation';\nexport { default as TreeView, TreeViewProps } from './tree-view';\nexport { default as TutorialPanel, TutorialPanelProps } from './tutorial-panel';\nexport { default as Wizard, WizardProps } from './wizard';\nexport * from './interfaces';\n"]}
|
package/internal/environment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (8cda3dab)";
|
|
3
|
+
export var GIT_SHA = "8cda3dab";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "console";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"./internal/base-component/index.js",
|
|
151
151
|
"./internal/base-component/styles.css.js"
|
|
152
152
|
],
|
|
153
|
-
"version": "3.0.
|
|
153
|
+
"version": "3.0.1047",
|
|
154
154
|
"repository": {
|
|
155
155
|
"type": "git",
|
|
156
156
|
"url": "https://github.com/cloudscape-design/components.git"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/prompt-input/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAWxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKhD,UAAU,wBACR,SAAQ,YAAY,CAAC,gBAAgB,EAAE,SAAS,GAAG,SAAS,CAAC,EAC3D,0BAA0B;CAAG;AAEjC,QAAA,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/prompt-input/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAWxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKhD,UAAU,wBACR,SAAQ,YAAY,CAAC,gBAAgB,EAAE,SAAS,GAAG,SAAS,CAAC,EAC3D,0BAA0B;CAAG;AAEjC,QAAA,MAAM,mBAAmB,uGA6NxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/prompt-input/internal.js
CHANGED
|
@@ -130,6 +130,7 @@ const InternalPromptInput = React.forwardRef((_a, ref) => {
|
|
|
130
130
|
}) },
|
|
131
131
|
React.createElement("div", { className: clsx(styles['secondary-actions'], testutilStyles['secondary-actions'], {
|
|
132
132
|
[styles['with-paddings']]: !disableSecondaryActionsPaddings,
|
|
133
|
+
[styles['with-paddings-and-actions']]: !disableSecondaryActionsPaddings && hasActionButton,
|
|
133
134
|
[styles.invalid]: invalid,
|
|
134
135
|
[styles.warning]: warning,
|
|
135
136
|
}) }, secondaryActions),
|
|
@@ -1 +1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AAe,CAAC,CAAC,EAAE,CAAC,+BAA+B;oBAC3D,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO;oBACzB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO;iBAC1B,CAAC,IAED,gBAAgB,CACb;YACN,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,WAAW,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAA,EAAA,GAAI;YAC7E,eAAe,IAAI,MAAM,CACtB,CACP,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { Ref, useCallback, useEffect, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useDensityMode } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalButton from '../button/internal';\nimport { convertAutoComplete } from '../input/utils';\nimport { getBaseProps } from '../internal/base-component';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireKeyboardEvent, fireNonCancelableEvent } from '../internal/events';\nimport * as tokens from '../internal/generated/styles/tokens';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { SomeRequired } from '../internal/types';\nimport { PromptInputProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\n\ninterface InternalPromptInputProps\n extends SomeRequired<PromptInputProps, 'maxRows' | 'minRows'>,\n InternalBaseComponentProps {}\n\nconst InternalPromptInput = React.forwardRef(\n (\n {\n value,\n actionButtonAriaLabel,\n actionButtonIconName,\n actionButtonIconUrl,\n actionButtonIconSvg,\n actionButtonIconAlt,\n ariaLabel,\n autoComplete,\n autoFocus,\n disableActionButton,\n disableBrowserAutocorrect,\n disabled,\n maxRows,\n minRows,\n name,\n onAction,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onKeyUp,\n placeholder,\n readOnly,\n spellcheck,\n customPrimaryAction,\n secondaryActions,\n secondaryContent,\n disableSecondaryActionsPaddings,\n disableSecondaryContentPaddings,\n __internalRootRef = null,\n ...rest\n }: InternalPromptInputProps,\n ref: Ref<PromptInputProps.Ref>\n ) => {\n const { ariaLabelledby, ariaDescribedby, controlId, invalid, warning } = useFormFieldContext(rest);\n\n const baseProps = getBaseProps(rest);\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n\n const isRefresh = useVisualRefresh();\n const isCompactMode = useDensityMode(textareaRef) === 'compact';\n\n const PADDING = isRefresh ? tokens.spaceXxs : tokens.spaceXxxs;\n const LINE_HEIGHT = tokens.lineHeightBodyM;\n const DEFAULT_MAX_ROWS = 3;\n\n useImperativeHandle(\n ref,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n textareaRef.current?.focus(...args);\n },\n select() {\n textareaRef.current?.select();\n },\n setSelectionRange(...args: Parameters<HTMLTextAreaElement['setSelectionRange']>) {\n textareaRef.current?.setSelectionRange(...args);\n },\n }),\n [textareaRef]\n );\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {\n fireKeyboardEvent(onKeyDown, event);\n\n if (event.key === 'Enter' && !event.shiftKey && !event.nativeEvent.isComposing) {\n if (event.currentTarget.form && !event.isDefaultPrevented()) {\n event.currentTarget.form.requestSubmit();\n }\n event.preventDefault();\n fireNonCancelableEvent(onAction, { value });\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n fireNonCancelableEvent(onChange, { value: event.target.value });\n adjustTextareaHeight();\n };\n\n const hasActionButton = actionButtonIconName || actionButtonIconSvg || actionButtonIconUrl || customPrimaryAction;\n\n const adjustTextareaHeight = useCallback(() => {\n if (textareaRef.current) {\n // this is required so the scrollHeight becomes dynamic, otherwise it will be locked at the highest value for the size it reached e.g. 500px\n textareaRef.current.style.height = 'auto';\n\n const minTextareaHeight = `calc(${LINE_HEIGHT} + ${tokens.spaceScaledXxs} * 2)`; // the min height of Textarea with 1 row\n\n if (maxRows === -1) {\n const scrollHeight = `calc(${textareaRef.current.scrollHeight}px)`;\n textareaRef.current.style.height = `max(${scrollHeight}, ${minTextareaHeight})`;\n } else {\n const maxRowsHeight = `calc(${maxRows <= 0 ? DEFAULT_MAX_ROWS : maxRows} * (${LINE_HEIGHT} + ${PADDING} / 2) + ${PADDING})`;\n const scrollHeight = `calc(${textareaRef.current.scrollHeight}px)`;\n textareaRef.current.style.height = `min(max(${scrollHeight}, ${minTextareaHeight}), ${maxRowsHeight})`;\n }\n }\n }, [maxRows, LINE_HEIGHT, PADDING]);\n\n useEffect(() => {\n const handleResize = () => {\n adjustTextareaHeight();\n };\n\n window.addEventListener('resize', handleResize);\n\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n }, [adjustTextareaHeight]);\n\n useEffect(() => {\n adjustTextareaHeight();\n }, [value, adjustTextareaHeight, maxRows, isCompactMode]);\n\n const attributes: React.TextareaHTMLAttributes<HTMLTextAreaElement> = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-invalid': invalid ? 'true' : undefined,\n name,\n placeholder,\n autoFocus,\n className: clsx(styles.textarea, testutilStyles.textarea, {\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n }),\n autoComplete: convertAutoComplete(autoComplete),\n spellCheck: spellcheck,\n disabled,\n readOnly: readOnly ? true : undefined,\n rows: minRows,\n onKeyDown: handleKeyDown,\n onKeyUp: onKeyUp && (event => fireKeyboardEvent(onKeyUp, event)),\n // We set a default value on the component in order to force it into the controlled mode.\n value: value || '',\n onChange: handleChange,\n onBlur: onBlur && (() => fireNonCancelableEvent(onBlur)),\n onFocus: onFocus && (() => fireNonCancelableEvent(onFocus)),\n };\n\n if (disableBrowserAutocorrect) {\n attributes.autoCorrect = 'off';\n attributes.autoCapitalize = 'off';\n }\n\n const action = (\n <div className={clsx(styles['primary-action'], testutilStyles['primary-action'])}>\n {customPrimaryAction ?? (\n <InternalButton\n className={clsx(styles['action-button'], testutilStyles['action-button'])}\n ariaLabel={actionButtonAriaLabel}\n disabled={disabled || readOnly || disableActionButton}\n __focusable={readOnly}\n iconName={actionButtonIconName}\n iconUrl={actionButtonIconUrl}\n iconSvg={actionButtonIconSvg}\n iconAlt={actionButtonIconAlt}\n onClick={() => fireNonCancelableEvent(onAction, { value })}\n variant=\"icon\"\n />\n )}\n </div>\n );\n\n return (\n <div\n {...baseProps}\n aria-label={ariaLabel}\n className={clsx(styles.root, testutilStyles.root, baseProps.className, {\n [styles['textarea-readonly']]: readOnly,\n [styles['textarea-invalid']]: invalid,\n [styles['textarea-warning']]: warning && !invalid,\n [styles.disabled]: disabled,\n })}\n ref={__internalRootRef}\n role=\"region\"\n >\n {secondaryContent && (\n <div\n className={clsx(styles['secondary-content'], testutilStyles['secondary-content'], {\n [styles['with-paddings']]: !disableSecondaryContentPaddings,\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n {secondaryContent}\n </div>\n )}\n <div className={styles['textarea-wrapper']}>\n <textarea ref={textareaRef} id={controlId} {...attributes} />\n {hasActionButton && !secondaryActions && action}\n </div>\n {secondaryActions && (\n <div\n className={clsx(styles['action-stripe'], {\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n <div\n className={clsx(styles['secondary-actions'], testutilStyles['secondary-actions'], {\n [styles['with-paddings']]: !disableSecondaryActionsPaddings,\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n {secondaryActions}\n </div>\n <div className={styles.buffer} onClick={() => textareaRef.current?.focus()} />\n {hasActionButton && action}\n </div>\n )}\n </div>\n );\n }\n);\n\nexport default InternalPromptInput;\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/prompt-input/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sC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AAe;oBAC1F,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO;oBACzB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO;iBAC1B,CAAC,IAED,gBAAgB,CACb;YACN,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,WAAW,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAA,EAAA,GAAI;YAC7E,eAAe,IAAI,MAAM,CACtB,CACP,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { Ref, useCallback, useEffect, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useDensityMode } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalButton from '../button/internal';\nimport { convertAutoComplete } from '../input/utils';\nimport { getBaseProps } from '../internal/base-component';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireKeyboardEvent, fireNonCancelableEvent } from '../internal/events';\nimport * as tokens from '../internal/generated/styles/tokens';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { SomeRequired } from '../internal/types';\nimport { PromptInputProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\n\ninterface InternalPromptInputProps\n extends SomeRequired<PromptInputProps, 'maxRows' | 'minRows'>,\n InternalBaseComponentProps {}\n\nconst InternalPromptInput = React.forwardRef(\n (\n {\n value,\n actionButtonAriaLabel,\n actionButtonIconName,\n actionButtonIconUrl,\n actionButtonIconSvg,\n actionButtonIconAlt,\n ariaLabel,\n autoComplete,\n autoFocus,\n disableActionButton,\n disableBrowserAutocorrect,\n disabled,\n maxRows,\n minRows,\n name,\n onAction,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onKeyUp,\n placeholder,\n readOnly,\n spellcheck,\n customPrimaryAction,\n secondaryActions,\n secondaryContent,\n disableSecondaryActionsPaddings,\n disableSecondaryContentPaddings,\n __internalRootRef = null,\n ...rest\n }: InternalPromptInputProps,\n ref: Ref<PromptInputProps.Ref>\n ) => {\n const { ariaLabelledby, ariaDescribedby, controlId, invalid, warning } = useFormFieldContext(rest);\n\n const baseProps = getBaseProps(rest);\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n\n const isRefresh = useVisualRefresh();\n const isCompactMode = useDensityMode(textareaRef) === 'compact';\n\n const PADDING = isRefresh ? tokens.spaceXxs : tokens.spaceXxxs;\n const LINE_HEIGHT = tokens.lineHeightBodyM;\n const DEFAULT_MAX_ROWS = 3;\n\n useImperativeHandle(\n ref,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n textareaRef.current?.focus(...args);\n },\n select() {\n textareaRef.current?.select();\n },\n setSelectionRange(...args: Parameters<HTMLTextAreaElement['setSelectionRange']>) {\n textareaRef.current?.setSelectionRange(...args);\n },\n }),\n [textareaRef]\n );\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {\n fireKeyboardEvent(onKeyDown, event);\n\n if (event.key === 'Enter' && !event.shiftKey && !event.nativeEvent.isComposing) {\n if (event.currentTarget.form && !event.isDefaultPrevented()) {\n event.currentTarget.form.requestSubmit();\n }\n event.preventDefault();\n fireNonCancelableEvent(onAction, { value });\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n fireNonCancelableEvent(onChange, { value: event.target.value });\n adjustTextareaHeight();\n };\n\n const hasActionButton = actionButtonIconName || actionButtonIconSvg || actionButtonIconUrl || customPrimaryAction;\n\n const adjustTextareaHeight = useCallback(() => {\n if (textareaRef.current) {\n // this is required so the scrollHeight becomes dynamic, otherwise it will be locked at the highest value for the size it reached e.g. 500px\n textareaRef.current.style.height = 'auto';\n\n const minTextareaHeight = `calc(${LINE_HEIGHT} + ${tokens.spaceScaledXxs} * 2)`; // the min height of Textarea with 1 row\n\n if (maxRows === -1) {\n const scrollHeight = `calc(${textareaRef.current.scrollHeight}px)`;\n textareaRef.current.style.height = `max(${scrollHeight}, ${minTextareaHeight})`;\n } else {\n const maxRowsHeight = `calc(${maxRows <= 0 ? DEFAULT_MAX_ROWS : maxRows} * (${LINE_HEIGHT} + ${PADDING} / 2) + ${PADDING})`;\n const scrollHeight = `calc(${textareaRef.current.scrollHeight}px)`;\n textareaRef.current.style.height = `min(max(${scrollHeight}, ${minTextareaHeight}), ${maxRowsHeight})`;\n }\n }\n }, [maxRows, LINE_HEIGHT, PADDING]);\n\n useEffect(() => {\n const handleResize = () => {\n adjustTextareaHeight();\n };\n\n window.addEventListener('resize', handleResize);\n\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n }, [adjustTextareaHeight]);\n\n useEffect(() => {\n adjustTextareaHeight();\n }, [value, adjustTextareaHeight, maxRows, isCompactMode]);\n\n const attributes: React.TextareaHTMLAttributes<HTMLTextAreaElement> = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-invalid': invalid ? 'true' : undefined,\n name,\n placeholder,\n autoFocus,\n className: clsx(styles.textarea, testutilStyles.textarea, {\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n }),\n autoComplete: convertAutoComplete(autoComplete),\n spellCheck: spellcheck,\n disabled,\n readOnly: readOnly ? true : undefined,\n rows: minRows,\n onKeyDown: handleKeyDown,\n onKeyUp: onKeyUp && (event => fireKeyboardEvent(onKeyUp, event)),\n // We set a default value on the component in order to force it into the controlled mode.\n value: value || '',\n onChange: handleChange,\n onBlur: onBlur && (() => fireNonCancelableEvent(onBlur)),\n onFocus: onFocus && (() => fireNonCancelableEvent(onFocus)),\n };\n\n if (disableBrowserAutocorrect) {\n attributes.autoCorrect = 'off';\n attributes.autoCapitalize = 'off';\n }\n\n const action = (\n <div className={clsx(styles['primary-action'], testutilStyles['primary-action'])}>\n {customPrimaryAction ?? (\n <InternalButton\n className={clsx(styles['action-button'], testutilStyles['action-button'])}\n ariaLabel={actionButtonAriaLabel}\n disabled={disabled || readOnly || disableActionButton}\n __focusable={readOnly}\n iconName={actionButtonIconName}\n iconUrl={actionButtonIconUrl}\n iconSvg={actionButtonIconSvg}\n iconAlt={actionButtonIconAlt}\n onClick={() => fireNonCancelableEvent(onAction, { value })}\n variant=\"icon\"\n />\n )}\n </div>\n );\n\n return (\n <div\n {...baseProps}\n aria-label={ariaLabel}\n className={clsx(styles.root, testutilStyles.root, baseProps.className, {\n [styles['textarea-readonly']]: readOnly,\n [styles['textarea-invalid']]: invalid,\n [styles['textarea-warning']]: warning && !invalid,\n [styles.disabled]: disabled,\n })}\n ref={__internalRootRef}\n role=\"region\"\n >\n {secondaryContent && (\n <div\n className={clsx(styles['secondary-content'], testutilStyles['secondary-content'], {\n [styles['with-paddings']]: !disableSecondaryContentPaddings,\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n {secondaryContent}\n </div>\n )}\n <div className={styles['textarea-wrapper']}>\n <textarea ref={textareaRef} id={controlId} {...attributes} />\n {hasActionButton && !secondaryActions && action}\n </div>\n {secondaryActions && (\n <div\n className={clsx(styles['action-stripe'], {\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n <div\n className={clsx(styles['secondary-actions'], testutilStyles['secondary-actions'], {\n [styles['with-paddings']]: !disableSecondaryActionsPaddings,\n [styles['with-paddings-and-actions']]: !disableSecondaryActionsPaddings && hasActionButton,\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n {secondaryActions}\n </div>\n <div className={styles.buffer} onClick={() => textareaRef.current?.focus()} />\n {hasActionButton && action}\n </div>\n )}\n </div>\n );\n }\n);\n\nexport default InternalPromptInput;\n"]}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"textarea-readonly": "awsui_textarea-
|
|
6
|
-
"disabled": "
|
|
7
|
-
"textarea-invalid": "awsui_textarea-
|
|
8
|
-
"textarea-warning": "awsui_textarea-
|
|
9
|
-
"textarea": "
|
|
10
|
-
"invalid": "
|
|
11
|
-
"warning": "
|
|
12
|
-
"textarea-wrapper": "awsui_textarea-
|
|
13
|
-
"primary-action": "awsui_primary-
|
|
14
|
-
"action-button": "awsui_action-
|
|
15
|
-
"secondary-content": "awsui_secondary-
|
|
16
|
-
"with-paddings": "awsui_with-
|
|
17
|
-
"action-stripe": "awsui_action-
|
|
18
|
-
"secondary-actions": "awsui_secondary-
|
|
19
|
-
"
|
|
4
|
+
"root": "awsui_root_55fkh_2oftp_146",
|
|
5
|
+
"textarea-readonly": "awsui_textarea-readonly_55fkh_2oftp_185",
|
|
6
|
+
"disabled": "awsui_disabled_55fkh_2oftp_190",
|
|
7
|
+
"textarea-invalid": "awsui_textarea-invalid_55fkh_2oftp_198",
|
|
8
|
+
"textarea-warning": "awsui_textarea-warning_55fkh_2oftp_223",
|
|
9
|
+
"textarea": "awsui_textarea_55fkh_2oftp_185",
|
|
10
|
+
"invalid": "awsui_invalid_55fkh_2oftp_323",
|
|
11
|
+
"warning": "awsui_warning_55fkh_2oftp_323",
|
|
12
|
+
"textarea-wrapper": "awsui_textarea-wrapper_55fkh_2oftp_342",
|
|
13
|
+
"primary-action": "awsui_primary-action_55fkh_2oftp_346",
|
|
14
|
+
"action-button": "awsui_action-button_55fkh_2oftp_354",
|
|
15
|
+
"secondary-content": "awsui_secondary-content_55fkh_2oftp_359",
|
|
16
|
+
"with-paddings": "awsui_with-paddings_55fkh_2oftp_394",
|
|
17
|
+
"action-stripe": "awsui_action-stripe_55fkh_2oftp_404",
|
|
18
|
+
"secondary-actions": "awsui_secondary-actions_55fkh_2oftp_443",
|
|
19
|
+
"with-paddings-and-actions": "awsui_with-paddings-and-actions_55fkh_2oftp_460",
|
|
20
|
+
"buffer": "awsui_buffer_55fkh_2oftp_464"
|
|
20
21
|
};
|
|
21
22
|
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
*/
|
|
144
144
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
145
145
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
146
|
-
.
|
|
146
|
+
.awsui_root_55fkh_2oftp_146:not(#\9) {
|
|
147
147
|
border-collapse: separate;
|
|
148
148
|
border-spacing: 0;
|
|
149
149
|
box-sizing: border-box;
|
|
@@ -182,12 +182,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-default-317xk5, #8c8c94);
|
|
183
183
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-default-317xk5, #8c8c94);
|
|
184
184
|
}
|
|
185
|
-
.
|
|
185
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-readonly_55fkh_2oftp_185:not(#\9) {
|
|
186
186
|
background-color: var(--color-background-input-default-ifz5bb, #ffffff);
|
|
187
187
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
188
188
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
189
189
|
}
|
|
190
|
-
.
|
|
190
|
+
.awsui_root_55fkh_2oftp_146.awsui_disabled_55fkh_2oftp_190:not(#\9) {
|
|
191
191
|
background-color: var(--color-background-input-disabled-dihaja, #ebebf0);
|
|
192
192
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
193
193
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
@@ -195,57 +195,57 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
195
195
|
cursor: auto;
|
|
196
196
|
cursor: default;
|
|
197
197
|
}
|
|
198
|
-
.
|
|
198
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9) {
|
|
199
199
|
color: var(--color-text-status-error-ksqavh, #db0000);
|
|
200
200
|
border-color: var(--color-text-status-error-ksqavh, #db0000);
|
|
201
201
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
202
202
|
border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
|
|
203
203
|
}
|
|
204
|
-
.
|
|
204
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9):focus {
|
|
205
205
|
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
206
206
|
}
|
|
207
|
-
.
|
|
207
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9) {
|
|
208
208
|
padding-inline-start: 0;
|
|
209
209
|
}
|
|
210
|
-
.
|
|
210
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9):focus-within, .awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9):focus {
|
|
211
211
|
color: var(--color-text-status-error-ksqavh, #db0000);
|
|
212
212
|
border-color: var(--color-text-status-error-ksqavh, #db0000);
|
|
213
213
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
214
214
|
border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
|
|
215
215
|
}
|
|
216
|
-
.
|
|
216
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9):focus-within:focus, .awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9):focus:focus {
|
|
217
217
|
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
218
218
|
}
|
|
219
|
-
.
|
|
219
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9):focus-within, .awsui_root_55fkh_2oftp_146.awsui_textarea-invalid_55fkh_2oftp_198:not(#\9):focus {
|
|
220
220
|
padding-inline-start: 0;
|
|
221
221
|
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
222
222
|
}
|
|
223
|
-
.
|
|
223
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9) {
|
|
224
224
|
color: var(--color-text-status-warning-6meo06, #855900);
|
|
225
225
|
border-color: var(--color-text-status-warning-6meo06, #855900);
|
|
226
226
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
227
227
|
border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
|
|
228
228
|
}
|
|
229
|
-
.
|
|
229
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9):focus {
|
|
230
230
|
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
231
231
|
}
|
|
232
|
-
.
|
|
232
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9) {
|
|
233
233
|
padding-inline-start: 0;
|
|
234
234
|
}
|
|
235
|
-
.
|
|
235
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9):focus-within, .awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9):focus {
|
|
236
236
|
color: var(--color-text-status-warning-6meo06, #855900);
|
|
237
237
|
border-color: var(--color-text-status-warning-6meo06, #855900);
|
|
238
238
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
239
239
|
border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
|
|
240
240
|
}
|
|
241
|
-
.
|
|
241
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9):focus-within:focus, .awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9):focus:focus {
|
|
242
242
|
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
243
243
|
}
|
|
244
|
-
.
|
|
244
|
+
.awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9):focus-within, .awsui_root_55fkh_2oftp_146.awsui_textarea-warning_55fkh_2oftp_223:not(#\9):focus {
|
|
245
245
|
padding-inline-start: 0;
|
|
246
246
|
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
247
247
|
}
|
|
248
|
-
.
|
|
248
|
+
.awsui_root_55fkh_2oftp_146:not(#\9):focus-within, .awsui_root_55fkh_2oftp_146:not(#\9):focus {
|
|
249
249
|
outline: 2px dotted transparent;
|
|
250
250
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-focused-4z0pgn, #006ce0);
|
|
251
251
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-focused-4z0pgn, #006ce0);
|
|
@@ -256,7 +256,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
256
256
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
.
|
|
259
|
+
.awsui_textarea_55fkh_2oftp_185:not(#\9) {
|
|
260
260
|
border-collapse: separate;
|
|
261
261
|
border-spacing: 0;
|
|
262
262
|
box-sizing: border-box;
|
|
@@ -305,25 +305,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
305
305
|
box-sizing: border-box;
|
|
306
306
|
border: 0;
|
|
307
307
|
}
|
|
308
|
-
.
|
|
308
|
+
.awsui_textarea_55fkh_2oftp_185:not(#\9)::placeholder {
|
|
309
309
|
color: var(--color-text-input-placeholder-dclg8u, #656871);
|
|
310
310
|
font-style: italic;
|
|
311
311
|
opacity: 1;
|
|
312
312
|
}
|
|
313
|
-
.
|
|
313
|
+
.awsui_textarea_55fkh_2oftp_185:not(#\9):-ms-input-placeholder {
|
|
314
314
|
color: var(--color-text-input-placeholder-dclg8u, #656871);
|
|
315
315
|
font-style: italic;
|
|
316
316
|
}
|
|
317
|
-
.
|
|
317
|
+
.awsui_textarea_55fkh_2oftp_185:not(#\9):focus {
|
|
318
318
|
outline: none;
|
|
319
319
|
}
|
|
320
|
-
.
|
|
320
|
+
.awsui_textarea_55fkh_2oftp_185:not(#\9):invalid {
|
|
321
321
|
box-shadow: none;
|
|
322
322
|
}
|
|
323
|
-
.
|
|
323
|
+
.awsui_textarea_55fkh_2oftp_185.awsui_invalid_55fkh_2oftp_323:not(#\9), .awsui_textarea_55fkh_2oftp_185.awsui_warning_55fkh_2oftp_323:not(#\9) {
|
|
324
324
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
325
325
|
}
|
|
326
|
-
.
|
|
326
|
+
.awsui_textarea_55fkh_2oftp_185:not(#\9):disabled {
|
|
327
327
|
background-color: var(--color-background-input-disabled-dihaja, #ebebf0);
|
|
328
328
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
329
329
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
@@ -332,31 +332,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
332
332
|
border: 0;
|
|
333
333
|
cursor: default;
|
|
334
334
|
}
|
|
335
|
-
.
|
|
335
|
+
.awsui_textarea_55fkh_2oftp_185:not(#\9):disabled::placeholder {
|
|
336
336
|
color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
|
|
337
337
|
opacity: 1;
|
|
338
338
|
}
|
|
339
|
-
.
|
|
339
|
+
.awsui_textarea_55fkh_2oftp_185:not(#\9):disabled:-ms-input-placeholder {
|
|
340
340
|
color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
|
|
341
341
|
}
|
|
342
|
-
.awsui_textarea-
|
|
342
|
+
.awsui_textarea-wrapper_55fkh_2oftp_342:not(#\9) {
|
|
343
343
|
display: flex;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
.awsui_primary-
|
|
346
|
+
.awsui_primary-action_55fkh_2oftp_346:not(#\9) {
|
|
347
347
|
align-self: flex-end;
|
|
348
348
|
flex-shrink: 0;
|
|
349
349
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) / 2);
|
|
350
350
|
}
|
|
351
|
-
.awsui_textarea-
|
|
351
|
+
.awsui_textarea-wrapper_55fkh_2oftp_342 > .awsui_primary-action_55fkh_2oftp_346:not(#\9) {
|
|
352
352
|
padding-inline-end: calc(var(--space-field-horizontal-0aq2ch, 12px) / 2);
|
|
353
353
|
}
|
|
354
|
-
.awsui_textarea-
|
|
354
|
+
.awsui_textarea-wrapper_55fkh_2oftp_342 > .awsui_primary-action_55fkh_2oftp_346 > .awsui_action-button_55fkh_2oftp_354:not(#\9) {
|
|
355
355
|
margin-block-end: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
356
356
|
padding: 0;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
.awsui_secondary-
|
|
359
|
+
.awsui_secondary-content_55fkh_2oftp_359:not(#\9) {
|
|
360
360
|
border-collapse: separate;
|
|
361
361
|
border-spacing: 0;
|
|
362
362
|
box-sizing: border-box;
|
|
@@ -391,17 +391,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
391
391
|
border-end-start-radius: var(--border-radius-input-7q0str, 8px);
|
|
392
392
|
border-end-end-radius: var(--border-radius-input-7q0str, 8px);
|
|
393
393
|
}
|
|
394
|
-
.awsui_secondary-
|
|
394
|
+
.awsui_secondary-content_55fkh_2oftp_359.awsui_with-paddings_55fkh_2oftp_394:not(#\9) {
|
|
395
395
|
padding-block-start: var(--space-scaled-s-8ozaad, 12px);
|
|
396
396
|
padding-block-end: var(--space-scaled-s-8ozaad, 12px);
|
|
397
397
|
padding-inline-start: var(--space-field-horizontal-0aq2ch, 12px);
|
|
398
398
|
padding-inline-end: var(--space-field-horizontal-0aq2ch, 12px);
|
|
399
399
|
}
|
|
400
|
-
.awsui_secondary-
|
|
400
|
+
.awsui_secondary-content_55fkh_2oftp_359.awsui_with-paddings_55fkh_2oftp_394.awsui_invalid_55fkh_2oftp_323:not(#\9), .awsui_secondary-content_55fkh_2oftp_359.awsui_with-paddings_55fkh_2oftp_394.awsui_warning_55fkh_2oftp_323:not(#\9) {
|
|
401
401
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
.awsui_action-
|
|
404
|
+
.awsui_action-stripe_55fkh_2oftp_404:not(#\9) {
|
|
405
405
|
border-collapse: separate;
|
|
406
406
|
border-spacing: 0;
|
|
407
407
|
box-sizing: border-box;
|
|
@@ -440,16 +440,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
440
440
|
align-items: flex-end;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
.awsui_secondary-
|
|
444
|
-
|
|
443
|
+
.awsui_secondary-actions_55fkh_2oftp_443:not(#\9) {
|
|
444
|
+
flex-basis: max-content;
|
|
445
|
+
flex-grow: 0;
|
|
446
|
+
flex-shrink: 1;
|
|
447
|
+
box-sizing: border-box;
|
|
448
|
+
word-wrap: break-word;
|
|
449
|
+
max-inline-size: 100%;
|
|
450
|
+
overflow: hidden;
|
|
451
|
+
}
|
|
452
|
+
.awsui_secondary-actions_55fkh_2oftp_443.awsui_with-paddings_55fkh_2oftp_394:not(#\9) {
|
|
453
|
+
padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
|
|
445
454
|
padding-block-start: var(--space-scaled-s-8ozaad, 12px);
|
|
446
455
|
padding-block-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
447
456
|
}
|
|
448
|
-
.awsui_secondary-
|
|
457
|
+
.awsui_secondary-actions_55fkh_2oftp_443.awsui_with-paddings_55fkh_2oftp_394.awsui_invalid_55fkh_2oftp_323:not(#\9), .awsui_secondary-actions_55fkh_2oftp_443.awsui_with-paddings_55fkh_2oftp_394.awsui_warning_55fkh_2oftp_323:not(#\9) {
|
|
449
458
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
450
459
|
}
|
|
460
|
+
.awsui_secondary-actions_55fkh_2oftp_443.awsui_with-paddings-and-actions_55fkh_2oftp_460:not(#\9) {
|
|
461
|
+
padding-inline-end: 0;
|
|
462
|
+
}
|
|
451
463
|
|
|
452
|
-
.
|
|
464
|
+
.awsui_buffer_55fkh_2oftp_464:not(#\9) {
|
|
453
465
|
flex: 1;
|
|
454
466
|
align-self: stretch;
|
|
455
467
|
cursor: text;
|
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"textarea-readonly": "awsui_textarea-
|
|
7
|
-
"disabled": "
|
|
8
|
-
"textarea-invalid": "awsui_textarea-
|
|
9
|
-
"textarea-warning": "awsui_textarea-
|
|
10
|
-
"textarea": "
|
|
11
|
-
"invalid": "
|
|
12
|
-
"warning": "
|
|
13
|
-
"textarea-wrapper": "awsui_textarea-
|
|
14
|
-
"primary-action": "awsui_primary-
|
|
15
|
-
"action-button": "awsui_action-
|
|
16
|
-
"secondary-content": "awsui_secondary-
|
|
17
|
-
"with-paddings": "awsui_with-
|
|
18
|
-
"action-stripe": "awsui_action-
|
|
19
|
-
"secondary-actions": "awsui_secondary-
|
|
20
|
-
"
|
|
5
|
+
"root": "awsui_root_55fkh_2oftp_146",
|
|
6
|
+
"textarea-readonly": "awsui_textarea-readonly_55fkh_2oftp_185",
|
|
7
|
+
"disabled": "awsui_disabled_55fkh_2oftp_190",
|
|
8
|
+
"textarea-invalid": "awsui_textarea-invalid_55fkh_2oftp_198",
|
|
9
|
+
"textarea-warning": "awsui_textarea-warning_55fkh_2oftp_223",
|
|
10
|
+
"textarea": "awsui_textarea_55fkh_2oftp_185",
|
|
11
|
+
"invalid": "awsui_invalid_55fkh_2oftp_323",
|
|
12
|
+
"warning": "awsui_warning_55fkh_2oftp_323",
|
|
13
|
+
"textarea-wrapper": "awsui_textarea-wrapper_55fkh_2oftp_342",
|
|
14
|
+
"primary-action": "awsui_primary-action_55fkh_2oftp_346",
|
|
15
|
+
"action-button": "awsui_action-button_55fkh_2oftp_354",
|
|
16
|
+
"secondary-content": "awsui_secondary-content_55fkh_2oftp_359",
|
|
17
|
+
"with-paddings": "awsui_with-paddings_55fkh_2oftp_394",
|
|
18
|
+
"action-stripe": "awsui_action-stripe_55fkh_2oftp_404",
|
|
19
|
+
"secondary-actions": "awsui_secondary-actions_55fkh_2oftp_443",
|
|
20
|
+
"with-paddings-and-actions": "awsui_with-paddings-and-actions_55fkh_2oftp_460",
|
|
21
|
+
"buffer": "awsui_buffer_55fkh_2oftp_464"
|
|
21
22
|
};
|
|
22
23
|
|