@react-spectrum/accordion 3.0.0-nightly.4555 → 3.0.0-nightly.4560
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 +108 -0
- package/dist/Accordion.main.js.map +1 -0
- package/dist/Accordion.mjs +103 -0
- package/dist/Accordion.module.js +103 -0
- package/dist/Accordion.module.js.map +1 -0
- package/dist/accordion_vars_css.main.js +38 -0
- package/dist/accordion_vars_css.main.js.map +1 -0
- package/dist/accordion_vars_css.mjs +40 -0
- package/dist/accordion_vars_css.module.js +40 -0
- package/dist/accordion_vars_css.module.js.map +1 -0
- package/dist/import.mjs +1 -135
- package/dist/main.js +2 -132
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -135
- package/dist/module.js.map +1 -1
- package/dist/{main.css → vars.1361683a.css} +1 -1
- package/dist/{main.css.map → vars.1361683a.css.map} +1 -1
- package/package.json +14 -14
- package/dist/module.css +0 -144
- package/dist/module.css.map +0 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
require("./vars.1361683a.css");
|
|
2
|
+
var $5ab573b23bc1d039$exports = require("./accordion_vars_css.main.js");
|
|
3
|
+
var $52xbb$spectrumiconsuiChevronLeftMedium = require("@spectrum-icons/ui/ChevronLeftMedium");
|
|
4
|
+
var $52xbb$spectrumiconsuiChevronRightMedium = require("@spectrum-icons/ui/ChevronRightMedium");
|
|
5
|
+
var $52xbb$reactspectrumutils = require("@react-spectrum/utils");
|
|
6
|
+
var $52xbb$reactariautils = require("@react-aria/utils");
|
|
7
|
+
var $52xbb$reactariafocus = require("@react-aria/focus");
|
|
8
|
+
var $52xbb$react = require("react");
|
|
9
|
+
var $52xbb$reactstatelytree = require("@react-stately/tree");
|
|
10
|
+
var $52xbb$reactariaaccordion = require("@react-aria/accordion");
|
|
11
|
+
var $52xbb$reactariainteractions = require("@react-aria/interactions");
|
|
12
|
+
var $52xbb$reactariai18n = require("@react-aria/i18n");
|
|
13
|
+
var $52xbb$reactspectrumprovider = require("@react-spectrum/provider");
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
function $parcel$interopDefault(a) {
|
|
17
|
+
return a && a.__esModule ? a.default : a;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function $parcel$export(e, n, v, s) {
|
|
21
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
$parcel$export(module.exports, "Accordion", () => $d8f45715b3ce327a$export$a766cd26d0d69044);
|
|
25
|
+
/*
|
|
26
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
27
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
28
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
29
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
30
|
+
*
|
|
31
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
32
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
33
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
34
|
+
* governing permissions and limitations under the License.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
function $d8f45715b3ce327a$var$Accordion(props, ref) {
|
|
48
|
+
props = (0, $52xbb$reactspectrumprovider.useProviderProps)(props);
|
|
49
|
+
let state = (0, $52xbb$reactstatelytree.useTreeState)(props);
|
|
50
|
+
let { styleProps: styleProps } = (0, $52xbb$reactspectrumutils.useStyleProps)(props);
|
|
51
|
+
let domRef = (0, $52xbb$reactspectrumutils.useDOMRef)(ref);
|
|
52
|
+
let { accordionProps: accordionProps } = (0, $52xbb$reactariaaccordion.useAccordion)(props, state, domRef);
|
|
53
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("div", {
|
|
54
|
+
...(0, $52xbb$reactariautils.filterDOMProps)(props),
|
|
55
|
+
...accordionProps,
|
|
56
|
+
...styleProps,
|
|
57
|
+
ref: domRef,
|
|
58
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion", styleProps.className)
|
|
59
|
+
}, [
|
|
60
|
+
...state.collection
|
|
61
|
+
].map((item)=>/*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement($d8f45715b3ce327a$var$AccordionItem, {
|
|
62
|
+
key: item.key,
|
|
63
|
+
item: item,
|
|
64
|
+
state: state
|
|
65
|
+
})));
|
|
66
|
+
}
|
|
67
|
+
function $d8f45715b3ce327a$var$AccordionItem(props) {
|
|
68
|
+
props = (0, $52xbb$reactspectrumprovider.useProviderProps)(props);
|
|
69
|
+
let ref = (0, $52xbb$react.useRef)(null);
|
|
70
|
+
let { state: state, item: item } = props;
|
|
71
|
+
let { buttonProps: buttonProps, regionProps: regionProps } = (0, $52xbb$reactariaaccordion.useAccordionItem)(props, state, ref);
|
|
72
|
+
let isOpen = state.expandedKeys.has(item.key);
|
|
73
|
+
let isDisabled = state.disabledKeys.has(item.key);
|
|
74
|
+
let { isHovered: isHovered, hoverProps: hoverProps } = (0, $52xbb$reactariainteractions.useHover)({
|
|
75
|
+
isDisabled: isDisabled
|
|
76
|
+
});
|
|
77
|
+
let { direction: direction } = (0, $52xbb$reactariai18n.useLocale)();
|
|
78
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("div", {
|
|
79
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-item", {
|
|
80
|
+
"is-open": isOpen,
|
|
81
|
+
"is-disabled": isDisabled
|
|
82
|
+
})
|
|
83
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("h3", {
|
|
84
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemHeading")
|
|
85
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement((0, $52xbb$reactariafocus.FocusRing), {
|
|
86
|
+
within: true,
|
|
87
|
+
focusRingClass: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), "focus-ring")
|
|
88
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("button", {
|
|
89
|
+
...(0, $52xbb$reactariautils.mergeProps)(buttonProps, hoverProps),
|
|
90
|
+
ref: ref,
|
|
91
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemHeader", {
|
|
92
|
+
"is-hovered": isHovered
|
|
93
|
+
})
|
|
94
|
+
}, direction === "ltr" ? /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement((0, ($parcel$interopDefault($52xbb$spectrumiconsuiChevronRightMedium))), {
|
|
95
|
+
"aria-hidden": "true",
|
|
96
|
+
UNSAFE_className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemIndicator")
|
|
97
|
+
}) : /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement((0, ($parcel$interopDefault($52xbb$spectrumiconsuiChevronLeftMedium))), {
|
|
98
|
+
"aria-hidden": "true",
|
|
99
|
+
UNSAFE_className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemIndicator")
|
|
100
|
+
}), item.props.title))), /*#__PURE__*/ (0, ($parcel$interopDefault($52xbb$react))).createElement("div", {
|
|
101
|
+
...regionProps,
|
|
102
|
+
className: (0, $52xbb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemContent")
|
|
103
|
+
}, item.props.children));
|
|
104
|
+
}
|
|
105
|
+
const $d8f45715b3ce327a$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $52xbb$react.forwardRef)($d8f45715b3ce327a$var$Accordion);
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
//# sourceMappingURL=Accordion.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;AAkBD,SAAS,gCAA4B,KAAgC,EAAE,GAA2B;IAChG,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,QAAQ,CAAA,GAAA,oCAAW,EAAK;IAC5B,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,kBAAC,cAAc,EAAC,GAAG,CAAA,GAAA,sCAAW,EAAE,OAAO,OAAO;IAElD,qBACE,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,MAAM;QACxB,GAAG,cAAc;QACjB,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG,sBAAsB,WAAW,SAAS;OACvE;WAAI,MAAM,UAAU;KAAC,CAAC,GAAG,CAAC,CAAA,qBACzB,0DAAC;YAAiB,KAAK,KAAK,GAAG;YAAE,MAAM;YAAM,OAAO;;AAI5D;AAOA,SAAS,oCAAiB,KAA4B;IACpD,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,MAAM,CAAA,GAAA,mBAAK,EAAqB;IACpC,IAAI,SAAC,KAAK,QAAE,IAAI,EAAC,GAAG;IACpB,IAAI,eAAC,WAAW,eAAE,WAAW,EAAC,GAAG,CAAA,GAAA,0CAAe,EAAK,OAAO,OAAO;IACnE,IAAI,SAAS,MAAM,YAAY,CAAC,GAAG,CAAC,KAAK,GAAG;IAC5C,IAAI,aAAa,MAAM,YAAY,CAAC,GAAG,CAAC,KAAK,GAAG;IAChD,IAAI,aAAC,SAAS,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,qCAAO,EAAE;oBAAC;IAAU;IAClD,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,8BAAQ;IAE1B,qBACE,0DAAC;QACC,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG,2BAA2B;YACvD,WAAW;YACX,eAAe;QACjB;qBACA,0DAAC;QAAG,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;qBAChC,0DAAC,CAAA,GAAA,+BAAQ;QAAE,QAAA;QAAO,gBAAgB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;qBACnD,0DAAC;QACE,GAAG,CAAA,GAAA,gCAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG,iCAAiC;YAC7D,cAAc;QAChB;OACC,cAAc,sBACb,0DAAC,CAAA,GAAA,kEAAiB;QAChB,eAAY;QACZ,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;uBAErC,0DAAC,CAAA,GAAA,iEAAgB;QACf,eAAY;QACZ,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QAE1C,KAAK,KAAK,CAAC,KAAK,mBAIvB,0DAAC;QAAK,GAAG,WAAW;QAAE,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;OACjD,KAAK,KAAK,CAAC,QAAQ;AAI5B;AAEA,MAAM,0DAAa,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/accordion/src/Accordion.tsx"],"sourcesContent":["/*\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\nimport ChevronLeftMedium from '@spectrum-icons/ui/ChevronLeftMedium';\nimport ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, Node} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport React, {forwardRef, useRef} from 'react';\nimport {SpectrumAccordionProps} from '@react-types/accordion';\nimport styles from '@adobe/spectrum-css-temp/components/accordion/vars.css';\nimport {TreeState, useTreeState} from '@react-stately/tree';\nimport {useAccordion, useAccordionItem} from '@react-aria/accordion';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\n\nfunction Accordion<T extends object>(props: SpectrumAccordionProps<T>, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let state = useTreeState<T>(props);\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n let {accordionProps} = useAccordion(props, state, domRef);\n\n return (\n <div\n {...filterDOMProps(props)}\n {...accordionProps}\n {...styleProps}\n ref={domRef}\n className={classNames(styles, 'spectrum-Accordion', styleProps.className)}>\n {[...state.collection].map(item => (\n <AccordionItem<T> key={item.key} item={item} state={state} />\n ))}\n </div>\n );\n}\n\ninterface AccordionItemProps<T> {\n item: Node<T>,\n state: TreeState<T>\n}\n\nfunction AccordionItem<T>(props: AccordionItemProps<T>) {\n props = useProviderProps(props);\n let ref = useRef<HTMLButtonElement>(null);\n let {state, item} = props;\n let {buttonProps, regionProps} = useAccordionItem<T>(props, state, ref);\n let isOpen = state.expandedKeys.has(item.key);\n let isDisabled = state.disabledKeys.has(item.key);\n let {isHovered, hoverProps} = useHover({isDisabled});\n let {direction} = useLocale();\n\n return (\n <div\n className={classNames(styles, 'spectrum-Accordion-item', {\n 'is-open': isOpen,\n 'is-disabled': isDisabled\n })}>\n <h3 className={classNames(styles, 'spectrum-Accordion-itemHeading')}>\n <FocusRing within focusRingClass={classNames(styles, 'focus-ring')}>\n <button\n {...mergeProps(buttonProps, hoverProps)}\n ref={ref}\n className={classNames(styles, 'spectrum-Accordion-itemHeader', {\n 'is-hovered': isHovered\n })}>\n {direction === 'ltr' ? (\n <ChevronRightMedium\n aria-hidden=\"true\"\n UNSAFE_className={classNames(styles, 'spectrum-Accordion-itemIndicator')} />\n ) : (\n <ChevronLeftMedium\n aria-hidden=\"true\"\n UNSAFE_className={classNames(styles, 'spectrum-Accordion-itemIndicator')} />\n )}\n {item.props.title}\n </button>\n </FocusRing>\n </h3>\n <div {...regionProps} className={classNames(styles, 'spectrum-Accordion-itemContent')}>\n {item.props.children}\n </div>\n </div>\n );\n}\n\nconst _Accordion = forwardRef(Accordion) as <T>(props: SpectrumAccordionProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReturnType<typeof Accordion>;\nexport {_Accordion as Accordion};\n"],"names":[],"version":3,"file":"Accordion.main.js.map"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import "./vars.1361683a.css";
|
|
2
|
+
import $aMy5K$accordion_vars_cssmodulejs from "./accordion_vars_css.mjs";
|
|
3
|
+
import $aMy5K$spectrumiconsuiChevronLeftMedium from "@spectrum-icons/ui/ChevronLeftMedium";
|
|
4
|
+
import $aMy5K$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
|
|
5
|
+
import {useStyleProps as $aMy5K$useStyleProps, useDOMRef as $aMy5K$useDOMRef, classNames as $aMy5K$classNames} from "@react-spectrum/utils";
|
|
6
|
+
import {filterDOMProps as $aMy5K$filterDOMProps, mergeProps as $aMy5K$mergeProps} from "@react-aria/utils";
|
|
7
|
+
import {FocusRing as $aMy5K$FocusRing} from "@react-aria/focus";
|
|
8
|
+
import $aMy5K$react, {useRef as $aMy5K$useRef, forwardRef as $aMy5K$forwardRef} from "react";
|
|
9
|
+
import {useTreeState as $aMy5K$useTreeState} from "@react-stately/tree";
|
|
10
|
+
import {useAccordion as $aMy5K$useAccordion, useAccordionItem as $aMy5K$useAccordionItem} from "@react-aria/accordion";
|
|
11
|
+
import {useHover as $aMy5K$useHover} from "@react-aria/interactions";
|
|
12
|
+
import {useLocale as $aMy5K$useLocale} from "@react-aria/i18n";
|
|
13
|
+
import {useProviderProps as $aMy5K$useProviderProps} from "@react-spectrum/provider";
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
function $parcel$interopDefault(a) {
|
|
17
|
+
return a && a.__esModule ? a.default : a;
|
|
18
|
+
}
|
|
19
|
+
/*
|
|
20
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
21
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
22
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
23
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
24
|
+
*
|
|
25
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
26
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
27
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
28
|
+
* governing permissions and limitations under the License.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
function $2a5a5b7faca81754$var$Accordion(props, ref) {
|
|
42
|
+
props = (0, $aMy5K$useProviderProps)(props);
|
|
43
|
+
let state = (0, $aMy5K$useTreeState)(props);
|
|
44
|
+
let { styleProps: styleProps } = (0, $aMy5K$useStyleProps)(props);
|
|
45
|
+
let domRef = (0, $aMy5K$useDOMRef)(ref);
|
|
46
|
+
let { accordionProps: accordionProps } = (0, $aMy5K$useAccordion)(props, state, domRef);
|
|
47
|
+
return /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
48
|
+
...(0, $aMy5K$filterDOMProps)(props),
|
|
49
|
+
...accordionProps,
|
|
50
|
+
...styleProps,
|
|
51
|
+
ref: domRef,
|
|
52
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion", styleProps.className)
|
|
53
|
+
}, [
|
|
54
|
+
...state.collection
|
|
55
|
+
].map((item)=>/*#__PURE__*/ (0, $aMy5K$react).createElement($2a5a5b7faca81754$var$AccordionItem, {
|
|
56
|
+
key: item.key,
|
|
57
|
+
item: item,
|
|
58
|
+
state: state
|
|
59
|
+
})));
|
|
60
|
+
}
|
|
61
|
+
function $2a5a5b7faca81754$var$AccordionItem(props) {
|
|
62
|
+
props = (0, $aMy5K$useProviderProps)(props);
|
|
63
|
+
let ref = (0, $aMy5K$useRef)(null);
|
|
64
|
+
let { state: state, item: item } = props;
|
|
65
|
+
let { buttonProps: buttonProps, regionProps: regionProps } = (0, $aMy5K$useAccordionItem)(props, state, ref);
|
|
66
|
+
let isOpen = state.expandedKeys.has(item.key);
|
|
67
|
+
let isDisabled = state.disabledKeys.has(item.key);
|
|
68
|
+
let { isHovered: isHovered, hoverProps: hoverProps } = (0, $aMy5K$useHover)({
|
|
69
|
+
isDisabled: isDisabled
|
|
70
|
+
});
|
|
71
|
+
let { direction: direction } = (0, $aMy5K$useLocale)();
|
|
72
|
+
return /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
73
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-item", {
|
|
74
|
+
"is-open": isOpen,
|
|
75
|
+
"is-disabled": isDisabled
|
|
76
|
+
})
|
|
77
|
+
}, /*#__PURE__*/ (0, $aMy5K$react).createElement("h3", {
|
|
78
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemHeading")
|
|
79
|
+
}, /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$FocusRing), {
|
|
80
|
+
within: true,
|
|
81
|
+
focusRingClass: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "focus-ring")
|
|
82
|
+
}, /*#__PURE__*/ (0, $aMy5K$react).createElement("button", {
|
|
83
|
+
...(0, $aMy5K$mergeProps)(buttonProps, hoverProps),
|
|
84
|
+
ref: ref,
|
|
85
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemHeader", {
|
|
86
|
+
"is-hovered": isHovered
|
|
87
|
+
})
|
|
88
|
+
}, direction === "ltr" ? /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$spectrumiconsuiChevronRightMedium), {
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemIndicator")
|
|
91
|
+
}) : /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$spectrumiconsuiChevronLeftMedium), {
|
|
92
|
+
"aria-hidden": "true",
|
|
93
|
+
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemIndicator")
|
|
94
|
+
}), item.props.title))), /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
95
|
+
...regionProps,
|
|
96
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemContent")
|
|
97
|
+
}, item.props.children));
|
|
98
|
+
}
|
|
99
|
+
const $2a5a5b7faca81754$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $aMy5K$forwardRef)($2a5a5b7faca81754$var$Accordion);
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
export {$2a5a5b7faca81754$export$a766cd26d0d69044 as Accordion};
|
|
103
|
+
//# sourceMappingURL=Accordion.mjs.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import "./vars.1361683a.css";
|
|
2
|
+
import $aMy5K$accordion_vars_cssmodulejs from "./accordion_vars_css.module.js";
|
|
3
|
+
import $aMy5K$spectrumiconsuiChevronLeftMedium from "@spectrum-icons/ui/ChevronLeftMedium";
|
|
4
|
+
import $aMy5K$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
|
|
5
|
+
import {useStyleProps as $aMy5K$useStyleProps, useDOMRef as $aMy5K$useDOMRef, classNames as $aMy5K$classNames} from "@react-spectrum/utils";
|
|
6
|
+
import {filterDOMProps as $aMy5K$filterDOMProps, mergeProps as $aMy5K$mergeProps} from "@react-aria/utils";
|
|
7
|
+
import {FocusRing as $aMy5K$FocusRing} from "@react-aria/focus";
|
|
8
|
+
import $aMy5K$react, {useRef as $aMy5K$useRef, forwardRef as $aMy5K$forwardRef} from "react";
|
|
9
|
+
import {useTreeState as $aMy5K$useTreeState} from "@react-stately/tree";
|
|
10
|
+
import {useAccordion as $aMy5K$useAccordion, useAccordionItem as $aMy5K$useAccordionItem} from "@react-aria/accordion";
|
|
11
|
+
import {useHover as $aMy5K$useHover} from "@react-aria/interactions";
|
|
12
|
+
import {useLocale as $aMy5K$useLocale} from "@react-aria/i18n";
|
|
13
|
+
import {useProviderProps as $aMy5K$useProviderProps} from "@react-spectrum/provider";
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
function $parcel$interopDefault(a) {
|
|
17
|
+
return a && a.__esModule ? a.default : a;
|
|
18
|
+
}
|
|
19
|
+
/*
|
|
20
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
21
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
22
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
23
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
24
|
+
*
|
|
25
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
26
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
27
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
28
|
+
* governing permissions and limitations under the License.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
function $2a5a5b7faca81754$var$Accordion(props, ref) {
|
|
42
|
+
props = (0, $aMy5K$useProviderProps)(props);
|
|
43
|
+
let state = (0, $aMy5K$useTreeState)(props);
|
|
44
|
+
let { styleProps: styleProps } = (0, $aMy5K$useStyleProps)(props);
|
|
45
|
+
let domRef = (0, $aMy5K$useDOMRef)(ref);
|
|
46
|
+
let { accordionProps: accordionProps } = (0, $aMy5K$useAccordion)(props, state, domRef);
|
|
47
|
+
return /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
48
|
+
...(0, $aMy5K$filterDOMProps)(props),
|
|
49
|
+
...accordionProps,
|
|
50
|
+
...styleProps,
|
|
51
|
+
ref: domRef,
|
|
52
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion", styleProps.className)
|
|
53
|
+
}, [
|
|
54
|
+
...state.collection
|
|
55
|
+
].map((item)=>/*#__PURE__*/ (0, $aMy5K$react).createElement($2a5a5b7faca81754$var$AccordionItem, {
|
|
56
|
+
key: item.key,
|
|
57
|
+
item: item,
|
|
58
|
+
state: state
|
|
59
|
+
})));
|
|
60
|
+
}
|
|
61
|
+
function $2a5a5b7faca81754$var$AccordionItem(props) {
|
|
62
|
+
props = (0, $aMy5K$useProviderProps)(props);
|
|
63
|
+
let ref = (0, $aMy5K$useRef)(null);
|
|
64
|
+
let { state: state, item: item } = props;
|
|
65
|
+
let { buttonProps: buttonProps, regionProps: regionProps } = (0, $aMy5K$useAccordionItem)(props, state, ref);
|
|
66
|
+
let isOpen = state.expandedKeys.has(item.key);
|
|
67
|
+
let isDisabled = state.disabledKeys.has(item.key);
|
|
68
|
+
let { isHovered: isHovered, hoverProps: hoverProps } = (0, $aMy5K$useHover)({
|
|
69
|
+
isDisabled: isDisabled
|
|
70
|
+
});
|
|
71
|
+
let { direction: direction } = (0, $aMy5K$useLocale)();
|
|
72
|
+
return /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
73
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-item", {
|
|
74
|
+
"is-open": isOpen,
|
|
75
|
+
"is-disabled": isDisabled
|
|
76
|
+
})
|
|
77
|
+
}, /*#__PURE__*/ (0, $aMy5K$react).createElement("h3", {
|
|
78
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemHeading")
|
|
79
|
+
}, /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$FocusRing), {
|
|
80
|
+
within: true,
|
|
81
|
+
focusRingClass: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "focus-ring")
|
|
82
|
+
}, /*#__PURE__*/ (0, $aMy5K$react).createElement("button", {
|
|
83
|
+
...(0, $aMy5K$mergeProps)(buttonProps, hoverProps),
|
|
84
|
+
ref: ref,
|
|
85
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemHeader", {
|
|
86
|
+
"is-hovered": isHovered
|
|
87
|
+
})
|
|
88
|
+
}, direction === "ltr" ? /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$spectrumiconsuiChevronRightMedium), {
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemIndicator")
|
|
91
|
+
}) : /*#__PURE__*/ (0, $aMy5K$react).createElement((0, $aMy5K$spectrumiconsuiChevronLeftMedium), {
|
|
92
|
+
"aria-hidden": "true",
|
|
93
|
+
UNSAFE_className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemIndicator")
|
|
94
|
+
}), item.props.title))), /*#__PURE__*/ (0, $aMy5K$react).createElement("div", {
|
|
95
|
+
...regionProps,
|
|
96
|
+
className: (0, $aMy5K$classNames)((0, ($parcel$interopDefault($aMy5K$accordion_vars_cssmodulejs))), "spectrum-Accordion-itemContent")
|
|
97
|
+
}, item.props.children));
|
|
98
|
+
}
|
|
99
|
+
const $2a5a5b7faca81754$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $aMy5K$forwardRef)($2a5a5b7faca81754$var$Accordion);
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
export {$2a5a5b7faca81754$export$a766cd26d0d69044 as Accordion};
|
|
103
|
+
//# sourceMappingURL=Accordion.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;AAkBD,SAAS,gCAA4B,KAAgC,EAAE,GAA2B;IAChG,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,QAAQ,CAAA,GAAA,mBAAW,EAAK;IAC5B,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,kBAAC,cAAc,EAAC,GAAG,CAAA,GAAA,mBAAW,EAAE,OAAO,OAAO;IAElD,qBACE,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,MAAM;QACxB,GAAG,cAAc;QACjB,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,2DAAK,GAAG,sBAAsB,WAAW,SAAS;OACvE;WAAI,MAAM,UAAU;KAAC,CAAC,GAAG,CAAC,CAAA,qBACzB,gCAAC;YAAiB,KAAK,KAAK,GAAG;YAAE,MAAM;YAAM,OAAO;;AAI5D;AAOA,SAAS,oCAAiB,KAA4B;IACpD,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,MAAM,CAAA,GAAA,aAAK,EAAqB;IACpC,IAAI,SAAC,KAAK,QAAE,IAAI,EAAC,GAAG;IACpB,IAAI,eAAC,WAAW,eAAE,WAAW,EAAC,GAAG,CAAA,GAAA,uBAAe,EAAK,OAAO,OAAO;IACnE,IAAI,SAAS,MAAM,YAAY,CAAC,GAAG,CAAC,KAAK,GAAG;IAC5C,IAAI,aAAa,MAAM,YAAY,CAAC,GAAG,CAAC,KAAK,GAAG;IAChD,IAAI,aAAC,SAAS,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;oBAAC;IAAU;IAClD,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,gBAAQ;IAE1B,qBACE,gCAAC;QACC,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,2DAAK,GAAG,2BAA2B;YACvD,WAAW;YACX,eAAe;QACjB;qBACA,gCAAC;QAAG,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,2DAAK,GAAG;qBAChC,gCAAC,CAAA,GAAA,gBAAQ;QAAE,QAAA;QAAO,gBAAgB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,2DAAK,GAAG;qBACnD,gCAAC;QACE,GAAG,CAAA,GAAA,iBAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,2DAAK,GAAG,iCAAiC;YAC7D,cAAc;QAChB;OACC,cAAc,sBACb,gCAAC,CAAA,GAAA,wCAAiB;QAChB,eAAY;QACZ,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,2DAAK,GAAG;uBAErC,gCAAC,CAAA,GAAA,uCAAgB;QACf,eAAY;QACZ,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,2DAAK,GAAG;QAE1C,KAAK,KAAK,CAAC,KAAK,mBAIvB,gCAAC;QAAK,GAAG,WAAW;QAAE,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,2DAAK,GAAG;OACjD,KAAK,KAAK,CAAC,QAAQ;AAI5B;AAEA,MAAM,0DAAa,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/accordion/src/Accordion.tsx"],"sourcesContent":["/*\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\nimport ChevronLeftMedium from '@spectrum-icons/ui/ChevronLeftMedium';\nimport ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, Node} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport React, {forwardRef, useRef} from 'react';\nimport {SpectrumAccordionProps} from '@react-types/accordion';\nimport styles from '@adobe/spectrum-css-temp/components/accordion/vars.css';\nimport {TreeState, useTreeState} from '@react-stately/tree';\nimport {useAccordion, useAccordionItem} from '@react-aria/accordion';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\n\nfunction Accordion<T extends object>(props: SpectrumAccordionProps<T>, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let state = useTreeState<T>(props);\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n let {accordionProps} = useAccordion(props, state, domRef);\n\n return (\n <div\n {...filterDOMProps(props)}\n {...accordionProps}\n {...styleProps}\n ref={domRef}\n className={classNames(styles, 'spectrum-Accordion', styleProps.className)}>\n {[...state.collection].map(item => (\n <AccordionItem<T> key={item.key} item={item} state={state} />\n ))}\n </div>\n );\n}\n\ninterface AccordionItemProps<T> {\n item: Node<T>,\n state: TreeState<T>\n}\n\nfunction AccordionItem<T>(props: AccordionItemProps<T>) {\n props = useProviderProps(props);\n let ref = useRef<HTMLButtonElement>(null);\n let {state, item} = props;\n let {buttonProps, regionProps} = useAccordionItem<T>(props, state, ref);\n let isOpen = state.expandedKeys.has(item.key);\n let isDisabled = state.disabledKeys.has(item.key);\n let {isHovered, hoverProps} = useHover({isDisabled});\n let {direction} = useLocale();\n\n return (\n <div\n className={classNames(styles, 'spectrum-Accordion-item', {\n 'is-open': isOpen,\n 'is-disabled': isDisabled\n })}>\n <h3 className={classNames(styles, 'spectrum-Accordion-itemHeading')}>\n <FocusRing within focusRingClass={classNames(styles, 'focus-ring')}>\n <button\n {...mergeProps(buttonProps, hoverProps)}\n ref={ref}\n className={classNames(styles, 'spectrum-Accordion-itemHeader', {\n 'is-hovered': isHovered\n })}>\n {direction === 'ltr' ? (\n <ChevronRightMedium\n aria-hidden=\"true\"\n UNSAFE_className={classNames(styles, 'spectrum-Accordion-itemIndicator')} />\n ) : (\n <ChevronLeftMedium\n aria-hidden=\"true\"\n UNSAFE_className={classNames(styles, 'spectrum-Accordion-itemIndicator')} />\n )}\n {item.props.title}\n </button>\n </FocusRing>\n </h3>\n <div {...regionProps} className={classNames(styles, 'spectrum-Accordion-itemContent')}>\n {item.props.children}\n </div>\n </div>\n );\n}\n\nconst _Accordion = forwardRef(Accordion) as <T>(props: SpectrumAccordionProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReturnType<typeof Accordion>;\nexport {_Accordion as Accordion};\n"],"names":[],"version":3,"file":"Accordion.module.js.map"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
$parcel$export(module.exports, "focus-ring", () => $5ab573b23bc1d039$export$f39a09f249340e2a, (v) => $5ab573b23bc1d039$export$f39a09f249340e2a = v);
|
|
7
|
+
$parcel$export(module.exports, "is-disabled", () => $5ab573b23bc1d039$export$d35bc1e505d1ebbf, (v) => $5ab573b23bc1d039$export$d35bc1e505d1ebbf = v);
|
|
8
|
+
$parcel$export(module.exports, "is-hovered", () => $5ab573b23bc1d039$export$b8813cd5d7824ce7, (v) => $5ab573b23bc1d039$export$b8813cd5d7824ce7 = v);
|
|
9
|
+
$parcel$export(module.exports, "is-open", () => $5ab573b23bc1d039$export$a9781837241c946d, (v) => $5ab573b23bc1d039$export$a9781837241c946d = v);
|
|
10
|
+
$parcel$export(module.exports, "spectrum-Accordion", () => $5ab573b23bc1d039$export$bed6cbae852b32f0, (v) => $5ab573b23bc1d039$export$bed6cbae852b32f0 = v);
|
|
11
|
+
$parcel$export(module.exports, "spectrum-Accordion-item", () => $5ab573b23bc1d039$export$a1947cb8adf67515, (v) => $5ab573b23bc1d039$export$a1947cb8adf67515 = v);
|
|
12
|
+
$parcel$export(module.exports, "spectrum-Accordion-itemContent", () => $5ab573b23bc1d039$export$951cb9dc63743241, (v) => $5ab573b23bc1d039$export$951cb9dc63743241 = v);
|
|
13
|
+
$parcel$export(module.exports, "spectrum-Accordion-itemHeader", () => $5ab573b23bc1d039$export$4da8efb546c03356, (v) => $5ab573b23bc1d039$export$4da8efb546c03356 = v);
|
|
14
|
+
$parcel$export(module.exports, "spectrum-Accordion-itemHeading", () => $5ab573b23bc1d039$export$36876b8193439034, (v) => $5ab573b23bc1d039$export$36876b8193439034 = v);
|
|
15
|
+
$parcel$export(module.exports, "spectrum-Accordion-itemIndicator", () => $5ab573b23bc1d039$export$35196e2132b47abd, (v) => $5ab573b23bc1d039$export$35196e2132b47abd = v);
|
|
16
|
+
var $5ab573b23bc1d039$export$f39a09f249340e2a;
|
|
17
|
+
var $5ab573b23bc1d039$export$d35bc1e505d1ebbf;
|
|
18
|
+
var $5ab573b23bc1d039$export$b8813cd5d7824ce7;
|
|
19
|
+
var $5ab573b23bc1d039$export$a9781837241c946d;
|
|
20
|
+
var $5ab573b23bc1d039$export$bed6cbae852b32f0;
|
|
21
|
+
var $5ab573b23bc1d039$export$a1947cb8adf67515;
|
|
22
|
+
var $5ab573b23bc1d039$export$951cb9dc63743241;
|
|
23
|
+
var $5ab573b23bc1d039$export$4da8efb546c03356;
|
|
24
|
+
var $5ab573b23bc1d039$export$36876b8193439034;
|
|
25
|
+
var $5ab573b23bc1d039$export$35196e2132b47abd;
|
|
26
|
+
$5ab573b23bc1d039$export$f39a09f249340e2a = `_7gO6Sq_focus-ring`;
|
|
27
|
+
$5ab573b23bc1d039$export$d35bc1e505d1ebbf = `_7gO6Sq_is-disabled`;
|
|
28
|
+
$5ab573b23bc1d039$export$b8813cd5d7824ce7 = `_7gO6Sq_is-hovered`;
|
|
29
|
+
$5ab573b23bc1d039$export$a9781837241c946d = `_7gO6Sq_is-open`;
|
|
30
|
+
$5ab573b23bc1d039$export$bed6cbae852b32f0 = `_7gO6Sq_spectrum-Accordion`;
|
|
31
|
+
$5ab573b23bc1d039$export$a1947cb8adf67515 = `_7gO6Sq_spectrum-Accordion-item`;
|
|
32
|
+
$5ab573b23bc1d039$export$951cb9dc63743241 = `_7gO6Sq_spectrum-Accordion-itemContent`;
|
|
33
|
+
$5ab573b23bc1d039$export$4da8efb546c03356 = `_7gO6Sq_spectrum-Accordion-itemHeader`;
|
|
34
|
+
$5ab573b23bc1d039$export$36876b8193439034 = `_7gO6Sq_spectrum-Accordion-itemHeading`;
|
|
35
|
+
$5ab573b23bc1d039$export$35196e2132b47abd = `_7gO6Sq_spectrum-Accordion-itemIndicator`;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=accordion_vars_css.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AATA,4CAA+B,CAAC,kBAAkB,CAAC;AACnD,4CAAgC,CAAC,mBAAmB,CAAC;AACrD,4CAA+B,CAAC,kBAAkB,CAAC;AACnD,4CAA4B,CAAC,eAAe,CAAC;AAC7C,4CAAuC,CAAC,0BAA0B,CAAC;AACnE,4CAA4C,CAAC,+BAA+B,CAAC;AAC7E,4CAAmD,CAAC,sCAAsC,CAAC;AAC3F,4CAAkD,CAAC,qCAAqC,CAAC;AACzF,4CAAmD,CAAC,sCAAsC,CAAC;AAC3F,4CAAqD,CAAC,wCAAwC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/accordion/vars.css"],"sourcesContent":["/*\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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"accordion_vars_css.main.js.map"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
var $cd9bb50514faf076$exports = {};
|
|
6
|
+
|
|
7
|
+
$parcel$export($cd9bb50514faf076$exports, "focus-ring", () => $cd9bb50514faf076$export$f39a09f249340e2a, (v) => $cd9bb50514faf076$export$f39a09f249340e2a = v);
|
|
8
|
+
$parcel$export($cd9bb50514faf076$exports, "is-disabled", () => $cd9bb50514faf076$export$d35bc1e505d1ebbf, (v) => $cd9bb50514faf076$export$d35bc1e505d1ebbf = v);
|
|
9
|
+
$parcel$export($cd9bb50514faf076$exports, "is-hovered", () => $cd9bb50514faf076$export$b8813cd5d7824ce7, (v) => $cd9bb50514faf076$export$b8813cd5d7824ce7 = v);
|
|
10
|
+
$parcel$export($cd9bb50514faf076$exports, "is-open", () => $cd9bb50514faf076$export$a9781837241c946d, (v) => $cd9bb50514faf076$export$a9781837241c946d = v);
|
|
11
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion", () => $cd9bb50514faf076$export$bed6cbae852b32f0, (v) => $cd9bb50514faf076$export$bed6cbae852b32f0 = v);
|
|
12
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-item", () => $cd9bb50514faf076$export$a1947cb8adf67515, (v) => $cd9bb50514faf076$export$a1947cb8adf67515 = v);
|
|
13
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemContent", () => $cd9bb50514faf076$export$951cb9dc63743241, (v) => $cd9bb50514faf076$export$951cb9dc63743241 = v);
|
|
14
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemHeader", () => $cd9bb50514faf076$export$4da8efb546c03356, (v) => $cd9bb50514faf076$export$4da8efb546c03356 = v);
|
|
15
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemHeading", () => $cd9bb50514faf076$export$36876b8193439034, (v) => $cd9bb50514faf076$export$36876b8193439034 = v);
|
|
16
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemIndicator", () => $cd9bb50514faf076$export$35196e2132b47abd, (v) => $cd9bb50514faf076$export$35196e2132b47abd = v);
|
|
17
|
+
var $cd9bb50514faf076$export$f39a09f249340e2a;
|
|
18
|
+
var $cd9bb50514faf076$export$d35bc1e505d1ebbf;
|
|
19
|
+
var $cd9bb50514faf076$export$b8813cd5d7824ce7;
|
|
20
|
+
var $cd9bb50514faf076$export$a9781837241c946d;
|
|
21
|
+
var $cd9bb50514faf076$export$bed6cbae852b32f0;
|
|
22
|
+
var $cd9bb50514faf076$export$a1947cb8adf67515;
|
|
23
|
+
var $cd9bb50514faf076$export$951cb9dc63743241;
|
|
24
|
+
var $cd9bb50514faf076$export$4da8efb546c03356;
|
|
25
|
+
var $cd9bb50514faf076$export$36876b8193439034;
|
|
26
|
+
var $cd9bb50514faf076$export$35196e2132b47abd;
|
|
27
|
+
$cd9bb50514faf076$export$f39a09f249340e2a = `_7gO6Sq_focus-ring`;
|
|
28
|
+
$cd9bb50514faf076$export$d35bc1e505d1ebbf = `_7gO6Sq_is-disabled`;
|
|
29
|
+
$cd9bb50514faf076$export$b8813cd5d7824ce7 = `_7gO6Sq_is-hovered`;
|
|
30
|
+
$cd9bb50514faf076$export$a9781837241c946d = `_7gO6Sq_is-open`;
|
|
31
|
+
$cd9bb50514faf076$export$bed6cbae852b32f0 = `_7gO6Sq_spectrum-Accordion`;
|
|
32
|
+
$cd9bb50514faf076$export$a1947cb8adf67515 = `_7gO6Sq_spectrum-Accordion-item`;
|
|
33
|
+
$cd9bb50514faf076$export$951cb9dc63743241 = `_7gO6Sq_spectrum-Accordion-itemContent`;
|
|
34
|
+
$cd9bb50514faf076$export$4da8efb546c03356 = `_7gO6Sq_spectrum-Accordion-itemHeader`;
|
|
35
|
+
$cd9bb50514faf076$export$36876b8193439034 = `_7gO6Sq_spectrum-Accordion-itemHeading`;
|
|
36
|
+
$cd9bb50514faf076$export$35196e2132b47abd = `_7gO6Sq_spectrum-Accordion-itemIndicator`;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export {$cd9bb50514faf076$exports as default};
|
|
40
|
+
//# sourceMappingURL=accordion_vars_css.mjs.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
var $cd9bb50514faf076$exports = {};
|
|
6
|
+
|
|
7
|
+
$parcel$export($cd9bb50514faf076$exports, "focus-ring", () => $cd9bb50514faf076$export$f39a09f249340e2a, (v) => $cd9bb50514faf076$export$f39a09f249340e2a = v);
|
|
8
|
+
$parcel$export($cd9bb50514faf076$exports, "is-disabled", () => $cd9bb50514faf076$export$d35bc1e505d1ebbf, (v) => $cd9bb50514faf076$export$d35bc1e505d1ebbf = v);
|
|
9
|
+
$parcel$export($cd9bb50514faf076$exports, "is-hovered", () => $cd9bb50514faf076$export$b8813cd5d7824ce7, (v) => $cd9bb50514faf076$export$b8813cd5d7824ce7 = v);
|
|
10
|
+
$parcel$export($cd9bb50514faf076$exports, "is-open", () => $cd9bb50514faf076$export$a9781837241c946d, (v) => $cd9bb50514faf076$export$a9781837241c946d = v);
|
|
11
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion", () => $cd9bb50514faf076$export$bed6cbae852b32f0, (v) => $cd9bb50514faf076$export$bed6cbae852b32f0 = v);
|
|
12
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-item", () => $cd9bb50514faf076$export$a1947cb8adf67515, (v) => $cd9bb50514faf076$export$a1947cb8adf67515 = v);
|
|
13
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemContent", () => $cd9bb50514faf076$export$951cb9dc63743241, (v) => $cd9bb50514faf076$export$951cb9dc63743241 = v);
|
|
14
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemHeader", () => $cd9bb50514faf076$export$4da8efb546c03356, (v) => $cd9bb50514faf076$export$4da8efb546c03356 = v);
|
|
15
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemHeading", () => $cd9bb50514faf076$export$36876b8193439034, (v) => $cd9bb50514faf076$export$36876b8193439034 = v);
|
|
16
|
+
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemIndicator", () => $cd9bb50514faf076$export$35196e2132b47abd, (v) => $cd9bb50514faf076$export$35196e2132b47abd = v);
|
|
17
|
+
var $cd9bb50514faf076$export$f39a09f249340e2a;
|
|
18
|
+
var $cd9bb50514faf076$export$d35bc1e505d1ebbf;
|
|
19
|
+
var $cd9bb50514faf076$export$b8813cd5d7824ce7;
|
|
20
|
+
var $cd9bb50514faf076$export$a9781837241c946d;
|
|
21
|
+
var $cd9bb50514faf076$export$bed6cbae852b32f0;
|
|
22
|
+
var $cd9bb50514faf076$export$a1947cb8adf67515;
|
|
23
|
+
var $cd9bb50514faf076$export$951cb9dc63743241;
|
|
24
|
+
var $cd9bb50514faf076$export$4da8efb546c03356;
|
|
25
|
+
var $cd9bb50514faf076$export$36876b8193439034;
|
|
26
|
+
var $cd9bb50514faf076$export$35196e2132b47abd;
|
|
27
|
+
$cd9bb50514faf076$export$f39a09f249340e2a = `_7gO6Sq_focus-ring`;
|
|
28
|
+
$cd9bb50514faf076$export$d35bc1e505d1ebbf = `_7gO6Sq_is-disabled`;
|
|
29
|
+
$cd9bb50514faf076$export$b8813cd5d7824ce7 = `_7gO6Sq_is-hovered`;
|
|
30
|
+
$cd9bb50514faf076$export$a9781837241c946d = `_7gO6Sq_is-open`;
|
|
31
|
+
$cd9bb50514faf076$export$bed6cbae852b32f0 = `_7gO6Sq_spectrum-Accordion`;
|
|
32
|
+
$cd9bb50514faf076$export$a1947cb8adf67515 = `_7gO6Sq_spectrum-Accordion-item`;
|
|
33
|
+
$cd9bb50514faf076$export$951cb9dc63743241 = `_7gO6Sq_spectrum-Accordion-itemContent`;
|
|
34
|
+
$cd9bb50514faf076$export$4da8efb546c03356 = `_7gO6Sq_spectrum-Accordion-itemHeader`;
|
|
35
|
+
$cd9bb50514faf076$export$36876b8193439034 = `_7gO6Sq_spectrum-Accordion-itemHeading`;
|
|
36
|
+
$cd9bb50514faf076$export$35196e2132b47abd = `_7gO6Sq_spectrum-Accordion-itemIndicator`;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export {$cd9bb50514faf076$exports as default};
|
|
40
|
+
//# sourceMappingURL=accordion_vars_css.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AATA,4CAA+B,CAAC,kBAAkB,CAAC;AACnD,4CAAgC,CAAC,mBAAmB,CAAC;AACrD,4CAA+B,CAAC,kBAAkB,CAAC;AACnD,4CAA4B,CAAC,eAAe,CAAC;AAC7C,4CAAuC,CAAC,0BAA0B,CAAC;AACnE,4CAA4C,CAAC,+BAA+B,CAAC;AAC7E,4CAAmD,CAAC,sCAAsC,CAAC;AAC3F,4CAAkD,CAAC,qCAAqC,CAAC;AACzF,4CAAmD,CAAC,sCAAsC,CAAC;AAC3F,4CAAqD,CAAC,wCAAwC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/accordion/vars.css"],"sourcesContent":["/*\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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"accordion_vars_css.module.js.map"}
|
package/dist/import.mjs
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import {Accordion as $2a5a5b7faca81754$export$a766cd26d0d69044} from "./Accordion.mjs";
|
|
2
2
|
import {Item as $8ae4d4d1aa0c5e03$re_export$Item} from "@react-stately/collections";
|
|
3
|
-
import $3Uu4R$spectrumiconsuiChevronLeftMedium from "@spectrum-icons/ui/ChevronLeftMedium";
|
|
4
|
-
import $3Uu4R$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
|
|
5
|
-
import {useStyleProps as $3Uu4R$useStyleProps, useDOMRef as $3Uu4R$useDOMRef, classNames as $3Uu4R$classNames} from "@react-spectrum/utils";
|
|
6
|
-
import {filterDOMProps as $3Uu4R$filterDOMProps, mergeProps as $3Uu4R$mergeProps} from "@react-aria/utils";
|
|
7
|
-
import {FocusRing as $3Uu4R$FocusRing} from "@react-aria/focus";
|
|
8
|
-
import $3Uu4R$react, {useRef as $3Uu4R$useRef, forwardRef as $3Uu4R$forwardRef} from "react";
|
|
9
|
-
import {useTreeState as $3Uu4R$useTreeState} from "@react-stately/tree";
|
|
10
|
-
import {useAccordion as $3Uu4R$useAccordion, useAccordionItem as $3Uu4R$useAccordionItem} from "@react-aria/accordion";
|
|
11
|
-
import {useHover as $3Uu4R$useHover} from "@react-aria/interactions";
|
|
12
|
-
import {useLocale as $3Uu4R$useLocale} from "@react-aria/i18n";
|
|
13
|
-
import {useProviderProps as $3Uu4R$useProviderProps} from "@react-spectrum/provider";
|
|
14
3
|
|
|
15
|
-
|
|
16
|
-
function $parcel$interopDefault(a) {
|
|
17
|
-
return a && a.__esModule ? a.default : a;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function $parcel$export(e, n, v, s) {
|
|
21
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
22
|
-
}
|
|
23
4
|
/*
|
|
24
5
|
* Copyright 2020 Adobe. All rights reserved.
|
|
25
6
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -31,121 +12,6 @@ function $parcel$export(e, n, v, s) {
|
|
|
31
12
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
32
13
|
* governing permissions and limitations under the License.
|
|
33
14
|
*/ /// <reference types="css-module-types" />
|
|
34
|
-
/*
|
|
35
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
36
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
37
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
38
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
39
|
-
*
|
|
40
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
41
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
42
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
43
|
-
* governing permissions and limitations under the License.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
var $cd9bb50514faf076$exports = {};
|
|
51
|
-
|
|
52
|
-
$parcel$export($cd9bb50514faf076$exports, "focus-ring", () => $cd9bb50514faf076$export$f39a09f249340e2a, (v) => $cd9bb50514faf076$export$f39a09f249340e2a = v);
|
|
53
|
-
$parcel$export($cd9bb50514faf076$exports, "is-disabled", () => $cd9bb50514faf076$export$d35bc1e505d1ebbf, (v) => $cd9bb50514faf076$export$d35bc1e505d1ebbf = v);
|
|
54
|
-
$parcel$export($cd9bb50514faf076$exports, "is-hovered", () => $cd9bb50514faf076$export$b8813cd5d7824ce7, (v) => $cd9bb50514faf076$export$b8813cd5d7824ce7 = v);
|
|
55
|
-
$parcel$export($cd9bb50514faf076$exports, "is-open", () => $cd9bb50514faf076$export$a9781837241c946d, (v) => $cd9bb50514faf076$export$a9781837241c946d = v);
|
|
56
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion", () => $cd9bb50514faf076$export$bed6cbae852b32f0, (v) => $cd9bb50514faf076$export$bed6cbae852b32f0 = v);
|
|
57
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-item", () => $cd9bb50514faf076$export$a1947cb8adf67515, (v) => $cd9bb50514faf076$export$a1947cb8adf67515 = v);
|
|
58
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemContent", () => $cd9bb50514faf076$export$951cb9dc63743241, (v) => $cd9bb50514faf076$export$951cb9dc63743241 = v);
|
|
59
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemHeader", () => $cd9bb50514faf076$export$4da8efb546c03356, (v) => $cd9bb50514faf076$export$4da8efb546c03356 = v);
|
|
60
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemHeading", () => $cd9bb50514faf076$export$36876b8193439034, (v) => $cd9bb50514faf076$export$36876b8193439034 = v);
|
|
61
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemIndicator", () => $cd9bb50514faf076$export$35196e2132b47abd, (v) => $cd9bb50514faf076$export$35196e2132b47abd = v);
|
|
62
|
-
var $cd9bb50514faf076$export$f39a09f249340e2a;
|
|
63
|
-
var $cd9bb50514faf076$export$d35bc1e505d1ebbf;
|
|
64
|
-
var $cd9bb50514faf076$export$b8813cd5d7824ce7;
|
|
65
|
-
var $cd9bb50514faf076$export$a9781837241c946d;
|
|
66
|
-
var $cd9bb50514faf076$export$bed6cbae852b32f0;
|
|
67
|
-
var $cd9bb50514faf076$export$a1947cb8adf67515;
|
|
68
|
-
var $cd9bb50514faf076$export$951cb9dc63743241;
|
|
69
|
-
var $cd9bb50514faf076$export$4da8efb546c03356;
|
|
70
|
-
var $cd9bb50514faf076$export$36876b8193439034;
|
|
71
|
-
var $cd9bb50514faf076$export$35196e2132b47abd;
|
|
72
|
-
$cd9bb50514faf076$export$f39a09f249340e2a = `_7gO6Sq_focus-ring`;
|
|
73
|
-
$cd9bb50514faf076$export$d35bc1e505d1ebbf = `_7gO6Sq_is-disabled`;
|
|
74
|
-
$cd9bb50514faf076$export$b8813cd5d7824ce7 = `_7gO6Sq_is-hovered`;
|
|
75
|
-
$cd9bb50514faf076$export$a9781837241c946d = `_7gO6Sq_is-open`;
|
|
76
|
-
$cd9bb50514faf076$export$bed6cbae852b32f0 = `_7gO6Sq_spectrum-Accordion`;
|
|
77
|
-
$cd9bb50514faf076$export$a1947cb8adf67515 = `_7gO6Sq_spectrum-Accordion-item`;
|
|
78
|
-
$cd9bb50514faf076$export$951cb9dc63743241 = `_7gO6Sq_spectrum-Accordion-itemContent`;
|
|
79
|
-
$cd9bb50514faf076$export$4da8efb546c03356 = `_7gO6Sq_spectrum-Accordion-itemHeader`;
|
|
80
|
-
$cd9bb50514faf076$export$36876b8193439034 = `_7gO6Sq_spectrum-Accordion-itemHeading`;
|
|
81
|
-
$cd9bb50514faf076$export$35196e2132b47abd = `_7gO6Sq_spectrum-Accordion-itemIndicator`;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
function $2a5a5b7faca81754$var$Accordion(props, ref) {
|
|
90
|
-
props = (0, $3Uu4R$useProviderProps)(props);
|
|
91
|
-
let state = (0, $3Uu4R$useTreeState)(props);
|
|
92
|
-
let { styleProps: styleProps } = (0, $3Uu4R$useStyleProps)(props);
|
|
93
|
-
let domRef = (0, $3Uu4R$useDOMRef)(ref);
|
|
94
|
-
let { accordionProps: accordionProps } = (0, $3Uu4R$useAccordion)(props, state, domRef);
|
|
95
|
-
return /*#__PURE__*/ (0, $3Uu4R$react).createElement("div", {
|
|
96
|
-
...(0, $3Uu4R$filterDOMProps)(props),
|
|
97
|
-
...accordionProps,
|
|
98
|
-
...styleProps,
|
|
99
|
-
ref: domRef,
|
|
100
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion", styleProps.className)
|
|
101
|
-
}, [
|
|
102
|
-
...state.collection
|
|
103
|
-
].map((item)=>/*#__PURE__*/ (0, $3Uu4R$react).createElement($2a5a5b7faca81754$var$AccordionItem, {
|
|
104
|
-
key: item.key,
|
|
105
|
-
item: item,
|
|
106
|
-
state: state
|
|
107
|
-
})));
|
|
108
|
-
}
|
|
109
|
-
function $2a5a5b7faca81754$var$AccordionItem(props) {
|
|
110
|
-
props = (0, $3Uu4R$useProviderProps)(props);
|
|
111
|
-
let ref = (0, $3Uu4R$useRef)(null);
|
|
112
|
-
let { state: state, item: item } = props;
|
|
113
|
-
let { buttonProps: buttonProps, regionProps: regionProps } = (0, $3Uu4R$useAccordionItem)(props, state, ref);
|
|
114
|
-
let isOpen = state.expandedKeys.has(item.key);
|
|
115
|
-
let isDisabled = state.disabledKeys.has(item.key);
|
|
116
|
-
let { isHovered: isHovered, hoverProps: hoverProps } = (0, $3Uu4R$useHover)({
|
|
117
|
-
isDisabled: isDisabled
|
|
118
|
-
});
|
|
119
|
-
let { direction: direction } = (0, $3Uu4R$useLocale)();
|
|
120
|
-
return /*#__PURE__*/ (0, $3Uu4R$react).createElement("div", {
|
|
121
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-item", {
|
|
122
|
-
"is-open": isOpen,
|
|
123
|
-
"is-disabled": isDisabled
|
|
124
|
-
})
|
|
125
|
-
}, /*#__PURE__*/ (0, $3Uu4R$react).createElement("h3", {
|
|
126
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemHeading")
|
|
127
|
-
}, /*#__PURE__*/ (0, $3Uu4R$react).createElement((0, $3Uu4R$FocusRing), {
|
|
128
|
-
within: true,
|
|
129
|
-
focusRingClass: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "focus-ring")
|
|
130
|
-
}, /*#__PURE__*/ (0, $3Uu4R$react).createElement("button", {
|
|
131
|
-
...(0, $3Uu4R$mergeProps)(buttonProps, hoverProps),
|
|
132
|
-
ref: ref,
|
|
133
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemHeader", {
|
|
134
|
-
"is-hovered": isHovered
|
|
135
|
-
})
|
|
136
|
-
}, direction === "ltr" ? /*#__PURE__*/ (0, $3Uu4R$react).createElement((0, $3Uu4R$spectrumiconsuiChevronRightMedium), {
|
|
137
|
-
"aria-hidden": "true",
|
|
138
|
-
UNSAFE_className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemIndicator")
|
|
139
|
-
}) : /*#__PURE__*/ (0, $3Uu4R$react).createElement((0, $3Uu4R$spectrumiconsuiChevronLeftMedium), {
|
|
140
|
-
"aria-hidden": "true",
|
|
141
|
-
UNSAFE_className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemIndicator")
|
|
142
|
-
}), item.props.title))), /*#__PURE__*/ (0, $3Uu4R$react).createElement("div", {
|
|
143
|
-
...regionProps,
|
|
144
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemContent")
|
|
145
|
-
}, item.props.children));
|
|
146
|
-
}
|
|
147
|
-
const $2a5a5b7faca81754$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $3Uu4R$forwardRef)($2a5a5b7faca81754$var$Accordion);
|
|
148
|
-
|
|
149
15
|
|
|
150
16
|
|
|
151
17
|
|
package/dist/main.js
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
require("./main.
|
|
1
|
+
var $d8f45715b3ce327a$exports = require("./Accordion.main.js");
|
|
2
2
|
var $6boyC$reactstatelycollections = require("@react-stately/collections");
|
|
3
|
-
var $6boyC$spectrumiconsuiChevronLeftMedium = require("@spectrum-icons/ui/ChevronLeftMedium");
|
|
4
|
-
var $6boyC$spectrumiconsuiChevronRightMedium = require("@spectrum-icons/ui/ChevronRightMedium");
|
|
5
|
-
var $6boyC$reactspectrumutils = require("@react-spectrum/utils");
|
|
6
|
-
var $6boyC$reactariautils = require("@react-aria/utils");
|
|
7
|
-
var $6boyC$reactariafocus = require("@react-aria/focus");
|
|
8
|
-
var $6boyC$react = require("react");
|
|
9
|
-
var $6boyC$reactstatelytree = require("@react-stately/tree");
|
|
10
|
-
var $6boyC$reactariaaccordion = require("@react-aria/accordion");
|
|
11
|
-
var $6boyC$reactariainteractions = require("@react-aria/interactions");
|
|
12
|
-
var $6boyC$reactariai18n = require("@react-aria/i18n");
|
|
13
|
-
var $6boyC$reactspectrumprovider = require("@react-spectrum/provider");
|
|
14
3
|
|
|
15
4
|
|
|
16
5
|
function $parcel$export(e, n, v, s) {
|
|
17
6
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
18
7
|
}
|
|
19
8
|
|
|
20
|
-
|
|
21
|
-
return a && a.__esModule ? a.default : a;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
$parcel$export(module.exports, "Accordion", () => $d8f45715b3ce327a$export$a766cd26d0d69044);
|
|
9
|
+
$parcel$export(module.exports, "Accordion", () => $d8f45715b3ce327a$exports.Accordion);
|
|
25
10
|
$parcel$export(module.exports, "Item", () => $6boyC$reactstatelycollections.Item);
|
|
26
11
|
/*
|
|
27
12
|
* Copyright 2020 Adobe. All rights reserved.
|
|
@@ -34,121 +19,6 @@ $parcel$export(module.exports, "Item", () => $6boyC$reactstatelycollections.Item
|
|
|
34
19
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
35
20
|
* governing permissions and limitations under the License.
|
|
36
21
|
*/ /// <reference types="css-module-types" />
|
|
37
|
-
/*
|
|
38
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
39
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
40
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
41
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
42
|
-
*
|
|
43
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
45
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
46
|
-
* governing permissions and limitations under the License.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var $5ab573b23bc1d039$exports = {};
|
|
54
|
-
|
|
55
|
-
$parcel$export($5ab573b23bc1d039$exports, "focus-ring", () => $5ab573b23bc1d039$export$f39a09f249340e2a, (v) => $5ab573b23bc1d039$export$f39a09f249340e2a = v);
|
|
56
|
-
$parcel$export($5ab573b23bc1d039$exports, "is-disabled", () => $5ab573b23bc1d039$export$d35bc1e505d1ebbf, (v) => $5ab573b23bc1d039$export$d35bc1e505d1ebbf = v);
|
|
57
|
-
$parcel$export($5ab573b23bc1d039$exports, "is-hovered", () => $5ab573b23bc1d039$export$b8813cd5d7824ce7, (v) => $5ab573b23bc1d039$export$b8813cd5d7824ce7 = v);
|
|
58
|
-
$parcel$export($5ab573b23bc1d039$exports, "is-open", () => $5ab573b23bc1d039$export$a9781837241c946d, (v) => $5ab573b23bc1d039$export$a9781837241c946d = v);
|
|
59
|
-
$parcel$export($5ab573b23bc1d039$exports, "spectrum-Accordion", () => $5ab573b23bc1d039$export$bed6cbae852b32f0, (v) => $5ab573b23bc1d039$export$bed6cbae852b32f0 = v);
|
|
60
|
-
$parcel$export($5ab573b23bc1d039$exports, "spectrum-Accordion-item", () => $5ab573b23bc1d039$export$a1947cb8adf67515, (v) => $5ab573b23bc1d039$export$a1947cb8adf67515 = v);
|
|
61
|
-
$parcel$export($5ab573b23bc1d039$exports, "spectrum-Accordion-itemContent", () => $5ab573b23bc1d039$export$951cb9dc63743241, (v) => $5ab573b23bc1d039$export$951cb9dc63743241 = v);
|
|
62
|
-
$parcel$export($5ab573b23bc1d039$exports, "spectrum-Accordion-itemHeader", () => $5ab573b23bc1d039$export$4da8efb546c03356, (v) => $5ab573b23bc1d039$export$4da8efb546c03356 = v);
|
|
63
|
-
$parcel$export($5ab573b23bc1d039$exports, "spectrum-Accordion-itemHeading", () => $5ab573b23bc1d039$export$36876b8193439034, (v) => $5ab573b23bc1d039$export$36876b8193439034 = v);
|
|
64
|
-
$parcel$export($5ab573b23bc1d039$exports, "spectrum-Accordion-itemIndicator", () => $5ab573b23bc1d039$export$35196e2132b47abd, (v) => $5ab573b23bc1d039$export$35196e2132b47abd = v);
|
|
65
|
-
var $5ab573b23bc1d039$export$f39a09f249340e2a;
|
|
66
|
-
var $5ab573b23bc1d039$export$d35bc1e505d1ebbf;
|
|
67
|
-
var $5ab573b23bc1d039$export$b8813cd5d7824ce7;
|
|
68
|
-
var $5ab573b23bc1d039$export$a9781837241c946d;
|
|
69
|
-
var $5ab573b23bc1d039$export$bed6cbae852b32f0;
|
|
70
|
-
var $5ab573b23bc1d039$export$a1947cb8adf67515;
|
|
71
|
-
var $5ab573b23bc1d039$export$951cb9dc63743241;
|
|
72
|
-
var $5ab573b23bc1d039$export$4da8efb546c03356;
|
|
73
|
-
var $5ab573b23bc1d039$export$36876b8193439034;
|
|
74
|
-
var $5ab573b23bc1d039$export$35196e2132b47abd;
|
|
75
|
-
$5ab573b23bc1d039$export$f39a09f249340e2a = `_7gO6Sq_focus-ring`;
|
|
76
|
-
$5ab573b23bc1d039$export$d35bc1e505d1ebbf = `_7gO6Sq_is-disabled`;
|
|
77
|
-
$5ab573b23bc1d039$export$b8813cd5d7824ce7 = `_7gO6Sq_is-hovered`;
|
|
78
|
-
$5ab573b23bc1d039$export$a9781837241c946d = `_7gO6Sq_is-open`;
|
|
79
|
-
$5ab573b23bc1d039$export$bed6cbae852b32f0 = `_7gO6Sq_spectrum-Accordion`;
|
|
80
|
-
$5ab573b23bc1d039$export$a1947cb8adf67515 = `_7gO6Sq_spectrum-Accordion-item`;
|
|
81
|
-
$5ab573b23bc1d039$export$951cb9dc63743241 = `_7gO6Sq_spectrum-Accordion-itemContent`;
|
|
82
|
-
$5ab573b23bc1d039$export$4da8efb546c03356 = `_7gO6Sq_spectrum-Accordion-itemHeader`;
|
|
83
|
-
$5ab573b23bc1d039$export$36876b8193439034 = `_7gO6Sq_spectrum-Accordion-itemHeading`;
|
|
84
|
-
$5ab573b23bc1d039$export$35196e2132b47abd = `_7gO6Sq_spectrum-Accordion-itemIndicator`;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
function $d8f45715b3ce327a$var$Accordion(props, ref) {
|
|
93
|
-
props = (0, $6boyC$reactspectrumprovider.useProviderProps)(props);
|
|
94
|
-
let state = (0, $6boyC$reactstatelytree.useTreeState)(props);
|
|
95
|
-
let { styleProps: styleProps } = (0, $6boyC$reactspectrumutils.useStyleProps)(props);
|
|
96
|
-
let domRef = (0, $6boyC$reactspectrumutils.useDOMRef)(ref);
|
|
97
|
-
let { accordionProps: accordionProps } = (0, $6boyC$reactariaaccordion.useAccordion)(props, state, domRef);
|
|
98
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement("div", {
|
|
99
|
-
...(0, $6boyC$reactariautils.filterDOMProps)(props),
|
|
100
|
-
...accordionProps,
|
|
101
|
-
...styleProps,
|
|
102
|
-
ref: domRef,
|
|
103
|
-
className: (0, $6boyC$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion", styleProps.className)
|
|
104
|
-
}, [
|
|
105
|
-
...state.collection
|
|
106
|
-
].map((item)=>/*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement($d8f45715b3ce327a$var$AccordionItem, {
|
|
107
|
-
key: item.key,
|
|
108
|
-
item: item,
|
|
109
|
-
state: state
|
|
110
|
-
})));
|
|
111
|
-
}
|
|
112
|
-
function $d8f45715b3ce327a$var$AccordionItem(props) {
|
|
113
|
-
props = (0, $6boyC$reactspectrumprovider.useProviderProps)(props);
|
|
114
|
-
let ref = (0, $6boyC$react.useRef)(null);
|
|
115
|
-
let { state: state, item: item } = props;
|
|
116
|
-
let { buttonProps: buttonProps, regionProps: regionProps } = (0, $6boyC$reactariaaccordion.useAccordionItem)(props, state, ref);
|
|
117
|
-
let isOpen = state.expandedKeys.has(item.key);
|
|
118
|
-
let isDisabled = state.disabledKeys.has(item.key);
|
|
119
|
-
let { isHovered: isHovered, hoverProps: hoverProps } = (0, $6boyC$reactariainteractions.useHover)({
|
|
120
|
-
isDisabled: isDisabled
|
|
121
|
-
});
|
|
122
|
-
let { direction: direction } = (0, $6boyC$reactariai18n.useLocale)();
|
|
123
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement("div", {
|
|
124
|
-
className: (0, $6boyC$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-item", {
|
|
125
|
-
"is-open": isOpen,
|
|
126
|
-
"is-disabled": isDisabled
|
|
127
|
-
})
|
|
128
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement("h3", {
|
|
129
|
-
className: (0, $6boyC$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemHeading")
|
|
130
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement((0, $6boyC$reactariafocus.FocusRing), {
|
|
131
|
-
within: true,
|
|
132
|
-
focusRingClass: (0, $6boyC$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($5ab573b23bc1d039$exports))), "focus-ring")
|
|
133
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement("button", {
|
|
134
|
-
...(0, $6boyC$reactariautils.mergeProps)(buttonProps, hoverProps),
|
|
135
|
-
ref: ref,
|
|
136
|
-
className: (0, $6boyC$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemHeader", {
|
|
137
|
-
"is-hovered": isHovered
|
|
138
|
-
})
|
|
139
|
-
}, direction === "ltr" ? /*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement((0, ($parcel$interopDefault($6boyC$spectrumiconsuiChevronRightMedium))), {
|
|
140
|
-
"aria-hidden": "true",
|
|
141
|
-
UNSAFE_className: (0, $6boyC$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemIndicator")
|
|
142
|
-
}) : /*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement((0, ($parcel$interopDefault($6boyC$spectrumiconsuiChevronLeftMedium))), {
|
|
143
|
-
"aria-hidden": "true",
|
|
144
|
-
UNSAFE_className: (0, $6boyC$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemIndicator")
|
|
145
|
-
}), item.props.title))), /*#__PURE__*/ (0, ($parcel$interopDefault($6boyC$react))).createElement("div", {
|
|
146
|
-
...regionProps,
|
|
147
|
-
className: (0, $6boyC$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($5ab573b23bc1d039$exports))), "spectrum-Accordion-itemContent")
|
|
148
|
-
}, item.props.children));
|
|
149
|
-
}
|
|
150
|
-
const $d8f45715b3ce327a$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $6boyC$react.forwardRef)($d8f45715b3ce327a$var$Accordion);
|
|
151
|
-
|
|
152
22
|
|
|
153
23
|
|
|
154
24
|
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C","sources":["packages/@react-spectrum/accordion/src/index.ts"],"sourcesContent":["/*\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":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
import "./module.
|
|
1
|
+
import {Accordion as $2a5a5b7faca81754$export$a766cd26d0d69044} from "./Accordion.module.js";
|
|
2
2
|
import {Item as $8ae4d4d1aa0c5e03$re_export$Item} from "@react-stately/collections";
|
|
3
|
-
import $3Uu4R$spectrumiconsuiChevronLeftMedium from "@spectrum-icons/ui/ChevronLeftMedium";
|
|
4
|
-
import $3Uu4R$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
|
|
5
|
-
import {useStyleProps as $3Uu4R$useStyleProps, useDOMRef as $3Uu4R$useDOMRef, classNames as $3Uu4R$classNames} from "@react-spectrum/utils";
|
|
6
|
-
import {filterDOMProps as $3Uu4R$filterDOMProps, mergeProps as $3Uu4R$mergeProps} from "@react-aria/utils";
|
|
7
|
-
import {FocusRing as $3Uu4R$FocusRing} from "@react-aria/focus";
|
|
8
|
-
import $3Uu4R$react, {useRef as $3Uu4R$useRef, forwardRef as $3Uu4R$forwardRef} from "react";
|
|
9
|
-
import {useTreeState as $3Uu4R$useTreeState} from "@react-stately/tree";
|
|
10
|
-
import {useAccordion as $3Uu4R$useAccordion, useAccordionItem as $3Uu4R$useAccordionItem} from "@react-aria/accordion";
|
|
11
|
-
import {useHover as $3Uu4R$useHover} from "@react-aria/interactions";
|
|
12
|
-
import {useLocale as $3Uu4R$useLocale} from "@react-aria/i18n";
|
|
13
|
-
import {useProviderProps as $3Uu4R$useProviderProps} from "@react-spectrum/provider";
|
|
14
3
|
|
|
15
|
-
|
|
16
|
-
function $parcel$interopDefault(a) {
|
|
17
|
-
return a && a.__esModule ? a.default : a;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function $parcel$export(e, n, v, s) {
|
|
21
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
22
|
-
}
|
|
23
4
|
/*
|
|
24
5
|
* Copyright 2020 Adobe. All rights reserved.
|
|
25
6
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -31,121 +12,6 @@ function $parcel$export(e, n, v, s) {
|
|
|
31
12
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
32
13
|
* governing permissions and limitations under the License.
|
|
33
14
|
*/ /// <reference types="css-module-types" />
|
|
34
|
-
/*
|
|
35
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
36
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
37
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
38
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
39
|
-
*
|
|
40
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
41
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
42
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
43
|
-
* governing permissions and limitations under the License.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
var $cd9bb50514faf076$exports = {};
|
|
51
|
-
|
|
52
|
-
$parcel$export($cd9bb50514faf076$exports, "focus-ring", () => $cd9bb50514faf076$export$f39a09f249340e2a, (v) => $cd9bb50514faf076$export$f39a09f249340e2a = v);
|
|
53
|
-
$parcel$export($cd9bb50514faf076$exports, "is-disabled", () => $cd9bb50514faf076$export$d35bc1e505d1ebbf, (v) => $cd9bb50514faf076$export$d35bc1e505d1ebbf = v);
|
|
54
|
-
$parcel$export($cd9bb50514faf076$exports, "is-hovered", () => $cd9bb50514faf076$export$b8813cd5d7824ce7, (v) => $cd9bb50514faf076$export$b8813cd5d7824ce7 = v);
|
|
55
|
-
$parcel$export($cd9bb50514faf076$exports, "is-open", () => $cd9bb50514faf076$export$a9781837241c946d, (v) => $cd9bb50514faf076$export$a9781837241c946d = v);
|
|
56
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion", () => $cd9bb50514faf076$export$bed6cbae852b32f0, (v) => $cd9bb50514faf076$export$bed6cbae852b32f0 = v);
|
|
57
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-item", () => $cd9bb50514faf076$export$a1947cb8adf67515, (v) => $cd9bb50514faf076$export$a1947cb8adf67515 = v);
|
|
58
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemContent", () => $cd9bb50514faf076$export$951cb9dc63743241, (v) => $cd9bb50514faf076$export$951cb9dc63743241 = v);
|
|
59
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemHeader", () => $cd9bb50514faf076$export$4da8efb546c03356, (v) => $cd9bb50514faf076$export$4da8efb546c03356 = v);
|
|
60
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemHeading", () => $cd9bb50514faf076$export$36876b8193439034, (v) => $cd9bb50514faf076$export$36876b8193439034 = v);
|
|
61
|
-
$parcel$export($cd9bb50514faf076$exports, "spectrum-Accordion-itemIndicator", () => $cd9bb50514faf076$export$35196e2132b47abd, (v) => $cd9bb50514faf076$export$35196e2132b47abd = v);
|
|
62
|
-
var $cd9bb50514faf076$export$f39a09f249340e2a;
|
|
63
|
-
var $cd9bb50514faf076$export$d35bc1e505d1ebbf;
|
|
64
|
-
var $cd9bb50514faf076$export$b8813cd5d7824ce7;
|
|
65
|
-
var $cd9bb50514faf076$export$a9781837241c946d;
|
|
66
|
-
var $cd9bb50514faf076$export$bed6cbae852b32f0;
|
|
67
|
-
var $cd9bb50514faf076$export$a1947cb8adf67515;
|
|
68
|
-
var $cd9bb50514faf076$export$951cb9dc63743241;
|
|
69
|
-
var $cd9bb50514faf076$export$4da8efb546c03356;
|
|
70
|
-
var $cd9bb50514faf076$export$36876b8193439034;
|
|
71
|
-
var $cd9bb50514faf076$export$35196e2132b47abd;
|
|
72
|
-
$cd9bb50514faf076$export$f39a09f249340e2a = `_7gO6Sq_focus-ring`;
|
|
73
|
-
$cd9bb50514faf076$export$d35bc1e505d1ebbf = `_7gO6Sq_is-disabled`;
|
|
74
|
-
$cd9bb50514faf076$export$b8813cd5d7824ce7 = `_7gO6Sq_is-hovered`;
|
|
75
|
-
$cd9bb50514faf076$export$a9781837241c946d = `_7gO6Sq_is-open`;
|
|
76
|
-
$cd9bb50514faf076$export$bed6cbae852b32f0 = `_7gO6Sq_spectrum-Accordion`;
|
|
77
|
-
$cd9bb50514faf076$export$a1947cb8adf67515 = `_7gO6Sq_spectrum-Accordion-item`;
|
|
78
|
-
$cd9bb50514faf076$export$951cb9dc63743241 = `_7gO6Sq_spectrum-Accordion-itemContent`;
|
|
79
|
-
$cd9bb50514faf076$export$4da8efb546c03356 = `_7gO6Sq_spectrum-Accordion-itemHeader`;
|
|
80
|
-
$cd9bb50514faf076$export$36876b8193439034 = `_7gO6Sq_spectrum-Accordion-itemHeading`;
|
|
81
|
-
$cd9bb50514faf076$export$35196e2132b47abd = `_7gO6Sq_spectrum-Accordion-itemIndicator`;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
function $2a5a5b7faca81754$var$Accordion(props, ref) {
|
|
90
|
-
props = (0, $3Uu4R$useProviderProps)(props);
|
|
91
|
-
let state = (0, $3Uu4R$useTreeState)(props);
|
|
92
|
-
let { styleProps: styleProps } = (0, $3Uu4R$useStyleProps)(props);
|
|
93
|
-
let domRef = (0, $3Uu4R$useDOMRef)(ref);
|
|
94
|
-
let { accordionProps: accordionProps } = (0, $3Uu4R$useAccordion)(props, state, domRef);
|
|
95
|
-
return /*#__PURE__*/ (0, $3Uu4R$react).createElement("div", {
|
|
96
|
-
...(0, $3Uu4R$filterDOMProps)(props),
|
|
97
|
-
...accordionProps,
|
|
98
|
-
...styleProps,
|
|
99
|
-
ref: domRef,
|
|
100
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion", styleProps.className)
|
|
101
|
-
}, [
|
|
102
|
-
...state.collection
|
|
103
|
-
].map((item)=>/*#__PURE__*/ (0, $3Uu4R$react).createElement($2a5a5b7faca81754$var$AccordionItem, {
|
|
104
|
-
key: item.key,
|
|
105
|
-
item: item,
|
|
106
|
-
state: state
|
|
107
|
-
})));
|
|
108
|
-
}
|
|
109
|
-
function $2a5a5b7faca81754$var$AccordionItem(props) {
|
|
110
|
-
props = (0, $3Uu4R$useProviderProps)(props);
|
|
111
|
-
let ref = (0, $3Uu4R$useRef)(null);
|
|
112
|
-
let { state: state, item: item } = props;
|
|
113
|
-
let { buttonProps: buttonProps, regionProps: regionProps } = (0, $3Uu4R$useAccordionItem)(props, state, ref);
|
|
114
|
-
let isOpen = state.expandedKeys.has(item.key);
|
|
115
|
-
let isDisabled = state.disabledKeys.has(item.key);
|
|
116
|
-
let { isHovered: isHovered, hoverProps: hoverProps } = (0, $3Uu4R$useHover)({
|
|
117
|
-
isDisabled: isDisabled
|
|
118
|
-
});
|
|
119
|
-
let { direction: direction } = (0, $3Uu4R$useLocale)();
|
|
120
|
-
return /*#__PURE__*/ (0, $3Uu4R$react).createElement("div", {
|
|
121
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-item", {
|
|
122
|
-
"is-open": isOpen,
|
|
123
|
-
"is-disabled": isDisabled
|
|
124
|
-
})
|
|
125
|
-
}, /*#__PURE__*/ (0, $3Uu4R$react).createElement("h3", {
|
|
126
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemHeading")
|
|
127
|
-
}, /*#__PURE__*/ (0, $3Uu4R$react).createElement((0, $3Uu4R$FocusRing), {
|
|
128
|
-
within: true,
|
|
129
|
-
focusRingClass: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "focus-ring")
|
|
130
|
-
}, /*#__PURE__*/ (0, $3Uu4R$react).createElement("button", {
|
|
131
|
-
...(0, $3Uu4R$mergeProps)(buttonProps, hoverProps),
|
|
132
|
-
ref: ref,
|
|
133
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemHeader", {
|
|
134
|
-
"is-hovered": isHovered
|
|
135
|
-
})
|
|
136
|
-
}, direction === "ltr" ? /*#__PURE__*/ (0, $3Uu4R$react).createElement((0, $3Uu4R$spectrumiconsuiChevronRightMedium), {
|
|
137
|
-
"aria-hidden": "true",
|
|
138
|
-
UNSAFE_className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemIndicator")
|
|
139
|
-
}) : /*#__PURE__*/ (0, $3Uu4R$react).createElement((0, $3Uu4R$spectrumiconsuiChevronLeftMedium), {
|
|
140
|
-
"aria-hidden": "true",
|
|
141
|
-
UNSAFE_className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemIndicator")
|
|
142
|
-
}), item.props.title))), /*#__PURE__*/ (0, $3Uu4R$react).createElement("div", {
|
|
143
|
-
...regionProps,
|
|
144
|
-
className: (0, $3Uu4R$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($cd9bb50514faf076$exports))), "spectrum-Accordion-itemContent")
|
|
145
|
-
}, item.props.children));
|
|
146
|
-
}
|
|
147
|
-
const $2a5a5b7faca81754$export$a766cd26d0d69044 = /*#__PURE__*/ (0, $3Uu4R$forwardRef)($2a5a5b7faca81754$var$Accordion);
|
|
148
|
-
|
|
149
15
|
|
|
150
16
|
|
|
151
17
|
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C","sources":["packages/@react-spectrum/accordion/src/index.ts"],"sourcesContent":["/*\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":"module.js.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAwBA;;;;;;;AAOA;;;;;;;AASA;;;;;;;;AASE;;;;AAKF;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;AAiCE;;;;AAGE;;;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAaJ;;;;;AAUU;;;;AAGA;;;;AAON;;;;AAKA;;;;AAMA;;;;AAkBJ;;;;AAGE;;;;AAKF;;;;AAGE;;;;;AAOE;;;;AASE;;;;AASF;;;;;AASJ;EAEI","sources":["packages/@adobe/spectrum-css-temp/components/accordion/vars.css"],"sourcesContent":["/*\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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"
|
|
1
|
+
{"mappings":"AAwBA;;;;;;;AAOA;;;;;;;AASA;;;;;;;;AASE;;;;AAKF;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;AAiCE;;;;AAGE;;;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAaJ;;;;;AAUU;;;;AAGA;;;;AAON;;;;AAKA;;;;AAMA;;;;AAkBJ;;;;AAGE;;;;AAKF;;;;AAGE;;;;;AAOE;;;;AASE;;;;AASF;;;;;AASJ;EAEI","sources":["packages/@adobe/spectrum-css-temp/components/accordion/vars.css"],"sourcesContent":["/*\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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.1361683a.css.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/accordion",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.4560+72775d272",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/accordion": "3.0.0-nightly.
|
|
40
|
-
"@react-aria/focus": "3.0.0-nightly.
|
|
41
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
|
42
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
|
43
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
44
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
|
45
|
-
"@react-stately/collections": "3.0.0-nightly.
|
|
46
|
-
"@react-stately/tree": "3.0.0-nightly.
|
|
47
|
-
"@react-types/accordion": "3.0.0-nightly.
|
|
48
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
49
|
-
"@spectrum-icons/ui": "3.0.0-nightly.
|
|
39
|
+
"@react-aria/accordion": "3.0.0-nightly.4560+72775d272",
|
|
40
|
+
"@react-aria/focus": "3.0.0-nightly.2848+72775d272",
|
|
41
|
+
"@react-aria/i18n": "3.0.0-nightly.2848+72775d272",
|
|
42
|
+
"@react-aria/interactions": "3.0.0-nightly.2848+72775d272",
|
|
43
|
+
"@react-aria/utils": "3.0.0-nightly.2848+72775d272",
|
|
44
|
+
"@react-spectrum/utils": "3.0.0-nightly.2848+72775d272",
|
|
45
|
+
"@react-stately/collections": "3.0.0-nightly.2848+72775d272",
|
|
46
|
+
"@react-stately/tree": "3.0.0-nightly.2848+72775d272",
|
|
47
|
+
"@react-types/accordion": "3.0.0-nightly.4560+72775d272",
|
|
48
|
+
"@react-types/shared": "3.0.0-nightly.2848+72775d272",
|
|
49
|
+
"@spectrum-icons/ui": "3.0.0-nightly.2848+72775d272",
|
|
50
50
|
"@swc/helpers": "^0.5.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
|
53
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.2848+72775d272"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "72775d272be04cfa32d26ec821bc68513d92a72b"
|
|
64
64
|
}
|
package/dist/module.css
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
._7gO6Sq_spectrum-Accordion {
|
|
2
|
-
margin: 0;
|
|
3
|
-
padding: 0;
|
|
4
|
-
list-style: none;
|
|
5
|
-
display: block;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
._7gO6Sq_spectrum-Accordion-itemIndicator {
|
|
9
|
-
transition: transform ease var(--spectrum-global-animation-duration-100, .13s);
|
|
10
|
-
padding-inline-start: var(--spectrum-accordion-icon-spacing, 16px);
|
|
11
|
-
padding-inline-end: var(--spectrum-accordion-icon-gap, var(--spectrum-global-dimension-size-100));
|
|
12
|
-
display: block;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
._7gO6Sq_spectrum-Accordion-item {
|
|
16
|
-
z-index: inherit;
|
|
17
|
-
border-bottom: var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)) solid transparent;
|
|
18
|
-
margin: 0;
|
|
19
|
-
display: list-item;
|
|
20
|
-
position: relative;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
._7gO6Sq_spectrum-Accordion-item:first-of-type {
|
|
24
|
-
border-top: var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)) solid transparent;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
._7gO6Sq_spectrum-Accordion-itemHeading {
|
|
28
|
-
margin: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
._7gO6Sq_spectrum-Accordion-itemHeader {
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
padding-block: var(--spectrum-global-dimension-size-150);
|
|
34
|
-
min-height: calc(var(--spectrum-accordion-item-height, 40px) - var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));
|
|
35
|
-
font-size: var(--spectrum-global-dimension-font-size-300);
|
|
36
|
-
text-overflow: ellipsis;
|
|
37
|
-
cursor: default;
|
|
38
|
-
line-height: 1.3;
|
|
39
|
-
font-weight: var(--spectrum-global-font-weight-bold, 700);
|
|
40
|
-
-webkit-appearance: none;
|
|
41
|
-
appearance: none;
|
|
42
|
-
background-color: inherit;
|
|
43
|
-
text-align: start;
|
|
44
|
-
border: 0;
|
|
45
|
-
justify-content: flex-start;
|
|
46
|
-
align-items: center;
|
|
47
|
-
width: 100%;
|
|
48
|
-
margin: 0;
|
|
49
|
-
padding-inline-start: 2px;
|
|
50
|
-
padding-inline-end: var(--spectrum-accordion-item-padding, 16px);
|
|
51
|
-
font-family: inherit;
|
|
52
|
-
display: flex;
|
|
53
|
-
position: relative;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
._7gO6Sq_spectrum-Accordion-itemHeader:focus {
|
|
57
|
-
outline: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
._7gO6Sq_spectrum-Accordion-itemHeader:focus:after {
|
|
61
|
-
content: "";
|
|
62
|
-
top: calc(var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)) * -1);
|
|
63
|
-
bottom: calc(var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)) * -1);
|
|
64
|
-
width: var(--spectrum-accordion-item-border-size-key-focus, 2px);
|
|
65
|
-
position: absolute;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
._7gO6Sq_spectrum-Accordion-itemHeader:focus: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))):after {
|
|
69
|
-
left: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
._7gO6Sq_spectrum-Accordion-itemHeader:focus: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))):after {
|
|
73
|
-
left: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
._7gO6Sq_spectrum-Accordion-itemHeader:focus:-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)):after {
|
|
77
|
-
right: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
._7gO6Sq_spectrum-Accordion-itemHeader:focus: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)):after {
|
|
81
|
-
right: 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
._7gO6Sq_spectrum-Accordion-itemContent {
|
|
85
|
-
padding: 0 var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200)) var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200)) var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200));
|
|
86
|
-
display: none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
[dir="ltr"] :is(._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-open > ._7gO6Sq_spectrum-Accordion-itemHeading > ._7gO6Sq_spectrum-Accordion-itemHeader > ._7gO6Sq_spectrum-Accordion-itemIndicator) {
|
|
90
|
-
transform: rotate(90deg);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
[dir="rtl"] :is(._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-open > ._7gO6Sq_spectrum-Accordion-itemHeading > ._7gO6Sq_spectrum-Accordion-itemHeader > ._7gO6Sq_spectrum-Accordion-itemIndicator) {
|
|
94
|
-
transform: rotate(-90deg);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-open > ._7gO6Sq_spectrum-Accordion-itemHeader:after {
|
|
98
|
-
height: calc(var(--spectrum-accordion-item-height, 40px) - var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-open > ._7gO6Sq_spectrum-Accordion-itemContent {
|
|
102
|
-
display: block;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-disabled ._7gO6Sq_spectrum-Accordion-itemHeader {
|
|
106
|
-
cursor: default;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
._7gO6Sq_spectrum-Accordion-item {
|
|
110
|
-
border-color: var(--spectrum-accordion-border-color, var(--spectrum-global-color-gray-300));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
._7gO6Sq_spectrum-Accordion-item:first-of-type {
|
|
114
|
-
border-top-color: var(--spectrum-accordion-border-color, var(--spectrum-global-color-gray-300));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
._7gO6Sq_spectrum-Accordion-itemHeader {
|
|
118
|
-
color: var(--spectrum-alias-text-color, var(--spectrum-global-color-gray-800));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
._7gO6Sq_spectrum-Accordion-itemHeader._7gO6Sq_is-hovered {
|
|
122
|
-
color: var(--spectrum-alias-text-color-hover, var(--spectrum-global-color-gray-900));
|
|
123
|
-
background-color: var(--spectrum-accordion-background-color-hover, var(--spectrum-global-color-gray-200));
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
._7gO6Sq_spectrum-Accordion-itemHeader._7gO6Sq_focus-ring:after {
|
|
127
|
-
background-color: var(--spectrum-accordion-border-left-color-key-focus, var(--spectrum-alias-border-color-focus));
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-open ._7gO6Sq_spectrum-Accordion-itemHeader._7gO6Sq_is-hovered {
|
|
131
|
-
background-color: #0000;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-disabled ._7gO6Sq_spectrum-Accordion-itemHeader, ._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-disabled ._7gO6Sq_spectrum-Accordion-itemHeader._7gO6Sq_is-hovered, ._7gO6Sq_spectrum-Accordion-item._7gO6Sq_is-disabled ._7gO6Sq_spectrum-Accordion-itemHeader._7gO6Sq_focus-ring {
|
|
135
|
-
color: var(--spectrum-alias-text-color-disabled, var(--spectrum-global-color-gray-500));
|
|
136
|
-
background-color: #0000;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@media (forced-colors: active) {
|
|
140
|
-
._7gO6Sq_spectrum-Accordion-itemHeader._7gO6Sq_focus-ring {
|
|
141
|
-
outline: 3px solid canvastext;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
/*# sourceMappingURL=module.css.map */
|
package/dist/module.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAwBA;;;;;;;AAOA;;;;;;;AASA;;;;;;;;AASE;;;;AAKF;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;AAiCE;;;;AAGE;;;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAaJ;;;;;AAUU;;;;AAGA;;;;AAON;;;;AAKA;;;;AAMA;;;;AAkBJ;;;;AAGE;;;;AAKF;;;;AAGE;;;;;AAOE;;;;AASE;;;;AASF;;;;;AASJ;EAEI","sources":["packages/@adobe/spectrum-css-temp/components/accordion/vars.css"],"sourcesContent":["/*\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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.css.map"}
|