@machinerd/js-module 0.9.0 → 0.10.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 (95) hide show
  1. package/README.md +0 -6
  2. package/dist/{api-client-C0sbSOQf.mjs → api-client-B-kwZogn.mjs} +1 -1
  3. package/dist/hooks/common/index.cjs +1 -1
  4. package/dist/hooks/common/index.d.cts +6 -7
  5. package/dist/hooks/common/index.d.mts +6 -7
  6. package/dist/hooks/common/index.mjs +1 -1
  7. package/dist/index.d.cts +1 -1
  8. package/dist/index.d.mts +1 -1
  9. package/dist/index.mjs +1 -1
  10. package/dist/providers/api-client/index.cjs +1 -1
  11. package/dist/providers/api-client/index.d.cts +3 -3
  12. package/dist/providers/api-client/index.d.mts +3 -3
  13. package/dist/providers/api-client/index.mjs +1 -1
  14. package/dist/providers/noti-stack/index.d.cts +2 -2
  15. package/dist/{skeleton-Y22bmaaB.mjs → skeleton-azZrk5-3.mjs} +1 -1
  16. package/dist/styles/index.css +0 -251
  17. package/dist/ui/carousel/index.cjs +1 -1
  18. package/dist/ui/carousel/index.d.cts +9 -9
  19. package/dist/ui/carousel/index.d.mts +9 -9
  20. package/dist/ui/carousel/index.mjs +1 -1
  21. package/dist/ui/dialog/index.cjs +1 -1
  22. package/dist/ui/dialog/index.d.cts +2 -2
  23. package/dist/ui/dialog/index.d.mts +4 -4
  24. package/dist/ui/dialog/index.mjs +1 -1
  25. package/dist/ui/dnd/index.d.cts +2 -2
  26. package/dist/ui/image/index.cjs +1 -1
  27. package/dist/ui/image/index.d.cts +8 -8
  28. package/dist/ui/image/index.d.mts +8 -8
  29. package/dist/ui/image/index.mjs +1 -1
  30. package/dist/ui/index.cjs +1 -1
  31. package/dist/ui/index.d.cts +55 -12
  32. package/dist/ui/index.d.mts +58 -15
  33. package/dist/ui/index.mjs +1 -1
  34. package/dist/ui/motion-dialog/index.cjs +1 -1
  35. package/dist/ui/motion-dialog/index.mjs +1 -1
  36. package/dist/ui/sheet/index.cjs +1 -1
  37. package/dist/ui/sheet/index.d.cts +2 -2
  38. package/dist/ui/sheet/index.d.mts +2 -2
  39. package/dist/ui/sheet/index.mjs +1 -1
  40. package/dist/ui/switch/index.cjs +1 -1
  41. package/dist/ui/switch/index.mjs +1 -1
  42. package/dist/ui/tooltip/index.cjs +1 -1
  43. package/dist/ui/tooltip/index.d.cts +2 -2
  44. package/dist/ui/tooltip/index.mjs +1 -1
  45. package/dist/{use-subset-image-o_gmC1HL.cjs → use-subset-image-CTy5mCLo.cjs} +1 -1
  46. package/dist/{use-subset-image-Df2fCrtH.mjs → use-subset-image-LQWsE5P4.mjs} +1 -1
  47. package/dist/util/common.mjs +1 -1
  48. package/dist/util/file.mjs +1 -1
  49. package/dist/util/format.cjs +1 -1
  50. package/dist/util/format.d.cts +1 -29
  51. package/dist/util/format.d.mts +1 -29
  52. package/dist/util/format.mjs +1 -1
  53. package/package.json +4 -42
  54. package/dist/button-CQZuaIU7.mjs +0 -1
  55. package/dist/button-ChX3XGbR.cjs +0 -1
  56. package/dist/button-DHvx-GAg.d.cts +0 -50
  57. package/dist/button-DRIyBtEB.d.mts +0 -50
  58. package/dist/editor/index.cjs +0 -1
  59. package/dist/editor/index.d.cts +0 -80
  60. package/dist/editor/index.d.mts +0 -80
  61. package/dist/editor/index.mjs +0 -1
  62. package/dist/format-1_RTNUQv.mjs +0 -1
  63. package/dist/format-DEuImTYJ.cjs +0 -1
  64. package/dist/styles/editor.css +0 -255
  65. package/dist/ui/dropdown/index.cjs +0 -1
  66. package/dist/ui/dropdown/index.d.cts +0 -72
  67. package/dist/ui/dropdown/index.d.mts +0 -72
  68. package/dist/ui/dropdown/index.mjs +0 -1
  69. package/dist/ui/preserve-focus-button/index.cjs +0 -1
  70. package/dist/ui/preserve-focus-button/index.d.cts +0 -12
  71. package/dist/ui/preserve-focus-button/index.d.mts +0 -12
  72. package/dist/ui/preserve-focus-button/index.mjs +0 -1
  73. package/dist/ui-Bs9PP9eC.cjs +0 -1
  74. package/dist/ui-D2DoC_0E.mjs +0 -1
  75. package/dist/use-drag-resize-BdeLdulk.mjs +0 -1
  76. package/dist/use-drag-resize-DEgcua2U.d.cts +0 -48
  77. package/dist/use-drag-resize-DRHPv5RK.d.mts +0 -48
  78. package/dist/use-drag-resize-DeDqPC4h.cjs +0 -1
  79. package/dist/util/editor.cjs +0 -1
  80. package/dist/util/editor.d.cts +0 -21
  81. package/dist/util/editor.d.mts +0 -21
  82. package/dist/util/editor.mjs +0 -1
  83. /package/dist/{api-client-C3o2pO0q.cjs → api-client-BH5tW3p8.cjs} +0 -0
  84. /package/dist/{common-B8HXyhZa.cjs → common-BQEGjmFn.cjs} +0 -0
  85. /package/dist/{common-ZUMpASnc.mjs → common-CCtD91nO.mjs} +0 -0
  86. /package/dist/{common-CWHkXe0F.mjs → common-L3y7_eAy.mjs} +0 -0
  87. /package/dist/{file-B-UJkabO.mjs → file-CjW1pMb_.mjs} +0 -0
  88. /package/dist/{index-B1YNV_Vm.d.cts → index-CFOJBfVt.d.mts} +0 -0
  89. /package/dist/{index-C8chDULk.d.mts → index-ChiDX5zW.d.cts} +0 -0
  90. /package/dist/{skeleton-B5ZccRFX.cjs → skeleton-BCdxpynL.cjs} +0 -0
  91. /package/dist/{src-CIMlbgv1.mjs → src-Ce2i3Lkj.mjs} +0 -0
  92. /package/dist/{use-dialog-stack-YiLs-sNf.cjs → use-dialog-stack-DmBRPhe2.cjs} +0 -0
  93. /package/dist/{use-dialog-stack-Crj8YWJl.mjs → use-dialog-stack-STwnhvBB.mjs} +0 -0
  94. /package/dist/{use-subset-image-Dygkyw-W.d.mts → use-subset-image-Ck1Gk5Qk.d.mts} +0 -0
  95. /package/dist/{use-subset-image-bDB5TSd4.d.cts → use-subset-image-oZAiC9VK.d.cts} +0 -0
