@rmwc/badge
Advanced tools
Comparing version 14.2.6 to 14.2.7
{ | ||
"name": "@rmwc/badge", | ||
"version": "14.2.6", | ||
"version": "14.2.7", | ||
"main": "./index.js", | ||
@@ -41,5 +41,5 @@ "types": "./index.d.ts", | ||
"dependencies": { | ||
"@rmwc/base": "workspace:*", | ||
"@rmwc/types": "workspace:*" | ||
"@rmwc/base": "14.2.7", | ||
"@rmwc/types": "14.2.7" | ||
} | ||
} |
@@ -12,3 +12,2 @@ # Badges `RMWC ADDON` | ||
```jsx | ||
@@ -30,7 +29,3 @@ <Badge align="inline" /> | ||
<Badge style={{ background: 'hotpink' }} align="inline" /> | ||
<Badge | ||
theme={['secondaryBg', 'onSecondary']} | ||
align="inline" | ||
label="Theme" | ||
/> | ||
<Badge theme={['secondaryBg', 'onSecondary']} align="inline" label="Theme" /> | ||
</> | ||
@@ -53,7 +48,3 @@ ``` | ||
<BadgeAnchor> | ||
<Button | ||
raised | ||
label="Button" | ||
theme={['secondaryBg', 'onSecondary']} | ||
/> | ||
<Button raised label="Button" theme={['secondaryBg', 'onSecondary']} /> | ||
<Badge style={{ background: 'hotpink' }} label="Hello" /> | ||
@@ -74,7 +65,3 @@ </BadgeAnchor> | ||
<BadgeAnchor> | ||
<Avatar | ||
src="images/avatars/ironman.png" | ||
size="large" | ||
name="Tony Stark" | ||
/> | ||
<Avatar src="images/avatars/ironman.png" size="large" name="Tony Stark" /> | ||
<Badge inset="5px" /> | ||
@@ -149,2 +136,3 @@ </BadgeAnchor> | ||
## Badge | ||
A Badge component for indicating alerts or counts. | ||
@@ -154,14 +142,11 @@ | ||
| Name | Type | Description | | ||
|------|------|-------------| | ||
| `align` | `"end" \| "start" \| "inline"` | How to align the badge. | | ||
| `exited` | `boolean` | Animates the badge out of view. When this class is removed, the badge will return to view. | | ||
| `inset` | `string \| number` | A value to inset the badge alignment by, useful for positioning the badge on different shaped components. | | ||
| `label` | `ReactNode` | A label or count for the badge. | | ||
| Name | Type | Description | | ||
| -------- | ------------------------------ | --------------------------------------------------------------------------------------------------------- | | ||
| `align` | `"end" \| "start" \| "inline"` | How to align the badge. | | ||
| `exited` | `boolean` | Animates the badge out of view. When this class is removed, the badge will return to view. | | ||
| `inset` | `string \| number` | A value to inset the badge alignment by, useful for positioning the badge on different shaped components. | | ||
| `label` | `ReactNode` | A label or count for the badge. | | ||
## BadgeAnchor | ||
## BadgeAnchor | ||
An anchor component for badges. | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
11347
12
249
0
147
1
+ Added@material/dom@14.0.0(transitive)
+ Added@material/feature-targeting@14.0.0(transitive)
+ Added@rmwc/base@14.2.7(transitive)
+ Added@rmwc/types@14.2.7(transitive)
+ Addedclassnames@2.5.1(transitive)
+ Addedhyperform@0.11.0(transitive)
+ Addedmutation-observer@1.0.3(transitive)
+ Addedtslib@2.8.1(transitive)
Updated@rmwc/base@14.2.7
Updated@rmwc/types@14.2.7