laif-ds 0.2.40 → 0.2.42
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/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/{form-composer.js → app-form.js} +55 -28
- package/dist/components/ui/tables/data-table/components/data-table-body.js +163 -144
- package/dist/components/ui/tables/data-table/data-table.js +294 -285
- package/dist/index.d.ts +26 -26
- package/dist/index.js +70 -70
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
|
|
4
|
+
var t = e();
|
|
5
|
+
const a = /* @__PURE__ */ r(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
+
var t = r();
|
|
5
|
+
const x = /* @__PURE__ */ e(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
x as default
|
|
8
8
|
};
|
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.js
CHANGED
|
@@ -5,10 +5,10 @@ import { Controller as w } from "../../node_modules/react-hook-form/dist/index.e
|
|
|
5
5
|
import { AppSelect as m } from "./app-select.js";
|
|
6
6
|
import { Button as V } from "./button.js";
|
|
7
7
|
import { Checkbox as j } from "./checkbox.js";
|
|
8
|
-
import { DatePicker as
|
|
9
|
-
import { Input as
|
|
8
|
+
import { DatePicker as A } from "./date-picker.js";
|
|
9
|
+
import { Input as F } from "./input.js";
|
|
10
10
|
import { Label as t } from "./label.js";
|
|
11
|
-
import { RadioGroup as
|
|
11
|
+
import { RadioGroup as I, RadioGroupItem as R } from "./radio-group.js";
|
|
12
12
|
import { Slider as B } from "./slider.js";
|
|
13
13
|
import { Switch as $ } from "./switch.js";
|
|
14
14
|
import { Textarea as D } from "./textarea.js";
|
|
@@ -42,7 +42,7 @@ const U = ({
|
|
|
42
42
|
return /* @__PURE__ */ l("div", { children: [
|
|
43
43
|
s,
|
|
44
44
|
/* @__PURE__ */ a(
|
|
45
|
-
|
|
45
|
+
F,
|
|
46
46
|
{
|
|
47
47
|
...r,
|
|
48
48
|
placeholder: e.placeholder,
|
|
@@ -68,7 +68,7 @@ const U = ({
|
|
|
68
68
|
return /* @__PURE__ */ l("div", { children: [
|
|
69
69
|
s,
|
|
70
70
|
/* @__PURE__ */ a(
|
|
71
|
-
|
|
71
|
+
I,
|
|
72
72
|
{
|
|
73
73
|
value: r.value != null ? String(r.value) : "",
|
|
74
74
|
onValueChange: (n) => r.onChange(n),
|
|
@@ -76,24 +76,34 @@ const U = ({
|
|
|
76
76
|
disabled: e.disabled,
|
|
77
77
|
children: (e.options ?? []).map((n) => {
|
|
78
78
|
const u = `${e.name}-${n.value}`;
|
|
79
|
-
return /* @__PURE__ */ l(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
79
|
+
return /* @__PURE__ */ l(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
className: "flex items-center gap-2",
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ a(
|
|
85
|
+
R,
|
|
86
|
+
{
|
|
87
|
+
id: u,
|
|
88
|
+
value: String(n.value),
|
|
89
|
+
disabled: e.disabled
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ a(
|
|
93
|
+
t,
|
|
94
|
+
{
|
|
95
|
+
htmlFor: u,
|
|
96
|
+
className: o(
|
|
97
|
+
"cursor-pointer",
|
|
98
|
+
e.disabled && "cursor-not-allowed opacity-60"
|
|
99
|
+
),
|
|
100
|
+
children: n.label
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
n.value
|
|
106
|
+
);
|
|
97
107
|
})
|
|
98
108
|
}
|
|
99
109
|
)
|
|
@@ -131,7 +141,7 @@ const U = ({
|
|
|
131
141
|
return /* @__PURE__ */ l("div", { className: "relative", children: [
|
|
132
142
|
s,
|
|
133
143
|
/* @__PURE__ */ a(
|
|
134
|
-
|
|
144
|
+
A,
|
|
135
145
|
{
|
|
136
146
|
value: r.value,
|
|
137
147
|
onChange: e.disabled || e.calendarRange ? void 0 : (n) => r.onChange(n),
|
|
@@ -165,7 +175,10 @@ const U = ({
|
|
|
165
175
|
t,
|
|
166
176
|
{
|
|
167
177
|
htmlFor: e.name,
|
|
168
|
-
className: o(
|
|
178
|
+
className: o(
|
|
179
|
+
"cursor-pointer",
|
|
180
|
+
e.disabled && "cursor-not-allowed opacity-60"
|
|
181
|
+
),
|
|
169
182
|
children: e.label
|
|
170
183
|
}
|
|
171
184
|
),
|
|
@@ -185,7 +198,14 @@ const U = ({
|
|
|
185
198
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
186
199
|
/* @__PURE__ */ l("div", { children: [
|
|
187
200
|
/* @__PURE__ */ a(t, { htmlFor: e.name, children: e.label }),
|
|
188
|
-
e.caption && /* @__PURE__ */ a(
|
|
201
|
+
e.caption && /* @__PURE__ */ a(
|
|
202
|
+
i,
|
|
203
|
+
{
|
|
204
|
+
variant: "caption",
|
|
205
|
+
className: "text-d-muted-foreground mt-0.5",
|
|
206
|
+
children: e.caption
|
|
207
|
+
}
|
|
208
|
+
)
|
|
189
209
|
] }),
|
|
190
210
|
/* @__PURE__ */ a(
|
|
191
211
|
$,
|
|
@@ -214,7 +234,14 @@ const U = ({
|
|
|
214
234
|
showValues: !0
|
|
215
235
|
}
|
|
216
236
|
),
|
|
217
|
-
e.caption && /* @__PURE__ */ a(
|
|
237
|
+
e.caption && /* @__PURE__ */ a(
|
|
238
|
+
i,
|
|
239
|
+
{
|
|
240
|
+
variant: "caption",
|
|
241
|
+
className: "text-d-muted-foreground mt-1",
|
|
242
|
+
children: e.caption
|
|
243
|
+
}
|
|
244
|
+
)
|
|
218
245
|
] });
|
|
219
246
|
}
|
|
220
247
|
}
|
|
@@ -242,5 +269,5 @@ const U = ({
|
|
|
242
269
|
] });
|
|
243
270
|
};
|
|
244
271
|
export {
|
|
245
|
-
U as
|
|
272
|
+
U as AppForm
|
|
246
273
|
};
|