@react-spectrum/badge 3.1.13-nightly.4623 → 3.1.13
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/Badge.main.js +5 -5
- package/dist/Badge.mjs +5 -5
- package/dist/Badge.module.js +5 -5
- package/package.json +8 -8
package/dist/Badge.main.js
CHANGED
|
@@ -41,21 +41,21 @@ function $f243611f87a6fe61$var$Badge(props, ref) {
|
|
|
41
41
|
...(0, $3aISS$reactariautils.filterDOMProps)(otherProps),
|
|
42
42
|
...styleProps,
|
|
43
43
|
role: "presentation",
|
|
44
|
-
className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))),
|
|
44
|
+
className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))), 'spectrum-Badge', {
|
|
45
45
|
[`spectrum-Badge--${variant}`]: variant
|
|
46
46
|
}, styleProps.className),
|
|
47
47
|
ref: domRef
|
|
48
48
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3aISS$react))).createElement((0, $3aISS$reactspectrumutils.SlotProvider), {
|
|
49
49
|
slots: {
|
|
50
50
|
icon: {
|
|
51
|
-
size:
|
|
52
|
-
UNSAFE_className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))),
|
|
51
|
+
size: 'S',
|
|
52
|
+
UNSAFE_className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))), 'spectrum-Badge-icon')
|
|
53
53
|
},
|
|
54
54
|
text: {
|
|
55
|
-
UNSAFE_className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))),
|
|
55
|
+
UNSAFE_className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))), 'spectrum-Badge-label')
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
}, typeof children ===
|
|
58
|
+
}, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, ($parcel$interopDefault($3aISS$react))).createElement((0, $3aISS$reactspectrumtext.Text), null, children) : children));
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
|
package/dist/Badge.mjs
CHANGED
|
@@ -35,21 +35,21 @@ function $c2a9f60d7159b63f$var$Badge(props, ref) {
|
|
|
35
35
|
...(0, $jtG7a$filterDOMProps)(otherProps),
|
|
36
36
|
...styleProps,
|
|
37
37
|
role: "presentation",
|
|
38
|
-
className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))),
|
|
38
|
+
className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge', {
|
|
39
39
|
[`spectrum-Badge--${variant}`]: variant
|
|
40
40
|
}, styleProps.className),
|
|
41
41
|
ref: domRef
|
|
42
42
|
}, /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$SlotProvider), {
|
|
43
43
|
slots: {
|
|
44
44
|
icon: {
|
|
45
|
-
size:
|
|
46
|
-
UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))),
|
|
45
|
+
size: 'S',
|
|
46
|
+
UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge-icon')
|
|
47
47
|
},
|
|
48
48
|
text: {
|
|
49
|
-
UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))),
|
|
49
|
+
UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge-label')
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
}, typeof children ===
|
|
52
|
+
}, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$Text), null, children) : children));
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
|
package/dist/Badge.module.js
CHANGED
|
@@ -35,21 +35,21 @@ function $c2a9f60d7159b63f$var$Badge(props, ref) {
|
|
|
35
35
|
...(0, $jtG7a$filterDOMProps)(otherProps),
|
|
36
36
|
...styleProps,
|
|
37
37
|
role: "presentation",
|
|
38
|
-
className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))),
|
|
38
|
+
className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge', {
|
|
39
39
|
[`spectrum-Badge--${variant}`]: variant
|
|
40
40
|
}, styleProps.className),
|
|
41
41
|
ref: domRef
|
|
42
42
|
}, /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$SlotProvider), {
|
|
43
43
|
slots: {
|
|
44
44
|
icon: {
|
|
45
|
-
size:
|
|
46
|
-
UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))),
|
|
45
|
+
size: 'S',
|
|
46
|
+
UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge-icon')
|
|
47
47
|
},
|
|
48
48
|
text: {
|
|
49
|
-
UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))),
|
|
49
|
+
UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge-label')
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
}, typeof children ===
|
|
52
|
+
}, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$Text), null, children) : children));
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/badge",
|
|
3
|
-
"version": "3.1.13
|
|
3
|
+
"version": "3.1.13",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/utils": "3.
|
|
40
|
-
"@react-spectrum/text": "3.5.5
|
|
41
|
-
"@react-spectrum/utils": "3.
|
|
42
|
-
"@react-types/badge": "3.1.9
|
|
43
|
-
"@react-types/shared": "3.
|
|
39
|
+
"@react-aria/utils": "^3.24.1",
|
|
40
|
+
"@react-spectrum/text": "^3.5.5",
|
|
41
|
+
"@react-spectrum/utils": "^3.11.7",
|
|
42
|
+
"@react-types/badge": "^3.1.9",
|
|
43
|
+
"@react-types/shared": "^3.23.1",
|
|
44
44
|
"@swc/helpers": "^0.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@adobe/spectrum-css-temp": "3.0.0-
|
|
47
|
+
"@adobe/spectrum-css-temp": "3.0.0-alpha.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
|
|
57
57
|
}
|