@code0-tech/pictor 0.7.1 → 0.8.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.
@@ -1 +1 @@
1
- .editor-input{width:100%;flex:1 1 auto;overflow:hidden;padding:.59rem 0;position:relative;align-self:stretch}.editor-input .cm-editor{height:100%;outline:none!important}.editor-input .cm-content{padding:0;position:relative}.editor-input .cm-line{align-self:stretch;padding-left:0}
1
+ .editor-input{width:100%;flex:1 1 auto;overflow:hidden;padding:.59rem 0;position:relative;align-self:stretch}.editor-input .cm-editor{height:100%;outline:none!important}.editor-input .cm-content{padding:0;position:relative}.editor-input .cm-line{align-self:stretch;padding-left:0}.editor-input .cm-cursor{border-width:2px;border-radius:50rem;border-color:#fff}
@@ -0,0 +1 @@
1
+ .file-input__item-group{margin:0;padding:0}.file-input__item-preview{max-width:50px;max-height:50px;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.file-input__item-preview-image{object-fit:cover;width:100%;height:100%}
@@ -1 +1 @@
1
- .input-wrapper{display:flex;z-index:1;width:100%;align-items:start;box-sizing:border-box;gap:.175rem}.input-wrapper{background:#201e2c;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.input-wrapper:hover{background:#bfbfbf26;box-shadow:inset 0 1px 1px #ffffff1a}.input-wrapper:active,.input-wrapper:focus,.input-wrapper[aria-selected=true],.input-wrapper[data-state=open]{background:#bfbfbf33;box-shadow:inset 0 1px 1px #ffffff1a;outline:none}.input-wrapper{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:1rem}.input-wrapper:has(.input-wrapper__control:focus){background:#bfbfbf33;box-shadow:inset 0 1px 1px #ffffff1a;outline:none}.input-wrapper--not-valid{background:#1c0516;box-shadow:inset 0 1px 1px #d904291a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.input-wrapper>:first-child{padding-left:.7rem}.input-wrapper__left,.input-wrapper__right{display:flex;align-items:center;justify-content:center;min-height:30px;gap:.7rem;margin:.175rem}.input-wrapper__left>button,.input-wrapper__right>button{height:100%;padding-left:0;padding-right:0}.input-wrapper__left--action,.input-wrapper__right--action{padding:0}.input-wrapper__left--placeholder,.input-wrapper__right--placeholder{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:.825rem;padding:.7rem;box-shadow:none}.input-wrapper__left--icon,.input-wrapper__right--icon{align-items:center}
1
+ .input-wrapper{display:flex;z-index:1;width:100%;align-items:start;box-sizing:border-box;gap:.175rem}.input-wrapper{background:#201e2c;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.input-wrapper:hover{background:#bfbfbf26;box-shadow:inset 0 1px 1px #ffffff1a}.input-wrapper:active,.input-wrapper:focus,.input-wrapper[aria-selected=true],.input-wrapper[data-state=open]{background:#bfbfbf33;box-shadow:inset 0 1px 1px #ffffff1a;outline:none}.input-wrapper{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:1rem}.input-wrapper:has(.input-wrapper__control:focus){background:#bfbfbf33;box-shadow:inset 0 1px 1px #ffffff1a;outline:none}.input-wrapper--not-valid{background:#1c0516;box-shadow:inset 0 1px 1px #d904291a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.input-wrapper>:first-child{padding-left:.7rem}.input-wrapper__left,.input-wrapper__right{display:flex;align-items:center;justify-content:center;min-height:30px;gap:.7rem;margin:.175rem}.input-wrapper__left--action,.input-wrapper__right--action{padding:0}.input-wrapper__left--placeholder,.input-wrapper__right--placeholder{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:.825rem;padding:.7rem;box-shadow:none}.input-wrapper__left--icon,.input-wrapper__right--icon{align-items:center}
@@ -1 +1 @@
1
- .select-input__content{padding:.35rem;position:relative;box-sizing:border-box;z-index:999}.select-input__content{border-radius:1rem}.select-input__item{border-radius:.65rem;padding:.35rem .7rem;gap:.7rem;cursor:pointer;width:100%;display:flex;align-items:center;font-size:.8rem}.select-input__item{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.select-input__item:focus{outline:none}.select-input__item{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.select-input__item:disabled,.select-input__item[data-disabled],.select-input__item[aria-disabled=true],.select-input__item--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.select-input__item{box-shadow:none}.select-input__item:focus,.select-input__item[data-focus=true]{background:#191825;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none;width:100%}.select-input__trigger{height:-webkit-fill-available;height:stretch;width:100%;position:relative;align-self:stretch;cursor:pointer}.select-input__content--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--secondary{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--tertiary{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--success{background:#0a1814;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--warning{background:#201813;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--error{background:#1c0516;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--info{background:#121e24;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}
1
+ .select-input__content{padding:.35rem;position:relative;box-sizing:border-box;z-index:999}.select-input__content{border-radius:1rem}.select-input__item{border-radius:.65rem;padding:.35rem .7rem;gap:.7rem;cursor:pointer;width:100%;display:flex;align-items:center;font-size:.8rem}.select-input__item{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.select-input__item:focus{outline:none}.select-input__item{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.select-input__item:disabled,.select-input__item[data-disabled],.select-input__item[aria-disabled=true],.select-input__item--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.select-input__item{box-shadow:none}.select-input__item:focus,.select-input__item[data-focus=true]{background:#191825;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none;width:100%}.select-input__trigger{width:100%;position:relative;align-self:stretch;cursor:pointer}.select-input__content--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--secondary{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--tertiary{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--success{background:#0a1814;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--warning{background:#201813;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--error{background:#1c0516;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}.select-input__content--info{background:#121e24;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 2px solid}
@@ -6,7 +6,7 @@ import "react";
6
6
  import { mergeComponentProps as r } from "../../utils/component.js";
7
7
  import "js-md5";
8
8
  import { DialogPortal as u, DialogContent as h, Dialog as g, DialogOverlay as C } from "../dialog/Dialog.js";
9
- import '../../assets/components/form/SelectInput.style.css';import '../../assets/components/form/EditorInput.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/command/Command.style.css';/* empty css */
9
+ import '../../assets/components/form/SelectInput.style.css';import '../../assets/components/form/FileInput.style.css';import '../../assets/components/form/EditorInput.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/command/Command.style.css';/* empty css */
10
10
  import { Badge as _ } from "../badge/Badge.js";
11
11
  import "@radix-ui/react-checkbox";
12
12
  import "@tabler/icons-react";
@@ -17,6 +17,8 @@ import "@uiw/codemirror-themes";
17
17
  import "../../node_modules/@lezer/highlight/dist/index.js";
18
18
  /* empty css */
19
19
  import "../form/EmailInput.js";
20
+ import "@ark-ui/react";
21
+ /* empty css */
20
22
  import "../form/Input.js";
21
23
  import "../form/InputSuggestion.js";
22
24
  import "../form/NumberInput.js";
@@ -35,7 +37,7 @@ const P = (e) => {
35
37
  const o = m;
36
38
  let n;
37
39
  return t[2] !== o ? (n = /* @__PURE__ */ i(a, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
38
- }, X = (e) => {
40
+ }, Z = (e) => {
39
41
  const t = c.c(11);
40
42
  let m;
41
43
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(C, {}), t[0] = m) : m = t[0];
@@ -48,14 +50,14 @@ const P = (e) => {
48
50
  ] }), t[3] = e.contentProps, t[4] = o, t[5] = n) : n = t[5];
49
51
  let l;
50
52
  return t[6] !== e.dialogProps || t[7] !== e.onOpenChange || t[8] !== e.open || t[9] !== n ? (l = /* @__PURE__ */ i(g, { ...e.dialogProps, open: e.open, onOpenChange: e.onOpenChange, children: n }), t[6] = e.dialogProps, t[7] = e.onOpenChange, t[8] = e.open, t[9] = n, t[10] = l) : l = t[10], l;
51
- }, Y = (e) => {
53
+ }, p = (e) => {
52
54
  const t = c.c(4);
53
55
  let m;
54
56
  t[0] !== e ? (m = r("command__list", e), t[0] = e, t[1] = m) : m = t[1];
55
57
  const o = m;
56
58
  let n;
57
59
  return t[2] !== o ? (n = /* @__PURE__ */ i(a.List, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
58
- }, Z = (e) => {
60
+ }, tt = (e) => {
59
61
  const t = c.c(10);
60
62
  let m;
61
63
  t[0] !== e.value ? (m = e.value?.toString(), t[0] = e.value, t[1] = m) : m = t[1];
@@ -74,35 +76,35 @@ const P = (e) => {
74
76
  t[4] !== e ? (n = /* @__PURE__ */ i($, { className: "command__input", ...e }), t[4] = e, t[5] = n) : n = t[5];
75
77
  let l;
76
78
  return t[6] !== m || t[7] !== o || t[8] !== n ? (l = /* @__PURE__ */ i(a.Input, { value: m, onValueChange: o, asChild: !0, children: n }), t[6] = m, t[7] = o, t[8] = n, t[9] = l) : l = t[9], l;
77
- }, p = (e) => {
79
+ }, et = (e) => {
78
80
  const t = c.c(4);
79
81
  let m;
80
82
  t[0] !== e ? (m = r("command__empty", e), t[0] = e, t[1] = m) : m = t[1];
81
83
  const o = m;
82
84
  let n;
83
85
  return t[2] !== o ? (n = /* @__PURE__ */ i(a.Empty, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
84
- }, tt = (e) => {
86
+ }, nt = (e) => {
85
87
  const t = c.c(4);
86
88
  let m;
87
89
  t[0] !== e ? (m = r("command__group", e), t[0] = e, t[1] = m) : m = t[1];
88
90
  const o = m;
89
91
  let n;
90
92
  return t[2] !== o ? (n = /* @__PURE__ */ i(a.Group, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
91
- }, et = (e) => {
93
+ }, mt = (e) => {
92
94
  const t = c.c(4);
93
95
  let m;
94
96
  t[0] !== e ? (m = r("command__item", e), t[0] = e, t[1] = m) : m = t[1];
95
97
  const o = m;
96
98
  let n;
97
99
  return t[2] !== o ? (n = /* @__PURE__ */ i(a.Item, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
98
- }, nt = (e) => {
100
+ }, ot = (e) => {
99
101
  const t = c.c(4);
100
102
  let m;
101
103
  t[0] !== e ? (m = r("command__separator", e), t[0] = e, t[1] = m) : m = t[1];
102
104
  const o = m;
103
105
  let n;
104
106
  return t[2] !== o ? (n = /* @__PURE__ */ i(a.Separator, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
105
- }, mt = (e) => {
107
+ }, it = (e) => {
106
108
  const t = c.c(5);
107
109
  let m;
108
110
  t[0] !== e ? (m = r("command__shortcut", e), t[0] = e, t[1] = m) : m = t[1];
@@ -112,12 +114,12 @@ const P = (e) => {
112
114
  };
113
115
  export {
114
116
  P as Command,
115
- X as CommandDialog,
116
- p as CommandEmpty,
117
- tt as CommandGroup,
118
- Z as CommandInput,
119
- et as CommandItem,
120
- Y as CommandList,
121
- nt as CommandSeparator,
122
- mt as CommandShortcut
117
+ Z as CommandDialog,
118
+ et as CommandEmpty,
119
+ nt as CommandGroup,
120
+ tt as CommandInput,
121
+ mt as CommandItem,
122
+ p as CommandList,
123
+ ot as CommandSeparator,
124
+ it as CommandShortcut
123
125
  };
@@ -296,7 +296,7 @@ const De = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array
296
296
  if (I(e), t === "json")
297
297
  try {
298
298
  const d = JSON.parse(e);
299
- q?.(d), Z?.setValue(d);
299
+ q?.(d), Z?.setValue?.(d);
300
300
  } catch {
301
301
  }
302
302
  else
@@ -26,7 +26,7 @@ const ee = (l) => {
26
26
  const i = x, [t, R] = z.useState(l.initialValue ?? "indeterminate");
27
27
  let g;
28
28
  e[2] !== t || e[3] !== i ? (g = () => {
29
- i.setValue(t);
29
+ i.setValue?.(t);
30
30
  }, e[2] = t, e[3] = i, e[4] = g) : g = e[4];
31
31
  let v;
32
32
  e[5] !== t ? (v = [t], e[5] = t, e[6] = v) : v = e[6], z.useEffect(g, v);
@@ -56,7 +56,7 @@ const N = (i) => {
56
56
  }, ...r]
57
57
  }), [r]);
58
58
  return /* @__PURE__ */ a(y, { title: g, description: u, right: s, left: m, rightType: l, leftType: c, formValidation: o, children: /* @__PURE__ */ a(T, { extensions: d, onChange: (n) => {
59
- o?.setValue(n), f?.(n);
59
+ o?.setValue?.(n), f?.(n);
60
60
  }, theme: k, ...C("editor-input", b), basicSetup: {
61
61
  lineNumbers: !1,
62
62
  foldGutter: !1,
@@ -0,0 +1,32 @@
1
+ import { default as React } from 'react';
2
+ import { Code0Input } from './Input';
3
+ import { ValidationProps } from './useForm';
4
+ import { ComponentProps } from '../../utils';
5
+ import * as ArkUi from "@ark-ui/react";
6
+ export type FileInputProps = {
7
+ title?: React.ReactNode;
8
+ description?: React.ReactNode;
9
+ } & Code0Input & ValidationProps<ArkUi.FileUploadFileChangeDetails | undefined> & ArkUi.FileUploadRootProps;
10
+ export type FileInputDropzoneProps = ComponentProps & ArkUi.FileUploadDropzoneProps;
11
+ export type FileInputTriggerProps = ComponentProps & ArkUi.FileUploadTriggerProps;
12
+ export type FileInputItemGroupProps = ComponentProps & ArkUi.FileUploadItemGroupProps;
13
+ export type FileInputItemProps = ComponentProps & ArkUi.FileUploadItemProps;
14
+ export type FileInputItemPreviewProps = ComponentProps & ArkUi.FileUploadItemPreviewProps;
15
+ export type FileInputItemPreviewImageProps = ComponentProps & ArkUi.FileUploadItemPreviewImageProps;
16
+ export type FileInputItemNameProps = ComponentProps & ArkUi.FileUploadItemNameProps;
17
+ export type FileInputItemSizeTextProps = ComponentProps & ArkUi.FileUploadItemSizeTextProps;
18
+ export type FileInputItemDeleteTriggerProps = ComponentProps & ArkUi.FileUploadItemDeleteTriggerProps;
19
+ export type FileInputHiddenInputProps = ComponentProps & ArkUi.FileUploadHiddenInputProps;
20
+ export type FileInputContextProps = ArkUi.FileUploadContextProps;
21
+ export declare const FileInput: React.FC<FileInputProps>;
22
+ export declare const FileInputDropzone: React.FC<FileInputDropzoneProps>;
23
+ export declare const FileInputTrigger: React.FC<FileInputTriggerProps>;
24
+ export declare const FileInputItemGroup: React.FC<FileInputItemGroupProps>;
25
+ export declare const FileInputItem: React.FC<FileInputItemProps>;
26
+ export declare const FileInputItemPreview: React.FC<FileInputItemPreviewProps>;
27
+ export declare const FileInputItemPreviewImage: React.FC<FileInputItemPreviewImageProps>;
28
+ export declare const FileInputItemName: React.FC<FileInputItemNameProps>;
29
+ export declare const FileInputItemSizeText: React.FC<FileInputItemSizeTextProps>;
30
+ export declare const FileInputItemDeleteTrigger: React.FC<FileInputItemDeleteTriggerProps>;
31
+ export declare const FileInputHiddenInput: React.FC<FileInputHiddenInputProps>;
32
+ export declare const FileInputContext: React.FC<FileInputContextProps>;
@@ -0,0 +1,124 @@
1
+ import { jsx as n, jsxs as T } from "react/jsx-runtime";
2
+ import { c as r } from "../../_virtual/compiler-runtime.js";
3
+ import * as m from "@ark-ui/react";
4
+ import "../../utils/contextStore.js";
5
+ import "react";
6
+ import { mergeComponentProps as c } from "../../utils/component.js";
7
+ import "js-md5";
8
+ import { InputLabel as w } from "./InputLabel.js";
9
+ import { InputDescription as z } from "./InputDescription.js";
10
+ import { InputMessage as v } from "./InputMessage.js";
11
+ import '../../assets/components/form/FileInput.style.css';/* empty css */
12
+ const S = (l) => {
13
+ const e = r.c(20);
14
+ let t, i, o, s, a, f;
15
+ if (e[0] !== l) {
16
+ const {
17
+ title: U,
18
+ description: $,
19
+ formValidation: h,
20
+ children: x,
21
+ ..._
22
+ } = l;
23
+ f = U, o = $, s = h, i = x, t = m.FileUploadRoot, a = c("file-input", {
24
+ ..._,
25
+ onFileChange: (p) => {
26
+ console.log(p), s?.setValue?.(p), setTimeout(() => _.onFileChange?.(p), 1e3);
27
+ }
28
+ }), e[0] = l, e[1] = t, e[2] = i, e[3] = o, e[4] = s, e[5] = a, e[6] = f;
29
+ } else
30
+ t = e[1], i = e[2], o = e[3], s = e[4], a = e[5], f = e[6];
31
+ const g = a;
32
+ let u;
33
+ e[7] !== f ? (u = f && /* @__PURE__ */ n(w, { children: f }), e[7] = f, e[8] = u) : u = e[8];
34
+ let d;
35
+ e[9] !== o ? (d = o && /* @__PURE__ */ n(z, { children: o }), e[9] = o, e[10] = d) : d = e[10];
36
+ let I;
37
+ e[11] !== s ? (I = !s?.valid && s?.notValidMessage && /* @__PURE__ */ n(v, { children: s.notValidMessage }), e[11] = s, e[12] = I) : I = e[12];
38
+ let F;
39
+ return e[13] !== t || e[14] !== i || e[15] !== g || e[16] !== u || e[17] !== d || e[18] !== I ? (F = /* @__PURE__ */ T(t, { ...g, children: [
40
+ u,
41
+ d,
42
+ i,
43
+ I
44
+ ] }), e[13] = t, e[14] = i, e[15] = g, e[16] = u, e[17] = d, e[18] = I, e[19] = F) : F = e[19], F;
45
+ }, b = (l) => {
46
+ const e = r.c(4);
47
+ let t;
48
+ e[0] !== l ? (t = c("file-input__dropzone", l), e[0] = l, e[1] = t) : t = e[1];
49
+ let i;
50
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadDropzone, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
51
+ }, k = (l) => {
52
+ const e = r.c(4);
53
+ let t;
54
+ e[0] !== l ? (t = c("file-input__trigger", l), e[0] = l, e[1] = t) : t = e[1];
55
+ let i;
56
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadTrigger, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
57
+ }, A = (l) => {
58
+ const e = r.c(4);
59
+ let t;
60
+ e[0] !== l ? (t = c("file-input__item-group", l), e[0] = l, e[1] = t) : t = e[1];
61
+ let i;
62
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadItemGroup, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
63
+ }, E = (l) => {
64
+ const e = r.c(4);
65
+ let t;
66
+ e[0] !== l ? (t = c("file-input__item", l), e[0] = l, e[1] = t) : t = e[1];
67
+ const i = t;
68
+ let o;
69
+ return e[2] !== i ? (o = /* @__PURE__ */ n(m.FileUploadItem, { ...i }), e[2] = i, e[3] = o) : o = e[3], o;
70
+ }, L = (l) => {
71
+ const e = r.c(4);
72
+ let t;
73
+ e[0] !== l ? (t = c("file-input__item-preview", l), e[0] = l, e[1] = t) : t = e[1];
74
+ let i;
75
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadItemPreview, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
76
+ }, q = (l) => {
77
+ const e = r.c(4);
78
+ let t;
79
+ e[0] !== l ? (t = c("file-input__item-preview-image", l), e[0] = l, e[1] = t) : t = e[1];
80
+ let i;
81
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadItemPreviewImage, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
82
+ }, y = (l) => {
83
+ const e = r.c(4);
84
+ let t;
85
+ e[0] !== l ? (t = c("file-input__item-name", l), e[0] = l, e[1] = t) : t = e[1];
86
+ let i;
87
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadItemName, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
88
+ }, B = (l) => {
89
+ const e = r.c(4);
90
+ let t;
91
+ e[0] !== l ? (t = c("file-input__item-size-text", l), e[0] = l, e[1] = t) : t = e[1];
92
+ let i;
93
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadItemSizeText, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
94
+ }, J = (l) => {
95
+ const e = r.c(4);
96
+ let t;
97
+ e[0] !== l ? (t = c("file-input__item-delete-trigger", l), e[0] = l, e[1] = t) : t = e[1];
98
+ let i;
99
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadItemDeleteTrigger, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
100
+ }, K = (l) => {
101
+ const e = r.c(4);
102
+ let t;
103
+ e[0] !== l ? (t = c("file-input__hidden-input", l), e[0] = l, e[1] = t) : t = e[1];
104
+ let i;
105
+ return e[2] !== t ? (i = /* @__PURE__ */ n(m.FileUploadHiddenInput, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
106
+ }, O = (l) => {
107
+ const e = r.c(2);
108
+ let t;
109
+ return e[0] !== l ? (t = /* @__PURE__ */ n(m.FileUploadContext, { ...l }), e[0] = l, e[1] = t) : t = e[1], t;
110
+ };
111
+ export {
112
+ S as FileInput,
113
+ O as FileInputContext,
114
+ b as FileInputDropzone,
115
+ K as FileInputHiddenInput,
116
+ E as FileInputItem,
117
+ J as FileInputItemDeleteTrigger,
118
+ A as FileInputItemGroup,
119
+ y as FileInputItemName,
120
+ L as FileInputItemPreview,
121
+ q as FileInputItemPreviewImage,
122
+ B as FileInputItemSizeText,
123
+ k as FileInputTrigger
124
+ };
@@ -29,7 +29,7 @@ const B = (n) => {
29
29
  e[11] !== h ? (l = V(h, {}), e[11] = h, e[12] = l) : l = e[12], t = T, d = V("pin-input", {
30
30
  ...g,
31
31
  onValueChange: (v) => {
32
- g.onValueChange && g.onValueChange(v), i.setValue(v);
32
+ g.onValueChange && g.onValueChange(v), i.setValue?.(v);
33
33
  }
34
34
  }), e[0] = n, e[1] = t, e[2] = i, e[3] = d, e[4] = l, e[5] = o, e[6] = s;
35
35
  } else
@@ -27,7 +27,7 @@ const y = (s) => {
27
27
  } : V, e[7] !== d ? (i = d ? /* @__PURE__ */ f(G, { children: d }) : null, e[7] = d, e[8] = i) : i = e[8], e[9] !== p ? (l = p ? /* @__PURE__ */ f(I, { children: p }) : null, e[9] = p, e[10] = l) : l = e[10], o = M.RadioGroup, r = h ?? s.defaultValue, a = v("radio-group", {
28
28
  ...c,
29
29
  onValueChange: (g) => {
30
- c.onValueChange && c.onValueChange(g), t.setValue(g);
30
+ c.onValueChange && c.onValueChange(g), t.setValue?.(g);
31
31
  }
32
32
  }), e[0] = s, e[1] = o, e[2] = t, e[3] = r, e[4] = a, e[5] = i, e[6] = l;
33
33
  } else
@@ -5,81 +5,81 @@ import "../../utils/contextStore.js";
5
5
  import "react";
6
6
  import { mergeComponentProps as f } from "../../utils/component.js";
7
7
  import "js-md5";
8
- import { InputWrapper as p } from "./InputWrapper.js";
8
+ import { InputWrapper as R } from "./InputWrapper.js";
9
9
  import '../../assets/components/form/SelectInput.style.css';/* empty css */
10
- const A = (n) => {
10
+ const A = (i) => {
11
11
  const t = r.c(24);
12
- let e, l, i, c, m, u, a, _, g, T;
13
- if (t[0] !== n) {
12
+ let e, l, n, c, m, u, a, _, g, T;
13
+ if (t[0] !== i) {
14
14
  const {
15
- title: C,
16
- description: I,
17
- left: y,
18
- leftType: w,
19
- rightType: P,
20
- right: R,
15
+ title: I,
16
+ description: y,
17
+ left: C,
18
+ leftType: p,
19
+ rightType: w,
20
+ right: P,
21
21
  formValidation: h,
22
22
  ...x
23
- } = n;
24
- l = p, c = C, m = I, u = y, a = w, _ = R, g = P, T = h, e = s.Root, i = f("select-input", {
23
+ } = i;
24
+ l = R, c = I, m = y, u = C, a = p, _ = P, g = w, T = h, e = s.Root, n = f("select-input", {
25
25
  ...x,
26
26
  onValueChange: (d) => {
27
- h?.setValue(d), x.onValueChange?.(d), n.onChange?.({});
27
+ h?.setValue?.(d), x.onValueChange?.(d);
28
28
  }
29
- }), t[0] = n, t[1] = e, t[2] = l, t[3] = i, t[4] = c, t[5] = m, t[6] = u, t[7] = a, t[8] = _, t[9] = g, t[10] = T;
29
+ }), t[0] = i, t[1] = e, t[2] = l, t[3] = n, t[4] = c, t[5] = m, t[6] = u, t[7] = a, t[8] = _, t[9] = g, t[10] = T;
30
30
  } else
31
- e = t[1], l = t[2], i = t[3], c = t[4], m = t[5], u = t[6], a = t[7], _ = t[8], g = t[9], T = t[10];
32
- const $ = i;
31
+ e = t[1], l = t[2], n = t[3], c = t[4], m = t[5], u = t[6], a = t[7], _ = t[8], g = t[9], T = t[10];
32
+ const $ = n;
33
33
  let S;
34
34
  t[11] !== e || t[12] !== $ ? (S = /* @__PURE__ */ o(e, { ...$ }), t[11] = e, t[12] = $, t[13] = S) : S = t[13];
35
35
  let V;
36
36
  return t[14] !== l || t[15] !== c || t[16] !== m || t[17] !== u || t[18] !== a || t[19] !== _ || t[20] !== g || t[21] !== T || t[22] !== S ? (V = /* @__PURE__ */ o(l, { title: c, description: m, left: u, leftType: a, right: _, rightType: g, formValidation: T, children: S }), t[14] = l, t[15] = c, t[16] = m, t[17] = u, t[18] = a, t[19] = _, t[20] = g, t[21] = T, t[22] = S, t[23] = V) : V = t[23], V;
37
- }, B = (n) => {
37
+ }, B = (i) => {
38
38
  const t = r.c(4);
39
39
  let e;
40
- t[0] !== n ? (e = f("select-input__trigger", n), t[0] = n, t[1] = e) : e = t[1];
40
+ t[0] !== i ? (e = f("select-input__trigger", i), t[0] = i, t[1] = e) : e = t[1];
41
41
  let l;
42
42
  return t[2] !== e ? (l = /* @__PURE__ */ o(s.Trigger, { ...e }), t[2] = e, t[3] = l) : l = t[3], l;
43
- }, D = (n) => {
43
+ }, D = (i) => {
44
44
  const t = r.c(4);
45
45
  let e;
46
- t[0] !== n ? (e = f("select-input__value", n), t[0] = n, t[1] = e) : e = t[1];
46
+ t[0] !== i ? (e = f("select-input__value", i), t[0] = i, t[1] = e) : e = t[1];
47
47
  let l;
48
48
  return t[2] !== e ? (l = /* @__PURE__ */ o(s.Value, { ...e }), t[2] = e, t[3] = l) : l = t[3], l;
49
- }, F = (n) => {
50
- const t = r.c(5), e = `select-input__content select-input__content--${n.color ?? "primary"}`;
49
+ }, F = (i) => {
50
+ const t = r.c(5), e = `select-input__content select-input__content--${i.color ?? "primary"}`;
51
51
  let l;
52
- t[0] !== n || t[1] !== e ? (l = f(e, n), t[0] = n, t[1] = e, t[2] = l) : l = t[2];
53
- const i = l;
52
+ t[0] !== i || t[1] !== e ? (l = f(e, i), t[0] = i, t[1] = e, t[2] = l) : l = t[2];
53
+ const n = l;
54
54
  let c;
55
- return t[3] !== i ? (c = /* @__PURE__ */ o(s.Content, { ...i }), t[3] = i, t[4] = c) : c = t[4], c;
56
- }, G = (n) => {
55
+ return t[3] !== n ? (c = /* @__PURE__ */ o(s.Content, { ...n }), t[3] = n, t[4] = c) : c = t[4], c;
56
+ }, G = (i) => {
57
57
  const t = r.c(4);
58
58
  let e;
59
- t[0] !== n ? (e = f("select-input__portal", n), t[0] = n, t[1] = e) : e = t[1];
59
+ t[0] !== i ? (e = f("select-input__portal", i), t[0] = i, t[1] = e) : e = t[1];
60
60
  const l = e;
61
- let i;
62
- return t[2] !== l ? (i = /* @__PURE__ */ o(s.Portal, { ...l }), t[2] = l, t[3] = i) : i = t[3], i;
63
- }, H = (n) => {
61
+ let n;
62
+ return t[2] !== l ? (n = /* @__PURE__ */ o(s.Portal, { ...l }), t[2] = l, t[3] = n) : n = t[3], n;
63
+ }, H = (i) => {
64
64
  const t = r.c(4);
65
65
  let e;
66
- t[0] !== n ? (e = f("select-input__viewport", n), t[0] = n, t[1] = e) : e = t[1];
66
+ t[0] !== i ? (e = f("select-input__viewport", i), t[0] = i, t[1] = e) : e = t[1];
67
67
  let l;
68
68
  return t[2] !== e ? (l = /* @__PURE__ */ o(s.Viewport, { ...e }), t[2] = e, t[3] = l) : l = t[3], l;
69
- }, J = (n) => {
69
+ }, J = (i) => {
70
70
  const t = r.c(4);
71
71
  let e;
72
- t[0] !== n ? (e = f("select-input__item", n), t[0] = n, t[1] = e) : e = t[1];
72
+ t[0] !== i ? (e = f("select-input__item", i), t[0] = i, t[1] = e) : e = t[1];
73
73
  const l = e;
74
- let i;
75
- return t[2] !== l ? (i = /* @__PURE__ */ o(s.Item, { ...l }), t[2] = l, t[3] = i) : i = t[3], i;
76
- }, K = (n) => {
74
+ let n;
75
+ return t[2] !== l ? (n = /* @__PURE__ */ o(s.Item, { ...l }), t[2] = l, t[3] = n) : n = t[3], n;
76
+ }, K = (i) => {
77
77
  const t = r.c(4);
78
78
  let e;
79
- t[0] !== n ? (e = f("select-input__item-text", n), t[0] = n, t[1] = e) : e = t[1];
79
+ t[0] !== i ? (e = f("select-input__item-text", i), t[0] = i, t[1] = e) : e = t[1];
80
80
  const l = e;
81
- let i;
82
- return t[2] !== l ? (i = /* @__PURE__ */ o(s.ItemText, { ...l }), t[2] = l, t[3] = i) : i = t[3], i;
81
+ let n;
82
+ return t[2] !== l ? (n = /* @__PURE__ */ o(s.ItemText, { ...l }), t[2] = l, t[3] = n) : n = t[3], n;
83
83
  };
84
84
  export {
85
85
  F as SelectContent,
@@ -1,6 +1,7 @@
1
1
  export * from './CheckboxInput';
2
2
  export * from './EditorInput';
3
3
  export * from './EmailInput';
4
+ export * from './FileInput';
4
5
  export * from './Input';
5
6
  export * from './InputDescription';
6
7
  export * from './InputLabel';
@@ -1,52 +1,65 @@
1
1
  import { CheckboxInput as o } from "./CheckboxInput.js";
2
2
  import { EditorInput as p } from "./EditorInput.js";
3
- import { EmailInput as u, emailValidation as m } from "./EmailInput.js";
4
- import { Input as i } from "./Input.js";
5
- import { InputDescription as f } from "./InputDescription.js";
6
- import { InputLabel as a } from "./InputLabel.js";
7
- import { InputMessage as S } from "./InputMessage.js";
8
- import { InputSuggestionMenuContent as s, InputSuggestionMenuContentItems as g } from "./InputSuggestion.js";
9
- import { NumberInput as b } from "./NumberInput.js";
10
- import { PasswordInput as C, passwordValidation as T } from "./PasswordInput.js";
11
- import { PinInput as F, PinInputField as M, PinInputHiddenField as h } from "./PinInput.js";
12
- import { RadioGroup as E } from "./RadioGroup.js";
13
- import { RadioInput as k } from "./RadioInput.js";
14
- import { SelectContent as A, SelectInput as G, SelectItem as H, SelectItemText as L, SelectPortal as N, SelectTrigger as j, SelectValue as q, SelectViewport as v } from "./SelectInput.js";
15
- import { SwitchInput as B } from "./SwitchInput.js";
16
- import { TextAreaInput as K } from "./TextAreaInput.js";
17
- import { TextInput as Q } from "./TextInput.js";
18
- import { useForm as W } from "./useForm.js";
19
- import { buildDefaultSyntax as Y } from "./Input.syntax.hook.js";
3
+ import { EmailInput as u, emailValidation as I } from "./EmailInput.js";
4
+ import { FileInput as m, FileInputContext as l, FileInputDropzone as x, FileInputHiddenInput as f, FileInputItem as a, FileInputItemDeleteTrigger as F, FileInputItemGroup as d, FileInputItemName as S, FileInputItemPreview as g, FileInputItemPreviewImage as c, FileInputItemSizeText as s, FileInputTrigger as P } from "./FileInput.js";
5
+ import { Input as w } from "./Input.js";
6
+ import { InputDescription as b } from "./InputDescription.js";
7
+ import { InputLabel as V } from "./InputLabel.js";
8
+ import { InputMessage as h } from "./InputMessage.js";
9
+ import { InputSuggestionMenuContent as z, InputSuggestionMenuContentItems as E } from "./InputSuggestion.js";
10
+ import { NumberInput as H } from "./NumberInput.js";
11
+ import { PasswordInput as R, passwordValidation as k } from "./PasswordInput.js";
12
+ import { PinInput as A, PinInputField as L, PinInputHiddenField as j } from "./PinInput.js";
13
+ import { RadioGroup as B } from "./RadioGroup.js";
14
+ import { RadioInput as K } from "./RadioInput.js";
15
+ import { SelectContent as Q, SelectInput as U, SelectItem as W, SelectItemText as X, SelectPortal as Y, SelectTrigger as Z, SelectValue as _, SelectViewport as $ } from "./SelectInput.js";
16
+ import { SwitchInput as te } from "./SwitchInput.js";
17
+ import { TextAreaInput as re } from "./TextAreaInput.js";
18
+ import { TextInput as ne } from "./TextInput.js";
19
+ import { useForm as Ie } from "./useForm.js";
20
+ import { buildDefaultSyntax as me } from "./Input.syntax.hook.js";
20
21
  export {
21
22
  o as CheckboxInput,
22
23
  p as EditorInput,
23
24
  u as EmailInput,
24
- i as Input,
25
- f as InputDescription,
26
- a as InputLabel,
27
- S as InputMessage,
28
- s as InputSuggestionMenuContent,
29
- g as InputSuggestionMenuContentItems,
30
- b as NumberInput,
31
- C as PasswordInput,
32
- F as PinInput,
33
- M as PinInputField,
34
- h as PinInputHiddenField,
35
- E as RadioGroup,
36
- k as RadioInput,
37
- A as SelectContent,
38
- G as SelectInput,
39
- H as SelectItem,
40
- L as SelectItemText,
41
- N as SelectPortal,
42
- j as SelectTrigger,
43
- q as SelectValue,
44
- v as SelectViewport,
45
- B as SwitchInput,
46
- K as TextAreaInput,
47
- Q as TextInput,
48
- Y as buildDefaultSyntax,
49
- m as emailValidation,
50
- T as passwordValidation,
51
- W as useForm
25
+ m as FileInput,
26
+ l as FileInputContext,
27
+ x as FileInputDropzone,
28
+ f as FileInputHiddenInput,
29
+ a as FileInputItem,
30
+ F as FileInputItemDeleteTrigger,
31
+ d as FileInputItemGroup,
32
+ S as FileInputItemName,
33
+ g as FileInputItemPreview,
34
+ c as FileInputItemPreviewImage,
35
+ s as FileInputItemSizeText,
36
+ P as FileInputTrigger,
37
+ w as Input,
38
+ b as InputDescription,
39
+ V as InputLabel,
40
+ h as InputMessage,
41
+ z as InputSuggestionMenuContent,
42
+ E as InputSuggestionMenuContentItems,
43
+ H as NumberInput,
44
+ R as PasswordInput,
45
+ A as PinInput,
46
+ L as PinInputField,
47
+ j as PinInputHiddenField,
48
+ B as RadioGroup,
49
+ K as RadioInput,
50
+ Q as SelectContent,
51
+ U as SelectInput,
52
+ W as SelectItem,
53
+ X as SelectItemText,
54
+ Y as SelectPortal,
55
+ Z as SelectTrigger,
56
+ _ as SelectValue,
57
+ $ as SelectViewport,
58
+ te as SwitchInput,
59
+ re as TextAreaInput,
60
+ ne as TextInput,
61
+ me as buildDefaultSyntax,
62
+ I as emailValidation,
63
+ k as passwordValidation,
64
+ Ie as useForm
52
65
  };
@@ -14,7 +14,7 @@ export interface ValidationProps<Value> {
14
14
  value?: Value | undefined;
15
15
  required?: boolean;
16
16
  formValidation?: {
17
- setValue: (value: any) => void;
17
+ setValue?: (value: any) => void;
18
18
  valid?: boolean;
19
19
  notValidMessage?: string | null;
20
20
  };
@@ -22,7 +22,7 @@ export interface ValidationProps<Value> {
22
22
  export type ValidationsProps<Values> = Partial<{
23
23
  [Key in keyof Values]: ValidationProps<Values[Key]>;
24
24
  }>;
25
- export type FormValidationReturn<Values> = [IValidation<Values>, <Key extends keyof Values>(key?: Key | any) => void];
25
+ export type FormValidationReturn<Values> = [IValidation<Values>, <Key extends keyof Values>(key?: Key | any, submit?: boolean) => void, Values];
26
26
  export interface IValidation<Values> {
27
27
  getInputProps<Key extends keyof Values>(key: Key): ValidationProps<Values[Key]>;
28
28
  isValid(): boolean;
@@ -1,24 +1,24 @@
1
- import { useState as m, useRef as w, useCallback as b, useEffect as j } from "react";
1
+ import j, { useState as g, useRef as y, useCallback as w, useEffect as P } from "react";
2
2
  function o(i, e, t) {
3
- return (e = y(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
3
+ return (e = O(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
4
4
  }
5
- function y(i) {
6
- var e = P(i, "string");
5
+ function O(i) {
6
+ var e = F(i, "string");
7
7
  return typeof e == "symbol" ? e : e + "";
8
8
  }
9
- function P(i, e) {
9
+ function F(i, e) {
10
10
  if (typeof i != "object" || !i) return i;
11
11
  var t = i[Symbol.toPrimitive];
12
12
  if (t !== void 0) {
13
- var a = t.call(i, e);
14
- if (typeof a != "object") return a;
13
+ var n = t.call(i, e);
14
+ if (typeof n != "object") return n;
15
15
  throw new TypeError("@@toPrimitive must return a primitive value.");
16
16
  }
17
17
  return (e === "string" ? String : Number)(i);
18
18
  }
19
- class v {
20
- constructor(e, t, a, u = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map()) {
21
- o(this, "changeValue", void 0), o(this, "currentValues", void 0), o(this, "currentValidations", void 0), o(this, "shouldValidate", void 0), o(this, "cachedMessages", void 0), this.changeValue = e, this.currentValues = t, this.currentValidations = a, this.shouldValidate = u, this.cachedMessages = r;
19
+ class f {
20
+ constructor(e, t, n, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map()) {
21
+ o(this, "changeValue", void 0), o(this, "currentValues", void 0), o(this, "currentValidations", void 0), o(this, "shouldValidate", void 0), o(this, "cachedMessages", void 0), this.changeValue = e, this.currentValues = t, this.currentValidations = n, this.shouldValidate = l, this.cachedMessages = u;
22
22
  }
23
23
  isValid() {
24
24
  if (!this.currentValidations) return !0;
@@ -30,18 +30,18 @@ class v {
30
30
  return !0;
31
31
  }
32
32
  getInputProps(e) {
33
- const t = this.currentValues[e], a = t ?? null, u = e, r = this.currentValidations && this.currentValidations[e] ? this.currentValidations[e] : (l) => null;
34
- let s = null;
35
- return this.shouldValidate.has(e) ? (s = r(t, this.currentValues), this.cachedMessages.set(e, s)) : s = this.cachedMessages.get(e) ?? null, {
33
+ const t = this.currentValues[e], n = t ?? null, l = e, u = this.currentValidations && this.currentValidations[e] ? this.currentValidations[e] : (s) => null;
34
+ let a = null;
35
+ return this.shouldValidate.has(e) ? (a = u(t, this.currentValues), this.cachedMessages.set(e, a)) : a = this.cachedMessages.get(e) ?? null, {
36
36
  // @ts-ignore – z.B. wenn dein Input `defaultValue` kennt
37
- defaultValue: a ?? void 0,
38
- initialValue: a ?? void 0,
37
+ defaultValue: n ?? void 0,
38
+ initialValue: n ?? void 0,
39
39
  formValidation: {
40
- setValue: (l) => {
41
- this.changeValue(u, l);
40
+ setValue: (s) => {
41
+ this.changeValue(l, s);
42
42
  },
43
- notValidMessage: s,
44
- valid: s === null
43
+ notValidMessage: a,
44
+ valid: a === null
45
45
  },
46
46
  ...this.currentValidations && this.currentValidations[e] ? {
47
47
  required: !0
@@ -49,31 +49,28 @@ class v {
49
49
  };
50
50
  }
51
51
  }
52
- const F = (i) => {
52
+ const E = (i) => {
53
53
  const {
54
54
  initialValues: e,
55
55
  validate: t = {},
56
- truthyValidationBeforeSubmit: a = !0,
57
- useInitialValidation: u = !0,
58
- onSubmit: r
59
- } = i, [s, l] = m(e), c = w(e), f = w(/* @__PURE__ */ new Map()), d = b((n, p) => {
60
- l((h) => {
61
- const V = {
62
- ...h,
63
- [n]: p
64
- };
65
- return c.current = V, V;
66
- });
67
- }, []), [M, g] = m(new v(d, s, t, u ? new Map(Object.keys(e).map((n) => [n, !0])) : /* @__PURE__ */ new Map(), f.current));
68
- j(() => {
69
- l(e), c.current = e, g(new v(d, e, t, u ? new Map(Object.keys(e).map((n) => [n, !0])) : /* @__PURE__ */ new Map(), f.current));
70
- }, [e]);
71
- const S = b((n) => {
72
- const p = n && new Set(Object.keys(e)).has(String(n)) ? /* @__PURE__ */ new Map([[n, !0]]) : new Map(Object.keys(e).map((V) => [String(V), !0])), h = new v(d, c.current, t, p, f.current);
73
- g(h), !new Set(Object.keys(e)).has(String(n)) && r && (!a || h.isValid()) && r(c.current);
74
- }, [d, t, r, a, e]);
75
- return [M, S];
56
+ truthyValidationBeforeSubmit: n = !0,
57
+ useInitialValidation: l = !0,
58
+ onSubmit: u
59
+ } = i, a = j.useMemo(() => e, []), [s, p] = g(a), d = y(/* @__PURE__ */ new Map()), c = w((r, h) => {
60
+ p((V) => ({
61
+ ...V,
62
+ [r]: h
63
+ }));
64
+ }, []), [b, v] = g(new f(c, s, t, l ? new Map(Object.keys(a).map((r) => [r, !0])) : /* @__PURE__ */ new Map(), d.current));
65
+ P(() => {
66
+ p(a), v(new f(c, a, t, l ? new Map(Object.keys(a).map((r) => [r, !0])) : /* @__PURE__ */ new Map(), d.current));
67
+ }, [a]);
68
+ const M = w((r, h = !0) => {
69
+ const V = r && new Set(Object.keys(s)).has(String(r)) ? /* @__PURE__ */ new Map([[r, !0]]) : new Map(Object.keys(s).map((S) => [String(S), !0])), m = new f(c, s, t, V, d.current);
70
+ v(m), h && !new Set(Object.keys(s)).has(String(r)) && u && (!n || m.isValid()) && u(s);
71
+ }, [c, t, u, n, s]);
72
+ return [b, M, s];
76
73
  };
77
74
  export {
78
- F as useForm
75
+ E as useForm
79
76
  };
package/dist/index.js CHANGED
@@ -1,199 +1,212 @@
1
- import { Alert as r } from "./components/alert/Alert.js";
1
+ import { Alert as t } from "./components/alert/Alert.js";
2
2
  import { AuroraBackground as n } from "./components/aurora/Aurora.js";
3
- import { Avatar as p } from "./components/avatar/Avatar.js";
4
- import { Badge as l } from "./components/badge/Badge.js";
3
+ import { Avatar as a } from "./components/avatar/Avatar.js";
4
+ import { Badge as u } from "./components/badge/Badge.js";
5
5
  import { Breadcrumb as i } from "./components/breadcrumb/Breadcrumb.js";
6
6
  import { Button as f } from "./components/button/Button.js";
7
7
  import { ButtonGroup as g } from "./components/button-group/ButtonGroup.js";
8
- import { Card as T } from "./components/card/Card.js";
9
- import { Col as s } from "./components/col/Col.js";
10
- import { Command as c, CommandDialog as I, CommandEmpty as M, CommandGroup as D, CommandInput as A, CommandItem as F, CommandList as P, CommandSeparator as v, CommandShortcut as w } from "./components/command/Command.js";
8
+ import { Card as S } from "./components/card/Card.js";
9
+ import { Col as d } from "./components/col/Col.js";
10
+ import { Command as b, CommandDialog as c, CommandEmpty as M, CommandGroup as F, CommandInput as D, CommandItem as A, CommandList as P, CommandSeparator as v, CommandShortcut as w } from "./components/command/Command.js";
11
11
  import { Container as R } from "./components/container/Container.js";
12
- import { ContextMenu as y, ContextMenuArrow as G, ContextMenuContent as V, ContextMenuGroup as z, ContextMenuItem as B, ContextMenuLabel as E, ContextMenuPortal as k, ContextMenuSeparator as H, ContextMenuSub as O, ContextMenuSubContent as Q, ContextMenuSubTrigger as N, ContextMenuTrigger as Z } from "./components/context-menu/ContextMenu.js";
12
+ import { ContextMenu as L, ContextMenuArrow as y, ContextMenuContent as z, ContextMenuGroup as V, ContextMenuItem as B, ContextMenuLabel as E, ContextMenuPortal as H, ContextMenuSeparator as k, ContextMenuSub as N, ContextMenuSubContent as O, ContextMenuSubTrigger as Q, ContextMenuTrigger as Z } from "./components/context-menu/ContextMenu.js";
13
13
  import { DataTable as q } from "./components/data-table/DataTable.js";
14
14
  import { DataTableColumn as K } from "./components/data-table/DataTableColumn.js";
15
15
  import { DataTableFilterInput as W, createFilterQueryLanguage as X } from "./components/data-table/DataTableFilterInput.js";
16
16
  import { DataTableFilterSuggestionMenu as _ } from "./components/data-table/DataTableFilterSuggestionMenu.js";
17
- import { Dialog as ee, DialogClose as oe, DialogContent as re, DialogDescription as te, DialogFooter as ne, DialogHeader as ae, DialogOverlay as pe, DialogPortal as me, DialogTitle as le, DialogTrigger as ue } from "./components/dialog/Dialog.js";
17
+ import { Dialog as ee, DialogClose as oe, DialogContent as te, DialogDescription as re, DialogFooter as ne, DialogHeader as pe, DialogOverlay as ae, DialogPortal as me, DialogTitle as ue, DialogTrigger as le } from "./components/dialog/Dialog.js";
18
18
  import { Editor as xe } from "./components/editor/Editor.js";
19
- import { FileTabsService as Ce } from "./components/file-tabs/FileTabs.service.js";
20
- import { FileTabs as Se, FileTabsContent as Te, FileTabsList as de, FileTabsTrigger as se } from "./components/file-tabs/FileTabs.js";
21
- import { Flex as ce } from "./components/flex/Flex.js";
19
+ import { FileTabsService as Ie } from "./components/file-tabs/FileTabs.service.js";
20
+ import { FileTabs as Ce, FileTabsContent as Se, FileTabsList as Te, FileTabsTrigger as de } from "./components/file-tabs/FileTabs.js";
21
+ import { Flex as be } from "./components/flex/Flex.js";
22
22
  import { CheckboxInput as Me } from "./components/form/CheckboxInput.js";
23
- import { EditorInput as Ae } from "./components/form/EditorInput.js";
23
+ import { EditorInput as De } from "./components/form/EditorInput.js";
24
24
  import { EmailInput as Pe, emailValidation as ve } from "./components/form/EmailInput.js";
25
- import { Input as he } from "./components/form/Input.js";
26
- import { InputDescription as Le } from "./components/form/InputDescription.js";
27
- import { InputLabel as Ge } from "./components/form/InputLabel.js";
28
- import { InputMessage as ze } from "./components/form/InputMessage.js";
29
- import { InputSuggestionMenuContent as Ee, InputSuggestionMenuContentItems as ke } from "./components/form/InputSuggestion.js";
30
- import { NumberInput as Oe } from "./components/form/NumberInput.js";
31
- import { PasswordInput as Ne, passwordValidation as Ze } from "./components/form/PasswordInput.js";
32
- import { PinInput as qe, PinInputField as Je, PinInputHiddenField as Ke } from "./components/form/PinInput.js";
33
- import { RadioGroup as We } from "./components/form/RadioGroup.js";
34
- import { RadioInput as Ye } from "./components/form/RadioInput.js";
35
- import { SelectContent as $e, SelectInput as eo, SelectItem as oo, SelectItemText as ro, SelectPortal as to, SelectTrigger as no, SelectValue as ao, SelectViewport as po } from "./components/form/SelectInput.js";
36
- import { SwitchInput as lo } from "./components/form/SwitchInput.js";
37
- import { TextAreaInput as io } from "./components/form/TextAreaInput.js";
38
- import { TextInput as fo } from "./components/form/TextInput.js";
39
- import { useForm as go } from "./components/form/useForm.js";
40
- import { buildDefaultSyntax as To } from "./components/form/Input.syntax.hook.js";
41
- import { FullScreen as bo } from "./components/fullscreen/FullScreen.js";
42
- import { Gantt as Io, getRelativeValue as Mo } from "./components/gantt/Gantt.js";
43
- import { Layout as Ao } from "./components/layout/Layout.js";
44
- import { Menu as Po, MenuArrow as vo, MenuCheckboxItem as wo, MenuContent as ho, MenuGroup as Ro, MenuItem as Lo, MenuItemIndicator as yo, MenuLabel as Go, MenuPortal as Vo, MenuSeparator as zo, MenuSub as Bo, MenuSubContent as Eo, MenuSubTrigger as ko, MenuTrigger as Ho } from "./components/menu/Menu.js";
45
- import { Quote as Qo } from "./components/quote/Quote.js";
46
- import { ResizableHandle as Zo, ResizablePanel as jo, ResizablePanelGroup as qo } from "./components/resizable/Resizable.js";
47
- import { Row as Ko } from "./components/row/Row.js";
48
- import { ScrollArea as Wo, ScrollAreaCorner as Xo, ScrollAreaScrollbar as Yo, ScrollAreaThumb as _o, ScrollAreaViewport as $o } from "./components/scroll-area/ScrollArea.js";
49
- import { SegmentedControl as or, SegmentedControlItem as rr } from "./components/segmented-control/SegmentedControl.js";
50
- import { Spacing as nr } from "./components/spacing/Spacing.js";
51
- import { Tab as pr, TabContent as mr, TabList as lr, TabTrigger as ur } from "./components/tab/Tab.js";
52
- import { Text as xr } from "./components/text/Text.js";
53
- import { Toast as Cr, toast as gr } from "./components/toast/Toast.js";
54
- import { Tooltip as Tr, TooltipArrow as dr, TooltipContent as sr, TooltipPortal as br, TooltipTrigger as cr } from "./components/tooltip/Tooltip.js";
55
- import { ContextStore as Mr, ContextStoreProvider as Dr, useService as Ar, useStore as Fr } from "./utils/contextStore.js";
56
- import { ReactiveArrayService as vr, useReactiveArrayService as wr } from "./utils/reactiveArrayService.js";
57
- import { mergeComponentProps as Rr } from "./utils/component.js";
58
- import { Colors as yr, hashToColor as Gr, withAlpha as Vr } from "./utils/color.js";
59
- import { getDOMSizeFromCodeZeroSize as Br } from "./utils/size.js";
25
+ import { FileInput as he, FileInputContext as Re, FileInputDropzone as Ge, FileInputHiddenInput as Le, FileInputItem as ye, FileInputItemDeleteTrigger as ze, FileInputItemGroup as Ve, FileInputItemName as Be, FileInputItemPreview as Ee, FileInputItemPreviewImage as He, FileInputItemSizeText as ke, FileInputTrigger as Ne } from "./components/form/FileInput.js";
26
+ import { Input as Qe } from "./components/form/Input.js";
27
+ import { InputDescription as je } from "./components/form/InputDescription.js";
28
+ import { InputLabel as Je } from "./components/form/InputLabel.js";
29
+ import { InputMessage as Ue } from "./components/form/InputMessage.js";
30
+ import { InputSuggestionMenuContent as Xe, InputSuggestionMenuContentItems as Ye } from "./components/form/InputSuggestion.js";
31
+ import { NumberInput as $e } from "./components/form/NumberInput.js";
32
+ import { PasswordInput as oo, passwordValidation as to } from "./components/form/PasswordInput.js";
33
+ import { PinInput as no, PinInputField as po, PinInputHiddenField as ao } from "./components/form/PinInput.js";
34
+ import { RadioGroup as uo } from "./components/form/RadioGroup.js";
35
+ import { RadioInput as io } from "./components/form/RadioInput.js";
36
+ import { SelectContent as fo, SelectInput as Io, SelectItem as go, SelectItemText as Co, SelectPortal as So, SelectTrigger as To, SelectValue as so, SelectViewport as bo } from "./components/form/SelectInput.js";
37
+ import { SwitchInput as Mo } from "./components/form/SwitchInput.js";
38
+ import { TextAreaInput as Do } from "./components/form/TextAreaInput.js";
39
+ import { TextInput as Po } from "./components/form/TextInput.js";
40
+ import { useForm as wo } from "./components/form/useForm.js";
41
+ import { buildDefaultSyntax as Ro } from "./components/form/Input.syntax.hook.js";
42
+ import { FullScreen as Lo } from "./components/fullscreen/FullScreen.js";
43
+ import { Gantt as zo, getRelativeValue as Vo } from "./components/gantt/Gantt.js";
44
+ import { Layout as Eo } from "./components/layout/Layout.js";
45
+ import { Menu as ko, MenuArrow as No, MenuCheckboxItem as Oo, MenuContent as Qo, MenuGroup as Zo, MenuItem as jo, MenuItemIndicator as qo, MenuLabel as Jo, MenuPortal as Ko, MenuSeparator as Uo, MenuSub as Wo, MenuSubContent as Xo, MenuSubTrigger as Yo, MenuTrigger as _o } from "./components/menu/Menu.js";
46
+ import { Quote as et } from "./components/quote/Quote.js";
47
+ import { ResizableHandle as tt, ResizablePanel as rt, ResizablePanelGroup as nt } from "./components/resizable/Resizable.js";
48
+ import { Row as at } from "./components/row/Row.js";
49
+ import { ScrollArea as ut, ScrollAreaCorner as lt, ScrollAreaScrollbar as it, ScrollAreaThumb as xt, ScrollAreaViewport as ft } from "./components/scroll-area/ScrollArea.js";
50
+ import { SegmentedControl as gt, SegmentedControlItem as Ct } from "./components/segmented-control/SegmentedControl.js";
51
+ import { Spacing as Tt } from "./components/spacing/Spacing.js";
52
+ import { Tab as st, TabContent as bt, TabList as ct, TabTrigger as Mt } from "./components/tab/Tab.js";
53
+ import { Text as Dt } from "./components/text/Text.js";
54
+ import { Toast as Pt, toast as vt } from "./components/toast/Toast.js";
55
+ import { Tooltip as ht, TooltipArrow as Rt, TooltipContent as Gt, TooltipPortal as Lt, TooltipTrigger as yt } from "./components/tooltip/Tooltip.js";
56
+ import { ContextStore as Vt, ContextStoreProvider as Bt, useService as Et, useStore as Ht } from "./utils/contextStore.js";
57
+ import { ReactiveArrayService as Nt, useReactiveArrayService as Ot } from "./utils/reactiveArrayService.js";
58
+ import { mergeComponentProps as Zt } from "./utils/component.js";
59
+ import { Colors as qt, hashToColor as Jt, withAlpha as Kt } from "./utils/color.js";
60
+ import { getDOMSizeFromCodeZeroSize as Wt } from "./utils/size.js";
60
61
  export {
61
- r as Alert,
62
+ t as Alert,
62
63
  n as AuroraBackground,
63
- p as Avatar,
64
- l as Badge,
64
+ a as Avatar,
65
+ u as Badge,
65
66
  i as Breadcrumb,
66
67
  f as Button,
67
68
  g as ButtonGroup,
68
- T as Card,
69
+ S as Card,
69
70
  Me as CheckboxInput,
70
- s as Col,
71
- yr as Colors,
72
- c as Command,
73
- I as CommandDialog,
71
+ d as Col,
72
+ qt as Colors,
73
+ b as Command,
74
+ c as CommandDialog,
74
75
  M as CommandEmpty,
75
- D as CommandGroup,
76
- A as CommandInput,
77
- F as CommandItem,
76
+ F as CommandGroup,
77
+ D as CommandInput,
78
+ A as CommandItem,
78
79
  P as CommandList,
79
80
  v as CommandSeparator,
80
81
  w as CommandShortcut,
81
82
  R as Container,
82
- y as ContextMenu,
83
- G as ContextMenuArrow,
84
- V as ContextMenuContent,
85
- z as ContextMenuGroup,
83
+ L as ContextMenu,
84
+ y as ContextMenuArrow,
85
+ z as ContextMenuContent,
86
+ V as ContextMenuGroup,
86
87
  B as ContextMenuItem,
87
88
  E as ContextMenuLabel,
88
- k as ContextMenuPortal,
89
- H as ContextMenuSeparator,
90
- O as ContextMenuSub,
91
- Q as ContextMenuSubContent,
92
- N as ContextMenuSubTrigger,
89
+ H as ContextMenuPortal,
90
+ k as ContextMenuSeparator,
91
+ N as ContextMenuSub,
92
+ O as ContextMenuSubContent,
93
+ Q as ContextMenuSubTrigger,
93
94
  Z as ContextMenuTrigger,
94
- Mr as ContextStore,
95
- Dr as ContextStoreProvider,
95
+ Vt as ContextStore,
96
+ Bt as ContextStoreProvider,
96
97
  q as DataTable,
97
98
  K as DataTableColumn,
98
99
  W as DataTableFilterInput,
99
100
  _ as DataTableFilterSuggestionMenu,
100
101
  ee as Dialog,
101
102
  oe as DialogClose,
102
- re as DialogContent,
103
- te as DialogDescription,
103
+ te as DialogContent,
104
+ re as DialogDescription,
104
105
  ne as DialogFooter,
105
- ae as DialogHeader,
106
- pe as DialogOverlay,
106
+ pe as DialogHeader,
107
+ ae as DialogOverlay,
107
108
  me as DialogPortal,
108
- le as DialogTitle,
109
- ue as DialogTrigger,
109
+ ue as DialogTitle,
110
+ le as DialogTrigger,
110
111
  xe as Editor,
111
- Ae as EditorInput,
112
+ De as EditorInput,
112
113
  Pe as EmailInput,
113
- Se as FileTabs,
114
- Te as FileTabsContent,
115
- de as FileTabsList,
116
- Ce as FileTabsService,
117
- se as FileTabsTrigger,
118
- ce as Flex,
119
- bo as FullScreen,
120
- Io as Gantt,
121
- he as Input,
122
- Le as InputDescription,
123
- Ge as InputLabel,
124
- ze as InputMessage,
125
- Ee as InputSuggestionMenuContent,
126
- ke as InputSuggestionMenuContentItems,
127
- Ao as Layout,
128
- Po as Menu,
129
- vo as MenuArrow,
130
- wo as MenuCheckboxItem,
131
- ho as MenuContent,
132
- Ro as MenuGroup,
133
- Lo as MenuItem,
134
- yo as MenuItemIndicator,
135
- Go as MenuLabel,
136
- Vo as MenuPortal,
137
- zo as MenuSeparator,
138
- Bo as MenuSub,
139
- Eo as MenuSubContent,
140
- ko as MenuSubTrigger,
141
- Ho as MenuTrigger,
142
- Oe as NumberInput,
143
- Ne as PasswordInput,
144
- qe as PinInput,
145
- Je as PinInputField,
146
- Ke as PinInputHiddenField,
147
- Qo as Quote,
148
- We as RadioGroup,
149
- Ye as RadioInput,
150
- vr as ReactiveArrayService,
151
- Zo as ResizableHandle,
152
- jo as ResizablePanel,
153
- qo as ResizablePanelGroup,
154
- Ko as Row,
155
- Wo as ScrollArea,
156
- Xo as ScrollAreaCorner,
157
- Yo as ScrollAreaScrollbar,
158
- _o as ScrollAreaThumb,
159
- $o as ScrollAreaViewport,
160
- or as SegmentedControl,
161
- rr as SegmentedControlItem,
162
- $e as SelectContent,
163
- eo as SelectInput,
164
- oo as SelectItem,
165
- ro as SelectItemText,
166
- to as SelectPortal,
167
- no as SelectTrigger,
168
- ao as SelectValue,
169
- po as SelectViewport,
170
- nr as Spacing,
171
- lo as SwitchInput,
172
- pr as Tab,
173
- mr as TabContent,
174
- lr as TabList,
175
- ur as TabTrigger,
176
- xr as Text,
177
- io as TextAreaInput,
178
- fo as TextInput,
179
- Cr as Toast,
180
- Tr as Tooltip,
181
- dr as TooltipArrow,
182
- sr as TooltipContent,
183
- br as TooltipPortal,
184
- cr as TooltipTrigger,
185
- To as buildDefaultSyntax,
114
+ he as FileInput,
115
+ Re as FileInputContext,
116
+ Ge as FileInputDropzone,
117
+ Le as FileInputHiddenInput,
118
+ ye as FileInputItem,
119
+ ze as FileInputItemDeleteTrigger,
120
+ Ve as FileInputItemGroup,
121
+ Be as FileInputItemName,
122
+ Ee as FileInputItemPreview,
123
+ He as FileInputItemPreviewImage,
124
+ ke as FileInputItemSizeText,
125
+ Ne as FileInputTrigger,
126
+ Ce as FileTabs,
127
+ Se as FileTabsContent,
128
+ Te as FileTabsList,
129
+ Ie as FileTabsService,
130
+ de as FileTabsTrigger,
131
+ be as Flex,
132
+ Lo as FullScreen,
133
+ zo as Gantt,
134
+ Qe as Input,
135
+ je as InputDescription,
136
+ Je as InputLabel,
137
+ Ue as InputMessage,
138
+ Xe as InputSuggestionMenuContent,
139
+ Ye as InputSuggestionMenuContentItems,
140
+ Eo as Layout,
141
+ ko as Menu,
142
+ No as MenuArrow,
143
+ Oo as MenuCheckboxItem,
144
+ Qo as MenuContent,
145
+ Zo as MenuGroup,
146
+ jo as MenuItem,
147
+ qo as MenuItemIndicator,
148
+ Jo as MenuLabel,
149
+ Ko as MenuPortal,
150
+ Uo as MenuSeparator,
151
+ Wo as MenuSub,
152
+ Xo as MenuSubContent,
153
+ Yo as MenuSubTrigger,
154
+ _o as MenuTrigger,
155
+ $e as NumberInput,
156
+ oo as PasswordInput,
157
+ no as PinInput,
158
+ po as PinInputField,
159
+ ao as PinInputHiddenField,
160
+ et as Quote,
161
+ uo as RadioGroup,
162
+ io as RadioInput,
163
+ Nt as ReactiveArrayService,
164
+ tt as ResizableHandle,
165
+ rt as ResizablePanel,
166
+ nt as ResizablePanelGroup,
167
+ at as Row,
168
+ ut as ScrollArea,
169
+ lt as ScrollAreaCorner,
170
+ it as ScrollAreaScrollbar,
171
+ xt as ScrollAreaThumb,
172
+ ft as ScrollAreaViewport,
173
+ gt as SegmentedControl,
174
+ Ct as SegmentedControlItem,
175
+ fo as SelectContent,
176
+ Io as SelectInput,
177
+ go as SelectItem,
178
+ Co as SelectItemText,
179
+ So as SelectPortal,
180
+ To as SelectTrigger,
181
+ so as SelectValue,
182
+ bo as SelectViewport,
183
+ Tt as Spacing,
184
+ Mo as SwitchInput,
185
+ st as Tab,
186
+ bt as TabContent,
187
+ ct as TabList,
188
+ Mt as TabTrigger,
189
+ Dt as Text,
190
+ Do as TextAreaInput,
191
+ Po as TextInput,
192
+ Pt as Toast,
193
+ ht as Tooltip,
194
+ Rt as TooltipArrow,
195
+ Gt as TooltipContent,
196
+ Lt as TooltipPortal,
197
+ yt as TooltipTrigger,
198
+ Ro as buildDefaultSyntax,
186
199
  X as createFilterQueryLanguage,
187
200
  ve as emailValidation,
188
- Br as getDOMSizeFromCodeZeroSize,
189
- Mo as getRelativeValue,
190
- Gr as hashToColor,
191
- Rr as mergeComponentProps,
192
- Ze as passwordValidation,
193
- gr as toast,
194
- go as useForm,
195
- wr as useReactiveArrayService,
196
- Ar as useService,
197
- Fr as useStore,
198
- Vr as withAlpha
201
+ Wt as getDOMSizeFromCodeZeroSize,
202
+ Vo as getRelativeValue,
203
+ Jt as hashToColor,
204
+ Zt as mergeComponentProps,
205
+ to as passwordValidation,
206
+ vt as toast,
207
+ wo as useForm,
208
+ Ot as useReactiveArrayService,
209
+ Et as useService,
210
+ Ht as useStore,
211
+ Kt as withAlpha
199
212
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/pictor",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "scripts": {
@@ -36,6 +36,7 @@
36
36
  "@radix-ui/react-one-time-password-field": "^0.1.8",
37
37
  "@radix-ui/react-radio-group": "^1.3.8",
38
38
  "@radix-ui/react-scroll-area": "^1.2.10",
39
+ "@radix-ui/react-select": "^2.2.6",
39
40
  "@radix-ui/react-tabs": "^1.1.13",
40
41
  "@radix-ui/react-toggle-group": "^1.1.11",
41
42
  "@radix-ui/react-tooltip": "^1.2.8",
@@ -92,7 +93,7 @@
92
93
  "vite-plugin-dts": "^4.5.4",
93
94
  "vite-plugin-lib-inject-css": "^2.2.2",
94
95
  "vitest": "^4.1.2",
95
- "@radix-ui/react-select": "^2.2.6"
96
+ "@ark-ui/react": "^5.36.2"
96
97
  },
97
98
  "main": "dist/index.js",
98
99
  "repository": {
@@ -118,6 +119,7 @@
118
119
  "@radix-ui/react-one-time-password-field": "^0.1.8",
119
120
  "@radix-ui/react-radio-group": "^1.3.8",
120
121
  "@radix-ui/react-scroll-area": "^1.2.10",
122
+ "@radix-ui/react-select": "^2.2.6",
121
123
  "@radix-ui/react-tabs": "^1.1.13",
122
124
  "@radix-ui/react-toggle-group": "^1.1.11",
123
125
  "@radix-ui/react-tooltip": "^1.2.8",
@@ -134,7 +136,7 @@
134
136
  "react-resizable-panels": "^4.3.1",
135
137
  "react-zoom-pan-pinch": "^3.7.0",
136
138
  "sonner": "^2.0.7",
137
- "@radix-ui/react-select": "^2.2.6"
139
+ "@ark-ui/react": "^5.36.2"
138
140
  },
139
141
  "publishConfig": {
140
142
  "access": "public"