@cloudscape-design/components 3.0.1403 → 3.0.1405

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 (87) hide show
  1. package/action-card/internal.d.ts.map +1 -1
  2. package/action-card/internal.js +1 -4
  3. package/action-card/internal.js.map +1 -1
  4. package/button/styles.css.js +24 -24
  5. package/button/styles.scoped.css +99 -78
  6. package/button/styles.selectors.js +24 -24
  7. package/code-editor/styles.css.js +33 -33
  8. package/code-editor/styles.scoped.css +140 -140
  9. package/code-editor/styles.selectors.js +33 -33
  10. package/container/styles.css.js +34 -34
  11. package/container/styles.scoped.css +59 -59
  12. package/container/styles.selectors.js +34 -34
  13. package/copy-to-clipboard/internal.d.ts.map +1 -1
  14. package/copy-to-clipboard/internal.js +50 -16
  15. package/copy-to-clipboard/internal.js.map +1 -1
  16. package/copy-to-clipboard/styles.css.js +10 -5
  17. package/copy-to-clipboard/styles.scoped.css +38 -6
  18. package/copy-to-clipboard/styles.selectors.js +10 -5
  19. package/input/styles.css.js +37 -37
  20. package/input/styles.scoped.css +67 -67
  21. package/input/styles.selectors.js +37 -37
  22. package/internal/base-component/styles.scoped.css +1 -1
  23. package/internal/base-theme/styles.scoped.css +8 -0
  24. package/internal/components/autosuggest-input/styles.css.js +27 -27
  25. package/internal/components/autosuggest-input/styles.scoped.css +35 -35
  26. package/internal/components/autosuggest-input/styles.selectors.js +27 -27
  27. package/internal/components/button-trigger/styles.css.js +23 -23
  28. package/internal/components/button-trigger/styles.scoped.css +50 -44
  29. package/internal/components/button-trigger/styles.selectors.js +23 -23
  30. package/internal/components/control-group/index.d.ts.map +1 -1
  31. package/internal/components/control-group/index.js +41 -14
  32. package/internal/components/control-group/index.js.map +1 -1
  33. package/internal/components/control-group/interfaces.d.ts +8 -1
  34. package/internal/components/control-group/interfaces.d.ts.map +1 -1
  35. package/internal/components/control-group/interfaces.js.map +1 -1
  36. package/internal/components/control-group/styles.css.js +20 -16
  37. package/internal/components/control-group/styles.scoped.css +52 -16
  38. package/internal/components/control-group/styles.selectors.js +20 -16
  39. package/internal/components/control-group/test-classes/styles.css.js +4 -3
  40. package/internal/components/control-group/test-classes/styles.scoped.css +7 -3
  41. package/internal/components/control-group/test-classes/styles.selectors.js +4 -3
  42. package/internal/components/expand-toggle-button/styles.css.js +4 -4
  43. package/internal/components/expand-toggle-button/styles.scoped.css +18 -18
  44. package/internal/components/expand-toggle-button/styles.selectors.js +4 -4
  45. package/internal/environment.js +2 -2
  46. package/internal/environment.json +2 -2
  47. package/internal/generated/styles/tokens.d.ts +4 -0
  48. package/internal/generated/styles/tokens.js +4 -0
  49. package/internal/generated/theming/index.cjs +44 -0
  50. package/internal/generated/theming/index.js +44 -0
  51. package/internal/hooks/use-fits-inline.d.ts +15 -0
  52. package/internal/hooks/use-fits-inline.d.ts.map +1 -0
  53. package/internal/hooks/use-fits-inline.js +31 -0
  54. package/internal/hooks/use-fits-inline.js.map +1 -0
  55. package/internal/manifest.json +1 -1
  56. package/manifest.json +2 -2
  57. package/package.json +1 -1
  58. package/prompt-input/styles.css.js +26 -26
  59. package/prompt-input/styles.scoped.css +55 -55
  60. package/prompt-input/styles.selectors.js +26 -26
  61. package/property-filter/filtering-token/index.js +3 -2
  62. package/property-filter/filtering-token/index.js.map +1 -1
  63. package/table/body-cell/styles.css.js +47 -47
  64. package/table/body-cell/styles.scoped.css +568 -568
  65. package/table/body-cell/styles.selectors.js +47 -47
  66. package/table/header-cell/styles.css.js +39 -39
  67. package/table/header-cell/styles.scoped.css +82 -82
  68. package/table/header-cell/styles.selectors.js +39 -39
  69. package/table/styles.css.js +37 -37
  70. package/table/styles.scoped.css +46 -45
  71. package/table/styles.selectors.js +37 -37
  72. package/test-utils/dom/internal/control-group.d.ts +4 -0
  73. package/test-utils/dom/internal/control-group.js +6 -0
  74. package/test-utils/dom/internal/control-group.js.map +1 -1
  75. package/test-utils/selectors/internal/control-group.d.ts +4 -0
  76. package/test-utils/selectors/internal/control-group.js +6 -0
  77. package/test-utils/selectors/internal/control-group.js.map +1 -1
  78. package/textarea/styles.css.js +9 -9
  79. package/textarea/styles.scoped.css +19 -19
  80. package/textarea/styles.selectors.js +9 -9
  81. package/toggle/styles.css.js +10 -10
  82. package/toggle/styles.scoped.css +30 -17
  83. package/toggle/styles.selectors.js +10 -10
  84. package/token/index.d.ts +4 -1
  85. package/token/index.d.ts.map +1 -1
  86. package/token/index.js +6 -3
  87. package/token/index.js.map +1 -1
