@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.
Files changed (104) hide show
  1. package/dist/accordion/index.js +9 -1
  2. package/dist/accordion/index.mjs +2 -2
  3. package/dist/alert/index.js +17 -6
  4. package/dist/alert/index.mjs +2 -2
  5. package/dist/avatar/index.d.mts +1 -1
  6. package/dist/avatar/index.d.ts +1 -1
  7. package/dist/avatar/index.js +9 -1
  8. package/dist/avatar/index.mjs +2 -2
  9. package/dist/badge/index.js +10 -2
  10. package/dist/badge/index.mjs +2 -2
  11. package/dist/breadcrumb/index.js +9 -1
  12. package/dist/breadcrumb/index.mjs +2 -2
  13. package/dist/button/index.d.mts +2 -2
  14. package/dist/button/index.d.ts +2 -2
  15. package/dist/button/index.js +9 -1
  16. package/dist/button/index.mjs +2 -2
  17. package/dist/card/index.js +10 -2
  18. package/dist/card/index.mjs +2 -2
  19. package/dist/checkbox/index.js +11 -3
  20. package/dist/checkbox/index.mjs +2 -2
  21. package/dist/{chunk-WVWKKHBP.mjs → chunk-22MWNPDF.mjs} +2 -2
  22. package/dist/{chunk-6TRDXC4W.mjs → chunk-2OEPKE4D.mjs} +1 -1
  23. package/dist/{chunk-ECF2JRI5.mjs → chunk-2XNUJNTG.mjs} +1 -1
  24. package/dist/{chunk-XHILRI24.mjs → chunk-4I2F2NLP.mjs} +1 -1
  25. package/dist/{chunk-ZU6FMFB5.mjs → chunk-4PT43LON.mjs} +2 -2
  26. package/dist/{chunk-SLQ756Q7.mjs → chunk-5NWFAQBM.mjs} +1 -1
  27. package/dist/{chunk-HQB5TO4N.mjs → chunk-5Z2R3IHJ.mjs} +4 -4
  28. package/dist/{chunk-YKZAU3UV.mjs → chunk-AY4B3RRN.mjs} +1 -1
  29. package/dist/{chunk-O5SM54HW.mjs → chunk-C5O47K7L.mjs} +2 -2
  30. package/dist/{chunk-S7LWOK76.mjs → chunk-CNU6645Y.mjs} +2 -2
  31. package/dist/{chunk-IXLVGZWU.mjs → chunk-CY72AGI2.mjs} +2 -2
  32. package/dist/{chunk-FMXB7UCT.mjs → chunk-DRFCNDVQ.mjs} +1 -1
  33. package/dist/{chunk-3H7DF7QZ.mjs → chunk-F2WSIT7F.mjs} +3 -3
  34. package/dist/{chunk-5PIG7LWJ.mjs → chunk-FZFREHAE.mjs} +3 -3
  35. package/dist/{chunk-YVJ7BL4T.mjs → chunk-HKYKDQ6C.mjs} +5 -5
  36. package/dist/{chunk-SCH6SFLB.mjs → chunk-IS7NER3O.mjs} +1 -1
  37. package/dist/{chunk-AJERK2UH.mjs → chunk-MOBW7BKD.mjs} +3 -3
  38. package/dist/{chunk-4AWNSTZH.mjs → chunk-OQGMQL2A.mjs} +1 -1
  39. package/dist/{chunk-4JQWQF3H.mjs → chunk-PJX5UF3Y.mjs} +1 -1
  40. package/dist/{chunk-MARIIZN7.mjs → chunk-QXQWVRXN.mjs} +1 -1
  41. package/dist/{chunk-E2C7WDLA.mjs → chunk-RFB4IABR.mjs} +1 -1
  42. package/dist/{chunk-NEZK6NO5.mjs → chunk-SO2QSRGV.mjs} +1 -1
  43. package/dist/{chunk-Q3KALTWT.mjs → chunk-TA62Q7YX.mjs} +2 -2
  44. package/dist/{chunk-JM45JPSK.mjs → chunk-TB33GTWS.mjs} +2 -2
  45. package/dist/{chunk-KAIB45YN.mjs → chunk-YI5OZRUB.mjs} +1 -1
  46. package/dist/{chunk-SR3JZW6T.mjs → chunk-YZDRNV46.mjs} +3 -3
  47. package/dist/{chunk-TD5OLTUB.mjs → chunk-Z4P43F5J.mjs} +9 -6
  48. package/dist/{chunk-XW4HTSUY.mjs → chunk-Z65ZMFDH.mjs} +2 -2
  49. package/dist/chunk-ZIF4PLK3.mjs +18 -0
  50. package/dist/{chunk-AEBHTW7E.mjs → chunk-ZW6GY5PO.mjs} +1 -1
  51. package/dist/command/index.d.mts +7 -7
  52. package/dist/command/index.d.ts +7 -7
  53. package/dist/command/index.js +10 -2
  54. package/dist/command/index.mjs +2 -2
  55. package/dist/dialog/index.js +10 -2
  56. package/dist/dialog/index.mjs +2 -2
  57. package/dist/dropdown-menu/index.js +11 -3
  58. package/dist/dropdown-menu/index.mjs +2 -2
  59. package/dist/index.js +40 -29
  60. package/dist/index.mjs +30 -30
  61. package/dist/input/index.js +9 -1
  62. package/dist/input/index.mjs +2 -2
  63. package/dist/label/index.js +9 -1
  64. package/dist/label/index.mjs +2 -2
  65. package/dist/popover/index.js +10 -2
  66. package/dist/popover/index.mjs +2 -2
  67. package/dist/progress/index.d.mts +1 -1
  68. package/dist/progress/index.d.ts +1 -1
  69. package/dist/progress/index.js +13 -5
  70. package/dist/progress/index.mjs +2 -2
  71. package/dist/radio-group/index.js +11 -3
  72. package/dist/radio-group/index.mjs +2 -2
  73. package/dist/scroll-area/index.js +9 -1
  74. package/dist/scroll-area/index.mjs +2 -2
  75. package/dist/select/index.js +9 -1
  76. package/dist/select/index.mjs +2 -2
  77. package/dist/separator/index.js +9 -1
  78. package/dist/separator/index.mjs +2 -2
  79. package/dist/sheet/index.d.mts +1 -1
  80. package/dist/sheet/index.d.ts +1 -1
  81. package/dist/sheet/index.js +11 -3
  82. package/dist/sheet/index.mjs +2 -2
  83. package/dist/skeleton/index.js +9 -1
  84. package/dist/skeleton/index.mjs +2 -2
  85. package/dist/slider/index.js +10 -2
  86. package/dist/slider/index.mjs +2 -2
  87. package/dist/switch/index.js +10 -2
  88. package/dist/switch/index.mjs +2 -2
  89. package/dist/table/index.js +9 -1
  90. package/dist/table/index.mjs +2 -2
  91. package/dist/tabs/index.js +9 -1
  92. package/dist/tabs/index.mjs +2 -2
  93. package/dist/textarea/index.js +12 -4
  94. package/dist/textarea/index.mjs +2 -2
  95. package/dist/toast/index.js +9 -1
  96. package/dist/toast/index.mjs +2 -2
  97. package/dist/toggle/index.d.mts +2 -2
  98. package/dist/toggle/index.d.ts +2 -2
  99. package/dist/toggle/index.js +10 -2
  100. package/dist/toggle/index.mjs +2 -2
  101. package/dist/tooltip/index.js +9 -1
  102. package/dist/tooltip/index.mjs +2 -2
  103. package/package.json +4 -3
  104. package/dist/chunk-PJO7WJ4G.mjs +0 -10
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Switch
3
- } from "../chunk-Q3KALTWT.mjs";
4
- import "../chunk-PJO7WJ4G.mjs";
3
+ } from "../chunk-TA62Q7YX.mjs";
4
+ import "../chunk-ZIF4PLK3.mjs";
5
5
  export {
6
6
  Switch
7
7
  };
