@react-spectrum/well 3.3.4 → 3.4.1

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.
@@ -0,0 +1,67 @@
1
+ import "./main.css";
2
+ import {useDOMRef as $2uC0Z$useDOMRef, useStyleProps as $2uC0Z$useStyleProps, classNames as $2uC0Z$classNames} from "@react-spectrum/utils";
3
+ import {filterDOMProps as $2uC0Z$filterDOMProps} from "@react-aria/utils";
4
+ import $2uC0Z$react, {forwardRef as $2uC0Z$forwardRef} from "react";
5
+
6
+ function $parcel$interopDefault(a) {
7
+ return a && a.__esModule ? a.default : a;
8
+ }
9
+ function $parcel$export(e, n, v, s) {
10
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
11
+ }
12
+ /*
13
+ * Copyright 2020 Adobe. All rights reserved.
14
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
15
+ * you may not use this file except in compliance with the License. You may obtain a copy
16
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software distributed under
19
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
20
+ * OF ANY KIND, either express or implied. See the License for the specific language
21
+ * governing permissions and limitations under the License.
22
+ */ /// <reference types="css-module-types" />
23
+ /*
24
+ * Copyright 2020 Adobe. All rights reserved.
25
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
26
+ * you may not use this file except in compliance with the License. You may obtain a copy
27
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
28
+ *
29
+ * Unless required by applicable law or agreed to in writing, software distributed under
30
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
31
+ * OF ANY KIND, either express or implied. See the License for the specific language
32
+ * governing permissions and limitations under the License.
33
+ */
34
+
35
+
36
+ var $f53ecf77408821c3$exports = {};
37
+
38
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-Well", () => $f53ecf77408821c3$export$98e76d3873e01aa9, (v) => $f53ecf77408821c3$export$98e76d3873e01aa9 = v);
39
+ var $f53ecf77408821c3$export$98e76d3873e01aa9;
40
+ $f53ecf77408821c3$export$98e76d3873e01aa9 = "spectrum-Well_d48698";
41
+
42
+
43
+ function $126c538221395de1$var$Well(props, ref) {
44
+ let { children: children , role: role , ...otherProps } = props;
45
+ let domRef = (0, $2uC0Z$useDOMRef)(ref);
46
+ let { styleProps: styleProps } = (0, $2uC0Z$useStyleProps)(otherProps);
47
+ if (!role && (props["aria-label"] || props["aria-labelledby"])) console.warn("A labelled Well must have a role.");
48
+ return /*#__PURE__*/ (0, $2uC0Z$react).createElement("div", {
49
+ ...(0, $2uC0Z$filterDOMProps)(otherProps, {
50
+ labelable: !!role
51
+ }),
52
+ ...styleProps,
53
+ role: role,
54
+ ref: domRef,
55
+ className: (0, $2uC0Z$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f53ecf77408821c3$exports))), "spectrum-Well", styleProps.className)
56
+ }, children);
57
+ }
58
+ /**
59
+ * A Well is a content container that displays non-editable content separate from other content on the screen.
60
+ * Often this is used to display preformatted text, such as code/markup examples on a documentation page.
61
+ */ const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $2uC0Z$forwardRef)($126c538221395de1$var$Well);
62
+
63
+
64
+
65
+
66
+ export {$126c538221395de1$export$d89c679ee2f73242 as Well};
67
+ //# sourceMappingURL=module.js.map
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- [dir=ltr] .spectrum-Well_d48698{text-align:left}[dir=rtl] .spectrum-Well_d48698{text-align:right}.spectrum-Well_d48698{min-width:var(--spectrum-global-dimension-size-2000);padding:var(--spectrum-global-dimension-size-200);margin-top:var(--spectrum-global-dimension-size-50);border-width:var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10));border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));background-color:var(--spectrum-well-background-color);border-style:solid;border-color:var(--spectrum-well-border-color);display:block}
1
+ :root{font-synthesis:weight}[dir=ltr] .spectrum-Well_d48698{text-align:left}[dir=rtl] .spectrum-Well_d48698{text-align:right}.spectrum-Well_d48698{min-width:var(--spectrum-global-dimension-size-2000);padding:var(--spectrum-global-dimension-size-200);margin-top:var(--spectrum-global-dimension-size-50);border-width:var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10));border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));background-color:var(--spectrum-well-background-color);border-style:solid;border-color:var(--spectrum-well-border-color);display:block}
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@react-spectrum/well",
3
- "version": "3.3.4",
3
+ "version": "3.4.1",
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
+ "exports": {
9
+ "types": "./dist/types.d.ts",
10
+ "import": "./dist/import.mjs",
11
+ "require": "./dist/main.js"
12
+ },
8
13
  "types": "dist/types.d.ts",
9
14
  "source": "src/index.ts",
10
15
  "files": [
@@ -31,10 +36,10 @@
31
36
  "url": "https://github.com/adobe/react-spectrum"
32
37
  },
33
38
  "dependencies": {
34
- "@react-aria/utils": "^3.14.2",
35
- "@react-spectrum/utils": "^3.8.1",
36
- "@react-types/shared": "^3.16.0",
37
- "@react-types/well": "^3.2.5",
39
+ "@react-aria/utils": "^3.16.0",
40
+ "@react-spectrum/utils": "^3.9.1",
41
+ "@react-types/shared": "^3.18.0",
42
+ "@react-types/well": "^3.3.1",
38
43
  "@swc/helpers": "^0.4.14"
39
44
  },
40
45
  "devDependencies": {
@@ -46,5 +51,5 @@
46
51
  "publishConfig": {
47
52
  "access": "public"
48
53
  },
49
- "gitHead": "5480d76bd815e239366f92852c76b6831ad2a4fd"
54
+ "gitHead": "9d1ba9bd8ebcd63bf3495ade16d349bcb71795ce"
50
55
  }