@@ -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
- "root": "awsui_root_qk1j1_z8j8x_9",
6
- "textarea": "awsui_textarea_qk1j1_z8j8x_13",
7
- "textarea-resize-both": "awsui_textarea-resize-both_qk1j1_z8j8x_64",
8
- "textarea-resize-horizontal": "awsui_textarea-resize-horizontal_qk1j1_z8j8x_67",
9
- "textarea-resize-vertical": "awsui_textarea-resize-vertical_qk1j1_z8j8x_70",
10
- "textarea-resize-none": "awsui_textarea-resize-none_qk1j1_z8j8x_73",
11
- "textarea-readonly": "awsui_textarea-readonly_qk1j1_z8j8x_82",
12
- "textarea-invalid": "awsui_textarea-invalid_qk1j1_z8j8x_119",
13
- "textarea-warning": "awsui_textarea-warning_qk1j1_z8j8x_128"
5
+ "root": "awsui_root_qk1j1_1lark_9",
6
+ "textarea": "awsui_textarea_qk1j1_1lark_13",
7
+ "textarea-resize-both": "awsui_textarea-resize-both_qk1j1_1lark_64",
8
+ "textarea-resize-horizontal": "awsui_textarea-resize-horizontal_qk1j1_1lark_67",
9
+ "textarea-resize-vertical": "awsui_textarea-resize-vertical_qk1j1_1lark_70",
10
+ "textarea-resize-none": "awsui_textarea-resize-none_qk1j1_1lark_73",
11
+ "textarea-readonly": "awsui_textarea-readonly_qk1j1_1lark_82",
12
+ "textarea-invalid": "awsui_textarea-invalid_qk1j1_1lark_119",
13
+ "textarea-warning": "awsui_textarea-warning_qk1j1_1lark_128"
14
14
  };
15
15
 
