@react-spectrum/accordion 3.0.0-alpha.30 → 3.0.0-alpha.32
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.main.js +12 -12
- package/dist/Accordion.mjs +13 -13
- package/dist/Accordion.module.js +12 -12
- package/dist/accordion_vars_css.mjs +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -15
package/dist/Accordion.main.js
CHANGED
|
@@ -55,7 +55,7 @@ function $d8f45715b3ce327a$var$Accordion(props, ref) {
|
|
|
55
55
|
...accordionProps,
|
|
56
56
|
...styleProps,
|
|
57
57
|
ref: domRef,
|
|
58
|
-
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))),
|
|
58
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), 'spectrum-Accordion', styleProps.className)
|
|
59
59
|
}, [
|
|
60
60
|
...state.collection
|
|
61
61
|
].map((item)=>/*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement($d8f45715b3ce327a$var$AccordionItem, {
|
|
@@ -76,30 +76,30 @@ function $d8f45715b3ce327a$var$AccordionItem(props) {
|
|
|
76
76
|
});
|
|
77
77
|
let { direction: direction } = (0, $52xbb$reactariai18n.useLocale)();
|
|
78
78
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("div", {
|
|
79
|
-
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))),
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), 'spectrum-Accordion-item', {
|
|
80
|
+
'is-open': isOpen,
|
|
81
|
+
'is-disabled': isDisabled
|
|
82
82
|
})
|
|
83
83
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("h3", {
|
|
84
|
-
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))),
|
|
84
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), 'spectrum-Accordion-itemHeading')
|
|
85
85
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement((0, $52xbb$reactariafocus.FocusRing), {
|
|
86
86
|
within: true,
|
|
87
|
-
focusRingClass: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))),
|
|
87
|
+
focusRingClass: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), 'focus-ring')
|
|
88
88
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("button", {
|
|
89
89
|
...(0, $52xbb$reactariautils.mergeProps)(buttonProps, hoverProps),
|
|
90
90
|
ref: ref,
|
|
91
|
-
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))),
|
|
92
|
-
|
|
91
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), 'spectrum-Accordion-itemHeader', {
|
|
92
|
+
'is-hovered': isHovered
|
|
93
93
|
})
|
|
94
|
-
}, direction ===
|
|
94
|
+
}, direction === 'ltr' ? /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement((0, ($parcel$interopDefault($52xbb$spectrumiconsuiChevronRightMedium))), {
|
|
95
95
|
"aria-hidden": "true",
|
|
96
|
-
UNSAFE_className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))),
|
|
96
|
+
UNSAFE_className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), 'spectrum-Accordion-itemIndicator')
|
|
97
97
|
}) : /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement((0, ($parcel$interopDefault($52xbb$spectrumiconsuiChevronLeftMedium))), {
|
|
98
98
|
"aria-hidden": "true",
|
|
99
|
-
UNSAFE_className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))),
|
|
99
|
+
UNSAFE_className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), 'spectrum-Accordion-itemIndicator')
|
|
100
100
|
}), item.props.title))), /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("div", {
|
|
101
101
|
...regionProps,
|
|
102
|
-
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))),
|
|
102
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), 'spectrum-Accordion-itemContent')
|
|
103
103
|
}, item.props.children));
|
|
104
104
|
}
|
|
105
105
|
const $d8f45715b3ce327a$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $52xbb$react.forwardRef)($d8f45715b3ce327a$var$Accordion);
|
package/dist/Accordion.mjs
CHANGED
|
@@ -49,7 +49,7 @@ function $2a5a5b7faca81754$var$Accordion(props, ref) {
|
|
|
49
49
|
...accordionProps,
|
|
50
50
|
...styleProps,
|
|
51
51
|
ref: domRef,
|
|
52
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
52
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion', styleProps.className)
|
|
53
53
|
}, [
|
|
54
54
|
...state.collection
|
|
55
55
|
].map((item)=>/*#__PURE__*/ (0, $aMy5K$react).createElement($2a5a5b7faca81754$var$AccordionItem, {
|
|
@@ -70,34 +70,34 @@ function $2a5a5b7faca81754$var$AccordionItem(props) {
|
|
|
70
70
|
});
|
|
71
71
|
let { direction: direction } = (0, $aMy5K$useLocale)();
|
|
72
72
|
return /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
73
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-item', {
|
|
74
|
+
'is-open': isOpen,
|
|
75
|
+
'is-disabled': isDisabled
|
|
76
76
|
})
|
|
77
77
|
}, /*#__PURE__*/ (0, $aMy5K$react).createElement("h3", {
|
|
78
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
78
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemHeading')
|
|
79
79
|
}, /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$FocusRing), {
|
|
80
80
|
within: true,
|
|
81
|
-
focusRingClass: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
81
|
+
focusRingClass: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'focus-ring')
|
|
82
82
|
}, /*#__PURE__*/ (0, $aMy5K$react).createElement("button", {
|
|
83
83
|
...(0, $aMy5K$mergeProps)(buttonProps, hoverProps),
|
|
84
84
|
ref: ref,
|
|
85
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
86
|
-
|
|
85
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemHeader', {
|
|
86
|
+
'is-hovered': isHovered
|
|
87
87
|
})
|
|
88
|
-
}, direction ===
|
|
88
|
+
}, direction === 'ltr' ? /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$spectrumiconsuiChevronRightMedium), {
|
|
89
89
|
"aria-hidden": "true",
|
|
90
|
-
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
90
|
+
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemIndicator')
|
|
91
91
|
}) : /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$spectrumiconsuiChevronLeftMedium), {
|
|
92
92
|
"aria-hidden": "true",
|
|
93
|
-
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
93
|
+
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemIndicator')
|
|
94
94
|
}), item.props.title))), /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
95
95
|
...regionProps,
|
|
96
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
96
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemContent')
|
|
97
97
|
}, item.props.children));
|
|
98
98
|
}
|
|
99
99
|
const $2a5a5b7faca81754$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $aMy5K$forwardRef)($2a5a5b7faca81754$var$Accordion);
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
export {$2a5a5b7faca81754$export$a766cd26d0d69044 as Accordion};
|
|
103
|
-
//# sourceMappingURL=Accordion.
|
|
103
|
+
//# sourceMappingURL=Accordion.module.js.map
|
package/dist/Accordion.module.js
CHANGED
|
@@ -49,7 +49,7 @@ function $2a5a5b7faca81754$var$Accordion(props, ref) {
|
|
|
49
49
|
...accordionProps,
|
|
50
50
|
...styleProps,
|
|
51
51
|
ref: domRef,
|
|
52
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
52
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion', styleProps.className)
|
|
53
53
|
}, [
|
|
54
54
|
...state.collection
|
|
55
55
|
].map((item)=>/*#__PURE__*/ (0, $aMy5K$react).createElement($2a5a5b7faca81754$var$AccordionItem, {
|
|
@@ -70,30 +70,30 @@ function $2a5a5b7faca81754$var$AccordionItem(props) {
|
|
|
70
70
|
});
|
|
71
71
|
let { direction: direction } = (0, $aMy5K$useLocale)();
|
|
72
72
|
return /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
73
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-item', {
|
|
74
|
+
'is-open': isOpen,
|
|
75
|
+
'is-disabled': isDisabled
|
|
76
76
|
})
|
|
77
77
|
}, /*#__PURE__*/ (0, $aMy5K$react).createElement("h3", {
|
|
78
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
78
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemHeading')
|
|
79
79
|
}, /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$FocusRing), {
|
|
80
80
|
within: true,
|
|
81
|
-
focusRingClass: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
81
|
+
focusRingClass: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'focus-ring')
|
|
82
82
|
}, /*#__PURE__*/ (0, $aMy5K$react).createElement("button", {
|
|
83
83
|
...(0, $aMy5K$mergeProps)(buttonProps, hoverProps),
|
|
84
84
|
ref: ref,
|
|
85
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
86
|
-
|
|
85
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemHeader', {
|
|
86
|
+
'is-hovered': isHovered
|
|
87
87
|
})
|
|
88
|
-
}, direction ===
|
|
88
|
+
}, direction === 'ltr' ? /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$spectrumiconsuiChevronRightMedium), {
|
|
89
89
|
"aria-hidden": "true",
|
|
90
|
-
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
90
|
+
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemIndicator')
|
|
91
91
|
}) : /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$spectrumiconsuiChevronLeftMedium), {
|
|
92
92
|
"aria-hidden": "true",
|
|
93
|
-
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
93
|
+
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemIndicator')
|
|
94
94
|
}), item.props.title))), /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
95
95
|
...regionProps,
|
|
96
|
-
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))),
|
|
96
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), 'spectrum-Accordion-itemContent')
|
|
97
97
|
}, item.props.children));
|
|
98
98
|
}
|
|
99
99
|
const $2a5a5b7faca81754$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $aMy5K$forwardRef)($2a5a5b7faca81754$var$Accordion);
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;AA4BA,0BAAmB,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,cAAc,CAAC,qBAmBjG;AAmDD,OAAA,MAAM;
|
|
1
|
+
{"mappings":";;;AA4BA,0BAAmB,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,cAAc,CAAC,qBAmBjG;AAmDD,OAAA,MAAM,WAAsC,CAAC,CAAC,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,OAAO,cAAc,CAAC,CAAA;CAAC,KAAK,UAAU,CAAC,gBAAgB,CAAC,CAAC;ACrFnJ,OAAO,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAChD,YAAY,EAAC,sBAAsB,EAAC,MAAM,wBAAwB,CAAC","sources":["packages/@react-spectrum/accordion/src/packages/@react-spectrum/accordion/src/Accordion.tsx","packages/@react-spectrum/accordion/src/packages/@react-spectrum/accordion/src/index.ts","packages/@react-spectrum/accordion/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/// <reference types=\"css-module-types\" />\nexport {Accordion} from './Accordion';\nexport {Item} from '@react-stately/collections';\nexport type {SpectrumAccordionProps} from '@react-types/accordion';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/accordion",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.32",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/accordion": "3.0.0-alpha.
|
|
40
|
-
"@react-aria/focus": "^3.
|
|
41
|
-
"@react-aria/i18n": "^3.
|
|
42
|
-
"@react-aria/interactions": "^3.
|
|
43
|
-
"@react-aria/utils": "^3.
|
|
44
|
-
"@react-spectrum/utils": "^3.11.
|
|
45
|
-
"@react-stately/collections": "^3.10.
|
|
46
|
-
"@react-stately/tree": "^3.8.
|
|
47
|
-
"@react-types/accordion": "3.0.0-alpha.
|
|
48
|
-
"@react-types/shared": "^3.
|
|
49
|
-
"@spectrum-icons/ui": "^3.6.
|
|
39
|
+
"@react-aria/accordion": "3.0.0-alpha.30",
|
|
40
|
+
"@react-aria/focus": "^3.18.0",
|
|
41
|
+
"@react-aria/i18n": "^3.12.0",
|
|
42
|
+
"@react-aria/interactions": "^3.22.0",
|
|
43
|
+
"@react-aria/utils": "^3.25.0",
|
|
44
|
+
"@react-spectrum/utils": "^3.11.8",
|
|
45
|
+
"@react-stately/collections": "^3.10.8",
|
|
46
|
+
"@react-stately/tree": "^3.8.2",
|
|
47
|
+
"@react-types/accordion": "3.0.0-alpha.22",
|
|
48
|
+
"@react-types/shared": "^3.24.0",
|
|
49
|
+
"@spectrum-icons/ui": "^3.6.8",
|
|
50
50
|
"@swc/helpers": "^0.5.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@react-spectrum/provider": "^3.0.0",
|
|
57
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
|
|
58
|
-
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
57
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",
|
|
58
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
|
|
64
64
|
}
|