@cloudscape-design/components 3.0.1021 → 3.0.1023
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/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/analytics/interfaces.d.ts +2 -2
- package/internal/analytics/interfaces.d.ts.map +1 -1
- package/internal/analytics/interfaces.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/{table/expandable-rows/expand-toggle-button.d.ts → internal/components/expand-toggle-button/index.d.ts} +4 -2
- package/internal/components/expand-toggle-button/index.d.ts.map +1 -0
- package/{table/expandable-rows/expand-toggle-button.js → internal/components/expand-toggle-button/index.js} +5 -6
- package/internal/components/expand-toggle-button/index.js.map +1 -0
- package/internal/components/expand-toggle-button/styles.css.js +8 -0
- package/{table/expandable-rows → internal/components/expand-toggle-button}/styles.scoped.css +18 -18
- package/{table/expandable-rows → internal/components/expand-toggle-button}/styles.selectors.js +3 -3
- package/internal/components/structured-item/index.d.ts +2 -1
- package/internal/components/structured-item/index.d.ts.map +1 -1
- package/internal/components/structured-item/index.js +2 -2
- package/internal/components/structured-item/index.js.map +1 -1
- package/internal/components/structured-item/interfaces.d.ts +1 -0
- package/internal/components/structured-item/interfaces.d.ts.map +1 -1
- package/internal/components/structured-item/interfaces.js.map +1 -1
- package/internal/components/structured-item/styles.css.js +7 -6
- package/internal/components/structured-item/styles.scoped.css +10 -8
- package/internal/components/structured-item/styles.selectors.js +7 -6
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/multiselect/internal.d.ts.map +1 -1
- package/multiselect/internal.js +3 -2
- package/multiselect/internal.js.map +1 -1
- package/package.json +2 -1
- package/table/body-cell/td-element.d.ts.map +1 -1
- package/table/body-cell/td-element.js +1 -1
- package/table/body-cell/td-element.js.map +1 -1
- package/test-utils/dom/index.d.ts +20 -0
- package/test-utils/dom/index.js +12 -1
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/table/index.js +7 -7
- package/test-utils/dom/table/index.js.map +1 -1
- package/test-utils/dom/tree-view/index.d.ts +61 -0
- package/test-utils/dom/tree-view/index.js +95 -0
- package/test-utils/dom/tree-view/index.js.map +1 -0
- package/test-utils/selectors/index.d.ts +18 -0
- package/test-utils/selectors/index.js +12 -1
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/table/index.js +7 -7
- package/test-utils/selectors/table/index.js.map +1 -1
- package/test-utils/selectors/tree-view/index.d.ts +61 -0
- package/test-utils/selectors/tree-view/index.js +95 -0
- package/test-utils/selectors/tree-view/index.js.map +1 -0
- package/token-group/internal.d.ts +4 -1
- package/token-group/internal.d.ts.map +1 -1
- package/token-group/internal.js +2 -2
- package/token-group/internal.js.map +1 -1
- package/tree-view/index.d.ts +5 -0
- package/tree-view/index.d.ts.map +1 -0
- package/tree-view/index.js +17 -0
- package/tree-view/index.js.map +1 -0
- package/tree-view/interfaces.d.ts +79 -0
- package/tree-view/interfaces.d.ts.map +1 -0
- package/tree-view/interfaces.js +2 -0
- package/tree-view/interfaces.js.map +1 -0
- package/tree-view/internal.d.ts +20 -0
- package/tree-view/internal.d.ts.map +1 -0
- package/tree-view/internal.js +35 -0
- package/tree-view/internal.js.map +1 -0
- package/tree-view/styles.css.js +7 -0
- package/tree-view/styles.scoped.css +223 -0
- package/tree-view/styles.selectors.js +8 -0
- package/tree-view/test-classes/styles.css.js +10 -0
- package/tree-view/test-classes/styles.scoped.css +11 -0
- package/tree-view/test-classes/styles.selectors.js +11 -0
- package/tree-view/tree-item/index.d.ts +21 -0
- package/tree-view/tree-item/index.d.ts.map +1 -0
- package/tree-view/tree-item/index.js +40 -0
- package/tree-view/tree-item/index.js.map +1 -0
- package/tree-view/tree-item/styles.css.js +10 -0
- package/tree-view/tree-item/styles.scoped.css +216 -0
- package/tree-view/tree-item/styles.selectors.js +11 -0
- package/table/expandable-rows/expand-toggle-button.d.ts.map +0 -1
- package/table/expandable-rows/expand-toggle-button.js.map +0 -1
- package/table/expandable-rows/styles.css.js +0 -8
|
@@ -0,0 +1,216 @@
|
|
|
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
|
+
/*
|
|
114
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
115
|
+
SPDX-License-Identifier: Apache-2.0
|
|
116
|
+
*/
|
|
117
|
+
/*
|
|
118
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
119
|
+
SPDX-License-Identifier: Apache-2.0
|
|
120
|
+
*/
|
|
121
|
+
/*
|
|
122
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
123
|
+
SPDX-License-Identifier: Apache-2.0
|
|
124
|
+
*/
|
|
125
|
+
/*
|
|
126
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
127
|
+
SPDX-License-Identifier: Apache-2.0
|
|
128
|
+
*/
|
|
129
|
+
/*
|
|
130
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
131
|
+
SPDX-License-Identifier: Apache-2.0
|
|
132
|
+
*/
|
|
133
|
+
/*
|
|
134
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
135
|
+
SPDX-License-Identifier: Apache-2.0
|
|
136
|
+
*/
|
|
137
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
138
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
139
|
+
/*
|
|
140
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
141
|
+
SPDX-License-Identifier: Apache-2.0
|
|
142
|
+
*/
|
|
143
|
+
/*
|
|
144
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
145
|
+
SPDX-License-Identifier: Apache-2.0
|
|
146
|
+
*/
|
|
147
|
+
/*
|
|
148
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
149
|
+
SPDX-License-Identifier: Apache-2.0
|
|
150
|
+
*/
|
|
151
|
+
/*
|
|
152
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
153
|
+
SPDX-License-Identifier: Apache-2.0
|
|
154
|
+
*/
|
|
155
|
+
/*
|
|
156
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
157
|
+
SPDX-License-Identifier: Apache-2.0
|
|
158
|
+
*/
|
|
159
|
+
/*
|
|
160
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
161
|
+
SPDX-License-Identifier: Apache-2.0
|
|
162
|
+
*/
|
|
163
|
+
/*
|
|
164
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
165
|
+
SPDX-License-Identifier: Apache-2.0
|
|
166
|
+
*/
|
|
167
|
+
/*
|
|
168
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
169
|
+
SPDX-License-Identifier: Apache-2.0
|
|
170
|
+
*/
|
|
171
|
+
/*
|
|
172
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
173
|
+
SPDX-License-Identifier: Apache-2.0
|
|
174
|
+
*/
|
|
175
|
+
/*
|
|
176
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
177
|
+
SPDX-License-Identifier: Apache-2.0
|
|
178
|
+
*/
|
|
179
|
+
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
180
|
+
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
181
|
+
.awsui_treeitem-group_1agpu_1w0en_181:not(#\9) {
|
|
182
|
+
margin-block: 0;
|
|
183
|
+
margin-inline: 0;
|
|
184
|
+
padding-block: 0;
|
|
185
|
+
padding-inline: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.awsui_treeitem_1agpu_1w0en_181:not(#\9) {
|
|
189
|
+
margin-block: 0;
|
|
190
|
+
margin-inline: 0;
|
|
191
|
+
padding-block: 0;
|
|
192
|
+
padding-inline: 0;
|
|
193
|
+
align-items: baseline;
|
|
194
|
+
display: grid;
|
|
195
|
+
grid-template-columns: 28px 1fr;
|
|
196
|
+
grid-template-rows: auto auto auto;
|
|
197
|
+
}
|
|
198
|
+
.awsui_treeitem_1agpu_1w0en_181 > .awsui_expand-toggle-wrapper_1agpu_1w0en_198:not(#\9) {
|
|
199
|
+
grid-column: 1;
|
|
200
|
+
grid-row: 1;
|
|
201
|
+
margin-inline-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
202
|
+
}
|
|
203
|
+
.awsui_treeitem_1agpu_1w0en_181 > .awsui_expand-toggle-wrapper_1agpu_1w0en_198 > .awsui_toggle_1agpu_1w0en_203:not(#\9) {
|
|
204
|
+
justify-self: center;
|
|
205
|
+
position: relative;
|
|
206
|
+
inset-block-start: 2px;
|
|
207
|
+
}
|
|
208
|
+
.awsui_treeitem_1agpu_1w0en_181 > .awsui_structured-item-wrapper_1agpu_1w0en_208:not(#\9) {
|
|
209
|
+
grid-column: 2;
|
|
210
|
+
grid-row: 1/span 2;
|
|
211
|
+
padding-block: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
212
|
+
}
|
|
213
|
+
.awsui_treeitem_1agpu_1w0en_181 > .awsui_treeitem-group_1agpu_1w0en_181:not(#\9) {
|
|
214
|
+
grid-column: 2;
|
|
215
|
+
grid-row: 3;
|
|
216
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"treeitem-group": "awsui_treeitem-group_1agpu_1w0en_181",
|
|
6
|
+
"treeitem": "awsui_treeitem_1agpu_1w0en_181",
|
|
7
|
+
"expand-toggle-wrapper": "awsui_expand-toggle-wrapper_1agpu_1w0en_198",
|
|
8
|
+
"toggle": "awsui_toggle_1agpu_1w0en_203",
|
|
9
|
+
"structured-item-wrapper": "awsui_structured-item-wrapper_1agpu_1w0en_208"
|
|
10
|
+
};
|
|
11
|
+
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expand-toggle-button.d.ts","sourceRoot":"","sources":["../../../../src/table/expandable-rows/expand-toggle-button.tsx"],"names":[],"mappings":";AAWA,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,GACpB,EAAE;IACD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,eAoBA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expand-toggle-button.js","sourceRoot":"","sources":["../../../../src/table/expandable-rows/expand-toggle-button.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AAEvG,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,UAAU,kBAAkB,CAAC,EACjC,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,GAMpB;IACC,MAAM,SAAS,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAC3D,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,EACb,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,QAAQ,gBACN,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,iBAAiB,mBACjD,UAAU,EACzB,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,EAClC,OAAO,EAAE,sBAAsB;QAE/B,oBAAC,YAAY,IACX,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,mBAAmB,EACxB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,UAAU,IAAI,MAAM,CAAC,6BAA6B,CAAC,CAAC,GAClG,CACK,CACV,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport InternalIcon from '../../icon/internal';\nimport { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';\n\nimport styles from './styles.css.js';\n\nexport function ExpandToggleButton({\n isExpanded,\n onExpandableItemToggle,\n expandButtonLabel,\n collapseButtonLabel,\n}: {\n isExpanded?: boolean;\n onExpandableItemToggle?: () => void;\n expandButtonLabel?: string;\n collapseButtonLabel?: string;\n}) {\n const buttonRef = useRef<HTMLButtonElement>(null);\n const { tabIndex } = useSingleTabStopNavigation(buttonRef);\n return (\n <button\n type=\"button\"\n ref={buttonRef}\n tabIndex={tabIndex}\n aria-label={isExpanded ? collapseButtonLabel : expandButtonLabel}\n aria-expanded={isExpanded}\n className={styles['expand-toggle']}\n onClick={onExpandableItemToggle}\n >\n <InternalIcon\n size=\"small\"\n name=\"caret-down-filled\"\n className={clsx(styles['expand-toggle-icon'], isExpanded && styles['expand-toggle-icon-expanded'])}\n />\n </button>\n );\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import './styles.scoped.css';
|
|
3
|
-
export default {
|
|
4
|
-
"expand-toggle-icon": "awsui_expand-toggle-icon_1ss49_ch4an_153",
|
|
5
|
-
"expand-toggle-icon-expanded": "awsui_expand-toggle-icon-expanded_1ss49_ch4an_174",
|
|
6
|
-
"expand-toggle": "awsui_expand-toggle_1ss49_ch4an_153"
|
|
7
|
-
};
|
|
8
|
-
|