@cloudscape-design/components 3.0.1395 → 3.0.1397

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.
Files changed (75) hide show
  1. package/area-chart/model/utils.d.ts.map +1 -1
  2. package/area-chart/model/utils.js +4 -0
  3. package/area-chart/model/utils.js.map +1 -1
  4. package/autosuggest/internal.d.ts.map +1 -1
  5. package/autosuggest/internal.js +7 -1
  6. package/autosuggest/internal.js.map +1 -1
  7. package/autosuggest/virtual-list.d.ts.map +1 -1
  8. package/autosuggest/virtual-list.js +16 -5
  9. package/autosuggest/virtual-list.js.map +1 -1
  10. package/i18n/messages/all.all.js +1 -1
  11. package/i18n/messages/all.all.json +1 -1
  12. package/i18n/messages/all.ar.js +1 -1
  13. package/i18n/messages/all.ar.json +1 -1
  14. package/i18n/messages/all.de.js +1 -1
  15. package/i18n/messages/all.de.json +1 -1
  16. package/i18n/messages/all.en-GB.js +1 -1
  17. package/i18n/messages/all.en-GB.json +1 -1
  18. package/i18n/messages/all.en.js +1 -1
  19. package/i18n/messages/all.en.json +1 -1
  20. package/i18n/messages/all.es.js +1 -1
  21. package/i18n/messages/all.es.json +1 -1
  22. package/i18n/messages/all.fr.js +1 -1
  23. package/i18n/messages/all.fr.json +1 -1
  24. package/i18n/messages/all.id.js +1 -1
  25. package/i18n/messages/all.id.json +1 -1
  26. package/i18n/messages/all.it.js +1 -1
  27. package/i18n/messages/all.it.json +1 -1
  28. package/i18n/messages/all.ja.js +1 -1
  29. package/i18n/messages/all.ja.json +1 -1
  30. package/i18n/messages/all.ko.js +1 -1
  31. package/i18n/messages/all.ko.json +1 -1
  32. package/i18n/messages/all.pt-BR.js +1 -1
  33. package/i18n/messages/all.pt-BR.json +1 -1
  34. package/i18n/messages/all.th.js +1 -1
  35. package/i18n/messages/all.th.json +1 -1
  36. package/i18n/messages/all.tr.js +1 -1
  37. package/i18n/messages/all.tr.json +1 -1
  38. package/i18n/messages/all.zh-CN.js +1 -1
  39. package/i18n/messages/all.zh-CN.json +1 -1
  40. package/i18n/messages/all.zh-TW.js +1 -1
  41. package/i18n/messages/all.zh-TW.json +1 -1
  42. package/i18n/messages-types.d.ts +679 -678
  43. package/i18n/messages-types.d.ts.map +1 -1
  44. package/i18n/messages-types.js +1 -0
  45. package/i18n/messages-types.js.map +1 -1
  46. package/internal/base-component/styles.scoped.css +1 -1
  47. package/internal/components/control-group/index.d.ts +2 -0
  48. package/internal/components/control-group/index.d.ts.map +1 -1
  49. package/internal/components/control-group/index.js +12 -3
  50. package/internal/components/control-group/index.js.map +1 -1
  51. package/internal/components/control-group/styles.css.js +11 -8
  52. package/internal/components/control-group/styles.scoped.css +41 -7
  53. package/internal/components/control-group/styles.selectors.js +11 -8
  54. package/internal/environment.js +2 -2
  55. package/internal/environment.json +2 -2
  56. package/internal/manifest.json +1 -1
  57. package/manifest.json +2 -2
  58. package/multiselect/internal.d.ts.map +1 -1
  59. package/multiselect/internal.js +7 -2
  60. package/multiselect/internal.js.map +1 -1
  61. package/package.json +1 -1
  62. package/segmented-control/styles.css.js +26 -26
  63. package/segmented-control/styles.scoped.css +48 -47
  64. package/segmented-control/styles.selectors.js +26 -26
  65. package/select/internal.d.ts.map +1 -1
  66. package/select/internal.js +5 -1
  67. package/select/internal.js.map +1 -1
  68. package/test-utils/dom/internal/control-group.d.ts +8 -0
  69. package/test-utils/dom/internal/control-group.js +17 -0
  70. package/test-utils/dom/internal/control-group.js.map +1 -0
  71. package/test-utils/selectors/internal/control-group.d.ts +8 -0
  72. package/test-utils/selectors/internal/control-group.js +17 -0
  73. package/test-utils/selectors/internal/control-group.js.map +1 -0
  74. package/token/interfaces.d.ts +1 -1
  75. package/token/interfaces.js.map +1 -1
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const styles_selectors_js_1 = require("../../../internal/components/control-group/styles.selectors.js");
7
+ class ControlGroupWrapper extends dom_1.ComponentWrapper {
8
+ /**
9
+ * Returns the visible inline label element, or null if no label is set.
10
+ */
11
+ findInlineLabel() {
12
+ return this.findByClassName(styles_selectors_js_1.default['inline-label']);
13
+ }
14
+ }
15
+ ControlGroupWrapper.rootSelector = styles_selectors_js_1.default['inline-label-wrapper'];
16
+ exports.default = ControlGroupWrapper;
17
+ //# sourceMappingURL=control-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/control-group.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,wGAAoF;AAEpF,MAAqB,mBAAoB,SAAQ,sBAAgB;IAG/D;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,cAAc,CAAC,CAAC,CAAC;IACtD,CAAC;;AAPM,gCAAY,GAAW,6BAAM,CAAC,sBAAsB,CAAC,CAAC;kBAD1C,mBAAmB"}
@@ -0,0 +1,8 @@
1
+ import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
2
+ export default class ControlGroupWrapper extends ComponentWrapper {
3
+ static rootSelector: string;
4
+ /**
5
+ * Returns the visible inline label element, or null if no label is set.
6
+ */
7
+ findInlineLabel(): ElementWrapper;
8
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../internal/components/control-group/styles.selectors.js");
7
+ class ControlGroupWrapper extends selectors_1.ComponentWrapper {
8
+ /**
9
+ * Returns the visible inline label element, or null if no label is set.
10
+ */
11
+ findInlineLabel() {
12
+ return this.findByClassName(styles_selectors_js_1.default['inline-label']);
13
+ }
14
+ }
15
+ ControlGroupWrapper.rootSelector = styles_selectors_js_1.default['inline-label-wrapper'];
16
+ exports.default = ControlGroupWrapper;
17
+ //# sourceMappingURL=control-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/internal/control-group.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,wGAAoF;AACpF,MAAqB,mBAAoB,SAAQ,4BAAgB;IAG/D;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,cAAc,CAAC,CAAC,CAAC;IACtD,CAAC;;AAPM,gCAAY,GAAW,6BAAM,CAAC,sBAAsB,CAAC,CAAC;kBAD1C,mBAAmB"}
@@ -23,7 +23,7 @@ export interface TokenProps extends BaseComponentProps {
23
23
  *
24
24
  * When `variant="normal"`, if a description or tags are set, icon size should be `normal`.
25
25
  *
26
- * When `variant="inline"`, icon size should be `small`.
26
+ * When `variant="inline"`, icon size should be `x-small`.
27
27
  */
28
28
  icon?: React.ReactNode;
29
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/token/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface TokenProps extends BaseComponentProps {\n /** Slot for the label of the token as text or an element.\n *\n * For `variant=\"inline\"`, only plain text is supported, for example, strings or numbers.\n */\n label: React.ReactNode;\n\n /**\n * Adds an `aria-label` to the token.\n *\n * Use this if the label is not plain text.\n */\n ariaLabel?: string;\n\n /** A label tag that provides additional guidance, shown next to the label. */\n labelTag?: string;\n\n /** Further information about the token that appears below the label. */\n description?: string;\n\n /** A list of tags giving further guidance about the token. */\n tags?: ReadonlyArray<string>;\n\n /** An icon at the start of the token.\n *\n * When `variant=\"normal\"`, if a description or tags are set, icon size should be `normal`.\n *\n * When `variant=\"inline\"`, icon size should be `small`.\n */\n icon?: React.ReactNode;\n\n /**\n * Specifies the token's visual style and functionality.\n *\n * For `inline` only label, icon and dismiss button are displayed.\n *\n * Defaults to `normal` if not specified.\n */\n variant?: TokenProps.Variant;\n\n /** Determines whether the token is disabled. */\n disabled?: boolean;\n\n /**\n * Specifies if the control is read-only. A read-only control is still focusable.\n */\n readOnly?: boolean;\n\n /** Adds an `aria-label` to the dismiss button. */\n dismissLabel?: string;\n\n /**\n * Called when the user clicks on the dismiss button.\n *\n * Make sure that you add a listener to this event to update your application state.\n */\n onDismiss?: NonCancelableEventHandler;\n\n /**\n * Content to display in the tooltip when `variant=\"inline\"`. The tooltip appears when the token label is truncated due to insufficient space.\n *\n * Only applies to plain text labels.\n */\n tooltipContent?: string;\n\n /**\n * An object containing CSS properties to customize the token's visual appearance.\n * Refer to the [style](/components/token/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: TokenProps.Style;\n}\n\nexport namespace TokenProps {\n export type Variant = 'normal' | 'inline';\n\n export interface Style {\n root?: {\n background?: {\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n borderColor?: {\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n dismissButton?: {\n color?: {\n default?: string;\n disabled?: string;\n hover?: string;\n readOnly?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/token/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface TokenProps extends BaseComponentProps {\n /** Slot for the label of the token as text or an element.\n *\n * For `variant=\"inline\"`, only plain text is supported, for example, strings or numbers.\n */\n label: React.ReactNode;\n\n /**\n * Adds an `aria-label` to the token.\n *\n * Use this if the label is not plain text.\n */\n ariaLabel?: string;\n\n /** A label tag that provides additional guidance, shown next to the label. */\n labelTag?: string;\n\n /** Further information about the token that appears below the label. */\n description?: string;\n\n /** A list of tags giving further guidance about the token. */\n tags?: ReadonlyArray<string>;\n\n /** An icon at the start of the token.\n *\n * When `variant=\"normal\"`, if a description or tags are set, icon size should be `normal`.\n *\n * When `variant=\"inline\"`, icon size should be `x-small`.\n */\n icon?: React.ReactNode;\n\n /**\n * Specifies the token's visual style and functionality.\n *\n * For `inline` only label, icon and dismiss button are displayed.\n *\n * Defaults to `normal` if not specified.\n */\n variant?: TokenProps.Variant;\n\n /** Determines whether the token is disabled. */\n disabled?: boolean;\n\n /**\n * Specifies if the control is read-only. A read-only control is still focusable.\n */\n readOnly?: boolean;\n\n /** Adds an `aria-label` to the dismiss button. */\n dismissLabel?: string;\n\n /**\n * Called when the user clicks on the dismiss button.\n *\n * Make sure that you add a listener to this event to update your application state.\n */\n onDismiss?: NonCancelableEventHandler;\n\n /**\n * Content to display in the tooltip when `variant=\"inline\"`. The tooltip appears when the token label is truncated due to insufficient space.\n *\n * Only applies to plain text labels.\n */\n tooltipContent?: string;\n\n /**\n * An object containing CSS properties to customize the token's visual appearance.\n * Refer to the [style](/components/token/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: TokenProps.Style;\n}\n\nexport namespace TokenProps {\n export type Variant = 'normal' | 'inline';\n\n export interface Style {\n root?: {\n background?: {\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n borderColor?: {\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n dismissButton?: {\n color?: {\n default?: string;\n disabled?: string;\n hover?: string;\n readOnly?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n }\n}\n"]}