@axis-ds/ui-react 1.6.2 → 1.7.0
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/README.md +1 -1
- package/dist/button/index.js +5 -5
- package/dist/button/index.mjs +5 -5
- package/dist/card/index.js +1 -1
- package/dist/card/index.mjs +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.mjs +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/progress/index.js +3 -2
- package/dist/progress/index.mjs +3 -2
- package/dist/select/index.js +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/skeleton/index.d.mts +4 -1
- package/dist/skeleton/index.d.ts +4 -1
- package/dist/skeleton/index.js +1 -1
- package/dist/skeleton/index.mjs +1 -1
- package/dist/table/index.js +2 -2
- package/dist/table/index.mjs +2 -2
- package/dist/toggle/index.js +4 -4
- package/dist/toggle/index.mjs +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ content: [
|
|
|
56
56
|
| 4 | `tw-animate-css` | 전역 CSS 의 `@import "tailwindcss";` 바로 다음 줄에 `@import "tw-animate-css";` |
|
|
57
57
|
| 3 | `tailwindcss-animate` | `tailwind.config` 의 `plugins: [require("tailwindcss-animate")]` |
|
|
58
58
|
|
|
59
|
-
- 움직임 줄이기(`prefers-reduced-motion: reduce`) 설정에서는
|
|
59
|
+
- 움직임 줄이기(`prefers-reduced-motion: reduce`) 설정에서는 열고 닫는 애니메이션(Dialog · Sheet · Popover · Select · DropdownMenu · Tooltip · Toast)과 Accordion 이 멈춥니다(`motion-reduce:!animate-none`). 로딩 · 진행 표시(Progress 불확정 · Skeleton, `@axis-ds/agentic-ui` 의 스피너 · 실행 중 표시)는 멈추지 않고 기본보다 2~3배 느리게 움직여 처리 중임을 계속 알립니다(`motion-reduce:![animation-duration:...]`, 예: Progress 불확정 1.5s → 4s).
|
|
60
60
|
|
|
61
61
|
## 사용법
|
|
62
62
|
|
package/dist/button/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var import_react_slot = require("@radix-ui/react-slot");
|
|
|
38
38
|
var import_class_variance_authority = require("class-variance-authority");
|
|
39
39
|
var import_utils = require("../utils.js");
|
|
40
40
|
const buttonVariants = (0, import_class_variance_authority.cva)(
|
|
41
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-
|
|
41
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-[var(--axis-radius-control,0.375rem)] text-[length:var(--axis-control-font-size-md,0.875rem)] leading-5 font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
variant: {
|
|
@@ -50,10 +50,10 @@ const buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
50
50
|
link: "text-[var(--axis-text-brand)] underline-offset-4 hover:underline"
|
|
51
51
|
},
|
|
52
52
|
size: {
|
|
53
|
-
sm: "h-
|
|
54
|
-
default: "h-
|
|
55
|
-
lg: "h-
|
|
56
|
-
icon: "h-
|
|
53
|
+
sm: "h-[var(--axis-control-h-sm,2rem)] px-3 text-[length:var(--axis-control-font-size-sm,0.75rem)] leading-4",
|
|
54
|
+
default: "h-[var(--axis-control-h-md,2.5rem)] px-4 py-2",
|
|
55
|
+
lg: "h-[var(--axis-control-h-lg,3rem)] px-6 text-[length:var(--axis-control-font-size-lg,1rem)] leading-6",
|
|
56
|
+
icon: "h-[var(--axis-control-h-md,2.5rem)] w-[var(--axis-control-h-md,2.5rem)]"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
defaultVariants: {
|
package/dist/button/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { cn } from "../utils.mjs";
|
|
6
6
|
const buttonVariants = cva(
|
|
7
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-
|
|
7
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-[var(--axis-radius-control,0.375rem)] text-[length:var(--axis-control-font-size-md,0.875rem)] leading-5 font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -16,10 +16,10 @@ const buttonVariants = cva(
|
|
|
16
16
|
link: "text-[var(--axis-text-brand)] underline-offset-4 hover:underline"
|
|
17
17
|
},
|
|
18
18
|
size: {
|
|
19
|
-
sm: "h-
|
|
20
|
-
default: "h-
|
|
21
|
-
lg: "h-
|
|
22
|
-
icon: "h-
|
|
19
|
+
sm: "h-[var(--axis-control-h-sm,2rem)] px-3 text-[length:var(--axis-control-font-size-sm,0.75rem)] leading-4",
|
|
20
|
+
default: "h-[var(--axis-control-h-md,2.5rem)] px-4 py-2",
|
|
21
|
+
lg: "h-[var(--axis-control-h-lg,3rem)] px-6 text-[length:var(--axis-control-font-size-lg,1rem)] leading-6",
|
|
22
|
+
icon: "h-[var(--axis-control-h-md,2.5rem)] w-[var(--axis-control-h-md,2.5rem)]"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
defaultVariants: {
|
package/dist/card/index.js
CHANGED
|
@@ -45,7 +45,7 @@ const Card = React.forwardRef(
|
|
|
45
45
|
{
|
|
46
46
|
ref,
|
|
47
47
|
className: (0, import_utils.cn)(
|
|
48
|
-
"rounded-
|
|
48
|
+
"rounded-[var(--axis-radius-surface,0.5rem)] border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-[shadow:var(--axis-card-shadow)]",
|
|
49
49
|
className
|
|
50
50
|
),
|
|
51
51
|
...props
|
package/dist/card/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ const Card = React.forwardRef(
|
|
|
7
7
|
{
|
|
8
8
|
ref,
|
|
9
9
|
className: cn(
|
|
10
|
-
"rounded-
|
|
10
|
+
"rounded-[var(--axis-radius-surface,0.5rem)] border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-[shadow:var(--axis-card-shadow)]",
|
|
11
11
|
className
|
|
12
12
|
),
|
|
13
13
|
...props
|
package/dist/dialog/index.js
CHANGED
|
@@ -70,7 +70,7 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
70
70
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-[shadow:var(--axis-shadow-lg)] duration-200",
|
|
71
71
|
"bg-[var(--axis-dialog-content-bg)] border-[var(--axis-dialog-content-border)]",
|
|
72
72
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] motion-reduce:!animate-none",
|
|
73
|
-
"sm:rounded-
|
|
73
|
+
"sm:rounded-[var(--axis-radius-surface,0.5rem)]",
|
|
74
74
|
className
|
|
75
75
|
),
|
|
76
76
|
...props,
|
package/dist/dialog/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
28
28
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-[shadow:var(--axis-shadow-lg)] duration-200",
|
|
29
29
|
"bg-[var(--axis-dialog-content-bg)] border-[var(--axis-dialog-content-border)]",
|
|
30
30
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] motion-reduce:!animate-none",
|
|
31
|
-
"sm:rounded-
|
|
31
|
+
"sm:rounded-[var(--axis-radius-surface,0.5rem)]",
|
|
32
32
|
className
|
|
33
33
|
),
|
|
34
34
|
...props,
|
package/dist/input/index.js
CHANGED
|
@@ -41,7 +41,7 @@ const Input = React.forwardRef(
|
|
|
41
41
|
{
|
|
42
42
|
type,
|
|
43
43
|
className: (0, import_utils.cn)(
|
|
44
|
-
"flex h-
|
|
44
|
+
"flex h-[var(--axis-field-h,2.5rem)] w-full rounded-[var(--axis-radius-field,0.375rem)] border px-3 py-2 text-[length:var(--axis-control-font-size-md,0.875rem)] leading-5 transition-colors",
|
|
45
45
|
"bg-[var(--axis-input-bg-default)] text-[var(--axis-input-text-default)]",
|
|
46
46
|
"border-[var(--axis-input-border-default)]",
|
|
47
47
|
"placeholder:text-[var(--axis-input-text-placeholder)]",
|
package/dist/input/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const Input = React.forwardRef(
|
|
|
8
8
|
{
|
|
9
9
|
type,
|
|
10
10
|
className: cn(
|
|
11
|
-
"flex h-
|
|
11
|
+
"flex h-[var(--axis-field-h,2.5rem)] w-full rounded-[var(--axis-radius-field,0.375rem)] border px-3 py-2 text-[length:var(--axis-control-font-size-md,0.875rem)] leading-5 transition-colors",
|
|
12
12
|
"bg-[var(--axis-input-bg-default)] text-[var(--axis-input-text-default)]",
|
|
13
13
|
"border-[var(--axis-input-border-default)]",
|
|
14
14
|
"placeholder:text-[var(--axis-input-text-placeholder)]",
|
package/dist/progress/index.js
CHANGED
|
@@ -95,10 +95,11 @@ const Progress = React.forwardRef(
|
|
|
95
95
|
className: (0, import_utils.cn)(
|
|
96
96
|
progressIndicatorVariants({ variant }),
|
|
97
97
|
// 불확정: 트랙 폭 1/3 인 표시기가 왕복한다(@axis-ds/tokens 의 progress-indeterminate keyframes).
|
|
98
|
-
// 꽉 찬 막대(100% 완료)로 보이지 않도록 폭을
|
|
98
|
+
// 꽉 찬 막대(100% 완료)로 보이지 않도록 폭을 줄인다. 움직임 줄이기 설정에서는 멈추지 않고
|
|
99
|
+
// 느리게(1.5s → 4s) 왕복해 처리 중임을 계속 알린다(WI-0071).
|
|
99
100
|
// duration-[1500ms]: tailwindcss-animate 는 duration-300 을 animation-duration 에도 적용해 왕복이
|
|
100
101
|
// 0.3s 로 빨라진다(실측). keyframes 의 1.5s 와 같은 값으로 덮는다(progress.test 가 토큰 값과 대조)
|
|
101
|
-
indeterminate && "w-1/3 duration-[1500ms] animate-progress-indeterminate motion-reduce:!
|
|
102
|
+
indeterminate && "w-1/3 duration-[1500ms] animate-progress-indeterminate motion-reduce:![animation-duration:4s]"
|
|
102
103
|
),
|
|
103
104
|
style: indeterminate ? void 0 : { transform: `translateX(-${100 - percentage}%)` }
|
|
104
105
|
}
|
package/dist/progress/index.mjs
CHANGED
|
@@ -60,10 +60,11 @@ const Progress = React.forwardRef(
|
|
|
60
60
|
className: cn(
|
|
61
61
|
progressIndicatorVariants({ variant }),
|
|
62
62
|
// 불확정: 트랙 폭 1/3 인 표시기가 왕복한다(@axis-ds/tokens 의 progress-indeterminate keyframes).
|
|
63
|
-
// 꽉 찬 막대(100% 완료)로 보이지 않도록 폭을
|
|
63
|
+
// 꽉 찬 막대(100% 완료)로 보이지 않도록 폭을 줄인다. 움직임 줄이기 설정에서는 멈추지 않고
|
|
64
|
+
// 느리게(1.5s → 4s) 왕복해 처리 중임을 계속 알린다(WI-0071).
|
|
64
65
|
// duration-[1500ms]: tailwindcss-animate 는 duration-300 을 animation-duration 에도 적용해 왕복이
|
|
65
66
|
// 0.3s 로 빨라진다(실측). keyframes 의 1.5s 와 같은 값으로 덮는다(progress.test 가 토큰 값과 대조)
|
|
66
|
-
indeterminate && "w-1/3 duration-[1500ms] animate-progress-indeterminate motion-reduce:!
|
|
67
|
+
indeterminate && "w-1/3 duration-[1500ms] animate-progress-indeterminate motion-reduce:![animation-duration:4s]"
|
|
67
68
|
),
|
|
68
69
|
style: indeterminate ? void 0 : { transform: `translateX(-${100 - percentage}%)` }
|
|
69
70
|
}
|
package/dist/select/index.js
CHANGED
|
@@ -50,7 +50,7 @@ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
50
50
|
{
|
|
51
51
|
ref,
|
|
52
52
|
className: (0, import_utils.cn)(
|
|
53
|
-
"flex h-
|
|
53
|
+
"flex h-[var(--axis-field-h,2.5rem)] w-full items-center justify-between rounded-[var(--axis-radius-field,0.375rem)] border px-3 py-2 text-sm",
|
|
54
54
|
"bg-[var(--axis-input-bg-default)] border-[var(--axis-input-border-default)]",
|
|
55
55
|
"placeholder:text-[var(--axis-input-text-placeholder)]",
|
|
56
56
|
"hover:border-[var(--axis-input-border-hover)]",
|
package/dist/select/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
10
10
|
{
|
|
11
11
|
ref,
|
|
12
12
|
className: cn(
|
|
13
|
-
"flex h-
|
|
13
|
+
"flex h-[var(--axis-field-h,2.5rem)] w-full items-center justify-between rounded-[var(--axis-radius-field,0.375rem)] border px-3 py-2 text-sm",
|
|
14
14
|
"bg-[var(--axis-input-bg-default)] border-[var(--axis-input-border-default)]",
|
|
15
15
|
"placeholder:text-[var(--axis-input-text-placeholder)]",
|
|
16
16
|
"hover:border-[var(--axis-input-border-hover)]",
|
|
@@ -3,7 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
/** Skeleton 컴포넌트의 Props 인터페이스. HTML div 요소의 모든 속성을 지원한다. */
|
|
4
4
|
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
}
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* 콘텐츠 로딩 상태를 시각적으로 나타내는 스켈레톤 컴포넌트. 펄스 애니메이션이 적용된다.
|
|
8
|
+
* 움직임 줄이기 설정에서는 멈추지 않고 느리게(2s → 5s) 깜박여 로딩 중임을 계속 알린다(WI-0071).
|
|
9
|
+
*/
|
|
7
10
|
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
11
|
|
|
9
12
|
export { Skeleton, type SkeletonProps };
|
package/dist/skeleton/index.d.ts
CHANGED
|
@@ -3,7 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
/** Skeleton 컴포넌트의 Props 인터페이스. HTML div 요소의 모든 속성을 지원한다. */
|
|
4
4
|
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
}
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* 콘텐츠 로딩 상태를 시각적으로 나타내는 스켈레톤 컴포넌트. 펄스 애니메이션이 적용된다.
|
|
8
|
+
* 움직임 줄이기 설정에서는 멈추지 않고 느리게(2s → 5s) 깜박여 로딩 중임을 계속 알린다(WI-0071).
|
|
9
|
+
*/
|
|
7
10
|
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
11
|
|
|
9
12
|
export { Skeleton, type SkeletonProps };
|
package/dist/skeleton/index.js
CHANGED
|
@@ -41,7 +41,7 @@ const Skeleton = React.forwardRef(
|
|
|
41
41
|
{
|
|
42
42
|
ref,
|
|
43
43
|
className: (0, import_utils.cn)(
|
|
44
|
-
"animate-pulse rounded-md bg-[var(--axis-surface-tertiary)] motion-reduce:!
|
|
44
|
+
"animate-pulse rounded-md bg-[var(--axis-surface-tertiary)] motion-reduce:![animation-duration:5s]",
|
|
45
45
|
className
|
|
46
46
|
),
|
|
47
47
|
...props
|
package/dist/skeleton/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const Skeleton = React.forwardRef(
|
|
|
8
8
|
{
|
|
9
9
|
ref,
|
|
10
10
|
className: cn(
|
|
11
|
-
"animate-pulse rounded-md bg-[var(--axis-surface-tertiary)] motion-reduce:!
|
|
11
|
+
"animate-pulse rounded-md bg-[var(--axis-surface-tertiary)] motion-reduce:![animation-duration:5s]",
|
|
12
12
|
className
|
|
13
13
|
),
|
|
14
14
|
...props
|
package/dist/table/index.js
CHANGED
|
@@ -46,7 +46,7 @@ const Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
46
46
|
{
|
|
47
47
|
ref,
|
|
48
48
|
className: (0, import_utils.cn)(
|
|
49
|
-
"w-full caption-bottom text-
|
|
49
|
+
"w-full caption-bottom text-[length:var(--axis-table-font-size,0.875rem)] leading-5 text-[var(--axis-text-primary)]",
|
|
50
50
|
className
|
|
51
51
|
),
|
|
52
52
|
...props
|
|
@@ -102,7 +102,7 @@ const TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
102
102
|
{
|
|
103
103
|
ref,
|
|
104
104
|
className: (0, import_utils.cn)(
|
|
105
|
-
"h-12 px-4 text-left align-middle font-medium text-[var(--axis-text-secondary)]",
|
|
105
|
+
"h-12 px-4 text-left align-middle text-[length:var(--axis-table-head-font-size,0.875rem)] font-medium text-[var(--axis-text-secondary)]",
|
|
106
106
|
"[&:has([role=checkbox])]:pr-0",
|
|
107
107
|
className
|
|
108
108
|
),
|
package/dist/table/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ const Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
6
6
|
{
|
|
7
7
|
ref,
|
|
8
8
|
className: cn(
|
|
9
|
-
"w-full caption-bottom text-
|
|
9
|
+
"w-full caption-bottom text-[length:var(--axis-table-font-size,0.875rem)] leading-5 text-[var(--axis-text-primary)]",
|
|
10
10
|
className
|
|
11
11
|
),
|
|
12
12
|
...props
|
|
@@ -62,7 +62,7 @@ const TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
62
62
|
{
|
|
63
63
|
ref,
|
|
64
64
|
className: cn(
|
|
65
|
-
"h-12 px-4 text-left align-middle font-medium text-[var(--axis-text-secondary)]",
|
|
65
|
+
"h-12 px-4 text-left align-middle text-[length:var(--axis-table-head-font-size,0.875rem)] font-medium text-[var(--axis-text-secondary)]",
|
|
66
66
|
"[&:has([role=checkbox])]:pr-0",
|
|
67
67
|
className
|
|
68
68
|
),
|
package/dist/toggle/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"));
|
|
|
38
38
|
var import_class_variance_authority = require("class-variance-authority");
|
|
39
39
|
var import_utils = require("../utils.js");
|
|
40
40
|
const toggleVariants = (0, import_class_variance_authority.cva)(
|
|
41
|
-
"inline-flex items-center justify-center gap-2 rounded-
|
|
41
|
+
"inline-flex items-center justify-center gap-2 rounded-[var(--axis-radius-control,0.375rem)] text-sm font-medium ring-offset-[var(--axis-surface-default)] transition-colors hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-secondary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-[var(--axis-surface-secondary)] data-[state=on]:text-[var(--axis-text-primary)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
variant: {
|
|
@@ -46,9 +46,9 @@ const toggleVariants = (0, import_class_variance_authority.cva)(
|
|
|
46
46
|
outline: "border border-[var(--axis-border-default)] bg-transparent hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-primary)]"
|
|
47
47
|
},
|
|
48
48
|
size: {
|
|
49
|
-
default: "h-
|
|
50
|
-
sm: "h-
|
|
51
|
-
lg: "h-
|
|
49
|
+
default: "h-[var(--axis-toggle-h-md,2.5rem)] px-3 min-w-[var(--axis-toggle-h-md,2.5rem)]",
|
|
50
|
+
sm: "h-[var(--axis-toggle-h-sm,2.25rem)] px-2.5 min-w-[var(--axis-toggle-h-sm,2.25rem)]",
|
|
51
|
+
lg: "h-[var(--axis-toggle-h-lg,2.75rem)] px-5 min-w-[var(--axis-toggle-h-lg,2.75rem)]"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
defaultVariants: {
|
package/dist/toggle/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { cn } from "../utils.mjs";
|
|
6
6
|
const toggleVariants = cva(
|
|
7
|
-
"inline-flex items-center justify-center gap-2 rounded-
|
|
7
|
+
"inline-flex items-center justify-center gap-2 rounded-[var(--axis-radius-control,0.375rem)] text-sm font-medium ring-offset-[var(--axis-surface-default)] transition-colors hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-secondary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-[var(--axis-surface-secondary)] data-[state=on]:text-[var(--axis-text-primary)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -12,9 +12,9 @@ const toggleVariants = cva(
|
|
|
12
12
|
outline: "border border-[var(--axis-border-default)] bg-transparent hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-primary)]"
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
|
-
default: "h-
|
|
16
|
-
sm: "h-
|
|
17
|
-
lg: "h-
|
|
15
|
+
default: "h-[var(--axis-toggle-h-md,2.5rem)] px-3 min-w-[var(--axis-toggle-h-md,2.5rem)]",
|
|
16
|
+
sm: "h-[var(--axis-toggle-h-sm,2.25rem)] px-2.5 min-w-[var(--axis-toggle-h-sm,2.25rem)]",
|
|
17
|
+
lg: "h-[var(--axis-toggle-h-lg,2.75rem)] px-5 min-w-[var(--axis-toggle-h-lg,2.75rem)]"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axis-ds/ui-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "AXIS Design System - Core React UI Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
"clsx": "^2.1.0",
|
|
303
303
|
"cmdk": "^1.1.1",
|
|
304
304
|
"tailwind-merge": "^2.5.0",
|
|
305
|
-
"@axis-ds/tokens": "1.
|
|
305
|
+
"@axis-ds/tokens": "1.7.0"
|
|
306
306
|
},
|
|
307
307
|
"devDependencies": {
|
|
308
308
|
"@testing-library/jest-dom": "^6.9.1",
|