@cloudscape-design/components-themeable 3.0.323 → 3.0.325

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 (97) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/pie-chart/styles.scss +1 -1
  3. package/lib/internal/scss/table/body-cell/styles.scss +1 -1
  4. package/lib/internal/template/app-layout/index.js +1 -1
  5. package/lib/internal/template/app-layout/index.js.map +1 -1
  6. package/lib/internal/template/app-layout/visual-refresh/context.js +1 -1
  7. package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
  8. package/lib/internal/template/area-chart/internal.js +1 -1
  9. package/lib/internal/template/area-chart/internal.js.map +1 -1
  10. package/lib/internal/template/autosuggest/internal.js +1 -1
  11. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  12. package/lib/internal/template/collection-preferences/index.js +1 -1
  13. package/lib/internal/template/collection-preferences/index.js.map +1 -1
  14. package/lib/internal/template/date-range-picker/index.js +1 -1
  15. package/lib/internal/template/date-range-picker/index.js.map +1 -1
  16. package/lib/internal/template/date-range-picker/time-offset.js +1 -1
  17. package/lib/internal/template/date-range-picker/time-offset.js.map +1 -1
  18. package/lib/internal/template/expandable-section/expandable-section-header.js +1 -1
  19. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  20. package/lib/internal/template/file-upload/internal.js +1 -1
  21. package/lib/internal/template/file-upload/internal.js.map +1 -1
  22. package/lib/internal/template/flashbar/common.js +1 -1
  23. package/lib/internal/template/flashbar/common.js.map +1 -1
  24. package/lib/internal/template/flashbar/flash.js +1 -1
  25. package/lib/internal/template/flashbar/flash.js.map +1 -1
  26. package/lib/internal/template/grid/internal.js +2 -2
  27. package/lib/internal/template/grid/internal.js.map +1 -1
  28. package/lib/internal/template/i18n/provider.js +1 -1
  29. package/lib/internal/template/i18n/provider.js.map +1 -1
  30. package/lib/internal/template/icon/internal.js +1 -1
  31. package/lib/internal/template/icon/internal.js.map +1 -1
  32. package/lib/internal/template/input/styles.css.js +12 -12
  33. package/lib/internal/template/input/styles.scoped.css +31 -31
  34. package/lib/internal/template/input/styles.selectors.js +12 -12
  35. package/lib/internal/template/internal/base-component/styles.scoped.css +27 -11
  36. package/lib/internal/template/internal/components/button-trigger/styles.css.js +9 -9
  37. package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +24 -24
  38. package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +9 -9
  39. package/lib/internal/template/internal/components/checkbox-icon/styles.css.js +7 -7
  40. package/lib/internal/template/internal/components/checkbox-icon/styles.scoped.css +9 -9
  41. package/lib/internal/template/internal/components/checkbox-icon/styles.selectors.js +7 -7
  42. package/lib/internal/template/internal/components/masked-input/use-mask.js +2 -2
  43. package/lib/internal/template/internal/components/masked-input/use-mask.js.map +1 -1
  44. package/lib/internal/template/internal/components/option/index.js +1 -1
  45. package/lib/internal/template/internal/components/option/index.js.map +1 -1
  46. package/lib/internal/template/internal/environment.js +1 -1
  47. package/lib/internal/template/internal/generated/theming/index.cjs +54 -0
  48. package/lib/internal/template/internal/generated/theming/index.js +54 -0
  49. package/lib/internal/template/internal/hooks/check-controlled/index.js +1 -1
  50. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  51. package/lib/internal/template/internal/hooks/use-controllable/index.js +1 -1
  52. package/lib/internal/template/internal/hooks/use-controllable/index.js.map +1 -1
  53. package/lib/internal/template/internal/hooks/use-visual-mode/index.js +1 -1
  54. package/lib/internal/template/internal/hooks/use-visual-mode/index.js.map +1 -1
  55. package/lib/internal/template/internal/utils/check-safe-url.js +1 -1
  56. package/lib/internal/template/internal/utils/check-safe-url.js.map +1 -1
  57. package/lib/internal/template/internal/utils/locale/normalize-locale.js +1 -1
  58. package/lib/internal/template/internal/utils/locale/normalize-locale.js.map +1 -1
  59. package/lib/internal/template/mixed-line-bar-chart/internal.js +1 -1
  60. package/lib/internal/template/mixed-line-bar-chart/internal.js.map +1 -1
  61. package/lib/internal/template/pie-chart/styles.css.js +27 -27
  62. package/lib/internal/template/pie-chart/styles.scoped.css +44 -44
  63. package/lib/internal/template/pie-chart/styles.selectors.js +27 -27
  64. package/lib/internal/template/popover/index.js +1 -1
  65. package/lib/internal/template/popover/index.js.map +1 -1
  66. package/lib/internal/template/progress-bar/index.js +1 -1
  67. package/lib/internal/template/progress-bar/index.js.map +1 -1
  68. package/lib/internal/template/radio-group/styles.css.js +9 -9
  69. package/lib/internal/template/radio-group/styles.scoped.css +16 -16
  70. package/lib/internal/template/radio-group/styles.selectors.js +9 -9
  71. package/lib/internal/template/select/utils/check-option-value-field.js +1 -1
  72. package/lib/internal/template/select/utils/check-option-value-field.js.map +1 -1
  73. package/lib/internal/template/side-navigation/util.js +1 -1
  74. package/lib/internal/template/side-navigation/util.js.map +1 -1
  75. package/lib/internal/template/split-panel/styles.css.js +59 -59
  76. package/lib/internal/template/split-panel/styles.scoped.css +82 -82
  77. package/lib/internal/template/split-panel/styles.selectors.js +59 -59
  78. package/lib/internal/template/table/body-cell/styles.css.js +28 -28
  79. package/lib/internal/template/table/body-cell/styles.scoped.css +70 -70
  80. package/lib/internal/template/table/body-cell/styles.selectors.js +28 -28
  81. package/lib/internal/template/table/use-column-widths.js +1 -1
  82. package/lib/internal/template/table/use-column-widths.js.map +1 -1
  83. package/lib/internal/template/table/utils.js +1 -1
  84. package/lib/internal/template/table/utils.js.map +1 -1
  85. package/lib/internal/template/textarea/styles.css.js +4 -4
  86. package/lib/internal/template/textarea/styles.scoped.css +13 -13
  87. package/lib/internal/template/textarea/styles.selectors.js +4 -4
  88. package/lib/internal/template/tiles/styles.css.js +28 -28
  89. package/lib/internal/template/tiles/styles.scoped.css +69 -69
  90. package/lib/internal/template/tiles/styles.selectors.js +28 -28
  91. package/lib/internal/template/wizard/internal.js +1 -1
  92. package/lib/internal/template/wizard/internal.js.map +1 -1
  93. package/package.json +1 -1
  94. package/lib/internal/template/internal/logging.d.ts +0 -2
  95. package/lib/internal/template/internal/logging.d.ts.map +0 -1
  96. package/lib/internal/template/internal/logging.js +0 -14
  97. package/lib/internal/template/internal/logging.js.map +0 -1
