infinity-ui-elements 1.7.4 → 1.7.5
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.
|
@@ -5,7 +5,11 @@ declare const counterVariants: (props?: ({
|
|
|
5
5
|
color?: "primary" | "positive" | "negative" | "notice" | "neutral" | "information" | null | undefined;
|
|
6
6
|
emphasis?: "subtle" | "intense" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
-
|
|
8
|
+
type CounterVariantProps = VariantProps<typeof counterVariants>;
|
|
9
|
+
export type CounterSize = NonNullable<CounterVariantProps["size"]>;
|
|
10
|
+
export type CounterColor = NonNullable<CounterVariantProps["color"]>;
|
|
11
|
+
export type CounterEmphasis = NonNullable<CounterVariantProps["emphasis"]>;
|
|
12
|
+
export interface CounterProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
9
13
|
/**
|
|
10
14
|
* The numerical value to display
|
|
11
15
|
*/
|
|
@@ -18,6 +22,18 @@ export interface CounterProps extends Omit<React.HTMLAttributes<HTMLSpanElement>
|
|
|
18
22
|
* Custom class name for the counter
|
|
19
23
|
*/
|
|
20
24
|
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Size of the counter
|
|
27
|
+
*/
|
|
28
|
+
size?: CounterSize;
|
|
29
|
+
/**
|
|
30
|
+
* Color variant of the counter
|
|
31
|
+
*/
|
|
32
|
+
color?: CounterColor;
|
|
33
|
+
/**
|
|
34
|
+
* Visual emphasis level
|
|
35
|
+
*/
|
|
36
|
+
emphasis?: CounterEmphasis;
|
|
21
37
|
}
|
|
22
38
|
declare const Counter: React.ForwardRefExoticComponent<CounterProps & React.RefAttributes<HTMLSpanElement>>;
|
|
23
39
|
export { Counter, counterVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Counter.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/Counter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,eAAe;;;;mFAiHpB,CAAC;AAEF,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Counter.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/Counter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,eAAe;;;;mFAiHpB,CAAC;AAEF,KAAK,mBAAmB,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;AACrE,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;AAE3E,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC5D;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED,QAAA,MAAM,OAAO,sFAsCZ,CAAC;AAIF,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC"}
|