@gamecp/ui 0.1.42 → 0.1.43
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.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2284,39 +2284,39 @@ function Switch({
|
|
|
2284
2284
|
const labelId = label ? `${switchId}-label` : void 0;
|
|
2285
2285
|
const descriptionId = description ? `${switchId}-description` : void 0;
|
|
2286
2286
|
const sizes = {
|
|
2287
|
-
sm: { track: "w-8 h-
|
|
2288
|
-
md: { track: "w-
|
|
2289
|
-
lg: { track: "w-
|
|
2287
|
+
sm: { track: "w-8 h-[18px]", thumb: "w-3.5 h-3.5", translate: "translate-x-[14px]" },
|
|
2288
|
+
md: { track: "w-[44px] h-[24px]", thumb: "w-5 h-5", translate: "translate-x-5" },
|
|
2289
|
+
lg: { track: "w-[56px] h-[32px]", thumb: "w-7 h-7", translate: "translate-x-[24px]" }
|
|
2290
2290
|
};
|
|
2291
2291
|
const variants = {
|
|
2292
2292
|
default: {
|
|
2293
|
-
checked: "bg-primary/
|
|
2294
|
-
unchecked: "bg-muted-foreground/
|
|
2293
|
+
checked: "bg-primary/60",
|
|
2294
|
+
unchecked: "bg-muted-foreground/20",
|
|
2295
2295
|
ring: "focus:ring-primary"
|
|
2296
2296
|
},
|
|
2297
2297
|
success: {
|
|
2298
|
-
checked: "bg-success",
|
|
2299
|
-
unchecked: "bg-muted-foreground/
|
|
2298
|
+
checked: "bg-success/60",
|
|
2299
|
+
unchecked: "bg-muted-foreground/20",
|
|
2300
2300
|
ring: "focus:ring-success"
|
|
2301
2301
|
},
|
|
2302
2302
|
danger: {
|
|
2303
|
-
checked: "bg-destructive",
|
|
2304
|
-
unchecked: "bg-muted-foreground/
|
|
2303
|
+
checked: "bg-destructive/60",
|
|
2304
|
+
unchecked: "bg-muted-foreground/20",
|
|
2305
2305
|
ring: "focus:ring-destructive"
|
|
2306
2306
|
},
|
|
2307
2307
|
warning: {
|
|
2308
|
-
checked: "bg-warning",
|
|
2309
|
-
unchecked: "bg-muted-foreground/
|
|
2308
|
+
checked: "bg-warning/60",
|
|
2309
|
+
unchecked: "bg-muted-foreground/20",
|
|
2310
2310
|
ring: "focus:ring-warning"
|
|
2311
2311
|
},
|
|
2312
2312
|
info: {
|
|
2313
|
-
checked: "bg-info",
|
|
2314
|
-
unchecked: "bg-muted-foreground/
|
|
2313
|
+
checked: "bg-info/60",
|
|
2314
|
+
unchecked: "bg-muted-foreground/20",
|
|
2315
2315
|
ring: "focus:ring-info"
|
|
2316
2316
|
},
|
|
2317
2317
|
embedded: {
|
|
2318
|
-
checked: "bg-success",
|
|
2319
|
-
unchecked: "bg-muted-foreground/
|
|
2318
|
+
checked: "bg-success/60",
|
|
2319
|
+
unchecked: "bg-muted-foreground/20",
|
|
2320
2320
|
ring: "focus:ring-success"
|
|
2321
2321
|
}
|
|
2322
2322
|
};
|