@react-spectrum/tree 3.1.11 → 3.2.0
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/dist/import.mjs +3 -3
- package/dist/main.js +6 -6
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -3
- package/dist/module.js.map +1 -1
- package/dist/types/src/index.d.ts +3 -0
- package/package.json +13 -35
- package/src/index.ts +4 -3
- package/dist/TreeView.main.js +0 -310
- package/dist/TreeView.main.js.map +0 -1
- package/dist/TreeView.mjs +0 -299
- package/dist/TreeView.module.js +0 -299
- package/dist/TreeView.module.js.map +0 -1
- package/dist/tree.961568f2.css +0 -343
- package/dist/tree.961568f2.css.map +0 -1
- package/dist/types.d.ts +0 -36
- package/dist/types.d.ts.map +0 -1
- package/src/TreeView.tsx +0 -345
package/dist/tree.961568f2.css
DELETED
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
@layer s1-a, s1-b;
|
|
2
|
-
|
|
3
|
-
@layer a {
|
|
4
|
-
.s1-_Fs1-b {
|
|
5
|
-
outline-style: solid;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.s1-ds1-___I {
|
|
9
|
-
outline-color: var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.s1-_Hs1-c {
|
|
13
|
-
outline-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.s1-_G-yj8a3w {
|
|
17
|
-
outline-offset: -2px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.s1-ws1-c {
|
|
21
|
-
border-top-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.s1-xs1-c {
|
|
25
|
-
border-bottom-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.s1-us1-a {
|
|
29
|
-
border-inline-start-width: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.s1-vs1-a {
|
|
33
|
-
border-inline-end-width: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.s1-As1-a {
|
|
37
|
-
border-style: solid;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.s1-cs1-a {
|
|
41
|
-
border-color: #0000;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.s1-__ts1-a {
|
|
45
|
-
overflow-x: auto;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.s1-__us1-a {
|
|
49
|
-
overflow-y: auto;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.s1-Xs1-c {
|
|
53
|
-
position: relative;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.s1-ns1-k {
|
|
57
|
-
height: calc(2.5rem * var(--spectrum-global-dimension-scale-factor));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.s1-__ls1-a {
|
|
61
|
-
box-sizing: border-box;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.s1-6s1-c {
|
|
65
|
-
font-size: var(--spectrum-global-dimension-font-size-100);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.s1-7s1-d {
|
|
69
|
-
font-weight: 400;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.s1-9s1-b {
|
|
73
|
-
line-height: var(--spectrum-global-font-line-height-medium, 1.5);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.s1-as1-___K {
|
|
77
|
-
color: var(--spectrum-alias-text-color, var(--spectrum-global-color-gray-800));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.s1-__Fs1-b {
|
|
81
|
-
cursor: default;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.s1-__Fs1-c {
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.s1-b-ml9cvk {
|
|
89
|
-
background-color: var(--spectrum-table-row-background-color-hover, var(--spectrum-alias-highlight-hover));
|
|
90
|
-
background-color: var(--spectrum-table-row-background-color-hover, var(--spectrum-alias-highlight-hover));
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.s1-b-1t6gvb8 {
|
|
94
|
-
background-color: var(--spectrum-table-row-background-color-down, var(--spectrum-alias-highlight-active));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.s1-b-7vr0l1 {
|
|
98
|
-
background-color: var(--spectrum-table-row-background-color-selected, var(--spectrum-alias-highlight-selected));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.s1-_Ts1-f {
|
|
102
|
-
display: grid;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.s1-os1-Y {
|
|
106
|
-
width: 100%;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.s1-_Vs1-c {
|
|
110
|
-
align-items: center;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.s1-__e-1nxidkl-1nxidkl-1nxidkl-3hmti-1nxidkl-375yi6-1nxidkl-ykdwf2 {
|
|
114
|
-
grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(0, auto) 2.5rem minmax(0, auto) 1fr minmax(0, auto) auto;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.s1-__f-375yi6 {
|
|
118
|
-
grid-template-rows: 1fr;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.s1-__g-1qk85yo {
|
|
122
|
-
grid-template-areas: "drag-handle checkbox level-padding expand-button icon content actions actionmenu";
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.s1-as1-i {
|
|
126
|
-
color: var(--spectrum-gray-400);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.s1-__h-4wahvw {
|
|
130
|
-
grid-area: checkbox;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.s1-_K-37nn5o {
|
|
134
|
-
transition-duration: .16s;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.s1-Cs1-d {
|
|
138
|
-
margin-inline-start: .75rem;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.s1-Ds1-a {
|
|
142
|
-
margin-inline-end: 0;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.s1-__h-ykjmzy {
|
|
146
|
-
grid-area: icon;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.s1-Ds1-c {
|
|
150
|
-
margin-inline-end: .5rem;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.s1-__h-1mod4sg {
|
|
154
|
-
grid-area: content;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.s1-_gs1-a {
|
|
158
|
-
text-overflow: ellipsis;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.s1-_ks1-b {
|
|
162
|
-
white-space: nowrap;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.s1-__ts1-b {
|
|
166
|
-
overflow-x: hidden;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.s1-__us1-b {
|
|
170
|
-
overflow-y: hidden;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.s1-__h-8ayfo6 {
|
|
174
|
-
grid-area: actions;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.s1-_4-3t1x {
|
|
178
|
-
flex-grow: 0;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.s1-_3-3t1x {
|
|
182
|
-
flex-shrink: 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.s1-Cs1-F {
|
|
186
|
-
margin-inline-start: .125rem;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.s1-Ds1-b {
|
|
190
|
-
margin-inline-end: .25rem;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.s1-__h-wit6hk {
|
|
194
|
-
grid-area: actionmenu;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.s1-os1-i {
|
|
198
|
-
width: calc(2rem * var(--spectrum-global-dimension-scale-factor));
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.s1-_Ts1-a {
|
|
202
|
-
display: block;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.s1-Xs1-a {
|
|
206
|
-
position: absolute;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.s1-Ys1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
210
|
-
left: 0;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.s1-Ys1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
214
|
-
left: 0;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.s1-Ys1-a:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
218
|
-
right: 0;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.s1-Ys1-a:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
222
|
-
right: 0;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.s1-Zs1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
226
|
-
right: 0;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.s1-Zs1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
230
|
-
right: 0;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.s1-Zs1-a:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
234
|
-
left: 0;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.s1-Zs1-a:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
238
|
-
left: 0;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.s1-0-yj899n {
|
|
242
|
-
top: -1px;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.s1-0-yj8a3w {
|
|
246
|
-
top: -2px;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.s1-0s1-a {
|
|
250
|
-
top: 0;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.s1-2s1-a {
|
|
254
|
-
bottom: 0;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.s1-__zs1-a {
|
|
258
|
-
pointer-events: none;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.s1-_us1-b {
|
|
262
|
-
forced-color-adjust: none;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.s1-_p-1ytnijz {
|
|
266
|
-
box-shadow: inset 1px 0 0 0 var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400)), inset -1px 0 0 0 var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400)), inset 0 -1px 0 0 var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400)), inset 0 1px 0 0 var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400));
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.s1-_p-ba5uxf {
|
|
270
|
-
box-shadow: inset 2px 0 0 0 var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400)), inset -2px 0 0 0 var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400)), inset 0 -2px 0 0 var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400)), inset 0 2px 0 0 var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400));
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.s1-__h-pn4rxq {
|
|
274
|
-
grid-area: expand-button;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.s1-ns1-Y {
|
|
278
|
-
height: 100%;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.s1-4s1-b {
|
|
282
|
-
aspect-ratio: 1;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.s1-_Ts1-d {
|
|
286
|
-
display: flex;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.s1-_1s1-a {
|
|
290
|
-
flex-wrap: wrap;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.s1-_Us1-b {
|
|
294
|
-
align-content: center;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.s1-_Ws1-d {
|
|
298
|
-
justify-content: center;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.s1-_Fs1-a {
|
|
302
|
-
outline-style: none;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.s1-W-10b8jr2 {
|
|
306
|
-
transform: rotate(90deg);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.s1-W-negfvv {
|
|
310
|
-
transform: rotate(-90deg);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.s1-_I-1o2fh9e {
|
|
314
|
-
transition-property: transform ease var(--spectrum-global-animation-duration-100, .13s);
|
|
315
|
-
transition-duration: .15s;
|
|
316
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
@layer s1-b.s1-a {
|
|
321
|
-
@media (forced-colors: active) {
|
|
322
|
-
.s1-ds1-as1-___D {
|
|
323
|
-
outline-color: highlight;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.s1-cs1-as1-___y {
|
|
327
|
-
border-color: background;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.s1-as1-as1-___F {
|
|
331
|
-
color: graytext;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.s1-_ps1-a-zlnqab {
|
|
335
|
-
box-shadow: inset 1px 0 highlight, inset -1px 0 highlight, inset 0 -1px highlight, inset 0 1px highlight;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.s1-_ps1-a-4bhpmf {
|
|
339
|
-
box-shadow: inset 2px 0 highlight, inset -2px 0 highlight, inset 0 -2px highlight, inset 0 2px highlight;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
/*# sourceMappingURL=tree.961568f2.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"ACAA;;AAEA;EAOE;;;;EAMA;;;;EAcA;;;;EAMA;;;;EAkBA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAYA;;;;EAMA;;;;EAgCA;;;;EAMA;;;;EA5HA;;;;EAYA;;;;EAYA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAYA;;;;EAMA;;;;EAMA;;;;;EAYA;;;;EAMA;;;;EA1FA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EApCA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAlBA;;;;EAMA;;;;EANA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAxBA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAxBA;;;;EAMA;;;;EANA;;;;EAMA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAkBA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAYA;;;;EAMA;;;;EApFA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;;;;AA3CF;EACE;IACE;;;;IA0EA;;;;IAlDA;;;;IAoDA;;;;IAIA","sources":["f54a9241b0b1bdd2","packages/@react-spectrum/tree/src/TreeView.tsx"],"sourcesContent":["@import \"43ede2ea230cbe77\";\n@import \"d6186a3bcdea23c0\";\n@import \"9b0163e48ed44108\";\n@import \"4145f5de7372e962\";\n@import \"5c8e7aff246c25c0\";\n@import \"e6e7b4c2a4a805d7\";\n@import \"ed226d1e6a9f6d5d\";\n@import \"af6efb89500ab023\";\n@import \"5458487886ba8cfe\";\n@import \"5be3595defba4bd4\";\n","@layer s1-a, s1-b;\n\n@layer a {\n .s1-_Fs1-a {\n outline-style: none;\n }\n}\n\n@layer a {\n .s1-_Fs1-b {\n outline-style: solid;\n }\n}\n\n@layer a {\n .s1-ds1-___I {\n outline-color: var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400));\n }\n}\n\n@layer s1-b.s1-a {\n @media (forced-colors: active) {\n .s1-ds1-as1-___D {\n outline-color: Highlight;\n }\n }\n}\n\n@layer a {\n .s1-_Hs1-c {\n outline-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));\n }\n}\n\n@layer a {\n .s1-_G-yj8a3w {\n outline-offset: -2px;\n }\n}\n\n@layer a {\n .s1-ns1-Y {\n height: 100%;\n }\n}\n\n@layer a {\n .s1-os1-Y {\n width: 100%;\n }\n}\n\n@layer a {\n .s1-ws1-c {\n border-top-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));\n }\n}\n\n@layer a {\n .s1-xs1-c {\n border-bottom-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));\n }\n}\n\n@layer a {\n .s1-us1-a {\n border-inline-start-width: 0px;\n }\n}\n\n@layer a {\n .s1-vs1-a {\n border-inline-end-width: 0px;\n }\n}\n\n@layer a {\n .s1-__ls1-a {\n box-sizing: border-box;\n }\n}\n\n@layer a {\n .s1-As1-a {\n border-style: solid;\n }\n}\n\n@layer a {\n .s1-cs1-a {\n border-color: transparent;\n }\n}\n\n@layer s1-b.s1-a {\n @media (forced-colors: active) {\n .s1-cs1-as1-___y {\n border-color: Background;\n }\n }\n}\n\n@layer a {\n .s1-_Ws1-d {\n justify-content: center;\n }\n}\n\n@layer a {\n .s1-_Vs1-c {\n align-items: center;\n }\n}\n\n@layer a {\n .s1-_Ts1-d {\n display: flex;\n }\n}\n\n@layer a {\n .s1-__ts1-a {\n overflow-x: auto;\n }\n}\n\n@layer a {\n .s1-__us1-a {\n overflow-y: auto;\n }\n}\n\n"],"names":[],"version":3,"file":"tree.961568f2.css.map"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { AriaTreeProps } from "@react-aria/tree";
|
|
2
|
-
import { TreeItemContentProps, TreeItemProps } from "react-aria-components";
|
|
3
|
-
import { DOMRef, Expandable, Key, SpectrumSelectionProps, StyleProps } from "@react-types/shared";
|
|
4
|
-
import { JSX, ReactElement, ReactNode } from "react";
|
|
5
|
-
export interface SpectrumTreeViewProps<T> extends Omit<AriaTreeProps<T>, 'children' | 'render'>, StyleProps, SpectrumSelectionProps, Expandable {
|
|
6
|
-
/** Provides content to display when there are no items in the tree. */
|
|
7
|
-
renderEmptyState?: () => JSX.Element;
|
|
8
|
-
/**
|
|
9
|
-
* Handler that is called when a user performs an action on an item. The exact user event depends on
|
|
10
|
-
* the collection's `selectionStyle` prop and the interaction modality.
|
|
11
|
-
*/
|
|
12
|
-
onAction?: (key: Key) => void;
|
|
13
|
-
/**
|
|
14
|
-
* The contents of the tree.
|
|
15
|
-
*/
|
|
16
|
-
children?: ReactNode | ((item: T) => ReactNode);
|
|
17
|
-
}
|
|
18
|
-
export interface SpectrumTreeViewItemProps extends Omit<TreeItemProps, 'className' | 'style' | 'render' | 'value' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick'> {
|
|
19
|
-
/** Rendered contents of the tree item or child items. */
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* A tree view provides users with a way to navigate nested hierarchical information.
|
|
24
|
-
*/
|
|
25
|
-
export const TreeView: <T>(props: SpectrumTreeViewProps<T> & {
|
|
26
|
-
ref?: DOMRef<HTMLDivElement>;
|
|
27
|
-
}) => ReactElement;
|
|
28
|
-
export const TreeViewItem: (props: SpectrumTreeViewItemProps) => ReactNode;
|
|
29
|
-
export interface SpectrumTreeViewItemContentProps extends Omit<TreeItemContentProps, 'children'> {
|
|
30
|
-
/** Rendered contents of the tree item or child items. */
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
}
|
|
33
|
-
export const TreeViewItemContent: (props: SpectrumTreeViewItemContentProps) => ReactNode;
|
|
34
|
-
export { Collection } from 'react-aria-components';
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;AAoCA,uCAAuC,CAAC,CAAE,SAAQ,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC,EAAE,UAAU,EAAE,sBAAsB,EAAE,UAAU;IAC7I,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,IAAI,OAAO,CAAC;IACrC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC,CAAA;CAChD;AAED,0CAA2C,SAAQ,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,eAAe,GAAG,SAAS,CAAC;IAC9K,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;CACpB;AAqCD;;GAEG;AACH,OAAO,MAAM,UAmBP,CAAC,CAAC,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,OAAO,cAAc,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;AAoH5F,OAAO,MAAM,eAAgB,OAAO,yBAAyB,KAAG,SAa/D,CAAC;AAEF,iDAAkD,SAAQ,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC;IAC9F,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;CACpB;AAGD,OAAO,MAAM,sBAAuB,OAAO,gCAAgC,KAAG,SA+C7E,CAAC;ACzRF,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC","sources":["packages/@react-spectrum/tree/src/packages/@react-spectrum/tree/src/TreeView.tsx","packages/@react-spectrum/tree/src/packages/@react-spectrum/tree/src/index.ts","packages/@react-spectrum/tree/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {TreeViewItem, TreeView, TreeViewItemContent} from './TreeView';\nexport {Collection} from 'react-aria-components';\nexport type {SpectrumTreeViewProps, SpectrumTreeViewItemProps, SpectrumTreeViewItemContentProps} from './TreeView';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|