@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.
- package/dist/assets/components/form/EditorInput.style.css +1 -1
- package/dist/assets/components/form/FileInput.style.css +1 -0
- package/dist/assets/components/form/InputWrapper.style.css +1 -1
- package/dist/assets/components/form/SelectInput.style.css +1 -1
- package/dist/components/command/Command.js +19 -17
- package/dist/components/editor/Editor.js +1 -1
- package/dist/components/form/CheckboxInput.js +1 -1
- package/dist/components/form/EditorInput.js +1 -1
- package/dist/components/form/FileInput.d.ts +32 -0
- package/dist/components/form/FileInput.js +124 -0
- package/dist/components/form/PinInput.js +1 -1
- package/dist/components/form/RadioGroup.js +1 -1
- package/dist/components/form/SelectInput.js +39 -39
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.js +58 -45
- package/dist/components/form/useForm.d.ts +2 -2
- package/dist/components/form/useForm.js +38 -41
- package/dist/index.js +173 -160
- package/package.json +5 -3
|
@@ -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
|
|
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{
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
};
|
|
@@ -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
|
|
8
|
+
import { InputWrapper as R } from "./InputWrapper.js";
|
|
9
9
|
import '../../assets/components/form/SelectInput.style.css';/* empty css */
|
|
10
|
-
const A = (
|
|
10
|
+
const A = (i) => {
|
|
11
11
|
const t = r.c(24);
|
|
12
|
-
let e, l,
|
|
13
|
-
if (t[0] !==
|
|
12
|
+
let e, l, n, c, m, u, a, _, g, T;
|
|
13
|
+
if (t[0] !== i) {
|
|
14
14
|
const {
|
|
15
|
-
title:
|
|
16
|
-
description:
|
|
17
|
-
left:
|
|
18
|
-
leftType:
|
|
19
|
-
rightType:
|
|
20
|
-
right:
|
|
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
|
-
} =
|
|
24
|
-
l =
|
|
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)
|
|
27
|
+
h?.setValue?.(d), x.onValueChange?.(d);
|
|
28
28
|
}
|
|
29
|
-
}), t[0] =
|
|
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],
|
|
32
|
-
const $ =
|
|
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 = (
|
|
37
|
+
}, B = (i) => {
|
|
38
38
|
const t = r.c(4);
|
|
39
39
|
let e;
|
|
40
|
-
t[0] !==
|
|
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 = (
|
|
43
|
+
}, D = (i) => {
|
|
44
44
|
const t = r.c(4);
|
|
45
45
|
let e;
|
|
46
|
-
t[0] !==
|
|
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 = (
|
|
50
|
-
const t = r.c(5), e = `select-input__content select-input__content--${
|
|
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] !==
|
|
53
|
-
const
|
|
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] !==
|
|
56
|
-
}, G = (
|
|
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] !==
|
|
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
|
|
62
|
-
return t[2] !== l ? (
|
|
63
|
-
}, H = (
|
|
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] !==
|
|
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 = (
|
|
69
|
+
}, J = (i) => {
|
|
70
70
|
const t = r.c(4);
|
|
71
71
|
let e;
|
|
72
|
-
t[0] !==
|
|
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
|
|
75
|
-
return t[2] !== l ? (
|
|
76
|
-
}, K = (
|
|
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] !==
|
|
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
|
|
82
|
-
return t[2] !== l ? (
|
|
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,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
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
W as
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
6
|
-
var e =
|
|
5
|
+
function O(i) {
|
|
6
|
+
var e = F(i, "string");
|
|
7
7
|
return typeof e == "symbol" ? e : e + "";
|
|
8
8
|
}
|
|
9
|
-
function
|
|
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
|
|
14
|
-
if (typeof
|
|
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
|
|
20
|
-
constructor(e, t,
|
|
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 =
|
|
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],
|
|
34
|
-
let
|
|
35
|
-
return this.shouldValidate.has(e) ? (
|
|
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:
|
|
38
|
-
initialValue:
|
|
37
|
+
defaultValue: n ?? void 0,
|
|
38
|
+
initialValue: n ?? void 0,
|
|
39
39
|
formValidation: {
|
|
40
|
-
setValue: (
|
|
41
|
-
this.changeValue(
|
|
40
|
+
setValue: (s) => {
|
|
41
|
+
this.changeValue(l, s);
|
|
42
42
|
},
|
|
43
|
-
notValidMessage:
|
|
44
|
-
valid:
|
|
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
|
|
52
|
+
const E = (i) => {
|
|
53
53
|
const {
|
|
54
54
|
initialValues: e,
|
|
55
55
|
validate: t = {},
|
|
56
|
-
truthyValidationBeforeSubmit:
|
|
57
|
-
useInitialValidation:
|
|
58
|
-
onSubmit:
|
|
59
|
-
} = i,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, [])
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
75
|
+
E as useForm
|
|
79
76
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,199 +1,212 @@
|
|
|
1
|
-
import { Alert as
|
|
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
|
|
4
|
-
import { Badge as
|
|
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
|
|
9
|
-
import { Col as
|
|
10
|
-
import { Command as
|
|
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
|
|
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
|
|
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
|
|
20
|
-
import { FileTabs as
|
|
21
|
-
import { Flex as
|
|
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
|
|
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 {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
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
|
-
|
|
62
|
+
t as Alert,
|
|
62
63
|
n as AuroraBackground,
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
a as Avatar,
|
|
65
|
+
u as Badge,
|
|
65
66
|
i as Breadcrumb,
|
|
66
67
|
f as Button,
|
|
67
68
|
g as ButtonGroup,
|
|
68
|
-
|
|
69
|
+
S as Card,
|
|
69
70
|
Me as CheckboxInput,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
d as Col,
|
|
72
|
+
qt as Colors,
|
|
73
|
+
b as Command,
|
|
74
|
+
c as CommandDialog,
|
|
74
75
|
M as CommandEmpty,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
95
|
-
|
|
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
|
-
|
|
103
|
-
|
|
103
|
+
te as DialogContent,
|
|
104
|
+
re as DialogDescription,
|
|
104
105
|
ne as DialogFooter,
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
pe as DialogHeader,
|
|
107
|
+
ae as DialogOverlay,
|
|
107
108
|
me as DialogPortal,
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
ue as DialogTitle,
|
|
110
|
+
le as DialogTrigger,
|
|
110
111
|
xe as Editor,
|
|
111
|
-
|
|
112
|
+
De as EditorInput,
|
|
112
113
|
Pe as EmailInput,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
Eo as
|
|
140
|
-
ko as
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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.
|
|
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
|
-
"@
|
|
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
|
-
"@
|
|
139
|
+
"@ark-ui/react": "^5.36.2"
|
|
138
140
|
},
|
|
139
141
|
"publishConfig": {
|
|
140
142
|
"access": "public"
|