@cloudscape-design/components 3.0.44 → 3.0.47
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/autosuggest/internal.js +1 -1
- package/autosuggest/internal.js.map +1 -1
- package/autosuggest/styles.css.js +3 -5
- package/autosuggest/styles.scoped.css +3 -12
- package/autosuggest/styles.selectors.js +3 -5
- package/container/internal.d.ts +2 -1
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +3 -2
- package/container/internal.js.map +1 -1
- package/container/styles.css.js +16 -15
- package/container/styles.scoped.css +29 -24
- package/container/styles.selectors.js +16 -15
- package/date-picker/styles.css.js +24 -24
- package/date-picker/styles.scoped.css +41 -41
- package/date-picker/styles.selectors.js +24 -24
- package/date-range-picker/styles.css.js +41 -41
- package/date-range-picker/styles.scoped.css +50 -50
- package/date-range-picker/styles.selectors.js +41 -41
- package/expandable-section/expandable-section-container.d.ts.map +1 -1
- package/expandable-section/expandable-section-container.js +1 -1
- package/expandable-section/expandable-section-container.js.map +1 -1
- package/icon/interfaces.d.ts +1 -1
- package/icon/interfaces.js.map +1 -1
- package/{autosuggest/autosuggest-input.d.ts → internal/components/autosuggest-input/index.d.ts} +7 -7
- package/internal/components/autosuggest-input/index.d.ts.map +1 -0
- package/{autosuggest/autosuggest-input.js → internal/components/autosuggest-input/index.js} +11 -10
- package/internal/components/autosuggest-input/index.js.map +1 -0
- package/internal/components/autosuggest-input/styles.css.js +7 -0
- package/internal/components/autosuggest-input/styles.scoped.css +12 -0
- package/internal/components/autosuggest-input/styles.selectors.js +8 -0
- package/internal/environment.js +1 -1
- package/internal/generated/styles/tokens.d.ts +17 -0
- package/internal/generated/styles/tokens.js +17 -0
- package/internal/generated/theming/index.cjs +35 -1
- package/internal/generated/theming/index.cjs.d.ts +85 -0
- package/internal/generated/theming/index.d.ts +85 -0
- package/internal/generated/theming/index.js +35 -1
- package/package.json +1 -1
- package/property-filter/controller.d.ts +15 -29
- package/property-filter/controller.d.ts.map +1 -1
- package/property-filter/controller.js +8 -8
- package/property-filter/controller.js.map +1 -1
- package/property-filter/index.d.ts.map +1 -1
- package/property-filter/index.js +6 -7
- package/property-filter/index.js.map +1 -1
- package/property-filter/interfaces.d.ts +25 -0
- package/property-filter/interfaces.d.ts.map +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/property-filter-autosuggest.d.ts +1 -1
- package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
- package/property-filter/property-filter-autosuggest.js +1 -1
- package/property-filter/property-filter-autosuggest.js.map +1 -1
- package/property-filter/token-editor.d.ts +16 -7
- package/property-filter/token-editor.d.ts.map +1 -1
- package/property-filter/token-editor.js +1 -2
- package/property-filter/token-editor.js.map +1 -1
- package/property-filter/token.d.ts +20 -9
- package/property-filter/token.d.ts.map +1 -1
- package/property-filter/token.js +1 -1
- package/property-filter/token.js.map +1 -1
- package/property-filter/use-load-items.d.ts +1 -2
- package/property-filter/use-load-items.d.ts.map +1 -1
- package/property-filter/use-load-items.js.map +1 -1
- package/property-filter/utils.d.ts +4 -4
- package/property-filter/utils.d.ts.map +1 -1
- package/property-filter/utils.js.map +1 -1
- package/test-utils/dom/internal/autosuggest-input.d.ts +8 -0
- package/test-utils/dom/internal/autosuggest-input.js +41 -0
- package/test-utils/dom/internal/autosuggest-input.js.map +1 -0
- package/test-utils/selectors/internal/autosuggest-input.d.ts +8 -0
- package/test-utils/selectors/internal/autosuggest-input.js +41 -0
- package/test-utils/selectors/internal/autosuggest-input.js.map +1 -0
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/autosuggest/autosuggest-input.d.ts.map +0 -1
- package/autosuggest/autosuggest-input.js.map +0 -1
|
@@ -2,46 +2,46 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"calendar": "
|
|
6
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
7
|
-
"root": "
|
|
8
|
-
"trigger-wrapper": "awsui_trigger-
|
|
9
|
-
"trigger-flexbox": "awsui_trigger-
|
|
10
|
-
"one-grid": "awsui_one-
|
|
11
|
-
"calendar-header": "awsui_calendar-
|
|
12
|
-
"calendar-header-months-wrapper": "awsui_calendar-header-months-
|
|
13
|
-
"calendar-header-month": "awsui_calendar-header-
|
|
14
|
-
"calendar-next-month-btn": "awsui_calendar-next-month-
|
|
15
|
-
"calendar-prev-month-btn": "awsui_calendar-prev-month-
|
|
16
|
-
"calendar-day-names": "awsui_calendar-day-
|
|
17
|
-
"calendar-day-name": "awsui_calendar-day-
|
|
18
|
-
"calendar-week": "awsui_calendar-
|
|
19
|
-
"first-grid": "awsui_first-
|
|
20
|
-
"second-grid": "awsui_second-
|
|
21
|
-
"grid": "
|
|
22
|
-
"date-and-time-wrapper": "awsui_date-and-time-
|
|
23
|
-
"date-and-time-wrapper__date": "awsui_date-and-time-
|
|
24
|
-
"date-and-time-wrapper__time": "awsui_date-and-time-
|
|
25
|
-
"date-and-time-constrainttext": "awsui_date-and-time-
|
|
26
|
-
"footer": "
|
|
27
|
-
"has-clear-button": "awsui_has-clear-
|
|
28
|
-
"footer-button-wrapper": "awsui_footer-button-
|
|
29
|
-
"icon-wrapper": "awsui_icon-
|
|
30
|
-
"label": "
|
|
31
|
-
"label-enabled": "awsui_label-
|
|
32
|
-
"label-text": "awsui_label-
|
|
33
|
-
"mode-switch": "awsui_mode-
|
|
34
|
-
"dropdown": "
|
|
35
|
-
"dropdown-content": "awsui_dropdown-
|
|
36
|
-
"start-date-input": "awsui_start-date-
|
|
37
|
-
"start-time-input": "awsui_start-time-
|
|
38
|
-
"end-date-input": "awsui_end-date-
|
|
39
|
-
"end-time-input": "awsui_end-time-
|
|
40
|
-
"validation-section": "awsui_validation-
|
|
41
|
-
"validation-error": "awsui_validation-
|
|
42
|
-
"clear-button": "awsui_clear-
|
|
43
|
-
"apply-button": "awsui_apply-
|
|
44
|
-
"cancel-button": "awsui_cancel-
|
|
45
|
-
"calendar-aria-live": "awsui_calendar-aria-
|
|
5
|
+
"calendar": "awsui_calendar_mgja0_z4fdg_93",
|
|
6
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_z4fdg_1",
|
|
7
|
+
"root": "awsui_root_mgja0_z4fdg_120",
|
|
8
|
+
"trigger-wrapper": "awsui_trigger-wrapper_mgja0_z4fdg_132",
|
|
9
|
+
"trigger-flexbox": "awsui_trigger-flexbox_mgja0_z4fdg_136",
|
|
10
|
+
"one-grid": "awsui_one-grid_mgja0_z4fdg_144",
|
|
11
|
+
"calendar-header": "awsui_calendar-header_mgja0_z4fdg_147",
|
|
12
|
+
"calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_z4fdg_153",
|
|
13
|
+
"calendar-header-month": "awsui_calendar-header-month_mgja0_z4fdg_153",
|
|
14
|
+
"calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_z4fdg_173",
|
|
15
|
+
"calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_z4fdg_176",
|
|
16
|
+
"calendar-day-names": "awsui_calendar-day-names_mgja0_z4fdg_179",
|
|
17
|
+
"calendar-day-name": "awsui_calendar-day-name_mgja0_z4fdg_179",
|
|
18
|
+
"calendar-week": "awsui_calendar-week_mgja0_z4fdg_194",
|
|
19
|
+
"first-grid": "awsui_first-grid_mgja0_z4fdg_199",
|
|
20
|
+
"second-grid": "awsui_second-grid_mgja0_z4fdg_200",
|
|
21
|
+
"grid": "awsui_grid_mgja0_z4fdg_204",
|
|
22
|
+
"date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_z4fdg_208",
|
|
23
|
+
"date-and-time-wrapper__date": "awsui_date-and-time-wrapper__date_mgja0_z4fdg_212",
|
|
24
|
+
"date-and-time-wrapper__time": "awsui_date-and-time-wrapper__time_mgja0_z4fdg_215",
|
|
25
|
+
"date-and-time-constrainttext": "awsui_date-and-time-constrainttext_mgja0_z4fdg_219",
|
|
26
|
+
"footer": "awsui_footer_mgja0_z4fdg_226",
|
|
27
|
+
"has-clear-button": "awsui_has-clear-button_mgja0_z4fdg_233",
|
|
28
|
+
"footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_z4fdg_240",
|
|
29
|
+
"icon-wrapper": "awsui_icon-wrapper_mgja0_z4fdg_244",
|
|
30
|
+
"label": "awsui_label_mgja0_z4fdg_249",
|
|
31
|
+
"label-enabled": "awsui_label-enabled_mgja0_z4fdg_254",
|
|
32
|
+
"label-text": "awsui_label-text_mgja0_z4fdg_258",
|
|
33
|
+
"mode-switch": "awsui_mode-switch_mgja0_z4fdg_263",
|
|
34
|
+
"dropdown": "awsui_dropdown_mgja0_z4fdg_267",
|
|
35
|
+
"dropdown-content": "awsui_dropdown-content_mgja0_z4fdg_283",
|
|
36
|
+
"start-date-input": "awsui_start-date-input_mgja0_z4fdg_292",
|
|
37
|
+
"start-time-input": "awsui_start-time-input_mgja0_z4fdg_293",
|
|
38
|
+
"end-date-input": "awsui_end-date-input_mgja0_z4fdg_294",
|
|
39
|
+
"end-time-input": "awsui_end-time-input_mgja0_z4fdg_295",
|
|
40
|
+
"validation-section": "awsui_validation-section_mgja0_z4fdg_299",
|
|
41
|
+
"validation-error": "awsui_validation-error_mgja0_z4fdg_303",
|
|
42
|
+
"clear-button": "awsui_clear-button_mgja0_z4fdg_307",
|
|
43
|
+
"apply-button": "awsui_apply-button_mgja0_z4fdg_311",
|
|
44
|
+
"cancel-button": "awsui_cancel-button_mgja0_z4fdg_315",
|
|
45
|
+
"calendar-aria-live": "awsui_calendar-aria-live_mgja0_z4fdg_319"
|
|
46
46
|
};
|
|
47
47
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-section-container.d.ts","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-container.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,UAAU,+BAAgC,SAAQ,0BAA0B;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC;IACxC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C;AAED,eAAO,MAAM,0BAA0B,2GASpC,+BAA+B,
|
|
1
|
+
{"version":3,"file":"expandable-section-container.d.ts","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-container.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,UAAU,+BAAgC,SAAQ,0BAA0B;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC;IACxC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C;AAED,eAAO,MAAM,0BAA0B,2GASpC,+BAA+B,gBAwBjC,CAAC"}
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
export var ExpandableSectionContainer = function (_a) {
|
|
7
7
|
var className = _a.className, children = _a.children, header = _a.header, variant = _a.variant, expanded = _a.expanded, disableContentPaddings = _a.disableContentPaddings, __internalRootRef = _a.__internalRootRef, rest = __rest(_a, ["className", "children", "header", "variant", "expanded", "disableContentPaddings", "__internalRootRef"]);
|
|
8
8
|
if (variant === 'container') {
|
|
9
|
-
return (React.createElement(InternalContainer, __assign({}, rest, { className: className, header: header, variant: "default", disableContentPaddings: disableContentPaddings || !expanded, disableHeaderPaddings: true, __internalRootRef: __internalRootRef }), children));
|
|
9
|
+
return (React.createElement(InternalContainer, __assign({}, rest, { className: className, header: header, variant: "default", disableContentPaddings: disableContentPaddings || !expanded, disableHeaderPaddings: true, __hiddenContent: !expanded, __internalRootRef: __internalRootRef }), children));
|
|
10
10
|
}
|
|
11
11
|
return (React.createElement("div", __assign({ className: className }, rest, { ref: __internalRootRef }),
|
|
12
12
|
header,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-section-container.js","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-container.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,CAAC,IAAM,0BAA0B,GAAG,UAAC,EAST;IARhC,IAAA,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,sBAAsB,4BAAA,EACtB,iBAAiB,uBAAA,EACd,IAAI,cARkC,yGAS1C,CADQ;IAEP,IAAI,OAAO,KAAK,WAAW,EAAE;QAC3B,OAAO,CACL,oBAAC,iBAAiB,eACZ,IAAI,IACR,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,SAAS,EACjB,sBAAsB,EAAE,sBAAsB,IAAI,CAAC,QAAQ,EAC3D,qBAAqB,EAAE,IAAI,EAC3B,iBAAiB,EAAE,iBAAiB,KAEnC,QAAQ,CACS,CACrB,CAAC;KACH;IAED,OAAO,CACL,sCAAK,SAAS,EAAE,SAAS,IAAM,IAAI,IAAE,GAAG,EAAE,iBAAiB;QACxD,MAAM;QACN,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport InternalContainer from '../container/internal';\nimport React from 'react';\nimport { ExpandableSectionProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\ninterface ExpandableSectionContainerProps extends InternalBaseComponentProps {\n className?: string;\n header: React.ReactNode;\n children?: React.ReactNode;\n variant: ExpandableSectionProps.Variant;\n expanded: boolean | undefined;\n disableContentPaddings: boolean | undefined;\n}\n\nexport const ExpandableSectionContainer = ({\n className,\n children,\n header,\n variant,\n expanded,\n disableContentPaddings,\n __internalRootRef,\n ...rest\n}: ExpandableSectionContainerProps) => {\n if (variant === 'container') {\n return (\n <InternalContainer\n {...rest}\n className={className}\n header={header}\n variant=\"default\"\n disableContentPaddings={disableContentPaddings || !expanded}\n disableHeaderPaddings={true}\n __internalRootRef={__internalRootRef}\n >\n {children}\n </InternalContainer>\n );\n }\n\n return (\n <div className={className} {...rest} ref={__internalRootRef}>\n {header}\n {children}\n </div>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"expandable-section-container.js","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-container.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,CAAC,IAAM,0BAA0B,GAAG,UAAC,EAST;IARhC,IAAA,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,sBAAsB,4BAAA,EACtB,iBAAiB,uBAAA,EACd,IAAI,cARkC,yGAS1C,CADQ;IAEP,IAAI,OAAO,KAAK,WAAW,EAAE;QAC3B,OAAO,CACL,oBAAC,iBAAiB,eACZ,IAAI,IACR,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,SAAS,EACjB,sBAAsB,EAAE,sBAAsB,IAAI,CAAC,QAAQ,EAC3D,qBAAqB,EAAE,IAAI,EAC3B,eAAe,EAAE,CAAC,QAAQ,EAC1B,iBAAiB,EAAE,iBAAiB,KAEnC,QAAQ,CACS,CACrB,CAAC;KACH;IAED,OAAO,CACL,sCAAK,SAAS,EAAE,SAAS,IAAM,IAAI,IAAE,GAAG,EAAE,iBAAiB;QACxD,MAAM;QACN,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport InternalContainer from '../container/internal';\nimport React from 'react';\nimport { ExpandableSectionProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\ninterface ExpandableSectionContainerProps extends InternalBaseComponentProps {\n className?: string;\n header: React.ReactNode;\n children?: React.ReactNode;\n variant: ExpandableSectionProps.Variant;\n expanded: boolean | undefined;\n disableContentPaddings: boolean | undefined;\n}\n\nexport const ExpandableSectionContainer = ({\n className,\n children,\n header,\n variant,\n expanded,\n disableContentPaddings,\n __internalRootRef,\n ...rest\n}: ExpandableSectionContainerProps) => {\n if (variant === 'container') {\n return (\n <InternalContainer\n {...rest}\n className={className}\n header={header}\n variant=\"default\"\n disableContentPaddings={disableContentPaddings || !expanded}\n disableHeaderPaddings={true}\n __hiddenContent={!expanded}\n __internalRootRef={__internalRootRef}\n >\n {children}\n </InternalContainer>\n );\n }\n\n return (\n <div className={className} {...rest} ref={__internalRootRef}>\n {header}\n {children}\n </div>\n );\n};\n"]}
|
package/icon/interfaces.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface IconProps extends BaseComponentProps {
|
|
|
27
27
|
*/
|
|
28
28
|
url?: string;
|
|
29
29
|
/**
|
|
30
|
-
* Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.
|
|
30
|
+
* Specifies alternate text for a custom icon (using the `url` attribute). We recommend that you provide this for accessibility.
|
|
31
31
|
* This property is ignored if you use a predefined icon or if you set your custom icon using the `svg` slot.
|
|
32
32
|
*/
|
|
33
33
|
alt?: string;
|
package/icon/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/icon/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface IconProps extends BaseComponentProps {\n /**\n * Specifies the icon to be displayed.\n */\n name?: IconProps.Name;\n /**\n * Specifies the size of the icon.\n *\n * If you set size to `inherit`, an icon size will be assigned based on the icon's inherited line height.\n * For icons used alongside text, ensure the icon is placed inside the acompanying text tag.\n * The icon will be vertically centered based on the height.\n *\n * @visualrefresh `medium` size\n */\n size?: IconProps.Size;\n\n /**\n * Specifies the color variant of the icon. The `normal` variant picks up the current color of its context.\n */\n variant?: IconProps.Variant;\n\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available, and your custom icon cannot be an SVG.\n * For SVG icons, use the `svg` slot instead.\n *\n * If you set both `url` and `svg`, `svg` will take precedence.\n */\n url?: string;\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 `svg` slot.\n */\n alt?: string;\n\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if the icon you want isn't available, and 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` and ensure icon `size` is not set to `inherit`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `url` and `svg`, `svg` 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 svg?: React.ReactNode;\n}\n\nexport namespace IconProps {\n // Why not enums? Explained there\n // https://stackoverflow.com/questions/52393730/typescript-string-literal-union-type-from-enum\n export type Name =\n | 'add-plus'\n | 'angle-left-double'\n | 'angle-left'\n | 'angle-right-double'\n | 'angle-right'\n | 'angle-up'\n | 'angle-down'\n | 'arrow-left'\n | 'bug'\n | 'call'\n | 'calendar'\n | 'caret-down-filled'\n | 'caret-down'\n | 'caret-left-filled'\n | 'caret-right-filled'\n | 'caret-up-filled'\n | 'caret-up'\n | 'check'\n | 'contact'\n | 'close'\n | 'copy'\n | 'download'\n | 'edit'\n | 'ellipsis'\n | 'envelope'\n | 'expand'\n | 'external'\n | 'file-open'\n | 'file'\n | 'filter'\n | 'folder-open'\n | 'folder'\n | 'heart'\n | 'key'\n | 'lock-private'\n | 'menu'\n | 'microphone'\n | 'notification'\n | 'redo'\n | 'refresh'\n | 'search'\n | 'settings'\n | 'share'\n | 'status-in-progress'\n | 'status-info'\n | 'status-negative'\n | 'status-pending'\n | 'status-positive'\n | 'status-stopped'\n | 'status-warning'\n | 'treeview-collapse'\n | 'treeview-expand'\n | 'undo'\n | 'unlocked'\n | 'upload'\n | 'user-profile'\n | 'view-full'\n | 'view-horizontal'\n | 'view-vertical'\n | 'zoom-in'\n | 'zoom-out';\n\n export type Variant = 'normal' | 'disabled' | 'error' | 'inverted' | 'link' | 'subtle' | 'success' | 'warning';\n\n export type Size = 'small' | 'normal' | 'medium' | 'big' | 'large' | 'inherit';\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/icon/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface IconProps extends BaseComponentProps {\n /**\n * Specifies the icon to be displayed.\n */\n name?: IconProps.Name;\n /**\n * Specifies the size of the icon.\n *\n * If you set size to `inherit`, an icon size will be assigned based on the icon's inherited line height.\n * For icons used alongside text, ensure the icon is placed inside the acompanying text tag.\n * The icon will be vertically centered based on the height.\n *\n * @visualrefresh `medium` size\n */\n size?: IconProps.Size;\n\n /**\n * Specifies the color variant of the icon. The `normal` variant picks up the current color of its context.\n */\n variant?: IconProps.Variant;\n\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available, and your custom icon cannot be an SVG.\n * For SVG icons, use the `svg` slot instead.\n *\n * If you set both `url` and `svg`, `svg` will take precedence.\n */\n url?: string;\n /**\n * Specifies alternate text for a custom icon (using the `url` attribute). 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 `svg` slot.\n */\n alt?: string;\n\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if the icon you want isn't available, and 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` and ensure icon `size` is not set to `inherit`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `url` and `svg`, `svg` 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 svg?: React.ReactNode;\n}\n\nexport namespace IconProps {\n // Why not enums? Explained there\n // https://stackoverflow.com/questions/52393730/typescript-string-literal-union-type-from-enum\n export type Name =\n | 'add-plus'\n | 'angle-left-double'\n | 'angle-left'\n | 'angle-right-double'\n | 'angle-right'\n | 'angle-up'\n | 'angle-down'\n | 'arrow-left'\n | 'bug'\n | 'call'\n | 'calendar'\n | 'caret-down-filled'\n | 'caret-down'\n | 'caret-left-filled'\n | 'caret-right-filled'\n | 'caret-up-filled'\n | 'caret-up'\n | 'check'\n | 'contact'\n | 'close'\n | 'copy'\n | 'download'\n | 'edit'\n | 'ellipsis'\n | 'envelope'\n | 'expand'\n | 'external'\n | 'file-open'\n | 'file'\n | 'filter'\n | 'folder-open'\n | 'folder'\n | 'heart'\n | 'key'\n | 'lock-private'\n | 'menu'\n | 'microphone'\n | 'notification'\n | 'redo'\n | 'refresh'\n | 'search'\n | 'settings'\n | 'share'\n | 'status-in-progress'\n | 'status-info'\n | 'status-negative'\n | 'status-pending'\n | 'status-positive'\n | 'status-stopped'\n | 'status-warning'\n | 'treeview-collapse'\n | 'treeview-expand'\n | 'undo'\n | 'unlocked'\n | 'upload'\n | 'user-profile'\n | 'view-full'\n | 'view-horizontal'\n | 'view-vertical'\n | 'zoom-in'\n | 'zoom-out';\n\n export type Variant = 'normal' | 'disabled' | 'error' | 'inverted' | 'link' | 'subtle' | 'success' | 'warning';\n\n export type Size = 'small' | 'normal' | 'medium' | 'big' | 'large' | 'inherit';\n}\n"]}
|
package/{autosuggest/autosuggest-input.d.ts → internal/components/autosuggest-input/index.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormFieldValidationControlProps } from '
|
|
3
|
-
import { BaseComponentProps } from '
|
|
4
|
-
import { NonCancelableEventHandler } from '
|
|
5
|
-
import { BaseChangeDetail, BaseInputProps, InputKeyEvents, InputProps } from '
|
|
6
|
-
import { ExpandToViewport } from '../
|
|
7
|
-
import { InternalBaseComponentProps } from '
|
|
2
|
+
import { FormFieldValidationControlProps } from '../../context/form-field-context';
|
|
3
|
+
import { BaseComponentProps } from '../../base-component';
|
|
4
|
+
import { NonCancelableEventHandler } from '../../events';
|
|
5
|
+
import { BaseChangeDetail, BaseInputProps, InputKeyEvents, InputProps } from '../../../input/interfaces';
|
|
6
|
+
import { ExpandToViewport } from '../dropdown/interfaces';
|
|
7
|
+
import { InternalBaseComponentProps } from '../../hooks/use-base-component';
|
|
8
8
|
export interface AutosuggestInputProps extends BaseComponentProps, BaseInputProps, InputKeyEvents, FormFieldValidationControlProps, ExpandToViewport, InternalBaseComponentProps {
|
|
9
9
|
ariaControls?: string;
|
|
10
10
|
ariaActivedescendant?: string;
|
|
@@ -25,4 +25,4 @@ export interface AutosuggestInputRef extends InputProps.Ref {
|
|
|
25
25
|
}
|
|
26
26
|
declare const AutosuggestInput: React.ForwardRefExoticComponent<AutosuggestInputProps & React.RefAttributes<AutosuggestInputRef>>;
|
|
27
27
|
export default AutosuggestInput;
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/autosuggest-input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAIrF,OAAO,EAAE,+BAA+B,EAAuB,MAAM,kCAAkC,CAAC;AACxG,OAAO,EAAE,kBAAkB,EAAgB,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAKL,yBAAyB,EAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEzG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAK5E,MAAM,WAAW,qBACf,SAAQ,kBAAkB,EACxB,cAAc,EACd,cAAc,EACd,+BAA+B,EAC/B,gBAAgB,EAChB,0BAA0B;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAClD,cAAc,CAAC,EAAE,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;IAC7D,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,mBAAoB,SAAQ,UAAU,CAAC,GAAG;IACzD,WAAW,IAAI,IAAI,CAAC;IACpB,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;CACf;AAED,QAAA,MAAM,gBAAgB,mGAwNrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { __assign, __rest } from "tslib";
|
|
4
4
|
import React, { useRef, useState, useImperativeHandle, useEffect } from 'react';
|
|
5
|
-
import Dropdown from '../
|
|
6
|
-
import { useFormFieldContext } from '
|
|
7
|
-
import { getBaseProps } from '
|
|
8
|
-
import { useUniqueId } from '
|
|
9
|
-
import { fireCancelableEvent, fireNonCancelableEvent, getBlurEventRelatedTarget, } from '
|
|
10
|
-
import InternalInput from '
|
|
11
|
-
import { getFocusables } from '../
|
|
12
|
-
import { KeyCode } from '
|
|
5
|
+
import Dropdown from '../dropdown';
|
|
6
|
+
import { useFormFieldContext } from '../../context/form-field-context';
|
|
7
|
+
import { getBaseProps } from '../../base-component';
|
|
8
|
+
import { useUniqueId } from '../../hooks/use-unique-id';
|
|
9
|
+
import { fireCancelableEvent, fireNonCancelableEvent, getBlurEventRelatedTarget, } from '../../events';
|
|
10
|
+
import InternalInput from '../../../input/internal';
|
|
11
|
+
import { getFocusables } from '../focus-lock/utils';
|
|
12
|
+
import { KeyCode } from '../../keycode';
|
|
13
13
|
import styles from './styles.css.js';
|
|
14
|
+
import clsx from 'clsx';
|
|
14
15
|
var AutosuggestInput = React.forwardRef(function (_a, ref) {
|
|
15
16
|
var value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, name = _a.name, placeholder = _a.placeholder, disabled = _a.disabled, readOnly = _a.readOnly, autoFocus = _a.autoFocus, ariaLabel = _a.ariaLabel, ariaRequired = _a.ariaRequired, _b = _a.disableBrowserAutocorrect, disableBrowserAutocorrect = _b === void 0 ? false : _b, expandToViewport = _a.expandToViewport, ariaControls = _a.ariaControls, ariaActivedescendant = _a.ariaActivedescendant, dropdownExpanded = _a.dropdownExpanded, _c = _a.dropdownContent, dropdownContent = _c === void 0 ? null : _c, _d = _a.dropdownFooter, dropdownFooter = _d === void 0 ? null : _d, dropdownWidth = _a.dropdownWidth, onCloseDropdown = _a.onCloseDropdown, onDelayedInput = _a.onDelayedInput, onPressArrowDown = _a.onPressArrowDown, onPressArrowUp = _a.onPressArrowUp, onPressEnter = _a.onPressEnter, __internalRootRef = _a.__internalRootRef, restProps = __rest(_a, ["value", "onChange", "onBlur", "onFocus", "onKeyUp", "onKeyDown", "name", "placeholder", "disabled", "readOnly", "autoFocus", "ariaLabel", "ariaRequired", "disableBrowserAutocorrect", "expandToViewport", "ariaControls", "ariaActivedescendant", "dropdownExpanded", "dropdownContent", "dropdownFooter", "dropdownWidth", "onCloseDropdown", "onDelayedInput", "onPressArrowDown", "onPressArrowUp", "onPressEnter", "__internalRootRef"]);
|
|
16
17
|
var baseProps = getBaseProps(restProps);
|
|
@@ -132,9 +133,9 @@ var AutosuggestInput = React.forwardRef(function (_a, ref) {
|
|
|
132
133
|
setTrapDropdownFocus((dropdownFooterRef.current ? getFocusables(dropdownFooterRef.current).length > 0 : false) ||
|
|
133
134
|
(dropdownContentRef.current ? getFocusables(dropdownContentRef.current).length > 0 : false));
|
|
134
135
|
});
|
|
135
|
-
return (React.createElement("div", __assign({}, baseProps, { ref: __internalRootRef, onBlur: handleBlur }),
|
|
136
|
+
return (React.createElement("div", __assign({}, baseProps, { className: clsx(baseProps.className, styles.root), ref: __internalRootRef, onBlur: handleBlur }),
|
|
136
137
|
React.createElement(Dropdown, { minWidth: dropdownWidth, stretchWidth: !dropdownWidth, trigger: React.createElement(InternalInput, __assign({ type: "search", value: value, onChange: function (event) { return handleChange(event.detail.value); }, __onDelayedInput: function (event) { return handleDelayedInput(event.detail.value); }, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: onKeyUp, disabled: disabled, disableBrowserAutocorrect: disableBrowserAutocorrect, readOnly: readOnly, ariaRequired: ariaRequired, ref: inputRef, autoComplete: false, __nativeAttributes: nativeAttributes }, formFieldContext)), onMouseDown: handleMouseDown, open: open, dropdownId: dropdownId, footer: dropdownFooterRef && (React.createElement("div", { ref: dropdownFooterRef, className: styles['dropdown-footer'] }, dropdownFooter)), expandToViewport: expandToViewport, hasContent: expanded, trapFocus: trapDropdownFocus },
|
|
137
138
|
React.createElement("div", { ref: dropdownContentRef, className: styles['dropdown-content'] }, open && dropdownContent))));
|
|
138
139
|
});
|
|
139
140
|
export default AutosuggestInput;
|
|
140
|
-
//# sourceMappingURL=
|
|
141
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sour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QAAQ,EAAE,QAAQ,EAClB,yBAAyB,EAAE,yBAAyB,EACpD,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,QAAQ,EACb,YAAY,EAAE,KAAK,EACnB,kBAAkB,EAAE,gBAAgB,IAChC,gBAAgB,EACpB,EAEJ,WAAW,EAAE,eAAe,EAC5B,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,MAAM,EACJ,iBAAiB,IAAI,CACnB,6BAAK,GAAG,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,IAC9D,cAAc,CACX,CACP,EAEH,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,QAAQ,EACpB,SAAS,EAAE,iBAAiB;YAE5B,6BAAK,GAAG,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,IAChE,IAAI,IAAI,eAAe,CACpB,CACG,CACP,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Ref, useRef, useState, useImperativeHandle, useEffect } from 'react';\n\nimport Dropdown from '../dropdown';\n\nimport { FormFieldValidationControlProps, useFormFieldContext } from '../../context/form-field-context';\nimport { BaseComponentProps, getBaseProps } from '../../base-component';\nimport { useUniqueId } from '../../hooks/use-unique-id';\nimport {\n BaseKeyDetail,\n fireCancelableEvent,\n fireNonCancelableEvent,\n getBlurEventRelatedTarget,\n NonCancelableEventHandler,\n} from '../../events';\nimport InternalInput from '../../../input/internal';\nimport { BaseChangeDetail, BaseInputProps, InputKeyEvents, InputProps } from '../../../input/interfaces';\nimport { getFocusables } from '../focus-lock/utils';\nimport { ExpandToViewport } from '../dropdown/interfaces';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport { KeyCode } from '../../keycode';\nimport styles from './styles.css.js';\nimport clsx from 'clsx';\n\nexport interface AutosuggestInputProps\n extends BaseComponentProps,\n BaseInputProps,\n InputKeyEvents,\n FormFieldValidationControlProps,\n ExpandToViewport,\n InternalBaseComponentProps {\n ariaControls?: string;\n ariaActivedescendant?: string;\n dropdownExpanded?: boolean;\n dropdownContent?: React.ReactNode;\n dropdownFooter?: React.ReactNode;\n dropdownWidth?: number;\n onCloseDropdown?: NonCancelableEventHandler<null>;\n onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>;\n onPressArrowDown?: () => void;\n onPressArrowUp?: () => void;\n onPressEnter?: () => boolean;\n}\n\nexport interface AutosuggestInputRef extends InputProps.Ref {\n focusNoOpen(): void;\n open(): void;\n close(): void;\n}\n\nconst AutosuggestInput = React.forwardRef(\n (\n {\n value,\n onChange,\n onBlur,\n onFocus,\n onKeyUp,\n onKeyDown,\n name,\n placeholder,\n disabled,\n readOnly,\n autoFocus,\n ariaLabel,\n ariaRequired,\n disableBrowserAutocorrect = false,\n expandToViewport,\n ariaControls,\n ariaActivedescendant,\n dropdownExpanded,\n dropdownContent = null,\n dropdownFooter = null,\n dropdownWidth,\n onCloseDropdown,\n onDelayedInput,\n onPressArrowDown,\n onPressArrowUp,\n onPressEnter,\n __internalRootRef,\n ...restProps\n }: AutosuggestInputProps,\n ref: Ref<AutosuggestInputRef>\n ) => {\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n\n const dropdownId = useUniqueId('dropdown');\n\n const inputRef = useRef<HTMLInputElement>(null);\n const dropdownContentRef = useRef<HTMLDivElement>(null);\n const dropdownFooterRef = useRef<HTMLDivElement>(null);\n const preventOpenOnFocusRef = useRef(false);\n\n const [open, setOpen] = useState(false);\n\n const openDropdown = () => !readOnly && setOpen(true);\n\n const closeDropdown = () => {\n setOpen(false);\n fireNonCancelableEvent(onCloseDropdown, null);\n };\n\n useImperativeHandle(ref, () => ({\n focus() {\n inputRef.current?.focus();\n },\n select() {\n inputRef.current?.select();\n },\n focusNoOpen() {\n preventOpenOnFocusRef.current = true;\n inputRef.current?.focus();\n },\n open: openDropdown,\n close: closeDropdown,\n }));\n\n const handleBlur: React.FocusEventHandler = event => {\n const relatedTarget = getBlurEventRelatedTarget(event.nativeEvent);\n if (event.currentTarget.contains(relatedTarget) || dropdownFooterRef.current?.contains(relatedTarget)) {\n return;\n }\n closeDropdown();\n fireNonCancelableEvent(onBlur, null);\n };\n\n const handleFocus = () => {\n if (!preventOpenOnFocusRef.current) {\n openDropdown();\n fireNonCancelableEvent(onFocus, null);\n }\n preventOpenOnFocusRef.current = false;\n };\n\n const handleMouseDown: React.MouseEventHandler = event => {\n // Prevent currently focused element from losing focus.\n event.preventDefault();\n };\n\n const handleKeyDown = (e: CustomEvent<BaseKeyDetail>) => {\n switch (e.detail.keyCode) {\n case KeyCode.down: {\n onPressArrowDown?.();\n openDropdown();\n e.preventDefault();\n break;\n }\n case KeyCode.up: {\n onPressArrowUp?.();\n openDropdown();\n e.preventDefault();\n break;\n }\n case KeyCode.enter: {\n if (open) {\n if (!onPressEnter?.()) {\n closeDropdown();\n }\n e.preventDefault();\n }\n fireCancelableEvent(onKeyDown, e.detail);\n break;\n }\n case KeyCode.escape: {\n if (open) {\n closeDropdown();\n } else if (value) {\n fireNonCancelableEvent(onChange, { value: '' });\n }\n e.preventDefault();\n fireCancelableEvent(onKeyDown, e.detail);\n break;\n }\n default: {\n fireCancelableEvent(onKeyDown, e.detail);\n }\n }\n };\n\n const handleChange = (value: string) => {\n openDropdown();\n fireNonCancelableEvent(onChange, { value });\n };\n\n const handleDelayedInput = (value: string) => {\n fireNonCancelableEvent(onDelayedInput, { value });\n };\n\n const expanded = open && (dropdownExpanded ?? !!dropdownContent);\n const nativeAttributes = {\n name,\n placeholder,\n autoFocus,\n onClick: openDropdown,\n role: 'combobox',\n 'aria-autocomplete': 'list',\n 'aria-expanded': expanded,\n 'aria-controls': ariaControls,\n // 'aria-owns' needed for safari+vo to announce activedescendant content\n 'aria-owns': ariaControls,\n 'aria-label': ariaLabel,\n 'aria-activedescendant': ariaActivedescendant,\n };\n\n const [trapDropdownFocus, setTrapDropdownFocus] = useState(false);\n\n // Run this effect on every render to determine if necessary to trap focus around input and dropdown.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(() => {\n setTrapDropdownFocus(\n (dropdownFooterRef.current ? getFocusables(dropdownFooterRef.current).length > 0 : false) ||\n (dropdownContentRef.current ? getFocusables(dropdownContentRef.current).length > 0 : false)\n );\n });\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n ref={__internalRootRef}\n onBlur={handleBlur}\n >\n <Dropdown\n minWidth={dropdownWidth}\n stretchWidth={!dropdownWidth}\n trigger={\n <InternalInput\n type=\"search\"\n value={value}\n onChange={event => handleChange(event.detail.value)}\n __onDelayedInput={event => handleDelayedInput(event.detail.value)}\n onFocus={handleFocus}\n onKeyDown={handleKeyDown}\n onKeyUp={onKeyUp}\n disabled={disabled}\n disableBrowserAutocorrect={disableBrowserAutocorrect}\n readOnly={readOnly}\n ariaRequired={ariaRequired}\n ref={inputRef}\n autoComplete={false}\n __nativeAttributes={nativeAttributes}\n {...formFieldContext}\n />\n }\n onMouseDown={handleMouseDown}\n open={open}\n dropdownId={dropdownId}\n footer={\n dropdownFooterRef && (\n <div ref={dropdownFooterRef} className={styles['dropdown-footer']}>\n {dropdownFooter}\n </div>\n )\n }\n expandToViewport={expandToViewport}\n hasContent={expanded}\n trapFocus={trapDropdownFocus}\n >\n <div ref={dropdownContentRef} className={styles['dropdown-content']}>\n {open && dropdownContent}\n </div>\n </Dropdown>\n </div>\n );\n }\n);\n\nexport default AutosuggestInput;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
.awsui_dropdown-footer_vm8qf_jxdvh_5:not(#\9) {
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.awsui_dropdown-content_vm8qf_jxdvh_10:not(#\9) {
|
|
11
|
+
display: contents;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"dropdown-footer": "awsui_dropdown-footer_vm8qf_jxdvh_5",
|
|
6
|
+
"dropdown-content": "awsui_dropdown-content_vm8qf_jxdvh_10"
|
|
7
|
+
};
|
|
8
|
+
|
package/internal/environment.js
CHANGED
|
@@ -229,6 +229,23 @@ export const colorTextStatusSuccess: string;
|
|
|
229
229
|
export const colorTextStatusWarning: string;
|
|
230
230
|
export const fontFamilyBase: string;
|
|
231
231
|
export const fontFamilyMonospace: string;
|
|
232
|
+
export const borderRadiusAlert: string;
|
|
233
|
+
export const borderRadiusBadge: string;
|
|
234
|
+
export const borderRadiusButton: string;
|
|
235
|
+
export const borderRadiusCalendarDayFocusRing: string;
|
|
236
|
+
export const borderRadiusCodeEditor: string;
|
|
237
|
+
export const borderRadiusContainer: string;
|
|
238
|
+
export const borderRadiusControlCircularFocusRing: string;
|
|
239
|
+
export const borderRadiusControlDefaultFocusRing: string;
|
|
240
|
+
export const borderRadiusDropdown: string;
|
|
241
|
+
export const borderRadiusFlashbar: string;
|
|
242
|
+
export const borderRadiusItem: string;
|
|
243
|
+
export const borderRadiusInput: string;
|
|
244
|
+
export const borderRadiusPopover: string;
|
|
245
|
+
export const borderRadiusTabsFocusRing: string;
|
|
246
|
+
export const borderRadiusTiles: string;
|
|
247
|
+
export const borderRadiusToken: string;
|
|
248
|
+
export const borderRadiusTutorialPanelItem: string;
|
|
232
249
|
export const motionEasingResponsive: string;
|
|
233
250
|
export const motionEasingSticky: string;
|
|
234
251
|
export const motionEasingExpressive: string;
|
|
@@ -229,6 +229,23 @@ export var colorTextStatusSuccess = "var(--color-text-status-success-0fzhv9, #03
|
|
|
229
229
|
export var colorTextStatusWarning = "var(--color-text-status-warning-27nlyh, #d91515)";
|
|
230
230
|
export var fontFamilyBase = "var(--font-family-base-qnistn, 'Open Sans', 'Helvetica Neue', Roboto, Arial, sans-serif)";
|
|
231
231
|
export var fontFamilyMonospace = "var(--font-family-monospace-iz223z, Monaco, Menlo, Consolas, 'Courier Prime', Courier, 'Courier New', monospace)";
|
|
232
|
+
export var borderRadiusAlert = "var(--border-radius-alert-n0skwy, 12px)";
|
|
233
|
+
export var borderRadiusBadge = "var(--border-radius-badge-x5oehc, 4px)";
|
|
234
|
+
export var borderRadiusButton = "var(--border-radius-button-axewzv, 20px)";
|
|
235
|
+
export var borderRadiusCalendarDayFocusRing = "var(--border-radius-calendar-day-focus-ring-a8mlqd, 3px)";
|
|
236
|
+
export var borderRadiusCodeEditor = "var(--border-radius-code-editor-fuck6b, 8px)";
|
|
237
|
+
export var borderRadiusContainer = "var(--border-radius-container-gh9ysk, 16px)";
|
|
238
|
+
export var borderRadiusControlCircularFocusRing = "var(--border-radius-control-circular-focus-ring-qawzn7, 4px)";
|
|
239
|
+
export var borderRadiusControlDefaultFocusRing = "var(--border-radius-control-default-focus-ring-7661kz, 4px)";
|
|
240
|
+
export var borderRadiusDropdown = "var(--border-radius-dropdown-ujknaf, 8px)";
|
|
241
|
+
export var borderRadiusFlashbar = "var(--border-radius-flashbar-i7jm55, 12px)";
|
|
242
|
+
export var borderRadiusItem = "var(--border-radius-item-u2ibpi, 8px)";
|
|
243
|
+
export var borderRadiusInput = "var(--border-radius-input-txq8zy, 8px)";
|
|
244
|
+
export var borderRadiusPopover = "var(--border-radius-popover-8g1bwn, 8px)";
|
|
245
|
+
export var borderRadiusTabsFocusRing = "var(--border-radius-tabs-focus-ring-j968on, 20px)";
|
|
246
|
+
export var borderRadiusTiles = "var(--border-radius-tiles-kl8mtb, 8px)";
|
|
247
|
+
export var borderRadiusToken = "var(--border-radius-token-wohc9e, 8px)";
|
|
248
|
+
export var borderRadiusTutorialPanelItem = "var(--border-radius-tutorial-panel-item-5wuccf, 8px)";
|
|
232
249
|
export var motionEasingResponsive = "var(--motion-easing-responsive-5yj747, cubic-bezier(0, 0, 0, 1))";
|
|
233
250
|
export var motionEasingSticky = "var(--motion-easing-sticky-yt83ho, cubic-bezier(1, 0, 0.83, 1))";
|
|
234
251
|
export var motionEasingExpressive = "var(--motion-easing-expressive-zns6oe, cubic-bezier(0.84, 0, 0.16, 1))";
|
|
@@ -6326,7 +6326,24 @@ module.exports.preset = {
|
|
|
6326
6326
|
"colorTextStatusSuccess",
|
|
6327
6327
|
"colorTextStatusWarning",
|
|
6328
6328
|
"fontFamilyBase",
|
|
6329
|
-
"fontFamilyMonospace"
|
|
6329
|
+
"fontFamilyMonospace",
|
|
6330
|
+
"borderRadiusAlert",
|
|
6331
|
+
"borderRadiusBadge",
|
|
6332
|
+
"borderRadiusButton",
|
|
6333
|
+
"borderRadiusCalendarDayFocusRing",
|
|
6334
|
+
"borderRadiusCodeEditor",
|
|
6335
|
+
"borderRadiusContainer",
|
|
6336
|
+
"borderRadiusControlCircularFocusRing",
|
|
6337
|
+
"borderRadiusControlDefaultFocusRing",
|
|
6338
|
+
"borderRadiusDropdown",
|
|
6339
|
+
"borderRadiusFlashbar",
|
|
6340
|
+
"borderRadiusItem",
|
|
6341
|
+
"borderRadiusInput",
|
|
6342
|
+
"borderRadiusPopover",
|
|
6343
|
+
"borderRadiusTabsFocusRing",
|
|
6344
|
+
"borderRadiusTiles",
|
|
6345
|
+
"borderRadiusToken",
|
|
6346
|
+
"borderRadiusTutorialPanelItem"
|
|
6330
6347
|
],
|
|
6331
6348
|
"exposed": [
|
|
6332
6349
|
"colorChartsRed300",
|
|
@@ -6560,6 +6577,23 @@ module.exports.preset = {
|
|
|
6560
6577
|
"colorTextStatusWarning",
|
|
6561
6578
|
"fontFamilyBase",
|
|
6562
6579
|
"fontFamilyMonospace",
|
|
6580
|
+
"borderRadiusAlert",
|
|
6581
|
+
"borderRadiusBadge",
|
|
6582
|
+
"borderRadiusButton",
|
|
6583
|
+
"borderRadiusCalendarDayFocusRing",
|
|
6584
|
+
"borderRadiusCodeEditor",
|
|
6585
|
+
"borderRadiusContainer",
|
|
6586
|
+
"borderRadiusControlCircularFocusRing",
|
|
6587
|
+
"borderRadiusControlDefaultFocusRing",
|
|
6588
|
+
"borderRadiusDropdown",
|
|
6589
|
+
"borderRadiusFlashbar",
|
|
6590
|
+
"borderRadiusItem",
|
|
6591
|
+
"borderRadiusInput",
|
|
6592
|
+
"borderRadiusPopover",
|
|
6593
|
+
"borderRadiusTabsFocusRing",
|
|
6594
|
+
"borderRadiusTiles",
|
|
6595
|
+
"borderRadiusToken",
|
|
6596
|
+
"borderRadiusTutorialPanelItem",
|
|
6563
6597
|
"motionEasingResponsive",
|
|
6564
6598
|
"motionEasingSticky",
|
|
6565
6599
|
"motionEasingExpressive",
|
|
@@ -146,6 +146,23 @@ export declare interface TypedOverride {
|
|
|
146
146
|
colorTextStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
147
147
|
fontFamilyBase?: GlobalValue;
|
|
148
148
|
fontFamilyMonospace?: GlobalValue;
|
|
149
|
+
borderRadiusAlert?: GlobalValue;
|
|
150
|
+
borderRadiusBadge?: GlobalValue;
|
|
151
|
+
borderRadiusButton?: GlobalValue;
|
|
152
|
+
borderRadiusCalendarDayFocusRing?: GlobalValue;
|
|
153
|
+
borderRadiusCodeEditor?: GlobalValue;
|
|
154
|
+
borderRadiusContainer?: GlobalValue;
|
|
155
|
+
borderRadiusControlCircularFocusRing?: GlobalValue;
|
|
156
|
+
borderRadiusControlDefaultFocusRing?: GlobalValue;
|
|
157
|
+
borderRadiusDropdown?: GlobalValue;
|
|
158
|
+
borderRadiusFlashbar?: GlobalValue;
|
|
159
|
+
borderRadiusItem?: GlobalValue;
|
|
160
|
+
borderRadiusInput?: GlobalValue;
|
|
161
|
+
borderRadiusPopover?: GlobalValue;
|
|
162
|
+
borderRadiusTabsFocusRing?: GlobalValue;
|
|
163
|
+
borderRadiusTiles?: GlobalValue;
|
|
164
|
+
borderRadiusToken?: GlobalValue;
|
|
165
|
+
borderRadiusTutorialPanelItem?: GlobalValue;
|
|
149
166
|
},
|
|
150
167
|
contexts?: {
|
|
151
168
|
'top-navigation'?: {
|
|
@@ -294,6 +311,23 @@ export declare interface TypedOverride {
|
|
|
294
311
|
colorTextStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
295
312
|
fontFamilyBase?: GlobalValue;
|
|
296
313
|
fontFamilyMonospace?: GlobalValue;
|
|
314
|
+
borderRadiusAlert?: GlobalValue;
|
|
315
|
+
borderRadiusBadge?: GlobalValue;
|
|
316
|
+
borderRadiusButton?: GlobalValue;
|
|
317
|
+
borderRadiusCalendarDayFocusRing?: GlobalValue;
|
|
318
|
+
borderRadiusCodeEditor?: GlobalValue;
|
|
319
|
+
borderRadiusContainer?: GlobalValue;
|
|
320
|
+
borderRadiusControlCircularFocusRing?: GlobalValue;
|
|
321
|
+
borderRadiusControlDefaultFocusRing?: GlobalValue;
|
|
322
|
+
borderRadiusDropdown?: GlobalValue;
|
|
323
|
+
borderRadiusFlashbar?: GlobalValue;
|
|
324
|
+
borderRadiusItem?: GlobalValue;
|
|
325
|
+
borderRadiusInput?: GlobalValue;
|
|
326
|
+
borderRadiusPopover?: GlobalValue;
|
|
327
|
+
borderRadiusTabsFocusRing?: GlobalValue;
|
|
328
|
+
borderRadiusTiles?: GlobalValue;
|
|
329
|
+
borderRadiusToken?: GlobalValue;
|
|
330
|
+
borderRadiusTutorialPanelItem?: GlobalValue;
|
|
297
331
|
}
|
|
298
332
|
};
|
|
299
333
|
'header'?: {
|
|
@@ -442,6 +476,23 @@ export declare interface TypedOverride {
|
|
|
442
476
|
colorTextStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
443
477
|
fontFamilyBase?: GlobalValue;
|
|
444
478
|
fontFamilyMonospace?: GlobalValue;
|
|
479
|
+
borderRadiusAlert?: GlobalValue;
|
|
480
|
+
borderRadiusBadge?: GlobalValue;
|
|
481
|
+
borderRadiusButton?: GlobalValue;
|
|
482
|
+
borderRadiusCalendarDayFocusRing?: GlobalValue;
|
|
483
|
+
borderRadiusCodeEditor?: GlobalValue;
|
|
484
|
+
borderRadiusContainer?: GlobalValue;
|
|
485
|
+
borderRadiusControlCircularFocusRing?: GlobalValue;
|
|
486
|
+
borderRadiusControlDefaultFocusRing?: GlobalValue;
|
|
487
|
+
borderRadiusDropdown?: GlobalValue;
|
|
488
|
+
borderRadiusFlashbar?: GlobalValue;
|
|
489
|
+
borderRadiusItem?: GlobalValue;
|
|
490
|
+
borderRadiusInput?: GlobalValue;
|
|
491
|
+
borderRadiusPopover?: GlobalValue;
|
|
492
|
+
borderRadiusTabsFocusRing?: GlobalValue;
|
|
493
|
+
borderRadiusTiles?: GlobalValue;
|
|
494
|
+
borderRadiusToken?: GlobalValue;
|
|
495
|
+
borderRadiusTutorialPanelItem?: GlobalValue;
|
|
445
496
|
}
|
|
446
497
|
};
|
|
447
498
|
'flashbar'?: {
|
|
@@ -590,6 +641,23 @@ export declare interface TypedOverride {
|
|
|
590
641
|
colorTextStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
591
642
|
fontFamilyBase?: GlobalValue;
|
|
592
643
|
fontFamilyMonospace?: GlobalValue;
|
|
644
|
+
borderRadiusAlert?: GlobalValue;
|
|
645
|
+
borderRadiusBadge?: GlobalValue;
|
|
646
|
+
borderRadiusButton?: GlobalValue;
|
|
647
|
+
borderRadiusCalendarDayFocusRing?: GlobalValue;
|
|
648
|
+
borderRadiusCodeEditor?: GlobalValue;
|
|
649
|
+
borderRadiusContainer?: GlobalValue;
|
|
650
|
+
borderRadiusControlCircularFocusRing?: GlobalValue;
|
|
651
|
+
borderRadiusControlDefaultFocusRing?: GlobalValue;
|
|
652
|
+
borderRadiusDropdown?: GlobalValue;
|
|
653
|
+
borderRadiusFlashbar?: GlobalValue;
|
|
654
|
+
borderRadiusItem?: GlobalValue;
|
|
655
|
+
borderRadiusInput?: GlobalValue;
|
|
656
|
+
borderRadiusPopover?: GlobalValue;
|
|
657
|
+
borderRadiusTabsFocusRing?: GlobalValue;
|
|
658
|
+
borderRadiusTiles?: GlobalValue;
|
|
659
|
+
borderRadiusToken?: GlobalValue;
|
|
660
|
+
borderRadiusTutorialPanelItem?: GlobalValue;
|
|
593
661
|
}
|
|
594
662
|
};
|
|
595
663
|
'alert'?: {
|
|
@@ -738,6 +806,23 @@ export declare interface TypedOverride {
|
|
|
738
806
|
colorTextStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
739
807
|
fontFamilyBase?: GlobalValue;
|
|
740
808
|
fontFamilyMonospace?: GlobalValue;
|
|
809
|
+
borderRadiusAlert?: GlobalValue;
|
|
810
|
+
borderRadiusBadge?: GlobalValue;
|
|
811
|
+
borderRadiusButton?: GlobalValue;
|
|
812
|
+
borderRadiusCalendarDayFocusRing?: GlobalValue;
|
|
813
|
+
borderRadiusCodeEditor?: GlobalValue;
|
|
814
|
+
borderRadiusContainer?: GlobalValue;
|
|
815
|
+
borderRadiusControlCircularFocusRing?: GlobalValue;
|
|
816
|
+
borderRadiusControlDefaultFocusRing?: GlobalValue;
|
|
817
|
+
borderRadiusDropdown?: GlobalValue;
|
|
818
|
+
borderRadiusFlashbar?: GlobalValue;
|
|
819
|
+
borderRadiusItem?: GlobalValue;
|
|
820
|
+
borderRadiusInput?: GlobalValue;
|
|
821
|
+
borderRadiusPopover?: GlobalValue;
|
|
822
|
+
borderRadiusTabsFocusRing?: GlobalValue;
|
|
823
|
+
borderRadiusTiles?: GlobalValue;
|
|
824
|
+
borderRadiusToken?: GlobalValue;
|
|
825
|
+
borderRadiusTutorialPanelItem?: GlobalValue;
|
|
741
826
|
}
|
|
742
827
|
}
|
|
743
828
|
}
|