@cloudscape-design/components 3.0.1190 → 3.0.1191

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 (48) hide show
  1. package/autosuggest/autosuggest-option.d.ts +1 -11
  2. package/autosuggest/autosuggest-option.d.ts.map +1 -1
  3. package/autosuggest/autosuggest-option.js +2 -71
  4. package/autosuggest/autosuggest-option.js.map +1 -1
  5. package/autosuggest/index.d.ts.map +1 -1
  6. package/autosuggest/index.js +2 -2
  7. package/autosuggest/index.js.map +1 -1
  8. package/autosuggest/interfaces.d.ts +1 -63
  9. package/autosuggest/interfaces.d.ts.map +1 -1
  10. package/autosuggest/interfaces.js.map +1 -1
  11. package/autosuggest/internal.d.ts.map +1 -1
  12. package/autosuggest/internal.js +2 -2
  13. package/autosuggest/internal.js.map +1 -1
  14. package/autosuggest/options-controller.js +0 -1
  15. package/autosuggest/options-controller.js.map +1 -1
  16. package/autosuggest/options-list.d.ts +1 -3
  17. package/autosuggest/options-list.d.ts.map +1 -1
  18. package/autosuggest/options-list.js +2 -2
  19. package/autosuggest/options-list.js.map +1 -1
  20. package/autosuggest/plain-list.d.ts +2 -4
  21. package/autosuggest/plain-list.d.ts.map +1 -1
  22. package/autosuggest/plain-list.js +2 -6
  23. package/autosuggest/plain-list.js.map +1 -1
  24. package/autosuggest/virtual-list.d.ts +1 -2
  25. package/autosuggest/virtual-list.d.ts.map +1 -1
  26. package/autosuggest/virtual-list.js +2 -6
  27. package/autosuggest/virtual-list.js.map +1 -1
  28. package/internal/base-component/styles.scoped.css +15 -15
  29. package/internal/environment.js +2 -2
  30. package/internal/environment.json +2 -2
  31. package/internal/generated/styles/tokens.d.ts +2 -0
  32. package/internal/generated/styles/tokens.js +4 -2
  33. package/internal/generated/theming/index.cjs +64 -2
  34. package/internal/generated/theming/index.js +64 -2
  35. package/internal/manifest.json +1 -1
  36. package/package.json +1 -1
  37. package/progress-bar/interfaces.d.ts +1 -1
  38. package/progress-bar/interfaces.js.map +1 -1
  39. package/progress-bar/internal.d.ts.map +1 -1
  40. package/progress-bar/internal.js +1 -1
  41. package/progress-bar/internal.js.map +1 -1
  42. package/progress-bar/styles.css.js +19 -18
  43. package/progress-bar/styles.scoped.css +42 -30
  44. package/progress-bar/styles.selectors.js +19 -18
  45. package/autosuggest/utils/parent-props.d.ts +0 -10
  46. package/autosuggest/utils/parent-props.d.ts.map +0 -1
  47. package/autosuggest/utils/parent-props.js +0 -28
  48. package/autosuggest/utils/parent-props.js.map +0 -1
@@ -1411,10 +1411,18 @@ export var preset = {
1411
1411
  "light": "{colorPrimary600}",
1412
1412
  "dark": "{colorPrimary400}"
1413
1413
  },
1414
+ "colorBackgroundProgressBarValueInFlash": {
1415
+ "light": "{colorWhite}",
1416
+ "dark": "{colorWhite}"
1417
+ },
1414
1418
  "colorBackgroundProgressBarDefault": {
1415
1419
  "light": "{colorNeutral250}",
1416
1420
  "dark": "{colorNeutral700}"
1417
1421
  },
