@cloudscape-design/components 3.0.1111 → 3.0.1113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-layout/visual-refresh-toolbar/drawer/global-ai-drawer.d.ts +1 -1
- package/app-layout/visual-refresh-toolbar/drawer/global-ai-drawer.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/drawer/global-ai-drawer.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-ai-drawer.d.ts +34 -0
- package/app-layout/visual-refresh-toolbar/state/use-ai-drawer.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/state/use-ai-drawer.js +87 -0
- package/app-layout/visual-refresh-toolbar/state/use-ai-drawer.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.js +4 -3
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-widget-messages.d.ts +2 -0
- package/app-layout/visual-refresh-toolbar/state/use-widget-messages.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/state/use-widget-messages.js +18 -0
- package/app-layout/visual-refresh-toolbar/state/use-widget-messages.js.map +1 -0
- package/box/interfaces.d.ts +3 -1
- package/box/interfaces.d.ts.map +1 -1
- package/box/interfaces.js.map +1 -1
- package/box/internal.js +3 -0
- package/box/internal.js.map +1 -1
- package/box/styles.css.js +192 -191
- package/box/styles.scoped.css +250 -236
- package/box/styles.selectors.js +192 -191
- package/cards/analytics-metadata/interfaces.d.ts +31 -0
- package/cards/analytics-metadata/interfaces.d.ts.map +1 -0
- package/cards/analytics-metadata/interfaces.js +4 -0
- package/cards/analytics-metadata/interfaces.js.map +1 -0
- package/cards/analytics-metadata/styles.css.js +8 -0
- package/cards/analytics-metadata/styles.scoped.css +15 -0
- package/cards/analytics-metadata/styles.selectors.js +9 -0
- package/cards/index.d.ts.map +1 -1
- package/cards/index.js +59 -21
- package/cards/index.js.map +1 -1
- package/file-token-group/file-token.js +1 -1
- package/file-token-group/file-token.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +9 -1
- package/internal/components/drag-handle-wrapper/direction-button.js +1 -1
- package/internal/components/drag-handle-wrapper/direction-button.js.map +1 -1
- package/internal/components/drag-handle-wrapper/index.d.ts +1 -0
- package/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
- package/internal/components/drag-handle-wrapper/index.js +26 -32
- package/internal/components/drag-handle-wrapper/index.js.map +1 -1
- package/internal/components/drag-handle-wrapper/interfaces.d.ts +1 -0
- package/internal/components/drag-handle-wrapper/interfaces.d.ts.map +1 -1
- package/internal/components/drag-handle-wrapper/interfaces.js.map +1 -1
- package/internal/components/drag-handle-wrapper/styles.css.js +20 -21
- package/internal/components/drag-handle-wrapper/styles.scoped.css +50 -39
- package/internal/components/drag-handle-wrapper/styles.selectors.js +20 -21
- package/internal/components/option/highlight-match.d.ts +4 -2
- package/internal/components/option/highlight-match.d.ts.map +1 -1
- package/internal/components/option/highlight-match.js +6 -6
- package/internal/components/option/highlight-match.js.map +1 -1
- package/internal/components/option/index.d.ts +4 -0
- package/internal/components/option/index.d.ts.map +1 -1
- package/internal/components/option/index.js +8 -6
- package/internal/components/option/index.js.map +1 -1
- package/internal/components/option/interfaces.d.ts +5 -0
- package/internal/components/option/interfaces.d.ts.map +1 -1
- package/internal/components/option/interfaces.js.map +1 -1
- package/internal/components/option/option-parts.d.ts +7 -1
- package/internal/components/option/option-parts.d.ts.map +1 -1
- package/internal/components/option/option-parts.js +7 -5
- package/internal/components/option/option-parts.js.map +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/styles/tokens.d.ts +1 -0
- package/internal/generated/styles/tokens.js +1 -0
- package/internal/generated/theming/index.cjs +31 -0
- package/internal/generated/theming/index.js +31 -0
- package/internal/manifest.json +1 -1
- package/internal/plugins/widget/core.d.ts +16 -0
- package/internal/plugins/widget/core.d.ts.map +1 -0
- package/internal/plugins/widget/{internal.js → core.js} +14 -24
- package/internal/plugins/widget/core.js.map +1 -0
- package/internal/plugins/widget/index.d.ts +11 -0
- package/internal/plugins/widget/index.d.ts.map +1 -0
- package/internal/plugins/widget/index.js +22 -0
- package/internal/plugins/widget/index.js.map +1 -0
- package/internal/plugins/widget/interfaces.d.ts +2 -1
- package/internal/plugins/widget/interfaces.d.ts.map +1 -1
- package/internal/plugins/widget/interfaces.js.map +1 -1
- package/internal/plugins/widget.d.ts +2 -1
- package/internal/plugins/widget.d.ts.map +1 -1
- package/internal/plugins/widget.js +2 -1
- package/internal/plugins/widget.js.map +1 -1
- package/package.json +2 -1
- package/select/parts/styles.css.js +19 -22
- package/select/parts/styles.scoped.css +21 -49
- package/select/parts/styles.selectors.js +19 -22
- package/select/parts/trigger.d.ts.map +1 -1
- package/select/parts/trigger.js +2 -1
- package/select/parts/trigger.js.map +1 -1
- package/table/header-cell/index.d.ts +2 -0
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +5 -2
- package/table/header-cell/index.js.map +1 -1
- package/table/interfaces.d.ts +2 -0
- package/table/interfaces.d.ts.map +1 -1
- package/table/interfaces.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +1 -0
- package/table/internal.js.map +1 -1
- package/table/resizer/index.d.ts +3 -1
- package/table/resizer/index.d.ts.map +1 -1
- package/table/resizer/index.js +211 -78
- package/table/resizer/index.js.map +1 -1
- package/table/resizer/resizer-lookup.d.ts +2 -1
- package/table/resizer/resizer-lookup.d.ts.map +1 -1
- package/table/resizer/resizer-lookup.js +3 -2
- package/table/resizer/resizer-lookup.js.map +1 -1
- package/table/resizer/styles.css.js +12 -12
- package/table/resizer/styles.scoped.css +37 -26
- package/table/resizer/styles.selectors.js +12 -12
- package/table/thead.d.ts +1 -0
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js +2 -2
- package/table/thead.js.map +1 -1
- package/test-utils/dom/file-token-group/index.js +1 -1
- package/test-utils/dom/file-token-group/index.js.map +1 -1
- package/test-utils/dom/index.d.ts +20 -0
- package/test-utils/dom/index.js +15 -1
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/internal/drag-handle.js +5 -5
- package/test-utils/dom/internal/drag-handle.js.map +1 -1
- package/test-utils/dom/internal/option.d.ts +1 -0
- package/test-utils/dom/internal/option.js +13 -1
- package/test-utils/dom/internal/option.js.map +1 -1
- package/test-utils/dom/multiselect/index.d.ts +3 -3
- package/test-utils/dom/token/index.d.ts +26 -0
- package/test-utils/dom/token/index.js +45 -0
- package/test-utils/dom/token/index.js.map +1 -0
- package/test-utils/dom/token-group/index.d.ts +3 -3
- package/test-utils/dom/token-group/index.js +6 -4
- package/test-utils/dom/token-group/index.js.map +1 -1
- package/test-utils/dom/token-group/token.d.ts +1 -2
- package/test-utils/dom/token-group/token.js +8 -5
- package/test-utils/dom/token-group/token.js.map +1 -1
- package/test-utils/selectors/file-token-group/index.js +1 -1
- package/test-utils/selectors/file-token-group/index.js.map +1 -1
- package/test-utils/selectors/index.d.ts +18 -0
- package/test-utils/selectors/index.js +15 -1
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/internal/drag-handle.js +5 -5
- package/test-utils/selectors/internal/drag-handle.js.map +1 -1
- package/test-utils/selectors/multiselect/index.d.ts +3 -3
- package/test-utils/selectors/token/index.d.ts +26 -0
- package/test-utils/selectors/token/index.js +45 -0
- package/test-utils/selectors/token/index.js.map +1 -0
- package/test-utils/selectors/token-group/index.d.ts +3 -3
- package/test-utils/selectors/token-group/index.js +6 -4
- package/test-utils/selectors/token-group/index.js.map +1 -1
- package/test-utils/selectors/token-group/token.d.ts +1 -2
- package/test-utils/selectors/token-group/token.js +8 -5
- package/test-utils/selectors/token-group/token.js.map +1 -1
- package/token/analytics-metadata/interfaces.d.ts +12 -0
- package/token/analytics-metadata/interfaces.d.ts.map +1 -0
- package/token/analytics-metadata/interfaces.js +2 -0
- package/token/analytics-metadata/interfaces.js.map +1 -0
- package/token/analytics-metadata/styles.css.js +6 -0
- package/token/analytics-metadata/styles.scoped.css +7 -0
- package/token/analytics-metadata/styles.selectors.js +7 -0
- package/{token-group → token}/dismiss-button.d.ts +3 -1
- package/token/dismiss-button.d.ts.map +1 -0
- package/{token-group → token}/dismiss-button.js +6 -3
- package/token/dismiss-button.js.map +1 -0
- package/token/index.d.ts +4 -0
- package/token/index.d.ts.map +1 -0
- package/token/index.js +19 -0
- package/token/index.js.map +1 -0
- package/token/interfaces.d.ts +60 -0
- package/token/interfaces.d.ts.map +1 -0
- package/token/interfaces.js +2 -0
- package/token/interfaces.js.map +1 -0
- package/token/internal.d.ts +26 -0
- package/token/internal.d.ts.map +1 -0
- package/token/internal.js +77 -0
- package/token/internal.js.map +1 -0
- package/token/styles.css.js +19 -0
- package/token/styles.scoped.css +357 -0
- package/token/styles.selectors.js +20 -0
- package/token/test-classes/styles.css.js +7 -0
- package/token/test-classes/styles.scoped.css +8 -0
- package/token/test-classes/styles.selectors.js +8 -0
- package/token-group/analytics-metadata/interfaces.d.ts +0 -8
- package/token-group/analytics-metadata/interfaces.d.ts.map +1 -1
- package/token-group/analytics-metadata/interfaces.js.map +1 -1
- package/token-group/internal.d.ts.map +1 -1
- package/token-group/internal.js +5 -6
- package/token-group/internal.js.map +1 -1
- package/token-group/styles.css.js +5 -8
- package/token-group/styles.scoped.css +7 -115
- package/token-group/styles.selectors.js +5 -8
- package/app-layout/utils/use-ai-drawer.d.ts +0 -34
- package/app-layout/utils/use-ai-drawer.d.ts.map +0 -1
- package/app-layout/utils/use-ai-drawer.js +0 -111
- package/app-layout/utils/use-ai-drawer.js.map +0 -1
- package/internal/plugins/widget/internal.d.ts +0 -24
- package/internal/plugins/widget/internal.d.ts.map +0 -1
- package/internal/plugins/widget/internal.js.map +0 -1
- package/token-group/dismiss-button.d.ts.map +0 -1
- package/token-group/dismiss-button.js.map +0 -1
- package/token-group/token.d.ts +0 -20
- package/token-group/token.d.ts.map +0 -1
- package/token-group/token.js +0 -17
- package/token-group/token.js.map +0 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
|
+
SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
11
|
+
SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
/*
|
|
14
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
15
|
+
SPDX-License-Identifier: Apache-2.0
|
|
16
|
+
*/
|
|
17
|
+
/*
|
|
18
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
|
+
SPDX-License-Identifier: Apache-2.0
|
|
20
|
+
*/
|
|
21
|
+
/*
|
|
22
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
23
|
+
SPDX-License-Identifier: Apache-2.0
|
|
24
|
+
*/
|
|
25
|
+
/*
|
|
26
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
27
|
+
SPDX-License-Identifier: Apache-2.0
|
|
28
|
+
*/
|
|
29
|
+
/*
|
|
30
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
31
|
+
SPDX-License-Identifier: Apache-2.0
|
|
32
|
+
*/
|
|
33
|
+
/*
|
|
34
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
35
|
+
SPDX-License-Identifier: Apache-2.0
|
|
36
|
+
*/
|
|
37
|
+
/*
|
|
38
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
39
|
+
SPDX-License-Identifier: Apache-2.0
|
|
40
|
+
*/
|
|
41
|
+
/*
|
|
42
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
43
|
+
SPDX-License-Identifier: Apache-2.0
|
|
44
|
+
*/
|
|
45
|
+
/*
|
|
46
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
47
|
+
SPDX-License-Identifier: Apache-2.0
|
|
48
|
+
*/
|
|
49
|
+
/*
|
|
50
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
51
|
+
SPDX-License-Identifier: Apache-2.0
|
|
52
|
+
*/
|
|
53
|
+
/*
|
|
54
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55
|
+
SPDX-License-Identifier: Apache-2.0
|
|
56
|
+
*/
|
|
57
|
+
/*
|
|
58
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
59
|
+
SPDX-License-Identifier: Apache-2.0
|
|
60
|
+
*/
|
|
61
|
+
/*
|
|
62
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
63
|
+
SPDX-License-Identifier: Apache-2.0
|
|
64
|
+
*/
|
|
65
|
+
/*
|
|
66
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
67
|
+
SPDX-License-Identifier: Apache-2.0
|
|
68
|
+
*/
|
|
69
|
+
/*
|
|
70
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
71
|
+
SPDX-License-Identifier: Apache-2.0
|
|
72
|
+
*/
|
|
73
|
+
/*
|
|
74
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
75
|
+
SPDX-License-Identifier: Apache-2.0
|
|
76
|
+
*/
|
|
77
|
+
/*
|
|
78
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
79
|
+
SPDX-License-Identifier: Apache-2.0
|
|
80
|
+
*/
|
|
81
|
+
/*
|
|
82
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
83
|
+
SPDX-License-Identifier: Apache-2.0
|
|
84
|
+
*/
|
|
85
|
+
/*
|
|
86
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
87
|
+
SPDX-License-Identifier: Apache-2.0
|
|
88
|
+
*/
|
|
89
|
+
/*
|
|
90
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
|
+
SPDX-License-Identifier: Apache-2.0
|
|
92
|
+
*/
|
|
93
|
+
/*
|
|
94
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
|
+
SPDX-License-Identifier: Apache-2.0
|
|
96
|
+
*/
|
|
97
|
+
/*
|
|
98
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
99
|
+
SPDX-License-Identifier: Apache-2.0
|
|
100
|
+
*/
|
|
101
|
+
/*
|
|
102
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
103
|
+
SPDX-License-Identifier: Apache-2.0
|
|
104
|
+
*/
|
|
105
|
+
/*
|
|
106
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
107
|
+
SPDX-License-Identifier: Apache-2.0
|
|
108
|
+
*/
|
|
109
|
+
/*
|
|
110
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
111
|
+
SPDX-License-Identifier: Apache-2.0
|
|
112
|
+
*/
|
|
113
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
114
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
115
|
+
/*
|
|
116
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
117
|
+
SPDX-License-Identifier: Apache-2.0
|
|
118
|
+
*/
|
|
119
|
+
/*
|
|
120
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
121
|
+
SPDX-License-Identifier: Apache-2.0
|
|
122
|
+
*/
|
|
123
|
+
/*
|
|
124
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
125
|
+
SPDX-License-Identifier: Apache-2.0
|
|
126
|
+
*/
|
|
127
|
+
/*
|
|
128
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
129
|
+
SPDX-License-Identifier: Apache-2.0
|
|
130
|
+
*/
|
|
131
|
+
/*
|
|
132
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
133
|
+
SPDX-License-Identifier: Apache-2.0
|
|
134
|
+
*/
|
|
135
|
+
/*
|
|
136
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
137
|
+
SPDX-License-Identifier: Apache-2.0
|
|
138
|
+
*/
|
|
139
|
+
/*
|
|
140
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
141
|
+
SPDX-License-Identifier: Apache-2.0
|
|
142
|
+
*/
|
|
143
|
+
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
|
+
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
+
/*
|
|
146
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
147
|
+
SPDX-License-Identifier: Apache-2.0
|
|
148
|
+
*/
|
|
149
|
+
/*
|
|
150
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
151
|
+
SPDX-License-Identifier: Apache-2.0
|
|
152
|
+
*/
|
|
153
|
+
/*
|
|
154
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
155
|
+
SPDX-License-Identifier: Apache-2.0
|
|
156
|
+
*/
|
|
157
|
+
/*
|
|
158
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
159
|
+
SPDX-License-Identifier: Apache-2.0
|
|
160
|
+
*/
|
|
161
|
+
.awsui_root_1i2wg_16pp7_161:not(#\9) {
|
|
162
|
+
border-collapse: separate;
|
|
163
|
+
border-spacing: 0;
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
caption-side: top;
|
|
166
|
+
cursor: auto;
|
|
167
|
+
direction: inherit;
|
|
168
|
+
empty-cells: show;
|
|
169
|
+
font-family: serif;
|
|
170
|
+
font-style: normal;
|
|
171
|
+
font-variant: normal;
|
|
172
|
+
font-stretch: normal;
|
|
173
|
+
hyphens: none;
|
|
174
|
+
letter-spacing: normal;
|
|
175
|
+
list-style: disc outside none;
|
|
176
|
+
tab-size: 8;
|
|
177
|
+
text-align: start;
|
|
178
|
+
text-indent: 0;
|
|
179
|
+
text-shadow: none;
|
|
180
|
+
text-transform: none;
|
|
181
|
+
visibility: visible;
|
|
182
|
+
white-space: normal;
|
|
183
|
+
word-spacing: normal;
|
|
184
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
185
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
186
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
187
|
+
font-weight: 400;
|
|
188
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
189
|
+
-webkit-font-smoothing: auto;
|
|
190
|
+
-moz-osx-font-smoothing: auto;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.awsui_dismiss-button_1i2wg_16pp7_193:not(#\9) {
|
|
194
|
+
align-self: flex-start;
|
|
195
|
+
margin-block-end: 0;
|
|
196
|
+
margin-inline-start: var(--space-xxs-hwfkai, 4px);
|
|
197
|
+
border-block: var(--border-width-field-2xc78x, 1px) solid transparent;
|
|
198
|
+
border-inline: var(--border-width-field-2xc78x, 1px) solid transparent;
|
|
199
|
+
padding-block: 0;
|
|
200
|
+
padding-inline: var(--space-xxs-hwfkai, 4px);
|
|
201
|
+
color: var(--color-text-button-inline-icon-default-f8xgpk, #006ce0);
|
|
202
|
+
background-color: transparent;
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
}
|
|
205
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_1i2wg_16pp7_193:not(#\9):focus {
|
|
206
|
+
position: relative;
|
|
207
|
+
}
|
|
208
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_1i2wg_16pp7_193:not(#\9):focus {
|
|
209
|
+
outline: 2px dotted transparent;
|
|
210
|
+
outline-offset: calc(0px - 1px);
|
|
211
|
+
}
|
|
212
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_1i2wg_16pp7_193:not(#\9):focus::before {
|
|
213
|
+
content: " ";
|
|
214
|
+
display: block;
|
|
215
|
+
position: absolute;
|
|
216
|
+
inset-inline-start: calc(-1 * 0px);
|
|
217
|
+
inset-block-start: calc(-1 * 0px);
|
|
218
|
+
inline-size: calc(100% + 0px + 0px);
|
|
219
|
+
block-size: calc(100% + 0px + 0px);
|
|
220
|
+
border-start-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
221
|
+
border-start-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
222
|
+
border-end-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
223
|
+
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
224
|
+
box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
|
|
225
|
+
}
|
|
226
|
+
.awsui_dismiss-button_1i2wg_16pp7_193:not(#\9):focus {
|
|
227
|
+
outline: none;
|
|
228
|
+
text-decoration: none;
|
|
229
|
+
}
|
|
230
|
+
.awsui_dismiss-button_1i2wg_16pp7_193:not(#\9):hover {
|
|
231
|
+
color: var(--color-text-button-inline-icon-hover-c08r6g, #002b66);
|
|
232
|
+
}
|
|
233
|
+
.awsui_dismiss-button-inline_1i2wg_16pp7_233:not(#\9) {
|
|
234
|
+
padding-inline: 0;
|
|
235
|
+
display: flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
align-self: center;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.awsui_icon_1i2wg_16pp7_240:not(#\9) {
|
|
241
|
+
padding-inline-end: var(--space-xs-ymlm0b, 8px);
|
|
242
|
+
align-self: flex-start;
|
|
243
|
+
display: flex;
|
|
244
|
+
flex-shrink: 0;
|
|
245
|
+
}
|
|
246
|
+
.awsui_icon-inline_1i2wg_16pp7_246:not(#\9) {
|
|
247
|
+
padding-inline-end: var(--space-xxs-hwfkai, 4px);
|
|
248
|
+
align-self: center;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.awsui_token-normal_1i2wg_16pp7_251:not(#\9) {
|
|
252
|
+
block-size: 100%;
|
|
253
|
+
display: flex;
|
|
254
|
+
flex-direction: column;
|
|
255
|
+
gap: var(--space-xxs-hwfkai, 4px);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.awsui_token-inline_1i2wg_16pp7_258:not(#\9) {
|
|
259
|
+
display: inline-flex;
|
|
260
|
+
max-inline-size: 100%;
|
|
261
|
+
}
|
|
262
|
+
body[data-awsui-focus-visible=true] .awsui_token-inline_1i2wg_16pp7_258:not(#\9):focus {
|
|
263
|
+
position: relative;
|
|
264
|
+
}
|
|
265
|
+
body[data-awsui-focus-visible=true] .awsui_token-inline_1i2wg_16pp7_258:not(#\9):focus {
|
|
266
|
+
outline: 2px dotted transparent;
|
|
267
|
+
outline-offset: calc(0px - 1px);
|
|
268
|
+
}
|
|
269
|
+
body[data-awsui-focus-visible=true] .awsui_token-inline_1i2wg_16pp7_258:not(#\9):focus::before {
|
|
270
|
+
content: " ";
|
|
271
|
+
display: block;
|
|
272
|
+
position: absolute;
|
|
273
|
+
inset-inline-start: calc(-1 * 0px);
|
|
274
|
+
inset-block-start: calc(-1 * 0px);
|
|
275
|
+
inline-size: calc(100% + 0px + 0px);
|
|
276
|
+
block-size: calc(100% + 0px + 0px);
|
|
277
|
+
border-start-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
278
|
+
border-start-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
279
|
+
border-end-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
280
|
+
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
281
|
+
box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.awsui_token-option-inline_1i2wg_16pp7_284:not(#\9) {
|
|
285
|
+
max-block-size: 20px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.awsui_token-box_1i2wg_16pp7_288:not(#\9) {
|
|
289
|
+
position: relative;
|
|
290
|
+
block-size: 100%;
|
|
291
|
+
border-block: var(--border-width-token-2ukdpu, 2px) solid var(--color-border-item-selected-wl5ttm, #006ce0);
|
|
292
|
+
border-inline: var(--border-width-token-2ukdpu, 2px) solid var(--color-border-item-selected-wl5ttm, #006ce0);
|
|
293
|
+
padding-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
294
|
+
padding-block-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
295
|
+
padding-inline-start: var(--space-field-horizontal-0aq2ch, 12px);
|
|
296
|
+
padding-inline-end: var(--space-xxs-hwfkai, 4px);
|
|
297
|
+
display: flex;
|
|
298
|
+
align-items: flex-start;
|
|
299
|
+
background: var(--color-background-item-selected-9gppru, #f0fbff);
|
|
300
|
+
border-start-start-radius: var(--border-radius-token-ycnemh, 8px);
|
|
301
|
+
border-start-end-radius: var(--border-radius-token-ycnemh, 8px);
|
|
302
|
+
border-end-start-radius: var(--border-radius-token-ycnemh, 8px);
|
|
303
|
+
border-end-end-radius: var(--border-radius-token-ycnemh, 8px);
|
|
304
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
305
|
+
box-sizing: border-box;
|
|
306
|
+
}
|
|
307
|
+
.awsui_token-box-without-dismiss_1i2wg_16pp7_307:not(#\9) {
|
|
308
|
+
padding-inline-end: var(--space-field-horizontal-0aq2ch, 12px);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.awsui_token-box-inline_1i2wg_16pp7_311:not(#\9) {
|
|
312
|
+
position: relative;
|
|
313
|
+
block-size: 20px;
|
|
314
|
+
max-block-size: 20px;
|
|
315
|
+
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-item-selected-wl5ttm, #006ce0);
|
|
316
|
+
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-item-selected-wl5ttm, #006ce0);
|
|
317
|
+
padding-inline-start: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
318
|
+
padding-inline-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
319
|
+
display: flex;
|
|
320
|
+
align-items: center;
|
|
321
|
+
background: var(--color-background-item-selected-9gppru, #f0fbff);
|
|
322
|
+
border-start-start-radius: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
323
|
+
border-start-end-radius: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
324
|
+
border-end-start-radius: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
325
|
+
border-end-end-radius: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
326
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
327
|
+
box-sizing: border-box;
|
|
328
|
+
max-inline-size: 100%;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.awsui_disable-padding_1i2wg_16pp7_331:not(#\9) {
|
|
332
|
+
padding-block-start: 0;
|
|
333
|
+
padding-block-end: 0;
|
|
334
|
+
padding-inline-start: 0;
|
|
335
|
+
padding-inline-end: 0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.awsui_token-box-readonly_1i2wg_16pp7_338:not(#\9),
|
|
339
|
+
.awsui_token-box-disabled_1i2wg_16pp7_339:not(#\9) {
|
|
340
|
+
border-color: var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
341
|
+
background-color: var(--color-background-container-content-6u8rvp, #ffffff);
|
|
342
|
+
pointer-events: none;
|
|
343
|
+
}
|
|
344
|
+
.awsui_token-box-readonly_1i2wg_16pp7_338 > .awsui_dismiss-button_1i2wg_16pp7_193:not(#\9),
|
|
345
|
+
.awsui_token-box-disabled_1i2wg_16pp7_339 > .awsui_dismiss-button_1i2wg_16pp7_193:not(#\9) {
|
|
346
|
+
color: var(--color-text-button-inline-icon-disabled-82hho0, #b4b4bb);
|
|
347
|
+
cursor: initial;
|
|
348
|
+
}
|
|
349
|
+
.awsui_token-box-readonly_1i2wg_16pp7_338 > .awsui_dismiss-button_1i2wg_16pp7_193:not(#\9):hover,
|
|
350
|
+
.awsui_token-box-disabled_1i2wg_16pp7_339 > .awsui_dismiss-button_1i2wg_16pp7_193:not(#\9):hover {
|
|
351
|
+
color: var(--color-text-button-inline-icon-disabled-82hho0, #b4b4bb);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.awsui_token-box-disabled_1i2wg_16pp7_339:not(#\9) {
|
|
355
|
+
border-color: var(--color-border-control-disabled-uj7t08, #dedee3);
|
|
356
|
+
color: var(--color-text-disabled-rox5hg, #b4b4bb);
|
|
357
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"root": "awsui_root_1i2wg_16pp7_161",
|
|
6
|
+
"dismiss-button": "awsui_dismiss-button_1i2wg_16pp7_193",
|
|
7
|
+
"dismiss-button-inline": "awsui_dismiss-button-inline_1i2wg_16pp7_233",
|
|
8
|
+
"icon": "awsui_icon_1i2wg_16pp7_240",
|
|
9
|
+
"icon-inline": "awsui_icon-inline_1i2wg_16pp7_246",
|
|
10
|
+
"token-normal": "awsui_token-normal_1i2wg_16pp7_251",
|
|
11
|
+
"token-inline": "awsui_token-inline_1i2wg_16pp7_258",
|
|
12
|
+
"token-option-inline": "awsui_token-option-inline_1i2wg_16pp7_284",
|
|
13
|
+
"token-box": "awsui_token-box_1i2wg_16pp7_288",
|
|
14
|
+
"token-box-without-dismiss": "awsui_token-box-without-dismiss_1i2wg_16pp7_307",
|
|
15
|
+
"token-box-inline": "awsui_token-box-inline_1i2wg_16pp7_311",
|
|
16
|
+
"disable-padding": "awsui_disable-padding_1i2wg_16pp7_331",
|
|
17
|
+
"token-box-readonly": "awsui_token-box-readonly_1i2wg_16pp7_338",
|
|
18
|
+
"token-box-disabled": "awsui_token-box-disabled_1i2wg_16pp7_339"
|
|
19
|
+
};
|
|
20
|
+
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import { LabelIdentifier } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';
|
|
2
1
|
import { GeneratedAnalyticsMetadataTokenListShowLess, GeneratedAnalyticsMetadataTokenListShowMore } from '../../internal/components/token-list/analytics-metadata/interfaces';
|
|
3
|
-
export interface GeneratedAnalyticsMetadataTokenGroupDismiss {
|
|
4
|
-
action: 'dismiss';
|
|
5
|
-
detail: {
|
|
6
|
-
label: LabelIdentifier;
|
|
7
|
-
position?: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
2
|
export type GeneratedAnalyticsMetadataTokenGroupShowMore = GeneratedAnalyticsMetadataTokenListShowMore;
|
|
11
3
|
export type GeneratedAnalyticsMetadataTokenGroupShowLess = GeneratedAnalyticsMetadataTokenListShowLess;
|
|
12
4
|
export interface GeneratedAnalyticsMetadataTokenGroupComponent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/token-group/analytics-metadata/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/token-group/analytics-metadata/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,2CAA2C,EAC3C,2CAA2C,EAC5C,MAAM,oEAAoE,CAAC;AAE5E,MAAM,MAAM,4CAA4C,GAAG,2CAA2C,CAAC;AACvG,MAAM,MAAM,4CAA4C,GAAG,2CAA2C,CAAC;AAEvG,MAAM,WAAW,6CAA6C;IAC5D,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/token-group/analytics-metadata/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport {
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/token-group/analytics-metadata/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport {\n GeneratedAnalyticsMetadataTokenListShowLess,\n GeneratedAnalyticsMetadataTokenListShowMore,\n} from '../../internal/components/token-list/analytics-metadata/interfaces';\n\nexport type GeneratedAnalyticsMetadataTokenGroupShowMore = GeneratedAnalyticsMetadataTokenListShowMore;\nexport type GeneratedAnalyticsMetadataTokenGroupShowLess = GeneratedAnalyticsMetadataTokenListShowLess;\n\nexport interface GeneratedAnalyticsMetadataTokenGroupComponent {\n name: 'awsui.TokenGroup';\n label: string;\n properties: {\n itemsCount: string;\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/token-group/internal.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/token-group/internal.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,KAAK,uBAAuB,GAAG,YAAY,CAAC,eAAe,EAAE,OAAO,GAAG,WAAW,CAAC,GACjF,0BAA0B,GAAG;IAC3B,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,KAAK,OAAO,CAAC;CAC1D,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,SAAS,EACT,KAAK,EACL,SAAS,EACT,KAAK,EACL,WAAW,EACX,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,uBAAuB,eAwEzB"}
|
package/token-group/internal.js
CHANGED
|
@@ -5,13 +5,13 @@ import React, { useState } from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';
|
|
7
7
|
import { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';
|
|
8
|
+
import InternalIcon from '../icon/internal';
|
|
8
9
|
import { getBaseProps } from '../internal/base-component';
|
|
9
|
-
import Option from '../internal/components/option';
|
|
10
10
|
import TokenList from '../internal/components/token-list';
|
|
11
11
|
import { fireNonCancelableEvent } from '../internal/events';
|
|
12
12
|
import checkControlled from '../internal/hooks/check-controlled';
|
|
13
13
|
import { useListFocusController } from '../internal/hooks/use-list-focus-controller';
|
|
14
|
-
import
|
|
14
|
+
import InternalToken from '../token/internal';
|
|
15
15
|
import tokenListStyles from '../internal/components/token-list/styles.css.js';
|
|
16
16
|
import styles from './styles.css.js';
|
|
17
17
|
export default function InternalTokenGroup(_a) {
|
|
@@ -31,13 +31,12 @@ export default function InternalTokenGroup(_a) {
|
|
|
31
31
|
const hasItems = items.length > 0;
|
|
32
32
|
const mergedRef = useMergeRefs(__internalRootRef, tokenListRef);
|
|
33
33
|
return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.root, hasItems && styles['has-items'], disableOuterPadding && styles['no-padding']), ref: mergedRef }),
|
|
34
|
-
React.createElement(TokenList, { alignment: alignment, items: items, limit: limit, renderItem: (item, itemIndex) => (React.createElement(
|
|
34
|
+
React.createElement(TokenList, { alignment: alignment, items: items, limit: limit, renderItem: (item, itemIndex) => (React.createElement(InternalToken, Object.assign({}, item, { label: item.label, key: itemIndex, onDismiss: () => {
|
|
35
35
|
fireNonCancelableEvent(onDismiss, { itemIndex });
|
|
36
36
|
setNextFocusIndex(itemIndex);
|
|
37
|
-
},
|
|
37
|
+
}, readOnly: readOnly || (isItemReadOnly === null || isItemReadOnly === void 0 ? void 0 : isItemReadOnly(item)), variant: 'normal', icon: item.iconName || item.iconUrl || item.iconSvg ? (React.createElement(InternalIcon, { name: item.iconName, svg: item.iconSvg, url: item.iconUrl, ariaLabel: item.iconAlt, size: 'normal' })) : undefined }, (item.disabled || readOnly
|
|
38
38
|
? {}
|
|
39
|
-
: getAnalyticsMetadataAttribute({ detail: { position: `${itemIndex + 1}` } }))),
|
|
40
|
-
React.createElement(Option, { option: item }))), i18nStrings: i18nStrings, limitShowFewerAriaLabel: limitShowFewerAriaLabel, limitShowMoreAriaLabel: limitShowMoreAriaLabel, onExpandedClick: isExpanded => {
|
|
39
|
+
: getAnalyticsMetadataAttribute({ detail: { position: `${itemIndex + 1}` } }))))), i18nStrings: i18nStrings, limitShowFewerAriaLabel: limitShowFewerAriaLabel, limitShowMoreAriaLabel: limitShowMoreAriaLabel, onExpandedClick: isExpanded => {
|
|
41
40
|
if (isExpanded && limit) {
|
|
42
41
|
setNextFocusIndex(limit);
|
|
43
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/token-group/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/token-group/internal.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalIcon from '../icon/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport TokenList from '../internal/components/token-list';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useListFocusController } from '../internal/hooks/use-list-focus-controller';\nimport { SomeRequired } from '../internal/types';\nimport InternalToken from '../token/internal';\nimport { TokenGroupProps } from './interfaces';\n\nimport tokenListStyles from '../internal/components/token-list/styles.css.js';\nimport styles from './styles.css.js';\n\ntype InternalTokenGroupProps = SomeRequired<TokenGroupProps, 'items' | 'alignment'> &\n InternalBaseComponentProps & {\n isItemReadOnly?: (item: TokenGroupProps.Item) => boolean;\n };\n\nexport default function InternalTokenGroup({\n alignment,\n items,\n onDismiss,\n limit,\n i18nStrings,\n disableOuterPadding,\n limitShowFewerAriaLabel,\n limitShowMoreAriaLabel,\n readOnly,\n isItemReadOnly,\n __internalRootRef,\n ...props\n}: InternalTokenGroupProps) {\n checkControlled('TokenGroup', 'items', items, 'onDismiss', onDismiss);\n\n const [nextFocusIndex, setNextFocusIndex] = useState<null | number>(null);\n const tokenListRef = useListFocusController({\n nextFocusIndex,\n onFocusMoved: target => {\n target.focus();\n setNextFocusIndex(null);\n },\n listItemSelector: `.${tokenListStyles['list-item']}`,\n showMoreSelector: `.${tokenListStyles.toggle}`,\n });\n\n const baseProps = getBaseProps(props);\n const hasItems = items.length > 0;\n const mergedRef = useMergeRefs(__internalRootRef, tokenListRef);\n return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.root,\n hasItems && styles['has-items'],\n disableOuterPadding && styles['no-padding']\n )}\n ref={mergedRef}\n >\n <TokenList\n alignment={alignment}\n items={items}\n limit={limit}\n renderItem={(item, itemIndex) => (\n <InternalToken\n {...item}\n label={item.label}\n key={itemIndex}\n onDismiss={() => {\n fireNonCancelableEvent(onDismiss, { itemIndex });\n setNextFocusIndex(itemIndex);\n }}\n readOnly={readOnly || isItemReadOnly?.(item)}\n variant={'normal'}\n icon={\n item.iconName || item.iconUrl || item.iconSvg ? (\n <InternalIcon\n name={item.iconName}\n svg={item.iconSvg}\n url={item.iconUrl}\n ariaLabel={item.iconAlt}\n size={'normal'}\n />\n ) : undefined\n }\n {...(item.disabled || readOnly\n ? {}\n : getAnalyticsMetadataAttribute({ detail: { position: `${itemIndex + 1}` } }))}\n />\n )}\n i18nStrings={i18nStrings}\n limitShowFewerAriaLabel={limitShowFewerAriaLabel}\n limitShowMoreAriaLabel={limitShowMoreAriaLabel}\n onExpandedClick={isExpanded => {\n if (isExpanded && limit) {\n setNextFocusIndex(limit);\n } else {\n setNextFocusIndex(null);\n }\n }}\n />\n </div>\n );\n}\n"]}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"token-box": "awsui_token-box_dm8gx_1a95u_245",
|
|
10
|
-
"token-box-readonly": "awsui_token-box-readonly_dm8gx_1a95u_265",
|
|
11
|
-
"token-box-disabled": "awsui_token-box-disabled_dm8gx_1a95u_279"
|
|
4
|
+
"dismiss-button": "awsui_dismiss-button_dm8gx_1wq3k_145",
|
|
5
|
+
"token": "awsui_token_dm8gx_1wq3k_146",
|
|
6
|
+
"root": "awsui_root_dm8gx_1wq3k_150",
|
|
7
|
+
"has-items": "awsui_has-items_dm8gx_1wq3k_181",
|
|
8
|
+
"no-padding": "awsui_no-padding_dm8gx_1wq3k_181"
|
|
12
9
|
};
|
|
13
10
|
|
|
@@ -142,23 +142,12 @@
|
|
|
142
142
|
*/
|
|
143
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
SPDX-License-Identifier: Apache-2.0
|
|
152
|
-
*/
|
|
153
|
-
/*
|
|
154
|
-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
155
|
-
SPDX-License-Identifier: Apache-2.0
|
|
156
|
-
*/
|
|
157
|
-
/*
|
|
158
|
-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
159
|
-
SPDX-License-Identifier: Apache-2.0
|
|
160
|
-
*/
|
|
161
|
-
.awsui_root_dm8gx_1a95u_161:not(#\9) {
|
|
145
|
+
.awsui_dismiss-button_dm8gx_1wq3k_145:not(#\9),
|
|
146
|
+
.awsui_token_dm8gx_1wq3k_146:not(#\9) {
|
|
147
|
+
/* used in test-utils */
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.awsui_root_dm8gx_1wq3k_150:not(#\9) {
|
|
162
151
|
border-collapse: separate;
|
|
163
152
|
border-spacing: 0;
|
|
164
153
|
box-sizing: border-box;
|
|
@@ -189,103 +178,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
189
178
|
-webkit-font-smoothing: auto;
|
|
190
179
|
-moz-osx-font-smoothing: auto;
|
|
191
180
|
}
|
|
192
|
-
.
|
|
181
|
+
.awsui_root_dm8gx_1wq3k_150.awsui_has-items_dm8gx_1wq3k_181:not(#\9):not(.awsui_no-padding_dm8gx_1wq3k_181) {
|
|
193
182
|
padding-block-start: var(--space-xs-ymlm0b, 8px);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.awsui_dismiss-button_dm8gx_1a95u_196:not(#\9) {
|
|
197
|
-
margin-block-start: -1px;
|
|
198
|
-
margin-block-end: 0;
|
|
199
|
-
margin-inline-start: var(--space-xxs-hwfkai, 4px);
|
|
200
|
-
margin-inline-end: -1px;
|
|
201
|
-
border-block: 1px solid transparent;
|
|
202
|
-
border-inline: 1px solid transparent;
|
|
203
|
-
padding-block: 0;
|
|
204
|
-
padding-inline: var(--space-xxs-hwfkai, 4px);
|
|
205
|
-
color: var(--color-text-button-inline-icon-default-f8xgpk, #006ce0);
|
|
206
|
-
background-color: transparent;
|
|
207
|
-
}
|
|
208
|
-
body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_1a95u_196:not(#\9):focus {
|
|
209
|
-
position: relative;
|
|
210
|
-
}
|
|
211
|
-
body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_1a95u_196:not(#\9):focus {
|
|
212
|
-
outline: 2px dotted transparent;
|
|
213
|
-
outline-offset: calc(0px - 1px);
|
|
214
|
-
}
|
|
215
|
-
body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_1a95u_196:not(#\9):focus::before {
|
|
216
|
-
content: " ";
|
|
217
|
-
display: block;
|
|
218
|
-
position: absolute;
|
|
219
|
-
inset-inline-start: calc(-1 * 0px);
|
|
220
|
-
inset-block-start: calc(-1 * 0px);
|
|
221
|
-
inline-size: calc(100% + 0px + 0px);
|
|
222
|
-
block-size: calc(100% + 0px + 0px);
|
|
223
|
-
border-start-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
224
|
-
border-start-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
225
|
-
border-end-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
226
|
-
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
227
|
-
box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
|
|
228
|
-
}
|
|
229
|
-
.awsui_dismiss-button_dm8gx_1a95u_196:not(#\9):focus {
|
|
230
|
-
outline: none;
|
|
231
|
-
text-decoration: none;
|
|
232
|
-
}
|
|
233
|
-
.awsui_dismiss-button_dm8gx_1a95u_196:not(#\9):hover {
|
|
234
|
-
cursor: pointer;
|
|
235
|
-
color: var(--color-text-button-inline-icon-hover-c08r6g, #002b66);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.awsui_token_dm8gx_1a95u_238:not(#\9) {
|
|
239
|
-
block-size: 100%;
|
|
240
|
-
display: flex;
|
|
241
|
-
flex-direction: column;
|
|
242
|
-
gap: var(--space-xxs-hwfkai, 4px);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.awsui_token-box_dm8gx_1a95u_245:not(#\9) {
|
|
246
|
-
position: relative;
|
|
247
|
-
block-size: 100%;
|
|
248
|
-
border-block: var(--border-width-token-2ukdpu, 2px) solid var(--color-border-item-selected-wl5ttm, #006ce0);
|
|
249
|
-
border-inline: var(--border-width-token-2ukdpu, 2px) solid var(--color-border-item-selected-wl5ttm, #006ce0);
|
|
250
|
-
padding-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
251
|
-
padding-block-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
252
|
-
padding-inline-start: var(--space-field-horizontal-0aq2ch, 12px);
|
|
253
|
-
padding-inline-end: var(--space-xxs-hwfkai, 4px);
|
|
254
|
-
display: flex;
|
|
255
|
-
align-items: flex-start;
|
|
256
|
-
background: var(--color-background-item-selected-9gppru, #f0fbff);
|
|
257
|
-
border-start-start-radius: var(--border-radius-token-ycnemh, 8px);
|
|
258
|
-
border-start-end-radius: var(--border-radius-token-ycnemh, 8px);
|
|
259
|
-
border-end-start-radius: var(--border-radius-token-ycnemh, 8px);
|
|
260
|
-
border-end-end-radius: var(--border-radius-token-ycnemh, 8px);
|
|
261
|
-
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
262
|
-
box-sizing: border-box;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.awsui_token-box-readonly_dm8gx_1a95u_265:not(#\9) {
|
|
266
|
-
border-color: var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
267
|
-
background-color: var(--color-background-container-content-6u8rvp, #ffffff);
|
|
268
|
-
pointer-events: none;
|
|
269
|
-
}
|
|
270
|
-
.awsui_token-box-readonly_dm8gx_1a95u_265 > .awsui_dismiss-button_dm8gx_1a95u_196:not(#\9) {
|
|
271
|
-
color: var(--color-text-button-inline-icon-disabled-82hho0, #b4b4bb);
|
|
272
|
-
}
|
|
273
|
-
.awsui_token-box-readonly_dm8gx_1a95u_265 > .awsui_dismiss-button_dm8gx_1a95u_196:not(#\9):hover {
|
|
274
|
-
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
275
|
-
cursor: initial;
|
|
276
|
-
color: var(--color-text-button-inline-icon-disabled-82hho0, #b4b4bb);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.awsui_token-box-disabled_dm8gx_1a95u_279.awsui_token-box-disabled_dm8gx_1a95u_279:not(#\9) {
|
|
280
|
-
border-color: var(--color-border-control-disabled-uj7t08, #dedee3);
|
|
281
|
-
background-color: var(--color-background-container-content-6u8rvp, #ffffff);
|
|
282
|
-
color: var(--color-text-disabled-rox5hg, #b4b4bb);
|
|
283
|
-
pointer-events: none;
|
|
284
|
-
}
|
|
285
|
-
.awsui_token-box-disabled_dm8gx_1a95u_279.awsui_token-box-disabled_dm8gx_1a95u_279 > .awsui_dismiss-button_dm8gx_1a95u_196:not(#\9) {
|
|
286
|
-
color: var(--color-text-button-inline-icon-disabled-82hho0, #b4b4bb);
|
|
287
|
-
}
|
|
288
|
-
.awsui_token-box-disabled_dm8gx_1a95u_279.awsui_token-box-disabled_dm8gx_1a95u_279 > .awsui_dismiss-button_dm8gx_1a95u_196:not(#\9):hover {
|
|
289
|
-
cursor: initial;
|
|
290
|
-
color: var(--color-text-button-inline-icon-disabled-82hho0, #b4b4bb);
|
|
291
183
|
}
|