@react-spectrum/well 3.4.7 → 3.4.9
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/import.mjs +4 -0
- package/dist/main.css +94 -1
- package/dist/main.css.map +1 -0
- package/dist/main.js +4 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -0
- package/dist/module.js.map +1 -1
- package/package.json +6 -6
package/dist/import.mjs
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
+
"use client";
|
2
|
+
|
1
3
|
import "./main.css";
|
2
4
|
import {useDOMRef as $2uC0Z$useDOMRef, useStyleProps as $2uC0Z$useStyleProps, classNames as $2uC0Z$classNames} from "@react-spectrum/utils";
|
3
5
|
import {filterDOMProps as $2uC0Z$filterDOMProps} from "@react-aria/utils";
|
4
6
|
import $2uC0Z$react, {forwardRef as $2uC0Z$forwardRef} from "react";
|
5
7
|
|
8
|
+
|
6
9
|
function $parcel$interopDefault(a) {
|
7
10
|
return a && a.__esModule ? a.default : a;
|
8
11
|
}
|
12
|
+
|
9
13
|
function $parcel$export(e, n, v, s) {
|
10
14
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
11
15
|
}
|
package/dist/main.css
CHANGED
@@ -1 +1,94 @@
|
|
1
|
-
.SWvLfG_i18nFontFamily
|
1
|
+
.SWvLfG_i18nFontFamily {
|
2
|
+
font-synthesis: weight;
|
3
|
+
font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
4
|
+
}
|
5
|
+
|
6
|
+
.SWvLfG_i18nFontFamily:lang(ar) {
|
7
|
+
font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
8
|
+
}
|
9
|
+
|
10
|
+
.SWvLfG_i18nFontFamily:lang(he) {
|
11
|
+
font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
12
|
+
}
|
13
|
+
|
14
|
+
.SWvLfG_i18nFontFamily:lang(zh) {
|
15
|
+
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
|
16
|
+
}
|
17
|
+
|
18
|
+
.SWvLfG_i18nFontFamily:lang(zh-Hans) {
|
19
|
+
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
20
|
+
}
|
21
|
+
|
22
|
+
.SWvLfG_i18nFontFamily:lang(zh-Hant) {
|
23
|
+
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
|
24
|
+
}
|
25
|
+
|
26
|
+
.SWvLfG_i18nFontFamily:lang(zh-SG) {
|
27
|
+
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
28
|
+
}
|
29
|
+
|
30
|
+
.SWvLfG_i18nFontFamily:lang(zh-CN) {
|
31
|
+
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
32
|
+
}
|
33
|
+
|
34
|
+
.SWvLfG_i18nFontFamily:lang(ko) {
|
35
|
+
font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
|
36
|
+
}
|
37
|
+
|
38
|
+
.SWvLfG_i18nFontFamily:lang(ja) {
|
39
|
+
font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
|
40
|
+
}
|
41
|
+
|
42
|
+
.SWvLfG_spectrum-FocusRing-ring {
|
43
|
+
--spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
|
44
|
+
--spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
|
45
|
+
--spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
|
46
|
+
--spectrum-focus-ring-border-size: 0px;
|
47
|
+
--spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
|
48
|
+
}
|
49
|
+
|
50
|
+
.SWvLfG_spectrum-FocusRing-ring:after {
|
51
|
+
border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
|
52
|
+
content: "";
|
53
|
+
margin: calc(-1 * var(--spectrum-focus-ring-border-size));
|
54
|
+
pointer-events: none;
|
55
|
+
transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
|
56
|
+
display: block;
|
57
|
+
position: absolute;
|
58
|
+
top: 0;
|
59
|
+
bottom: 0;
|
60
|
+
left: 0;
|
61
|
+
right: 0;
|
62
|
+
}
|
63
|
+
|
64
|
+
.SWvLfG_spectrum-FocusRing {
|
65
|
+
}
|
66
|
+
|
67
|
+
.SWvLfG_spectrum-FocusRing.SWvLfG_focus-ring:after {
|
68
|
+
margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
|
69
|
+
box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
|
70
|
+
}
|
71
|
+
|
72
|
+
.SWvLfG_spectrum-FocusRing--quiet:after {
|
73
|
+
border-radius: 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
.SWvLfG_spectrum-FocusRing--quiet.SWvLfG_focus-ring:after {
|
77
|
+
margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
|
78
|
+
box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
|
79
|
+
}
|
80
|
+
|
81
|
+
.SWvLfG_spectrum-Well {
|
82
|
+
text-align: start;
|
83
|
+
min-inline-size: var(--spectrum-global-dimension-size-2000);
|
84
|
+
padding: var(--spectrum-global-dimension-size-200);
|
85
|
+
margin-top: var(--spectrum-global-dimension-size-50);
|
86
|
+
border-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));
|
87
|
+
border-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
88
|
+
background-color: var(--spectrum-well-background-color);
|
89
|
+
border-style: solid;
|
90
|
+
border-color: var(--spectrum-well-border-color);
|
91
|
+
display: block;
|
92
|
+
}
|
93
|
+
|
94
|
+
/*# sourceMappingURL=main.css.map */
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;;;;AAiBF;;;AAII;;;;;AAQF;;;;AAKE;;;;;AAOJ","sources":["packages/@adobe/spectrum-css-temp/components/well/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":"main.css.map"}
|
package/dist/main.js
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
+
"use client";
|
2
|
+
|
1
3
|
require("./main.css");
|
2
4
|
var $f5FMV$reactspectrumutils = require("@react-spectrum/utils");
|
3
5
|
var $f5FMV$reactariautils = require("@react-aria/utils");
|
4
6
|
var $f5FMV$react = require("react");
|
5
7
|
|
8
|
+
|
6
9
|
function $parcel$export(e, n, v, s) {
|
7
10
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
8
11
|
}
|
12
|
+
|
9
13
|
function $parcel$interopDefault(a) {
|
10
14
|
return a && a.__esModule ? a.default : a;
|
11
15
|
}
|
package/dist/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":"
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;CAUC;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AALA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAkC,CAAC,oBAAoB,CAAC;;;ADcxD,SAAS,2BAAK,KAAwB,EAAE,GAA2B;IACjE,IAAI,YACF,QAAQ,QACR,IAAI,EACJ,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,IAAI,CAAC,QAAS,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,GAC1D,QAAQ,IAAI,CAAC;IAGf,qBACE,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,gEAAK,GACL,iBACA,WAAW,SAAS;OAErB;AAGP;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE;","sources":["packages/@react-spectrum/well/src/index.ts","packages/@react-spectrum/well/src/Well.tsx","packages/@adobe/spectrum-css-temp/components/well/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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n","/*\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 {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumWellProps} from '@react-types/well';\nimport styles from '@adobe/spectrum-css-temp/components/well/vars.css';\n\nfunction Well(props: SpectrumWellProps, ref: DOMRef<HTMLDivElement>) {\n let {\n children,\n role,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n if (!role && (props['aria-label'] || props['aria-labelledby'])) {\n console.warn('A labelled Well must have a role.');\n }\n\n return (\n <div\n {...filterDOMProps(otherProps, {labelable: !!role})}\n {...styleProps}\n role={role}\n ref={domRef}\n className={classNames(\n styles,\n 'spectrum-Well',\n styleProps.className\n )}>\n {children}\n </div>\n );\n}\n\n/**\n * A Well is a content container that displays non-editable content separate from other content on the screen.\n * Often this is used to display preformatted text, such as code/markup examples on a documentation page.\n */\nconst _Well = forwardRef(Well);\nexport {_Well as Well};\n","/*\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":"main.js.map"}
|
package/dist/module.js
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
+
"use client";
|
2
|
+
|
1
3
|
import "./main.css";
|
2
4
|
import {useDOMRef as $2uC0Z$useDOMRef, useStyleProps as $2uC0Z$useStyleProps, classNames as $2uC0Z$classNames} from "@react-spectrum/utils";
|
3
5
|
import {filterDOMProps as $2uC0Z$filterDOMProps} from "@react-aria/utils";
|
4
6
|
import $2uC0Z$react, {forwardRef as $2uC0Z$forwardRef} from "react";
|
5
7
|
|
8
|
+
|
6
9
|
function $parcel$interopDefault(a) {
|
7
10
|
return a && a.__esModule ? a.default : a;
|
8
11
|
}
|
12
|
+
|
9
13
|
function $parcel$export(e, n, v, s) {
|
10
14
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
11
15
|
}
|
package/dist/module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":"
|
1
|
+
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;CAUC;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AALA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAkC,CAAC,oBAAoB,CAAC;;;ADcxD,SAAS,2BAAK,KAAwB,EAAE,GAA2B;IACjE,IAAI,YACF,QAAQ,QACR,IAAI,EACJ,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IAEjC,IAAI,CAAC,QAAS,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,GAC1D,QAAQ,IAAI,CAAC;IAGf,qBACE,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,gEAAK,GACL,iBACA,WAAW,SAAS;OAErB;AAGP;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,iBAAS,EAAE;","sources":["packages/@react-spectrum/well/src/index.ts","packages/@react-spectrum/well/src/Well.tsx","packages/@adobe/spectrum-css-temp/components/well/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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n","/*\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 {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumWellProps} from '@react-types/well';\nimport styles from '@adobe/spectrum-css-temp/components/well/vars.css';\n\nfunction Well(props: SpectrumWellProps, ref: DOMRef<HTMLDivElement>) {\n let {\n children,\n role,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n if (!role && (props['aria-label'] || props['aria-labelledby'])) {\n console.warn('A labelled Well must have a role.');\n }\n\n return (\n <div\n {...filterDOMProps(otherProps, {labelable: !!role})}\n {...styleProps}\n role={role}\n ref={domRef}\n className={classNames(\n styles,\n 'spectrum-Well',\n styleProps.className\n )}>\n {children}\n </div>\n );\n}\n\n/**\n * A Well is a content container that displays non-editable content separate from other content on the screen.\n * Often this is used to display preformatted text, such as code/markup examples on a documentation page.\n */\nconst _Well = forwardRef(Well);\nexport {_Well as Well};\n","/*\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.js.map"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/well",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.9",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -36,10 +36,10 @@
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@react-aria/utils": "^3.
|
40
|
-
"@react-spectrum/utils": "^3.11.
|
41
|
-
"@react-types/shared": "^3.
|
42
|
-
"@react-types/well": "^3.3.
|
39
|
+
"@react-aria/utils": "^3.23.0",
|
40
|
+
"@react-spectrum/utils": "^3.11.3",
|
41
|
+
"@react-types/shared": "^3.22.0",
|
42
|
+
"@react-types/well": "^3.3.6",
|
43
43
|
"@swc/helpers": "^0.5.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
@@ -51,5 +51,5 @@
|
|
51
51
|
"publishConfig": {
|
52
52
|
"access": "public"
|
53
53
|
},
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "86b38c87868ce7f262e0df905e5ac4eb2653791d"
|
55
55
|
}
|