@mediaradar/design-components 0.11.0 → 0.12.0
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/index.cjs +522 -439
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +74 -2
- package/dist/index.d.ts +74 -2
- package/dist/index.js +381 -299
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/scripts/tailwind-coverage.mjs +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediaradar/design-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"check:token-compat": "node scripts/check-token-compat.mjs"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@mediaradar/design-tokens": ">=2.
|
|
33
|
+
"@mediaradar/design-tokens": ">=2.6.0",
|
|
34
34
|
"react": "^18.0.0 || ^19.0.0",
|
|
35
35
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
36
36
|
},
|
|
@@ -21,6 +21,17 @@ const CANDIDATE_RE = /^(?:[a-z][a-zA-Z0-9]*:)*[a-z][a-zA-Z0-9]*-(?:\[[^\]\s"'<>]
|
|
|
21
21
|
// a locale tag, an SVG attribute value, an event name.
|
|
22
22
|
const KNOWN_NON_CLASS_RE = /^(aria|data)-/;
|
|
23
23
|
const KNOWN_NON_CLASS_EXACT = new Set([
|
|
24
|
+
// Not classes, but they look exactly like them and ship in the bundle as
|
|
25
|
+
// plain strings, so the scanner picks them up and then reports them missing
|
|
26
|
+
// from the CSS -- which they always will be.
|
|
27
|
+
//
|
|
28
|
+
// `font-size` is a tailwind-merge class-GROUP name from cn.ts's
|
|
29
|
+
// extendTailwindMerge config. The box keywords are CSS values, from the
|
|
30
|
+
// background-clip stack that draws Badge's gradient outline.
|
|
31
|
+
"font-size",
|
|
32
|
+
"border-box",
|
|
33
|
+
"padding-box",
|
|
34
|
+
"content-box",
|
|
24
35
|
"lucide-react",
|
|
25
36
|
"class-variance-authority",
|
|
26
37
|
"tailwind-merge",
|