@@ -1,15 +1,15 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_4yi2u_1nwqb_40",
5
- "outline": "awsui_outline_4yi2u_1nwqb_73",
6
- "toggle-control": "awsui_toggle-control_4yi2u_1nwqb_95",
7
- "toggle-control-checked": "awsui_toggle-control-checked_4yi2u_1nwqb_115",
8
- "toggle-control-disabled": "awsui_toggle-control-disabled_4yi2u_1nwqb_118",
9
- "toggle-control-readonly": "awsui_toggle-control-readonly_4yi2u_1nwqb_124",
10
- "toggle-handle": "awsui_toggle-handle_4yi2u_1nwqb_127",
11
- "toggle-handle-checked": "awsui_toggle-handle-checked_4yi2u_1nwqb_152",
12
- "toggle-handle-disabled": "awsui_toggle-handle-disabled_4yi2u_1nwqb_159",
13
- "toggle-handle-readonly": "awsui_toggle-handle-readonly_4yi2u_1nwqb_163"
4
+ "root": "awsui_root_4yi2u_1hgx5_44",
5
+ "outline": "awsui_outline_4yi2u_1hgx5_77",
6
+ "toggle-control": "awsui_toggle-control_4yi2u_1hgx5_99",
7
+ "toggle-control-checked": "awsui_toggle-control-checked_4yi2u_1hgx5_119",
8
+ "toggle-control-disabled": "awsui_toggle-control-disabled_4yi2u_1hgx5_122",
9
+ "toggle-control-readonly": "awsui_toggle-control-readonly_4yi2u_1hgx5_128",
10
+ "toggle-handle": "awsui_toggle-handle_4yi2u_1hgx5_131",
11
+ "toggle-handle-checked": "awsui_toggle-handle-checked_4yi2u_1hgx5_156",
12
+ "toggle-handle-disabled": "awsui_toggle-handle-disabled_4yi2u_1hgx5_163",
13
+ "toggle-handle-readonly": "awsui_toggle-handle-readonly_4yi2u_1hgx5_167"
14
14
  };
15
15
 
@@ -6,6 +6,10 @@
6
6
  /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