package/README.md CHANGED
@@ -22,12 +22,6 @@ yarn add @machinerd/js-module
22
22
  import '@machinerd/js-module/styles/index.css';
23
23
  ```
24
24
 
25
- 에디터(Tiptap)를 쓸 때만 아래를 추가로 넣습니다.
26
-
27
- ```js
28
- import '@machinerd/js-module/styles/editor.css';
29
- ```
30
-
31
25
  ---
32
26
 
33
27
  ## API 클라이언트 (`@machinerd/js-module`)
@@ -1 +1 @@
1
- import{t as e}from"./src-CIMlbgv1.mjs";import{createContext as t,useContext as n,useMemo as r}from"react";import{jsx as i}from"react/jsx-runtime";const a=t(null);function o({children:t,config:n}){let{apiEndpoint:o,cdnEndpoint:s}=n,c=r(()=>new e({apiEndpoint:o,cdnEndpoint:s}),[o,s]);return i(a.Provider,{value:c,children:t})}function s(){let e=n(a);if(!e)throw Error(`ApiClient not found`);return e}export{s as n,o as t};
1
+ import{t as e}from"./src-Ce2i3Lkj.mjs";import{createContext as t,useContext as n,useMemo as r}from"react";import{jsx as i}from"react/jsx-runtime";const a=t(null);function o({children:t,config:n}){let{apiEndpoint:o,cdnEndpoint:s}=n,c=r(()=>new e({apiEndpoint:o,cdnEndpoint:s}),[o,s]);return i(a.Provider,{value:c,children:t})}function s(){let e=n(a);if(!e)throw Error(`ApiClient not found`);return e}export{s as n,o as t};
@@ -1 +1 @@
1
- "use client";require(`../../src-6KfzqI9Z.cjs`),require(`../../file-5mweNdAM.cjs`);const e=require(`../../use-drag-resize-DeDqPC4h.cjs`),t=require(`../../common-B8HXyhZa.cjs`),n=require(`../../use-dialog-stack-YiLs-sNf.cjs`);require(`../../api-client-C3o2pO0q.cjs`);const r=require(`../../use-subset-image-o_gmC1HL.cjs`);exports.RESIZE_CONSTANTS=e.t,exports.SKIP=t.o,exports.SUBSETS=r.t,exports.useDelayUnmount=t.l,exports.useDialogStack=n.t,exports.useDragResize=e.n,exports.useDragScroll=t.c,exports.useEffectOnce=t.s,exports.useOutsideClick=t.a,exports.useScrollLock=t.i,exports.useScrollTop=t.r,exports.useSticky=t.n,exports.useSubsetImage=r.n,exports.useWindowSize=t.t;
1
+ "use client";require(`../../src-6KfzqI9Z.cjs`),require(`../../file-5mweNdAM.cjs`);const e=require(`../../common-BQEGjmFn.cjs`),t=require(`../../use-dialog-stack-DmBRPhe2.cjs`);require(`../../api-client-BH5tW3p8.cjs`);const n=require(`../../use-subset-image-CTy5mCLo.cjs`);exports.SKIP=e.o,exports.SUBSETS=n.t,exports.useDelayUnmount=e.l,exports.useDialogStack=t.t,exports.useDragScroll=e.c,exports.useEffectOnce=e.s,exports.useOutsideClick=e.a,exports.useScrollLock=e.i,exports.useScrollTop=e.r,exports.useSticky=e.n,exports.useSubsetImage=n.n,exports.useWindowSize=e.t;
@@ -1,6 +1,5 @@
1
- import { a as Size, i as ResizeHandleProps, n as RESIZE_CONSTANTS, o as UseDragResizeProps, r as ResizeDirection, s as useDragResize, t as LimitSize } from "../../use-drag-resize-DEgcua2U.cjs";
2
- import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../use-subset-image-bDB5TSd4.cjs";
3
- import * as react6 from "react";
1
+ import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../use-subset-image-oZAiC9VK.cjs";
2
+ import * as react0 from "react";
4
3
  import { DependencyList, Dispatch, EffectCallback, RefObject, SetStateAction } from "react";
5
4
 
6
5
  //#region src/hooks/use-delay-unmount.d.ts
@@ -11,7 +10,7 @@ declare function useDialogStack(isOpen: boolean, onClose: () => void, lockScroll
11
10
  //#endregion
12
11
  //#region src/hooks/use-drag-scroll.d.ts
13
12
  declare function useDragScroll(speed?: number): {
14
- ref: react6.RefObject<HTMLDivElement>;
13
+ ref: react0.RefObject<HTMLDivElement>;
15
14
  onMouseDown: (e: React.MouseEvent) => void;
16
15
  onMouseLeave: () => void;
17
16
  onMouseUp: () => void;
@@ -55,12 +54,12 @@ declare function useScrollTop({
55
54
  }?: UseScrollTopProps): {
56
55
  isVisible: boolean;
57
56
  handleScrolToTop: () => void;
58
- ref: react6.RefObject<HTMLDivElement>;
57
+ ref: react0.RefObject<HTMLDivElement>;
59
58
  };
60
59
  //#endregion
61
60
  //#region src/hooks/use-sticky.d.ts
62
61
  declare function useSticky(): {
63
- sentinelRef: react6.Dispatch<react6.SetStateAction<HTMLDivElement | null>>;
62
+ sentinelRef: react0.Dispatch<react0.SetStateAction<HTMLDivElement | null>>;
64
63
  isStuck: boolean;
65
64
  };
66
65
  //#endregion
@@ -69,4 +68,4 @@ declare function useWindowSize(defaultWidth?: number): {
69
68
  windowSize: number;
70
69
  };
71
70
  //#endregion
72
- export { BaseProps, Folder, LimitSize, RESIZE_CONSTANTS, ResizeDirection, ResizeHandleProps, SKIP, SUBSETS, Size, UseDragResizeProps, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDialogStack, useDragResize, useDragScroll, useEffectOnce, useOutsideClick, useScrollLock, useScrollTop, useSticky, useSubsetImage, useWindowSize };
71
+ export { BaseProps, Folder, SKIP, SUBSETS, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDialogStack, useDragScroll, useEffectOnce, useOutsideClick, useScrollLock, useScrollTop, useSticky, useSubsetImage, useWindowSize };
@@ -1,6 +1,5 @@
1
- import { a as Size, i as ResizeHandleProps, n as RESIZE_CONSTANTS, o as UseDragResizeProps, r as ResizeDirection, s as useDragResize, t as LimitSize } from "../../use-drag-resize-DRHPv5RK.mjs";
2
- import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../use-subset-image-Dygkyw-W.mjs";
3
- import * as react5 from "react";
1
+ import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../use-subset-image-Ck1Gk5Qk.mjs";
2
+ import * as react1 from "react";
4
3
  import { DependencyList, Dispatch, EffectCallback, RefObject, SetStateAction } from "react";
5
4
 
6
5
  //#region src/hooks/use-delay-unmount.d.ts
@@ -11,7 +10,7 @@ declare function useDialogStack(isOpen: boolean, onClose: () => void, lockScroll
11
10
  //#endregion
12
11
  //#region src/hooks/use-drag-scroll.d.ts
13
12
  declare function useDragScroll(speed?: number): {
14
- ref: react5.RefObject<HTMLDivElement>;
13
+ ref: react1.RefObject<HTMLDivElement>;
15
14
  onMouseDown: (e: React.MouseEvent) => void;
16
15
  onMouseLeave: () => void;
17
16
  onMouseUp: () => void;
@@ -55,12 +54,12 @@ declare function useScrollTop({
55
54
  }?: UseScrollTopProps): {
56
55
  isVisible: boolean;
57
56
  handleScrolToTop: () => void;
58
- ref: react5.RefObject<HTMLDivElement>;
57
+ ref: react1.RefObject<HTMLDivElement>;
59
58
  };
60
59
  //#endregion
61
60
  //#region src/hooks/use-sticky.d.ts
62
61
  declare function useSticky(): {
63
- sentinelRef: react5.Dispatch<react5.SetStateAction<HTMLDivElement | null>>;
62
+ sentinelRef: react1.Dispatch<react1.SetStateAction<HTMLDivElement | null>>;
64
63
  isStuck: boolean;
65
64
  };
66
65
  //#endregion
@@ -69,4 +68,4 @@ declare function useWindowSize(defaultWidth?: number): {
69
68
  windowSize: number;
70
69
  };
71
70
  //#endregion
72
- export { BaseProps, Folder, LimitSize, RESIZE_CONSTANTS, ResizeDirection, ResizeHandleProps, SKIP, SUBSETS, Size, UseDragResizeProps, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDialogStack, useDragResize, useDragScroll, useEffectOnce, useOutsideClick, useScrollLock, useScrollTop, useSticky, useSubsetImage, useWindowSize };
71
+ export { BaseProps, Folder, SKIP, SUBSETS, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDialogStack, useDragScroll, useEffectOnce, useOutsideClick, useScrollLock, useScrollTop, useSticky, useSubsetImage, useWindowSize };
@@ -1 +1 @@
1
- "use client";import"../../src-CIMlbgv1.mjs";import"../../file-B-UJkabO.mjs";import{n as e,t}from"../../use-drag-resize-BdeLdulk.mjs";import{a as n,c as r,i,l as a,n as o,o as s,r as c,s as l,t as u}from"../../common-CWHkXe0F.mjs";import{t as d}from"../../use-dialog-stack-Crj8YWJl.mjs";import"../../api-client-C0sbSOQf.mjs";import{n as f,t as p}from"../../use-subset-image-Df2fCrtH.mjs";export{t as RESIZE_CONSTANTS,s as SKIP,p as SUBSETS,a as useDelayUnmount,d as useDialogStack,e as useDragResize,r as useDragScroll,l as useEffectOnce,n as useOutsideClick,i as useScrollLock,c as useScrollTop,o as useSticky,f as useSubsetImage,u as useWindowSize};
1
+ "use client";import"../../src-Ce2i3Lkj.mjs";import"../../file-CjW1pMb_.mjs";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"../../common-L3y7_eAy.mjs";import{t as l}from"../../use-dialog-stack-STwnhvBB.mjs";import"../../api-client-B-kwZogn.mjs";import{n as u,t as d}from"../../use-subset-image-LQWsE5P4.mjs";export{a as SKIP,d as SUBSETS,r as useDelayUnmount,l as useDialogStack,t as useDragScroll,s as useEffectOnce,e as useOutsideClick,n as useScrollLock,o as useScrollTop,i as useSticky,u as useSubsetImage,c as useWindowSize};
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as ApiConfig, r as UploadValues, t as ApiClient } from "./index-B1YNV_Vm.cjs";
1
+ import { n as ApiConfig, r as UploadValues, t as ApiClient } from "./index-ChiDX5zW.cjs";
2
2
  export { ApiConfig, UploadValues, ApiClient as default };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as ApiConfig, r as UploadValues, t as ApiClient } from "./index-C8chDULk.mjs";
1
+ import { n as ApiConfig, r as UploadValues, t as ApiClient } from "./index-CFOJBfVt.mjs";
2
2
  export { ApiConfig, UploadValues, ApiClient as default };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./src-CIMlbgv1.mjs";export{e as default};
1
+ import{t as e}from"./src-Ce2i3Lkj.mjs";export{e as default};
@@ -1 +1 @@
1
- require(`../../src-6KfzqI9Z.cjs`);const e=require(`../../api-client-C3o2pO0q.cjs`);exports.ApiClientProvider=e.t,exports.useApiClient=e.n;
1
+ require(`../../src-6KfzqI9Z.cjs`);const e=require(`../../api-client-BH5tW3p8.cjs`);exports.ApiClientProvider=e.t,exports.useApiClient=e.n;
@@ -1,5 +1,5 @@
1
- import { n as ApiConfig, t as ApiClient } from "../../index-B1YNV_Vm.cjs";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
1
+ import { n as ApiConfig, t as ApiClient } from "../../index-ChiDX5zW.cjs";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/providers/api-client/api-client.d.ts
5
5
  declare function ApiClientProvider({
@@ -8,7 +8,7 @@ declare function ApiClientProvider({
8
8
  }: {
9
9
  children: React.ReactNode;
10
10
  config: ApiConfig;
11
- }): react_jsx_runtime14.JSX.Element;
11
+ }): react_jsx_runtime0.JSX.Element;
12
12
  declare function useApiClient(): ApiClient;
13
13
  //#endregion
14
14
  export { ApiClientProvider, useApiClient };
@@ -1,5 +1,5 @@
1
- import { n as ApiConfig, t as ApiClient } from "../../index-C8chDULk.mjs";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
1
+ import { n as ApiConfig, t as ApiClient } from "../../index-CFOJBfVt.mjs";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/providers/api-client/api-client.d.ts
5
5
  declare function ApiClientProvider({
@@ -8,7 +8,7 @@ declare function ApiClientProvider({
8
8
  }: {
9
9
  children: React.ReactNode;
10
10
  config: ApiConfig;
11
- }): react_jsx_runtime1.JSX.Element;
11
+ }): react_jsx_runtime10.JSX.Element;
12
12
  declare function useApiClient(): ApiClient;
13
13
  //#endregion
14
14
  export { ApiClientProvider, useApiClient };
@@ -1 +1 @@
1
- import"../../src-CIMlbgv1.mjs";import{n as e,t}from"../../api-client-C0sbSOQf.mjs";export{t as ApiClientProvider,e as useApiClient};
1
+ import"../../src-Ce2i3Lkj.mjs";import{n as e,t}from"../../api-client-B-kwZogn.mjs";export{t as ApiClientProvider,e as useApiClient};
@@ -1,11 +1,11 @@
1
1
  import { ComponentProps } from "react";
2
- import * as react_jsx_runtime21 from "react/jsx-runtime";
3
2
  import { SnackbarProvider } from "notistack";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/providers/noti-stack/noti-stack.d.ts
6
6
  declare function NotiStackProvider({
7
7
  maxSnack,
8
8
  ...props
9
- }: ComponentProps<typeof SnackbarProvider>): react_jsx_runtime21.JSX.Element;
9
+ }: ComponentProps<typeof SnackbarProvider>): react_jsx_runtime0.JSX.Element;
10
10
  //#endregion
11
11
  export { NotiStackProvider };
@@ -1 +1 @@
1
- import{n as e}from"./common-ZUMpASnc.mjs";import{jsx as t}from"react/jsx-runtime";import{cva as n}from"class-variance-authority";const r=n(e(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function i({size:e,rounded:n,width:i,height:a,className:o,...s}){let c=i?typeof i==`string`?i:`${i}px`:void 0,l=a?typeof a==`string`?a:`${a}px`:void 0;return t(`div`,{"data-komc":!0,"aria-hidden":`true`,className:r({size:e,rounded:n,className:o}),style:{width:c,height:l},...s})}export{i as t};
1
+ import{n as e}from"./common-CCtD91nO.mjs";import{jsx as t}from"react/jsx-runtime";import{cva as n}from"class-variance-authority";const r=n(e(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function i({size:e,rounded:n,width:i,height:a,className:o,...s}){let c=i?typeof i==`string`?i:`${i}px`:void 0,l=a?typeof a==`string`?a:`${a}px`:void 0;return t(`div`,{"data-komc":!0,"aria-hidden":`true`,className:r({size:e,rounded:n,className:o}),style:{width:c,height:l},...s})}export{i as t};
@@ -5,11 +5,9 @@
5
5
  :root, :host {
6
6
  --komc-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
7
7
  monospace;
8
- --komc-color-red-600: oklch(57.7% 0.245 27.325);
9
8
  --komc-color-sky-950: #006699;
10
9
  --komc-color-blue-50: oklch(97% 0.014 254.604);
11
10
  --komc-color-blue-500: oklch(62.3% 0.214 259.815);
12
- --komc-color-blue-600: oklch(54.6% 0.245 262.881);
13
11
  --komc-color-indigo-600: oklch(51.1% 0.262 276.966);
14
12
  --komc-color-indigo-700: oklch(45.7% 0.24 277.023);
15
13
  --komc-color-gray-50: #fafafa;
@@ -83,16 +81,9 @@
83
81
  container-type: inline-size;
84
82
  container-name: dialog-content;
85
83
  }
86
- .komc\:\@container\/komc-editor {
87
- container-type: inline-size;
88
- container-name: komc-editor;
89
- }
90
84
  .komc\:pointer-events-auto {
91
85
  pointer-events: auto;
92
86
  }
93
- .komc\:pointer-events-none {
94
- pointer-events: none;
95
- }
96
87
  .komc\:invisible {
97
88
  visibility: hidden;
98
89
  }
@@ -111,54 +102,30 @@
111
102
  .komc\:sticky {
112
103
  position: sticky;
113
104
  }
114
- .komc\:-inset-1\.5 {
115
- inset: calc(var(--komc-spacing) * -1.5);
116
- }
117
105
  .komc\:inset-0 {
118
106
  inset: 0px;
119
107
  }
120
- .komc\:-top-1 {
121
- top: calc(var(--komc-spacing) * -1);
122
- }
123
108
  .komc\:top-0 {
124
109
  top: 0px;
125
110
  }
126
- .komc\:top-1\/2 {
127
- top: calc(1 / 2 * 100%);
128
- }
129
111
  .komc\:top-full {
130
112
  top: 100%;
131
113
  }
132
- .komc\:-right-1 {
133
- right: calc(var(--komc-spacing) * -1);
134
- }
135
114
  .komc\:right-0 {
136
115
  right: 0px;
137
116
  }
138
- .komc\:right-1 {
139
- right: var(--komc-spacing);
140
- }
141
117
  .komc\:right-5 {
142
118
  right: calc(var(--komc-spacing) * 5);
143
119
  }
144
- .komc\:-bottom-1 {
145
- bottom: calc(var(--komc-spacing) * -1);
146
- }
147
120
  .komc\:bottom-0 {
148
121
  bottom: 0px;
149
122
  }
150
123
  .komc\:bottom-full {
151
124
  bottom: 100%;
152
125
  }
153
- .komc\:-left-1 {
154
- left: calc(var(--komc-spacing) * -1);
155
- }
156
126
  .komc\:left-0 {
157
127
  left: 0px;
158
128
  }
159
- .komc\:left-1 {
160
- left: var(--komc-spacing);
161
- }
162
129
  .komc\:left-1\/2 {
163
130
  left: calc(1 / 2 * 100%);
164
131
  }
@@ -168,18 +135,9 @@
168
135
  .komc\:z-0 {
169
136
  z-index: 0;
170
137
  }
171
- .komc\:z-2 {
172
- z-index: 2;
173
- }
174
138
  .komc\:z-10 {
175
139
  z-index: 10;
176
140
  }
177
- .komc\:z-20 {
178
- z-index: 20;
179
- }
180
- .komc\:z-50 {
181
- z-index: 50;
182
- }
183
141
  .komc\:z-99 {
184
142
  z-index: 99;
185
143
  }
@@ -195,9 +153,6 @@
195
153
  .komc\:-mt-4 {
196
154
  margin-top: calc(var(--komc-spacing) * -4);
197
155
  }
198
- .komc\:mt-0\.5 {
199
- margin-top: calc(var(--komc-spacing) * 0.5);
200
- }
201
156
  .komc\:mt-3 {
202
157
  margin-top: calc(var(--komc-spacing) * 3);
203
158
  }
@@ -213,9 +168,6 @@
213
168
  .komc\:-ml-4 {
214
169
  margin-left: calc(var(--komc-spacing) * -4);
215
170
  }
216
- .komc\:ml-1 {
217
- margin-left: var(--komc-spacing);
218
- }
219
171
  .komc\:block {
220
172
  display: block;
221
173
  }
@@ -228,9 +180,6 @@
228
180
  .komc\:hidden {
229
181
  display: none;
230
182
  }
231
- .komc\:inline {
232
- display: inline;
233
- }
234
183
  .komc\:inline-flex {
235
184
  display: inline-flex;
236
185
  }
@@ -328,9 +277,6 @@
328
277
  .komc\:min-h-16 {
329
278
  min-height: calc(var(--komc-spacing) * 16);
330
279
  }
331
- .komc\:min-h-25 {
332
- min-height: calc(var(--komc-spacing) * 25);
333
- }
334
280
  .komc\:min-h-32 {
335
281
  min-height: calc(var(--komc-spacing) * 32);
336
282
  }
@@ -355,15 +301,9 @@
355
301
  .komc\:w-5 {
356
302
  width: calc(var(--komc-spacing) * 5);
357
303
  }
358
- .komc\:w-6 {
359
- width: calc(var(--komc-spacing) * 6);
360
- }
361
304
  .komc\:w-10 {
362
305
  width: calc(var(--komc-spacing) * 10);
363
306
  }
364
- .komc\:w-14 {
365
- width: calc(var(--komc-spacing) * 14);
366
- }
367
307
  .komc\:w-\[50dvw\] {
368
308
  width: 50dvw;
369
309
  }
@@ -451,10 +391,6 @@
451
391
  --tw-translate-x: 100%;
452
392
  translate: var(--tw-translate-x) var(--tw-translate-y);
453
393
  }
454
- .komc\:-translate-y-1\/2 {
455
- --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
456
- translate: var(--tw-translate-x) var(--tw-translate-y);
457
- }
458
394
  .komc\:-translate-y-2 {
459
395
  --tw-translate-y: calc(var(--komc-spacing) * -2);
460
396
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -477,33 +413,9 @@
477
413
  .komc\:cursor-default {
478
414
  cursor: default;
479
415
  }
480
- .komc\:cursor-ew-resize {
481
- cursor: ew-resize;
482
- }
483
- .komc\:cursor-grab {
484
- cursor: grab;
485
- }
486
- .komc\:cursor-ne-resize {
487
- cursor: ne-resize;
488
- }
489
- .komc\:cursor-ns-resize {
490
- cursor: ns-resize;
491
- }
492
- .komc\:cursor-nw-resize {
493
- cursor: nw-resize;
494
- }
495
416
  .komc\:cursor-pointer {
496
417
  cursor: pointer;
497
418
  }
498
- .komc\:cursor-se-resize {
499
- cursor: se-resize;
500
- }
501
- .komc\:cursor-sw-resize {
502
- cursor: sw-resize;
503
- }
504
- .komc\:touch-none {
505
- touch-action: none;
506
- }
507
419
  .komc\:grid-cols-2 {
508
420
  grid-template-columns: repeat(2, minmax(0, 1fr));
509
421
  }
@@ -566,9 +478,6 @@
566
478
  margin-block-start: calc(calc(var(--komc-spacing) * 3) * var(--tw-space-y-reverse));
567
479
  margin-block-end: calc(calc(var(--komc-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
568
480
  }
569
- .komc\:gap-x-1 {
570
- column-gap: var(--komc-spacing);
571
- }
572
481
  .komc\:gap-x-2 {
573
482
  column-gap: calc(var(--komc-spacing) * 2);
574
483
  }
@@ -619,10 +528,6 @@
619
528
  border-style: var(--tw-border-style);
620
529
  border-width: 2px;
621
530
  }
622
- .komc\:border-\[0\.6px\] {
623
- border-style: var(--tw-border-style);
624
- border-width: 0.6px;
625
- }
626
531
  .komc\:border-t {
627
532
  border-top-style: var(--tw-border-style);
628
533
  border-top-width: 1px;
@@ -739,12 +644,6 @@
739
644
  .komc\:bg-white {
740
645
  background-color: var(--komc-color-white);
741
646
  }
742
- .komc\:bg-white\/60 {
743
- background-color: var(--komc-color-white);
744
- @supports (color: color-mix(in lab, red, red)) {
745
- background-color: color-mix(in oklab, var(--komc-color-white) 60%, transparent);
746
- }
747
- }
748
647
  .komc\:p-0 {
749
648
  padding: 0px;
750
649
  }
@@ -871,9 +770,6 @@
871
770
  .komc\:break-all {
872
771
  word-break: break-all;
873
772
  }
874
- .komc\:whitespace-pre {
875
- white-space: pre;
876
- }
877
773
  .komc\:text-\[\#1890FF\] {
878
774
  color: #1890FF;
879
775
  }
@@ -901,9 +797,6 @@
901
797
  .komc\:text-neutral-800 {
902
798
  color: var(--komc-color-neutral-800);
903
799
  }
904
- .komc\:text-red-600 {
905
- color: var(--komc-color-red-600);
906
- }
907
800
  .komc\:text-white {
908
801
  color: var(--komc-color-white);
909
802
  }
@@ -1012,38 +905,6 @@
1012
905
  --tw-outline-style: none;
1013
906
  outline-style: none;
1014
907
  }
1015
- .komc\:select-none {
1016
- -webkit-user-select: none;
1017
- user-select: none;
1018
- }
1019
- :is(.komc\:\*\:h-1\.5 > *) {
1020
- height: calc(var(--komc-spacing) * 1.5);
1021
- }
1022
- :is(.komc\:\*\:h-full > *) {
1023
- height: 100%;
1024
- }
1025
- :is(.komc\:\*\:w-1\.5 > *) {
1026
- width: calc(var(--komc-spacing) * 1.5);
1027
- }
1028
- :is(.komc\:\*\:w-full > *) {
1029
- width: 100%;
1030
- }
1031
- :is(.komc\:\*\*\:pointer-events-auto *) {
1032
- pointer-events: auto;
1033
- }
1034
- @media (hover: hover) {
1035
- .komc\:group-hover\:opacity-100:is(:where(.komc\:group):hover *) {
1036
- opacity: 100%;
1037
- }
1038
- .komc\:group-hover\/resize\:bg-blue-500\/50:is(:where(.komc\:group\/resize):hover *) {
1039
- background-color: var(--komc-color-blue-500);
1040
- }
1041
- @supports (color: color-mix(in lab, red, red)) {
1042
- .komc\:group-hover\/resize\:bg-blue-500\/50:is(:where(.komc\:group\/resize):hover *) {
1043
- background-color: color-mix(in oklab, var(--komc-color-blue-500) 50%, transparent);
1044
- }
1045
- }
1046
- }
1047
908
  .komc\:after\:pointer-events-none::after {
1048
909
  content: var(--tw-content);
1049
910
  pointer-events: none;
@@ -1052,18 +913,6 @@
1052
913
  content: var(--tw-content);
1053
914
  visibility: hidden;
1054
915
  }
1055
- .komc\:after\:absolute::after {
1056
- content: var(--tw-content);
1057
- position: absolute;
1058
- }
1059
- .komc\:after\:-inset-1\.5::after {
1060
- content: var(--tw-content);
1061
- inset: calc(var(--komc-spacing) * -1.5);
1062
- }
1063
- .komc\:after\:z-1::after {
1064
- content: var(--tw-content);
1065
- z-index: 1;
1066
- }
1067
916
  .komc\:after\:h-0::after {
1068
917
  content: var(--tw-content);
1069
918
  height: 0px;
@@ -1072,47 +921,11 @@
1072
921
  content: var(--tw-content);
1073
922
  overflow: hidden;
1074
923
  }
1075
- .komc\:after\:rounded-\(--node-radius\)::after {
1076
- content: var(--tw-content);
1077
- border-radius: var(--node-radius);
1078
- }
1079
- .komc\:after\:bg-\[\#2383E2\]\/14::after {
1080
- content: var(--tw-content);
1081
- background-color: color-mix(in oklab, #2383E2 14%, transparent);
1082
- }
1083
924
  .komc\:after\:font-bold::after {
1084
925
  content: var(--tw-content);
1085
926
  --tw-font-weight: var(--komc-font-weight-bold);
1086
927
  font-weight: var(--komc-font-weight-bold);
1087
928
  }
1088
- .komc\:after\:opacity-0::after {
1089
- content: var(--tw-content);
1090
- opacity: 0%;
1091
- }
1092
- .komc\:after\:opacity-100::after {
1093
- content: var(--tw-content);
1094
- opacity: 100%;
1095
- }
1096
- .komc\:after\:transition-opacity::after {
1097
- content: var(--tw-content);
1098
- transition-property: opacity;
1099
- transition-timing-function: var(--tw-ease, var(--komc-default-transition-timing-function));
1100
- transition-duration: var(--tw-duration, var(--komc-default-transition-duration));
1101
- }
1102
- .komc\:after\:duration-200::after {
1103
- content: var(--tw-content);
1104
- --tw-duration: 200ms;
1105
- transition-duration: 200ms;
1106
- }
1107
- .komc\:after\:ease-in-out::after {
1108
- content: var(--tw-content);
1109
- --tw-ease: var(--komc-ease-in-out);
1110
- transition-timing-function: var(--komc-ease-in-out);
1111
- }
1112
- .komc\:after\:content-\[\"\"\]::after {
1113
- --tw-content: "";
1114
- content: var(--tw-content);
1115
- }
1116
929
  .komc\:after\:content-\[attr\(data-text\)\]::after {
1117
930
  --tw-content: attr(data-text);
1118
931
  content: var(--tw-content);
@@ -1122,17 +935,7 @@
1122
935
  -webkit-user-select: none;
1123
936
  user-select: none;
1124
937
  }
1125
- .komc\:focus-within\:border-blue-500:focus-within {
1126
- border-color: var(--komc-color-blue-500);
1127
- }
1128
- .komc\:focus-within\:ring-4:focus-within {
1129
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1130
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1131
- }
1132
938
  @media (hover: hover) {
1133
- .komc\:hover\:z-1:hover {
1134
- z-index: 1;
1135
- }
1136
939
  .komc\:hover\:border-transparent:hover {
1137
940
  border-color: transparent;
1138
941
  }
@@ -1145,9 +948,6 @@
1145
948
  .komc\:hover\:bg-blue-500:hover {
1146
949
  background-color: var(--komc-color-blue-500);
1147
950
  }
1148
- .komc\:hover\:bg-blue-600:hover {
1149
- background-color: var(--komc-color-blue-600);
1150
- }
1151
951
  .komc\:hover\:bg-gray-100:hover {
1152
952
  background-color: var(--komc-color-gray-100);
1153
953
  }
@@ -1200,9 +1000,6 @@
1200
1000
  text-decoration-line: underline;
1201
1001
  }
1202
1002
  }
1203
- .komc\:active\:cursor-grabbing:active {
1204
- cursor: grabbing;
1205
- }
1206
1003
  .komc\:active\:border-transparent:active {
1207
1004
  border-color: transparent;
1208
1005
  }
@@ -1257,9 +1054,6 @@
1257
1054
  .komc\:active\:underline:active {
1258
1055
  text-decoration-line: underline;
1259
1056
  }
1260
- .komc\:disabled\:pointer-events-none:disabled {
1261
- pointer-events: none;
1262
- }
1263
1057
  .komc\:disabled\:cursor-default:disabled {
1264
1058
  cursor: default;
1265
1059
  }
@@ -1290,45 +1084,6 @@
1290
1084
  .komc\:disabled\:text-gray-800:disabled {
1291
1085
  color: var(--komc-color-gray-800);
1292
1086
  }
1293
- :is(.komc\:\*\:data-komc-node-clip\:opacity-100 > *)[data-komc-node-clip] {
1294
- opacity: 100%;
1295
- }
1296
- :is(.komc\:\*\:data-komc-node-clip\:outline-0 > *)[data-komc-node-clip] {
1297
- outline-style: var(--tw-outline-style);
1298
- outline-width: 0px;
1299
- }
1300
- :is(.komc\:\*\:data-komc-node-clip\:-outline-offset-1 > *)[data-komc-node-clip] {
1301
- outline-offset: calc(1px * -1);
1302
- }
1303
- :is(.komc\:\*\:data-komc-node-clip\:outline-gray-700 > *)[data-komc-node-clip] {
1304
- outline-color: var(--komc-color-gray-700);
1305
- }
1306
- :is(.komc\:\*\:data-komc-node-clip\:transition-opacity > *)[data-komc-node-clip] {
1307
- transition-property: opacity;
1308
- transition-timing-function: var(--tw-ease, var(--komc-default-transition-timing-function));
1309
- transition-duration: var(--tw-duration, var(--komc-default-transition-duration));
1310
- }
1311
- :is(.komc\:\*\:data-komc-node-clip\:duration-200 > *)[data-komc-node-clip] {
1312
- --tw-duration: 200ms;
1313
- transition-duration: 200ms;
1314
- }
1315
- :is(.komc\:\*\:data-komc-node-clip\:ease-in-out > *)[data-komc-node-clip] {
1316
- --tw-ease: var(--komc-ease-in-out);
1317
- transition-timing-function: var(--komc-ease-in-out);
1318
- }
1319
- :is(.komc\:\*\:data-komc-node-clip\:outline-none > *)[data-komc-node-clip] {
1320
- --tw-outline-style: none;
1321
- outline-style: none;
1322
- }
1323
- @media (hover: hover) {
1324
- :is(.komc\:hover\:\*\:data-komc-node-clip\:opacity-70:hover > *)[data-komc-node-clip] {
1325
- opacity: 70%;
1326
- }
1327
- :is(.komc\:hover\:\*\:data-komc-node-clip\:outline-3:hover > *)[data-komc-node-clip] {
1328
- outline-style: var(--tw-outline-style);
1329
- outline-width: 3px;
1330
- }
1331
- }
1332
1087
  .komc\:data-\[state\=closed\]\:scale-95[data-state="closed"] {
1333
1088
  --tw-scale-x: 95%;
1334
1089
  --tw-scale-y: 95%;
@@ -1639,11 +1394,6 @@
1639
1394
  initial-value: "";
1640
1395
  inherits: false;
1641
1396
  }
1642
- @property --tw-outline-style {
1643
- syntax: "*";
1644
- inherits: false;
1645
- initial-value: solid;
1646
- }
1647
1397
  @property --tw-scale-x {
1648
1398
  syntax: "*";
1649
1399
  inherits: false;
@@ -1713,7 +1463,6 @@
1713
1463
  --tw-duration: initial;
1714
1464
  --tw-ease: initial;
1715
1465
  --tw-content: "";
1716
- --tw-outline-style: solid;
1717
1466
  --tw-scale-x: 1;
1718
1467
  --tw-scale-y: 1;
1719
1468
  --tw-scale-z: 1;