@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/switch/index.mjs
CHANGED
package/dist/table/index.js
CHANGED
|
@@ -45,8 +45,16 @@ var React = __toESM(require("react"));
|
|
|
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/table/index.tsx
|
package/dist/table/index.mjs
CHANGED
package/dist/tabs/index.js
CHANGED
|
@@ -42,8 +42,16 @@ var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
|
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/tabs/index.tsx
|
package/dist/tabs/index.mjs
CHANGED
package/dist/textarea/index.js
CHANGED
|
@@ -38,8 +38,16 @@ var React = __toESM(require("react"));
|
|
|
38
38
|
// src/utils.ts
|
|
39
39
|
var import_clsx = require("clsx");
|
|
40
40
|
var import_tailwind_merge = require("tailwind-merge");
|
|
41
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
42
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
43
|
+
extend: {
|
|
44
|
+
classGroups: {
|
|
45
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
41
49
|
function cn(...inputs) {
|
|
42
|
-
return
|
|
50
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
// src/textarea/index.tsx
|
|
@@ -48,11 +56,11 @@ var Textarea = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
48
56
|
"textarea",
|
|
49
57
|
{
|
|
50
58
|
className: cn(
|
|
51
|
-
"flex min-h-[80px] w-full rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
59
|
+
"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",
|
|
52
60
|
"text-[var(--axis-text-primary)]",
|
|
53
|
-
"ring-offset-[var(--axis-surface-
|
|
61
|
+
"ring-offset-[var(--axis-surface-default)]",
|
|
54
62
|
"placeholder:text-[var(--axis-text-tertiary)]",
|
|
55
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
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
|
className
|
|
58
66
|
),
|
package/dist/textarea/index.mjs
CHANGED
package/dist/toast/index.js
CHANGED
|
@@ -46,8 +46,16 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
46
46
|
// src/utils.ts
|
|
47
47
|
var import_clsx = require("clsx");
|
|
48
48
|
var import_tailwind_merge = require("tailwind-merge");
|
|
49
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
50
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
51
|
+
extend: {
|
|
52
|
+
classGroups: {
|
|
53
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
49
57
|
function cn(...inputs) {
|
|
50
|
-
return
|
|
58
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
51
59
|
}
|
|
52
60
|
|
|
53
61
|
// src/toast/index.tsx
|
package/dist/toast/index.mjs
CHANGED
package/dist/toggle/index.d.mts
CHANGED
|
@@ -5,12 +5,12 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const toggleVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
/** 눌림/해제 상태를 전환하는 토글 버튼 컴포넌트. variant(default, outline)와 size(sm, default, lg) 변형을 지원한다. */
|
|
11
11
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
12
12
|
variant?: "default" | "outline" | null | undefined;
|
|
13
|
-
size?: "
|
|
13
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
|
|
16
16
|
export { Toggle, toggleVariants };
|
package/dist/toggle/index.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const toggleVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
/** 눌림/해제 상태를 전환하는 토글 버튼 컴포넌트. variant(default, outline)와 size(sm, default, lg) 변형을 지원한다. */
|
|
11
11
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
12
12
|
variant?: "default" | "outline" | null | undefined;
|
|
13
|
-
size?: "
|
|
13
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
|
|
16
16
|
export { Toggle, toggleVariants };
|
package/dist/toggle/index.js
CHANGED
|
@@ -41,14 +41,22 @@ 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/toggle/index.tsx
|
|
49
57
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
58
|
var toggleVariants = (0, import_class_variance_authority.cva)(
|
|
51
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-[var(--axis-surface-
|
|
59
|
+
"inline-flex items-center justify-center gap-2 rounded-md 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",
|
|
52
60
|
{
|
|
53
61
|
variants: {
|
|
54
62
|
variant: {
|
package/dist/toggle/index.mjs
CHANGED
package/dist/tooltip/index.js
CHANGED
|
@@ -42,8 +42,16 @@ var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
|
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/tooltip/index.tsx
|
package/dist/tooltip/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axis-ds/ui-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "AXIS Design System - Core React UI Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"clsx": "^2.1.0",
|
|
197
197
|
"cmdk": "^1.1.1",
|
|
198
198
|
"tailwind-merge": "^2.5.0",
|
|
199
|
-
"@axis-ds/tokens": "1.
|
|
199
|
+
"@axis-ds/tokens": "1.3.0"
|
|
200
200
|
},
|
|
201
201
|
"devDependencies": {
|
|
202
202
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"license": "MIT",
|
|
225
225
|
"repository": {
|
|
226
226
|
"type": "git",
|
|
227
|
-
"url": "https://github.com/
|
|
227
|
+
"url": "https://github.com/IDEA-on-Action/AXIS-Design-System.git",
|
|
228
228
|
"directory": "packages/axis-ui-react"
|
|
229
229
|
},
|
|
230
230
|
"homepage": "https://axis.minu.best",
|
|
@@ -232,6 +232,7 @@
|
|
|
232
232
|
"build": "tsup src/index.ts src/*/index.tsx --format cjs,esm --dts --external react && node scripts/sync-exports.mjs",
|
|
233
233
|
"dev": "tsup src/index.ts --format cjs,esm --dts --watch --external react",
|
|
234
234
|
"clean": "rm -rf dist",
|
|
235
|
+
"lint": "eslint .",
|
|
235
236
|
"test": "vitest run",
|
|
236
237
|
"test:coverage": "vitest run --coverage",
|
|
237
238
|
"test:watch": "vitest",
|