7
7
  /* Style used for links in slots/components that are text heavy, to help links stand out among
8
8
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
9
+ /*
10
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
11
+ SPDX-License-Identifier: Apache-2.0
12
+ */
9
13
  @property --awsui-style-color {
10
14
  syntax: "*";
11
15
  inherits: false;
@@ -37,7 +41,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
37
41
  /* awsui:style-api-slot name=control tokens=color, background-color, focus-ring-color, focus-ring-width, focus-ring-radius, focus-ring-gutter-block, focus-ring-gutter-inline properties= */
38
42
  /* awsui:style-api-slot name=label tokens=color properties= */
39
43
  /* awsui:style-api-slot name=description tokens=color properties= */
40
- .awsui_root_4yi2u_1nwqb_40:not(#\9) {
44
+ .awsui_root_4yi2u_1hgx5_44:not(#\9) {
41
45
  border-collapse: separate;
42
46
  border-spacing: 0;
43
47
  box-sizing: border-box;
@@ -70,14 +74,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
70
74
  display: flex;
71
75
  }
72
76
 
73
- .awsui_outline_4yi2u_1nwqb_73:not(#\9) {
77
+ .awsui_outline_4yi2u_1hgx5_77:not(#\9) {
74
78
  position: relative;
75
79
  }
76
- .awsui_outline_4yi2u_1nwqb_73:not(#\9) {
80
+ .awsui_outline_4yi2u_1hgx5_77:not(#\9) {
77
81
  outline: 2px dotted transparent;
78
82
  outline-offset: calc(var(--awsui-internal-style-focus-ring-gutter-inline, 2px) - 1px);
79
83
  }
80
- .awsui_outline_4yi2u_1nwqb_73:not(#\9)::before {
84
+ .awsui_outline_4yi2u_1hgx5_77:not(#\9)::before {
81
85
  content: " ";
82
86
  display: block;
83
87
  position: absolute;
@@ -92,7 +96,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
92
96
  box-shadow: 0 0 0 var(--awsui-internal-style-focus-ring-width, var(--awsui-style-focus-ring-border-width-ka4djm, 2px)) var(--awsui-internal-style-focus-ring-color, var(--awsui-style-focus-ring-border-color-ka4djm, var(--color-border-item-focused-sb1fs0, #006ce0)));
93
97
  }
94
98
 
95
- .awsui_toggle-control_4yi2u_1nwqb_95:not(#\9) {
99
+ .awsui_toggle-control_4yi2u_1hgx5_99:not(#\9) {
96
100
  --awsui-internal-style-color: var(--awsui-style-color);
97
101
  --awsui-internal-style-background-color: var(--awsui-style-background-color);
98
102
  --awsui-internal-style-focus-ring-color: var(--awsui-style-focus-ring-color);
@@ -112,19 +116,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
112
116
  border-end-start-radius: 8px;
113
117
  border-end-end-radius: 8px;
114
118
  }
115
- .awsui_toggle-control-checked_4yi2u_1nwqb_115:not(#\9) {
119
+ .awsui_toggle-control-checked_4yi2u_1hgx5_119:not(#\9) {
116
120
  background: var(--awsui-internal-style-background-color, var(--color-background-control-checked-4bqnep, #006ce0));
117
121
  }
118
- .awsui_toggle-control-disabled_4yi2u_1nwqb_118:not(#\9) {
122
+ .awsui_toggle-control-disabled_4yi2u_1hgx5_122:not(#\9) {
119
123
  background: var(--awsui-internal-style-background-color, var(--color-background-control-disabled-tdp2nu, #dedee3));
120
124
  }
121
- .awsui_toggle-control-disabled_4yi2u_1nwqb_118.awsui_toggle-control-checked_4yi2u_1nwqb_115:not(#\9) {
125
+ .awsui_toggle-control-disabled_4yi2u_1hgx5_122.awsui_toggle-control-checked_4yi2u_1hgx5_119:not(#\9) {
122
126
  background: var(--awsui-internal-style-background-color, var(--color-background-toggle-checked-disabled-i54bpx, #b8e7ff));
123
127
  }
124
- .awsui_toggle-control-readonly_4yi2u_1nwqb_124:not(#\9) {
128
+ .awsui_toggle-control-readonly_4yi2u_1hgx5_128:not(#\9) {
125
129
  background: var(--awsui-internal-style-background-color, var(--color-background-control-disabled-tdp2nu, #dedee3));
126
130
  }
127
- .awsui_toggle-handle_4yi2u_1nwqb_127:not(#\9) {
131
+ .awsui_toggle-handle_4yi2u_1hgx5_131:not(#\9) {
128
132
  display: block;
129
133
  position: absolute;
130
134
  border-start-start-radius: 6px;
@@ -140,29 +144,38 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
140
144
  transition: transform var(--motion-duration-fast-0xpm7h, 90ms) var(--motion-easing-ease-out-quart-t49zcm, cubic-bezier(0.165, 0.84, 0.44, 1)), background-color var(--motion-duration-fast-0xpm7h, 90ms) var(--motion-easing-ease-out-quart-t49zcm, cubic-bezier(0.165, 0.84, 0.44, 1));
141
145
  }
142
146
  @media (prefers-reduced-motion: reduce) {
143
- .awsui_toggle-handle_4yi2u_1nwqb_127:not(#\9) {
147
+ .awsui_toggle-handle_4yi2u_1hgx5_131:not(#\9) {
144
148
  animation: none;
145
149
  transition: none;
146
150
  }
147
151
  }
148
- .awsui-motion-disabled .awsui_toggle-handle_4yi2u_1nwqb_127:not(#\9), .awsui-mode-entering .awsui_toggle-handle_4yi2u_1nwqb_127:not(#\9) {
152
+ .awsui-motion-disabled .awsui_toggle-handle_4yi2u_1hgx5_131:not(#\9), .awsui-mode-entering .awsui_toggle-handle_4yi2u_1hgx5_131:not(#\9) {
149
153
  animation: none;
150
154
  transition: none;
151
155
  }
152
- .awsui_toggle-handle-checked_4yi2u_1nwqb_152:not(#\9) {
156
+ .awsui_toggle-handle-checked_4yi2u_1hgx5_156:not(#\9) {
153
157
  transform: translateX(8px);
154
158
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
155
159
  }
156
- .awsui_toggle-handle-checked_4yi2u_1nwqb_152:not(#\9):dir(rtl) {
160
+ .awsui_toggle-handle-checked_4yi2u_1hgx5_156:not(#\9):dir(rtl) {
157
161
  transform: translateX(-8px);
158
162
  }
159
- .awsui_toggle-handle-disabled_4yi2u_1nwqb_159:not(#\9) {
163
+ .awsui_toggle-handle-disabled_4yi2u_1hgx5_163:not(#\9) {
160
164
  background: var(--awsui-internal-style-color, var(--color-foreground-control-disabled-0eaxkw, #ffffff));
161
165
  box-shadow: none;
162
166
  }
163
- .awsui_toggle-handle-readonly_4yi2u_1nwqb_163:not(#\9):not(.awsui_toggle-handle-disabled_4yi2u_1nwqb_159) {
167
+ .awsui_toggle-handle-readonly_4yi2u_1hgx5_167:not(#\9):not(.awsui_toggle-handle-disabled_4yi2u_1hgx5_163) {
164
168
  box-shadow: none;
165
169
  }
166
- .awsui_toggle-handle-readonly_4yi2u_1nwqb_163:not(#\9):not(.awsui_toggle-handle-disabled_4yi2u_1nwqb_159).awsui_toggle-handle-checked_4yi2u_1nwqb_152 {
170
+ .awsui_toggle-handle-readonly_4yi2u_1hgx5_167:not(#\9):not(.awsui_toggle-handle-disabled_4yi2u_1hgx5_163).awsui_toggle-handle-checked_4yi2u_1hgx5_156 {
167
171
  background: var(--awsui-internal-style-color, var(--color-foreground-control-read-only-i0z7u3, #656871));
172
+ }
173
+ .awsui_toggle-handle_4yi2u_1hgx5_131.awsui_toggle-handle-checked_4yi2u_1hgx5_156:not(#\9) {
174
+ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
175
+ }
176
+ .awsui_toggle-handle_4yi2u_1hgx5_131[data-awsui-motion-ready]:not(#\9) {
177
+ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
178
+ }
179
+ .awsui_toggle-handle_4yi2u_1hgx5_131[data-awsui-motion-ready].awsui_toggle-handle-checked_4yi2u_1hgx5_156:not(#\9) {
180
+ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
168
181
  }
@@ -2,15 +2,15 @@
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_4yi2u_1nwqb_40",
6
- "outline": "awsui_outline_4yi2u_1nwqb_73",
7
- "toggle-control": "awsui_toggle-control_4yi2u_1nwqb_95",
8
- "toggle-control-checked": "awsui_toggle-control-checked_4yi2u_1nwqb_115",
9
- "toggle-control-disabled": "awsui_toggle-control-disabled_4yi2u_1nwqb_118",
10
- "toggle-control-readonly": "awsui_toggle-control-readonly_4yi2u_1nwqb_124",
11
- "toggle-handle": "awsui_toggle-handle_4yi2u_1nwqb_127",
12
- "toggle-handle-checked": "awsui_toggle-handle-checked_4yi2u_1nwqb_152",
13
- "toggle-handle-disabled": "awsui_toggle-handle-disabled_4yi2u_1nwqb_159",
14
- "toggle-handle-readonly": "awsui_toggle-handle-readonly_4yi2u_1nwqb_163"
5
+ "root": "awsui_root_4yi2u_1hgx5_44",
6
+ "outline": "awsui_outline_4yi2u_1hgx5_77",
7
+ "toggle-control": "awsui_toggle-control_4yi2u_1hgx5_99",
8
+ "toggle-control-checked": "awsui_toggle-control-checked_4yi2u_1hgx5_119",
9
+ "toggle-control-disabled": "awsui_toggle-control-disabled_4yi2u_1hgx5_122",
10
+ "toggle-control-readonly": "awsui_toggle-control-readonly_4yi2u_1hgx5_128",
11
+ "toggle-handle": "awsui_toggle-handle_4yi2u_1hgx5_131",
12
+ "toggle-handle-checked": "awsui_toggle-handle-checked_4yi2u_1hgx5_156",
13
+ "toggle-handle-disabled": "awsui_toggle-handle-disabled_4yi2u_1hgx5_163",
14
+ "toggle-handle-readonly": "awsui_toggle-handle-readonly_4yi2u_1hgx5_167"
15
15
  };
16
16
 
package/token/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  import { TokenProps } from './interfaces';
2
2
  export { TokenProps };
3
- export default function Token(props: TokenProps): JSX.Element;
3
+ export default function Token({
4
+ variant,
5
+ ...props
6
+ }: TokenProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/token/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,eAe9C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/token/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,OAAkB,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,eAmBzE"}
package/token/index.js CHANGED
@@ -7,13 +7,16 @@ import useBaseComponent from '../internal/hooks/use-base-component';
7
7
  import { applyDisplayName } from '../internal/utils/apply-display-name';
8
8
  import InternalToken from './internal';
9
9
  import analyticsSelectors from './analytics-metadata/styles.css.js';
10
- export default function Token(props) {
11
- const baseComponentProps = useBaseComponent('Token');
10
+ export default function Token({ variant = 'normal', ...props }) {
11
+ const baseComponentProps = useBaseComponent('Token', {
12
+ props: { variant, readOnly: props.readOnly, disabled: props.disabled },
13
+ metadata: { hasIcon: Boolean(props.icon) },
14
+ });
12
15
  const componentAnalyticsMetadata = {
13
16
  name: 'awsui.Token',
14
17
  label: `.${analyticsSelectors.token}`,
15
18
  };
16
- return (React.createElement(InternalToken, { ...props, ...baseComponentProps, ...getAnalyticsMetadataAttribute({ component: componentAnalyticsMetadata }) }));
19
+ return (React.createElement(InternalToken, { ...props, variant: variant, ...baseComponentProps, ...getAnalyticsMetadataAttribute({ component: componentAnalyticsMetadata }) }));
17
20
  }
18
21
  applyDisplayName(Token, 'Token');
19
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/token/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,aAAa,MAAM,YAAY,CAAC;AAEvC,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAiB;IAC7C,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAErD,MAAM,0BAA0B,GAA6C;QAC3E,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,IAAI,kBAAkB,CAAC,KAAK,EAAE;KACtC,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,OACR,KAAK,KACL,kBAAkB,KAClB,6BAA6B,CAAC,EAAE,SAAS,EAAE,0BAA0B,EAAE,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataTokenComponent } from './analytics-metadata/interfaces';\nimport { TokenProps } from './interfaces';\nimport InternalToken from './internal';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\n\nexport { TokenProps };\n\nexport default function Token(props: TokenProps) {\n const baseComponentProps = useBaseComponent('Token');\n\n const componentAnalyticsMetadata: GeneratedAnalyticsMetadataTokenComponent = {\n name: 'awsui.Token',\n label: `.${analyticsSelectors.token}`,\n };\n\n return (\n <InternalToken\n {...props}\n {...baseComponentProps}\n {...getAnalyticsMetadataAttribute({ component: componentAnalyticsMetadata })}\n />\n );\n}\n\napplyDisplayName(Token, 'Token');\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/token/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,aAAa,MAAM,YAAY,CAAC;AAEvC,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAc;IACxE,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,OAAO,EAAE;QACnD,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;QACtE,QAAQ,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;KAC3C,CAAC,CAAC;IAEH,MAAM,0BAA0B,GAA6C;QAC3E,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,IAAI,kBAAkB,CAAC,KAAK,EAAE;KACtC,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,OACR,KAAK,EACT,OAAO,EAAE,OAAO,KACZ,kBAAkB,KAClB,6BAA6B,CAAC,EAAE,SAAS,EAAE,0BAA0B,EAAE,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataTokenComponent } from './analytics-metadata/interfaces';\nimport { TokenProps } from './interfaces';\nimport InternalToken from './internal';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\n\nexport { TokenProps };\n\nexport default function Token({ variant = 'normal', ...props }: TokenProps) {\n const baseComponentProps = useBaseComponent('Token', {\n props: { variant, readOnly: props.readOnly, disabled: props.disabled },\n metadata: { hasIcon: Boolean(props.icon) },\n });\n\n const componentAnalyticsMetadata: GeneratedAnalyticsMetadataTokenComponent = {\n name: 'awsui.Token',\n label: `.${analyticsSelectors.token}`,\n };\n\n return (\n <InternalToken\n {...props}\n variant={variant}\n {...baseComponentProps}\n {...getAnalyticsMetadataAttribute({ component: componentAnalyticsMetadata })}\n />\n );\n}\n\napplyDisplayName(Token, 'Token');\n"]}