@@ -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 (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
57
+ return twMerge((0, import_clsx.clsx)(inputs));
50
58
  }
51
59
 
52
60
  // src/table/index.tsx
@@ -7,8 +7,8 @@ import {
7
7
  TableHead,
8
8
  TableHeader,
9
9
  TableRow
10
- } from "../chunk-XHILRI24.mjs";
11
- import "../chunk-PJO7WJ4G.mjs";
10
+ } from "../chunk-4I2F2NLP.mjs";
11
+ import "../chunk-ZIF4PLK3.mjs";
12
12
  export {
13
13
  Table,
14
14
  TableBody,
@@ -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 (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
54
+ return twMerge((0, import_clsx.clsx)(inputs));
47
55
  }
48
56
 
49
57
  // src/tabs/index.tsx
@@ -3,8 +3,8 @@ import {
3
3
  TabsContent,
4
4
  TabsList,
5
5
  TabsTrigger
6
- } from "../chunk-NEZK6NO5.mjs";
7
- import "../chunk-PJO7WJ4G.mjs";
6
+ } from "../chunk-SO2QSRGV.mjs";
7
+ import "../chunk-ZIF4PLK3.mjs";
8
8
  export {
9
9
  Tabs,
10
10
  TabsContent,
@@ -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 (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
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-primary)] px-3 py-2 text-sm",
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-primary)]",
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-ring)] focus-visible:ring-offset-2",
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
  ),
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Textarea
3
- } from "../chunk-HQB5TO4N.mjs";
4
- import "../chunk-PJO7WJ4G.mjs";
3
+ } from "../chunk-5Z2R3IHJ.mjs";
4
+ import "../chunk-ZIF4PLK3.mjs";
5
5
  export {
6
6
  Textarea
7
7
  };
