@stackshift-ui/badge 7.0.0-beta.1 → 7.0.0-beta.4
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/package.json +7 -7
- package/dist/badge.d.ts +0 -12
- package/dist/badge.js +0 -1
- package/dist/badge.mjs +0 -1
- package/dist/chunk-QPNE64XN.mjs +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/badge",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/typescript-config": "6.0.10",
|
|
33
|
+
"@stackshift-ui/eslint-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"class-variance-authority": "^0.7.1",
|
|
37
37
|
"classnames": "^2.5.1",
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/flex": "7.0.0-beta.
|
|
40
|
-
"@stackshift-ui/
|
|
38
|
+
"@stackshift-ui/system": "7.0.0-beta.4",
|
|
39
|
+
"@stackshift-ui/flex": "7.0.0-beta.4",
|
|
40
|
+
"@stackshift-ui/scripts": "7.0.0-beta.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@stackshift-ui/system": ">=
|
|
43
|
+
"@stackshift-ui/system": ">=7.0.0-beta.4",
|
|
44
44
|
"@types/react": "16.8 - 19",
|
|
45
45
|
"next": "10 - 14",
|
|
46
46
|
"react": "16.8 - 19",
|
package/dist/badge.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
-
}
|
|
8
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare namespace Badge {
|
|
10
|
-
var displayName: string;
|
|
11
|
-
}
|
|
12
|
-
export { Badge, badgeVariants };
|
package/dist/badge.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},b=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!m.call(r,n)&&n!==t&&s(r,n,{get:()=>e[n],enumerable:!(a=u(e,n))||a.enumerable});return r};var v=r=>b(s({},"__esModule",{value:!0}),r);var y={};l(y,{Badge:()=>f,badgeVariants:()=>c});module.exports=v(y);var i=require("class-variance-authority"),o=require("@stackshift-ui/system"),p=require("react/jsx-runtime"),d="Badge",c=(0,i.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function f({className:r,variant:e,...t}){let{[d]:a=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,p.jsx)(a,{className:(0,o.cn)(c({variant:e}),r),...t})}f.displayName=d;0&&(module.exports={Badge,badgeVariants});
|
package/dist/badge.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"./chunk-QPNE64XN.mjs";export{b as Badge,a as badgeVariants};
|
package/dist/chunk-QPNE64XN.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cva as a}from"class-variance-authority";import{cn as s,DefaultComponent as i,useStackShiftUIComponents as d}from"@stackshift-ui/system";import{jsx as p}from"react/jsx-runtime";var e="Badge",c=a("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function f({className:r,variant:t,...o}){let{[e]:n=i}=d();return p(n,{className:s(c({variant:t}),r),...o})}f.displayName=e;export{c as a,f as b};
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./badge";
|
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},b=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!m.call(r,n)&&n!==t&&s(r,n,{get:()=>e[n],enumerable:!(a=u(e,n))||a.enumerable});return r};var v=r=>b(s({},"__esModule",{value:!0}),r);var y={};l(y,{Badge:()=>f,badgeVariants:()=>c});module.exports=v(y);var i=require("class-variance-authority"),o=require("@stackshift-ui/system"),p=require("react/jsx-runtime"),d="Badge",c=(0,i.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function f({className:r,variant:e,...t}){let{[d]:a=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,p.jsx)(a,{className:(0,o.cn)(c({variant:e}),r),...t})}f.displayName=d;0&&(module.exports={Badge,badgeVariants});
|
package/dist/index.mjs
DELETED