@algodomain/smart-forms 0.1.1 → 0.1.2
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/{chunk-LRMJP5OJ.cjs → chunk-4H5U5IHH.cjs} +45 -41
- package/dist/chunk-4H5U5IHH.cjs.map +1 -0
- package/dist/{chunk-EE6VZXWC.js → chunk-5LRBJEZW.js} +45 -41
- package/dist/chunk-5LRBJEZW.js.map +1 -0
- package/dist/{chunk-Y3H6MI5D.cjs → chunk-CJ55WKPC.cjs} +79 -79
- package/dist/{chunk-Y3H6MI5D.cjs.map → chunk-CJ55WKPC.cjs.map} +1 -1
- package/dist/{chunk-5A5WAAED.js → chunk-KDPN4CHW.js} +3 -3
- package/dist/{chunk-5A5WAAED.js.map → chunk-KDPN4CHW.js.map} +1 -1
- package/dist/fields.cjs +108 -108
- package/dist/fields.js +4 -4
- package/dist/index.cjs +26 -26
- package/dist/index.js +4 -4
- package/dist/opinionated.cjs +18 -18
- package/dist/opinionated.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-EE6VZXWC.js.map +0 -1
- package/dist/chunk-LRMJP5OJ.cjs.map +0 -1
package/dist/fields.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkCJ55WKPC_cjs = require('./chunk-CJ55WKPC.cjs');
|
|
4
|
+
var chunk4H5U5IHH_cjs = require('./chunk-4H5U5IHH.cjs');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
7
|
var cmdk = require('cmdk');
|
|
@@ -39,7 +39,7 @@ function Command({
|
|
|
39
39
|
cmdk.Command,
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "command",
|
|
42
|
-
className:
|
|
42
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
43
43
|
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
44
44
|
className
|
|
45
45
|
),
|
|
@@ -62,7 +62,7 @@ function CommandInput({
|
|
|
62
62
|
cmdk.Command.Input,
|
|
63
63
|
{
|
|
64
64
|
"data-slot": "command-input",
|
|
65
|
-
className:
|
|
65
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
66
66
|
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
67
67
|
className
|
|
68
68
|
),
|
|
@@ -81,7 +81,7 @@ function CommandList({
|
|
|
81
81
|
cmdk.Command.List,
|
|
82
82
|
{
|
|
83
83
|
"data-slot": "command-list",
|
|
84
|
-
className:
|
|
84
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
85
85
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
86
86
|
className
|
|
87
87
|
),
|
|
@@ -109,7 +109,7 @@ function CommandGroup({
|
|
|
109
109
|
cmdk.Command.Group,
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "command-group",
|
|
112
|
-
className:
|
|
112
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
113
113
|
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
114
114
|
className
|
|
115
115
|
),
|
|
@@ -125,7 +125,7 @@ function CommandItem({
|
|
|
125
125
|
cmdk.Command.Item,
|
|
126
126
|
{
|
|
127
127
|
"data-slot": "command-item",
|
|
128
|
-
className:
|
|
128
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
129
129
|
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
130
130
|
className
|
|
131
131
|
),
|
|
@@ -160,7 +160,7 @@ function Badge({
|
|
|
160
160
|
Comp,
|
|
161
161
|
{
|
|
162
162
|
"data-slot": "badge",
|
|
163
|
-
className:
|
|
163
|
+
className: chunk4H5U5IHH_cjs.cn(badgeVariants({ variant }), className),
|
|
164
164
|
...props
|
|
165
165
|
}
|
|
166
166
|
);
|
|
@@ -195,9 +195,9 @@ function Combobox({
|
|
|
195
195
|
const filteredOptions = combinedOptions.filter(
|
|
196
196
|
(option) => option.label.toLowerCase().includes(searchValue.toLowerCase())
|
|
197
197
|
);
|
|
198
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { style: containerStyles, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
199
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
200
|
-
|
|
198
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { style: containerStyles, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkCJ55WKPC_cjs.Popover, { open, onOpenChange: setOpen, children: [
|
|
199
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCJ55WKPC_cjs.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
200
|
+
chunkCJ55WKPC_cjs.Button,
|
|
201
201
|
{
|
|
202
202
|
variant: "outline",
|
|
203
203
|
role: "combobox",
|
|
@@ -211,7 +211,7 @@ function Combobox({
|
|
|
211
211
|
]
|
|
212
212
|
}
|
|
213
213
|
) }),
|
|
214
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
214
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCJ55WKPC_cjs.PopoverContent, { className: "w-[var(--radix-popover-trigger-width)] p-0", children: /* @__PURE__ */ jsxRuntime.jsxs(Command, { className: "w-full", children: [
|
|
215
215
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
216
216
|
CommandInput,
|
|
217
217
|
{
|
|
@@ -255,7 +255,7 @@ function Combobox({
|
|
|
255
255
|
option.value
|
|
256
256
|
)) }) : /* @__PURE__ */ jsxRuntime.jsxs(CommandEmpty, { children: [
|
|
257
257
|
allowCustom && searchValue && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
258
|
-
|
|
258
|
+
chunkCJ55WKPC_cjs.Button,
|
|
259
259
|
{
|
|
260
260
|
variant: "ghost",
|
|
261
261
|
className: "w-full justify-start",
|
|
@@ -292,8 +292,8 @@ var SmartCombobox = ({
|
|
|
292
292
|
info,
|
|
293
293
|
subLabel
|
|
294
294
|
}) => {
|
|
295
|
-
const { value, error, onChange, fieldRef, registerValidation } =
|
|
296
|
-
const fieldDetection =
|
|
295
|
+
const { value, error, onChange, fieldRef, registerValidation } = chunk4H5U5IHH_cjs.useFormField(field);
|
|
296
|
+
const fieldDetection = chunk4H5U5IHH_cjs.useFieldDetection();
|
|
297
297
|
const hasRegistered = React.useRef(false);
|
|
298
298
|
const hasSetDefault = React.useRef(false);
|
|
299
299
|
React.useEffect(() => {
|
|
@@ -316,14 +316,14 @@ var SmartCombobox = ({
|
|
|
316
316
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-1 min-w-0 ${className}`, children: [
|
|
317
317
|
label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2", children: [
|
|
318
318
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
319
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
319
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Label, { className: "text-sm font-medium text-foreground", children: [
|
|
320
320
|
label,
|
|
321
321
|
" ",
|
|
322
322
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-destructive", children: "*" })
|
|
323
323
|
] }),
|
|
324
|
-
info && /* @__PURE__ */ jsxRuntime.jsx(
|
|
325
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
326
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
324
|
+
info && /* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
325
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4 text-muted-foreground cursor-pointer mr-2" }) }),
|
|
326
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-xs", children: info }) })
|
|
327
327
|
] }) })
|
|
328
328
|
] }),
|
|
329
329
|
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground mt-1", children: subLabel })
|
|
@@ -359,9 +359,9 @@ var SmartFileUpload = ({
|
|
|
359
359
|
info,
|
|
360
360
|
subLabel
|
|
361
361
|
}) => {
|
|
362
|
-
const { value, error, onChange, fieldRef, registerValidation } =
|
|
363
|
-
const { registerSubmitHook, unregisterSubmitHook } =
|
|
364
|
-
const fieldDetection =
|
|
362
|
+
const { value, error, onChange, fieldRef, registerValidation } = chunk4H5U5IHH_cjs.useFormField(field);
|
|
363
|
+
const { registerSubmitHook, unregisterSubmitHook } = chunk4H5U5IHH_cjs.useSmartForm();
|
|
364
|
+
const fieldDetection = chunk4H5U5IHH_cjs.useFieldDetection();
|
|
365
365
|
const hasRegistered = React.useRef(false);
|
|
366
366
|
const hasSetDefault = React.useRef(false);
|
|
367
367
|
const inputRef = React.useRef(null);
|
|
@@ -494,24 +494,24 @@ var SmartFileUpload = ({
|
|
|
494
494
|
}
|
|
495
495
|
return () => unregisterSubmitHook(key);
|
|
496
496
|
}, [field, uploadApi, uploadOnSelect, registerSubmitHook, unregisterSubmitHook, value, multiple]);
|
|
497
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
497
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunk4H5U5IHH_cjs.cn("flex-1 min-w-0", className), children: [
|
|
498
498
|
label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2", children: [
|
|
499
499
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
500
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
500
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Label, { className: "text-sm font-medium text-foreground", children: [
|
|
501
501
|
label,
|
|
502
502
|
" ",
|
|
503
503
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-destructive", children: "*" })
|
|
504
504
|
] }),
|
|
505
|
-
info && /* @__PURE__ */ jsxRuntime.jsx(
|
|
506
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
507
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
505
|
+
info && /* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
506
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4 text-muted-foreground cursor-pointer mr-2" }) }),
|
|
507
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-xs", children: info }) })
|
|
508
508
|
] }) })
|
|
509
509
|
] }),
|
|
510
510
|
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground mt-1", children: subLabel })
|
|
511
511
|
] }),
|
|
512
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
512
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunk4H5U5IHH_cjs.cn("flex items-center gap-2", error && "text-destructive"), children: [
|
|
513
513
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
514
|
-
|
|
514
|
+
chunk4H5U5IHH_cjs.Input,
|
|
515
515
|
{
|
|
516
516
|
ref: (el) => {
|
|
517
517
|
inputRef.current = el;
|
|
@@ -521,11 +521,11 @@ var SmartFileUpload = ({
|
|
|
521
521
|
accept,
|
|
522
522
|
multiple,
|
|
523
523
|
onChange: onInputChange,
|
|
524
|
-
className:
|
|
524
|
+
className: chunk4H5U5IHH_cjs.cn(error && "border-destructive"),
|
|
525
525
|
"data-field": field
|
|
526
526
|
}
|
|
527
527
|
),
|
|
528
|
-
(Array.isArray(value) ? value.length > 0 : !!value) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
528
|
+
(Array.isArray(value) ? value.length > 0 : !!value) && /* @__PURE__ */ jsxRuntime.jsx(chunkCJ55WKPC_cjs.Button, { type: "button", variant: "secondary", onClick: clearSelection, children: "Clear" })
|
|
529
529
|
] }),
|
|
530
530
|
normalizedFiles.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "No file selected" }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "mt-2 space-y-1", children: normalizedFiles.map((f, idx) => {
|
|
531
531
|
const isImage = f.type.startsWith("image/");
|
|
@@ -550,7 +550,7 @@ var SmartFileUpload = ({
|
|
|
550
550
|
] })
|
|
551
551
|
] }),
|
|
552
552
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
553
|
-
|
|
553
|
+
chunkCJ55WKPC_cjs.Button,
|
|
554
554
|
{
|
|
555
555
|
type: "button",
|
|
556
556
|
variant: "ghost",
|
|
@@ -585,7 +585,7 @@ function Slider({
|
|
|
585
585
|
value,
|
|
586
586
|
min,
|
|
587
587
|
max,
|
|
588
|
-
className:
|
|
588
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
589
589
|
"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
590
590
|
className
|
|
591
591
|
),
|
|
@@ -595,14 +595,14 @@ function Slider({
|
|
|
595
595
|
SliderPrimitive__namespace.Track,
|
|
596
596
|
{
|
|
597
597
|
"data-slot": "slider-track",
|
|
598
|
-
className:
|
|
598
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
599
599
|
"bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
600
600
|
),
|
|
601
601
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
602
602
|
SliderPrimitive__namespace.Range,
|
|
603
603
|
{
|
|
604
604
|
"data-slot": "slider-range",
|
|
605
|
-
className:
|
|
605
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
606
606
|
"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
607
607
|
)
|
|
608
608
|
}
|
|
@@ -636,8 +636,8 @@ var SmartSlider = ({
|
|
|
636
636
|
info,
|
|
637
637
|
subLabel
|
|
638
638
|
}) => {
|
|
639
|
-
const { value, error, onChange, fieldRef, registerValidation } =
|
|
640
|
-
const fieldDetection =
|
|
639
|
+
const { value, error, onChange, fieldRef, registerValidation } = chunk4H5U5IHH_cjs.useFormField(field);
|
|
640
|
+
const fieldDetection = chunk4H5U5IHH_cjs.useFieldDetection();
|
|
641
641
|
const hasRegistered = React.useRef(false);
|
|
642
642
|
const hasSetDefault = React.useRef(false);
|
|
643
643
|
React.useEffect(() => {
|
|
@@ -665,7 +665,7 @@ var SmartSlider = ({
|
|
|
665
665
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-1 min-w-0 ${className}`, children: [
|
|
666
666
|
label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2", children: [
|
|
667
667
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
668
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
668
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Label, { className: "text-sm font-medium text-foreground", children: [
|
|
669
669
|
label,
|
|
670
670
|
" ",
|
|
671
671
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-destructive", children: "*" }),
|
|
@@ -675,9 +675,9 @@ var SmartSlider = ({
|
|
|
675
675
|
")"
|
|
676
676
|
] })
|
|
677
677
|
] }),
|
|
678
|
-
info && /* @__PURE__ */ jsxRuntime.jsx(
|
|
679
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
680
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
678
|
+
info && /* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
679
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4 text-muted-foreground cursor-pointer mr-2" }) }),
|
|
680
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-xs", children: info }) })
|
|
681
681
|
] }) })
|
|
682
682
|
] }),
|
|
683
683
|
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground mt-1", children: subLabel })
|
|
@@ -724,9 +724,9 @@ var SmartDualRangeSlider = ({
|
|
|
724
724
|
info,
|
|
725
725
|
subLabel
|
|
726
726
|
}) => {
|
|
727
|
-
const minFormField =
|
|
728
|
-
const maxFormField =
|
|
729
|
-
const fieldDetection =
|
|
727
|
+
const minFormField = chunk4H5U5IHH_cjs.useFormField(minField);
|
|
728
|
+
const maxFormField = chunk4H5U5IHH_cjs.useFormField(maxField);
|
|
729
|
+
const fieldDetection = chunk4H5U5IHH_cjs.useFieldDetection();
|
|
730
730
|
const hasRegisteredMin = React.useRef(false);
|
|
731
731
|
const hasRegisteredMax = React.useRef(false);
|
|
732
732
|
const hasSetDefaultMin = React.useRef(false);
|
|
@@ -772,14 +772,14 @@ var SmartDualRangeSlider = ({
|
|
|
772
772
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-1 min-w-0 ${className}`, children: [
|
|
773
773
|
label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2", children: [
|
|
774
774
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
775
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
775
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Label, { className: "text-sm font-medium text-foreground", children: [
|
|
776
776
|
label,
|
|
777
777
|
" ",
|
|
778
778
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-destructive", children: "*" })
|
|
779
779
|
] }),
|
|
780
|
-
info && /* @__PURE__ */ jsxRuntime.jsx(
|
|
781
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
782
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
780
|
+
info && /* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
781
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4 text-muted-foreground cursor-pointer mr-2" }) }),
|
|
782
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-xs", children: info }) })
|
|
783
783
|
] }) })
|
|
784
784
|
] }),
|
|
785
785
|
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground mt-1", children: subLabel })
|
|
@@ -860,7 +860,7 @@ var Tags = ({
|
|
|
860
860
|
TagsContext.Provider,
|
|
861
861
|
{
|
|
862
862
|
value: { value, setValue, open, onOpenChange, width, setWidth },
|
|
863
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
863
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkCJ55WKPC_cjs.Popover, { onOpenChange, open, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunk4H5U5IHH_cjs.cn("relative w-full", className), ref, children }) })
|
|
864
864
|
}
|
|
865
865
|
);
|
|
866
866
|
};
|
|
@@ -868,10 +868,10 @@ var TagsTrigger = ({
|
|
|
868
868
|
className,
|
|
869
869
|
children,
|
|
870
870
|
...props
|
|
871
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
872
|
-
|
|
871
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkCJ55WKPC_cjs.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
872
|
+
chunkCJ55WKPC_cjs.Button,
|
|
873
873
|
{
|
|
874
|
-
className:
|
|
874
|
+
className: chunk4H5U5IHH_cjs.cn("h-auto w-full justify-between p-2", className),
|
|
875
875
|
role: "combobox",
|
|
876
876
|
variant: "outline",
|
|
877
877
|
...props,
|
|
@@ -892,7 +892,7 @@ var TagsValue = ({
|
|
|
892
892
|
event.stopPropagation();
|
|
893
893
|
onRemove?.();
|
|
894
894
|
};
|
|
895
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Badge, { className:
|
|
895
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Badge, { className: chunk4H5U5IHH_cjs.cn("flex items-center gap-2", className), ...props, children: [
|
|
896
896
|
children,
|
|
897
897
|
onRemove && // biome-ignore lint/a11y/noStaticElementInteractions: "This is a clickable badge"
|
|
898
898
|
// biome-ignore lint/a11y/useKeyWithClickEvents: "This is a clickable badge"
|
|
@@ -913,17 +913,17 @@ var TagsContent = ({
|
|
|
913
913
|
}) => {
|
|
914
914
|
const { width } = useTagsContext();
|
|
915
915
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
916
|
-
|
|
916
|
+
chunkCJ55WKPC_cjs.PopoverContent,
|
|
917
917
|
{
|
|
918
|
-
className:
|
|
918
|
+
className: chunk4H5U5IHH_cjs.cn("p-0", className),
|
|
919
919
|
style: { width },
|
|
920
920
|
...props,
|
|
921
921
|
children: /* @__PURE__ */ jsxRuntime.jsx(Command, { children })
|
|
922
922
|
}
|
|
923
923
|
);
|
|
924
924
|
};
|
|
925
|
-
var TagsInput = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(CommandInput, { className:
|
|
926
|
-
var TagsList = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(CommandList, { className:
|
|
925
|
+
var TagsInput = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(CommandInput, { className: chunk4H5U5IHH_cjs.cn("h-9", className), ...props });
|
|
926
|
+
var TagsList = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(CommandList, { className: chunk4H5U5IHH_cjs.cn("max-h-[200px]", className), ...props });
|
|
927
927
|
var TagsEmpty = ({
|
|
928
928
|
children,
|
|
929
929
|
className,
|
|
@@ -933,7 +933,7 @@ var TagsGroup = CommandGroup;
|
|
|
933
933
|
var TagsItem = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
934
934
|
CommandItem,
|
|
935
935
|
{
|
|
936
|
-
className:
|
|
936
|
+
className: chunk4H5U5IHH_cjs.cn("cursor-pointer items-center justify-between", className),
|
|
937
937
|
...props
|
|
938
938
|
}
|
|
939
939
|
);
|
|
@@ -952,8 +952,8 @@ var SmartAutoSuggestTags = ({
|
|
|
952
952
|
info,
|
|
953
953
|
subLabel
|
|
954
954
|
}) => {
|
|
955
|
-
const { value, error, onChange, fieldRef, registerValidation } =
|
|
956
|
-
const fieldDetection =
|
|
955
|
+
const { value, error, onChange, fieldRef, registerValidation } = chunk4H5U5IHH_cjs.useFormField(field);
|
|
956
|
+
const fieldDetection = chunk4H5U5IHH_cjs.useFieldDetection();
|
|
957
957
|
const hasRegistered = React.useRef(false);
|
|
958
958
|
const hasSetDefault = React.useRef(false);
|
|
959
959
|
const [tags, setTags] = React.useState(initialOptions);
|
|
@@ -1019,7 +1019,7 @@ var SmartAutoSuggestTags = ({
|
|
|
1019
1019
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-1 min-w-0 ${className}`, children: [
|
|
1020
1020
|
label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2", children: [
|
|
1021
1021
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1022
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1022
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Label, { className: "text-sm font-medium text-foreground", children: [
|
|
1023
1023
|
label,
|
|
1024
1024
|
" ",
|
|
1025
1025
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-destructive", children: "*" }),
|
|
@@ -1031,14 +1031,14 @@ var SmartAutoSuggestTags = ({
|
|
|
1031
1031
|
")"
|
|
1032
1032
|
] })
|
|
1033
1033
|
] }),
|
|
1034
|
-
info && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1035
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1036
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1034
|
+
info && /* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
1035
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4 text-muted-foreground cursor-pointer mr-2" }) }),
|
|
1036
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-xs", children: info }) })
|
|
1037
1037
|
] }) })
|
|
1038
1038
|
] }),
|
|
1039
1039
|
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground mt-1", children: subLabel })
|
|
1040
1040
|
] }),
|
|
1041
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: fieldRef, "data-field": field, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1041
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: fieldRef, "data-field": field, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunk4H5U5IHH_cjs.cn(
|
|
1042
1042
|
"w-full rounded-md border border-input bg-background text-sm ring-offset-background",
|
|
1043
1043
|
"focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
|
|
1044
1044
|
error && "border-destructive focus-within:ring-destructive"
|
|
@@ -1157,8 +1157,8 @@ var SmartBasicRichTextbox = ({
|
|
|
1157
1157
|
info,
|
|
1158
1158
|
subLabel
|
|
1159
1159
|
}) => {
|
|
1160
|
-
const { value, error, onChange, fieldRef, registerValidation } =
|
|
1161
|
-
const fieldDetection =
|
|
1160
|
+
const { value, error, onChange, fieldRef, registerValidation } = chunk4H5U5IHH_cjs.useFormField(field);
|
|
1161
|
+
const fieldDetection = chunk4H5U5IHH_cjs.useFieldDetection();
|
|
1162
1162
|
const hasRegistered = React.useRef(false);
|
|
1163
1163
|
const hasSetDefault = React.useRef(false);
|
|
1164
1164
|
const editorRef = React.useRef(null);
|
|
@@ -1246,17 +1246,17 @@ var SmartBasicRichTextbox = ({
|
|
|
1246
1246
|
const handleBlur = () => {
|
|
1247
1247
|
setIsFocused(false);
|
|
1248
1248
|
};
|
|
1249
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1249
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunk4H5U5IHH_cjs.cn("flex-1 min-w-0", className), children: [
|
|
1250
1250
|
label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2", children: [
|
|
1251
1251
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1252
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1252
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Label, { className: "text-sm font-medium text-foreground", children: [
|
|
1253
1253
|
label,
|
|
1254
1254
|
" ",
|
|
1255
1255
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-destructive", children: "*" })
|
|
1256
1256
|
] }),
|
|
1257
|
-
info && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1258
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1259
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1257
|
+
info && /* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
1258
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4 text-muted-foreground cursor-pointer mr-2" }) }),
|
|
1259
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-xs", children: info }) })
|
|
1260
1260
|
] }) })
|
|
1261
1261
|
] }),
|
|
1262
1262
|
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground mt-1", children: subLabel })
|
|
@@ -1266,21 +1266,21 @@ var SmartBasicRichTextbox = ({
|
|
|
1266
1266
|
{
|
|
1267
1267
|
ref: fieldRef,
|
|
1268
1268
|
"data-field": field,
|
|
1269
|
-
className:
|
|
1269
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
1270
1270
|
"w-full rounded-md border border-input bg-background",
|
|
1271
1271
|
"focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
|
|
1272
1272
|
error && "border-destructive focus-within:ring-destructive"
|
|
1273
1273
|
),
|
|
1274
1274
|
children: [
|
|
1275
1275
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-0.5 p-1.5 border-b border-border bg-muted/30", children: [
|
|
1276
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1277
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1278
|
-
|
|
1276
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
1277
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1278
|
+
chunkCJ55WKPC_cjs.Button,
|
|
1279
1279
|
{
|
|
1280
1280
|
type: "button",
|
|
1281
1281
|
variant: "ghost",
|
|
1282
1282
|
size: "sm",
|
|
1283
|
-
className:
|
|
1283
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
1284
1284
|
"h-8 w-8 p-0 hover:bg-accent hover:text-accent-foreground",
|
|
1285
1285
|
activeFormats.bold && "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
1286
1286
|
),
|
|
@@ -1288,16 +1288,16 @@ var SmartBasicRichTextbox = ({
|
|
|
1288
1288
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bold, { className: "h-4 w-4" })
|
|
1289
1289
|
}
|
|
1290
1290
|
) }),
|
|
1291
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1291
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Bold (Ctrl+B)" }) })
|
|
1292
1292
|
] }) }),
|
|
1293
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1294
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1295
|
-
|
|
1293
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
1294
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1295
|
+
chunkCJ55WKPC_cjs.Button,
|
|
1296
1296
|
{
|
|
1297
1297
|
type: "button",
|
|
1298
1298
|
variant: "ghost",
|
|
1299
1299
|
size: "sm",
|
|
1300
|
-
className:
|
|
1300
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
1301
1301
|
"h-8 w-8 p-0 hover:bg-accent hover:text-accent-foreground",
|
|
1302
1302
|
activeFormats.italic && "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
1303
1303
|
),
|
|
@@ -1305,16 +1305,16 @@ var SmartBasicRichTextbox = ({
|
|
|
1305
1305
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Italic, { className: "h-4 w-4" })
|
|
1306
1306
|
}
|
|
1307
1307
|
) }),
|
|
1308
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1308
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Italic (Ctrl+I)" }) })
|
|
1309
1309
|
] }) }),
|
|
1310
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1311
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1312
|
-
|
|
1310
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
1311
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1312
|
+
chunkCJ55WKPC_cjs.Button,
|
|
1313
1313
|
{
|
|
1314
1314
|
type: "button",
|
|
1315
1315
|
variant: "ghost",
|
|
1316
1316
|
size: "sm",
|
|
1317
|
-
className:
|
|
1317
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
1318
1318
|
"h-8 w-8 p-0 hover:bg-accent hover:text-accent-foreground",
|
|
1319
1319
|
activeFormats.underline && "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
1320
1320
|
),
|
|
@@ -1322,17 +1322,17 @@ var SmartBasicRichTextbox = ({
|
|
|
1322
1322
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Underline, { className: "h-4 w-4" })
|
|
1323
1323
|
}
|
|
1324
1324
|
) }),
|
|
1325
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1325
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Underline (Ctrl+U)" }) })
|
|
1326
1326
|
] }) }),
|
|
1327
1327
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-px h-5 bg-border mx-1" }),
|
|
1328
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1329
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1330
|
-
|
|
1328
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
1329
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1330
|
+
chunkCJ55WKPC_cjs.Button,
|
|
1331
1331
|
{
|
|
1332
1332
|
type: "button",
|
|
1333
1333
|
variant: "ghost",
|
|
1334
1334
|
size: "sm",
|
|
1335
|
-
className:
|
|
1335
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
1336
1336
|
"h-8 w-8 p-0 hover:bg-accent hover:text-accent-foreground",
|
|
1337
1337
|
activeFormats.bulletList && "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
1338
1338
|
),
|
|
@@ -1340,16 +1340,16 @@ var SmartBasicRichTextbox = ({
|
|
|
1340
1340
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.List, { className: "h-4 w-4" })
|
|
1341
1341
|
}
|
|
1342
1342
|
) }),
|
|
1343
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1343
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Bullet List" }) })
|
|
1344
1344
|
] }) }),
|
|
1345
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1346
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1347
|
-
|
|
1345
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk4H5U5IHH_cjs.Tooltip, { children: [
|
|
1346
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1347
|
+
chunkCJ55WKPC_cjs.Button,
|
|
1348
1348
|
{
|
|
1349
1349
|
type: "button",
|
|
1350
1350
|
variant: "ghost",
|
|
1351
1351
|
size: "sm",
|
|
1352
|
-
className:
|
|
1352
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
1353
1353
|
"h-8 w-8 p-0 hover:bg-accent hover:text-accent-foreground",
|
|
1354
1354
|
activeFormats.numberedList && "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
1355
1355
|
),
|
|
@@ -1357,7 +1357,7 @@ var SmartBasicRichTextbox = ({
|
|
|
1357
1357
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ListOrdered, { className: "h-4 w-4" })
|
|
1358
1358
|
}
|
|
1359
1359
|
) }),
|
|
1360
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1360
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4H5U5IHH_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Numbered List" }) })
|
|
1361
1361
|
] }) })
|
|
1362
1362
|
] }),
|
|
1363
1363
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1369,7 +1369,7 @@ var SmartBasicRichTextbox = ({
|
|
|
1369
1369
|
onKeyDown: handleKeyDown,
|
|
1370
1370
|
onFocus: handleFocus,
|
|
1371
1371
|
onBlur: handleBlur,
|
|
1372
|
-
className:
|
|
1372
|
+
className: chunk4H5U5IHH_cjs.cn(
|
|
1373
1373
|
"w-full px-3 py-2 text-sm text-foreground",
|
|
1374
1374
|
"bg-background",
|
|
1375
1375
|
"focus:outline-none",
|
|
@@ -1401,39 +1401,39 @@ var SmartBasicRichTextbox = ({
|
|
|
1401
1401
|
|
|
1402
1402
|
Object.defineProperty(exports, "SmartCheckbox", {
|
|
1403
1403
|
enumerable: true,
|
|
1404
|
-
get: function () { return
|
|
1404
|
+
get: function () { return chunkCJ55WKPC_cjs.SmartCheckbox; }
|
|
1405
1405
|
});
|
|
1406
1406
|
Object.defineProperty(exports, "SmartDatePicker", {
|
|
1407
1407
|
enumerable: true,
|
|
1408
|
-
get: function () { return
|
|
1408
|
+
get: function () { return chunkCJ55WKPC_cjs.SmartDatePicker; }
|
|
1409
1409
|
});
|
|
1410
1410
|
Object.defineProperty(exports, "SmartRadioGroup", {
|
|
1411
1411
|
enumerable: true,
|
|
1412
|
-
get: function () { return
|
|
1412
|
+
get: function () { return chunkCJ55WKPC_cjs.SmartRadioGroup; }
|
|
1413
1413
|
});
|
|
1414
1414
|
Object.defineProperty(exports, "SmartSelect", {
|
|
1415
1415
|
enumerable: true,
|
|
1416
|
-
get: function () { return
|
|
1416
|
+
get: function () { return chunkCJ55WKPC_cjs.SmartSelect; }
|
|
1417
1417
|
});
|
|
1418
1418
|
Object.defineProperty(exports, "SmartTags", {
|
|
1419
1419
|
enumerable: true,
|
|
1420
|
-
get: function () { return
|
|
1420
|
+
get: function () { return chunkCJ55WKPC_cjs.SmartTags; }
|
|
1421
1421
|
});
|
|
1422
1422
|
Object.defineProperty(exports, "SmartFormProvider", {
|
|
1423
1423
|
enumerable: true,
|
|
1424
|
-
get: function () { return
|
|
1424
|
+
get: function () { return chunk4H5U5IHH_cjs.SmartFormProvider; }
|
|
1425
1425
|
});
|
|
1426
1426
|
Object.defineProperty(exports, "SmartInput", {
|
|
1427
1427
|
enumerable: true,
|
|
1428
|
-
get: function () { return
|
|
1428
|
+
get: function () { return chunk4H5U5IHH_cjs.SmartInput; }
|
|
1429
1429
|
});
|
|
1430
1430
|
Object.defineProperty(exports, "useFormField", {
|
|
1431
1431
|
enumerable: true,
|
|
1432
|
-
get: function () { return
|
|
1432
|
+
get: function () { return chunk4H5U5IHH_cjs.useFormField; }
|
|
1433
1433
|
});
|
|
1434
1434
|
Object.defineProperty(exports, "useSmartForm", {
|
|
1435
1435
|
enumerable: true,
|
|
1436
|
-
get: function () { return
|
|
1436
|
+
get: function () { return chunk4H5U5IHH_cjs.useSmartForm; }
|
|
1437
1437
|
});
|
|
1438
1438
|
exports.SmartAutoSuggestTags = SmartAutoSuggestTags;
|
|
1439
1439
|
exports.SmartBasicRichTextbox = SmartBasicRichTextbox;
|
package/dist/fields.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Button, Popover, PopoverTrigger, PopoverContent } from './chunk-
|
|
2
|
-
export { SmartCheckbox, SmartDatePicker, SmartRadioGroup, SmartSelect, SmartTags } from './chunk-
|
|
3
|
-
import { useFormField, useFieldDetection, Label, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, useSmartForm, cn, Input } from './chunk-
|
|
4
|
-
export { SmartFormProvider, SmartInput, useFormField, useSmartForm } from './chunk-
|
|
1
|
+
import { Button, Popover, PopoverTrigger, PopoverContent } from './chunk-KDPN4CHW.js';
|
|
2
|
+
export { SmartCheckbox, SmartDatePicker, SmartRadioGroup, SmartSelect, SmartTags } from './chunk-KDPN4CHW.js';
|
|
3
|
+
import { useFormField, useFieldDetection, Label, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, useSmartForm, cn, Input } from './chunk-5LRBJEZW.js';
|
|
4
|
+
export { SmartFormProvider, SmartInput, useFormField, useSmartForm } from './chunk-5LRBJEZW.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { createContext, useRef, useEffect, useMemo, useState, useCallback, useContext } from 'react';
|
|
7
7
|
import { InfoIcon, PlusIcon, CheckIcon, Bold, Italic, Underline, List, ListOrdered, ChevronsUpDown, Check, Plus, XIcon, SearchIcon } from 'lucide-react';
|