@@ -94,16 +94,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- .awsui_button-trigger_18eso_pl8h6_97 > .awsui_arrow_18eso_pl8h6_97:not(#\9) {
97
+ .awsui_button-trigger_18eso_kczo4_97 > .awsui_arrow_18eso_kczo4_97:not(#\9) {
98
98
  transition: transform var(--motion-duration-rotate-180-ur235g, 135ms) var(--motion-easing-rotate-180-eilno1, cubic-bezier(0.165, 0.84, 0.44, 1));
99
99
  }
100
100
  @media (prefers-reduced-motion: reduce) {
101
- .awsui_button-trigger_18eso_pl8h6_97 > .awsui_arrow_18eso_pl8h6_97:not(#\9) {
101
+ .awsui_button-trigger_18eso_kczo4_97 > .awsui_arrow_18eso_kczo4_97:not(#\9) {
102
102
  animation: none;
103
103
  transition: none;
104
104
  }
105
105
  }
106
- .awsui-motion-disabled .awsui_button-trigger_18eso_pl8h6_97 > .awsui_arrow_18eso_pl8h6_97:not(#\9), .awsui-mode-entering .awsui_button-trigger_18eso_pl8h6_97 > .awsui_arrow_18eso_pl8h6_97:not(#\9) {
106
+ .awsui-motion-disabled .awsui_button-trigger_18eso_kczo4_97 > .awsui_arrow_18eso_kczo4_97:not(#\9), .awsui-mode-entering .awsui_button-trigger_18eso_kczo4_97 > .awsui_arrow_18eso_kczo4_97:not(#\9) {
107
107
  animation: none;
108
108
  transition: none;
109
109
  }
@@ -112,7 +112,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
112
112
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
113
113
  SPDX-License-Identifier: Apache-2.0
114
114
  */
115
- .awsui_button-trigger_18eso_pl8h6_97:not(#\9) {
115
+ .awsui_button-trigger_18eso_kczo4_97:not(#\9) {
116
116
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
117
117
  border-collapse: separate;
118
118
  border-spacing: 0;
@@ -157,61 +157,61 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
157
157
  padding: var(--space-scaled-xxs-gmgwxk, 4px) var(--space-field-horizontal-xg7uom, 8px);
158
158
  background-color: var(--color-background-input-default-16mzof, #ffffff);
159
159
  border-radius: var(--border-radius-input-gfayl6, 2px);
160
- border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-input-default-481bu3, #879596);
160
+ border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-input-default-3zchtj, #687078);
161
161
  min-height: var(--size-vertical-input-yg5yti, 32px);
162
162
  }
163
- .awsui_button-trigger_18eso_pl8h6_97.awsui_has-caret_18eso_pl8h6_137:not(#\9) {
163
+ .awsui_button-trigger_18eso_kczo4_97.awsui_has-caret_18eso_kczo4_137:not(#\9) {
164
164
  padding-right: var(--space-field-icon-offset-v49om3, 32px);
165
165
  }
166
- .awsui_button-trigger_18eso_pl8h6_97 > .awsui_placeholder_18eso_pl8h6_140:not(#\9) {
166
+ .awsui_button-trigger_18eso_kczo4_97 > .awsui_placeholder_18eso_kczo4_140:not(#\9) {
167
167
  color: var(--color-text-input-placeholder-j38kg2, #687078);
168
168
  font-style: italic;
169
169
  }
170
- .awsui_button-trigger_18eso_pl8h6_97 > .awsui_arrow_18eso_pl8h6_97:not(#\9) {
170
+ .awsui_button-trigger_18eso_kczo4_97 > .awsui_arrow_18eso_kczo4_97:not(#\9) {
171
171
  position: absolute;
172
172
  right: var(--space-field-horizontal-xg7uom, 8px);
173
173
  top: calc(50% - var(--font-body-m-line-height-9vkzhc, 22px) / 2);
174
174
  color: var(--color-text-button-inline-icon-default-au9sza, #545b64);
175
175
  }
176
- .awsui_button-trigger_18eso_pl8h6_97:not(#\9):hover > .awsui_arrow_18eso_pl8h6_97 {
176
+ .awsui_button-trigger_18eso_kczo4_97:not(#\9):hover > .awsui_arrow_18eso_kczo4_97 {
177
177
  color: var(--color-text-button-inline-icon-hover-3vml1m, #16191f);
178
178
  }
179
- .awsui_button-trigger_18eso_pl8h6_97.awsui_pressed_18eso_pl8h6_153 > .awsui_arrow_18eso_pl8h6_97:not(#\9) {
179
+ .awsui_button-trigger_18eso_kczo4_97.awsui_pressed_18eso_kczo4_153 > .awsui_arrow_18eso_kczo4_97:not(#\9) {
180
180
  transform: rotate(-180deg);
181
181
  }
182
- .awsui_button-trigger_18eso_pl8h6_97.awsui_disabled_18eso_pl8h6_156:not(#\9) {
182
+ .awsui_button-trigger_18eso_kczo4_97.awsui_disabled_18eso_kczo4_156:not(#\9) {
183
183
  background-color: var(--color-background-input-disabled-izitmw, #eaeded);
184
184
  border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-input-disabled-4rrzz6, #eaeded);
185
185
  color: var(--color-text-input-disabled-w14lvq, #879596);
186
186
  cursor: auto;
187
187
  }
188
- .awsui_button-trigger_18eso_pl8h6_97.awsui_disabled_18eso_pl8h6_156 > .awsui_arrow_18eso_pl8h6_97:not(#\9) {
188
+ .awsui_button-trigger_18eso_kczo4_97.awsui_disabled_18eso_kczo4_156 > .awsui_arrow_18eso_kczo4_97:not(#\9) {
189
189
  color: var(--color-text-button-inline-icon-disabled-320glj, #aab7b8);
190
190
  }
191
- .awsui_button-trigger_18eso_pl8h6_97.awsui_disabled_18eso_pl8h6_156.awsui_in-filtering-token_18eso_pl8h6_165:not(#\9) {
191
+ .awsui_button-trigger_18eso_kczo4_97.awsui_disabled_18eso_kczo4_156.awsui_in-filtering-token_18eso_kczo4_165:not(#\9) {
192
192
  border-color: var(--color-border-control-disabled-p74xpm, #d5dbdb);
193
193
  }
194
- .awsui_button-trigger_18eso_pl8h6_97.awsui_disabled_18eso_pl8h6_156 > .awsui_placeholder_18eso_pl8h6_140:not(#\9) {
194
+ .awsui_button-trigger_18eso_kczo4_97.awsui_disabled_18eso_kczo4_156 > .awsui_placeholder_18eso_kczo4_140:not(#\9) {
195
195
  color: var(--color-text-input-placeholder-disabled-x5vuev, #687078);
196
196
  }
197
- .awsui_button-trigger_18eso_pl8h6_97.awsui_read-only_18eso_pl8h6_171:not(#\9) {
197
+ .awsui_button-trigger_18eso_kczo4_97.awsui_read-only_18eso_kczo4_171:not(#\9) {
198
198
  background-color: var(--color-background-input-default-16mzof, #ffffff);
199
199
  border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-input-disabled-4rrzz6, #eaeded);
200
200
  }
201
- .awsui_button-trigger_18eso_pl8h6_97:not(#\9):focus {
201
+ .awsui_button-trigger_18eso_kczo4_97:not(#\9):focus {
202
202
  outline: none;
203
203
  text-decoration: none;
204
204
  }
205
- body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_pl8h6_97:not(#\9):not(.awsui_in-filtering-token_18eso_pl8h6_165):focus {
205
+ body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_kczo4_97:not(#\9):not(.awsui_in-filtering-token_18eso_kczo4_165):focus {
206
206
  outline: 2px dotted transparent;
207
207
  border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-item-focused-4clyb1, #0073bb);
208
208
  border-radius: var(--border-radius-input-gfayl6, 2px);
209
209
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-qycpr2, 1px) var(--color-border-item-focused-4clyb1, #0073bb);
210
210
  }
211
- .awsui_button-trigger_18eso_pl8h6_97:not(#\9):not(.awsui_in-filtering-token_18eso_pl8h6_165):invalid {
211
+ .awsui_button-trigger_18eso_kczo4_97:not(#\9):not(.awsui_in-filtering-token_18eso_kczo4_165):invalid {
212
212
  box-shadow: none;
213
213
  }
214
- .awsui_button-trigger_18eso_pl8h6_97:not(#\9):not(.awsui_in-filtering-token_18eso_pl8h6_165).awsui_invalid_18eso_pl8h6_188, .awsui_button-trigger_18eso_pl8h6_97:not(#\9):not(.awsui_in-filtering-token_18eso_pl8h6_165).awsui_invalid_18eso_pl8h6_188:focus {
214
+ .awsui_button-trigger_18eso_kczo4_97:not(#\9):not(.awsui_in-filtering-token_18eso_kczo4_165).awsui_invalid_18eso_kczo4_188, .awsui_button-trigger_18eso_kczo4_97:not(#\9):not(.awsui_in-filtering-token_18eso_kczo4_165).awsui_invalid_18eso_kczo4_188:focus {
215
215
  color: var(--color-text-status-error-6ntion, #d13212);
216
216
  border-color: var(--color-text-status-error-6ntion, #d13212);
217
217
  padding-left: calc(
@@ -219,23 +219,23 @@ body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_pl8h6_97:not(#\9
219
219
  );
220
220
  border-left-width: var(--border-invalid-width-6tnuc9, 4px);
221
221
  }
222
- .awsui_button-trigger_18eso_pl8h6_97:not(#\9):not(.awsui_in-filtering-token_18eso_pl8h6_165).awsui_invalid_18eso_pl8h6_188:focus, .awsui_button-trigger_18eso_pl8h6_97:not(#\9):not(.awsui_in-filtering-token_18eso_pl8h6_165).awsui_invalid_18eso_pl8h6_188:focus:focus {
222
+ .awsui_button-trigger_18eso_kczo4_97:not(#\9):not(.awsui_in-filtering-token_18eso_kczo4_165).awsui_invalid_18eso_kczo4_188:focus, .awsui_button-trigger_18eso_kczo4_97:not(#\9):not(.awsui_in-filtering-token_18eso_kczo4_165).awsui_invalid_18eso_kczo4_188:focus:focus {
223
223
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-56jreh, 1px) var(--color-border-item-focused-4clyb1, #0073bb);
224
224
  }
225
- .awsui_button-trigger_18eso_pl8h6_97.awsui_in-filtering-token_18eso_pl8h6_165:not(#\9) {
225
+ .awsui_button-trigger_18eso_kczo4_97.awsui_in-filtering-token_18eso_kczo4_165:not(#\9) {
226
226
  border-color: var(--color-border-item-selected-044zoh, #0073bb);
227
227
  border-top-right-radius: 0;
228
228
  border-bottom-right-radius: 0;
229
229
  height: 100%;
230
230
  }
231
- body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_pl8h6_97.awsui_in-filtering-token_18eso_pl8h6_165:not(#\9):focus {
231
+ body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_kczo4_97.awsui_in-filtering-token_18eso_kczo4_165:not(#\9):focus {
232
232
  position: relative;
233
233
  }
234
- body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_pl8h6_97.awsui_in-filtering-token_18eso_pl8h6_165:not(#\9):focus {
234
+ body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_kczo4_97.awsui_in-filtering-token_18eso_kczo4_165:not(#\9):focus {
235
235
  outline: 2px dotted transparent;
236
236
  outline-offset: calc(var(--space-filtering-token-operation-select-focus-outline-gutter-8aybuc, 0px) - 1px);
237
237
  }
238
- body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_pl8h6_97.awsui_in-filtering-token_18eso_pl8h6_165:not(#\9):focus::before {
238
+ body[data-awsui-focus-visible=true] .awsui_button-trigger_18eso_kczo4_97.awsui_in-filtering-token_18eso_kczo4_165:not(#\9):focus::before {
239
239
  content: " ";
240
240
  display: block;
241
241
  position: absolute;
@@ -2,14 +2,14 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "button-trigger": "awsui_button-trigger_18eso_pl8h6_97",
6
- "arrow": "awsui_arrow_18eso_pl8h6_97",
7
- "has-caret": "awsui_has-caret_18eso_pl8h6_137",
8
- "placeholder": "awsui_placeholder_18eso_pl8h6_140",
9
- "pressed": "awsui_pressed_18eso_pl8h6_153",
10
- "disabled": "awsui_disabled_18eso_pl8h6_156",
11
- "in-filtering-token": "awsui_in-filtering-token_18eso_pl8h6_165",
12
- "read-only": "awsui_read-only_18eso_pl8h6_171",
13
- "invalid": "awsui_invalid_18eso_pl8h6_188"
5
+ "button-trigger": "awsui_button-trigger_18eso_kczo4_97",
6
+ "arrow": "awsui_arrow_18eso_kczo4_97",
7
+ "has-caret": "awsui_has-caret_18eso_kczo4_137",
8
+ "placeholder": "awsui_placeholder_18eso_kczo4_140",
9
+ "pressed": "awsui_pressed_18eso_kczo4_153",
10
+ "disabled": "awsui_disabled_18eso_kczo4_156",
11
+ "in-filtering-token": "awsui_in-filtering-token_18eso_kczo4_165",
12
+ "read-only": "awsui_read-only_18eso_kczo4_171",
13
+ "invalid": "awsui_invalid_18eso_kczo4_188"
14
14
  };
15
15
 
@@ -1,12 +1,12 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_1fn7j_21t4n_93",
5
- "styled-box": "awsui_styled-box_1fn7j_21t4n_100",
6
- "styled-box-checked": "awsui_styled-box-checked_1fn7j_21t4n_106",
7
- "styled-box-indeterminate": "awsui_styled-box-indeterminate_1fn7j_21t4n_106",
8
- "styled-box-disabled": "awsui_styled-box-disabled_1fn7j_21t4n_110",
9
- "styled-line": "awsui_styled-line_1fn7j_21t4n_124",
10
- "styled-line-disabled": "awsui_styled-line-disabled_1fn7j_21t4n_129"
4
+ "root": "awsui_root_1fn7j_dxyuh_93",
5
+ "styled-box": "awsui_styled-box_1fn7j_dxyuh_100",
6
+ "styled-box-checked": "awsui_styled-box-checked_1fn7j_dxyuh_106",
7
+ "styled-box-indeterminate": "awsui_styled-box-indeterminate_1fn7j_dxyuh_106",
8
+ "styled-box-disabled": "awsui_styled-box-disabled_1fn7j_dxyuh_110",
9
+ "styled-line": "awsui_styled-line_1fn7j_dxyuh_124",
10
+ "styled-line-disabled": "awsui_styled-line-disabled_1fn7j_dxyuh_129"
11
11
  };
12
12
 
@@ -90,42 +90,42 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_root_1fn7j_21t4n_93:not(#\9) {
93
+ .awsui_root_1fn7j_dxyuh_93:not(#\9) {
94
94
  position: absolute;
95
95
  width: 100%;
96
96
  height: 100%;
97
97
  top: 0;
98
98
  left: 0;
99
99
  }
100
- .awsui_root_1fn7j_21t4n_93 > .awsui_styled-box_1fn7j_21t4n_100:not(#\9) {
100
+ .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-box_1fn7j_dxyuh_100:not(#\9) {
101
101
  fill: var(--color-background-control-default-3975zi, #ffffff);
102
- stroke: var(--color-border-control-default-f54s88, #879596);
102
+ stroke: var(--color-border-control-default-zx2mvl, #687078);
103
103
  stroke-width: var(--border-field-width-gmdyxy, 1px);
104
104
  transition: fill var(--motion-duration-transition-quick-s6zxev, 90ms) var(--motion-easing-transition-quick-1rczl6, linear), stroke var(--motion-duration-transition-quick-s6zxev, 90ms) var(--motion-easing-transition-quick-1rczl6, linear);
105
105
  }
106
- .awsui_root_1fn7j_21t4n_93 > .awsui_styled-box-checked_1fn7j_21t4n_106:not(#\9), .awsui_root_1fn7j_21t4n_93 > .awsui_styled-box-indeterminate_1fn7j_21t4n_106:not(#\9) {
106
+ .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-box-checked_1fn7j_dxyuh_106:not(#\9), .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-box-indeterminate_1fn7j_dxyuh_106:not(#\9) {
107
107
  fill: var(--color-background-control-checked-uprbe0, #0073bb);
108
108
  stroke: var(--color-border-control-checked-miuk2h, #0073bb);
109
109
  }
110
- .awsui_root_1fn7j_21t4n_93 > .awsui_styled-box-disabled_1fn7j_21t4n_110:not(#\9) {
110
+ .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-box-disabled_1fn7j_dxyuh_110:not(#\9) {
111
111
  fill: var(--color-background-control-disabled-44nu28, #d5dbdb);
112
112
  stroke: var(--color-border-control-disabled-p74xpm, #d5dbdb);
113
113
  }
114
114
  @media (prefers-reduced-motion: reduce) {
115
- .awsui_root_1fn7j_21t4n_93 > .awsui_styled-box_1fn7j_21t4n_100:not(#\9) {
115
+ .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-box_1fn7j_dxyuh_100:not(#\9) {
116
116
  animation: none;
117
117
  transition: none;
118
118
  }
119
119
  }
120
- .awsui-motion-disabled .awsui_root_1fn7j_21t4n_93 > .awsui_styled-box_1fn7j_21t4n_100:not(#\9), .awsui-mode-entering .awsui_root_1fn7j_21t4n_93 > .awsui_styled-box_1fn7j_21t4n_100:not(#\9) {
120
+ .awsui-motion-disabled .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-box_1fn7j_dxyuh_100:not(#\9), .awsui-mode-entering .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-box_1fn7j_dxyuh_100:not(#\9) {
121
121
  animation: none;
122
122
  transition: none;
123
123
  }
124
- .awsui_root_1fn7j_21t4n_93 > .awsui_styled-line_1fn7j_21t4n_124:not(#\9) {
124
+ .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-line_1fn7j_dxyuh_124:not(#\9) {
125
125
  stroke: var(--color-foreground-control-default-nqkae0, #ffffff);
126
126
  stroke-width: 2;
127
127
  fill: none;
128
128
  }
129
- .awsui_root_1fn7j_21t4n_93 > .awsui_styled-line-disabled_1fn7j_21t4n_129:not(#\9) {
129
+ .awsui_root_1fn7j_dxyuh_93 > .awsui_styled-line-disabled_1fn7j_dxyuh_129:not(#\9) {
130
130
  stroke: var(--color-foreground-control-disabled-7tx8eg, #ffffff);
131
131
  }
@@ -2,12 +2,12 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_1fn7j_21t4n_93",
6
- "styled-box": "awsui_styled-box_1fn7j_21t4n_100",
7
- "styled-box-checked": "awsui_styled-box-checked_1fn7j_21t4n_106",
8
- "styled-box-indeterminate": "awsui_styled-box-indeterminate_1fn7j_21t4n_106",
9
- "styled-box-disabled": "awsui_styled-box-disabled_1fn7j_21t4n_110",
10
- "styled-line": "awsui_styled-line_1fn7j_21t4n_124",
11
- "styled-line-disabled": "awsui_styled-line-disabled_1fn7j_21t4n_129"
5
+ "root": "awsui_root_1fn7j_dxyuh_93",
6
+ "styled-box": "awsui_styled-box_1fn7j_dxyuh_100",
7
+ "styled-box-checked": "awsui_styled-box-checked_1fn7j_dxyuh_106",
8
+ "styled-box-indeterminate": "awsui_styled-box-indeterminate_1fn7j_dxyuh_106",
9
+ "styled-box-disabled": "awsui_styled-box-disabled_1fn7j_dxyuh_110",
10
+ "styled-line": "awsui_styled-line_1fn7j_dxyuh_124",
11
+ "styled-line-disabled": "awsui_styled-line-disabled_1fn7j_dxyuh_129"
12
12
  };
13
13
 
@@ -1,5 +1,5 @@
1
1
  import { KeyCode } from '../../keycode';
2
- import * as logger from '../../logging';
2
+ import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
3
3
  import { isCommand, isDigit } from './utils/keys';
4
4
  import { backspaceHandler, keyHandler, enterHandler } from './keyboard-handler';
5
5
  const onAutoComplete = (value, onChange, maskFormat) => {
@@ -15,7 +15,7 @@ const onAutoComplete = (value, onChange, maskFormat) => {
15
15
  const preventDefault = (event, result) => result && event.preventDefault();
16
16
  const useMask = ({ value = '', onBlur, onChange, onKeyDown, format, inputRef, autofix = false, disableAutocompleteOnBlur = false, setPosition, }) => {
17
17
  if (!format.isValid(value)) {
18
- logger.warnOnce('useMask', `Invalid string "${value}" provided`);
18
+ warnOnce('useMask', `Invalid string "${value}" provided`);
19
19
  }
20
20
  const onMaskChange = (updatedValue) => {
21
21
  const autofixedUpdatedValue = autofix ? format.correctMinMaxValues(updatedValue) : updatedValue;
@@ -1 +1 @@
1
- {"version":3,"file":"use-mask.js","sourceRoot":"lib/default/","sources":["internal/components/masked-input/use-mask.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,gBAAgB,EAAiB,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAsB/F,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,QAAkC,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S,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QACD,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC;QACpD,MAAM,EAAE,GAAG,EAAE;YACX,IAAI,CAAC,yBAAyB,EAAE;gBAC9B,cAAc,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;aAC/C;YAED,MAAM,IAAI,MAAM,EAAE,CAAC;QACrB,CAAC;QACD,OAAO,EAAE,CAAC,KAAqB,EAAE,EAAE;;YACjC,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,aAAa,IAAK,MAAc,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAEpF,MAAM,cAAc,GAAG,CAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,cAAc,KAAI,CAAC,CAAC;YAC7D,MAAM,YAAY,GAAG,CAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,YAAY,KAAI,CAAC,CAAC;YAEzD,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;YAC/F,YAAY,CAAC,aAAa,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { RefObject } from 'react';\nimport { InputProps } from '../../../input/interfaces';\nimport { NonCancelableEventHandler, CancelableEventHandler } from '../../events';\nimport { KeyCode } from '../../keycode';\n\nimport * as logger from '../../logging';\nimport { isCommand, isDigit } from './utils/keys';\n\nimport MaskFormat from './utils/mask-format';\nimport { backspaceHandler, HandlerResult, keyHandler, enterHandler } from './keyboard-handler';\n\ninterface UseMaskHook {\n value: string;\n onChange: NonCancelableEventHandler<InputProps.ChangeDetail>;\n onKeyDown: CancelableEventHandler<InputProps.KeyDetail>;\n onBlur: NonCancelableEventHandler<null>;\n onPaste: (event: ClipboardEvent) => void;\n}\n\ninterface UseMaskProps {\n value: string;\n onChange: (value: string) => void;\n onKeyDown?: (event: CustomEvent) => void;\n onBlur?: () => void;\n format: MaskFormat;\n autofix?: boolean;\n inputRef: RefObject<HTMLInputElement>;\n disableAutocompleteOnBlur?: boolean;\n setPosition: (position: number | null) => void;\n}\n\nconst onAutoComplete = (value: string, onChange: UseMaskProps['onChange'], maskFormat: MaskFormat) => {\n // Do not autocomplete if input is empty\n if (!value) {\n return;\n }\n\n const autoCompletedValue = maskFormat.autoComplete(value);\n if (autoCompletedValue !== value) {\n onChange(autoCompletedValue);\n }\n};\n\nconst preventDefault = (event: CustomEvent, result?: HandlerResult | null) => result && event.preventDefault();\n\nconst useMask = ({\n value = '',\n onBlur,\n onChange,\n onKeyDown,\n format,\n inputRef,\n autofix = false,\n disableAutocompleteOnBlur = false,\n setPosition,\n}: UseMaskProps): UseMaskHook => {\n if (!format.isValid(value)) {\n logger.warnOnce('useMask', `Invalid string \"${value}\" provided`);\n }\n\n const onMaskChange = (updatedValue: string) => {\n const autofixedUpdatedValue = autofix ? format.correctMinMaxValues(updatedValue) : updatedValue;\n if (autofixedUpdatedValue === value || !format.isValid(autofixedUpdatedValue)) {\n return;\n }\n\n onChange(autofixedUpdatedValue);\n };\n\n const initialValue = autofix ? format.correctMinMaxValues(value) : value;\n const maskedValue = format.getValidValue(initialValue);\n\n return {\n value: maskedValue,\n onKeyDown: (event: CustomEvent) => {\n const selectionStart = inputRef.current?.selectionStart || 0;\n const selectionEnd = inputRef.current?.selectionEnd || 0;\n\n let result: HandlerResult | undefined;\n const { keyCode, key, ctrlKey, metaKey } = event.detail;\n if (isDigit(key) || format.isSeparator(key)) {\n result = keyHandler(maskedValue, key, format, selectionStart, selectionEnd);\n preventDefault(event, result);\n } else if (keyCode === KeyCode.backspace) {\n result = backspaceHandler(maskedValue, format, selectionStart, selectionEnd);\n preventDefault(event, result);\n } else if (keyCode === KeyCode.enter) {\n result = enterHandler(maskedValue, format);\n } else if (!isCommand(keyCode, ctrlKey, metaKey)) {\n event.preventDefault();\n }\n\n if (result) {\n const { value, position } = result;\n\n onMaskChange(value);\n setPosition(position);\n }\n\n // Proxy original event\n onKeyDown && onKeyDown(event);\n },\n onChange: ({ detail }) => onMaskChange(detail.value),\n onBlur: () => {\n if (!disableAutocompleteOnBlur) {\n onAutoComplete(maskedValue, onChange, format);\n }\n\n onBlur && onBlur();\n },\n onPaste: (event: ClipboardEvent) => {\n const text = (event.clipboardData || (window as any).clipboardData).getData('text');\n\n const selectionStart = inputRef.current?.selectionStart || 0;\n const selectionEnd = inputRef.current?.selectionEnd || 0;\n\n const formattedText = format.formatPastedText(text, maskedValue, selectionStart, selectionEnd);\n onMaskChange(formattedText);\n },\n };\n};\n\nexport default useMask;\n"]}
1
+ {"version":3,"file":"use-mask.js","sourceRoot":"lib/default/","sources":["internal/components/masked-input/use-mask.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,gBAAgB,EAAiB,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAsB/F,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,QAAkC,EAAE,UAAsB,EAAE,EAAE;IACnG,wCAAwC;IACxC,IAAI,CAAC,KAAK,EAAE;QACV,OAAO;KACR;IAED,MAAM,kBAAkB,GAAG,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC1D,IAAI,kBAAkB,KAAK,KAAK,EAAE;QAChC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;KAC9B;AACH,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAkB,EAAE,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AC;QACD,OAAO,EAAE,CAAC,KAAqB,EAAE,EAAE;;YACjC,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,aAAa,IAAK,MAAc,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAEpF,MAAM,cAAc,GAAG,CAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,cAAc,KAAI,CAAC,CAAC;YAC7D,MAAM,YAAY,GAAG,CAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,YAAY,KAAI,CAAC,CAAC;YAEzD,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;YAC/F,YAAY,CAAC,aAAa,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { RefObject } from 'react';\nimport { InputProps } from '../../../input/interfaces';\nimport { NonCancelableEventHandler, CancelableEventHandler } from '../../events';\nimport { KeyCode } from '../../keycode';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { isCommand, isDigit } from './utils/keys';\n\nimport MaskFormat from './utils/mask-format';\nimport { backspaceHandler, HandlerResult, keyHandler, enterHandler } from './keyboard-handler';\n\ninterface UseMaskHook {\n value: string;\n onChange: NonCancelableEventHandler<InputProps.ChangeDetail>;\n onKeyDown: CancelableEventHandler<InputProps.KeyDetail>;\n onBlur: NonCancelableEventHandler<null>;\n onPaste: (event: ClipboardEvent) => void;\n}\n\ninterface UseMaskProps {\n value: string;\n onChange: (value: string) => void;\n onKeyDown?: (event: CustomEvent) => void;\n onBlur?: () => void;\n format: MaskFormat;\n autofix?: boolean;\n inputRef: RefObject<HTMLInputElement>;\n disableAutocompleteOnBlur?: boolean;\n setPosition: (position: number | null) => void;\n}\n\nconst onAutoComplete = (value: string, onChange: UseMaskProps['onChange'], maskFormat: MaskFormat) => {\n // Do not autocomplete if input is empty\n if (!value) {\n return;\n }\n\n const autoCompletedValue = maskFormat.autoComplete(value);\n if (autoCompletedValue !== value) {\n onChange(autoCompletedValue);\n }\n};\n\nconst preventDefault = (event: CustomEvent, result?: HandlerResult | null) => result && event.preventDefault();\n\nconst useMask = ({\n value = '',\n onBlur,\n onChange,\n onKeyDown,\n format,\n inputRef,\n autofix = false,\n disableAutocompleteOnBlur = false,\n setPosition,\n}: UseMaskProps): UseMaskHook => {\n if (!format.isValid(value)) {\n warnOnce('useMask', `Invalid string \"${value}\" provided`);\n }\n\n const onMaskChange = (updatedValue: string) => {\n const autofixedUpdatedValue = autofix ? format.correctMinMaxValues(updatedValue) : updatedValue;\n if (autofixedUpdatedValue === value || !format.isValid(autofixedUpdatedValue)) {\n return;\n }\n\n onChange(autofixedUpdatedValue);\n };\n\n const initialValue = autofix ? format.correctMinMaxValues(value) : value;\n const maskedValue = format.getValidValue(initialValue);\n\n return {\n value: maskedValue,\n onKeyDown: (event: CustomEvent) => {\n const selectionStart = inputRef.current?.selectionStart || 0;\n const selectionEnd = inputRef.current?.selectionEnd || 0;\n\n let result: HandlerResult | undefined;\n const { keyCode, key, ctrlKey, metaKey } = event.detail;\n if (isDigit(key) || format.isSeparator(key)) {\n result = keyHandler(maskedValue, key, format, selectionStart, selectionEnd);\n preventDefault(event, result);\n } else if (keyCode === KeyCode.backspace) {\n result = backspaceHandler(maskedValue, format, selectionStart, selectionEnd);\n preventDefault(event, result);\n } else if (keyCode === KeyCode.enter) {\n result = enterHandler(maskedValue, format);\n } else if (!isCommand(keyCode, ctrlKey, metaKey)) {\n event.preventDefault();\n }\n\n if (result) {\n const { value, position } = result;\n\n onMaskChange(value);\n setPosition(position);\n }\n\n // Proxy original event\n onKeyDown && onKeyDown(event);\n },\n onChange: ({ detail }) => onMaskChange(detail.value),\n onBlur: () => {\n if (!disableAutocompleteOnBlur) {\n onAutoComplete(maskedValue, onChange, format);\n }\n\n onBlur && onBlur();\n },\n onPaste: (event: ClipboardEvent) => {\n const text = (event.clipboardData || (window as any).clipboardData).getData('text');\n\n const selectionStart = inputRef.current?.selectionStart || 0;\n const selectionEnd = inputRef.current?.selectionEnd || 0;\n\n const formattedText = format.formatPastedText(text, maskedValue, selectionStart, selectionEnd);\n onMaskChange(formattedText);\n },\n };\n};\n\nexport default useMask;\n"]}
@@ -6,7 +6,7 @@ import clsx from 'clsx';
6
6
  import styles from './styles.css.js';
7
7
  import { Label, LabelTag, Description, Tags, FilteringTags, OptionIcon } from './option-parts';
8
8
  import { getBaseProps } from '../../base-component';
9
- import { warnOnce } from '../../logging';
9
+ import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
10
10
  import { isDevelopment } from '../../is-development';
11
11
  function validateStringValue(value, propertyName) {
12
12
  if (typeof value !== 'undefined' && typeof value !== 'string') {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/option/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD,SAAS,mBAAmB,CAAC,KAAyB,EAAE,YAAoB;IAC1E,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7D,QAAQ,CACN,gBAAgB,EAChB,2DAA2D,YAAY,SAAS,OAAO,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AE,cAAc,GAC9B;YACF,oBAAC,IAAI,IACH,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B;YACF,oBAAC,aAAa,IACZ,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B,CACG,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,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';\nimport styles from './styles.css.js';\nimport { OptionProps } from './interfaces';\nimport { Label, LabelTag, Description, Tags, FilteringTags, OptionIcon } from './option-parts';\nimport { getBaseProps } from '../../base-component';\nimport { warnOnce } from '../../logging';\nimport { isDevelopment } from '../../is-development';\n\nexport { OptionProps };\n\nfunction validateStringValue(value: string | undefined, propertyName: string) {\n if (typeof value !== 'undefined' && typeof value !== 'string') {\n warnOnce(\n 'DropdownOption',\n `This component only supports string values, but \"option.${propertyName}\" has ${typeof value} type. The component may work incorrectly.`\n );\n }\n}\n\nconst Option = ({\n option,\n highlightText,\n triggerVariant = false,\n isGroupOption = false,\n isGenericGroup = true,\n highlightedOption = false,\n selectedOption = false,\n ...restProps\n}: OptionProps) => {\n if (!option) {\n return null;\n }\n const { disabled } = option;\n const baseProps = getBaseProps(restProps);\n\n if (isDevelopment) {\n validateStringValue(option.label, 'label');\n validateStringValue(option.description, 'description');\n validateStringValue(option.labelTag, 'labelTag');\n option.tags?.forEach((tag, index) => {\n validateStringValue(tag, `tags[${index}]`);\n });\n option.filteringTags?.forEach((tag, index) => {\n validateStringValue(tag, `filteringTags[${index}]`);\n });\n }\n\n const className = clsx(\n styles.option,\n disabled && styles.disabled,\n isGroupOption && styles.parent,\n highlightedOption && styles.highlighted\n );\n\n const icon = option.__customIcon || (\n <OptionIcon\n name={option.iconName}\n url={option.iconUrl}\n svg={option.iconSvg}\n alt={option.iconAlt}\n size={option.description || option.tags ? 'big' : 'normal'}\n />\n );\n\n // The option is conditionally assigned 'title' and 'aria-disabled' attributes to ensure it is viewed as a (generic) group by assistive technology only when necessary.\n // Omitting the props might be necessary if they are provided on the parent element to avoid nested groups.\n // See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/generic_role\n const genericGroupProps = isGenericGroup\n ? {\n title: option.label ?? option.value,\n 'aria-disabled': disabled,\n }\n : undefined;\n\n return (\n <span data-value={option.value} className={className} lang={option.lang} {...genericGroupProps} {...baseProps}>\n {icon}\n <span className={clsx(styles.content)}>\n <span className={clsx(styles['label-content'])}>\n <Label\n label={option.label ?? option.value}\n prefix={option.__labelPrefix}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n <LabelTag labelTag={option.labelTag} highlightText={highlightText} triggerVariant={triggerVariant} />\n </span>\n <Description\n description={option.description}\n highlightedOption={highlightedOption}\n selectedOption={selectedOption}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n <Tags\n tags={option.tags}\n highlightedOption={highlightedOption}\n selectedOption={selectedOption}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n <FilteringTags\n filteringTags={option.filteringTags}\n highlightedOption={highlightedOption}\n selectedOption={selectedOption}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n </span>\n </span>\n );\n};\n\nexport default Option;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/option/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EA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KAAK,IACJ,KAAK,EAAE,MAAA,MAAM,CAAC,KAAK,mCAAI,MAAM,CAAC,KAAK,EACnC,MAAM,EAAE,MAAM,CAAC,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B;gBACF,oBAAC,QAAQ,IAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,GAAI,CAChG;YACP,oBAAC,WAAW,IACV,WAAW,EAAE,MAAM,CAAC,WAAW,EAC/B,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B;YACF,oBAAC,IAAI,IACH,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B;YACF,oBAAC,aAAa,IACZ,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B,CACG,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,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';\nimport styles from './styles.css.js';\nimport { OptionProps } from './interfaces';\nimport { Label, LabelTag, Description, Tags, FilteringTags, OptionIcon } from './option-parts';\nimport { getBaseProps } from '../../base-component';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { isDevelopment } from '../../is-development';\n\nexport { OptionProps };\n\nfunction validateStringValue(value: string | undefined, propertyName: string) {\n if (typeof value !== 'undefined' && typeof value !== 'string') {\n warnOnce(\n 'DropdownOption',\n `This component only supports string values, but \"option.${propertyName}\" has ${typeof value} type. The component may work incorrectly.`\n );\n }\n}\n\nconst Option = ({\n option,\n highlightText,\n triggerVariant = false,\n isGroupOption = false,\n isGenericGroup = true,\n highlightedOption = false,\n selectedOption = false,\n ...restProps\n}: OptionProps) => {\n if (!option) {\n return null;\n }\n const { disabled } = option;\n const baseProps = getBaseProps(restProps);\n\n if (isDevelopment) {\n validateStringValue(option.label, 'label');\n validateStringValue(option.description, 'description');\n validateStringValue(option.labelTag, 'labelTag');\n option.tags?.forEach((tag, index) => {\n validateStringValue(tag, `tags[${index}]`);\n });\n option.filteringTags?.forEach((tag, index) => {\n validateStringValue(tag, `filteringTags[${index}]`);\n });\n }\n\n const className = clsx(\n styles.option,\n disabled && styles.disabled,\n isGroupOption && styles.parent,\n highlightedOption && styles.highlighted\n );\n\n const icon = option.__customIcon || (\n <OptionIcon\n name={option.iconName}\n url={option.iconUrl}\n svg={option.iconSvg}\n alt={option.iconAlt}\n size={option.description || option.tags ? 'big' : 'normal'}\n />\n );\n\n // The option is conditionally assigned 'title' and 'aria-disabled' attributes to ensure it is viewed as a (generic) group by assistive technology only when necessary.\n // Omitting the props might be necessary if they are provided on the parent element to avoid nested groups.\n // See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/generic_role\n const genericGroupProps = isGenericGroup\n ? {\n title: option.label ?? option.value,\n 'aria-disabled': disabled,\n }\n : undefined;\n\n return (\n <span data-value={option.value} className={className} lang={option.lang} {...genericGroupProps} {...baseProps}>\n {icon}\n <span className={clsx(styles.content)}>\n <span className={clsx(styles['label-content'])}>\n <Label\n label={option.label ?? option.value}\n prefix={option.__labelPrefix}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n <LabelTag labelTag={option.labelTag} highlightText={highlightText} triggerVariant={triggerVariant} />\n </span>\n <Description\n description={option.description}\n highlightedOption={highlightedOption}\n selectedOption={selectedOption}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n <Tags\n tags={option.tags}\n highlightedOption={highlightedOption}\n selectedOption={selectedOption}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n <FilteringTags\n filteringTags={option.filteringTags}\n highlightedOption={highlightedOption}\n selectedOption={selectedOption}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n </span>\n </span>\n );\n};\n\nexport default Option;\n"]}
@@ -1,6 +1,6 @@
1
1
 
2
2
  export var PACKAGE_SOURCE = 'components';
3
- export var PACKAGE_VERSION = '3.0.0 (6c67b6e)';
3
+ export var PACKAGE_VERSION = '3.0.0 (3635d7a)';
4
4
  export var THEME = 'open-source-visual-refresh';
5
5
  export var ALWAYS_VISUAL_REFRESH = true;
6
6
 
@@ -1112,6 +1112,10 @@ module.exports.preset = {
1112
1112
  "light": "transparent",
1113
1113
  "dark": "transparent"
1114
1114
  },
1115
+ "colorBorderEditableCellHover": {
1116
+ "light": "{colorBorderDropdownItemHover}",
1117
+ "dark": "{colorBorderDropdownItemHover}"
1118
+ },
1115
1119
  "colorBorderInputDefault": {
1116
1120
  "light": "{colorGrey500}",
1117
1121
  "dark": "{colorGrey550}"
@@ -1224,6 +1228,10 @@ module.exports.preset = {
1224
1228
  "light": "{colorGreyTransparentLight}",
1225
1229
  "dark": "{colorGreyTransparentLight}"
1226
1230
  },
1231
+ "colorStrokeChartLine": {
1232
+ "light": "{colorGrey500}",
1233
+ "dark": "{colorGrey500}"
1234
+ },
1227
1235
  "colorStrokeCodeEditorResizeHandler": {
1228
1236
  "light": "{colorGrey600}",
1229
1237
  "dark": "{colorGrey300}"
@@ -3081,6 +3089,10 @@ module.exports.preset = {
3081
3089
  "light": "transparent",
3082
3090
  "dark": "transparent"
3083
3091
  },
3092
+ "colorBorderEditableCellHover": {
3093
+ "light": "{colorBorderDropdownItemHover}",
3094
+ "dark": "{colorBorderDropdownItemHover}"
3095
+ },
3084
3096
  "colorBorderInputDefault": {
3085
3097
  "light": "{colorGrey550}",
3086
3098
  "dark": "{colorGrey550}"
@@ -3193,6 +3205,10 @@ module.exports.preset = {
3193
3205
  "light": "{colorGreyTransparentLight}",
3194
3206
  "dark": "{colorGreyTransparentLight}"
3195
3207
  },
3208
+ "colorStrokeChartLine": {
3209
+ "light": "{colorGrey500}",
3210
+ "dark": "{colorGrey500}"
3211
+ },
3196
3212
  "colorStrokeCodeEditorResizeHandler": {
3197
3213
  "light": "{colorGrey300}",
3198
3214
  "dark": "{colorGrey300}"
@@ -4075,6 +4091,10 @@ module.exports.preset = {
4075
4091
  "light": "transparent",
4076
4092
  "dark": "transparent"
4077
4093
  },
4094
+ "colorBorderEditableCellHover": {
4095
+ "light": "{colorBorderDropdownItemHover}",
4096
+ "dark": "{colorBorderDropdownItemHover}"
4097
+ },
4078
4098
  "colorBorderInputDefault": {
4079
4099
  "light": "{colorGrey550}",
4080
4100
  "dark": "{colorGrey550}"
@@ -4187,6 +4207,10 @@ module.exports.preset = {
4187
4207
  "light": "{colorGreyTransparentLight}",
4188
4208
  "dark": "{colorGreyTransparentLight}"
4189
4209
  },
4210
+ "colorStrokeChartLine": {
4211
+ "light": "{colorGrey500}",
4212
+ "dark": "{colorGrey500}"
4213
+ },
4190
4214
  "colorStrokeCodeEditorResizeHandler": {
4191
4215
  "light": "{colorGrey300}",
4192
4216
  "dark": "{colorGrey300}"
@@ -5001,6 +5025,10 @@ module.exports.preset = {
5001
5025
  "light": "transparent",
5002
5026
  "dark": "transparent"
5003
5027
  },
5028
+ "colorBorderEditableCellHover": {
5029
+ "light": "{colorBorderDropdownItemHover}",
5030
+ "dark": "{colorBorderDropdownItemHover}"
5031
+ },
5004
5032
  "colorBorderInputDefault": {
5005
5033
  "light": "{colorGrey500}",
5006
5034
  "dark": "{colorGrey550}"
@@ -5113,6 +5141,10 @@ module.exports.preset = {
5113
5141
  "light": "{colorGreyTransparentLight}",
5114
5142
  "dark": "{colorGreyTransparentLight}"
5115
5143
  },
5144
+ "colorStrokeChartLine": {
5145
+ "light": "{colorGrey500}",
5146
+ "dark": "{colorGrey500}"
5147
+ },
5116
5148
  "colorStrokeCodeEditorResizeHandler": {
5117
5149
  "light": "{colorGrey600}",
5118
5150
  "dark": "{colorGrey300}"
@@ -5927,6 +5959,10 @@ module.exports.preset = {
5927
5959
  "light": "transparent",
5928
5960
  "dark": "transparent"
5929
5961
  },
5962
+ "colorBorderEditableCellHover": {
5963
+ "light": "{colorBorderDropdownItemHover}",
5964
+ "dark": "{colorBorderDropdownItemHover}"
5965
+ },
5930
5966
  "colorBorderInputDefault": {
5931
5967
  "light": "{colorGrey500}",
5932
5968
  "dark": "{colorGrey550}"
@@ -6039,6 +6075,10 @@ module.exports.preset = {
6039
6075
  "light": "{colorGreyTransparentLight}",
6040
6076
  "dark": "{colorGreyTransparentLight}"
6041
6077
  },
6078
+ "colorStrokeChartLine": {
6079
+ "light": "{colorGrey500}",
6080
+ "dark": "{colorGrey500}"
6081
+ },
6042
6082
  "colorStrokeCodeEditorResizeHandler": {
6043
6083
  "light": "{colorGrey600}",
6044
6084
  "dark": "{colorGrey300}"
@@ -6853,6 +6893,10 @@ module.exports.preset = {
6853
6893
  "light": "transparent",
6854
6894
  "dark": "transparent"
6855
6895
  },
6896
+ "colorBorderEditableCellHover": {
6897
+ "light": "{colorBorderDropdownItemHover}",
6898
+ "dark": "{colorBorderDropdownItemHover}"
6899
+ },
6856
6900
  "colorBorderInputDefault": {
6857
6901
  "light": "{colorGrey550}",
6858
6902
  "dark": "{colorGrey550}"
@@ -6965,6 +7009,10 @@ module.exports.preset = {
6965
7009
  "light": "{colorGreyTransparentLight}",
6966
7010
  "dark": "{colorGreyTransparentLight}"
6967
7011
  },
7012
+ "colorStrokeChartLine": {
7013
+ "light": "{colorGrey500}",
7014
+ "dark": "{colorGrey500}"
7015
+ },
6968
7016
  "colorStrokeCodeEditorResizeHandler": {
6969
7017
  "light": "{colorGrey300}",
6970
7018
  "dark": "{colorGrey300}"
@@ -7622,6 +7670,7 @@ module.exports.preset = {
7622
7670
  "colorBorderDropdownItemDimmedHover": "color",
7623
7671
  "colorBorderDropdownItemSelected": "color",
7624
7672
  "colorBorderDropdownItemTop": "color",
7673
+ "colorBorderEditableCellHover": "color",
7625
7674
  "colorBorderInputDefault": "color",
7626
7675
  "colorBorderInputDisabled": "color",
7627
7676
  "colorBorderItemFocused": "color",
@@ -7650,6 +7699,7 @@ module.exports.preset = {
7650
7699
  "colorShadowLayoutToggle": "color",
7651
7700
  "colorShadowMedium": "color",
7652
7701
  "colorShadowSide": "color",
7702
+ "colorStrokeChartLine": "color",
7653
7703
  "colorStrokeCodeEditorResizeHandler": "color",
7654
7704
  "colorStrokeCodeEditorGutterActiveLineDefault": "color",
7655
7705
  "colorStrokeCodeEditorGutterActiveLineHover": "color",
@@ -8690,6 +8740,7 @@ module.exports.preset = {
8690
8740
  "colorBorderDropdownItemDimmedHover": "color-border-dropdown-item-dimmed-hover",
8691
8741
  "colorBorderDropdownItemSelected": "color-border-dropdown-item-selected",
8692
8742
  "colorBorderDropdownItemTop": "color-border-dropdown-item-top",
8743
+ "colorBorderEditableCellHover": "color-border-editable-cell-hover",
8693
8744
  "colorBorderInputDefault": "color-border-input-default",
8694
8745
  "colorBorderInputDisabled": "color-border-input-disabled",
8695
8746
  "colorBorderItemFocused": "color-border-item-focused",
@@ -8718,6 +8769,7 @@ module.exports.preset = {
8718
8769
  "colorShadowLayoutToggle": "color-shadow-layout-toggle",
8719
8770
  "colorShadowMedium": "color-shadow-medium",
8720
8771
  "colorShadowSide": "color-shadow-side",
8772
+ "colorStrokeChartLine": "color-stroke-chart-line",
8721
8773
  "colorStrokeCodeEditorResizeHandler": "color-stroke-code-editor-resize-handler",
8722
8774
  "colorStrokeCodeEditorGutterActiveLineDefault": "color-stroke-code-editor-gutter-active-line-default",
8723
8775
  "colorStrokeCodeEditorGutterActiveLineHover": "color-stroke-code-editor-gutter-active-line-hover",
@@ -9360,6 +9412,7 @@ module.exports.preset = {
9360
9412
  "colorBorderDropdownItemDimmedHover": "--color-border-dropdown-item-dimmed-hover-3tdni4",
9361
9413
  "colorBorderDropdownItemSelected": "--color-border-dropdown-item-selected-3zay2y",
9362
9414
  "colorBorderDropdownItemTop": "--color-border-dropdown-item-top-x77i10",
9415
+ "colorBorderEditableCellHover": "--color-border-editable-cell-hover-zeuchn",
9363
9416
  "colorBorderInputDefault": "--color-border-input-default-zb6g42",
9364
9417
  "colorBorderInputDisabled": "--color-border-input-disabled-06dcc0",
9365
9418
  "colorBorderItemFocused": "--color-border-item-focused-4t19h5",
@@ -9388,6 +9441,7 @@ module.exports.preset = {
9388
9441
  "colorShadowLayoutToggle": "--color-shadow-layout-toggle-u6bbly",
9389
9442
  "colorShadowMedium": "--color-shadow-medium-ncb0av",
9390
9443
  "colorShadowSide": "--color-shadow-side-priy5p",
9444
+ "colorStrokeChartLine": "--color-stroke-chart-line-7sdstd",
9391
9445
  "colorStrokeCodeEditorResizeHandler": "--color-stroke-code-editor-resize-handler-upcfz7",
9392
9446
  "colorStrokeCodeEditorGutterActiveLineDefault": "--color-stroke-code-editor-gutter-active-line-default-kc336v",
9393
9447
  "colorStrokeCodeEditorGutterActiveLineHover": "--color-stroke-code-editor-gutter-active-line-hover-czlv75",