@lawkit/ui 0.1.30 → 0.1.32

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,52 @@ 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
+ /**
17
+ * fill — inactive: neutral border + canvas bg
18
+ * active: solid primary bg + inverse text
19
+ */
20
+ fill: {
21
+ border: `1px solid var(--${string})`;
22
+ backgroundColor: `var(--${string})`;
23
+ color: `var(--${string})`;
24
+ selectors: {
25
+ "&:hover:not([aria-checked='true'])": {
26
+ backgroundColor: "rgba(33, 81, 236, 0.12)";
27
+ };
28
+ };
29
+ };
30
+ /**
31
+ * outline — inactive: primary border + transparent + primary text
32
+ * active: subtleActive tint + primary border + primary text
33
+ */
34
+ outline: {
35
+ border: `1px solid var(--${string})`;
36
+ backgroundColor: "transparent";
37
+ color: `var(--${string})`;
38
+ selectors: {
39
+ "&:hover:not([aria-checked='true'])": {
40
+ backgroundColor: "rgba(33, 81, 236, 0.12)";
41
+ };
42
+ };
43
+ };
44
+ /**
45
+ * subtle — inactive: neutral border + canvas bg + default text
46
+ * active: primary tint bg + primary border + primary text
47
+ * (Zeplin "Custom Option" 선택 상태와 동일)
48
+ */
49
+ subtle: {
50
+ border: `1px solid var(--${string})`;
51
+ backgroundColor: `var(--${string})`;
52
+ color: `var(--${string})`;
53
+ selectors: {
54
+ "&:hover:not([aria-checked='true'])": {
55
+ backgroundColor: "rgba(33, 81, 236, 0.12)";
56
+ borderColor: `var(--${string})`;
57
+ };
58
+ };
59
+ };
60
+ };
15
61
  size: {
16
62
  small: {
17
63
  height: number;
@@ -31,11 +77,7 @@ export declare const item: import('@vanilla-extract/recipes').RuntimeFn<{
31
77
  false: {};
32
78
  };
33
79
  active: {
34
- true: {
35
- backgroundColor: `var(--${string})`;
36
- borderColor: `var(--${string})`;
37
- color: `var(--${string})`;
38
- };
80
+ true: {};
39
81
  false: {};
40
82
  };
41
83
  }>;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ export type RadioButtonGroupVariant = "fill" | "outline" | "subtle";
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lawkit/ui",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "type": "module",
5
5
  "description": "LDS Design System — React component library with design tokens",
6
6
  "main": "./dist/index.js",