1422
+ "colorBackgroundProgressBarInFlash": {
1423
+ "light": "{colorGreyOpaque25}",
1424
+ "dark": "{colorGreyOpaque25}"
1425
+ },
1418
1426
  "colorBackgroundSegmentActive": {
1419
1427
  "light": "{colorPrimary600}",
1420
1428
  "dark": "{colorPrimary400}"
@@ -3720,10 +3728,18 @@ export var preset = {
3720
3728
  "light": "{colorPrimary400}",
3721
3729
  "dark": "{colorPrimary400}"
3722
3730
  },
3731
+ "colorBackgroundProgressBarValueInFlash": {
3732
+ "light": "{colorWhite}",
3733
+ "dark": "{colorWhite}"
3734
+ },
3723
3735
  "colorBackgroundProgressBarDefault": {
3724
3736
  "light": "{colorNeutral700}",
3725
3737
  "dark": "{colorNeutral700}"
3726
3738
  },
3739
+ "colorBackgroundProgressBarInFlash": {
3740
+ "light": "{colorGreyOpaque25}",
3741
+ "dark": "{colorGreyOpaque25}"
3742
+ },
3727
3743
  "colorBackgroundSegmentActive": {
3728
3744
  "light": "{colorPrimary400}",
3729
3745
  "dark": "{colorPrimary400}"
@@ -5037,10 +5053,18 @@ export var preset = {
5037
5053
  "light": "{colorPrimary400}",
5038
5054
  "dark": "{colorPrimary400}"
5039
5055
  },
5056
+ "colorBackgroundProgressBarValueInFlash": {
5057
+ "light": "{colorWhite}",
5058
+ "dark": "{colorWhite}"
5059
+ },
5040
5060
  "colorBackgroundProgressBarDefault": {
5041
5061
  "light": "{colorNeutral700}",
5042
5062
  "dark": "{colorNeutral700}"
5043
5063
  },
5064
+ "colorBackgroundProgressBarInFlash": {
5065
+ "light": "{colorGreyOpaque25}",
5066
+ "dark": "{colorGreyOpaque25}"
5067
+ },
5044
5068
  "colorBackgroundSegmentActive": {
5045
5069
  "light": "{colorPrimary400}",
5046
5070
  "dark": "{colorPrimary400}"
@@ -6287,10 +6311,18 @@ export var preset = {
6287
6311
  "dark": "{colorNeutral800}"
6288
6312
  },
6289
6313
  "colorBackgroundProgressBarValueDefault": {
6314
+ "light": "{colorPrimary600}",
6315
+ "dark": "{colorPrimary400}"
6316
+ },
6317
+ "colorBackgroundProgressBarValueInFlash": {
6290
6318
  "light": "{colorWhite}",
6291
6319
  "dark": "{colorWhite}"
6292
6320
  },
6293
6321
  "colorBackgroundProgressBarDefault": {
6322
+ "light": "{colorNeutral250}",
6323
+ "dark": "{colorNeutral700}"
6324
+ },
6325
+ "colorBackgroundProgressBarInFlash": {
6294
6326
  "light": "{colorGreyOpaque25}",
6295
6327
  "dark": "{colorGreyOpaque25}"
6296
6328
  },
@@ -7425,10 +7457,18 @@ export var preset = {
7425
7457
  "dark": "{colorNeutral800}"
7426
7458
  },
7427
7459
  "colorBackgroundProgressBarValueDefault": {
7460
+ "light": "{colorPrimary600}",
7461
+ "dark": "{colorPrimary400}"
7462
+ },
7463
+ "colorBackgroundProgressBarValueInFlash": {
7428
7464
  "light": "{colorNeutral950}",
7429
7465
  "dark": "{colorNeutral950}"
7430
7466
  },
7431
7467
  "colorBackgroundProgressBarDefault": {
7468
+ "light": "{colorNeutral250}",
7469
+ "dark": "{colorNeutral700}"
7470
+ },
7471
+ "colorBackgroundProgressBarInFlash": {
7432
7472
  "light": "{colorGreyOpaque10}",
7433
7473
  "dark": "{colorGreyOpaque10}"
7434
7474
  },
@@ -8566,10 +8606,18 @@ export var preset = {
8566
8606
  "light": "{colorPrimary600}",
8567
8607
  "dark": "{colorPrimary400}"
8568
8608
  },
8609
+ "colorBackgroundProgressBarValueInFlash": {
8610
+ "light": "{colorWhite}",
8611
+ "dark": "{colorWhite}"
8612
+ },
8569
8613
  "colorBackgroundProgressBarDefault": {
8570
8614
  "light": "{colorNeutral250}",
8571
8615
  "dark": "{colorNeutral700}"
8572
8616
  },
8617
+ "colorBackgroundProgressBarInFlash": {
8618
+ "light": "{colorGreyOpaque25}",
8619
+ "dark": "{colorGreyOpaque25}"
8620
+ },
8573
8621
  "colorBackgroundSegmentActive": {
8574
8622
  "light": "{colorPrimary600}",
8575
8623
  "dark": "{colorPrimary400}"
@@ -9706,10 +9754,18 @@ export var preset = {
9706
9754
  "light": "{colorPrimary400}",
9707
9755
  "dark": "{colorPrimary400}"
9708
9756
  },
9757
+ "colorBackgroundProgressBarValueInFlash": {
9758
+ "light": "{colorWhite}",
9759
+ "dark": "{colorWhite}"
9760
+ },
9709
9761
  "colorBackgroundProgressBarDefault": {
9710
9762
  "light": "{colorNeutral700}",
9711
9763
  "dark": "{colorNeutral700}"
9712
9764
  },
9765
+ "colorBackgroundProgressBarInFlash": {
9766
+ "light": "{colorGreyOpaque25}",
9767
+ "dark": "{colorGreyOpaque25}"
9768
+ },
9713
9769
  "colorBackgroundSegmentActive": {
9714
9770
  "light": "{colorPrimary400}",
9715
9771
  "dark": "{colorPrimary400}"
@@ -10907,7 +10963,9 @@ export var preset = {
10907
10963
  "colorBackgroundNotificationStackBarHover": "color",
10908
10964
  "colorBackgroundPopover": "color",
10909
10965
  "colorBackgroundProgressBarValueDefault": "color",
10966
+ "colorBackgroundProgressBarValueInFlash": "color",
10910
10967
  "colorBackgroundProgressBarDefault": "color",
10968
+ "colorBackgroundProgressBarInFlash": "color",
10911
10969
  "colorBackgroundSegmentActive": "color",
10912
10970
  "colorBackgroundSegmentDefault": "color",
10913
10971
  "colorBackgroundSegmentDisabled": "color",
@@ -12541,7 +12599,9 @@ export var preset = {
12541
12599
  "colorBackgroundNotificationStackBarHover": "color-background-notification-stack-bar-hover",
12542
12600
  "colorBackgroundPopover": "color-background-popover",
12543
12601
  "colorBackgroundProgressBarValueDefault": "color-background-progress-bar-value-default",
12602
+ "colorBackgroundProgressBarValueInFlash": "color-background-progress-bar-value-in-flash",
12544
12603
  "colorBackgroundProgressBarDefault": "color-background-progress-bar-default",
12604
+ "colorBackgroundProgressBarInFlash": "color-background-progress-bar-in-flash",
12545
12605
  "colorBackgroundSegmentActive": "color-background-segment-active",
12546
12606
  "colorBackgroundSegmentDefault": "color-background-segment-default",
12547
12607
  "colorBackgroundSegmentDisabled": "color-background-segment-disabled",
@@ -13359,8 +13419,10 @@ export var preset = {
13359
13419
  "colorBackgroundNotificationStackBarActive": "--color-background-notification-stack-bar-active-a4h9r8",
13360
13420
  "colorBackgroundNotificationStackBarHover": "--color-background-notification-stack-bar-hover-jh82oo",
13361
13421
  "colorBackgroundPopover": "--color-background-popover-e20fy8",
13362
- "colorBackgroundProgressBarValueDefault": "--color-background-progress-bar-value-default-69ydqg",
13363
- "colorBackgroundProgressBarDefault": "--color-background-progress-bar-default-j8kyxd",
13422
+ "colorBackgroundProgressBarValueDefault": "--color-background-progress-bar-value-default-9zs42p",
13423
+ "colorBackgroundProgressBarValueInFlash": "--color-background-progress-bar-value-in-flash-q2h8w5",
13424
+ "colorBackgroundProgressBarDefault": "--color-background-progress-bar-default-4755ec",
13425
+ "colorBackgroundProgressBarInFlash": "--color-background-progress-bar-in-flash-f4k60b",
13364
13426
  "colorBackgroundSegmentActive": "--color-background-segment-active-1u2ldl",
13365
13427
  "colorBackgroundSegmentDefault": "--color-background-segment-default-b0r494",
13366
13428
  "colorBackgroundSegmentDisabled": "--color-background-segment-disabled-m2a5t7",
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "ea2b35b0ec1e6fd4dfb365542542a480bd75da01"
2
+ "commit": "cc088a74f3406352745b8270046b98cb0282d38f"
3
3
  }
package/package.json CHANGED
@@ -159,7 +159,7 @@
159
159
  "./internal/base-component/index.js",
160
160
  "./internal/base-component/styles.css.js"
161
161
  ],
162
- "version": "3.0.1190",
162
+ "version": "3.0.1191",
163
163
  "repository": {
164
164
  "type": "git",
165
165
  "url": "https://github.com/cloudscape-design/components.git"
@@ -16,7 +16,7 @@ export interface ProgressBarProps extends BaseComponentProps {
16
16
  /**
17
17
  * Enables the correct styling of the progress bar in different contexts. You can set it to one of the following:
18
18
  *
19
- * - `"flash"` - Use this variant when using the progress bar within a flash component.
19
+ * - `"flash"` - Use this variatn when using the progress bar within a flash component.
20
20
  * Note that the result button isn't displayed when using this variant.
21
21
  * Use the `buttonText` property and the `onButtonClick` event listener of the flashbar item instead of the result button provided by the progress bar.
22
22
  * - `"key-value"` - Use this variant when using the progress bar within the key-value pairs pattern.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/progress-bar/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface ProgressBarProps extends BaseComponentProps {\n /**\n * Indicates the current progress as a percentage. The value must be between 0 and 100. Decimals are rounded.\n */\n value?: number;\n\n /**\n * Specifies the status of the progress bar. You can set it to one of the following:\n *\n * - `\"in-progress\"` - Displays a progress bar.\n * - `\"success\"` or `\"error\"` - Displays a result state and replaces the progress element with a status indicator,\n * `resultText`, and a result button.\n */\n status?: ProgressBarProps.Status;\n\n /**\n * Enables the correct styling of the progress bar in different contexts. You can set it to one of the following:\n *\n * - `\"flash\"` - Use this variant when using the progress bar within a flash component.\n * Note that the result button isn't displayed when using this variant.\n * Use the `buttonText` property and the `onButtonClick` event listener of the flashbar item instead of the result button provided by the progress bar.\n * - `\"key-value\"` - Use this variant when using the progress bar within the key-value pairs pattern.\n * - `\"standalone\"` Use in all other cases. This is the default value.\n */\n variant?: ProgressBarProps.Variant;\n\n /**\n * Specifies the text for the button that's displayed when the `status` is set to `error` or `success`.\n * If `resultButtonText` is empty, the result button isn't displayed.\n *\n * Note: If you use the `flash` variant, the result button isn't displayed.\n * Add a button using the `action` property of the flashbar item instead.\n */\n resultButtonText?: string;\n\n /**\n * Adds an `aria-label` to the progress bar.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the progress bar.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the progress bar.\n */\n ariaDescribedby?: string;\n\n /**\n * Short description of the operation that appears at the top of the component.\n *\n * Make sure that you always provide a label for accessibility.\n */\n label?: React.ReactNode;\n\n /**\n * More detailed information about the operation that appears below the label.\n */\n description?: React.ReactNode;\n\n /**\n * Information that's displayed below the progress bar or status text.\n */\n additionalInfo?: React.ReactNode;\n\n /**\n * Content that's displayed when `status` is set to `error` or `success`.\n */\n resultText?: React.ReactNode;\n\n /**\n * Called when the user clicks the result state button.\n *\n * Note: If you are using the `flash` variant, the result button isn't displayed.\n * Use the `buttonText` property and the `onButtonClick` event listener of the flashbar item instead.\n */\n onResultButtonClick?: NonCancelableEventHandler;\n\n /**\n * @awsuiSystem core\n */\n style?: ProgressBarProps.Style;\n}\n\nexport namespace ProgressBarProps {\n export type Status = 'in-progress' | 'success' | 'error';\n export type Variant = 'standalone' | 'flash' | 'key-value';\n\n export interface Style {\n progressBar?: {\n backgroundColor?: string;\n borderRadius?: string;\n height?: string;\n };\n progressValue?: {\n backgroundColor?: string;\n };\n progressPercentage?: {\n color?: string;\n fontSize?: string;\n fontWeight?: string;\n };\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/progress-bar/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface ProgressBarProps extends BaseComponentProps {\n /**\n * Indicates the current progress as a percentage. The value must be between 0 and 100. Decimals are rounded.\n */\n value?: number;\n\n /**\n * Specifies the status of the progress bar. You can set it to one of the following:\n *\n * - `\"in-progress\"` - Displays a progress bar.\n * - `\"success\"` or `\"error\"` - Displays a result state and replaces the progress element with a status indicator,\n * `resultText`, and a result button.\n */\n status?: ProgressBarProps.Status;\n\n /**\n * Enables the correct styling of the progress bar in different contexts. You can set it to one of the following:\n *\n * - `\"flash\"` - Use this variatn when using the progress bar within a flash component.\n * Note that the result button isn't displayed when using this variant.\n * Use the `buttonText` property and the `onButtonClick` event listener of the flashbar item instead of the result button provided by the progress bar.\n * - `\"key-value\"` - Use this variant when using the progress bar within the key-value pairs pattern.\n * - `\"standalone\"` Use in all other cases. This is the default value.\n */\n variant?: ProgressBarProps.Variant;\n\n /**\n * Specifies the text for the button that's displayed when the `status` is set to `error` or `success`.\n * If `resultButtonText` is empty, the result button isn't displayed.\n *\n * Note: If you use the `flash` variant, the result button isn't displayed.\n * Add a button using the `action` property of the flashbar item instead.\n */\n resultButtonText?: string;\n\n /**\n * Adds an `aria-label` to the progress bar.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the progress bar.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the progress bar.\n */\n ariaDescribedby?: string;\n\n /**\n * Short description of the operation that appears at the top of the component.\n *\n * Make sure that you always provide a label for accessibility.\n */\n label?: React.ReactNode;\n\n /**\n * More detailed information about the operation that appears below the label.\n */\n description?: React.ReactNode;\n\n /**\n * Information that's displayed below the progress bar or status text.\n */\n additionalInfo?: React.ReactNode;\n\n /**\n * Content that's displayed when `status` is set to `error` or `success`.\n */\n resultText?: React.ReactNode;\n\n /**\n * Called when the user clicks the result state button.\n *\n * Note: If you are using the `flash` variant, the result button isn't displayed.\n * Use the `buttonText` property and the `onButtonClick` event listener of the flashbar item instead.\n */\n onResultButtonClick?: NonCancelableEventHandler;\n\n /**\n * @awsuiSystem core\n */\n style?: ProgressBarProps.Style;\n}\n\nexport namespace ProgressBarProps {\n export type Status = 'in-progress' | 'success' | 'error';\n export type Variant = 'standalone' | 'flash' | 'key-value';\n\n export interface Style {\n progressBar?: {\n backgroundColor?: string;\n borderRadius?: string;\n height?: string;\n };\n progressValue?: {\n backgroundColor?: string;\n };\n progressPercentage?: {\n color?: string;\n fontSize?: string;\n fontWeight?: string;\n };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/progress-bar/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAWhD,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC;CAChC;AAED,eAAO,MAAM,QAAQ,GAAI,yEAAyE,aAAa,gBAmC9G,CAAC;AAEF,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,GAAI,oCAAoC,cAAc,gBAM3E,CAAC;AAYF,UAAU,g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AAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,GAAI,8DAA8D,gBAAgB,gBAqBzG,CAAC"}
@@ -18,7 +18,7 @@ export const Progress = ({ value, isInFlash, ariaLabel, ariaLabelledby, ariaDesc
18
18
  const progressValueStyles = getProgressValueStyles(style);
19
19
  const progressPercentageStyles = getProgressPercentageStyles(style);
20
20
  return (React.createElement("div", { className: styles['progress-container'] },
21
- React.createElement("progress", { className: clsx(styles.progress, progressValue >= MAX_VALUE && styles.complete), max: MAX_VALUE, value: progressValue, "aria-label": ariaLabel, "aria-labelledby": !ariaLabel ? ariaLabelledby : undefined, "aria-describedby": ariaDescribedby, style: {
21
+ React.createElement("progress", { className: clsx(styles.progress, progressValue >= MAX_VALUE && styles.complete, isInFlash && styles['progress-in-flash']), max: MAX_VALUE, value: progressValue, "aria-label": ariaLabel, "aria-labelledby": !ariaLabel ? ariaLabelledby : undefined, "aria-describedby": ariaDescribedby, style: {
22
22
  ...(progressBarStyles || {}),
23
23
  ...(progressValueStyles || {}),
24
24
  } }),
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/progress-bar/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElG,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,SAAS,GAAG,GAAG,CAAC;AAEtB,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,UAAkB,EAAE,UAAkB,EAAE,EAAE;IACtE,OAAO,IAAI,CAA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,SAAS,EAAE,IAAI,CAAC,eAAe,IAAI,MAAM,CAAC,oBAAoB,CAAC,CAAC;YACpE,oBAAC,uBAAuB,IAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;gBACvE,8BAAM,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,IAAG,UAAU,CAAQ,CACnC,CACrB;QACN,eAAe,IAAI,oBAAC,YAAY,IAAC,OAAO,EAAE,OAAO,IAAG,gBAAgB,CAAgB,CACjF,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { BoxProps } from '../box/interfaces';\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport InternalStatusIndicator from '../status-indicator/internal';\nimport { ProgressBarProps } from './interfaces';\nimport { getProgressPercentageStyles, getProgressStyles, getProgressValueStyles } from './styles';\n\nimport styles from './styles.css.js';\n\nconst MAX_VALUE = 100;\n\nconst clamp = (value: number, lowerLimit: number, upperLimit: number) => {\n return Math.max(Math.min(value, upperLimit), lowerLimit);\n};\n\ninterface ProgressProps {\n value: number;\n isInFlash: boolean;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n style?: ProgressBarProps.Style;\n}\n\nexport const Progress = ({ value, isInFlash, ariaLabel, ariaLabelledby, ariaDescribedby, style }: ProgressProps) => {\n const roundedValue = Math.round(value);\n const progressValue = clamp(roundedValue, 0, MAX_VALUE);\n\n const progressBarStyles = getProgressStyles(style);\n const progressValueStyles = getProgressValueStyles(style);\n const progressPercentageStyles = getProgressPercentageStyles(style);\n\n return (\n <div className={styles['progress-container']}>\n <progress\n className={clsx(styles.progress, progressValue >= MAX_VALUE && styles.complete)}\n max={MAX_VALUE}\n value={progressValue}\n aria-label={ariaLabel}\n // Ensures aria-label takes precedence over aria-labelledby\n aria-labelledby={!ariaLabel ? ariaLabelledby : undefined}\n aria-describedby={ariaDescribedby}\n style={{\n ...(progressBarStyles || {}),\n ...(progressValueStyles || {}),\n }}\n />\n <span aria-hidden=\"true\" className={styles['percentage-container']}>\n <InternalBox\n className={styles.percentage}\n variant=\"small\"\n color={isInFlash ? 'inherit' : undefined}\n nativeAttributes={progressPercentageStyles ? { style: progressPercentageStyles } : undefined}\n >\n {`${progressValue}%`}\n </InternalBox>\n </span>\n </div>\n );\n};\n\ninterface SmallTextProps {\n color?: BoxProps.Color;\n id?: string;\n children: React.ReactNode;\n className?: string;\n}\n\nexport const SmallText = ({ color, children, className, id }: SmallTextProps) => {\n return (\n <InternalBox className={clsx(styles['word-wrap'], className)} variant=\"small\" display=\"block\" color={color} id={id}>\n {children}\n </InternalBox>\n );\n};\n\nconst ResultButton = ({ onClick, children }: ButtonProps) => {\n return (\n <div className={styles['result-button']}>\n <InternalButton formAction=\"none\" onClick={onClick}>\n {children}\n </InternalButton>\n </div>\n );\n};\n\ninterface ResultStateProps {\n isInFlash: boolean;\n resultText: React.ReactNode;\n resultButtonText?: string;\n status: ProgressBarProps.Status;\n onClick: () => void;\n}\n\nexport const ResultState = ({ isInFlash, resultText, resultButtonText, status, onClick }: ResultStateProps) => {\n const hasResultButton = !!resultButtonText;\n\n if (isInFlash) {\n return (\n <div className={styles[`result-container-${status}`]}>\n <span className={styles['result-text']}>{resultText}</span>\n </div>\n );\n }\n\n return (\n <div className={styles[`result-container-${status}`]}>\n <span className={clsx(hasResultButton && styles['with-result-button'])}>\n <InternalStatusIndicator type={status === 'success' ? 'success' : 'error'}>\n <span className={styles['result-text']}>{resultText}</span>\n </InternalStatusIndicator>\n </span>\n {hasResultButton && <ResultButton onClick={onClick}>{resultButtonText}</ResultButton>}\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/progress-bar/internal.tsx"],"names":[],"mappings":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,EAAE,OAAO,IAC/C,QAAQ,CACM,CACb,CACP,CAAC;AACJ,CAAC,CAAC;AAUF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAoB,EAAE,EAAE;IAC5G,MAAM,eAAe,GAAG,CAAC,CAAC,gBAAgB,CAAC;IAE3C,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,MAAM,EAAE,CAAC;YAClD,8BAAM,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,IAAG,UAAU,CAAQ,CACvD,CACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,MAAM,EAAE,CAAC;QAClD,8BAAM,SAAS,EAAE,IAAI,CAAC,eAAe,IAAI,MAAM,CAAC,oBAAoB,CAAC,CAAC;YACpE,oBAAC,uBAAuB,IAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;gBACvE,8BAAM,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,IAAG,UAAU,CAAQ,CACnC,CACrB;QACN,eAAe,IAAI,oBAAC,YAAY,IAAC,OAAO,EAAE,OAAO,IAAG,gBAAgB,CAAgB,CACjF,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { BoxProps } from '../box/interfaces';\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport InternalStatusIndicator from '../status-indicator/internal';\nimport { ProgressBarProps } from './interfaces';\nimport { getProgressPercentageStyles, getProgressStyles, getProgressValueStyles } from './styles';\n\nimport styles from './styles.css.js';\n\nconst MAX_VALUE = 100;\n\nconst clamp = (value: number, lowerLimit: number, upperLimit: number) => {\n return Math.max(Math.min(value, upperLimit), lowerLimit);\n};\n\ninterface ProgressProps {\n value: number;\n isInFlash: boolean;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n style?: ProgressBarProps.Style;\n}\n\nexport const Progress = ({ value, isInFlash, ariaLabel, ariaLabelledby, ariaDescribedby, style }: ProgressProps) => {\n const roundedValue = Math.round(value);\n const progressValue = clamp(roundedValue, 0, MAX_VALUE);\n\n const progressBarStyles = getProgressStyles(style);\n const progressValueStyles = getProgressValueStyles(style);\n const progressPercentageStyles = getProgressPercentageStyles(style);\n\n return (\n <div className={styles['progress-container']}>\n <progress\n className={clsx(\n styles.progress,\n progressValue >= MAX_VALUE && styles.complete,\n isInFlash && styles['progress-in-flash']\n )}\n max={MAX_VALUE}\n value={progressValue}\n aria-label={ariaLabel}\n // Ensures aria-label takes precedence over aria-labelledby\n aria-labelledby={!ariaLabel ? ariaLabelledby : undefined}\n aria-describedby={ariaDescribedby}\n style={{\n ...(progressBarStyles || {}),\n ...(progressValueStyles || {}),\n }}\n />\n <span aria-hidden=\"true\" className={styles['percentage-container']}>\n <InternalBox\n className={styles.percentage}\n variant=\"small\"\n color={isInFlash ? 'inherit' : undefined}\n nativeAttributes={progressPercentageStyles ? { style: progressPercentageStyles } : undefined}\n >\n {`${progressValue}%`}\n </InternalBox>\n </span>\n </div>\n );\n};\n\ninterface SmallTextProps {\n color?: BoxProps.Color;\n id?: string;\n children: React.ReactNode;\n className?: string;\n}\n\nexport const SmallText = ({ color, children, className, id }: SmallTextProps) => {\n return (\n <InternalBox className={clsx(styles['word-wrap'], className)} variant=\"small\" display=\"block\" color={color} id={id}>\n {children}\n </InternalBox>\n );\n};\n\nconst ResultButton = ({ onClick, children }: ButtonProps) => {\n return (\n <div className={styles['result-button']}>\n <InternalButton formAction=\"none\" onClick={onClick}>\n {children}\n </InternalButton>\n </div>\n );\n};\n\ninterface ResultStateProps {\n isInFlash: boolean;\n resultText: React.ReactNode;\n resultButtonText?: string;\n status: ProgressBarProps.Status;\n onClick: () => void;\n}\n\nexport const ResultState = ({ isInFlash, resultText, resultButtonText, status, onClick }: ResultStateProps) => {\n const hasResultButton = !!resultButtonText;\n\n if (isInFlash) {\n return (\n <div className={styles[`result-container-${status}`]}>\n <span className={styles['result-text']}>{resultText}</span>\n </div>\n );\n }\n\n return (\n <div className={styles[`result-container-${status}`]}>\n <span className={clsx(hasResultButton && styles['with-result-button'])}>\n <InternalStatusIndicator type={status === 'success' ? 'success' : 'error'}>\n <span className={styles['result-text']}>{resultText}</span>\n </InternalStatusIndicator>\n </span>\n {hasResultButton && <ResultButton onClick={onClick}>{resultButtonText}</ResultButton>}\n </div>\n );\n};\n"]}
@@ -1,23 +1,24 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "progress": "awsui_progress_11huc_1oe95_189",
5
- "result-state": "awsui_result-state_11huc_1oe95_203",
6
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_1oe95_1",
7
- "root": "awsui_root_11huc_1oe95_225",
8
- "with-result-button": "awsui_with-result-button_11huc_1oe95_257",
9
- "result-text": "awsui_result-text_11huc_1oe95_261",
10
- "result-container-error": "awsui_result-container-error_11huc_1oe95_265",
11
- "result-container-success": "awsui_result-container-success_11huc_1oe95_265",
12
- "result-button": "awsui_result-button_11huc_1oe95_269",
13
- "word-wrap": "awsui_word-wrap_11huc_1oe95_275",
14
- "label-flash": "awsui_label-flash_11huc_1oe95_280",
15
- "label-key-value": "awsui_label-key-value_11huc_1oe95_284",
16
- "flash": "awsui_flash_11huc_1oe95_292",
17
- "progress-container": "awsui_progress-container_11huc_1oe95_296",
18
- "percentage-container": "awsui_percentage-container_11huc_1oe95_303",
19
- "percentage": "awsui_percentage_11huc_1oe95_303",
20
- "complete": "awsui_complete_11huc_1oe95_349",
21
- "additional-info": "awsui_additional-info_11huc_1oe95_363"
4
+ "progress": "awsui_progress_11huc_15f24_189",
5
+ "result-state": "awsui_result-state_11huc_15f24_203",
6
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_15f24_1",
7
+ "root": "awsui_root_11huc_15f24_225",
8
+ "with-result-button": "awsui_with-result-button_11huc_15f24_257",
9
+ "result-text": "awsui_result-text_11huc_15f24_261",
10
+ "result-container-error": "awsui_result-container-error_11huc_15f24_265",
11
+ "result-container-success": "awsui_result-container-success_11huc_15f24_265",
12
+ "result-button": "awsui_result-button_11huc_15f24_269",
13
+ "word-wrap": "awsui_word-wrap_11huc_15f24_275",
14
+ "label-flash": "awsui_label-flash_11huc_15f24_280",
15
+ "label-key-value": "awsui_label-key-value_11huc_15f24_284",
16
+ "flash": "awsui_flash_11huc_15f24_292",
17
+ "progress-container": "awsui_progress-container_11huc_15f24_296",
18
+ "percentage-container": "awsui_percentage-container_11huc_15f24_303",
19
+ "percentage": "awsui_percentage_11huc_15f24_303",
20
+ "complete": "awsui_complete_11huc_15f24_349",
21
+ "progress-in-flash": "awsui_progress-in-flash_11huc_15f24_362",
22
+ "additional-info": "awsui_additional-info_11huc_15f24_375"
22
23
  };
23
24
 
@@ -186,27 +186,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
186
186
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
187
187
  SPDX-License-Identifier: Apache-2.0
188
188
  */
189
- .awsui_progress_11huc_1oe95_189:not(#\9)::-webkit-progress-value {
189
+ .awsui_progress_11huc_15f24_189:not(#\9)::-webkit-progress-value {
190
190
  -webkit-transition: width var(--motion-duration-moderate-c9utmg, 135ms) linear;
191
191
  transition: width var(--motion-duration-moderate-c9utmg, 135ms) linear;
192
192
  }
193
193
  @media (prefers-reduced-motion: reduce) {
194
- .awsui_progress_11huc_1oe95_189:not(#\9)::-webkit-progress-value {
194
+ .awsui_progress_11huc_15f24_189:not(#\9)::-webkit-progress-value {
195
195
  animation: none;
196
196
  -webkit-transition: none;
197
197
  transition: none;
198
198
  }
199
199
  }
200
- .awsui-motion-disabled .awsui_progress_11huc_1oe95_189:not(#\9)::-webkit-progress-value, .awsui-mode-entering .awsui_progress_11huc_1oe95_189:not(#\9)::-webkit-progress-value {
200
+ .awsui-motion-disabled .awsui_progress_11huc_15f24_189:not(#\9)::-webkit-progress-value, .awsui-mode-entering .awsui_progress_11huc_15f24_189:not(#\9)::-webkit-progress-value {
201
201
  animation: none;
202
202
  -webkit-transition: none;
203
203
  transition: none;
204
204
  }
205
205
 
206
- .awsui_result-state_11huc_1oe95_203:not(#\9) {
207
- animation: awsui_awsui-motion-fade-in_11huc_1oe95_1 var(--motion-duration-transition-show-paced-t8d1os, 180ms) var(--motion-easing-transition-show-paced-x2k7uh, ease-out);
206
+ .awsui_result-state_11huc_15f24_203:not(#\9) {
207
+ animation: awsui_awsui-motion-fade-in_11huc_15f24_1 var(--motion-duration-transition-show-paced-t8d1os, 180ms) var(--motion-easing-transition-show-paced-x2k7uh, ease-out);
208
208
  }
209
- @keyframes awsui_awsui-motion-fade-in_11huc_1oe95_1 {
209
+ @keyframes awsui_awsui-motion-fade-in_11huc_15f24_1 {
210
210
  from {
211
211
  opacity: 0.2;
212
212
  }
@@ -215,17 +215,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
215
215
  }
216
216
  }
217
217
  @media (prefers-reduced-motion: reduce) {
218
- .awsui_result-state_11huc_1oe95_203:not(#\9) {
218
+ .awsui_result-state_11huc_15f24_203:not(#\9) {
219
219
  animation: none;
220
220
  transition: none;
221
221
  }
222
222
  }
223
- .awsui-motion-disabled .awsui_result-state_11huc_1oe95_203:not(#\9), .awsui-mode-entering .awsui_result-state_11huc_1oe95_203:not(#\9) {
223
+ .awsui-motion-disabled .awsui_result-state_11huc_15f24_203:not(#\9), .awsui-mode-entering .awsui_result-state_11huc_15f24_203:not(#\9) {
224
224
  animation: none;
225
225
  transition: none;
226
226
  }
227
227
 
228
- .awsui_root_11huc_1oe95_225:not(#\9) {
228
+ .awsui_root_11huc_15f24_225:not(#\9) {
229
229
  border-collapse: separate;
230
230
  border-spacing: 0;
231
231
  box-sizing: border-box;
@@ -257,34 +257,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
257
257
  -moz-osx-font-smoothing: auto;
258
258
  }
259
259
 
260
- .awsui_with-result-button_11huc_1oe95_257:not(#\9) {
260
+ .awsui_with-result-button_11huc_15f24_257:not(#\9) {
261
261
  padding-inline-end: var(--space-m-dsumyt, 16px);
262
262
  }
263
263
 
264
- .awsui_result-text_11huc_1oe95_261:not(#\9) {
264
+ .awsui_result-text_11huc_15f24_261:not(#\9) {
265
265
  /* used in test-utils */
266
266
  }
267
267
 
268
- .awsui_result-container-error_11huc_1oe95_265:not(#\9), .awsui_result-container-success_11huc_1oe95_265:not(#\9) {
268
+ .awsui_result-container-error_11huc_15f24_265:not(#\9), .awsui_result-container-success_11huc_15f24_265:not(#\9) {
269
269
  /* used in test-utils */
270
270
  }
271
271
 
272
- .awsui_result-button_11huc_1oe95_269:not(#\9) {
272
+ .awsui_result-button_11huc_15f24_269:not(#\9) {
273
273
  display: inline-block;
274
274
  margin-block: var(--space-scaled-xxs-pfm1nx, 4px);
275
275
  margin-inline: 0;
276
276
  }
277
277
 
278
- .awsui_word-wrap_11huc_1oe95_275:not(#\9) {
278
+ .awsui_word-wrap_11huc_15f24_275:not(#\9) {
279
279
  min-inline-size: 0;
280
280
  word-break: break-word;
281
281
  }
282
282
 
283
- .awsui_label-flash_11huc_1oe95_280:not(#\9) {
283
+ .awsui_label-flash_11huc_15f24_280:not(#\9) {
284
284
  color: inherit;
285
285
  font-weight: 700;
286
286
  }
287
- .awsui_label-key-value_11huc_1oe95_284:not(#\9) {
287
+ .awsui_label-key-value_11huc_15f24_284:not(#\9) {
288
288
  font-size: var(--font-size-body-m-a7nh2n, 14px);
289
289
  line-height: var(--line-height-body-m-2mh3ke, 20px);
290
290
  font-weight: var(--font-display-label-weight-zavpeo, 700);
@@ -292,18 +292,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
292
292
  margin-block-end: var(--space-scaled-xxxs-oo06c7, 2px);
293
293
  }
294
294
 
295
- .awsui_flash_11huc_1oe95_292:not(#\9) {
295
+ .awsui_flash_11huc_15f24_292:not(#\9) {
296
296
  color: inherit;
297
297
  }
298
298
 
299
- .awsui_progress-container_11huc_1oe95_296:not(#\9) {
299
+ .awsui_progress-container_11huc_15f24_296:not(#\9) {
300
300
  display: flex;
301
301
  align-items: center;
302
302
  max-inline-size: 800px;
303
303
  block-size: var(--line-height-body-m-2mh3ke, 20px);
304
304
  }
305
305
 
306
- .awsui_percentage-container_11huc_1oe95_303:not(#\9) {
306
+ .awsui_percentage-container_11huc_15f24_303:not(#\9) {
307
307
  inline-size: 33px;
308
308
  flex-shrink: 0;
309
309
  white-space: nowrap;
@@ -313,11 +313,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
313
313
  letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
314
314
  }
315
315
 
316
- .awsui_percentage_11huc_1oe95_303:not(#\9) {
316
+ .awsui_percentage_11huc_15f24_303:not(#\9) {
317
317
  /* used in test-utils */
318
318
  }
319
319
 
320
- .awsui_progress_11huc_1oe95_189:not(#\9) {
320
+ .awsui_progress_11huc_15f24_189:not(#\9) {
321
321
  inline-size: 100%;
322
322
  margin-inline-end: var(--space-s-tvghoh, 12px);
323
323
  min-inline-size: 0;
@@ -329,9 +329,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
329
329
  border-start-end-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
330
330
  border-end-start-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
331
331
  border-end-end-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
332
- background-color: var(--awsui-progress-bar-background-color-4hh3rt, var(--color-background-progress-bar-default-j8kyxd, #ebebf0));
332
+ background-color: var(--awsui-progress-bar-background-color-4hh3rt, var(--color-background-progress-bar-default-4755ec, #ebebf0));
333
333
  }
334
- .awsui_progress_11huc_1oe95_189:not(#\9)::-webkit-progress-bar {
334
+ .awsui_progress_11huc_15f24_189:not(#\9)::-webkit-progress-bar {
335
335
  block-size: var(--awsui-progress-bar-height-4hh3rt, 4px);
336
336
  border-block: 0;
337
337
  border-inline: none;
@@ -340,29 +340,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
340
340
  border-start-end-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
341
341
  border-end-start-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
342
342
  border-end-end-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
343
- background-color: var(--awsui-progress-bar-background-color-4hh3rt, var(--color-background-progress-bar-default-j8kyxd, #ebebf0));
343
+ background-color: var(--awsui-progress-bar-background-color-4hh3rt, var(--color-background-progress-bar-default-4755ec, #ebebf0));
344
344
  }
345
- .awsui_progress_11huc_1oe95_189:not(#\9)::-webkit-progress-value {
345
+ .awsui_progress_11huc_15f24_189:not(#\9)::-webkit-progress-value {
346
346
  border-start-start-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
347
347
  border-start-end-radius: 0;
348
348
  border-end-start-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
349
349
  border-end-end-radius: 0;
350
- background-color: var(--awsui-progress-value-background-color-4hh3rt, var(--color-background-progress-bar-value-default-69ydqg, #006ce0));
350
+ background-color: var(--awsui-progress-value-background-color-4hh3rt, var(--color-background-progress-bar-value-default-9zs42p, #006ce0));
351
351
  }
352
- .awsui_progress_11huc_1oe95_189.awsui_complete_11huc_1oe95_349:not(#\9)::-webkit-progress-value {
352
+ .awsui_progress_11huc_15f24_189.awsui_complete_11huc_15f24_349:not(#\9)::-webkit-progress-value {
353
353
  border-start-start-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
354
354
  border-start-end-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
355
355
  border-end-start-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
356
356
  border-end-end-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
357
357
  }
358
- .awsui_progress_11huc_1oe95_189:not(#\9)::-moz-progress-bar {
358
+ .awsui_progress_11huc_15f24_189:not(#\9)::-moz-progress-bar {
359
359
  border-start-start-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
360
360
  border-start-end-radius: 0;
361
361
  border-end-start-radius: var(--awsui-progress-bar-border-radius-4hh3rt, 10px);
362
362
  border-end-end-radius: 0;
363
- background-color: var(--awsui-progress-value-background-color-4hh3rt, var(--color-background-progress-bar-value-default-69ydqg, #006ce0));
363
+ background-color: var(--awsui-progress-value-background-color-4hh3rt, var(--color-background-progress-bar-value-default-9zs42p, #006ce0));
364
+ }
365
+ .awsui_progress_11huc_15f24_189.awsui_progress-in-flash_11huc_15f24_362:not(#\9) {
366
+ background-color: var(--awsui-progress-bar-background-color-4hh3rt, var(--color-background-progress-bar-in-flash-f4k60b, rgba(255, 255, 255, 0.25)));
367
+ }
368
+ .awsui_progress_11huc_15f24_189.awsui_progress-in-flash_11huc_15f24_362:not(#\9)::-moz-progress-bar {
369
+ background-color: var(--awsui-progress-value-background-color-4hh3rt, var(--color-background-progress-bar-value-in-flash-q2h8w5, #ffffff));
370
+ }
371
+ .awsui_progress_11huc_15f24_189.awsui_progress-in-flash_11huc_15f24_362:not(#\9)::-webkit-progress-bar {
372
+ background-color: var(--awsui-progress-bar-background-color-4hh3rt, var(--color-background-progress-bar-in-flash-f4k60b, rgba(255, 255, 255, 0.25)));
373
+ }
374
+ .awsui_progress_11huc_15f24_189.awsui_progress-in-flash_11huc_15f24_362:not(#\9)::-webkit-progress-value {
375
+ background-color: var(--awsui-progress-value-background-color-4hh3rt, var(--color-background-progress-bar-value-in-flash-q2h8w5, #ffffff));
364
376
  }
365
377
 
366
- .awsui_additional-info_11huc_1oe95_363:not(#\9) {
378
+ .awsui_additional-info_11huc_15f24_375:not(#\9) {
367
379
  /* used in test-utils */
368
380
  }
@@ -2,23 +2,24 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "progress": "awsui_progress_11huc_1oe95_189",
6
- "result-state": "awsui_result-state_11huc_1oe95_203",
7
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_1oe95_1",
8
- "root": "awsui_root_11huc_1oe95_225",
9
- "with-result-button": "awsui_with-result-button_11huc_1oe95_257",
10
- "result-text": "awsui_result-text_11huc_1oe95_261",
11
- "result-container-error": "awsui_result-container-error_11huc_1oe95_265",
12
- "result-container-success": "awsui_result-container-success_11huc_1oe95_265",
13
- "result-button": "awsui_result-button_11huc_1oe95_269",
14
- "word-wrap": "awsui_word-wrap_11huc_1oe95_275",
15
- "label-flash": "awsui_label-flash_11huc_1oe95_280",
16
- "label-key-value": "awsui_label-key-value_11huc_1oe95_284",
17
- "flash": "awsui_flash_11huc_1oe95_292",
18
- "progress-container": "awsui_progress-container_11huc_1oe95_296",
19
- "percentage-container": "awsui_percentage-container_11huc_1oe95_303",
20
- "percentage": "awsui_percentage_11huc_1oe95_303",
21
- "complete": "awsui_complete_11huc_1oe95_349",
22
- "additional-info": "awsui_additional-info_11huc_1oe95_363"
5
+ "progress": "awsui_progress_11huc_15f24_189",
6
+ "result-state": "awsui_result-state_11huc_15f24_203",
7
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_15f24_1",
8
+ "root": "awsui_root_11huc_15f24_225",
9
+ "with-result-button": "awsui_with-result-button_11huc_15f24_257",
10
+ "result-text": "awsui_result-text_11huc_15f24_261",
11
+ "result-container-error": "awsui_result-container-error_11huc_15f24_265",
12
+ "result-container-success": "awsui_result-container-success_11huc_15f24_265",
13
+ "result-button": "awsui_result-button_11huc_15f24_269",
14
+ "word-wrap": "awsui_word-wrap_11huc_15f24_275",
15
+ "label-flash": "awsui_label-flash_11huc_15f24_280",
16
+ "label-key-value": "awsui_label-key-value_11huc_15f24_284",
17
+ "flash": "awsui_flash_11huc_15f24_292",
18
+ "progress-container": "awsui_progress-container_11huc_15f24_296",
19
+ "percentage-container": "awsui_percentage-container_11huc_15f24_303",
20
+ "percentage": "awsui_percentage_11huc_15f24_303",
21
+ "complete": "awsui_complete_11huc_15f24_349",
22
+ "progress-in-flash": "awsui_progress-in-flash_11huc_15f24_362",
23
+ "additional-info": "awsui_additional-info_11huc_15f24_375"
23
24
  };
24
25
 
@@ -1,10 +0,0 @@
1
- import { AutosuggestRenderItemParentProps } from '../autosuggest-option';
2
- import { AutosuggestItem } from '../interfaces';
3
- /**
4
- * Generates parent props for autosuggest items based on the current item and last group index.
5
- * This logic is shared between plain-list and virtual-list implementations.
6
- */
7
- export declare const getParentProps: (item: AutosuggestItem, index: number, lastGroupIndex: number, virtualIndex?: number) => {
8
- parentProps: AutosuggestRenderItemParentProps | undefined;
9
- updatedLastGroupIndex: number;
10
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"parent-props.d.ts","sourceRoot":"","sources":["../../../../src/autosuggest/utils/parent-props.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,eAAe,EACrB,OAAO,MAAM,EACb,gBAAgB,MAAM,EACtB,eAAe,MAAM,KACpB;IAAE,WAAW,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAAC,qBAAqB,EAAE,MAAM,CAAA;CAqB5F,CAAC"}
@@ -1,28 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
- /**
4
- * Generates parent props for autosuggest items based on the current item and last group index.
5
- * This logic is shared between plain-list and virtual-list implementations.
6
- */
7
- export const getParentProps = (item, index, lastGroupIndex, virtualIndex) => {
8
- let updatedLastGroupIndex = lastGroupIndex;
9
- let parentProps = undefined;
10
- if (item.type === 'parent') {
11
- updatedLastGroupIndex = index;
12
- }
13
- else if (lastGroupIndex !== -1 && !!item.parent) {
14
- parentProps = {
15
- index: lastGroupIndex,
16
- virtualIndex: virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : lastGroupIndex,
17
- disabled: !!item.parent.disabled,
18
- option: {
19
- ...item.parent,
20
- disabled: !!item.parent.disabled,
21
- option: item.parent,
22
- type: 'parent',
23
- },
24
- };
25
- }
26
- return { parentProps, updatedLastGroupIndex };
27
- };
28
- //# sourceMappingURL=parent-props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parent-props.js","sourceRoot":"","sources":["../../../../src/autosuggest/utils/parent-props.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,IAAqB,EACrB,KAAa,EACb,cAAsB,EACtB,YAAqB,EACyE,EAAE;IAChG,IAAI,qBAAqB,GAAG,cAAc,CAAC;IAC3C,IAAI,WAAW,GAAiD,SAAS,CAAC;IAE1E,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,qBAAqB,GAAG,KAAK,CAAC;IAChC,CAAC;SAAM,IAAI,cAAc,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAClD,WAAW,GAAG;YACZ,KAAK,EAAE,cAAc;YACrB,YAAY,EAAE,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,cAAc;YAC5C,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ;YAChC,MAAM,EAAE;gBACN,GAAG,IAAI,CAAC,MAAM;gBACd,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ;gBAChC,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,IAAI,EAAE,QAAQ;aACf;SACF,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;AAChD,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { AutosuggestRenderItemParentProps } from '../autosuggest-option';\nimport { AutosuggestItem } from '../interfaces';\n\n/**\n * Generates parent props for autosuggest items based on the current item and last group index.\n * This logic is shared between plain-list and virtual-list implementations.\n */\nexport const getParentProps = (\n item: AutosuggestItem,\n index: number,\n lastGroupIndex: number,\n virtualIndex?: number\n): { parentProps: AutosuggestRenderItemParentProps | undefined; updatedLastGroupIndex: number } => {\n let updatedLastGroupIndex = lastGroupIndex;\n let parentProps: AutosuggestRenderItemParentProps | undefined = undefined;\n\n if (item.type === 'parent') {\n updatedLastGroupIndex = index;\n } else if (lastGroupIndex !== -1 && !!item.parent) {\n parentProps = {\n index: lastGroupIndex,\n virtualIndex: virtualIndex ?? lastGroupIndex,\n disabled: !!item.parent.disabled,\n option: {\n ...item.parent,\n disabled: !!item.parent.disabled,\n option: item.parent,\n type: 'parent',\n },\n };\n }\n\n return { parentProps, updatedLastGroupIndex };\n};\n"]}