@react-spectrum/provider 3.10.13 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/import.mjs +4 -2
  2. package/dist/main.js +6 -4
  3. package/dist/main.js.map +1 -1
  4. package/dist/module.js +4 -2
  5. package/dist/module.js.map +1 -1
  6. package/dist/types/src/index.d.ts +3 -0
  7. package/package.json +13 -31
  8. package/src/index.ts +4 -3
  9. package/dist/Provider.main.js +0 -179
  10. package/dist/Provider.main.js.map +0 -1
  11. package/dist/Provider.mjs +0 -172
  12. package/dist/Provider.module.js +0 -172
  13. package/dist/Provider.module.js.map +0 -1
  14. package/dist/context.main.js +0 -28
  15. package/dist/context.main.js.map +0 -1
  16. package/dist/context.mjs +0 -19
  17. package/dist/context.module.js +0 -19
  18. package/dist/context.module.js.map +0 -1
  19. package/dist/mediaQueries.main.js +0 -41
  20. package/dist/mediaQueries.main.js.map +0 -1
  21. package/dist/mediaQueries.mjs +0 -35
  22. package/dist/mediaQueries.module.js +0 -35
  23. package/dist/mediaQueries.module.js.map +0 -1
  24. package/dist/package.main.js +0 -4
  25. package/dist/package.main.js.map +0 -1
  26. package/dist/package.mjs +0 -6
  27. package/dist/package.module.js +0 -6
  28. package/dist/package.module.js.map +0 -1
  29. package/dist/page_vars_css.main.js +0 -26
  30. package/dist/page_vars_css.main.js.map +0 -1
  31. package/dist/page_vars_css.mjs +0 -28
  32. package/dist/page_vars_css.module.js +0 -28
  33. package/dist/page_vars_css.module.js.map +0 -1
  34. package/dist/provider.bd9c6608.css +0 -85
  35. package/dist/provider.bd9c6608.css.map +0 -1
  36. package/dist/provider.c642b855.css +0 -96
  37. package/dist/provider.c642b855.css.map +0 -1
  38. package/dist/types.d.ts +0 -19
  39. package/dist/types.d.ts.map +0 -1
  40. package/dist/typography_index_css.main.js +0 -32
  41. package/dist/typography_index_css.main.js.map +0 -1
  42. package/dist/typography_index_css.mjs +0 -34
  43. package/dist/typography_index_css.module.js +0 -34
  44. package/dist/typography_index_css.module.js.map +0 -1
  45. package/src/Provider.tsx +0 -219
  46. package/src/context.ts +0 -19
  47. package/src/mediaQueries.ts +0 -60