@@ -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 (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
58
+ return twMerge((0, import_clsx.clsx)(inputs));
51
59
  }
52
60
 
53
61
  // src/toast/index.tsx
@@ -6,8 +6,8 @@ import {
6
6
  ToastProvider,
7
7
  ToastTitle,
8
8
  ToastViewport
9
- } from "../chunk-E2C7WDLA.mjs";
10
- import "../chunk-PJO7WJ4G.mjs";
9
+ } from "../chunk-RFB4IABR.mjs";
10
+ import "../chunk-ZIF4PLK3.mjs";
11
11
  export {
12
12
  Toast,
13
13
  ToastAction,
@@ -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?: "sm" | "default" | "lg" | null | undefined;
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?: "sm" | "default" | "lg" | null | undefined;
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 };
@@ -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?: "sm" | "default" | "lg" | null | undefined;
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?: "sm" | "default" | "lg" | null | undefined;
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 };
@@ -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 (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
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-primary)] 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-ring)] 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",
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: {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Toggle,
3
3
  toggleVariants
4
- } from "../chunk-JM45JPSK.mjs";
5
- import "../chunk-PJO7WJ4G.mjs";
4
+ } from "../chunk-TB33GTWS.mjs";
5
+ import "../chunk-ZIF4PLK3.mjs";
6
6
  export {
7
7
  Toggle,
8
8
  toggleVariants
@@ -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 (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
54
+ return twMerge((0, import_clsx.clsx)(inputs));
47
55
  }
48
56
 
49
57
  // src/tooltip/index.tsx
@@ -3,8 +3,8 @@ import {
3
3
  TooltipContent,
4
4
  TooltipProvider,
5
5
  TooltipTrigger
6
- } from "../chunk-SCH6SFLB.mjs";
7
- import "../chunk-PJO7WJ4G.mjs";
6
+ } from "../chunk-IS7NER3O.mjs";
7
+ import "../chunk-ZIF4PLK3.mjs";
8
8
  export {
9
9
  Tooltip,
10
10
  TooltipContent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axis-ds/ui-react",
3
- "version": "1.2.0",
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.2.0"
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/thoughtandaction/axis.git",
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",
@@ -1,10 +0,0 @@
1
- // src/utils.ts
2
- import { clsx } from "clsx";
3
- import { twMerge } from "tailwind-merge";
4
- function cn(...inputs) {
5
- return twMerge(clsx(inputs));
6
- }
7
-
8
- export {
9
- cn
10
- };