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.
@@ -1,8 +1,8 @@
1
1
  "use client";
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);
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
- x as default
7
+ a as default
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
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);
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
- a as default
7
+ x as default
8
8
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- var e = {};
2
+ var e = { exports: {} };
3
3
  export {
4
- e as __exports
4
+ e as __module
5
5
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- var e = { exports: {} };
2
+ var e = {};
3
3
  export {
4
- e as __module
4
+ e as __exports
5
5
  };
@@ -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 F } from "./date-picker.js";
9
- import { Input as I } from "./input.js";
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 R, RadioGroupItem as A } from "./radio-group.js";
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
- I,
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
- R,
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("div", { className: "flex items-center gap-2", children: [
80
- /* @__PURE__ */ a(
81
- A,
82
- {
83
- id: u,
84
- value: String(n.value),
85
- disabled: e.disabled
86
- }
87
- ),
88
- /* @__PURE__ */ a(
89
- t,
90
- {
91
- htmlFor: u,
92
- className: o("cursor-pointer", e.disabled && "cursor-not-allowed opacity-60"),
93
- children: n.label
94
- }
95
- )
96
- ] }, n.value);
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
- F,
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("cursor-pointer", e.disabled && "cursor-not-allowed opacity-60"),
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(i, { variant: "caption", className: "text-d-muted-foreground mt-0.5", children: e.caption })
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(i, { variant: "caption", className: "text-d-muted-foreground mt-1", children: e.caption })
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 FormComposer
272
+ U as AppForm
246
273
  };