@lawkit/ui 0.1.30 → 0.1.31
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.
|
@@ -12,6 +12,28 @@ export declare const root: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
12
12
|
};
|
|
13
13
|
}>;
|
|
14
14
|
export declare const item: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
15
|
+
variant: {
|
|
16
|
+
fill: {
|
|
17
|
+
border: `1px solid var(--${string})`;
|
|
18
|
+
backgroundColor: `var(--${string})`;
|
|
19
|
+
color: `var(--${string})`;
|
|
20
|
+
selectors: {
|
|
21
|
+
"&:hover:not([aria-checked='true'])": {
|
|
22
|
+
backgroundColor: "rgba(33, 81, 236, 0.12)";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
outline: {
|
|
27
|
+
border: `1px solid var(--${string})`;
|
|
28
|
+
backgroundColor: "transparent";
|
|
29
|
+
color: `var(--${string})`;
|
|
30
|
+
selectors: {
|
|
31
|
+
"&:hover:not([aria-checked='true'])": {
|
|
32
|
+
backgroundColor: "rgba(33, 81, 236, 0.12)";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
15
37
|
size: {
|
|
16
38
|
small: {
|
|
17
39
|
height: number;
|
|
@@ -31,11 +53,7 @@ export declare const item: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
31
53
|
false: {};
|
|
32
54
|
};
|
|
33
55
|
active: {
|
|
34
|
-
true: {
|
|
35
|
-
backgroundColor: `var(--${string})`;
|
|
36
|
-
borderColor: `var(--${string})`;
|
|
37
|
-
color: `var(--${string})`;
|
|
38
|
-
};
|
|
56
|
+
true: {};
|
|
39
57
|
false: {};
|
|
40
58
|
};
|
|
41
59
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
export type RadioButtonGroupVariant = "fill" | "outline";
|
|
2
3
|
export interface RadioButtonGroupItem {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
|
@@ -8,9 +9,10 @@ export interface RadioButtonGroupProps {
|
|
|
8
9
|
items: RadioButtonGroupItem[];
|
|
9
10
|
value?: string;
|
|
10
11
|
onChange?: (value: string) => void;
|
|
12
|
+
variant?: RadioButtonGroupVariant;
|
|
11
13
|
size?: "small" | "medium";
|
|
12
14
|
fullWidth?: boolean;
|
|
13
15
|
gap?: number;
|
|
14
16
|
className?: string;
|
|
15
17
|
}
|
|
16
|
-
export declare const RadioButtonGroup: ({ items, value, onChange, size, fullWidth, gap, className, }: RadioButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const RadioButtonGroup: ({ items, value, onChange, variant, size, fullWidth, gap, className, }: RadioButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,7 @@ export type { ButtonProps, ButtonVariant, ButtonColor, ButtonShape, ButtonSize,
|
|
|
5
5
|
export { ButtonGroup } from './components/ButtonGroup';
|
|
6
6
|
export type { ButtonGroupProps, ButtonGroupItem, ButtonGroupVariant, ButtonGroupSize, } from './components/ButtonGroup';
|
|
7
7
|
export { RadioButtonGroup } from './components/RadioButtonGroup';
|
|
8
|
-
export type { RadioButtonGroupProps, RadioButtonGroupItem, } from './components/RadioButtonGroup';
|
|
8
|
+
export type { RadioButtonGroupProps, RadioButtonGroupItem, RadioButtonGroupVariant, } from './components/RadioButtonGroup';
|
|
9
9
|
export { ButtonTab } from './components/ButtonTab';
|
|
10
10
|
export type { ButtonTabProps, ButtonTabItem } from './components/ButtonTab';
|
|
11
11
|
export { Tabs } from './components/Tabs';
|