@axis-ds/ui-react 1.2.0 → 1.3.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/dist/accordion/index.js +9 -1
- package/dist/accordion/index.mjs +2 -2
- package/dist/alert/index.js +17 -6
- package/dist/alert/index.mjs +2 -2
- package/dist/avatar/index.d.mts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/index.js +9 -1
- package/dist/avatar/index.mjs +2 -2
- package/dist/badge/index.js +10 -2
- package/dist/badge/index.mjs +2 -2
- package/dist/breadcrumb/index.js +9 -1
- package/dist/breadcrumb/index.mjs +2 -2
- package/dist/button/index.d.mts +2 -2
- package/dist/button/index.d.ts +2 -2
- package/dist/button/index.js +9 -1
- package/dist/button/index.mjs +2 -2
- package/dist/card/index.js +10 -2
- package/dist/card/index.mjs +2 -2
- package/dist/checkbox/index.js +11 -3
- package/dist/checkbox/index.mjs +2 -2
- package/dist/{chunk-WVWKKHBP.mjs → chunk-22MWNPDF.mjs} +2 -2
- package/dist/{chunk-6TRDXC4W.mjs → chunk-2OEPKE4D.mjs} +1 -1
- package/dist/{chunk-ECF2JRI5.mjs → chunk-2XNUJNTG.mjs} +1 -1
- package/dist/{chunk-XHILRI24.mjs → chunk-4I2F2NLP.mjs} +1 -1
- package/dist/{chunk-ZU6FMFB5.mjs → chunk-4PT43LON.mjs} +2 -2
- package/dist/{chunk-SLQ756Q7.mjs → chunk-5NWFAQBM.mjs} +1 -1
- package/dist/{chunk-HQB5TO4N.mjs → chunk-5Z2R3IHJ.mjs} +4 -4
- package/dist/{chunk-YKZAU3UV.mjs → chunk-AY4B3RRN.mjs} +1 -1
- package/dist/{chunk-O5SM54HW.mjs → chunk-C5O47K7L.mjs} +2 -2
- package/dist/{chunk-S7LWOK76.mjs → chunk-CNU6645Y.mjs} +2 -2
- package/dist/{chunk-IXLVGZWU.mjs → chunk-CY72AGI2.mjs} +2 -2
- package/dist/{chunk-FMXB7UCT.mjs → chunk-DRFCNDVQ.mjs} +1 -1
- package/dist/{chunk-3H7DF7QZ.mjs → chunk-F2WSIT7F.mjs} +3 -3
- package/dist/{chunk-5PIG7LWJ.mjs → chunk-FZFREHAE.mjs} +3 -3
- package/dist/{chunk-YVJ7BL4T.mjs → chunk-HKYKDQ6C.mjs} +5 -5
- package/dist/{chunk-SCH6SFLB.mjs → chunk-IS7NER3O.mjs} +1 -1
- package/dist/{chunk-AJERK2UH.mjs → chunk-MOBW7BKD.mjs} +3 -3
- package/dist/{chunk-4AWNSTZH.mjs → chunk-OQGMQL2A.mjs} +1 -1
- package/dist/{chunk-4JQWQF3H.mjs → chunk-PJX5UF3Y.mjs} +1 -1
- package/dist/{chunk-MARIIZN7.mjs → chunk-QXQWVRXN.mjs} +1 -1
- package/dist/{chunk-E2C7WDLA.mjs → chunk-RFB4IABR.mjs} +1 -1
- package/dist/{chunk-NEZK6NO5.mjs → chunk-SO2QSRGV.mjs} +1 -1
- package/dist/{chunk-Q3KALTWT.mjs → chunk-TA62Q7YX.mjs} +2 -2
- package/dist/{chunk-JM45JPSK.mjs → chunk-TB33GTWS.mjs} +2 -2
- package/dist/{chunk-KAIB45YN.mjs → chunk-YI5OZRUB.mjs} +1 -1
- package/dist/{chunk-SR3JZW6T.mjs → chunk-YZDRNV46.mjs} +3 -3
- package/dist/{chunk-TD5OLTUB.mjs → chunk-Z4P43F5J.mjs} +9 -6
- package/dist/{chunk-XW4HTSUY.mjs → chunk-Z65ZMFDH.mjs} +2 -2
- package/dist/chunk-ZIF4PLK3.mjs +18 -0
- package/dist/{chunk-AEBHTW7E.mjs → chunk-ZW6GY5PO.mjs} +1 -1
- package/dist/command/index.d.mts +7 -7
- package/dist/command/index.d.ts +7 -7
- package/dist/command/index.js +10 -2
- package/dist/command/index.mjs +2 -2
- package/dist/dialog/index.js +10 -2
- package/dist/dialog/index.mjs +2 -2
- package/dist/dropdown-menu/index.js +11 -3
- package/dist/dropdown-menu/index.mjs +2 -2
- package/dist/index.js +40 -29
- package/dist/index.mjs +30 -30
- package/dist/input/index.js +9 -1
- package/dist/input/index.mjs +2 -2
- package/dist/label/index.js +9 -1
- package/dist/label/index.mjs +2 -2
- package/dist/popover/index.js +10 -2
- package/dist/popover/index.mjs +2 -2
- package/dist/progress/index.d.mts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/index.js +13 -5
- package/dist/progress/index.mjs +2 -2
- package/dist/radio-group/index.js +11 -3
- package/dist/radio-group/index.mjs +2 -2
- package/dist/scroll-area/index.js +9 -1
- package/dist/scroll-area/index.mjs +2 -2
- package/dist/select/index.js +9 -1
- package/dist/select/index.mjs +2 -2
- package/dist/separator/index.js +9 -1
- package/dist/separator/index.mjs +2 -2
- package/dist/sheet/index.d.mts +1 -1
- package/dist/sheet/index.d.ts +1 -1
- package/dist/sheet/index.js +11 -3
- package/dist/sheet/index.mjs +2 -2
- package/dist/skeleton/index.js +9 -1
- package/dist/skeleton/index.mjs +2 -2
- package/dist/slider/index.js +10 -2
- package/dist/slider/index.mjs +2 -2
- package/dist/switch/index.js +10 -2
- package/dist/switch/index.mjs +2 -2
- package/dist/table/index.js +9 -1
- package/dist/table/index.mjs +2 -2
- package/dist/tabs/index.js +9 -1
- package/dist/tabs/index.mjs +2 -2
- package/dist/textarea/index.js +12 -4
- package/dist/textarea/index.mjs +2 -2
- package/dist/toast/index.js +9 -1
- package/dist/toast/index.mjs +2 -2
- package/dist/toggle/index.d.mts +2 -2
- package/dist/toggle/index.d.ts +2 -2
- package/dist/toggle/index.js +10 -2
- package/dist/toggle/index.mjs +2 -2
- package/dist/tooltip/index.js +9 -1
- package/dist/tooltip/index.mjs +2 -2
- package/package.json +4 -3
- package/dist/chunk-PJO7WJ4G.mjs +0 -10
package/dist/accordion/index.js
CHANGED
|
@@ -42,8 +42,16 @@ var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
|
42
42
|
// src/utils.ts
|
|
43
43
|
var import_clsx = require("clsx");
|
|
44
44
|
var import_tailwind_merge = require("tailwind-merge");
|
|
45
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
46
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
47
|
+
extend: {
|
|
48
|
+
classGroups: {
|
|
49
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
45
53
|
function cn(...inputs) {
|
|
46
|
-
return
|
|
54
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
// src/accordion/index.tsx
|
package/dist/accordion/index.mjs
CHANGED
package/dist/alert/index.js
CHANGED
|
@@ -42,8 +42,16 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
42
42
|
// src/utils.ts
|
|
43
43
|
var import_clsx = require("clsx");
|
|
44
44
|
var import_tailwind_merge = require("tailwind-merge");
|
|
45
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
46
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
47
|
+
extend: {
|
|
48
|
+
classGroups: {
|
|
49
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
45
53
|
function cn(...inputs) {
|
|
46
|
-
return
|
|
54
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
// src/alert/index.tsx
|
|
@@ -51,13 +59,16 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
51
59
|
var alertVariants = (0, import_class_variance_authority.cva)(
|
|
52
60
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-current",
|
|
53
61
|
{
|
|
62
|
+
// 아이콘은 기본 클래스 [&>svg]:text-current로 변형의 글자색(text-*)을 따른다.
|
|
63
|
+
// 라이트 icon-success(#22C55E) · icon-warning(#EAB308)은 상태 배경 대비가 2.18:1 · 1.85:1로
|
|
64
|
+
// 비텍스트 기준 3:1에 못 미치므로 아이콘 색에 쓰지 않는다(글자색은 4.76:1 이상).
|
|
54
65
|
variants: {
|
|
55
66
|
variant: {
|
|
56
|
-
default: "bg-[var(--axis-surface-
|
|
57
|
-
info: "bg-[var(--axis-
|
|
58
|
-
success: "bg-[var(--axis-
|
|
59
|
-
warning: "bg-[var(--axis-
|
|
60
|
-
destructive: "bg-[var(--axis-
|
|
67
|
+
default: "bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)] border-[var(--axis-border-default)]",
|
|
68
|
+
info: "bg-[var(--axis-surface-info)] text-[var(--axis-text-info)] border-[var(--axis-border-info)]",
|
|
69
|
+
success: "bg-[var(--axis-surface-success)] text-[var(--axis-text-success)] border-[var(--axis-border-success)]",
|
|
70
|
+
warning: "bg-[var(--axis-surface-warning)] text-[var(--axis-text-warning)] border-[var(--axis-border-warning)]",
|
|
71
|
+
destructive: "bg-[var(--axis-surface-error)] text-[var(--axis-text-error)] border-[var(--axis-border-error)]"
|
|
61
72
|
}
|
|
62
73
|
},
|
|
63
74
|
defaultVariants: {
|
package/dist/alert/index.mjs
CHANGED
package/dist/avatar/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const avatarVariants: (props?: ({
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
/**
|
|
9
9
|
* Avatar 컴포넌트 Props
|
package/dist/avatar/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const avatarVariants: (props?: ({
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
/**
|
|
9
9
|
* Avatar 컴포넌트 Props
|
package/dist/avatar/index.js
CHANGED
|
@@ -40,8 +40,16 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
40
40
|
// src/utils.ts
|
|
41
41
|
var import_clsx = require("clsx");
|
|
42
42
|
var import_tailwind_merge = require("tailwind-merge");
|
|
43
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
44
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
45
|
+
extend: {
|
|
46
|
+
classGroups: {
|
|
47
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
43
51
|
function cn(...inputs) {
|
|
44
|
-
return
|
|
52
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
45
53
|
}
|
|
46
54
|
|
|
47
55
|
// src/avatar/index.tsx
|
package/dist/avatar/index.mjs
CHANGED
package/dist/badge/index.js
CHANGED
|
@@ -40,8 +40,16 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
40
40
|
// src/utils.ts
|
|
41
41
|
var import_clsx = require("clsx");
|
|
42
42
|
var import_tailwind_merge = require("tailwind-merge");
|
|
43
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
44
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
45
|
+
extend: {
|
|
46
|
+
classGroups: {
|
|
47
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
43
51
|
function cn(...inputs) {
|
|
44
|
-
return
|
|
52
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
45
53
|
}
|
|
46
54
|
|
|
47
55
|
// src/badge/index.tsx
|
|
@@ -52,7 +60,7 @@ var badgeVariants = (0, import_class_variance_authority.cva)(
|
|
|
52
60
|
variants: {
|
|
53
61
|
variant: {
|
|
54
62
|
default: "border-transparent bg-[var(--axis-badge-default-bg)] text-[var(--axis-badge-default-text)]",
|
|
55
|
-
secondary: "border-transparent bg-[var(--axis-
|
|
63
|
+
secondary: "border-transparent bg-[var(--axis-surface-secondary)] text-[var(--axis-text-secondary)]",
|
|
56
64
|
destructive: "border-transparent bg-[var(--axis-badge-error-bg)] text-[var(--axis-badge-error-text)]",
|
|
57
65
|
success: "border-transparent bg-[var(--axis-badge-success-bg)] text-[var(--axis-badge-success-text)]",
|
|
58
66
|
warning: "border-transparent bg-[var(--axis-badge-warning-bg)] text-[var(--axis-badge-warning-text)]",
|
package/dist/badge/index.mjs
CHANGED
package/dist/breadcrumb/index.js
CHANGED
|
@@ -45,8 +45,16 @@ var import_react_slot = require("@radix-ui/react-slot");
|
|
|
45
45
|
// src/utils.ts
|
|
46
46
|
var import_clsx = require("clsx");
|
|
47
47
|
var import_tailwind_merge = require("tailwind-merge");
|
|
48
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
49
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
50
|
+
extend: {
|
|
51
|
+
classGroups: {
|
|
52
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
48
56
|
function cn(...inputs) {
|
|
49
|
-
return
|
|
57
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
// src/breadcrumb/index.tsx
|
package/dist/button/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
/**
|
|
10
10
|
* Button 컴포넌트 Props
|
package/dist/button/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
/**
|
|
10
10
|
* Button 컴포넌트 Props
|
package/dist/button/index.js
CHANGED
|
@@ -41,8 +41,16 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
41
41
|
// src/utils.ts
|
|
42
42
|
var import_clsx = require("clsx");
|
|
43
43
|
var import_tailwind_merge = require("tailwind-merge");
|
|
44
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
45
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
46
|
+
extend: {
|
|
47
|
+
classGroups: {
|
|
48
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
44
52
|
function cn(...inputs) {
|
|
45
|
-
return
|
|
53
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
// src/button/index.tsx
|
package/dist/button/index.mjs
CHANGED
package/dist/card/index.js
CHANGED
|
@@ -43,8 +43,16 @@ var React = __toESM(require("react"));
|
|
|
43
43
|
// src/utils.ts
|
|
44
44
|
var import_clsx = require("clsx");
|
|
45
45
|
var import_tailwind_merge = require("tailwind-merge");
|
|
46
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
47
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
48
|
+
extend: {
|
|
49
|
+
classGroups: {
|
|
50
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
46
54
|
function cn(...inputs) {
|
|
47
|
-
return
|
|
55
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
48
56
|
}
|
|
49
57
|
|
|
50
58
|
// src/card/index.tsx
|
|
@@ -55,7 +63,7 @@ var Card = React.forwardRef(
|
|
|
55
63
|
{
|
|
56
64
|
ref,
|
|
57
65
|
className: cn(
|
|
58
|
-
"rounded-lg border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-
|
|
66
|
+
"rounded-lg border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-[shadow:var(--axis-card-shadow)]",
|
|
59
67
|
className
|
|
60
68
|
),
|
|
61
69
|
...props
|
package/dist/card/index.mjs
CHANGED
package/dist/checkbox/index.js
CHANGED
|
@@ -39,8 +39,16 @@ var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
|
39
39
|
// src/utils.ts
|
|
40
40
|
var import_clsx = require("clsx");
|
|
41
41
|
var import_tailwind_merge = require("tailwind-merge");
|
|
42
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
43
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
44
|
+
extend: {
|
|
45
|
+
classGroups: {
|
|
46
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
42
50
|
function cn(...inputs) {
|
|
43
|
-
return
|
|
51
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
44
52
|
}
|
|
45
53
|
|
|
46
54
|
// src/checkbox/index.tsx
|
|
@@ -51,8 +59,8 @@ var Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
51
59
|
ref,
|
|
52
60
|
className: cn(
|
|
53
61
|
"peer h-4 w-4 shrink-0 rounded-sm border border-[var(--axis-border-default)]",
|
|
54
|
-
"ring-offset-[var(--axis-surface-
|
|
55
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
62
|
+
"ring-offset-[var(--axis-surface-default)]",
|
|
63
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
|
|
56
64
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
57
65
|
"data-[state=checked]:bg-[var(--axis-interactive-primary)] data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-white",
|
|
58
66
|
className
|
package/dist/checkbox/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/badge/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -12,7 +12,7 @@ var badgeVariants = cva(
|
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
14
14
|
default: "border-transparent bg-[var(--axis-badge-default-bg)] text-[var(--axis-badge-default-text)]",
|
|
15
|
-
secondary: "border-transparent bg-[var(--axis-
|
|
15
|
+
secondary: "border-transparent bg-[var(--axis-surface-secondary)] text-[var(--axis-text-secondary)]",
|
|
16
16
|
destructive: "border-transparent bg-[var(--axis-badge-error-bg)] text-[var(--axis-badge-error-text)]",
|
|
17
17
|
success: "border-transparent bg-[var(--axis-badge-success-bg)] text-[var(--axis-badge-success-text)]",
|
|
18
18
|
warning: "border-transparent bg-[var(--axis-badge-warning-bg)] text-[var(--axis-badge-warning-text)]",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/popover/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -15,7 +15,7 @@ var PopoverContent = React.forwardRef(({ className, align = "center", sideOffset
|
|
|
15
15
|
align,
|
|
16
16
|
sideOffset,
|
|
17
17
|
className: cn(
|
|
18
|
-
"z-50 w-72 rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
18
|
+
"z-50 w-72 rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] p-4 text-[var(--axis-text-primary)] shadow-md outline-none",
|
|
19
19
|
"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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
20
20
|
className
|
|
21
21
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/textarea/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -9,11 +9,11 @@ var Textarea = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
9
9
|
"textarea",
|
|
10
10
|
{
|
|
11
11
|
className: cn(
|
|
12
|
-
"flex min-h-[80px] w-full rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
12
|
+
"flex min-h-[80px] w-full rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] px-3 py-2 text-sm",
|
|
13
13
|
"text-[var(--axis-text-primary)]",
|
|
14
|
-
"ring-offset-[var(--axis-surface-
|
|
14
|
+
"ring-offset-[var(--axis-surface-default)]",
|
|
15
15
|
"placeholder:text-[var(--axis-text-tertiary)]",
|
|
16
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
16
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
|
|
17
17
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
18
18
|
className
|
|
19
19
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/card/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -11,7 +11,7 @@ var Card = React.forwardRef(
|
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
className: cn(
|
|
14
|
-
"rounded-lg border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-
|
|
14
|
+
"rounded-lg border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-[shadow:var(--axis-card-shadow)]",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
17
17
|
...props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/slider/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -28,7 +28,7 @@ var Slider = React.forwardRef(
|
|
|
28
28
|
{
|
|
29
29
|
"aria-label": ariaLabel,
|
|
30
30
|
"aria-labelledby": ariaLabelledby,
|
|
31
|
-
className: "block h-5 w-5 rounded-full border-2 border-[var(--axis-interactive-primary)] bg-[var(--axis-surface-
|
|
31
|
+
className: "block h-5 w-5 rounded-full border-2 border-[var(--axis-interactive-primary)] bg-[var(--axis-surface-default)] ring-offset-[var(--axis-surface-default)] transition-colors 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"
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/dialog/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -29,7 +29,7 @@ var DialogContent = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
29
29
|
{
|
|
30
30
|
ref,
|
|
31
31
|
className: cn(
|
|
32
|
-
"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-lg duration-200",
|
|
32
|
+
"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",
|
|
33
33
|
"bg-[var(--axis-dialog-content-bg)] border-[var(--axis-dialog-content-border)]",
|
|
34
34
|
"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%]",
|
|
35
35
|
"sm:rounded-lg",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/radio-group/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -21,8 +21,8 @@ var RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
21
21
|
ref,
|
|
22
22
|
className: cn(
|
|
23
23
|
"aspect-square h-4 w-4 rounded-full border border-[var(--axis-border-default)]",
|
|
24
|
-
"ring-offset-[var(--axis-surface-
|
|
25
|
-
"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
24
|
+
"ring-offset-[var(--axis-surface-default)]",
|
|
25
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
|
|
26
26
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
27
27
|
"data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-[var(--axis-interactive-primary)]",
|
|
28
28
|
className
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/sheet/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -24,7 +24,7 @@ var SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
24
24
|
));
|
|
25
25
|
SheetOverlay.displayName = "SheetOverlay";
|
|
26
26
|
var sheetVariants = cva(
|
|
27
|
-
"fixed z-50 gap-4 bg-[var(--axis-surface-
|
|
27
|
+
"fixed z-50 gap-4 bg-[var(--axis-surface-default)] border-[var(--axis-border-default)] p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
28
28
|
{
|
|
29
29
|
variants: {
|
|
30
30
|
side: {
|
|
@@ -48,7 +48,7 @@ var SheetContent = React.forwardRef(({ side = "right", className, children, ...p
|
|
|
48
48
|
className: cn(sheetVariants({ side }), className),
|
|
49
49
|
...props,
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-[var(--axis-surface-
|
|
51
|
+
/* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-[var(--axis-surface-default)] transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--axis-border-focus)] focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
52
52
|
/* @__PURE__ */ jsxs(
|
|
53
53
|
"svg",
|
|
54
54
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/progress/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -26,10 +26,10 @@ var progressIndicatorVariants = cva(
|
|
|
26
26
|
{
|
|
27
27
|
variants: {
|
|
28
28
|
variant: {
|
|
29
|
-
default: "bg-[var(--axis-brand
|
|
30
|
-
success: "bg-[var(--axis-green-500)]",
|
|
31
|
-
warning: "bg-[var(--axis-yellow-500)]",
|
|
32
|
-
destructive: "bg-[var(--axis-red-500)]"
|
|
29
|
+
default: "bg-[var(--axis-surface-brand)]",
|
|
30
|
+
success: "bg-[var(--axis-color-green-500)]",
|
|
31
|
+
warning: "bg-[var(--axis-color-yellow-500)]",
|
|
32
|
+
destructive: "bg-[var(--axis-color-red-500)]"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
defaultVariants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/checkbox/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -12,8 +12,8 @@ var Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
12
12
|
ref,
|
|
13
13
|
className: cn(
|
|
14
14
|
"peer h-4 w-4 shrink-0 rounded-sm border border-[var(--axis-border-default)]",
|
|
15
|
-
"ring-offset-[var(--axis-surface-
|
|
16
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
15
|
+
"ring-offset-[var(--axis-surface-default)]",
|
|
16
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
|
|
17
17
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
18
18
|
"data-[state=checked]:bg-[var(--axis-interactive-primary)] data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-white",
|
|
19
19
|
className
|