@react-spectrum/statuslight 3.5.12 → 3.5.14
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/StatusLight.main.js
CHANGED
|
@@ -34,16 +34,16 @@ function $ba01d1490c4da3ea$var$StatusLight(props, ref) {
|
|
|
34
34
|
let { variant: variant, children: children, isDisabled: isDisabled, role: role, ...otherProps } = (0, $8aavy$reactspectrumprovider.useProviderProps)(props);
|
|
35
35
|
let domRef = (0, $8aavy$reactspectrumutils.useDOMRef)(ref);
|
|
36
36
|
let { styleProps: styleProps } = (0, $8aavy$reactspectrumutils.useStyleProps)(otherProps);
|
|
37
|
-
if (!children && !props[
|
|
38
|
-
if (!role && (props[
|
|
37
|
+
if (!children && !props['aria-label']) console.warn('If no children are provided, an aria-label must be specified');
|
|
38
|
+
if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled StatusLight must have a role.');
|
|
39
39
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($8aavy$react))).createElement("div", {
|
|
40
40
|
...(0, $8aavy$reactariautils.filterDOMProps)(otherProps, {
|
|
41
41
|
labelable: !!role
|
|
42
42
|
}),
|
|
43
43
|
...styleProps,
|
|
44
44
|
role: role,
|
|
45
|
-
className: (0, $8aavy$reactspectrumutils.classNames)((0, ($parcel$interopDefault($7e20c9d2bb376434$exports))),
|
|
46
|
-
|
|
45
|
+
className: (0, $8aavy$reactspectrumutils.classNames)((0, ($parcel$interopDefault($7e20c9d2bb376434$exports))), 'spectrum-StatusLight', `spectrum-StatusLight--${variant}`, {
|
|
46
|
+
'is-disabled': isDisabled
|
|
47
47
|
}, styleProps.className),
|
|
48
48
|
ref: domRef
|
|
49
49
|
}, children);
|
package/dist/StatusLight.mjs
CHANGED
|
@@ -28,16 +28,16 @@ function $df8f173c8bd4ebc0$var$StatusLight(props, ref) {
|
|
|
28
28
|
let { variant: variant, children: children, isDisabled: isDisabled, role: role, ...otherProps } = (0, $k8ZOF$useProviderProps)(props);
|
|
29
29
|
let domRef = (0, $k8ZOF$useDOMRef)(ref);
|
|
30
30
|
let { styleProps: styleProps } = (0, $k8ZOF$useStyleProps)(otherProps);
|
|
31
|
-
if (!children && !props[
|
|
32
|
-
if (!role && (props[
|
|
31
|
+
if (!children && !props['aria-label']) console.warn('If no children are provided, an aria-label must be specified');
|
|
32
|
+
if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled StatusLight must have a role.');
|
|
33
33
|
return /*#__PURE__*/ (0, $k8ZOF$react).createElement("div", {
|
|
34
34
|
...(0, $k8ZOF$filterDOMProps)(otherProps, {
|
|
35
35
|
labelable: !!role
|
|
36
36
|
}),
|
|
37
37
|
...styleProps,
|
|
38
38
|
role: role,
|
|
39
|
-
className: (0, $k8ZOF$classNames)((0, ($parcel$interopDefault($k8ZOF$statuslight_vars_cssmodulejs))),
|
|
40
|
-
|
|
39
|
+
className: (0, $k8ZOF$classNames)((0, ($parcel$interopDefault($k8ZOF$statuslight_vars_cssmodulejs))), 'spectrum-StatusLight', `spectrum-StatusLight--${variant}`, {
|
|
40
|
+
'is-disabled': isDisabled
|
|
41
41
|
}, styleProps.className),
|
|
42
42
|
ref: domRef
|
|
43
43
|
}, children);
|
|
@@ -49,4 +49,4 @@ function $df8f173c8bd4ebc0$var$StatusLight(props, ref) {
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
|
|
52
|
-
//# sourceMappingURL=StatusLight.
|
|
52
|
+
//# sourceMappingURL=StatusLight.module.js.map
|
|
@@ -28,16 +28,16 @@ function $df8f173c8bd4ebc0$var$StatusLight(props, ref) {
|
|
|
28
28
|
let { variant: variant, children: children, isDisabled: isDisabled, role: role, ...otherProps } = (0, $k8ZOF$useProviderProps)(props);
|
|
29
29
|
let domRef = (0, $k8ZOF$useDOMRef)(ref);
|
|
30
30
|
let { styleProps: styleProps } = (0, $k8ZOF$useStyleProps)(otherProps);
|
|
31
|
-
if (!children && !props[
|
|
32
|
-
if (!role && (props[
|
|
31
|
+
if (!children && !props['aria-label']) console.warn('If no children are provided, an aria-label must be specified');
|
|
32
|
+
if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled StatusLight must have a role.');
|
|
33
33
|
return /*#__PURE__*/ (0, $k8ZOF$react).createElement("div", {
|
|
34
34
|
...(0, $k8ZOF$filterDOMProps)(otherProps, {
|
|
35
35
|
labelable: !!role
|
|
36
36
|
}),
|
|
37
37
|
...styleProps,
|
|
38
38
|
role: role,
|
|
39
|
-
className: (0, $k8ZOF$classNames)((0, ($parcel$interopDefault($k8ZOF$statuslight_vars_cssmodulejs))),
|
|
40
|
-
|
|
39
|
+
className: (0, $k8ZOF$classNames)((0, ($parcel$interopDefault($k8ZOF$statuslight_vars_cssmodulejs))), 'spectrum-StatusLight', `spectrum-StatusLight--${variant}`, {
|
|
40
|
+
'is-disabled': isDisabled
|
|
41
41
|
}, styleProps.className),
|
|
42
42
|
ref: domRef
|
|
43
43
|
}, children);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/statuslight",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.14",
|
|
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/statuslight": "^3.3.
|
|
39
|
+
"@react-aria/utils": "^3.25.0",
|
|
40
|
+
"@react-spectrum/utils": "^3.11.8",
|
|
41
|
+
"@react-types/shared": "^3.24.0",
|
|
42
|
+
"@react-types/statuslight": "^3.3.10",
|
|
43
43
|
"@swc/helpers": "^0.5.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@react-spectrum/provider": "^3.0.0",
|
|
50
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
50
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
|
|
56
56
|
}
|