omverse-ui 0.1.0 → 0.1.1
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 +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -419,7 +419,7 @@ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttri
|
|
|
419
419
|
*/
|
|
420
420
|
declare const badgeVariants: (props?: ({
|
|
421
421
|
variant?: "filled" | "tonal" | "outlined" | "ghost" | null | undefined;
|
|
422
|
-
color?: "info" | "success" | "default" | "error" | "secondary" | "warning" | null | undefined;
|
|
422
|
+
color?: "info" | "success" | "default" | "error" | "primary" | "secondary" | "warning" | null | undefined;
|
|
423
423
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
424
424
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
425
425
|
type BadgeVariantProps = VariantProps<typeof badgeVariants>;
|
|
@@ -436,8 +436,10 @@ interface BadgeProps extends ComponentPropsWithoutRef<'span'>, BadgeVariantProps
|
|
|
436
436
|
/**
|
|
437
437
|
* Color of the badge.
|
|
438
438
|
* Maps to your design system semantic tokens.
|
|
439
|
+
* `primary` is an explicit alias for the brand primary colour;
|
|
440
|
+
* `default` resolves to the same tokens for backwards compatibility.
|
|
439
441
|
*/
|
|
440
|
-
color?: 'default' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
442
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
441
443
|
/**
|
|
442
444
|
* Size of the badge.
|
|
443
445
|
*/
|
|
@@ -462,7 +464,7 @@ interface BadgeProps extends ComponentPropsWithoutRef<'span'>, BadgeVariantProps
|
|
|
462
464
|
* Badge — a small label for status, counts, and categories.
|
|
463
465
|
*
|
|
464
466
|
* Features beyond M3:
|
|
465
|
-
* - 4 variants ×
|
|
467
|
+
* - 4 variants × 7 colors = 28 combinations
|
|
466
468
|
* - dot mode for minimal indicators
|
|
467
469
|
* - pulse animation for live/active status
|
|
468
470
|
* - count mode with 99+ cap
|
|
@@ -1221,7 +1223,7 @@ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAtt
|
|
|
1221
1223
|
* - primary → brand colored, for promotional hints
|
|
1222
1224
|
*/
|
|
1223
1225
|
declare const tooltipVariants: (props?: ({
|
|
1224
|
-
variant?: "
|
|
1226
|
+
variant?: "primary" | "dark" | "light" | null | undefined;
|
|
1225
1227
|
position?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
1226
1228
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1227
1229
|
type TooltipVariantProps = VariantProps<typeof tooltipVariants>;
|
package/dist/index.d.ts
CHANGED
|
@@ -419,7 +419,7 @@ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttri
|
|
|
419
419
|
*/
|
|
420
420
|
declare const badgeVariants: (props?: ({
|
|
421
421
|
variant?: "filled" | "tonal" | "outlined" | "ghost" | null | undefined;
|
|
422
|
-
color?: "info" | "success" | "default" | "error" | "secondary" | "warning" | null | undefined;
|
|
422
|
+
color?: "info" | "success" | "default" | "error" | "primary" | "secondary" | "warning" | null | undefined;
|
|
423
423
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
424
424
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
425
425
|
type BadgeVariantProps = VariantProps<typeof badgeVariants>;
|
|
@@ -436,8 +436,10 @@ interface BadgeProps extends ComponentPropsWithoutRef<'span'>, BadgeVariantProps
|
|
|
436
436
|
/**
|
|
437
437
|
* Color of the badge.
|
|
438
438
|
* Maps to your design system semantic tokens.
|
|
439
|
+
* `primary` is an explicit alias for the brand primary colour;
|
|
440
|
+
* `default` resolves to the same tokens for backwards compatibility.
|
|
439
441
|
*/
|
|
440
|
-
color?: 'default' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
442
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
441
443
|
/**
|
|
442
444
|
* Size of the badge.
|
|
443
445
|
*/
|
|
@@ -462,7 +464,7 @@ interface BadgeProps extends ComponentPropsWithoutRef<'span'>, BadgeVariantProps
|
|
|
462
464
|
* Badge — a small label for status, counts, and categories.
|
|
463
465
|
*
|
|
464
466
|
* Features beyond M3:
|
|
465
|
-
* - 4 variants ×
|
|
467
|
+
* - 4 variants × 7 colors = 28 combinations
|
|
466
468
|
* - dot mode for minimal indicators
|
|
467
469
|
* - pulse animation for live/active status
|
|
468
470
|
* - count mode with 99+ cap
|
|
@@ -1221,7 +1223,7 @@ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAtt
|
|
|
1221
1223
|
* - primary → brand colored, for promotional hints
|
|
1222
1224
|
*/
|
|
1223
1225
|
declare const tooltipVariants: (props?: ({
|
|
1224
|
-
variant?: "
|
|
1226
|
+
variant?: "primary" | "dark" | "light" | null | undefined;
|
|
1225
1227
|
position?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
1226
1228
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1227
1229
|
type TooltipVariantProps = VariantProps<typeof tooltipVariants>;
|
package/dist/index.js
CHANGED
|
@@ -974,6 +974,7 @@ var badgeVariants = cva(
|
|
|
974
974
|
},
|
|
975
975
|
color: {
|
|
976
976
|
default: "",
|
|
977
|
+
primary: "",
|
|
977
978
|
secondary: "",
|
|
978
979
|
success: "",
|
|
979
980
|
warning: "",
|
|
@@ -989,6 +990,7 @@ var badgeVariants = cva(
|
|
|
989
990
|
compoundVariants: [
|
|
990
991
|
// Filled + colors
|
|
991
992
|
{ variant: "filled", color: "default", class: "bg-primary text-on-primary" },
|
|
993
|
+
{ variant: "filled", color: "primary", class: "bg-primary text-on-primary" },
|
|
992
994
|
{ variant: "filled", color: "secondary", class: "bg-secondary text-on-secondary" },
|
|
993
995
|
{ variant: "filled", color: "success", class: "bg-success text-on-success" },
|
|
994
996
|
{ variant: "filled", color: "warning", class: "bg-warning text-on-warning" },
|
|
@@ -996,6 +998,7 @@ var badgeVariants = cva(
|
|
|
996
998
|
{ variant: "filled", color: "info", class: "bg-info text-on-info" },
|
|
997
999
|
// Tonal + colors
|
|
998
1000
|
{ variant: "tonal", color: "default", class: "bg-primary-container text-on-primary-container" },
|
|
1001
|
+
{ variant: "tonal", color: "primary", class: "bg-primary-container text-on-primary-container" },
|
|
999
1002
|
{ variant: "tonal", color: "secondary", class: "bg-secondary-container text-on-secondary-container" },
|
|
1000
1003
|
{ variant: "tonal", color: "success", class: "bg-success-container text-on-success-container" },
|
|
1001
1004
|
{ variant: "tonal", color: "warning", class: "bg-warning-container text-on-warning-container" },
|
|
@@ -1003,6 +1006,7 @@ var badgeVariants = cva(
|
|
|
1003
1006
|
{ variant: "tonal", color: "info", class: "bg-info-container text-on-info-container" },
|
|
1004
1007
|
// Outlined + colors
|
|
1005
1008
|
{ variant: "outlined", color: "default", class: "border-primary text-primary" },
|
|
1009
|
+
{ variant: "outlined", color: "primary", class: "border-primary text-primary" },
|
|
1006
1010
|
{ variant: "outlined", color: "secondary", class: "border-secondary text-secondary" },
|
|
1007
1011
|
{ variant: "outlined", color: "success", class: "border-success text-success" },
|
|
1008
1012
|
{ variant: "outlined", color: "warning", class: "border-warning text-warning" },
|
|
@@ -1010,6 +1014,7 @@ var badgeVariants = cva(
|
|
|
1010
1014
|
{ variant: "outlined", color: "info", class: "border-info text-info" },
|
|
1011
1015
|
// Ghost + colors
|
|
1012
1016
|
{ variant: "ghost", color: "default", class: "text-primary" },
|
|
1017
|
+
{ variant: "ghost", color: "primary", class: "text-primary" },
|
|
1013
1018
|
{ variant: "ghost", color: "secondary", class: "text-secondary" },
|
|
1014
1019
|
{ variant: "ghost", color: "success", class: "text-success" },
|
|
1015
1020
|
{ variant: "ghost", color: "warning", class: "text-warning" },
|
|
@@ -1029,6 +1034,7 @@ var dotVariants = cva(
|
|
|
1029
1034
|
variants: {
|
|
1030
1035
|
color: {
|
|
1031
1036
|
default: "bg-primary",
|
|
1037
|
+
primary: "bg-primary",
|
|
1032
1038
|
secondary: "bg-secondary",
|
|
1033
1039
|
success: "bg-success",
|
|
1034
1040
|
warning: "bg-warning",
|
|
@@ -1072,7 +1078,7 @@ var Badge2 = forwardRef(
|
|
|
1072
1078
|
"aria-hidden": "true",
|
|
1073
1079
|
className: cn(
|
|
1074
1080
|
"absolute inset-0 rounded-full animate-ping opacity-75",
|
|
1075
|
-
color === "default" && "bg-primary",
|
|
1081
|
+
(color === "default" || color === "primary") && "bg-primary",
|
|
1076
1082
|
color === "secondary" && "bg-secondary",
|
|
1077
1083
|
color === "success" && "bg-success",
|
|
1078
1084
|
color === "warning" && "bg-warning",
|