@@ -1,172 +0,0 @@
1
- import {Context as $a8430f637b4ccbce$export$841858b892ce1f4c} from "./context.module.js";
2
- import "./provider.bd9c6608.css";
3
- import $dyW1v$page_vars_cssmodulejs from "./page_vars_css.module.js";
4
- import "./provider.c642b855.css";
5
- import $dyW1v$typography_index_cssmodulejs from "./typography_index_css.module.js";
6
- import {useColorScheme as $d8453c5ae7fac713$export$6343629ee1b29116, useScale as $d8453c5ae7fac713$export$a8d2043b2d807f4d} from "./mediaQueries.module.js";
7
- import $dyW1v$packagemodulejs from "./package.module.js";
8
- import {useMatchedBreakpoints as $dyW1v$useMatchedBreakpoints, useStyleProps as $dyW1v$useStyleProps, BreakpointProvider as $dyW1v$BreakpointProvider, useDOMRef as $dyW1v$useDOMRef, shouldKeepSpectrumClassNames as $dyW1v$shouldKeepSpectrumClassNames} from "@react-spectrum/utils";
9
- import $dyW1v$clsx from "clsx";
10
- import {filterDOMProps as $dyW1v$filterDOMProps, RouterProvider as $dyW1v$RouterProvider} from "@react-aria/utils";
11
- import {useLocale as $dyW1v$useLocale, I18nProvider as $dyW1v$I18nProvider} from "@react-aria/i18n";
12
- import {ModalProvider as $dyW1v$ModalProvider, useModalProvider as $dyW1v$useModalProvider} from "@react-aria/overlays";
13
- import $dyW1v$react, {useContext as $dyW1v$useContext, useRef as $dyW1v$useRef, useEffect as $dyW1v$useEffect} from "react";
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
- const $7167f8da3cce35e4$var$DEFAULT_BREAKPOINTS = {
41
- S: 640,
42
- M: 768,
43
- L: 1024,
44
- XL: 1280,
45
- XXL: 1536
46
- };
47
- const $7167f8da3cce35e4$export$2881499e37b75b9a = /*#__PURE__*/ (0, $dyW1v$react).forwardRef(function Provider(props, ref) {
48
- let prevContext = (0, $dyW1v$useContext)((0, $a8430f637b4ccbce$export$841858b892ce1f4c));
49
- let prevColorScheme = prevContext && prevContext.colorScheme;
50
- let prevBreakpoints = prevContext && prevContext.breakpoints;
51
- let { theme: theme = prevContext && prevContext.theme, defaultColorScheme: defaultColorScheme } = props;
52
- if (!theme) throw new Error('theme not found, the parent provider must have a theme provided');
53
- // Hooks must always be called.
54
- let autoColorScheme = (0, $d8453c5ae7fac713$export$6343629ee1b29116)(theme, defaultColorScheme || 'light');
55
- let autoScale = (0, $d8453c5ae7fac713$export$a8d2043b2d807f4d)(theme);
56
- let { locale: prevLocale } = (0, $dyW1v$useLocale)();
57
- // if the new theme doesn't support the prevColorScheme, we must resort to the auto
58
- let usePrevColorScheme = prevColorScheme ? !!theme[prevColorScheme] : false;
59
- // importance of color scheme props > parent > auto:(OS > default > omitted)
60
- let { colorScheme: colorScheme = usePrevColorScheme ? prevColorScheme : autoColorScheme, scale: scale = prevContext ? prevContext.scale : autoScale, locale: locale = prevContext ? prevLocale : undefined, breakpoints: breakpoints = prevContext ? prevBreakpoints : $7167f8da3cce35e4$var$DEFAULT_BREAKPOINTS, children: children, isQuiet: isQuiet, isEmphasized: isEmphasized, isDisabled: isDisabled, isRequired: isRequired, isReadOnly: isReadOnly, validationState: validationState, router: router, ...otherProps } = props;
61
- // select only the props with values so undefined props don't overwrite prevContext values
62
- let currentProps = {
63
- version: $dyW1v$packagemodulejs.version,
64
- theme: theme,
65
- breakpoints: breakpoints,
66
- colorScheme: colorScheme,
67
- scale: scale,
68
- isQuiet: isQuiet,
69
- isEmphasized: isEmphasized,
70
- isDisabled: isDisabled,
71
- isRequired: isRequired,
72
- isReadOnly: isReadOnly,
73
- validationState: validationState
74
- };
75
- let matchedBreakpoints = (0, $dyW1v$useMatchedBreakpoints)(breakpoints);
76
- let filteredProps = {};
77
- Object.entries(currentProps).forEach(([key, value])=>value !== undefined && (filteredProps[key] = value));
78
- // Merge options with parent provider
79
- let context = Object.assign({}, prevContext, filteredProps);
80
- // Only wrap in a DOM node if the theme, colorScheme, or scale changed
81
- let contents = children;
82
- let domProps = (0, $dyW1v$filterDOMProps)(otherProps);
83
- let { styleProps: styleProps } = (0, $dyW1v$useStyleProps)(otherProps, undefined, {
84
- matchedBreakpoints: matchedBreakpoints
85
- });
86
- if (!prevContext || props.locale || theme !== prevContext.theme || colorScheme !== prevContext.colorScheme || scale !== prevContext.scale || Object.keys(domProps).length > 0 || otherProps.UNSAFE_className || styleProps.style && Object.keys(styleProps.style).length > 0) contents = /*#__PURE__*/ (0, $dyW1v$react).createElement($7167f8da3cce35e4$var$ProviderWrapper, {
87
- ...props,
88
- UNSAFE_style: {
89
- isolation: !prevContext ? 'isolate' : undefined,
90
- ...styleProps.style
91
- },
92
- ref: ref
93
- }, contents);
94
- if (router) contents = /*#__PURE__*/ (0, $dyW1v$react).createElement((0, $dyW1v$RouterProvider), router, contents);
95
- return /*#__PURE__*/ (0, $dyW1v$react).createElement((0, $a8430f637b4ccbce$export$841858b892ce1f4c).Provider, {
96
- value: context
97
- }, /*#__PURE__*/ (0, $dyW1v$react).createElement((0, $dyW1v$I18nProvider), {
98
- locale: locale
99
- }, /*#__PURE__*/ (0, $dyW1v$react).createElement((0, $dyW1v$BreakpointProvider), {
100
- matchedBreakpoints: matchedBreakpoints
101
- }, /*#__PURE__*/ (0, $dyW1v$react).createElement((0, $dyW1v$ModalProvider), null, contents))));
102
- });
103
- const $7167f8da3cce35e4$var$ProviderWrapper = /*#__PURE__*/ (0, $dyW1v$react).forwardRef(function ProviderWrapper(props, ref) {
104
- let { children: children, ...otherProps } = props;
105
- let { locale: locale, direction: direction } = (0, $dyW1v$useLocale)();
106
- let { theme: theme, colorScheme: colorScheme, scale: scale } = $7167f8da3cce35e4$export$693cdb10cec23617();
107
- let { modalProviderProps: modalProviderProps } = (0, $dyW1v$useModalProvider)();
108
- let { styleProps: styleProps } = (0, $dyW1v$useStyleProps)(otherProps);
109
- let domRef = (0, $dyW1v$useDOMRef)(ref);
110
- let themeKey = Object.keys(theme[colorScheme])[0];
111
- let scaleKey = Object.keys(theme[scale])[0];
112
- let className = (0, $dyW1v$clsx)(styleProps.className, (0, ($parcel$interopDefault($dyW1v$page_vars_cssmodulejs)))['spectrum'], (0, ($parcel$interopDefault($dyW1v$typography_index_cssmodulejs)))['spectrum'], Object.values(theme[colorScheme]), Object.values(theme[scale]), theme.global ? Object.values(theme.global) : null, {
113
- 'react-spectrum-provider': (0, $dyW1v$shouldKeepSpectrumClassNames),
114
- spectrum: (0, $dyW1v$shouldKeepSpectrumClassNames),
115
- [themeKey]: (0, $dyW1v$shouldKeepSpectrumClassNames),
116
- [scaleKey]: (0, $dyW1v$shouldKeepSpectrumClassNames)
117
- });
118
- var _props_colorScheme, _ref;
119
- let style = {
120
- ...styleProps.style,
121
- // This ensures that browser native UI like scrollbars are rendered in the right color scheme.
122
- // See https://web.dev/color-scheme/.
123
- colorScheme: (_ref = (_props_colorScheme = props.colorScheme) !== null && _props_colorScheme !== void 0 ? _props_colorScheme : colorScheme) !== null && _ref !== void 0 ? _ref : Object.keys(theme).filter((k)=>k === 'light' || k === 'dark').join(' ')
124
- };
125
- let hasWarned = (0, $dyW1v$useRef)(false);
126
- (0, $dyW1v$useEffect)(()=>{
127
- if (direction && domRef.current) {
128
- var _domRef_current_parentElement, _domRef_current;
129
- let closestDir = (_domRef_current = domRef.current) === null || _domRef_current === void 0 ? void 0 : (_domRef_current_parentElement = _domRef_current.parentElement) === null || _domRef_current_parentElement === void 0 ? void 0 : _domRef_current_parentElement.closest('[dir]');
130
- let dir = closestDir && closestDir.getAttribute('dir');
131
- if (dir && dir !== direction && !hasWarned.current && process.env.NODE_ENV !== 'production') {
132
- console.warn(`Language directions cannot be nested. ${direction} inside ${dir}.`);
133
- hasWarned.current = true;
134
- }
135
- }
136
- }, [
137
- direction,
138
- domRef,
139
- hasWarned
140
- ]);
141
- return /*#__PURE__*/ (0, $dyW1v$react).createElement("div", {
142
- ...(0, $dyW1v$filterDOMProps)(otherProps),
143
- ...styleProps,
144
- ...modalProviderProps,
145
- className: className,
146
- style: style,
147
- lang: locale,
148
- dir: direction,
149
- ref: domRef
150
- }, children);
151
- });
152
- function $7167f8da3cce35e4$export$693cdb10cec23617() {
153
- let context = (0, $dyW1v$useContext)((0, $a8430f637b4ccbce$export$841858b892ce1f4c));
154
- if (!context) throw new Error("No root provider found, please make sure your app is wrapped within a <Provider>. Alternatively, this issue may be caused by duplicate packages, see https://github.com/adobe/react-spectrum/wiki/Frequently-Asked-Questions-(FAQs)#why-are-there-errors-after-upgrading-a-react-spectrum-package for more information.");
155
- return context;
156
- }
157
- function $7167f8da3cce35e4$export$521c373ccc32c300(props) {
158
- let context = (0, $dyW1v$useContext)((0, $a8430f637b4ccbce$export$841858b892ce1f4c));
159
- if (!context) return props;
160
- return Object.assign({}, {
161
- isQuiet: context.isQuiet,
162
- isEmphasized: context.isEmphasized,
163
- isDisabled: context.isDisabled,
164
- isRequired: context.isRequired,
165
- isReadOnly: context.isReadOnly,
166
- validationState: context.validationState
167
- }, props);
168
- }
169
-
170
-
171
- export {$7167f8da3cce35e4$export$2881499e37b75b9a as Provider, $7167f8da3cce35e4$export$693cdb10cec23617 as useProvider, $7167f8da3cce35e4$export$521c373ccc32c300 as useProviderProps};
172
- //# sourceMappingURL=Provider.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":"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","sources":["packages/@react-spectrum/provider/src/Provider.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 {\n BreakpointProvider,\n shouldKeepSpectrumClassNames,\n useDOMRef,\n useMatchedBreakpoints,\n useStyleProps\n} from '@react-spectrum/utils';\nimport clsx from 'clsx';\nimport {Context} from './context';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps, RouterProvider} from '@react-aria/utils';\nimport {I18nProvider, useLocale} from '@react-aria/i18n';\nimport {ModalProvider, useModalProvider} from '@react-aria/overlays';\nimport {ProviderContext, ProviderProps} from '@react-types/provider';\nimport React, {useContext, useEffect, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/page/vars.css';\nimport typographyStyles from '@adobe/spectrum-css-temp/components/typography/index.css';\nimport {useColorScheme, useScale} from './mediaQueries';\n// @ts-ignore\nimport {version} from '../package.json';\n\nconst DEFAULT_BREAKPOINTS = {S: 640, M: 768, L: 1024, XL: 1280, XXL: 1536};\n\n/**\n * Provider is the container for all React Spectrum applications.\n * It defines the theme, locale, and other application level settings,\n * and can also be used to provide common properties to a group of components.\n */\nexport const Provider = React.forwardRef(function Provider(props: ProviderProps, ref: DOMRef<HTMLDivElement>) {\n let prevContext = useContext(Context);\n let prevColorScheme = prevContext && prevContext.colorScheme;\n let prevBreakpoints = prevContext && prevContext.breakpoints;\n let {\n theme = prevContext && prevContext.theme,\n defaultColorScheme\n } = props;\n if (!theme) {\n throw new Error('theme not found, the parent provider must have a theme provided');\n }\n // Hooks must always be called.\n let autoColorScheme = useColorScheme(theme, defaultColorScheme || 'light');\n let autoScale = useScale(theme);\n let {locale: prevLocale} = useLocale();\n // if the new theme doesn't support the prevColorScheme, we must resort to the auto\n let usePrevColorScheme = prevColorScheme ? !!theme[prevColorScheme] : false;\n\n // importance of color scheme props > parent > auto:(OS > default > omitted)\n let {\n colorScheme = usePrevColorScheme ? prevColorScheme : autoColorScheme,\n scale = prevContext ? prevContext.scale : autoScale,\n locale = prevContext ? prevLocale : undefined,\n breakpoints = prevContext ? prevBreakpoints : DEFAULT_BREAKPOINTS,\n children,\n isQuiet,\n isEmphasized,\n isDisabled,\n isRequired,\n isReadOnly,\n validationState,\n router,\n ...otherProps\n } = props;\n\n // select only the props with values so undefined props don't overwrite prevContext values\n let currentProps = {\n version,\n theme,\n breakpoints,\n colorScheme,\n scale,\n isQuiet,\n isEmphasized,\n isDisabled,\n isRequired,\n isReadOnly,\n validationState\n };\n\n let matchedBreakpoints = useMatchedBreakpoints(breakpoints!);\n let filteredProps = {};\n Object.entries(currentProps).forEach(([key, value]) => value !== undefined && (filteredProps[key] = value));\n\n // Merge options with parent provider\n let context = Object.assign({}, prevContext, filteredProps);\n\n // Only wrap in a DOM node if the theme, colorScheme, or scale changed\n let contents = children;\n let domProps = filterDOMProps(otherProps);\n let {styleProps} = useStyleProps(otherProps, undefined, {matchedBreakpoints});\n if (!prevContext || props.locale || theme !== prevContext.theme || colorScheme !== prevContext.colorScheme || scale !== prevContext.scale || Object.keys(domProps).length > 0 || otherProps.UNSAFE_className || (styleProps.style && Object.keys(styleProps.style).length > 0)) {\n contents = (\n <ProviderWrapper {...props} UNSAFE_style={{isolation: !prevContext ? 'isolate' : undefined, ...styleProps.style}} ref={ref}>\n {contents}\n </ProviderWrapper>\n );\n }\n\n if (router) {\n contents = <RouterProvider {...router}>{contents}</RouterProvider>;\n }\n\n return (\n <Context.Provider value={context}>\n <I18nProvider locale={locale}>\n <BreakpointProvider matchedBreakpoints={matchedBreakpoints}>\n <ModalProvider>\n {contents}\n </ModalProvider>\n </BreakpointProvider>\n </I18nProvider>\n </Context.Provider>\n );\n});\n\nconst ProviderWrapper = React.forwardRef(function ProviderWrapper(props: ProviderProps, ref: DOMRef<HTMLDivElement>) {\n let {\n children,\n ...otherProps\n } = props;\n let {locale, direction} = useLocale();\n let {theme, colorScheme, scale} = useProvider();\n let {modalProviderProps} = useModalProvider();\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let themeKey = Object.keys(theme[colorScheme]!)[0];\n let scaleKey = Object.keys(theme[scale]!)[0];\n\n let className = clsx(\n styleProps.className,\n styles['spectrum'],\n typographyStyles['spectrum'],\n Object.values(theme[colorScheme]!),\n Object.values(theme[scale]!),\n theme.global ? Object.values(theme.global) : null,\n {\n 'react-spectrum-provider': shouldKeepSpectrumClassNames,\n spectrum: shouldKeepSpectrumClassNames,\n [themeKey]: shouldKeepSpectrumClassNames,\n [scaleKey]: shouldKeepSpectrumClassNames\n }\n );\n\n let style = {\n ...styleProps.style,\n // This ensures that browser native UI like scrollbars are rendered in the right color scheme.\n // See https://web.dev/color-scheme/.\n colorScheme: props.colorScheme ?? colorScheme ?? Object.keys(theme).filter(k => k === 'light' || k === 'dark').join(' ')\n };\n\n let hasWarned = useRef(false);\n useEffect(() => {\n if (direction && domRef.current) {\n let closestDir = domRef.current?.parentElement?.closest('[dir]');\n let dir = closestDir && closestDir.getAttribute('dir');\n if (dir && dir !== direction && !hasWarned.current && process.env.NODE_ENV !== 'production') {\n console.warn(`Language directions cannot be nested. ${direction} inside ${dir}.`);\n hasWarned.current = true;\n }\n }\n }, [direction, domRef, hasWarned]);\n\n\n return (\n <div\n {...filterDOMProps(otherProps)}\n {...styleProps}\n {...modalProviderProps}\n className={className}\n style={style}\n lang={locale}\n dir={direction}\n ref={domRef}>\n {children}\n </div>\n );\n});\n\n/**\n * Returns the various settings and styles applied by the nearest parent Provider.\n * Properties explicitly set by the nearest parent Provider override those provided by preceeding Providers.\n */\nexport function useProvider(): ProviderContext {\n let context = useContext(Context);\n if (!context) {\n throw new Error(\n 'No root provider found, please make sure your app is wrapped within a <Provider>. ' +\n 'Alternatively, this issue may be caused by duplicate packages, see https://github.com/adobe/react-spectrum/wiki/Frequently-Asked-Questions-(FAQs)#why-are-there-errors-after-upgrading-a-react-spectrum-package for more information.'\n );\n }\n return context;\n}\n\nexport function useProviderProps<T>(props: T) : T {\n let context = useContext(Context);\n if (!context) {\n return props;\n }\n return Object.assign({}, {\n isQuiet: context.isQuiet,\n isEmphasized: context.isEmphasized,\n isDisabled: context.isDisabled,\n isRequired: context.isRequired,\n isReadOnly: context.isReadOnly,\n validationState: context.validationState\n }, props);\n}\n"],"names":[],"version":3,"file":"Provider.module.js.map"}
@@ -1,28 +0,0 @@
1
- var $3n4Xf$react = require("react");
2
-
3
-
4
- function $parcel$interopDefault(a) {
5
- return a && a.__esModule ? a.default : a;
6
- }
7
-
8
- function $parcel$export(e, n, v, s) {
9
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
10
- }
11
-
12
- $parcel$export(module.exports, "Context", () => $a5b4f4e252b5a021$export$841858b892ce1f4c);
13
- /*
14
- * Copyright 2020 Adobe. All rights reserved.
15
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
16
- * you may not use this file except in compliance with the License. You may obtain a copy
17
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software distributed under
20
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
21
- * OF ANY KIND, either express or implied. See the License for the specific language
22
- * governing permissions and limitations under the License.
23
- */
24
- const $a5b4f4e252b5a021$export$841858b892ce1f4c = (0, ($parcel$interopDefault($3n4Xf$react))).createContext(null);
25
- $a5b4f4e252b5a021$export$841858b892ce1f4c.displayName = 'ProviderContext';
26
-
27
-
28
- //# sourceMappingURL=context.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;AAOM,MAAM,4CAAU,CAAA,GAAA,sCAAI,EAAE,aAAa,CAAyB;AACnE,0CAAQ,WAAW,GAAG","sources":["packages/@react-spectrum/provider/src/context.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\nimport {ProviderContext} from '@react-types/provider';\nimport React from 'react';\n\n// Context is placed in a separate file to avoid fast refresh issue where the old provider context values\n// are immediately replaced with the null default. Stopgap solution until we fix this in parcel.\nexport const Context = React.createContext<ProviderContext | null>(null);\nContext.displayName = 'ProviderContext';\n"],"names":[],"version":3,"file":"context.main.js.map"}
package/dist/context.mjs DELETED
@@ -1,19 +0,0 @@
1
- import $hscZN$react from "react";
2
-
3
- /*
4
- * Copyright 2020 Adobe. All rights reserved.
5
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License. You may obtain a copy
7
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
- * OF ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- */
14
- const $a8430f637b4ccbce$export$841858b892ce1f4c = (0, $hscZN$react).createContext(null);
15
- $a8430f637b4ccbce$export$841858b892ce1f4c.displayName = 'ProviderContext';
16
-
17
-
18
- export {$a8430f637b4ccbce$export$841858b892ce1f4c as Context};
19
- //# sourceMappingURL=context.module.js.map
@@ -1,19 +0,0 @@
1
- import $hscZN$react from "react";
2
-
3
- /*
4
- * Copyright 2020 Adobe. All rights reserved.
5
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License. You may obtain a copy
7
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
- * OF ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- */
14
- const $a8430f637b4ccbce$export$841858b892ce1f4c = (0, $hscZN$react).createContext(null);
15
- $a8430f637b4ccbce$export$841858b892ce1f4c.displayName = 'ProviderContext';
16
-
17
-
18
- export {$a8430f637b4ccbce$export$841858b892ce1f4c as Context};
19
- //# sourceMappingURL=context.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC;AAOM,MAAM,4CAAU,CAAA,GAAA,YAAI,EAAE,aAAa,CAAyB;AACnE,0CAAQ,WAAW,GAAG","sources":["packages/@react-spectrum/provider/src/context.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\nimport {ProviderContext} from '@react-types/provider';\nimport React from 'react';\n\n// Context is placed in a separate file to avoid fast refresh issue where the old provider context values\n// are immediately replaced with the null default. Stopgap solution until we fix this in parcel.\nexport const Context = React.createContext<ProviderContext | null>(null);\nContext.displayName = 'ProviderContext';\n"],"names":[],"version":3,"file":"context.module.js.map"}
@@ -1,41 +0,0 @@
1
- var $hitAW$reactspectrumutils = require("@react-spectrum/utils");
2
-
3
-
4
- function $parcel$export(e, n, v, s) {
5
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
- }
7
-
8
- $parcel$export(module.exports, "useColorScheme", () => $a6e2b5f4621e4690$export$6343629ee1b29116);
9
- $parcel$export(module.exports, "useScale", () => $a6e2b5f4621e4690$export$a8d2043b2d807f4d);
10
- /*
11
- * Copyright 2020 Adobe. All rights reserved.
12
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License. You may obtain a copy
14
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software distributed under
17
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
18
- * OF ANY KIND, either express or implied. See the License for the specific language
19
- * governing permissions and limitations under the License.
20
- */
21
- function $a6e2b5f4621e4690$export$6343629ee1b29116(theme, defaultColorScheme) {
22
- let matchesDark = (0, $hitAW$reactspectrumutils.useMediaQuery)('(prefers-color-scheme: dark)');
23
- let matchesLight = (0, $hitAW$reactspectrumutils.useMediaQuery)('(prefers-color-scheme: light)');
24
- // importance OS > default > omitted
25
- if (theme.dark && matchesDark) return 'dark';
26
- if (theme.light && matchesLight) return 'light';
27
- if (theme.dark && defaultColorScheme === 'dark') return 'dark';
28
- if (theme.light && defaultColorScheme === 'light') return 'light';
29
- if (!theme.dark) return 'light';
30
- if (!theme.light) return 'dark';
31
- return 'light';
32
- }
33
- function $a6e2b5f4621e4690$export$a8d2043b2d807f4d(theme) {
34
- let matchesFine = (0, $hitAW$reactspectrumutils.useMediaQuery)('(any-pointer: fine)');
35
- if (matchesFine && theme.medium) return 'medium';
36
- if (theme.large) return 'large';
37
- return 'medium';
38
- }
39
-
40
-
41
- //# sourceMappingURL=mediaQueries.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;AAKM,SAAS,0CAAe,KAAY,EAAE,kBAA+B;IAC1E,IAAI,cAAc,CAAA,GAAA,uCAAY,EAAE;IAChC,IAAI,eAAe,CAAA,GAAA,uCAAY,EAAE;IAEjC,oCAAoC;IAEpC,IAAI,MAAM,IAAI,IAAI,aAChB,OAAO;IAGT,IAAI,MAAM,KAAK,IAAI,cACjB,OAAO;IAGT,IAAI,MAAM,IAAI,IAAI,uBAAuB,QACvC,OAAO;IAGT,IAAI,MAAM,KAAK,IAAI,uBAAuB,SACxC,OAAO;IAGT,IAAI,CAAC,MAAM,IAAI,EACb,OAAO;IAGT,IAAI,CAAC,MAAM,KAAK,EACd,OAAO;IAGT,OAAO;AACT;AAEO,SAAS,0CAAS,KAAY;IACnC,IAAI,cAAc,CAAA,GAAA,uCAAY,EAAE;IAChC,IAAI,eAAe,MAAM,MAAM,EAC7B,OAAO;IAGT,IAAI,MAAM,KAAK,EACb,OAAO;IAGT,OAAO;AACT","sources":["packages/@react-spectrum/provider/src/mediaQueries.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\nimport {ColorScheme, Scale, Theme} from '@react-types/provider';\nimport {useMediaQuery} from '@react-spectrum/utils';\n\nexport function useColorScheme(theme: Theme, defaultColorScheme: ColorScheme): ColorScheme {\n let matchesDark = useMediaQuery('(prefers-color-scheme: dark)');\n let matchesLight = useMediaQuery('(prefers-color-scheme: light)');\n\n // importance OS > default > omitted\n\n if (theme.dark && matchesDark) {\n return 'dark';\n }\n\n if (theme.light && matchesLight) {\n return 'light';\n }\n\n if (theme.dark && defaultColorScheme === 'dark') {\n return 'dark';\n }\n\n if (theme.light && defaultColorScheme === 'light') {\n return 'light';\n }\n\n if (!theme.dark) {\n return 'light';\n }\n\n if (!theme.light) {\n return 'dark';\n }\n\n return 'light';\n}\n\nexport function useScale(theme: Theme): Scale {\n let matchesFine = useMediaQuery('(any-pointer: fine)');\n if (matchesFine && theme.medium) {\n return 'medium';\n }\n\n if (theme.large) {\n return 'large';\n }\n\n return 'medium';\n}\n"],"names":[],"version":3,"file":"mediaQueries.main.js.map"}
@@ -1,35 +0,0 @@
1
- import {useMediaQuery as $9bAXg$useMediaQuery} from "@react-spectrum/utils";
2
-
3
- /*
4
- * Copyright 2020 Adobe. All rights reserved.
5
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License. You may obtain a copy
7
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
- * OF ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- */
14
- function $d8453c5ae7fac713$export$6343629ee1b29116(theme, defaultColorScheme) {
15
- let matchesDark = (0, $9bAXg$useMediaQuery)('(prefers-color-scheme: dark)');
16
- let matchesLight = (0, $9bAXg$useMediaQuery)('(prefers-color-scheme: light)');
17
- // importance OS > default > omitted
18
- if (theme.dark && matchesDark) return 'dark';
19
- if (theme.light && matchesLight) return 'light';
20
- if (theme.dark && defaultColorScheme === 'dark') return 'dark';
21
- if (theme.light && defaultColorScheme === 'light') return 'light';
22
- if (!theme.dark) return 'light';
23
- if (!theme.light) return 'dark';
24
- return 'light';
25
- }
26
- function $d8453c5ae7fac713$export$a8d2043b2d807f4d(theme) {
27
- let matchesFine = (0, $9bAXg$useMediaQuery)('(any-pointer: fine)');
28
- if (matchesFine && theme.medium) return 'medium';
29
- if (theme.large) return 'large';
30
- return 'medium';
31
- }
32
-
33
-
34
- export {$d8453c5ae7fac713$export$6343629ee1b29116 as useColorScheme, $d8453c5ae7fac713$export$a8d2043b2d807f4d as useScale};
35
- //# sourceMappingURL=mediaQueries.module.js.map
@@ -1,35 +0,0 @@
1
- import {useMediaQuery as $9bAXg$useMediaQuery} from "@react-spectrum/utils";
2
-
3
- /*
4
- * Copyright 2020 Adobe. All rights reserved.
5
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License. You may obtain a copy
7
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
- * OF ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- */
14
- function $d8453c5ae7fac713$export$6343629ee1b29116(theme, defaultColorScheme) {
15
- let matchesDark = (0, $9bAXg$useMediaQuery)('(prefers-color-scheme: dark)');
16
- let matchesLight = (0, $9bAXg$useMediaQuery)('(prefers-color-scheme: light)');
17
- // importance OS > default > omitted
18
- if (theme.dark && matchesDark) return 'dark';
19
- if (theme.light && matchesLight) return 'light';
20
- if (theme.dark && defaultColorScheme === 'dark') return 'dark';
21
- if (theme.light && defaultColorScheme === 'light') return 'light';
22
- if (!theme.dark) return 'light';
23
- if (!theme.light) return 'dark';
24
- return 'light';
25
- }
26
- function $d8453c5ae7fac713$export$a8d2043b2d807f4d(theme) {
27
- let matchesFine = (0, $9bAXg$useMediaQuery)('(any-pointer: fine)');
28
- if (matchesFine && theme.medium) return 'medium';
29
- if (theme.large) return 'large';
30
- return 'medium';
31
- }
32
-
33
-
34
- export {$d8453c5ae7fac713$export$6343629ee1b29116 as useColorScheme, $d8453c5ae7fac713$export$a8d2043b2d807f4d as useScale};
35
- //# sourceMappingURL=mediaQueries.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC;AAKM,SAAS,0CAAe,KAAY,EAAE,kBAA+B;IAC1E,IAAI,cAAc,CAAA,GAAA,oBAAY,EAAE;IAChC,IAAI,eAAe,CAAA,GAAA,oBAAY,EAAE;IAEjC,oCAAoC;IAEpC,IAAI,MAAM,IAAI,IAAI,aAChB,OAAO;IAGT,IAAI,MAAM,KAAK,IAAI,cACjB,OAAO;IAGT,IAAI,MAAM,IAAI,IAAI,uBAAuB,QACvC,OAAO;IAGT,IAAI,MAAM,KAAK,IAAI,uBAAuB,SACxC,OAAO;IAGT,IAAI,CAAC,MAAM,IAAI,EACb,OAAO;IAGT,IAAI,CAAC,MAAM,KAAK,EACd,OAAO;IAGT,OAAO;AACT;AAEO,SAAS,0CAAS,KAAY;IACnC,IAAI,cAAc,CAAA,GAAA,oBAAY,EAAE;IAChC,IAAI,eAAe,MAAM,MAAM,EAC7B,OAAO;IAGT,IAAI,MAAM,KAAK,EACb,OAAO;IAGT,OAAO;AACT","sources":["packages/@react-spectrum/provider/src/mediaQueries.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\nimport {ColorScheme, Scale, Theme} from '@react-types/provider';\nimport {useMediaQuery} from '@react-spectrum/utils';\n\nexport function useColorScheme(theme: Theme, defaultColorScheme: ColorScheme): ColorScheme {\n let matchesDark = useMediaQuery('(prefers-color-scheme: dark)');\n let matchesLight = useMediaQuery('(prefers-color-scheme: light)');\n\n // importance OS > default > omitted\n\n if (theme.dark && matchesDark) {\n return 'dark';\n }\n\n if (theme.light && matchesLight) {\n return 'light';\n }\n\n if (theme.dark && defaultColorScheme === 'dark') {\n return 'dark';\n }\n\n if (theme.light && defaultColorScheme === 'light') {\n return 'light';\n }\n\n if (!theme.dark) {\n return 'light';\n }\n\n if (!theme.light) {\n return 'dark';\n }\n\n return 'light';\n}\n\nexport function useScale(theme: Theme): Scale {\n let matchesFine = useMediaQuery('(any-pointer: fine)');\n if (matchesFine && theme.medium) {\n return 'medium';\n }\n\n if (theme.large) {\n return 'large';\n }\n\n return 'medium';\n}\n"],"names":[],"version":3,"file":"mediaQueries.module.js.map"}
@@ -1,4 +0,0 @@
1
- module.exports = JSON.parse("{\"name\":\"@react-spectrum/provider\",\"version\":\"3.10.13\",\"description\":\"Spectrum UI components in React\",\"license\":\"Apache-2.0\",\"main\":\"dist/main.js\",\"module\":\"dist/module.js\",\"exports\":{\"source\":\"./src/index.ts\",\"types\":[\"./dist/types.d.ts\",\"./src/index.ts\"],\"import\":\"./dist/import.mjs\",\"require\":\"./dist/main.js\"},\"types\":\"dist/types.d.ts\",\"source\":\"src/index.ts\",\"files\":[\"dist\",\"src\"],\"sideEffects\":[\"*.css\"],\"targets\":{\"main\":{\"includeNodeModules\":[\"@adobe/spectrum-css-temp\"]},\"module\":{\"includeNodeModules\":[\"@adobe/spectrum-css-temp\"]}},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/adobe/react-spectrum\"},\"dependencies\":{\"@react-aria/i18n\":\"^3.12.15\",\"@react-aria/overlays\":\"^3.31.1\",\"@react-aria/utils\":\"^3.33.0\",\"@react-spectrum/utils\":\"^3.12.11\",\"@react-types/provider\":\"^3.8.14\",\"@react-types/shared\":\"^3.33.0\",\"@swc/helpers\":\"^0.5.0\",\"clsx\":\"^2.0.0\"},\"devDependencies\":{\"@adobe/spectrum-css-temp\":\"3.0.0-alpha.1\"},\"peerDependencies\":{\"react\":\"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\",\"react-dom\":\"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\"},\"publishConfig\":{\"access\":\"public\"}}");
2
-
3
-
4
- //# sourceMappingURL=package.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAA,iBAAiB,KAAK,KAAK,CAAC","sources":["packages/@react-spectrum/provider/package.json"],"sourcesContent":["{\n \"name\": \"@react-spectrum/provider\",\n \"version\": \"3.10.13\",\n \"description\": \"Spectrum UI components in React\",\n \"license\": \"Apache-2.0\",\n \"main\": \"dist/main.js\",\n \"module\": \"dist/module.js\",\n \"exports\": {\n \"source\": \"./src/index.ts\",\n \"types\": [\n \"./dist/types.d.ts\",\n \"./src/index.ts\"\n ],\n \"import\": \"./dist/import.mjs\",\n \"require\": \"./dist/main.js\"\n },\n \"types\": \"dist/types.d.ts\",\n \"source\": \"src/index.ts\",\n \"files\": [\n \"dist\",\n \"src\"\n ],\n \"sideEffects\": [\n \"*.css\"\n ],\n \"targets\": {\n \"main\": {\n \"includeNodeModules\": [\n \"@adobe/spectrum-css-temp\"\n ]\n },\n \"module\": {\n \"includeNodeModules\": [\n \"@adobe/spectrum-css-temp\"\n ]\n }\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/adobe/react-spectrum\"\n },\n \"dependencies\": {\n \"@react-aria/i18n\": \"^3.12.15\",\n \"@react-aria/overlays\": \"^3.31.1\",\n \"@react-aria/utils\": \"^3.33.0\",\n \"@react-spectrum/utils\": \"^3.12.11\",\n \"@react-types/provider\": \"^3.8.14\",\n \"@react-types/shared\": \"^3.33.0\",\n \"@swc/helpers\": \"^0.5.0\",\n \"clsx\": \"^2.0.0\"\n },\n \"devDependencies\": {\n \"@adobe/spectrum-css-temp\": \"3.0.0-alpha.1\"\n },\n \"peerDependencies\": {\n \"react\": \"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\",\n \"react-dom\": \"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n"],"names":[],"version":3,"file":"package.main.js.map"}
package/dist/package.mjs DELETED
@@ -1,6 +0,0 @@
1
- var $7b22e09dddddd7da$exports = {};
2
- $7b22e09dddddd7da$exports = JSON.parse("{\"name\":\"@react-spectrum/provider\",\"version\":\"3.10.13\",\"description\":\"Spectrum UI components in React\",\"license\":\"Apache-2.0\",\"main\":\"dist/main.js\",\"module\":\"dist/module.js\",\"exports\":{\"source\":\"./src/index.ts\",\"types\":[\"./dist/types.d.ts\",\"./src/index.ts\"],\"import\":\"./dist/import.mjs\",\"require\":\"./dist/main.js\"},\"types\":\"dist/types.d.ts\",\"source\":\"src/index.ts\",\"files\":[\"dist\",\"src\"],\"sideEffects\":[\"*.css\"],\"targets\":{\"main\":{\"includeNodeModules\":[\"@adobe/spectrum-css-temp\"]},\"module\":{\"includeNodeModules\":[\"@adobe/spectrum-css-temp\"]}},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/adobe/react-spectrum\"},\"dependencies\":{\"@react-aria/i18n\":\"^3.12.15\",\"@react-aria/overlays\":\"^3.31.1\",\"@react-aria/utils\":\"^3.33.0\",\"@react-spectrum/utils\":\"^3.12.11\",\"@react-types/provider\":\"^3.8.14\",\"@react-types/shared\":\"^3.33.0\",\"@swc/helpers\":\"^0.5.0\",\"clsx\":\"^2.0.0\"},\"devDependencies\":{\"@adobe/spectrum-css-temp\":\"3.0.0-alpha.1\"},\"peerDependencies\":{\"react\":\"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\",\"react-dom\":\"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\"},\"publishConfig\":{\"access\":\"public\"}}");
3
-
4
-
5
- export {$7b22e09dddddd7da$exports as default};
6
- //# sourceMappingURL=package.module.js.map
@@ -1,6 +0,0 @@
1
- var $7b22e09dddddd7da$exports = {};
2
- $7b22e09dddddd7da$exports = JSON.parse("{\"name\":\"@react-spectrum/provider\",\"version\":\"3.10.13\",\"description\":\"Spectrum UI components in React\",\"license\":\"Apache-2.0\",\"main\":\"dist/main.js\",\"module\":\"dist/module.js\",\"exports\":{\"source\":\"./src/index.ts\",\"types\":[\"./dist/types.d.ts\",\"./src/index.ts\"],\"import\":\"./dist/import.mjs\",\"require\":\"./dist/main.js\"},\"types\":\"dist/types.d.ts\",\"source\":\"src/index.ts\",\"files\":[\"dist\",\"src\"],\"sideEffects\":[\"*.css\"],\"targets\":{\"main\":{\"includeNodeModules\":[\"@adobe/spectrum-css-temp\"]},\"module\":{\"includeNodeModules\":[\"@adobe/spectrum-css-temp\"]}},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/adobe/react-spectrum\"},\"dependencies\":{\"@react-aria/i18n\":\"^3.12.15\",\"@react-aria/overlays\":\"^3.31.1\",\"@react-aria/utils\":\"^3.33.0\",\"@react-spectrum/utils\":\"^3.12.11\",\"@react-types/provider\":\"^3.8.14\",\"@react-types/shared\":\"^3.33.0\",\"@swc/helpers\":\"^0.5.0\",\"clsx\":\"^2.0.0\"},\"devDependencies\":{\"@adobe/spectrum-css-temp\":\"3.0.0-alpha.1\"},\"peerDependencies\":{\"react\":\"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\",\"react-dom\":\"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\"},\"publishConfig\":{\"access\":\"public\"}}");
3
-
4
-
5
- export {$7b22e09dddddd7da$exports as default};
6
- //# sourceMappingURL=package.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";AAAA,4BAAiB,KAAK,KAAK,CAAC","sources":["packages/@react-spectrum/provider/package.json"],"sourcesContent":["{\n \"name\": \"@react-spectrum/provider\",\n \"version\": \"3.10.13\",\n \"description\": \"Spectrum UI components in React\",\n \"license\": \"Apache-2.0\",\n \"main\": \"dist/main.js\",\n \"module\": \"dist/module.js\",\n \"exports\": {\n \"source\": \"./src/index.ts\",\n \"types\": [\n \"./dist/types.d.ts\",\n \"./src/index.ts\"\n ],\n \"import\": \"./dist/import.mjs\",\n \"require\": \"./dist/main.js\"\n },\n \"types\": \"dist/types.d.ts\",\n \"source\": \"src/index.ts\",\n \"files\": [\n \"dist\",\n \"src\"\n ],\n \"sideEffects\": [\n \"*.css\"\n ],\n \"targets\": {\n \"main\": {\n \"includeNodeModules\": [\n \"@adobe/spectrum-css-temp\"\n ]\n },\n \"module\": {\n \"includeNodeModules\": [\n \"@adobe/spectrum-css-temp\"\n ]\n }\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/adobe/react-spectrum\"\n },\n \"dependencies\": {\n \"@react-aria/i18n\": \"^3.12.15\",\n \"@react-aria/overlays\": \"^3.31.1\",\n \"@react-aria/utils\": \"^3.33.0\",\n \"@react-spectrum/utils\": \"^3.12.11\",\n \"@react-types/provider\": \"^3.8.14\",\n \"@react-types/shared\": \"^3.33.0\",\n \"@swc/helpers\": \"^0.5.0\",\n \"clsx\": \"^2.0.0\"\n },\n \"devDependencies\": {\n \"@adobe/spectrum-css-temp\": \"3.0.0-alpha.1\"\n },\n \"peerDependencies\": {\n \"react\": \"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\",\n \"react-dom\": \"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n"],"names":[],"version":3,"file":"package.module.js.map"}
@@ -1,26 +0,0 @@
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", () => $22365f0f5f2dcdd5$export$f39a09f249340e2a, (v) => $22365f0f5f2dcdd5$export$f39a09f249340e2a = v);
7
- $parcel$export(module.exports, "i18nFontFamily", () => $22365f0f5f2dcdd5$export$8c4ee2c50c22c514, (v) => $22365f0f5f2dcdd5$export$8c4ee2c50c22c514 = v);
8
- $parcel$export(module.exports, "spectrum", () => $22365f0f5f2dcdd5$export$3311ab3a441bc141, (v) => $22365f0f5f2dcdd5$export$3311ab3a441bc141 = v);
9
- $parcel$export(module.exports, "spectrum-FocusRing-ring", () => $22365f0f5f2dcdd5$export$4109102f950813a6, (v) => $22365f0f5f2dcdd5$export$4109102f950813a6 = v);
10
- $parcel$export(module.exports, "spectrum-FocusRing", () => $22365f0f5f2dcdd5$export$24c7f46a6e3605dd, (v) => $22365f0f5f2dcdd5$export$24c7f46a6e3605dd = v);
11
- $parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $22365f0f5f2dcdd5$export$2927016961429360, (v) => $22365f0f5f2dcdd5$export$2927016961429360 = v);
12
- var $22365f0f5f2dcdd5$export$f39a09f249340e2a;
13
- var $22365f0f5f2dcdd5$export$8c4ee2c50c22c514;
14
- var $22365f0f5f2dcdd5$export$3311ab3a441bc141;
15
- var $22365f0f5f2dcdd5$export$4109102f950813a6;
16
- var $22365f0f5f2dcdd5$export$24c7f46a6e3605dd;
17
- var $22365f0f5f2dcdd5$export$2927016961429360;
18
- $22365f0f5f2dcdd5$export$f39a09f249340e2a = `_t8qIa_focus-ring`;
19
- $22365f0f5f2dcdd5$export$8c4ee2c50c22c514 = `_t8qIa_i18nFontFamily`;
20
- $22365f0f5f2dcdd5$export$3311ab3a441bc141 = `_t8qIa_spectrum`;
21
- $22365f0f5f2dcdd5$export$4109102f950813a6 = `_t8qIa_spectrum-FocusRing-ring`;
22
- $22365f0f5f2dcdd5$export$24c7f46a6e3605dd = `_t8qIa_spectrum-FocusRing ${$22365f0f5f2dcdd5$export$4109102f950813a6}`;
23
- $22365f0f5f2dcdd5$export$2927016961429360 = `_t8qIa_spectrum-FocusRing--quiet`;
24
-
25
-
26
- //# sourceMappingURL=page_vars_css.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AALA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA6B,CAAC,eAAe,CAAC;AAC9C,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,2CAA2C;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/page/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":"page_vars_css.main.js.map"}
@@ -1,28 +0,0 @@
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 $698974e9dd92c2ec$exports = {};
6
-
7
- $parcel$export($698974e9dd92c2ec$exports, "focus-ring", () => $698974e9dd92c2ec$export$f39a09f249340e2a, (v) => $698974e9dd92c2ec$export$f39a09f249340e2a = v);
8
- $parcel$export($698974e9dd92c2ec$exports, "i18nFontFamily", () => $698974e9dd92c2ec$export$8c4ee2c50c22c514, (v) => $698974e9dd92c2ec$export$8c4ee2c50c22c514 = v);
9
- $parcel$export($698974e9dd92c2ec$exports, "spectrum", () => $698974e9dd92c2ec$export$3311ab3a441bc141, (v) => $698974e9dd92c2ec$export$3311ab3a441bc141 = v);
10
- $parcel$export($698974e9dd92c2ec$exports, "spectrum-FocusRing-ring", () => $698974e9dd92c2ec$export$4109102f950813a6, (v) => $698974e9dd92c2ec$export$4109102f950813a6 = v);
11
- $parcel$export($698974e9dd92c2ec$exports, "spectrum-FocusRing", () => $698974e9dd92c2ec$export$24c7f46a6e3605dd, (v) => $698974e9dd92c2ec$export$24c7f46a6e3605dd = v);
12
- $parcel$export($698974e9dd92c2ec$exports, "spectrum-FocusRing--quiet", () => $698974e9dd92c2ec$export$2927016961429360, (v) => $698974e9dd92c2ec$export$2927016961429360 = v);
13
- var $698974e9dd92c2ec$export$f39a09f249340e2a;
14
- var $698974e9dd92c2ec$export$8c4ee2c50c22c514;
15
- var $698974e9dd92c2ec$export$3311ab3a441bc141;
16
- var $698974e9dd92c2ec$export$4109102f950813a6;
17
- var $698974e9dd92c2ec$export$24c7f46a6e3605dd;
18
- var $698974e9dd92c2ec$export$2927016961429360;
19
- $698974e9dd92c2ec$export$f39a09f249340e2a = `_t8qIa_focus-ring`;
20
- $698974e9dd92c2ec$export$8c4ee2c50c22c514 = `_t8qIa_i18nFontFamily`;
21
- $698974e9dd92c2ec$export$3311ab3a441bc141 = `_t8qIa_spectrum`;
22
- $698974e9dd92c2ec$export$4109102f950813a6 = `_t8qIa_spectrum-FocusRing-ring`;
23
- $698974e9dd92c2ec$export$24c7f46a6e3605dd = `_t8qIa_spectrum-FocusRing ${$698974e9dd92c2ec$export$4109102f950813a6}`;
24
- $698974e9dd92c2ec$export$2927016961429360 = `_t8qIa_spectrum-FocusRing--quiet`;
25
-
26
-
27
- export {$698974e9dd92c2ec$exports as default};
28
- //# sourceMappingURL=page_vars_css.module.js.map
@@ -1,28 +0,0 @@
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 $698974e9dd92c2ec$exports = {};
6
-
7
- $parcel$export($698974e9dd92c2ec$exports, "focus-ring", () => $698974e9dd92c2ec$export$f39a09f249340e2a, (v) => $698974e9dd92c2ec$export$f39a09f249340e2a = v);
8
- $parcel$export($698974e9dd92c2ec$exports, "i18nFontFamily", () => $698974e9dd92c2ec$export$8c4ee2c50c22c514, (v) => $698974e9dd92c2ec$export$8c4ee2c50c22c514 = v);
9
- $parcel$export($698974e9dd92c2ec$exports, "spectrum", () => $698974e9dd92c2ec$export$3311ab3a441bc141, (v) => $698974e9dd92c2ec$export$3311ab3a441bc141 = v);
10
- $parcel$export($698974e9dd92c2ec$exports, "spectrum-FocusRing-ring", () => $698974e9dd92c2ec$export$4109102f950813a6, (v) => $698974e9dd92c2ec$export$4109102f950813a6 = v);
11
- $parcel$export($698974e9dd92c2ec$exports, "spectrum-FocusRing", () => $698974e9dd92c2ec$export$24c7f46a6e3605dd, (v) => $698974e9dd92c2ec$export$24c7f46a6e3605dd = v);
12
- $parcel$export($698974e9dd92c2ec$exports, "spectrum-FocusRing--quiet", () => $698974e9dd92c2ec$export$2927016961429360, (v) => $698974e9dd92c2ec$export$2927016961429360 = v);
13
- var $698974e9dd92c2ec$export$f39a09f249340e2a;
14
- var $698974e9dd92c2ec$export$8c4ee2c50c22c514;
15
- var $698974e9dd92c2ec$export$3311ab3a441bc141;
16
- var $698974e9dd92c2ec$export$4109102f950813a6;
17
- var $698974e9dd92c2ec$export$24c7f46a6e3605dd;
18
- var $698974e9dd92c2ec$export$2927016961429360;
19
- $698974e9dd92c2ec$export$f39a09f249340e2a = `_t8qIa_focus-ring`;
20
- $698974e9dd92c2ec$export$8c4ee2c50c22c514 = `_t8qIa_i18nFontFamily`;
21
- $698974e9dd92c2ec$export$3311ab3a441bc141 = `_t8qIa_spectrum`;
22
- $698974e9dd92c2ec$export$4109102f950813a6 = `_t8qIa_spectrum-FocusRing-ring`;
23
- $698974e9dd92c2ec$export$24c7f46a6e3605dd = `_t8qIa_spectrum-FocusRing ${$698974e9dd92c2ec$export$4109102f950813a6}`;
24
- $698974e9dd92c2ec$export$2927016961429360 = `_t8qIa_spectrum-FocusRing--quiet`;
25
-
26
-
27
- export {$698974e9dd92c2ec$exports as default};
28
- //# sourceMappingURL=page_vars_css.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AALA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA6B,CAAC,eAAe,CAAC;AAC9C,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,2CAA2C;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/page/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":"page_vars_css.module.js.map"}