@react-spectrum/theme-light 3.4.24 → 3.5.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 (45) hide show
  1. package/dist/import.mjs +2 -26
  2. package/dist/main.js +2 -26
  3. package/dist/main.js.map +1 -1
  4. package/dist/module.js +2 -26
  5. package/dist/module.js.map +1 -1
  6. package/dist/types/src/index.d.ts +1 -0
  7. package/package.json +14 -25
  8. package/src/index.ts +1 -15
  9. package/dist/theme-light.3877ec83.css +0 -616
  10. package/dist/theme-light.3877ec83.css.map +0 -1
  11. package/dist/theme-light.5596f1cf.css +0 -342
  12. package/dist/theme-light.5596f1cf.css.map +0 -1
  13. package/dist/theme-light.64971c2f.css +0 -387
  14. package/dist/theme-light.64971c2f.css.map +0 -1
  15. package/dist/theme-light.8ccc0f69.css +0 -298
  16. package/dist/theme-light.8ccc0f69.css.map +0 -1
  17. package/dist/theme-light.f0c51bfd.css +0 -387
  18. package/dist/theme-light.f0c51bfd.css.map +0 -1
  19. package/dist/types.d.ts +0 -4
  20. package/dist/types.d.ts.map +0 -1
  21. package/dist/vars_spectrum-darkest_css.main.js +0 -11
  22. package/dist/vars_spectrum-darkest_css.main.js.map +0 -1
  23. package/dist/vars_spectrum-darkest_css.mjs +0 -13
  24. package/dist/vars_spectrum-darkest_css.module.js +0 -13
  25. package/dist/vars_spectrum-darkest_css.module.js.map +0 -1
  26. package/dist/vars_spectrum-global_css.main.js +0 -29
  27. package/dist/vars_spectrum-global_css.main.js.map +0 -1
  28. package/dist/vars_spectrum-global_css.mjs +0 -31
  29. package/dist/vars_spectrum-global_css.module.js +0 -31
  30. package/dist/vars_spectrum-global_css.module.js.map +0 -1
  31. package/dist/vars_spectrum-large_css.main.js +0 -11
  32. package/dist/vars_spectrum-large_css.main.js.map +0 -1
  33. package/dist/vars_spectrum-large_css.mjs +0 -13
  34. package/dist/vars_spectrum-large_css.module.js +0 -13
  35. package/dist/vars_spectrum-large_css.module.js.map +0 -1
  36. package/dist/vars_spectrum-lightest_css.main.js +0 -11
  37. package/dist/vars_spectrum-lightest_css.main.js.map +0 -1
  38. package/dist/vars_spectrum-lightest_css.mjs +0 -13
  39. package/dist/vars_spectrum-lightest_css.module.js +0 -13
  40. package/dist/vars_spectrum-lightest_css.module.js.map +0 -1
  41. package/dist/vars_spectrum-medium_css.main.js +0 -11
  42. package/dist/vars_spectrum-medium_css.main.js.map +0 -1
  43. package/dist/vars_spectrum-medium_css.mjs +0 -13
  44. package/dist/vars_spectrum-medium_css.module.js +0 -13
  45. package/dist/vars_spectrum-medium_css.module.js.map +0 -1
package/dist/import.mjs CHANGED
@@ -1,18 +1,5 @@
1
- import "./theme-light.5596f1cf.css";
2
- import $fbgke$vars_spectrumdarkest_cssmodulejs from "./vars_spectrum-darkest_css.mjs";
3
- import "./theme-light.3877ec83.css";
4
- import $fbgke$vars_spectrumglobal_cssmodulejs from "./vars_spectrum-global_css.mjs";
5
- import "./theme-light.f0c51bfd.css";
6
- import $fbgke$vars_spectrumlarge_cssmodulejs from "./vars_spectrum-large_css.mjs";
7
- import "./theme-light.8ccc0f69.css";
8
- import $fbgke$vars_spectrumlightest_cssmodulejs from "./vars_spectrum-lightest_css.mjs";
9
- import "./theme-light.64971c2f.css";
10
- import $fbgke$vars_spectrummedium_cssmodulejs from "./vars_spectrum-medium_css.mjs";
1
+ import {lightTheme as $eb115ab66303dabf$re_export$theme} from "@adobe/react-spectrum/lightTheme";
11
2
 
