@react-spectrum/s2 3.0.0-nightly-6193c40ee-240920 → 3.0.0-nightly-9421c1409-240922
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/Accordion.cjs +74 -0
- package/dist/Accordion.cjs.map +1 -0
- package/dist/Accordion.css +16 -0
- package/dist/Accordion.css.map +1 -0
- package/dist/Accordion.mjs +68 -0
- package/dist/Accordion.mjs.map +1 -0
- package/dist/Disclosure.cjs +337 -0
- package/dist/Disclosure.cjs.map +1 -0
- package/dist/Disclosure.css +446 -0
- package/dist/Disclosure.css.map +1 -0
- package/dist/Disclosure.mjs +329 -0
- package/dist/Disclosure.mjs.map +1 -0
- package/dist/main.cjs +10 -0
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +5 -1
- package/dist/module.mjs.map +1 -1
- package/dist/types.d.ts +67 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/Accordion.tsx +84 -0
- package/src/Disclosure.tsx +291 -0
- package/src/index.ts +4 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import "./Disclosure.css";
|
|
2
|
+
import {CenterBaseline as $1f4b04be3f24aae3$export$768dac55bb57081d} from "./CenterBaseline.mjs";
|
|
3
|
+
import $4b69f02ec06b9226$export$2e2bcd8739ae039 from "./Chevron.mjs";
|
|
4
|
+
import {useSpectrumContextProps as $5ce63c423902f47d$export$764f6146fadd77f7} from "./useSpectrumContextProps.mjs";
|
|
5
|
+
import {jsx as $7VHtn$jsx, jsxs as $7VHtn$jsxs} from "react/jsx-runtime";
|
|
6
|
+
import {Provider as $7VHtn$Provider, Disclosure as $7VHtn$Disclosure, useLocale as $7VHtn$useLocale, DisclosureStateContext as $7VHtn$DisclosureStateContext, useSlottedContext as $7VHtn$useSlottedContext, Heading as $7VHtn$Heading, Button as $7VHtn$Button, DisclosurePanel as $7VHtn$DisclosurePanel} from "react-aria-components";
|
|
7
|
+
import {filterDOMProps as $7VHtn$filterDOMProps} from "@react-aria/utils";
|
|
8
|
+
import {createContext as $7VHtn$createContext, forwardRef as $7VHtn$forwardRef, useContext as $7VHtn$useContext} from "react";
|
|
9
|
+
import {useDOMRef as $7VHtn$useDOMRef} from "@react-spectrum/utils";
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
13
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
14
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
15
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
+
*
|
|
17
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
18
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
19
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
20
|
+
* governing permissions and limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
const $cf1d656285911959$export$d665dd135a51b28a = /*#__PURE__*/ (0, $7VHtn$createContext)(null);
|
|
30
|
+
const $cf1d656285911959$var$disclosure = function anonymous(props, overrides) {
|
|
31
|
+
let rules = " .";
|
|
32
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|_8|h|_5|_4|__A|__c|__d|__a|__b|U|__Q|X|Z|V|W|l|q|r)[^\s]+/g) || [];
|
|
33
|
+
rules += matches.join('');
|
|
34
|
+
let $q = false;
|
|
35
|
+
for (let p of matches)if (/^\s*q/.test(p)) $q = true;
|
|
36
|
+
rules += ' ao';
|
|
37
|
+
if (props.isQuiet) rules += ' ua';
|
|
38
|
+
else rules += ' ub';
|
|
39
|
+
if (props.isQuiet) rules += ' v-uamghwa';
|
|
40
|
+
else rules += ' v-uamghwb';
|
|
41
|
+
rules += ' va';
|
|
42
|
+
rules += ' sa';
|
|
43
|
+
rules += ' ta';
|
|
44
|
+
rules += ' wa';
|
|
45
|
+
rules += ' ch';
|
|
46
|
+
if (!$q) {
|
|
47
|
+
rules += ' qb-z005a2';
|
|
48
|
+
rules += ' q-ffvo8f';
|
|
49
|
+
}
|
|
50
|
+
return rules;
|
|
51
|
+
};
|
|
52
|
+
function $cf1d656285911959$var$Disclosure(props, ref) {
|
|
53
|
+
[props, ref] = (0, $5ce63c423902f47d$export$764f6146fadd77f7)(props, ref, $cf1d656285911959$export$d665dd135a51b28a);
|
|
54
|
+
let { size: size = 'M', density: density = 'regular', isQuiet: isQuiet, isDisabled: isDisabled } = props;
|
|
55
|
+
let domRef = (0, $7VHtn$useDOMRef)(ref);
|
|
56
|
+
let { UNSAFE_style: UNSAFE_style, UNSAFE_className: UNSAFE_className = '', ...otherProps } = props;
|
|
57
|
+
const domProps = (0, $7VHtn$filterDOMProps)(otherProps);
|
|
58
|
+
return /*#__PURE__*/ (0, $7VHtn$jsx)((0, $7VHtn$Provider), {
|
|
59
|
+
values: [
|
|
60
|
+
[
|
|
61
|
+
$cf1d656285911959$export$d665dd135a51b28a,
|
|
62
|
+
{
|
|
63
|
+
size: size,
|
|
64
|
+
isQuiet: isQuiet,
|
|
65
|
+
density: density,
|
|
66
|
+
isDisabled: isDisabled
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
],
|
|
70
|
+
children: /*#__PURE__*/ (0, $7VHtn$jsx)((0, $7VHtn$Disclosure), {
|
|
71
|
+
...domProps,
|
|
72
|
+
isDisabled: isDisabled,
|
|
73
|
+
ref: domRef,
|
|
74
|
+
style: UNSAFE_style,
|
|
75
|
+
className: (UNSAFE_className ?? '') + $cf1d656285911959$var$disclosure({
|
|
76
|
+
isQuiet: isQuiet
|
|
77
|
+
}, props.styles),
|
|
78
|
+
children: props.children
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* A disclosure is a collapsible section of content. It is composed of a a header with a heading and trigger button, and a panel that contains the content.
|
|
84
|
+
*/ let $cf1d656285911959$export$74a362b31437ec83 = /*#__PURE__*/ (0, $7VHtn$forwardRef)($cf1d656285911959$var$Disclosure);
|
|
85
|
+
const $cf1d656285911959$var$headingStyle = " . Aa Ba ya za";
|
|
86
|
+
const $cf1d656285911959$var$buttonStyles = function anonymous(props) {
|
|
87
|
+
let rules = " .";
|
|
88
|
+
if (props.isFocusVisible) rules += ' _Lb';
|
|
89
|
+
else rules += ' _La';
|
|
90
|
+
rules += ' da_____z';
|
|
91
|
+
rules += ' dx';
|
|
92
|
+
rules += ' _Nc';
|
|
93
|
+
rules += ' _M-3hmpw';
|
|
94
|
+
rules += ' _c-bc1l9oh';
|
|
95
|
+
rules += ' _c-1uotwbwg';
|
|
96
|
+
rules += ' _c-eo0c6sf';
|
|
97
|
+
rules += ' _c-enzzrge';
|
|
98
|
+
rules += ' _c-enzykdd';
|
|
99
|
+
rules += ' _c-enzwzjc';
|
|
100
|
+
rules += ' _c-enzrfpb';
|
|
101
|
+
rules += ' _ca';
|
|
102
|
+
if (props.size === "XL") {
|
|
103
|
+
rules += ' _dbo';
|
|
104
|
+
rules += ' _dn';
|
|
105
|
+
} else if (props.size === "L") {
|
|
106
|
+
rules += ' _dbm';
|
|
107
|
+
rules += ' _dj';
|
|
108
|
+
} else if (props.size === "M") {
|
|
109
|
+
rules += ' _dbj';
|
|
110
|
+
rules += ' _di';
|
|
111
|
+
} else if (props.size === "S") {
|
|
112
|
+
rules += ' _dbh';
|
|
113
|
+
rules += ' _dg';
|
|
114
|
+
}
|
|
115
|
+
rules += ' _ed';
|
|
116
|
+
rules += ' _f-1x99dlob';
|
|
117
|
+
rules += ' _fa';
|
|
118
|
+
if (props.isDisabled) rules += ' aj';
|
|
119
|
+
else {
|
|
120
|
+
if (props.isPressed) rules += ' ao';
|
|
121
|
+
else if (props.isFocusVisible) rules += ' ao';
|
|
122
|
+
else if (props.isHovered) rules += ' ao';
|
|
123
|
+
else rules += ' an';
|
|
124
|
+
}
|
|
125
|
+
rules += ' _Zd';
|
|
126
|
+
rules += ' _1d';
|
|
127
|
+
rules += ' C-10cd9hn';
|
|
128
|
+
rules += ' D-10cd9hn';
|
|
129
|
+
rules += ' E-1dbqcch';
|
|
130
|
+
rules += ' F-1dbqcch';
|
|
131
|
+
rules += ' i-10cd9hn';
|
|
132
|
+
rules += ' j-10cd9hn';
|
|
133
|
+
rules += ' o-375tou';
|
|
134
|
+
rules += ' l4';
|
|
135
|
+
if (props.isHovered) rules += ' b_____k';
|
|
136
|
+
else if (props.isFocusVisible) rules += ' b_____k';
|
|
137
|
+
else rules += ' ba';
|
|
138
|
+
rules += ' u-375tp0';
|
|
139
|
+
rules += ' v-375tp1';
|
|
140
|
+
rules += ' sa';
|
|
141
|
+
rules += ' ta';
|
|
142
|
+
if (props.isQuiet) {
|
|
143
|
+
if (props.isFocusVisible) rules += ' _vh';
|
|
144
|
+
else if (props.isHovered) rules += ' _vh';
|
|
145
|
+
} else if (props.isFocusVisible) rules += ' _vh';
|
|
146
|
+
else rules += ' _va';
|
|
147
|
+
if (props.isQuiet) {
|
|
148
|
+
if (props.isFocusVisible) rules += ' _wh';
|
|
149
|
+
else if (props.isHovered) rules += ' _wh';
|
|
150
|
+
} else if (props.isFocusVisible) rules += ' _wh';
|
|
151
|
+
else rules += ' _wa';
|
|
152
|
+
if (props.isQuiet) {
|
|
153
|
+
if (props.isFocusVisible) rules += ' _xh';
|
|
154
|
+
else if (props.isHovered) rules += ' _xh';
|
|
155
|
+
} else if (props.isFocusVisible) rules += ' _xh';
|
|
156
|
+
else rules += ' _xa';
|
|
157
|
+
if (props.isQuiet) {
|
|
158
|
+
if (props.isFocusVisible) rules += ' _yh';
|
|
159
|
+
else if (props.isHovered) rules += ' _yh';
|
|
160
|
+
} else if (props.isFocusVisible) rules += ' _yh';
|
|
161
|
+
else rules += ' _ya';
|
|
162
|
+
rules += ' _ja';
|
|
163
|
+
rules += ' __R-yksgrp';
|
|
164
|
+
if (props.size === "XL") {
|
|
165
|
+
if (props.density === "spacious") {
|
|
166
|
+
rules += ' -_375tou_o-bC';
|
|
167
|
+
rules += ' -_375tou_o-B';
|
|
168
|
+
} else if (props.density === "regular") {
|
|
169
|
+
rules += ' -_375tou_o-bA';
|
|
170
|
+
rules += ' -_375tou_o-z';
|
|
171
|
+
} else if (props.density === "compact") {
|
|
172
|
+
rules += ' -_375tou_o-by';
|
|
173
|
+
rules += ' -_375tou_o-x';
|
|
174
|
+
}
|
|
175
|
+
} else if (props.size === "L") {
|
|
176
|
+
if (props.density === "spacious") {
|
|
177
|
+
rules += ' -_375tou_o-bA';
|
|
178
|
+
rules += ' -_375tou_o-z';
|
|
179
|
+
} else if (props.density === "regular") {
|
|
180
|
+
rules += ' -_375tou_o-by';
|
|
181
|
+
rules += ' -_375tou_o-x';
|
|
182
|
+
} else if (props.density === "compact") {
|
|
183
|
+
rules += ' -_375tou_o-bu';
|
|
184
|
+
rules += ' -_375tou_o-r';
|
|
185
|
+
}
|
|
186
|
+
} else if (props.size === "M") {
|
|
187
|
+
if (props.density === "spacious") {
|
|
188
|
+
rules += ' -_375tou_o-by';
|
|
189
|
+
rules += ' -_375tou_o-x';
|
|
190
|
+
} else if (props.density === "regular") {
|
|
191
|
+
rules += ' -_375tou_o-bu';
|
|
192
|
+
rules += ' -_375tou_o-r';
|
|
193
|
+
} else if (props.density === "compact") {
|
|
194
|
+
rules += ' -_375tou_o-br';
|
|
195
|
+
rules += ' -_375tou_o-q';
|
|
196
|
+
}
|
|
197
|
+
} else if (props.size === "S") {
|
|
198
|
+
if (props.density === "spacious") {
|
|
199
|
+
rules += ' -_375tou_o-bu';
|
|
200
|
+
rules += ' -_375tou_o-r';
|
|
201
|
+
} else if (props.density === "regular") {
|
|
202
|
+
rules += ' -_375tou_o-br';
|
|
203
|
+
rules += ' -_375tou_o-q';
|
|
204
|
+
} else if (props.density === "compact") {
|
|
205
|
+
rules += ' -_375tou_o-bn';
|
|
206
|
+
rules += ' -_375tou_o-m';
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
rules += ' -_375tp0_u-a';
|
|
210
|
+
rules += ' -_375tp1_v-a';
|
|
211
|
+
return rules;
|
|
212
|
+
};
|
|
213
|
+
const $cf1d656285911959$var$chevronStyles = function anonymous(props) {
|
|
214
|
+
let rules = " .";
|
|
215
|
+
if (props.isExpanded) rules += ' R-3hn0u';
|
|
216
|
+
else if (props.isRTL) rules += ' R-375xa6';
|
|
217
|
+
rules += ' _Q-37j0s6';
|
|
218
|
+
rules += ' -rwx0fg_e-b';
|
|
219
|
+
rules += ' _8-3t1x';
|
|
220
|
+
return rules;
|
|
221
|
+
};
|
|
222
|
+
function $cf1d656285911959$var$DisclosureHeader(props, ref) {
|
|
223
|
+
let { level: level = 3, UNSAFE_style: UNSAFE_style, UNSAFE_className: UNSAFE_className = '', ...otherProps } = props;
|
|
224
|
+
let domRef = (0, $7VHtn$useDOMRef)(ref);
|
|
225
|
+
const domProps = (0, $7VHtn$filterDOMProps)(otherProps);
|
|
226
|
+
let { direction: direction } = (0, $7VHtn$useLocale)();
|
|
227
|
+
let { isExpanded: isExpanded } = (0, $7VHtn$useContext)((0, $7VHtn$DisclosureStateContext));
|
|
228
|
+
let { size: size, density: density, isQuiet: isQuiet } = (0, $7VHtn$useSlottedContext)($cf1d656285911959$export$d665dd135a51b28a);
|
|
229
|
+
let isRTL = direction === 'rtl';
|
|
230
|
+
return /*#__PURE__*/ (0, $7VHtn$jsx)((0, $7VHtn$Heading), {
|
|
231
|
+
...domProps,
|
|
232
|
+
level: level,
|
|
233
|
+
ref: domRef,
|
|
234
|
+
style: UNSAFE_style,
|
|
235
|
+
className: (UNSAFE_className ?? '') + $cf1d656285911959$var$headingStyle,
|
|
236
|
+
children: /*#__PURE__*/ (0, $7VHtn$jsxs)((0, $7VHtn$Button), {
|
|
237
|
+
className: ({ isHovered: isHovered, isFocused: isFocused, isFocusVisible: isFocusVisible, isDisabled: isDisabled })=>$cf1d656285911959$var$buttonStyles({
|
|
238
|
+
size: size,
|
|
239
|
+
isHovered: isHovered,
|
|
240
|
+
isFocused: isFocused,
|
|
241
|
+
isFocusVisible: isFocusVisible,
|
|
242
|
+
density: density,
|
|
243
|
+
isQuiet: isQuiet,
|
|
244
|
+
isDisabled: isDisabled
|
|
245
|
+
}),
|
|
246
|
+
slot: "trigger",
|
|
247
|
+
children: [
|
|
248
|
+
/*#__PURE__*/ (0, $7VHtn$jsx)((0, $1f4b04be3f24aae3$export$768dac55bb57081d), {
|
|
249
|
+
children: /*#__PURE__*/ (0, $7VHtn$jsx)((0, $4b69f02ec06b9226$export$2e2bcd8739ae039), {
|
|
250
|
+
size: size,
|
|
251
|
+
className: $cf1d656285911959$var$chevronStyles({
|
|
252
|
+
isExpanded: isExpanded,
|
|
253
|
+
isRTL: isRTL
|
|
254
|
+
}),
|
|
255
|
+
"aria-hidden": "true"
|
|
256
|
+
})
|
|
257
|
+
}),
|
|
258
|
+
props.children
|
|
259
|
+
]
|
|
260
|
+
})
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* A header for a disclosure. Contains a heading and a trigger button to expand/collapse the panel.
|
|
265
|
+
*/ let $cf1d656285911959$export$1e037ddd32f5b8ac = /*#__PURE__*/ (0, $7VHtn$forwardRef)($cf1d656285911959$var$DisclosureHeader);
|
|
266
|
+
const $cf1d656285911959$var$panelStyles = function anonymous(props) {
|
|
267
|
+
let rules = " .";
|
|
268
|
+
rules += ' _c-bc1l9oh';
|
|
269
|
+
rules += ' _c-1uotwbwg';
|
|
270
|
+
rules += ' _c-eo0c6sf';
|
|
271
|
+
rules += ' _c-enzzrge';
|
|
272
|
+
rules += ' _c-enzykdd';
|
|
273
|
+
rules += ' _c-enzwzjc';
|
|
274
|
+
rules += ' _c-enzrfpb';
|
|
275
|
+
rules += ' _ca';
|
|
276
|
+
rules += ' _dbh';
|
|
277
|
+
rules += ' _dg';
|
|
278
|
+
rules += ' _eb';
|
|
279
|
+
rules += ' _f-1x99dloc';
|
|
280
|
+
rules += ' _fb';
|
|
281
|
+
rules += ' an';
|
|
282
|
+
if (props.isExpanded) rules += ' Ed';
|
|
283
|
+
if (props.isExpanded) rules += ' Ff';
|
|
284
|
+
if (props.isExpanded) {
|
|
285
|
+
if (props.size === "XL") {
|
|
286
|
+
rules += ' Cb-yk4pb9';
|
|
287
|
+
rules += ' C-1p15uv3';
|
|
288
|
+
} else if (props.size === "L") rules += ' Ce';
|
|
289
|
+
else if (props.size === "M") {
|
|
290
|
+
rules += ' Cb-1itkwgp';
|
|
291
|
+
rules += ' C-1ch0ogp';
|
|
292
|
+
} else if (props.size === "S") rules += ' Cd';
|
|
293
|
+
}
|
|
294
|
+
if (props.isExpanded) {
|
|
295
|
+
if (props.size === "XL") {
|
|
296
|
+
rules += ' Db-yk4pb9';
|
|
297
|
+
rules += ' D-1p15uv3';
|
|
298
|
+
} else if (props.size === "L") rules += ' De';
|
|
299
|
+
else if (props.size === "M") {
|
|
300
|
+
rules += ' Db-1itkwgp';
|
|
301
|
+
rules += ' D-1ch0ogp';
|
|
302
|
+
} else if (props.size === "S") rules += ' Dd';
|
|
303
|
+
}
|
|
304
|
+
return rules;
|
|
305
|
+
};
|
|
306
|
+
function $cf1d656285911959$var$DisclosurePanel(props, ref) {
|
|
307
|
+
let { UNSAFE_style: UNSAFE_style, UNSAFE_className: UNSAFE_className = '', ...otherProps } = props;
|
|
308
|
+
const domProps = (0, $7VHtn$filterDOMProps)(otherProps);
|
|
309
|
+
let { size: size } = (0, $7VHtn$useSlottedContext)($cf1d656285911959$export$d665dd135a51b28a);
|
|
310
|
+
let { isExpanded: isExpanded } = (0, $7VHtn$useContext)((0, $7VHtn$DisclosureStateContext));
|
|
311
|
+
let panelRef = (0, $7VHtn$useDOMRef)(ref);
|
|
312
|
+
return /*#__PURE__*/ (0, $7VHtn$jsx)((0, $7VHtn$DisclosurePanel), {
|
|
313
|
+
...domProps,
|
|
314
|
+
ref: panelRef,
|
|
315
|
+
style: UNSAFE_style,
|
|
316
|
+
className: (UNSAFE_className ?? '') + $cf1d656285911959$var$panelStyles({
|
|
317
|
+
size: size,
|
|
318
|
+
isExpanded: isExpanded
|
|
319
|
+
}),
|
|
320
|
+
children: props.children
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* A disclosure panel is a collapsible section of content that is hidden until the disclosure is expanded.
|
|
325
|
+
*/ let $cf1d656285911959$export$feabaa331e1d464c = /*#__PURE__*/ (0, $7VHtn$forwardRef)($cf1d656285911959$var$DisclosurePanel);
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
export {$cf1d656285911959$export$d665dd135a51b28a as DisclosureContext, $cf1d656285911959$export$74a362b31437ec83 as Disclosure, $cf1d656285911959$export$1e037ddd32f5b8ac as DisclosureHeader, $cf1d656285911959$export$feabaa331e1d464c as DisclosurePanel};
|
|
329
|
+
//# sourceMappingURL=Disclosure.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA+BM,MAAM,0DAAoB,CAAA,GAAA,oBAAY,EAAgF;AAE7H,MAAM;;;;;;;;;;;;;;;;;;;;;;AAoBN,SAAS,iCAAW,KAAsB,EAAE,GAA2B;IACrE,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,QACF,OAAO,cACP,UAAU,oBACV,OAAO,cAAE,UAAU,EACpB,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,gBACF,YAAY,oBACZ,mBAAmB,IACnB,GAAG,YACJ,GAAG;IACJ,MAAM,WAAW,CAAA,GAAA,qBAAa,EAAE;IAEhC,qBACE,gBAAC,CAAA,GAAA,eAAO;QACN,QAAQ;YACN;gBAAC;gBAAmB;0BAAC;6BAAM;6BAAS;gCAAS;gBAAU;aAAE;SAC1D;kBACD,cAAA,gBAAC,CAAA,GAAA,iBAAY;YACV,GAAG,QAAQ;YACZ,YAAY;YACZ,KAAK;YACL,OAAO;YACP,WAAW,AAAC,CAAA,oBAAoB,EAAC,IAAK,iCAAW;yBAAC;YAAO,GAAG,MAAM,MAAM;sBACvE,MAAM,QAAQ;;;AAIvB;AAEA;;CAEC,GACD,IAAI,4CAA4B,AAAd,WAAW,GAAI,CAAA,GAAA,iBAAS,EAAqB;AAY/D,MAAM;AAIN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EN,MAAM;;;;;;;;;AAcN,SAAS,uCAAiB,KAA4B,EAAE,GAA2B;IACjF,IAAI,SACF,QAAQ,iBACR,YAAY,oBACZ,mBAAmB,IACnB,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,MAAM,WAAW,CAAA,GAAA,qBAAa,EAAE;IAChC,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,gBAAQ;IAC1B,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,6BAAqB;IACnD,IAAI,QAAC,IAAI,WAAE,OAAO,WAAE,OAAO,EAAC,GAAG,CAAA,GAAA,wBAAgB,EAAE;IACjD,IAAI,QAAQ,cAAc;IAC1B,qBACE,gBAAC,CAAA,GAAA,cAAM;QACJ,GAAG,QAAQ;QACZ,OAAO;QACP,KAAK;QACL,OAAO;QACP,WAAW,AAAC,CAAA,oBAAoB,EAAC,IAAK;kBACtC,cAAA,iBAAC,CAAA,GAAA,aAAK;YAAE,WAAW,CAAC,aAAC,SAAS,aAAE,SAAS,kBAAE,cAAc,cAAE,UAAU,EAAC,GAAK,mCAAa;0BAAC;+BAAM;+BAAW;oCAAW;6BAAgB;6BAAS;gCAAS;gBAAU;YAAI,MAAK;;8BACxK,gBAAC,CAAA,GAAA,yCAAa;8BACZ,cAAA,gBAAC,CAAA,GAAA,wCAAM;wBAAE,MAAM;wBAAM,WAAW,oCAAc;wCAAC;mCAAY;wBAAK;wBAAI,eAAY;;;gBAEjF,MAAM,QAAQ;;;;AAIvB;AAEA;;CAEC,GACD,IAAI,4CAAkC,AAAd,WAAW,GAAI,CAAA,GAAA,iBAAS,EAAqB;AAOrE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBN,SAAS,sCAAgB,KAA2B,EAAE,GAA2B;IAC/E,IAAI,gBACF,YAAY,oBACZ,mBAAmB,IACnB,GAAG,YACJ,GAAG;IACJ,MAAM,WAAW,CAAA,GAAA,qBAAa,EAAE;IAChC,IAAI,QAAC,IAAI,EAAC,GAAG,CAAA,GAAA,wBAAgB,EAAE;IAC/B,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,6BAAqB;IACnD,IAAI,WAAW,CAAA,GAAA,gBAAQ,EAAE;IACzB,qBACE,gBAAC,CAAA,GAAA,sBAAiB;QACf,GAAG,QAAQ;QACZ,KAAK;QACL,OAAO;QACP,WAAW,AAAC,CAAA,oBAAoB,EAAC,IAAK,kCAAY;kBAAC;wBAAM;QAAU;kBAClE,MAAM,QAAQ;;AAGrB;AAEA;;CAEC,GACD,IAAI,4CAAiC,AAAd,WAAW,GAAI,CAAA,GAAA,iBAAS,EAAqB","sources":["packages/@react-spectrum/s2/src/Disclosure.tsx"],"sourcesContent":["/*\n * Copyright 2024 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\nimport {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue, forwardRefType} from '@react-types/shared';\nimport {Button, ContextValue, DisclosureStateContext, Heading, Provider, Disclosure as RACDisclosure, DisclosurePanel as RACDisclosurePanel, DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps, useLocale, useSlottedContext} from 'react-aria-components';\nimport {CenterBaseline} from './CenterBaseline';\nimport {centerPadding, focusRing, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with { type: 'macro' };\nimport Chevron from '../ui-icons/Chevron';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {createContext, forwardRef, ReactElement, useContext} from 'react';\nimport {size as sizeValue, style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\n\nexport interface DisclosureProps extends RACDisclosureProps, StyleProps, DOMProps {\n /**\n * The size of the disclosure.\n * @default \"M\"\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /**\n * The amount of space between the disclosures.\n * @default \"regular\"\n */\n density?: 'compact' | 'regular' | 'spacious',\n /** Whether the disclosure should be displayed with a quiet style. */\n isQuiet?: boolean,\n /** The contents of the disclosure, consisting of an DisclosureHeader and DisclosurePanel. */\n children: [ReactElement<DisclosureHeaderProps>, ReactElement<DisclosurePanelProps>]\n}\n\nexport const DisclosureContext = createContext<ContextValue<Omit<DisclosureProps, 'children'>, DOMRefValue<HTMLDivElement>>>(null);\n\nconst disclosure = style({\n color: 'heading',\n borderTopWidth: {\n default: 1,\n isQuiet: 0\n },\n borderBottomWidth: {\n default: 0,\n ':last-child': {\n default: 1,\n isQuiet: 0\n }\n },\n borderStartWidth: 0,\n borderEndWidth: 0,\n borderStyle: 'solid',\n borderColor: 'gray-200',\n minWidth: sizeValue(200)\n}, getAllowedOverrides());\n\nfunction Disclosure(props: DisclosureProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, DisclosureContext);\n let {\n size = 'M',\n density = 'regular',\n isQuiet, isDisabled\n } = props;\n let domRef = useDOMRef(ref);\n let {\n UNSAFE_style,\n UNSAFE_className = '',\n ...otherProps\n } = props;\n const domProps = filterDOMProps(otherProps);\n\n return (\n <Provider\n values={[\n [DisclosureContext, {size, isQuiet, density, isDisabled}]\n ]}>\n <RACDisclosure\n {...domProps}\n isDisabled={isDisabled}\n ref={domRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + disclosure({isQuiet}, props.styles)}>\n {props.children}\n </RACDisclosure>\n </Provider>\n );\n}\n\n/**\n * A disclosure is a collapsible section of content. It is composed of a a header with a heading and trigger button, and a panel that contains the content.\n */\nlet _Disclosure = /*#__PURE__*/ (forwardRef as forwardRefType)(Disclosure);\nexport {_Disclosure as Disclosure};\n\nexport interface DisclosureHeaderProps extends UnsafeStyles, DOMProps {\n /** The heading level of the disclosure header.\n * \n * @default 3\n */\n level?: number,\n children: React.ReactNode\n}\n\nconst headingStyle = style({\n margin: 0\n});\n\nconst buttonStyles = style({\n ...focusRing(),\n outlineOffset: -2,\n font: 'heading',\n color: {\n default: 'neutral',\n isDisabled: 'disabled'\n },\n fontWeight: 'bold',\n fontSize: {\n size: {\n S: 'heading-xs',\n M: 'heading-sm',\n L: 'heading',\n XL: 'heading-lg'\n }\n },\n lineHeight: 'ui',\n display: 'flex',\n alignItems: 'baseline',\n paddingX: '[calc(self(minHeight) * 3/8 - 1px)]',\n paddingY: centerPadding(),\n gap: '[calc(self(minHeight) * 3/8 - 1px)]',\n minHeight: {\n // compact is equivalent to 'control', but other densities have more padding.\n size: {\n S: {\n density: {\n compact: 24,\n regular: 32,\n spacious: 40\n }\n },\n M: {\n density: {\n compact: 32,\n regular: 40,\n spacious: 48\n }\n },\n L: {\n density: {\n compact: 40,\n regular: 48,\n spacious: 56\n }\n },\n XL: {\n density: {\n compact: 48,\n regular: 56,\n spacious: 64\n }\n }\n }\n },\n width: 'full',\n backgroundColor: {\n default: 'transparent',\n isFocusVisible: 'transparent-black-100',\n isHovered: 'transparent-black-100'\n },\n borderWidth: 0,\n borderRadius: {\n // Only rounded for keyboard focus and quiet hover.\n default: 'none',\n isFocusVisible: 'control',\n isQuiet: {\n isHovered: 'control',\n isFocusVisible: 'control'\n }\n },\n textAlign: 'start',\n disableTapHighlight: true\n});\n\nconst chevronStyles = style({\n rotate: {\n isRTL: 180,\n isExpanded: 90\n },\n transitionDuration: '100ms',\n transitionProperty: 'rotate',\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n },\n flexShrink: 0\n});\n\nfunction DisclosureHeader(props: DisclosureHeaderProps, ref: DOMRef<HTMLDivElement>) {\n let {\n level = 3,\n UNSAFE_style,\n UNSAFE_className = '',\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n const domProps = filterDOMProps(otherProps);\n let {direction} = useLocale();\n let {isExpanded} = useContext(DisclosureStateContext)!;\n let {size, density, isQuiet} = useSlottedContext(DisclosureContext)!;\n let isRTL = direction === 'rtl';\n return (\n <Heading\n {...domProps}\n level={level}\n ref={domRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + headingStyle}>\n <Button className={({isHovered, isFocused, isFocusVisible, isDisabled}) => buttonStyles({size, isHovered, isFocused, isFocusVisible, density, isQuiet, isDisabled})} slot=\"trigger\">\n <CenterBaseline>\n <Chevron size={size} className={chevronStyles({isExpanded, isRTL})} aria-hidden=\"true\" />\n </CenterBaseline>\n {props.children}\n </Button>\n </Heading>\n );\n}\n\n/**\n * A header for a disclosure. Contains a heading and a trigger button to expand/collapse the panel.\n */\nlet _DisclosureHeader = /*#__PURE__*/ (forwardRef as forwardRefType)(DisclosureHeader);\nexport {_DisclosureHeader as DisclosureHeader};\n\nexport interface DisclosurePanelProps extends RACDisclosurePanelProps, UnsafeStyles, DOMProps, AriaLabelingProps {\n children: React.ReactNode\n}\n\nconst panelStyles = style({\n font: 'body',\n paddingTop: {\n isExpanded: 8\n },\n paddingBottom: {\n isExpanded: 16\n },\n paddingX: {\n isExpanded: {\n size: {\n S: 8,\n M: sizeValue(9),\n L: 12,\n XL: sizeValue(15)\n }\n }\n }\n});\n\nfunction DisclosurePanel(props: DisclosurePanelProps, ref: DOMRef<HTMLDivElement>) {\n let {\n UNSAFE_style,\n UNSAFE_className = '',\n ...otherProps\n } = props;\n const domProps = filterDOMProps(otherProps);\n let {size} = useSlottedContext(DisclosureContext)!;\n let {isExpanded} = useContext(DisclosureStateContext)!;\n let panelRef = useDOMRef(ref);\n return (\n <RACDisclosurePanel\n {...domProps}\n ref={panelRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + panelStyles({size, isExpanded})}>\n {props.children}\n </RACDisclosurePanel>\n );\n}\n\n/**\n * A disclosure panel is a collapsible section of content that is hidden until the disclosure is expanded.\n */\nlet _DisclosurePanel = /*#__PURE__*/ (forwardRef as forwardRefType)(DisclosurePanel);\nexport {_DisclosurePanel as DisclosurePanel};\n\n"],"names":[],"version":3,"file":"Disclosure.mjs.map"}
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var $152a25dfd79f123a$exports = require("./Accordion.cjs");
|
|
1
2
|
var $6e265ff388155b91$exports = require("./ActionButton.cjs");
|
|
2
3
|
var $e5a758dd286599f2$exports = require("./ActionMenu.cjs");
|
|
3
4
|
var $d67aa10f4fac9e2b$exports = require("./AlertDialog.cjs");
|
|
@@ -19,6 +20,7 @@ var $a267e3efa7024819$exports = require("./ColorSwatchPicker.cjs");
|
|
|
19
20
|
var $0c1e31ce388fe468$exports = require("./ColorWheel.cjs");
|
|
20
21
|
var $a2d5b35c01bebcd6$exports = require("./ComboBox.cjs");
|
|
21
22
|
var $bab829476f85a155$exports = require("./ContextualHelp.cjs");
|
|
23
|
+
var $4e301a98f0cc4e4f$exports = require("./Disclosure.cjs");
|
|
22
24
|
var $6367bc87eb7d24ad$exports = require("./Content.cjs");
|
|
23
25
|
var $0f4636c7093b9233$exports = require("./Dialog.cjs");
|
|
24
26
|
var $1ed1734de3fc1075$exports = require("./DialogTrigger.cjs");
|
|
@@ -61,6 +63,8 @@ function $parcel$export(e, n, v, s) {
|
|
|
61
63
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
$parcel$export(module.exports, "Accordion", () => $152a25dfd79f123a$exports.Accordion);
|
|
67
|
+
$parcel$export(module.exports, "AccordionContext", () => $152a25dfd79f123a$exports.AccordionContext);
|
|
64
68
|
$parcel$export(module.exports, "ActionButton", () => $6e265ff388155b91$exports.ActionButton);
|
|
65
69
|
$parcel$export(module.exports, "ActionButtonContext", () => $6e265ff388155b91$exports.ActionButtonContext);
|
|
66
70
|
$parcel$export(module.exports, "ActionMenu", () => $e5a758dd286599f2$exports.ActionMenu);
|
|
@@ -111,6 +115,10 @@ $parcel$export(module.exports, "ComboBoxSection", () => $a2d5b35c01bebcd6$export
|
|
|
111
115
|
$parcel$export(module.exports, "ComboBoxContext", () => $a2d5b35c01bebcd6$exports.ComboBoxContext);
|
|
112
116
|
$parcel$export(module.exports, "ContextualHelp", () => $bab829476f85a155$exports.ContextualHelp);
|
|
113
117
|
$parcel$export(module.exports, "ContextualHelpContext", () => $bab829476f85a155$exports.ContextualHelpContext);
|
|
118
|
+
$parcel$export(module.exports, "DisclosureHeader", () => $4e301a98f0cc4e4f$exports.DisclosureHeader);
|
|
119
|
+
$parcel$export(module.exports, "Disclosure", () => $4e301a98f0cc4e4f$exports.Disclosure);
|
|
120
|
+
$parcel$export(module.exports, "DisclosurePanel", () => $4e301a98f0cc4e4f$exports.DisclosurePanel);
|
|
121
|
+
$parcel$export(module.exports, "DisclosureContext", () => $4e301a98f0cc4e4f$exports.DisclosureContext);
|
|
114
122
|
$parcel$export(module.exports, "Heading", () => $6367bc87eb7d24ad$exports.Heading);
|
|
115
123
|
$parcel$export(module.exports, "HeadingContext", () => $6367bc87eb7d24ad$exports.HeadingContext);
|
|
116
124
|
$parcel$export(module.exports, "Header", () => $6367bc87eb7d24ad$exports.Header);
|
|
@@ -265,6 +273,8 @@ $parcel$export(module.exports, "FileTrigger", () => $gi1zB$reactariacomponents.F
|
|
|
265
273
|
|
|
266
274
|
|
|
267
275
|
|
|
276
|
+
|
|
277
|
+
|
|
268
278
|
|
|
269
279
|
|
|
270
280
|
|
package/dist/main.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-spectrum/s2/src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 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\nexport {Accordion, AccordionContext} from './Accordion';\nexport {ActionButton, ActionButtonContext} from './ActionButton';\nexport {ActionMenu, ActionMenuContext} from './ActionMenu';\nexport {AlertDialog} from './AlertDialog';\nexport {Avatar, AvatarContext} from './Avatar';\nexport {AvatarGroup, AvatarGroupContext} from './AvatarGroup';\nexport {Badge, BadgeContext} from './Badge';\nexport {Breadcrumbs, Breadcrumb, BreadcrumbsContext} from './Breadcrumbs';\nexport {Button, LinkButton, ButtonContext, LinkButtonContext} from './Button';\nexport {ButtonGroup, ButtonGroupContext} from './ButtonGroup';\nexport {Card, CardPreview, CollectionCardPreview, AssetCard, UserCard, ProductCard, CardContext} from './Card';\nexport {CardView} from './CardView';\nexport {Checkbox, CheckboxContext} from './Checkbox';\nexport {CheckboxGroup, CheckboxGroupContext} from './CheckboxGroup';\nexport {ColorArea, ColorAreaContext} from './ColorArea';\nexport {ColorField, ColorFieldContext} from './ColorField';\nexport {ColorSlider, ColorSliderContext} from './ColorSlider';\nexport {ColorSwatch, ColorSwatchContext} from './ColorSwatch';\nexport {ColorSwatchPicker, ColorSwatchPickerContext} from './ColorSwatchPicker';\nexport {ColorWheel, ColorWheelContext} from './ColorWheel';\nexport {ComboBox, ComboBoxItem, ComboBoxSection, ComboBoxContext} from './ComboBox';\nexport {ContextualHelp, ContextualHelpContext} from './ContextualHelp';\nexport {DisclosureHeader, Disclosure, DisclosurePanel, DisclosureContext} from './Disclosure';\nexport {Heading, HeadingContext, Header, HeaderContext, Content, ContentContext, Footer, FooterContext, Text, TextContext, Keyboard, KeyboardContext} from './Content';\nexport {Dialog} from './Dialog';\nexport {DialogTrigger} from './DialogTrigger';\nexport {DialogContainer, useDialogContainer} from './DialogContainer';\nexport {Divider, DividerContext} from './Divider';\nexport {DropZone, DropZoneContext} from './DropZone';\nexport {Form} from './Form';\nexport {IconContext, IllustrationContext} from './Icon';\nexport {IllustratedMessage, IllustratedMessageContext} from './IllustratedMessage';\nexport {Image, ImageContext} from './Image';\nexport {ImageCoordinator} from './ImageCoordinator';\nexport {InlineAlert, InlineAlertContext} from './InlineAlert';\nexport {Link, LinkContext} from './Link';\nexport {MenuItem, MenuTrigger, Menu, MenuSection, SubmenuTrigger, MenuContext} from './Menu';\nexport {Meter, MeterContext} from './Meter';\nexport {NumberField, NumberFieldContext} from './NumberField';\nexport {Picker, PickerItem, PickerSection, PickerContext} from './Picker';\nexport {ProgressBar, ProgressBarContext} from './ProgressBar';\nexport {ProgressCircle, ProgressCircleContext} from './ProgressCircle';\nexport {Provider} from './Provider';\nexport {Radio} from './Radio';\nexport {RadioGroup, RadioGroupContext} from './RadioGroup';\nexport {RangeSlider, RangeSliderContext} from './RangeSlider';\nexport {SearchField, SearchFieldContext} from './SearchField';\nexport {SegmentedControl, SegmentedControlItem, SegmentedControlContext} from './SegmentedControl';\nexport {Slider, SliderContext} from './Slider';\nexport {Skeleton, useIsSkeleton} from './Skeleton';\nexport {SkeletonCollection} from './SkeletonCollection';\nexport {StatusLight, StatusLightContext} from './StatusLight';\nexport {Switch, SwitchContext} from './Switch';\nexport {Tabs, TabList, Tab, TabPanel, TabsContext} from './Tabs';\nexport {TagGroup, Tag, TagGroupContext} from './TagGroup';\nexport {TextArea, TextField, TextAreaContext, TextFieldContext} from './TextField';\nexport {ToggleButton, ToggleButtonContext} from './ToggleButton';\nexport {Tooltip, TooltipTrigger} from './Tooltip';\n\nexport {Collection} from 'react-aria-components';\nexport {FileTrigger} from 'react-aria-components';\n\nexport type {AccordionProps} from './Accordion';\nexport type {ActionButtonProps} from './ActionButton';\nexport type {ActionMenuProps} from './ActionMenu';\nexport type {AlertDialogProps} from './AlertDialog';\nexport type {AvatarProps} from './Avatar';\nexport type {AvatarGroupProps} from './AvatarGroup';\nexport type {BreadcrumbsProps, BreadcrumbProps} from './Breadcrumbs';\nexport type {BadgeProps} from './Badge';\nexport type {ButtonProps, LinkButtonProps} from './Button';\nexport type {ButtonGroupProps} from './ButtonGroup';\nexport type {CardProps, CardPreviewProps, AssetCardProps, ProductCardProps, UserCardProps} from './Card';\nexport type {CardViewProps} from './CardView';\nexport type {CheckboxProps} from './Checkbox';\nexport type {CheckboxGroupProps} from './CheckboxGroup';\nexport type {ColorAreaProps} from './ColorArea';\nexport type {ColorFieldProps} from './ColorField';\nexport type {ColorSliderProps} from './ColorSlider';\nexport type {ColorSwatchProps} from './ColorSwatch';\nexport type {ColorSwatchPickerProps} from './ColorSwatchPicker';\nexport type {ColorWheelProps} from './ColorWheel';\nexport type {ComboBoxProps, ComboBoxItemProps, ComboBoxSectionProps} from './ComboBox';\nexport type {DialogProps} from './Dialog';\nexport type {DialogContainerProps, DialogContainerValue} from './DialogContainer';\nexport type {DialogTriggerProps} from './DialogTrigger';\nexport type {DisclosureProps, DisclosurePanelProps} from './Disclosure';\nexport type {DividerProps} from './Divider';\nexport type {DropZoneProps} from './DropZone';\nexport type {FormProps} from './Form';\nexport type {IconProps, IconContextValue} from './Icon';\nexport type {InlineAlertProps} from './InlineAlert';\nexport type {ImageProps} from './Image';\nexport type {ImageCoordinatorProps} from './ImageCoordinator';\nexport type {LinkProps} from './Link';\nexport type {MenuTriggerProps, MenuProps, MenuItemProps, MenuSectionProps, SubmenuTriggerProps} from './Menu';\nexport type {MeterProps} from './Meter';\nexport type {PickerProps, PickerItemProps, PickerSectionProps} from './Picker';\nexport type {ProgressBarProps} from './ProgressBar';\nexport type {ProgressCircleProps} from './ProgressCircle';\nexport type {ProviderProps} from './Provider';\nexport type {RadioProps} from './Radio';\nexport type {RadioGroupProps} from './RadioGroup';\nexport type {SearchFieldProps} from './SearchField';\nexport type {SegmentedControlProps, SegmentedControlItemProps} from './SegmentedControl';\nexport type {SliderProps} from './Slider';\nexport type {RangeSliderProps} from './RangeSlider';\nexport type {SkeletonProps} from './Skeleton';\nexport type {SkeletonCollectionProps} from './SkeletonCollection';\nexport type {StatusLightProps} from './StatusLight';\nexport type {SwitchProps} from './Switch';\nexport type {TabsProps, TabProps, TabListProps, TabPanelProps} from './Tabs';\nexport type {TagGroupProps, TagProps} from './TagGroup';\nexport type {TextFieldProps, TextAreaProps} from './TextField';\nexport type {ToggleButtonProps} from './ToggleButton';\nexport type {TooltipProps} from './Tooltip';\nexport type {FileTriggerProps, TooltipTriggerComponentProps as TooltipTriggerProps} from 'react-aria-components';\n"],"names":[],"version":3,"file":"main.cjs.map"}
|
package/dist/module.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {Accordion as $e0a5d45f488fa6ba$export$a766cd26d0d69044, AccordionContext as $e0a5d45f488fa6ba$export$6bd5bb82c987ab74} from "./Accordion.mjs";
|
|
1
2
|
import {ActionButton as $da878a05ab4a403e$export$cfc7921d29ef7b80, ActionButtonContext as $da878a05ab4a403e$export$2ff682723a46d413} from "./ActionButton.mjs";
|
|
2
3
|
import {ActionMenu as $8bf3cd2442eb485e$export$ed57a210b9d13bb6, ActionMenuContext as $8bf3cd2442eb485e$export$7f4b66acaca28bd5} from "./ActionMenu.mjs";
|
|
3
4
|
import {AlertDialog as $94a8ad475d9a330c$export$de466dd8317b0b75} from "./AlertDialog.mjs";
|
|
@@ -19,6 +20,7 @@ import {ColorSwatchPicker as $ba9c901b6c815fb9$export$b46792416e3d8515, ColorSwa
|
|
|
19
20
|
import {ColorWheel as $4a6afc95235907f0$export$f80663f808113381, ColorWheelContext as $4a6afc95235907f0$export$265015d6dc85bf21} from "./ColorWheel.mjs";
|
|
20
21
|
import {ComboBox as $a2f262fac286a920$export$72b9695b8216309a, ComboBoxContext as $a2f262fac286a920$export$d414ccceff7063c3, ComboBoxItem as $a2f262fac286a920$export$b674b8ff01584ab1, ComboBoxSection as $a2f262fac286a920$export$5510125537491b61} from "./ComboBox.mjs";
|
|
21
22
|
import {ContextualHelp as $8e176595bc49ca3f$export$7d3cdb256c2ba320, ContextualHelpContext as $8e176595bc49ca3f$export$41b9afaaba473494} from "./ContextualHelp.mjs";
|
|
23
|
+
import {Disclosure as $cf1d656285911959$export$74a362b31437ec83, DisclosureContext as $cf1d656285911959$export$d665dd135a51b28a, DisclosureHeader as $cf1d656285911959$export$1e037ddd32f5b8ac, DisclosurePanel as $cf1d656285911959$export$feabaa331e1d464c} from "./Disclosure.mjs";
|
|
22
24
|
import {Content as $8e847109a6ab556d$export$7c6e2c02157bb7d2, ContentContext as $8e847109a6ab556d$export$1cbdd774077931b4, Footer as $8e847109a6ab556d$export$a06f1c675e846f6f, FooterContext as $8e847109a6ab556d$export$5630640b68817ed6, Header as $8e847109a6ab556d$export$8b251419efc915eb, HeaderContext as $8e847109a6ab556d$export$e0e4026c12a8bdbb, Heading as $8e847109a6ab556d$export$a8a3e93435678ff9, HeadingContext as $8e847109a6ab556d$export$d688439359537581, Keyboard as $8e847109a6ab556d$export$16e4d70cc375e707, KeyboardContext as $8e847109a6ab556d$export$744d98a3b8a94e1c, Text as $8e847109a6ab556d$export$5f1af8db9871e1d6, TextContext as $8e847109a6ab556d$export$9afb8bc826b033ea} from "./Content.mjs";
|
|
23
25
|
import {Dialog as $9bbc115952dac5a6$export$3ddf2d174ce01153} from "./Dialog.mjs";
|
|
24
26
|
import {DialogTrigger as $66262086fa190fcb$export$2e1e1122cf0cba88} from "./DialogTrigger.mjs";
|
|
@@ -125,5 +127,7 @@ import {Collection as $c2fb5c905bcef374$re_export$Collection, FileTrigger as $c2
|
|
|
125
127
|
|
|
126
128
|
|
|
127
129
|
|
|
128
|
-
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
export {$e0a5d45f488fa6ba$export$a766cd26d0d69044 as Accordion, $e0a5d45f488fa6ba$export$6bd5bb82c987ab74 as AccordionContext, $da878a05ab4a403e$export$cfc7921d29ef7b80 as ActionButton, $da878a05ab4a403e$export$2ff682723a46d413 as ActionButtonContext, $8bf3cd2442eb485e$export$ed57a210b9d13bb6 as ActionMenu, $8bf3cd2442eb485e$export$7f4b66acaca28bd5 as ActionMenuContext, $94a8ad475d9a330c$export$de466dd8317b0b75 as AlertDialog, $3ffa2cd930156220$export$e2255cf6045e8d47 as Avatar, $3ffa2cd930156220$export$a20dad690e1279e2 as AvatarContext, $85e1de65a7290f4a$export$5b26ebaf2b105908 as AvatarGroup, $85e1de65a7290f4a$export$4f18251748129091 as AvatarGroupContext, $6357025487dea614$export$37acb3580601e69a as Badge, $6357025487dea614$export$1d4627584e49159a as BadgeContext, $f329dd4f2aa58cd0$export$2dc68d50d56fbbd as Breadcrumbs, $f329dd4f2aa58cd0$export$dabcc1ec9dd9d1cc as Breadcrumb, $f329dd4f2aa58cd0$export$65596d3621b0a4a0 as BreadcrumbsContext, $067ea9f64ccd4e8e$export$353f5b6fc5456de1 as Button, $067ea9f64ccd4e8e$export$29d11c0fe2fc51d8 as LinkButton, $067ea9f64ccd4e8e$export$24d547caef80ccd1 as ButtonContext, $067ea9f64ccd4e8e$export$1c1a176f3b9e48d3 as LinkButtonContext, $472eaa9a9b344b9a$export$69b1032f2ecdf404 as ButtonGroup, $472eaa9a9b344b9a$export$4c574c91bb0be0e2 as ButtonGroupContext, $68e4e6fe083e22fd$export$60332b2344f7fe41 as Card, $68e4e6fe083e22fd$export$115f017852a4bb7c as CardPreview, $68e4e6fe083e22fd$export$c368ea3e577b1b86 as CollectionCardPreview, $68e4e6fe083e22fd$export$eff93e4e59ccc3b8 as AssetCard, $68e4e6fe083e22fd$export$78e8870b5d8ae469 as UserCard, $68e4e6fe083e22fd$export$e6cbe35324ccf844 as ProductCard, $68e4e6fe083e22fd$export$d0b2ee33ebf7d64 as CardContext, $bbcff092fe610ff3$export$7e52c821f7b6f422 as CardView, $9b405e0f8095dce0$export$48513f6b9f8ce62d as Checkbox, $9b405e0f8095dce0$export$b085522c77523c51 as CheckboxContext, $4f43ac2b11e2df05$export$4aa08d5625cb8ead as CheckboxGroup, $4f43ac2b11e2df05$export$baf37c4be89255b8 as CheckboxGroupContext, $40a2b649525568ab$export$b2103f68a961418e as ColorArea, $40a2b649525568ab$export$ebe63fadcdce34ed as ColorAreaContext, $9c5ed7ec0bc126af$export$b865d4358897bb17 as ColorField, $9c5ed7ec0bc126af$export$44644b8a16031b5b as ColorFieldContext, $495db619596088aa$export$44fd664bcca5b6fb as ColorSlider, $495db619596088aa$export$717b2c0a523a0b53 as ColorSliderContext, $cd9e1720baab3945$export$cae13e90592f246a as ColorSwatch, $cd9e1720baab3945$export$83cc445538396800 as ColorSwatchContext, $ba9c901b6c815fb9$export$b46792416e3d8515 as ColorSwatchPicker, $ba9c901b6c815fb9$export$7214f50881fc1eaf as ColorSwatchPickerContext, $4a6afc95235907f0$export$f80663f808113381 as ColorWheel, $4a6afc95235907f0$export$265015d6dc85bf21 as ColorWheelContext, $a2f262fac286a920$export$72b9695b8216309a as ComboBox, $a2f262fac286a920$export$b674b8ff01584ab1 as ComboBoxItem, $a2f262fac286a920$export$5510125537491b61 as ComboBoxSection, $a2f262fac286a920$export$d414ccceff7063c3 as ComboBoxContext, $8e176595bc49ca3f$export$7d3cdb256c2ba320 as ContextualHelp, $8e176595bc49ca3f$export$41b9afaaba473494 as ContextualHelpContext, $cf1d656285911959$export$1e037ddd32f5b8ac as DisclosureHeader, $cf1d656285911959$export$74a362b31437ec83 as Disclosure, $cf1d656285911959$export$feabaa331e1d464c as DisclosurePanel, $cf1d656285911959$export$d665dd135a51b28a as DisclosureContext, $8e847109a6ab556d$export$a8a3e93435678ff9 as Heading, $8e847109a6ab556d$export$d688439359537581 as HeadingContext, $8e847109a6ab556d$export$8b251419efc915eb as Header, $8e847109a6ab556d$export$e0e4026c12a8bdbb as HeaderContext, $8e847109a6ab556d$export$7c6e2c02157bb7d2 as Content, $8e847109a6ab556d$export$1cbdd774077931b4 as ContentContext, $8e847109a6ab556d$export$a06f1c675e846f6f as Footer, $8e847109a6ab556d$export$5630640b68817ed6 as FooterContext, $8e847109a6ab556d$export$5f1af8db9871e1d6 as Text, $8e847109a6ab556d$export$9afb8bc826b033ea as TextContext, $8e847109a6ab556d$export$16e4d70cc375e707 as Keyboard, $8e847109a6ab556d$export$744d98a3b8a94e1c as KeyboardContext, $9bbc115952dac5a6$export$3ddf2d174ce01153 as Dialog, $66262086fa190fcb$export$2e1e1122cf0cba88 as DialogTrigger, $dd7e1b1b86bf720d$export$547754aada6e339f as DialogContainer, $dd7e1b1b86bf720d$export$a2f2d8fa6720dab1 as useDialogContainer, $bdf52657dac0f070$export$2e0a83ec2e27ecbb as Divider, $bdf52657dac0f070$export$30fbfd376abdf190 as DividerContext, $fb6e45fba2483f65$export$3c6489d84dc98b6 as DropZone, $fb6e45fba2483f65$export$14a72053295ff9a6 as DropZoneContext, $9b916426527cebe7$export$a7fed597f4b8afd8 as Form, $ac8c32e6775ddd1f$export$a49f528ae1a4d0ed as IconContext, $ac8c32e6775ddd1f$export$207c7561471de4bd as IllustrationContext, $4950413ac998f607$export$406dbc84c317ece0 as IllustratedMessage, $4950413ac998f607$export$d661ef89ad42d682 as IllustratedMessageContext, $dbd6f0b2503b938c$export$3e431a229df88919 as Image, $dbd6f0b2503b938c$export$8151eb379fcf2442 as ImageContext, $4b5e069e9e001e8b$export$1b926c015f09611d as ImageCoordinator, $fc2cf6b397804b9c$export$a3b2c96db9b0eb71 as InlineAlert, $fc2cf6b397804b9c$export$c0de4eca0a8bf011 as InlineAlertContext, $f50c78733c21bfe2$export$a6c7ac8248d6e38a as Link, $f50c78733c21bfe2$export$e2509388b49734e7 as LinkContext, $13afb0ea5f0ed767$export$2ce376c2cc3355c8 as MenuItem, $13afb0ea5f0ed767$export$27d2ad3c5815583e as MenuTrigger, $13afb0ea5f0ed767$export$d9b273488cd8ce6f as Menu, $13afb0ea5f0ed767$export$4b1545b4f2016d26 as MenuSection, $13afb0ea5f0ed767$export$ecabc99eeffab7ca as SubmenuTrigger, $13afb0ea5f0ed767$export$c7e742effb1c51e2 as MenuContext, $bb56943300b294c6$export$62e3ae2a4090b879 as Meter, $bb56943300b294c6$export$8b645da15a96b44f as MeterContext, $675eca1a78ccd399$export$63c5fa0b2fdccd2e as NumberField, $675eca1a78ccd399$export$b414a48cf5dcbc11 as NumberFieldContext, $b41c15d27fbaff7d$export$ba25329847403e11 as Picker, $b41c15d27fbaff7d$export$d601881f38163e28 as PickerItem, $b41c15d27fbaff7d$export$a340772aca6155cd as PickerSection, $b41c15d27fbaff7d$export$b72b8dade9393cd5 as PickerContext, $b847b7cd294eafba$export$c17561cb55d4db30 as ProgressBar, $b847b7cd294eafba$export$e9f3bf65a26ce129 as ProgressBarContext, $41ddd91dbbf0c389$export$c79b9d6b4cc92af7 as ProgressCircle, $41ddd91dbbf0c389$export$afffa1e5edf12209 as ProgressCircleContext, $9affbfa4e13b9582$export$2881499e37b75b9a as Provider, $1ae2870af9a200f8$export$d7b12c4107be0d61 as Radio, $9a2afae66771094f$export$a98f0dcb43a68a25 as RadioGroup, $9a2afae66771094f$export$a79eda4ff50e30b6 as RadioGroupContext, $c683c8ad68e59901$export$826424dabc3dd705 as RangeSlider, $c683c8ad68e59901$export$9e0b46d8c4f4c18f as RangeSliderContext, $e3d0f3db0eb61b92$export$b94867ecbd698f21 as SearchField, $e3d0f3db0eb61b92$export$d1c4e4c63cb03a11 as SearchFieldContext, $c679c2152e03f8bf$export$668709c620d0b8e2 as SegmentedControl, $c679c2152e03f8bf$export$4fc12f2742e8cf3f as SegmentedControlItem, $c679c2152e03f8bf$export$c083c44d8a07dd35 as SegmentedControlContext, $8128d8480e67c400$export$472062a354075cee as Slider, $8128d8480e67c400$export$e99164f0030f3bff as SliderContext, $5ad421ec19460c48$export$8f31e4c4a37b8e9c as Skeleton, $5ad421ec19460c48$export$4f8dc7555740235c as useIsSkeleton, $00cf18afd94ad18c$export$4365333b6bb1c86b as SkeletonCollection, $cd71613dba8ee178$export$5f84c37a31c6e41c as StatusLight, $cd71613dba8ee178$export$d8f8c0b091d8cb9b as StatusLightContext, $8926b17b75ae985d$export$b5d5cf8927ab7262 as Switch, $8926b17b75ae985d$export$8699e3b644d5a28a as SwitchContext, $79e2b4a1b34d1592$export$b2539bed5023c21c as Tabs, $79e2b4a1b34d1592$export$e51a686c67fdaa2d as TabList, $79e2b4a1b34d1592$export$3e41faf802a29e71 as Tab, $79e2b4a1b34d1592$export$3d96ec278d3efce4 as TabPanel, $79e2b4a1b34d1592$export$cfa7aa87c26e7d1f as TabsContext, $1d63bfab43d9ffe1$export$67ea30858aaf75e3 as TagGroup, $1d63bfab43d9ffe1$export$3288d34c523a1192 as Tag, $1d63bfab43d9ffe1$export$5b07b5dd2cbd96e3 as TagGroupContext, $d946f50010ba937f$export$f5c9f3c2c4054eec as TextArea, $d946f50010ba937f$export$2c73285ae9390cec as TextField, $d946f50010ba937f$export$2dc6166a7e65358c as TextAreaContext, $d946f50010ba937f$export$2129e27b3ef0d483 as TextFieldContext, $fe4c9df7420c3c9f$export$d2b052e7b4be1756 as ToggleButton, $fe4c9df7420c3c9f$export$43506d75ebd2e218 as ToggleButtonContext, $4c20647d6e5d8fdf$export$28c660c63b792dea as Tooltip, $4c20647d6e5d8fdf$export$8c610744efcf8a1d as TooltipTrigger, $c2fb5c905bcef374$re_export$Collection as Collection, $c2fb5c905bcef374$re_export$FileTrigger as FileTrigger};
|
|
129
133
|
//# sourceMappingURL=module.mjs.map
|
package/dist/module.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-spectrum/s2/src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 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\nexport {Accordion, AccordionContext} from './Accordion';\nexport {ActionButton, ActionButtonContext} from './ActionButton';\nexport {ActionMenu, ActionMenuContext} from './ActionMenu';\nexport {AlertDialog} from './AlertDialog';\nexport {Avatar, AvatarContext} from './Avatar';\nexport {AvatarGroup, AvatarGroupContext} from './AvatarGroup';\nexport {Badge, BadgeContext} from './Badge';\nexport {Breadcrumbs, Breadcrumb, BreadcrumbsContext} from './Breadcrumbs';\nexport {Button, LinkButton, ButtonContext, LinkButtonContext} from './Button';\nexport {ButtonGroup, ButtonGroupContext} from './ButtonGroup';\nexport {Card, CardPreview, CollectionCardPreview, AssetCard, UserCard, ProductCard, CardContext} from './Card';\nexport {CardView} from './CardView';\nexport {Checkbox, CheckboxContext} from './Checkbox';\nexport {CheckboxGroup, CheckboxGroupContext} from './CheckboxGroup';\nexport {ColorArea, ColorAreaContext} from './ColorArea';\nexport {ColorField, ColorFieldContext} from './ColorField';\nexport {ColorSlider, ColorSliderContext} from './ColorSlider';\nexport {ColorSwatch, ColorSwatchContext} from './ColorSwatch';\nexport {ColorSwatchPicker, ColorSwatchPickerContext} from './ColorSwatchPicker';\nexport {ColorWheel, ColorWheelContext} from './ColorWheel';\nexport {ComboBox, ComboBoxItem, ComboBoxSection, ComboBoxContext} from './ComboBox';\nexport {ContextualHelp, ContextualHelpContext} from './ContextualHelp';\nexport {DisclosureHeader, Disclosure, DisclosurePanel, DisclosureContext} from './Disclosure';\nexport {Heading, HeadingContext, Header, HeaderContext, Content, ContentContext, Footer, FooterContext, Text, TextContext, Keyboard, KeyboardContext} from './Content';\nexport {Dialog} from './Dialog';\nexport {DialogTrigger} from './DialogTrigger';\nexport {DialogContainer, useDialogContainer} from './DialogContainer';\nexport {Divider, DividerContext} from './Divider';\nexport {DropZone, DropZoneContext} from './DropZone';\nexport {Form} from './Form';\nexport {IconContext, IllustrationContext} from './Icon';\nexport {IllustratedMessage, IllustratedMessageContext} from './IllustratedMessage';\nexport {Image, ImageContext} from './Image';\nexport {ImageCoordinator} from './ImageCoordinator';\nexport {InlineAlert, InlineAlertContext} from './InlineAlert';\nexport {Link, LinkContext} from './Link';\nexport {MenuItem, MenuTrigger, Menu, MenuSection, SubmenuTrigger, MenuContext} from './Menu';\nexport {Meter, MeterContext} from './Meter';\nexport {NumberField, NumberFieldContext} from './NumberField';\nexport {Picker, PickerItem, PickerSection, PickerContext} from './Picker';\nexport {ProgressBar, ProgressBarContext} from './ProgressBar';\nexport {ProgressCircle, ProgressCircleContext} from './ProgressCircle';\nexport {Provider} from './Provider';\nexport {Radio} from './Radio';\nexport {RadioGroup, RadioGroupContext} from './RadioGroup';\nexport {RangeSlider, RangeSliderContext} from './RangeSlider';\nexport {SearchField, SearchFieldContext} from './SearchField';\nexport {SegmentedControl, SegmentedControlItem, SegmentedControlContext} from './SegmentedControl';\nexport {Slider, SliderContext} from './Slider';\nexport {Skeleton, useIsSkeleton} from './Skeleton';\nexport {SkeletonCollection} from './SkeletonCollection';\nexport {StatusLight, StatusLightContext} from './StatusLight';\nexport {Switch, SwitchContext} from './Switch';\nexport {Tabs, TabList, Tab, TabPanel, TabsContext} from './Tabs';\nexport {TagGroup, Tag, TagGroupContext} from './TagGroup';\nexport {TextArea, TextField, TextAreaContext, TextFieldContext} from './TextField';\nexport {ToggleButton, ToggleButtonContext} from './ToggleButton';\nexport {Tooltip, TooltipTrigger} from './Tooltip';\n\nexport {Collection} from 'react-aria-components';\nexport {FileTrigger} from 'react-aria-components';\n\nexport type {AccordionProps} from './Accordion';\nexport type {ActionButtonProps} from './ActionButton';\nexport type {ActionMenuProps} from './ActionMenu';\nexport type {AlertDialogProps} from './AlertDialog';\nexport type {AvatarProps} from './Avatar';\nexport type {AvatarGroupProps} from './AvatarGroup';\nexport type {BreadcrumbsProps, BreadcrumbProps} from './Breadcrumbs';\nexport type {BadgeProps} from './Badge';\nexport type {ButtonProps, LinkButtonProps} from './Button';\nexport type {ButtonGroupProps} from './ButtonGroup';\nexport type {CardProps, CardPreviewProps, AssetCardProps, ProductCardProps, UserCardProps} from './Card';\nexport type {CardViewProps} from './CardView';\nexport type {CheckboxProps} from './Checkbox';\nexport type {CheckboxGroupProps} from './CheckboxGroup';\nexport type {ColorAreaProps} from './ColorArea';\nexport type {ColorFieldProps} from './ColorField';\nexport type {ColorSliderProps} from './ColorSlider';\nexport type {ColorSwatchProps} from './ColorSwatch';\nexport type {ColorSwatchPickerProps} from './ColorSwatchPicker';\nexport type {ColorWheelProps} from './ColorWheel';\nexport type {ComboBoxProps, ComboBoxItemProps, ComboBoxSectionProps} from './ComboBox';\nexport type {DialogProps} from './Dialog';\nexport type {DialogContainerProps, DialogContainerValue} from './DialogContainer';\nexport type {DialogTriggerProps} from './DialogTrigger';\nexport type {DisclosureProps, DisclosurePanelProps} from './Disclosure';\nexport type {DividerProps} from './Divider';\nexport type {DropZoneProps} from './DropZone';\nexport type {FormProps} from './Form';\nexport type {IconProps, IconContextValue} from './Icon';\nexport type {InlineAlertProps} from './InlineAlert';\nexport type {ImageProps} from './Image';\nexport type {ImageCoordinatorProps} from './ImageCoordinator';\nexport type {LinkProps} from './Link';\nexport type {MenuTriggerProps, MenuProps, MenuItemProps, MenuSectionProps, SubmenuTriggerProps} from './Menu';\nexport type {MeterProps} from './Meter';\nexport type {PickerProps, PickerItemProps, PickerSectionProps} from './Picker';\nexport type {ProgressBarProps} from './ProgressBar';\nexport type {ProgressCircleProps} from './ProgressCircle';\nexport type {ProviderProps} from './Provider';\nexport type {RadioProps} from './Radio';\nexport type {RadioGroupProps} from './RadioGroup';\nexport type {SearchFieldProps} from './SearchField';\nexport type {SegmentedControlProps, SegmentedControlItemProps} from './SegmentedControl';\nexport type {SliderProps} from './Slider';\nexport type {RangeSliderProps} from './RangeSlider';\nexport type {SkeletonProps} from './Skeleton';\nexport type {SkeletonCollectionProps} from './SkeletonCollection';\nexport type {StatusLightProps} from './StatusLight';\nexport type {SwitchProps} from './Switch';\nexport type {TabsProps, TabProps, TabListProps, TabPanelProps} from './Tabs';\nexport type {TagGroupProps, TagProps} from './TagGroup';\nexport type {TextFieldProps, TextAreaProps} from './TextField';\nexport type {ToggleButtonProps} from './ToggleButton';\nexport type {TooltipProps} from './Tooltip';\nexport type {FileTriggerProps, TooltipTriggerComponentProps as TooltipTriggerProps} from 'react-aria-components';\n"],"names":[],"version":3,"file":"module.mjs.map"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode, Context, JSX, RefAttributes, ForwardRefExoticComponent, JSXElementConstructor,
|
|
1
|
+
import React, { CSSProperties, ReactElement, ReactNode, Context, JSX, RefAttributes, ForwardRefExoticComponent, JSXElementConstructor, ReactPortal, HTMLAttributeReferrerPolicy } from "react";
|
|
2
2
|
import { AriaLabelingProps, DOMProps, DOMRefValue, SpectrumLabelableProps, FocusableRefValue, LinkDOMProps, LoadingState, HelpTextProps, Orientation, ValueBase, LabelPosition, InputDOMProps, RangeValue } from "@react-types/shared";
|
|
3
|
-
import { ContextValue, SlotProps, FormProps as _FormProps1, ButtonProps as _ButtonProps1, CheckboxProps as _CheckboxProps1, SeparatorProps, PopoverProps as _PopoverProps1, MenuItemProps as _MenuItemProps1, MenuProps as _MenuProps1, MenuTriggerProps as _MenuTriggerProps1, SubmenuTriggerProps as _SubmenuTriggerProps1, SectionProps, ProgressBarProps as _ProgressBarProps1, LinkProps as _LinkProps1, DialogProps as _DialogProps1, BreadcrumbsProps as _BreadcrumbsProps1, GridListItemProps, GridListProps, DialogTriggerProps as _DialogTriggerProps1, CheckboxGroupProps as _CheckboxGroupProps1, ColorAreaProps as _ColorAreaProps1, ColorFieldProps as _ColorFieldProps1, ColorSliderProps as _ColorSliderProps1, ColorSwatchProps as _ColorSwatchProps1, ColorWheelProps as _ColorWheelProps1, SelectProps, ListBoxItemProps, ListBoxProps, ComboBoxProps as _ComboBoxProps1, DropZoneProps as _DropZoneProps1, MeterProps as _MeterProps1, NumberFieldProps as _NumberFieldProps1, RadioProps as _RadioProps1, RadioGroupProps as _RadioGroupProps1, SliderProps as _SliderProps1, SearchFieldProps as _SearchFieldProps1, SwitchProps as _SwitchProps1, TabListProps as _TabListProps1, TabPanelProps as _TabPanelProps1, TabProps as _TabProps1, TabsProps as _TabsProps1, TagGroupProps as _TagGroupProps1, TagProps as _TagProps1, TagListProps, TextFieldProps as _TextFieldProps1, ToggleButtonProps as _ToggleButtonProps1, TooltipProps as _TooltipProps1, TooltipTriggerComponentProps } from "react-aria-components";
|
|
3
|
+
import { ContextValue, DisclosurePanelProps as _DisclosurePanelProps1, DisclosureProps as _DisclosureProps1, SlotProps, FormProps as _FormProps1, ButtonProps as _ButtonProps1, CheckboxProps as _CheckboxProps1, SeparatorProps, PopoverProps as _PopoverProps1, MenuItemProps as _MenuItemProps1, MenuProps as _MenuProps1, MenuTriggerProps as _MenuTriggerProps1, SubmenuTriggerProps as _SubmenuTriggerProps1, SectionProps, ProgressBarProps as _ProgressBarProps1, LinkProps as _LinkProps1, DialogProps as _DialogProps1, BreadcrumbsProps as _BreadcrumbsProps1, GridListItemProps, GridListProps, DialogTriggerProps as _DialogTriggerProps1, CheckboxGroupProps as _CheckboxGroupProps1, ColorAreaProps as _ColorAreaProps1, ColorFieldProps as _ColorFieldProps1, ColorSliderProps as _ColorSliderProps1, ColorSwatchProps as _ColorSwatchProps1, ColorWheelProps as _ColorWheelProps1, SelectProps, ListBoxItemProps, ListBoxProps, ComboBoxProps as _ComboBoxProps1, DropZoneProps as _DropZoneProps1, MeterProps as _MeterProps1, NumberFieldProps as _NumberFieldProps1, RadioProps as _RadioProps1, RadioGroupProps as _RadioGroupProps1, SliderProps as _SliderProps1, SearchFieldProps as _SearchFieldProps1, SwitchProps as _SwitchProps1, TabListProps as _TabListProps1, TabPanelProps as _TabPanelProps1, TabProps as _TabProps1, TabsProps as _TabsProps1, TagGroupProps as _TagGroupProps1, TagProps as _TagProps1, TagListProps, TextFieldProps as _TextFieldProps1, ToggleButtonProps as _ToggleButtonProps1, TooltipProps as _TooltipProps1, TooltipTriggerComponentProps } from "react-aria-components";
|
|
4
4
|
import { ColorScheme, Router } from "@react-types/provider";
|
|
5
5
|
import { AriaBreadcrumbItemProps } from "react-aria";
|
|
6
6
|
import { TextFieldRef } from "@react-types/textfield";
|
|
@@ -25,6 +25,71 @@ interface StyleProps extends UnsafeStyles {
|
|
|
25
25
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
26
26
|
styles?: StylesProp;
|
|
27
27
|
}
|
|
28
|
+
export interface DisclosureProps extends _DisclosureProps1, StyleProps, DOMProps {
|
|
29
|
+
/**
|
|
30
|
+
* The size of the disclosure.
|
|
31
|
+
* @default "M"
|
|
32
|
+
*/
|
|
33
|
+
size?: 'S' | 'M' | 'L' | 'XL';
|
|
34
|
+
/**
|
|
35
|
+
* The amount of space between the disclosures.
|
|
36
|
+
* @default "regular"
|
|
37
|
+
*/
|
|
38
|
+
density?: 'compact' | 'regular' | 'spacious';
|
|
39
|
+
/** Whether the disclosure should be displayed with a quiet style. */
|
|
40
|
+
isQuiet?: boolean;
|
|
41
|
+
/** The contents of the disclosure, consisting of an DisclosureHeader and DisclosurePanel. */
|
|
42
|
+
children: [ReactElement<DisclosureHeaderProps>, ReactElement<DisclosurePanelProps>];
|
|
43
|
+
}
|
|
44
|
+
export const DisclosureContext: React.Context<ContextValue<Omit<DisclosureProps, "children">, DOMRefValue<HTMLDivElement>>>;
|
|
45
|
+
/**
|
|
46
|
+
* A disclosure is a collapsible section of content. It is composed of a a header with a heading and trigger button, and a panel that contains the content.
|
|
47
|
+
*/
|
|
48
|
+
export let Disclosure: (props: DisclosureProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
49
|
+
interface DisclosureHeaderProps extends UnsafeStyles, DOMProps {
|
|
50
|
+
/** The heading level of the disclosure header.
|
|
51
|
+
*
|
|
52
|
+
* @default 3
|
|
53
|
+
*/
|
|
54
|
+
level?: number;
|
|
55
|
+
children: React.ReactNode;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A header for a disclosure. Contains a heading and a trigger button to expand/collapse the panel.
|
|
59
|
+
*/
|
|
60
|
+
export let DisclosureHeader: (props: DisclosureHeaderProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
61
|
+
export interface DisclosurePanelProps extends _DisclosurePanelProps1, UnsafeStyles, DOMProps, AriaLabelingProps {
|
|
62
|
+
children: React.ReactNode;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A disclosure panel is a collapsible section of content that is hidden until the disclosure is expanded.
|
|
66
|
+
*/
|
|
67
|
+
export let DisclosurePanel: (props: DisclosurePanelProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
68
|
+
export interface AccordionProps extends UnsafeStyles, DOMProps, SlotProps {
|
|
69
|
+
/** The disclosure elements in the accordion. */
|
|
70
|
+
children: React.ReactNode;
|
|
71
|
+
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
72
|
+
styles?: StylesPropWithHeight;
|
|
73
|
+
/**
|
|
74
|
+
* The size of the accordion.
|
|
75
|
+
* @default "M"
|
|
76
|
+
*/
|
|
77
|
+
size?: 'S' | 'M' | 'L' | 'XL';
|
|
78
|
+
/**
|
|
79
|
+
* The amount of space between the disclosure items.
|
|
80
|
+
* @default "regular"
|
|
81
|
+
*/
|
|
82
|
+
density?: 'compact' | 'regular' | 'spacious';
|
|
83
|
+
/** Whether the accordion should be displayed with a quiet style. */
|
|
84
|
+
isQuiet?: boolean;
|
|
85
|
+
/** Whether the accordion should be disabled. */
|
|
86
|
+
isDisabled?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export const AccordionContext: React.Context<ContextValue<AccordionProps, DOMRefValue<HTMLDivElement>>>;
|
|
89
|
+
/**
|
|
90
|
+
* An accordion is a container for multiple disclosures.
|
|
91
|
+
*/
|
|
92
|
+
export let Accordion: (props: AccordionProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
28
93
|
export interface IconProps extends UnsafeStyles, SlotProps, AriaLabelingProps, DOMProps {
|
|
29
94
|
'aria-hidden'?: boolean | 'false' | 'true';
|
|
30
95
|
}
|