12
-
13
- function $parcel$interopDefault(a) {
14
- return a && a.__esModule ? a.default : a;
15
- }
16
3
  /*
17
4
  * Copyright 2020 Adobe. All rights reserved.
18
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -27,16 +14,5 @@ function $parcel$interopDefault(a) {
27
14
 
28
15
 
29
16
 
30
-
31
-
32
- let $0aa443374b81c1bd$export$bca14c5b3b88a9c9 = {
33
- global: ($parcel$interopDefault($fbgke$vars_spectrumglobal_cssmodulejs)),
34
- light: (0, ($parcel$interopDefault($fbgke$vars_spectrumlightest_cssmodulejs))),
35
- dark: (0, ($parcel$interopDefault($fbgke$vars_spectrumdarkest_cssmodulejs))),
36
- medium: ($parcel$interopDefault($fbgke$vars_spectrummedium_cssmodulejs)),
37
- large: ($parcel$interopDefault($fbgke$vars_spectrumlarge_cssmodulejs))
38
- };
39
-
40
-
41
- export {$0aa443374b81c1bd$export$bca14c5b3b88a9c9 as theme};
17
+ export {$eb115ab66303dabf$re_export$theme as theme};
42
18
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,24 +1,11 @@
1
- require("./theme-light.5596f1cf.css");
2
- var $5fc600550714d659$exports = require("./vars_spectrum-darkest_css.main.js");
3
- require("./theme-light.3877ec83.css");
4
- var $33116a1ac1f127f3$exports = require("./vars_spectrum-global_css.main.js");
5
- require("./theme-light.f0c51bfd.css");
6
- var $ed6c61a7b1f80a21$exports = require("./vars_spectrum-large_css.main.js");
7
- require("./theme-light.8ccc0f69.css");
8
- var $2179ca4439c0728e$exports = require("./vars_spectrum-lightest_css.main.js");
9
- require("./theme-light.64971c2f.css");
10
- var $7ada9fcc793cf5cf$exports = require("./vars_spectrum-medium_css.main.js");
1
+ var $8xNfM$adobereactspectrumlightTheme = require("@adobe/react-spectrum/lightTheme");
11
2
 
12
3
 
13
- function $parcel$interopDefault(a) {
14
- return a && a.__esModule ? a.default : a;
15
- }
16
-
17
4
  function $parcel$export(e, n, v, s) {
18
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
19
6
  }
20
7
 
21
- $parcel$export(module.exports, "theme", () => $e9051af08b8b1500$export$bca14c5b3b88a9c9);
8
+ $parcel$export(module.exports, "theme", function () { return $8xNfM$adobereactspectrumlightTheme.lightTheme; });
22
9
  /*
23
10
  * Copyright 2020 Adobe. All rights reserved.
24
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -33,15 +20,4 @@ $parcel$export(module.exports, "theme", () => $e9051af08b8b1500$export$bca14c5b3
33
20
 
34
21
 
35
22
 
36
-
37
-
38
- let $e9051af08b8b1500$export$bca14c5b3b88a9c9 = {
39
- global: ($parcel$interopDefault($33116a1ac1f127f3$exports)),
40
- light: (0, ($parcel$interopDefault($2179ca4439c0728e$exports))),
41
- dark: (0, ($parcel$interopDefault($5fc600550714d659$exports))),
42
- medium: ($parcel$interopDefault($7ada9fcc793cf5cf$exports)),
43
- large: ($parcel$interopDefault($ed6c61a7b1f80a21$exports))
44
- };
45
-
46
-
47
23
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;;;;;;AASnC,IAAI,4CAAe;YACxB;IACA,OAAO,CAAA,GAAA,mDAAO;IACd,MAAM,CAAA,GAAA,mDAAM;YACZ;WACA;AACF","sources":["packages/@react-spectrum/theme-light/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\n/// <reference types=\"css-module-types\" />\n\nimport darkest from '@adobe/spectrum-css-temp/vars/spectrum-darkest.css';\nimport global from '@adobe/spectrum-css-temp/vars/spectrum-global.css';\nimport large from '@adobe/spectrum-css-temp/vars/spectrum-large.css';\nimport lightest from '@adobe/spectrum-css-temp/vars/spectrum-lightest.css';\nimport medium from '@adobe/spectrum-css-temp/vars/spectrum-medium.css';\nimport {Theme} from '@react-types/provider';\n\nexport let theme: Theme = {\n global,\n light: lightest,\n dark: darkest,\n medium,\n large\n};\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/theme-light/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\n/// <reference types=\"css-module-types\" />\nexport {lightTheme as theme} from '@adobe/react-spectrum/lightTheme';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,18 +1,5 @@
1
- import "./theme-light.5596f1cf.css";
2
- import $fbgke$vars_spectrumdarkest_cssmodulejs from "./vars_spectrum-darkest_css.module.js";
3
- import "./theme-light.3877ec83.css";
4
- import $fbgke$vars_spectrumglobal_cssmodulejs from "./vars_spectrum-global_css.module.js";
5
- import "./theme-light.f0c51bfd.css";
6
- import $fbgke$vars_spectrumlarge_cssmodulejs from "./vars_spectrum-large_css.module.js";
7
- import "./theme-light.8ccc0f69.css";
8
- import $fbgke$vars_spectrumlightest_cssmodulejs from "./vars_spectrum-lightest_css.module.js";
9
- import "./theme-light.64971c2f.css";
10
- import $fbgke$vars_spectrummedium_cssmodulejs from "./vars_spectrum-medium_css.module.js";
1
+ import {lightTheme as $eb115ab66303dabf$re_export$theme} from "@adobe/react-spectrum/lightTheme";
11
2
 
12
-
13
- function $parcel$interopDefault(a) {
14
- return a && a.__esModule ? a.default : a;
15
- }
16
3
  /*
17
4
  * Copyright 2020 Adobe. All rights reserved.
18
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -27,16 +14,5 @@ function $parcel$interopDefault(a) {
27
14
 
28
15
 
29
16
 
30
-
31
-
32
- let $0aa443374b81c1bd$export$bca14c5b3b88a9c9 = {
33
- global: ($parcel$interopDefault($fbgke$vars_spectrumglobal_cssmodulejs)),
34
- light: (0, ($parcel$interopDefault($fbgke$vars_spectrumlightest_cssmodulejs))),
35
- dark: (0, ($parcel$interopDefault($fbgke$vars_spectrumdarkest_cssmodulejs))),
36
- medium: ($parcel$interopDefault($fbgke$vars_spectrummedium_cssmodulejs)),
37
- large: ($parcel$interopDefault($fbgke$vars_spectrumlarge_cssmodulejs))
38
- };
39
-
40
-
41
- export {$0aa443374b81c1bd$export$bca14c5b3b88a9c9 as theme};
17
+ export {$eb115ab66303dabf$re_export$theme as theme};
42
18
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;;;;;;AASnC,IAAI,4CAAe;YACxB;IACA,OAAO,CAAA,GAAA,kEAAO;IACd,MAAM,CAAA,GAAA,iEAAM;YACZ;WACA;AACF","sources":["packages/@react-spectrum/theme-light/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\n/// <reference types=\"css-module-types\" />\n\nimport darkest from '@adobe/spectrum-css-temp/vars/spectrum-darkest.css';\nimport global from '@adobe/spectrum-css-temp/vars/spectrum-global.css';\nimport large from '@adobe/spectrum-css-temp/vars/spectrum-large.css';\nimport lightest from '@adobe/spectrum-css-temp/vars/spectrum-lightest.css';\nimport medium from '@adobe/spectrum-css-temp/vars/spectrum-medium.css';\nimport {Theme} from '@react-types/provider';\n\nexport let theme: Theme = {\n global,\n light: lightest,\n dark: darkest,\n medium,\n large\n};\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/theme-light/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\n/// <reference types=\"css-module-types\" />\nexport {lightTheme as theme} from '@adobe/react-spectrum/lightTheme';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1 @@
1
+ export { lightTheme as theme } from '@adobe/react-spectrum/lightTheme';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@react-spectrum/theme-light",
3
- "version": "3.4.24",
3
+ "version": "3.5.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
8
  "exports": {
9
- "source": "./src/index.ts",
10
- "types": [
11
- "./dist/types.d.ts",
12
- "./src/index.ts"
13
- ],
14
- "import": "./dist/import.mjs",
15
- "require": "./dist/main.js"
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./dist/types/src/index.d.ts",
12
+ "import": "./dist/import.mjs",
13
+ "require": "./dist/main.js"
14
+ },
15
+ "./package.json": "./package.json"
16
16
  },
17
- "types": "dist/types.d.ts",
17
+ "types": "dist/types/src/index.d.ts",
18
18
  "source": "src/index.ts",
19
19
  "files": [
20
20
  "dist",
@@ -24,33 +24,22 @@
24
24
  "*.css"
25
25
  ],
26
26
  "targets": {
27
- "main": {
28
- "includeNodeModules": [
29
- "@adobe/spectrum-css-temp"
30
- ]
31
- },
32
- "module": {
33
- "includeNodeModules": [
34
- "@adobe/spectrum-css-temp"
35
- ]
36
- }
27
+ "types": false
37
28
  },
38
29
  "repository": {
39
30
  "type": "git",
40
31
  "url": "https://github.com/adobe/react-spectrum"
41
32
  },
42
33
  "dependencies": {
43
- "@react-types/provider": "^3.8.15",
34
+ "@adobe/react-spectrum": "3.47.0",
44
35
  "@swc/helpers": "^0.5.0"
45
36
  },
46
- "devDependencies": {
47
- "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
48
- },
49
37
  "publishConfig": {
50
38
  "access": "public"
51
39
  },
52
40
  "peerDependencies": {
53
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
41
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
42
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
54
43
  },
55
- "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371"
44
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
56
45
  }
package/src/index.ts CHANGED
@@ -11,18 +11,4 @@
11
11
  */
12
12
 
13
13
  /// <reference types="css-module-types" />
14
-
15
- import darkest from '@adobe/spectrum-css-temp/vars/spectrum-darkest.css';
16
- import global from '@adobe/spectrum-css-temp/vars/spectrum-global.css';
17
- import large from '@adobe/spectrum-css-temp/vars/spectrum-large.css';
18
- import lightest from '@adobe/spectrum-css-temp/vars/spectrum-lightest.css';
19
- import medium from '@adobe/spectrum-css-temp/vars/spectrum-medium.css';
20
- import {Theme} from '@react-types/provider';
21
-
22
- export let theme: Theme = {
23
- global,
24
- light: lightest,
25
- dark: darkest,
26
- medium,
27
- large
28
- };
14
+ export {lightTheme as theme} from '@adobe/react-spectrum/lightTheme';