@latty-ds/react 0.3.0 → 0.5.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/index.cjs CHANGED
@@ -78,7 +78,7 @@ var Alert = (0, import_react.forwardRef)(function Alert2({ onClose, children, ..
78
78
  (0, import_react.useEffect)(() => {
79
79
  const el = innerRef.current;
80
80
  if (!el || !onClose) return;
81
- const h = (ev) => onClose(ev);
81
+ const h = () => onClose();
82
82
  el.addEventListener("close", h);
83
83
  return () => el.removeEventListener("close", h);
84
84
  }, [onClose]);
@@ -86,25 +86,25 @@ var Alert = (0, import_react.forwardRef)(function Alert2({ onClose, children, ..
86
86
  });
87
87
  Alert.displayName = "Alert";
88
88
 
89
- // src/components/Breadcrumb/Breadcrumb.tsx
89
+ // src/components/Avatar/Avatar.tsx
90
90
  var import_react2 = require("react");
91
91
  var import_jsx_runtime2 = require("react/jsx-runtime");
92
- var Breadcrumb = (0, import_react2.forwardRef)(function Breadcrumb2({ children, ...props }, forwardedRef) {
92
+ var Avatar = (0, import_react2.forwardRef)(function Avatar2({ children, ...props }, forwardedRef) {
93
93
  const innerRef = (0, import_react2.useRef)(null);
94
94
  (0, import_react2.useImperativeHandle)(forwardedRef, () => innerRef.current);
95
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("lt-breadcrumb", { ref: innerRef, ...props, children });
95
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("lt-avatar", { ref: innerRef, ...props, children });
96
96
  });
97
- Breadcrumb.displayName = "Breadcrumb";
97
+ Avatar.displayName = "Avatar";
98
98
 
99
- // src/components/BreadcrumbItem/BreadcrumbItem.tsx
99
+ // src/components/Badge/Badge.tsx
100
100
  var import_react3 = require("react");
101
101
  var import_jsx_runtime3 = require("react/jsx-runtime");
102
- var BreadcrumbItem = (0, import_react3.forwardRef)(function BreadcrumbItem2({ children, ...props }, forwardedRef) {
102
+ var Badge = (0, import_react3.forwardRef)(function Badge2({ children, ...props }, forwardedRef) {
103
103
  const innerRef = (0, import_react3.useRef)(null);
104
104
  (0, import_react3.useImperativeHandle)(forwardedRef, () => innerRef.current);
105
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("lt-breadcrumb-item", { ref: innerRef, ...props, children });
105
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("lt-badge", { ref: innerRef, ...props, children });
106
106
  });
107
- BreadcrumbItem.displayName = "BreadcrumbItem";
107
+ Badge.displayName = "Badge";
108
108
 
109
109
  // src/components/Accordion/Accordion.tsx
110
110
  var import_react4 = require("react");
@@ -115,7 +115,7 @@ var Accordion = (0, import_react4.forwardRef)(function Accordion2({ onToggle, ch
115
115
  (0, import_react4.useEffect)(() => {
116
116
  const el = innerRef.current;
117
117
  if (!el || !onToggle) return;
118
- const h = (ev) => onToggle(ev);
118
+ const h = (ev) => onToggle(ev.detail);
119
119
  el.addEventListener("toggle", h);
120
120
  return () => el.removeEventListener("toggle", h);
121
121
  }, [onToggle]);
@@ -123,110 +123,110 @@ var Accordion = (0, import_react4.forwardRef)(function Accordion2({ onToggle, ch
123
123
  });
124
124
  Accordion.displayName = "Accordion";
125
125
 
126
- // src/components/Badge/Badge.tsx
126
+ // src/components/Breadcrumb/Breadcrumb.tsx
127
127
  var import_react5 = require("react");
128
128
  var import_jsx_runtime5 = require("react/jsx-runtime");
129
- var Badge = (0, import_react5.forwardRef)(function Badge2({ children, ...props }, forwardedRef) {
129
+ var Breadcrumb = (0, import_react5.forwardRef)(function Breadcrumb2({ children, ...props }, forwardedRef) {
130
130
  const innerRef = (0, import_react5.useRef)(null);
131
131
  (0, import_react5.useImperativeHandle)(forwardedRef, () => innerRef.current);
132
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("lt-badge", { ref: innerRef, ...props, children });
132
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("lt-breadcrumb", { ref: innerRef, ...props, children });
133
133
  });
134
- Badge.displayName = "Badge";
134
+ Breadcrumb.displayName = "Breadcrumb";
135
135
 
136
- // src/components/Avatar/Avatar.tsx
136
+ // src/components/BreadcrumbItem/BreadcrumbItem.tsx
137
137
  var import_react6 = require("react");
138
138
  var import_jsx_runtime6 = require("react/jsx-runtime");
139
- var Avatar = (0, import_react6.forwardRef)(function Avatar2({ children, ...props }, forwardedRef) {
139
+ var BreadcrumbItem = (0, import_react6.forwardRef)(function BreadcrumbItem2({ children, ...props }, forwardedRef) {
140
140
  const innerRef = (0, import_react6.useRef)(null);
141
141
  (0, import_react6.useImperativeHandle)(forwardedRef, () => innerRef.current);
142
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("lt-avatar", { ref: innerRef, ...props, children });
142
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("lt-breadcrumb-item", { ref: innerRef, ...props, children });
143
143
  });
144
- Avatar.displayName = "Avatar";
144
+ BreadcrumbItem.displayName = "BreadcrumbItem";
145
145
 
146
- // src/components/Calendar/Calendar.tsx
146
+ // src/components/Button/Button.tsx
147
147
  var import_react7 = require("react");
148
148
  var import_jsx_runtime7 = require("react/jsx-runtime");
149
- var Calendar = (0, import_react7.forwardRef)(function Calendar2({ onChange, onMonthChange, children, ...props }, forwardedRef) {
149
+ var Button = (0, import_react7.forwardRef)(function Button2({ children, ...props }, forwardedRef) {
150
150
  const innerRef = (0, import_react7.useRef)(null);
151
151
  (0, import_react7.useImperativeHandle)(forwardedRef, () => innerRef.current);
152
- (0, import_react7.useEffect)(() => {
152
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("lt-button", { ref: innerRef, ...props, children });
153
+ });
154
+ Button.displayName = "Button";
155
+
156
+ // src/components/Calendar/Calendar.tsx
157
+ var import_react8 = require("react");
158
+ var import_jsx_runtime8 = require("react/jsx-runtime");
159
+ var Calendar = (0, import_react8.forwardRef)(function Calendar2({ onChange, onMonthChange, children, ...props }, forwardedRef) {
160
+ const innerRef = (0, import_react8.useRef)(null);
161
+ (0, import_react8.useImperativeHandle)(forwardedRef, () => innerRef.current);
162
+ (0, import_react8.useEffect)(() => {
153
163
  const el = innerRef.current;
154
164
  if (!el || !onChange) return;
155
- const h = (ev) => onChange(ev);
165
+ const h = (ev) => onChange(ev.detail);
156
166
  el.addEventListener("change", h);
157
167
  return () => el.removeEventListener("change", h);
158
168
  }, [onChange]);
159
- (0, import_react7.useEffect)(() => {
169
+ (0, import_react8.useEffect)(() => {
160
170
  const el = innerRef.current;
161
171
  if (!el || !onMonthChange) return;
162
- const h = (ev) => onMonthChange(ev);
172
+ const h = (ev) => onMonthChange(ev.detail);
163
173
  el.addEventListener("month-change", h);
164
174
  return () => el.removeEventListener("month-change", h);
165
175
  }, [onMonthChange]);
166
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("lt-calendar", { ref: innerRef, ...props, children });
176
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("lt-calendar", { ref: innerRef, ...props, children });
167
177
  });
168
178
  Calendar.displayName = "Calendar";
169
179
 
170
- // src/components/Button/Button.tsx
171
- var import_react8 = require("react");
172
- var import_jsx_runtime8 = require("react/jsx-runtime");
173
- var Button = (0, import_react8.forwardRef)(function Button2({ children, ...props }, forwardedRef) {
174
- const innerRef = (0, import_react8.useRef)(null);
175
- (0, import_react8.useImperativeHandle)(forwardedRef, () => innerRef.current);
176
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("lt-button", { ref: innerRef, ...props, children });
177
- });
178
- Button.displayName = "Button";
179
-
180
- // src/components/Chip/Chip.tsx
180
+ // src/components/Checkbox/Checkbox.tsx
181
181
  var import_react9 = require("react");
182
182
  var import_jsx_runtime9 = require("react/jsx-runtime");
183
- var Chip = (0, import_react9.forwardRef)(function Chip2({ onDelete, children, ...props }, forwardedRef) {
183
+ var Checkbox = (0, import_react9.forwardRef)(function Checkbox2({ onChange, children, ...props }, forwardedRef) {
184
184
  const innerRef = (0, import_react9.useRef)(null);
185
185
  (0, import_react9.useImperativeHandle)(forwardedRef, () => innerRef.current);
186
186
  (0, import_react9.useEffect)(() => {
187
187
  const el = innerRef.current;
188
- if (!el || !onDelete) return;
189
- const h = (ev) => onDelete(ev);
190
- el.addEventListener("delete", h);
191
- return () => el.removeEventListener("delete", h);
192
- }, [onDelete]);
193
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("lt-chip", { ref: innerRef, ...props, children });
188
+ if (!el || !onChange) return;
189
+ const h = (ev) => onChange(ev.detail);
190
+ el.addEventListener("change", h);
191
+ return () => el.removeEventListener("change", h);
192
+ }, [onChange]);
193
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("lt-checkbox", { ref: innerRef, ...props, children });
194
194
  });
195
- Chip.displayName = "Chip";
195
+ Checkbox.displayName = "Checkbox";
196
196
 
197
- // src/components/ColorInput/ColorInput.tsx
197
+ // src/components/Chip/Chip.tsx
198
198
  var import_react10 = require("react");
199
199
  var import_jsx_runtime10 = require("react/jsx-runtime");
200
- var ColorInput = (0, import_react10.forwardRef)(function ColorInput2({ onChange, children, ...props }, forwardedRef) {
200
+ var Chip = (0, import_react10.forwardRef)(function Chip2({ onDelete, children, ...props }, forwardedRef) {
201
201
  const innerRef = (0, import_react10.useRef)(null);
202
202
  (0, import_react10.useImperativeHandle)(forwardedRef, () => innerRef.current);
203
203
  (0, import_react10.useEffect)(() => {
204
204
  const el = innerRef.current;
205
- if (!el || !onChange) return;
206
- const h = (ev) => onChange(ev);
207
- el.addEventListener("change", h);
208
- return () => el.removeEventListener("change", h);
209
- }, [onChange]);
210
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("lt-color-input", { ref: innerRef, ...props, children });
205
+ if (!el || !onDelete) return;
206
+ const h = () => onDelete();
207
+ el.addEventListener("delete", h);
208
+ return () => el.removeEventListener("delete", h);
209
+ }, [onDelete]);
210
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("lt-chip", { ref: innerRef, ...props, children });
211
211
  });
212
- ColorInput.displayName = "ColorInput";
212
+ Chip.displayName = "Chip";
213
213
 
214
- // src/components/Checkbox/Checkbox.tsx
214
+ // src/components/ColorInput/ColorInput.tsx
215
215
  var import_react11 = require("react");
216
216
  var import_jsx_runtime11 = require("react/jsx-runtime");
217
- var Checkbox = (0, import_react11.forwardRef)(function Checkbox2({ onChange, children, ...props }, forwardedRef) {
217
+ var ColorInput = (0, import_react11.forwardRef)(function ColorInput2({ onChange, children, ...props }, forwardedRef) {
218
218
  const innerRef = (0, import_react11.useRef)(null);
219
219
  (0, import_react11.useImperativeHandle)(forwardedRef, () => innerRef.current);
220
220
  (0, import_react11.useEffect)(() => {
221
221
  const el = innerRef.current;
222
222
  if (!el || !onChange) return;
223
- const h = (ev) => onChange(ev);
223
+ const h = (ev) => onChange(ev.detail);
224
224
  el.addEventListener("change", h);
225
225
  return () => el.removeEventListener("change", h);
226
226
  }, [onChange]);
227
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("lt-checkbox", { ref: innerRef, ...props, children });
227
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("lt-color-input", { ref: innerRef, ...props, children });
228
228
  });
229
- Checkbox.displayName = "Checkbox";
229
+ ColorInput.displayName = "ColorInput";
230
230
 
231
231
  // src/components/Combobox/Combobox.tsx
232
232
  var import_react12 = require("react");
@@ -237,7 +237,7 @@ var Combobox = (0, import_react12.forwardRef)(function Combobox2({ onChange, chi
237
237
  (0, import_react12.useEffect)(() => {
238
238
  const el = innerRef.current;
239
239
  if (!el || !onChange) return;
240
- const h = (ev) => onChange(ev);
240
+ const h = (ev) => onChange(ev.detail);
241
241
  el.addEventListener("change", h);
242
242
  return () => el.removeEventListener("change", h);
243
243
  }, [onChange]);
@@ -254,7 +254,7 @@ var DateInput = (0, import_react13.forwardRef)(function DateInput2({ onChange, c
254
254
  (0, import_react13.useEffect)(() => {
255
255
  const el = innerRef.current;
256
256
  if (!el || !onChange) return;
257
- const h = (ev) => onChange(ev);
257
+ const h = (ev) => onChange(ev.detail);
258
258
  el.addEventListener("change", h);
259
259
  return () => el.removeEventListener("change", h);
260
260
  }, [onChange]);
@@ -271,14 +271,14 @@ var Datepicker = (0, import_react14.forwardRef)(function Datepicker2({ onChange,
271
271
  (0, import_react14.useEffect)(() => {
272
272
  const el = innerRef.current;
273
273
  if (!el || !onChange) return;
274
- const h = (ev) => onChange(ev);
274
+ const h = (ev) => onChange(ev.detail);
275
275
  el.addEventListener("change", h);
276
276
  return () => el.removeEventListener("change", h);
277
277
  }, [onChange]);
278
278
  (0, import_react14.useEffect)(() => {
279
279
  const el = innerRef.current;
280
280
  if (!el || !onInput) return;
281
- const h = (ev) => onInput(ev);
281
+ const h = (ev) => onInput(ev.detail);
282
282
  el.addEventListener("input", h);
283
283
  return () => el.removeEventListener("input", h);
284
284
  }, [onInput]);
@@ -289,92 +289,106 @@ Datepicker.displayName = "Datepicker";
289
289
  // src/components/Dialog/Dialog.tsx
290
290
  var import_react15 = require("react");
291
291
  var import_jsx_runtime15 = require("react/jsx-runtime");
292
- var Dialog = (0, import_react15.forwardRef)(function Dialog2({ onDialogOpen, onDialogClose, children, ...props }, forwardedRef) {
292
+ var Dialog = (0, import_react15.forwardRef)(function Dialog2({ onDialogOpen, onClose, onDialogClose, onOpen, children, ...props }, forwardedRef) {
293
293
  const innerRef = (0, import_react15.useRef)(null);
294
294
  (0, import_react15.useImperativeHandle)(forwardedRef, () => innerRef.current);
295
295
  (0, import_react15.useEffect)(() => {
296
296
  const el = innerRef.current;
297
297
  if (!el || !onDialogOpen) return;
298
- const h = (ev) => onDialogOpen(ev);
298
+ const h = () => onDialogOpen();
299
299
  el.addEventListener("dialog-open", h);
300
300
  return () => el.removeEventListener("dialog-open", h);
301
301
  }, [onDialogOpen]);
302
+ (0, import_react15.useEffect)(() => {
303
+ const el = innerRef.current;
304
+ if (!el || !onClose) return;
305
+ const h = () => onClose();
306
+ el.addEventListener("close", h);
307
+ return () => el.removeEventListener("close", h);
308
+ }, [onClose]);
302
309
  (0, import_react15.useEffect)(() => {
303
310
  const el = innerRef.current;
304
311
  if (!el || !onDialogClose) return;
305
- const h = (ev) => onDialogClose(ev);
312
+ const h = () => onDialogClose();
306
313
  el.addEventListener("dialog-close", h);
307
314
  return () => el.removeEventListener("dialog-close", h);
308
315
  }, [onDialogClose]);
316
+ (0, import_react15.useEffect)(() => {
317
+ const el = innerRef.current;
318
+ if (!el || !onOpen) return;
319
+ const h = () => onOpen();
320
+ el.addEventListener("open", h);
321
+ return () => el.removeEventListener("open", h);
322
+ }, [onOpen]);
309
323
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("lt-dialog", { ref: innerRef, ...props, children });
310
324
  });
311
325
  Dialog.displayName = "Dialog";
312
326
 
313
- // src/components/DropdownItem/DropdownItem.tsx
327
+ // src/components/Divider/Divider.tsx
314
328
  var import_react16 = require("react");
315
329
  var import_jsx_runtime16 = require("react/jsx-runtime");
316
- var DropdownItem = (0, import_react16.forwardRef)(function DropdownItem2({ onSelect, children, ...props }, forwardedRef) {
330
+ var Divider = (0, import_react16.forwardRef)(function Divider2({ children, ...props }, forwardedRef) {
317
331
  const innerRef = (0, import_react16.useRef)(null);
318
332
  (0, import_react16.useImperativeHandle)(forwardedRef, () => innerRef.current);
319
- (0, import_react16.useEffect)(() => {
333
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("lt-divider", { ref: innerRef, ...props, children });
334
+ });
335
+ Divider.displayName = "Divider";
336
+
337
+ // src/components/DropdownItem/DropdownItem.tsx
338
+ var import_react17 = require("react");
339
+ var import_jsx_runtime17 = require("react/jsx-runtime");
340
+ var DropdownItem = (0, import_react17.forwardRef)(function DropdownItem2({ onSelect, children, ...props }, forwardedRef) {
341
+ const innerRef = (0, import_react17.useRef)(null);
342
+ (0, import_react17.useImperativeHandle)(forwardedRef, () => innerRef.current);
343
+ (0, import_react17.useEffect)(() => {
320
344
  const el = innerRef.current;
321
345
  if (!el || !onSelect) return;
322
- const h = (ev) => onSelect(ev);
346
+ const h = () => onSelect();
323
347
  el.addEventListener("select", h);
324
348
  return () => el.removeEventListener("select", h);
325
349
  }, [onSelect]);
326
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("lt-dropdown-item", { ref: innerRef, ...props, children });
350
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("lt-dropdown-item", { ref: innerRef, ...props, children });
327
351
  });
328
352
  DropdownItem.displayName = "DropdownItem";
329
353
 
330
354
  // src/components/Dropdown/Dropdown.tsx
331
- var import_react17 = require("react");
332
- var import_jsx_runtime17 = require("react/jsx-runtime");
333
- var Dropdown = (0, import_react17.forwardRef)(function Dropdown2({ onOpen, onClose, children, ...props }, forwardedRef) {
334
- const innerRef = (0, import_react17.useRef)(null);
335
- (0, import_react17.useImperativeHandle)(forwardedRef, () => innerRef.current);
336
- (0, import_react17.useEffect)(() => {
355
+ var import_react18 = require("react");
356
+ var import_jsx_runtime18 = require("react/jsx-runtime");
357
+ var Dropdown = (0, import_react18.forwardRef)(function Dropdown2({ onOpen, onClose, children, ...props }, forwardedRef) {
358
+ const innerRef = (0, import_react18.useRef)(null);
359
+ (0, import_react18.useImperativeHandle)(forwardedRef, () => innerRef.current);
360
+ (0, import_react18.useEffect)(() => {
337
361
  const el = innerRef.current;
338
362
  if (!el || !onOpen) return;
339
- const h = (ev) => onOpen(ev);
363
+ const h = () => onOpen();
340
364
  el.addEventListener("open", h);
341
365
  return () => el.removeEventListener("open", h);
342
366
  }, [onOpen]);
343
- (0, import_react17.useEffect)(() => {
367
+ (0, import_react18.useEffect)(() => {
344
368
  const el = innerRef.current;
345
369
  if (!el || !onClose) return;
346
- const h = (ev) => onClose(ev);
370
+ const h = () => onClose();
347
371
  el.addEventListener("close", h);
348
372
  return () => el.removeEventListener("close", h);
349
373
  }, [onClose]);
350
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("lt-dropdown", { ref: innerRef, ...props, children });
374
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("lt-dropdown", { ref: innerRef, ...props, children });
351
375
  });
352
376
  Dropdown.displayName = "Dropdown";
353
377
 
354
378
  // src/components/Header/Header.tsx
355
- var import_react18 = require("react");
356
- var import_jsx_runtime18 = require("react/jsx-runtime");
357
- var Header = (0, import_react18.forwardRef)(function Header2({ background, before, logo, after, children }, forwardedRef) {
358
- const innerRef = (0, import_react18.useRef)(null);
359
- (0, import_react18.useImperativeHandle)(forwardedRef, () => innerRef.current);
360
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("lt-header", { ref: innerRef, background, children: [
361
- before && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { slot: "before", children: before }),
362
- logo && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { slot: "logo", children: logo }),
363
- children && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { slot: "content", children }),
364
- after && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { slot: "after", children: after })
365
- ] });
366
- });
367
- Header.displayName = "Header";
368
-
369
- // src/components/Image/Image.tsx
370
379
  var import_react19 = require("react");
371
380
  var import_jsx_runtime19 = require("react/jsx-runtime");
372
- var Image = (0, import_react19.forwardRef)(function Image2({ children, ...props }, forwardedRef) {
381
+ var Header = (0, import_react19.forwardRef)(function Header2({ background, before, logo, after, children }, forwardedRef) {
373
382
  const innerRef = (0, import_react19.useRef)(null);
374
383
  (0, import_react19.useImperativeHandle)(forwardedRef, () => innerRef.current);
375
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("lt-image", { ref: innerRef, ...props, children });
384
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("lt-header", { ref: innerRef, background, children: [
385
+ before && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { slot: "before", children: before }),
386
+ logo && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { slot: "logo", children: logo }),
387
+ children && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { slot: "content", children }),
388
+ after && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { slot: "after", children: after })
389
+ ] });
376
390
  });
377
- Image.displayName = "Image";
391
+ Header.displayName = "Header";
378
392
 
379
393
  // src/components/IconButton/IconButton.tsx
380
394
  var import_react20 = require("react");
@@ -386,252 +400,252 @@ var IconButton = (0, import_react20.forwardRef)(function IconButton2({ children,
386
400
  });
387
401
  IconButton.displayName = "IconButton";
388
402
 
389
- // src/components/Divider/Divider.tsx
403
+ // src/components/Image/Image.tsx
390
404
  var import_react21 = require("react");
391
405
  var import_jsx_runtime21 = require("react/jsx-runtime");
392
- var Divider = (0, import_react21.forwardRef)(function Divider2({ children, ...props }, forwardedRef) {
406
+ var Image = (0, import_react21.forwardRef)(function Image2({ children, ...props }, forwardedRef) {
393
407
  const innerRef = (0, import_react21.useRef)(null);
394
408
  (0, import_react21.useImperativeHandle)(forwardedRef, () => innerRef.current);
395
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("lt-divider", { ref: innerRef, ...props, children });
409
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("lt-image", { ref: innerRef, ...props, children });
396
410
  });
397
- Divider.displayName = "Divider";
411
+ Image.displayName = "Image";
398
412
 
399
- // src/components/Link/Link.tsx
413
+ // src/components/ListItem/ListItem.tsx
400
414
  var import_react22 = require("react");
401
415
  var import_jsx_runtime22 = require("react/jsx-runtime");
402
- var Link = (0, import_react22.forwardRef)(function Link2({ children, ...props }, forwardedRef) {
416
+ var ListItem = (0, import_react22.forwardRef)(function ListItem2({ children, ...props }, forwardedRef) {
403
417
  const innerRef = (0, import_react22.useRef)(null);
404
418
  (0, import_react22.useImperativeHandle)(forwardedRef, () => innerRef.current);
405
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("lt-link", { ref: innerRef, ...props, children });
419
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("lt-list-item", { ref: innerRef, ...props, children });
406
420
  });
407
- Link.displayName = "Link";
421
+ ListItem.displayName = "ListItem";
408
422
 
409
- // src/components/ListItem/ListItem.tsx
423
+ // src/components/List/List.tsx
410
424
  var import_react23 = require("react");
411
425
  var import_jsx_runtime23 = require("react/jsx-runtime");
412
- var ListItem = (0, import_react23.forwardRef)(function ListItem2({ children, ...props }, forwardedRef) {
426
+ var List = (0, import_react23.forwardRef)(function List2({ children, ...props }, forwardedRef) {
413
427
  const innerRef = (0, import_react23.useRef)(null);
414
428
  (0, import_react23.useImperativeHandle)(forwardedRef, () => innerRef.current);
415
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("lt-list-item", { ref: innerRef, ...props, children });
429
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("lt-list", { ref: innerRef, ...props, children });
416
430
  });
417
- ListItem.displayName = "ListItem";
431
+ List.displayName = "List";
418
432
 
419
- // src/components/List/List.tsx
433
+ // src/components/NavItem/NavItem.tsx
420
434
  var import_react24 = require("react");
421
435
  var import_jsx_runtime24 = require("react/jsx-runtime");
422
- var List = (0, import_react24.forwardRef)(function List2({ children, ...props }, forwardedRef) {
436
+ var NavItem = (0, import_react24.forwardRef)(function NavItem2({ onNavItemClick, onNavCollapse, iconStart, children, ...props }, forwardedRef) {
423
437
  const innerRef = (0, import_react24.useRef)(null);
424
438
  (0, import_react24.useImperativeHandle)(forwardedRef, () => innerRef.current);
425
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("lt-list", { ref: innerRef, ...props, children });
426
- });
427
- List.displayName = "List";
428
-
429
- // src/components/NavItem/NavItem.tsx
430
- var import_react25 = require("react");
431
- var import_jsx_runtime25 = require("react/jsx-runtime");
432
- var NavItem = (0, import_react25.forwardRef)(function NavItem2({ onNavItemClick, onNavCollapse, iconStart, children, ...props }, forwardedRef) {
433
- const innerRef = (0, import_react25.useRef)(null);
434
- (0, import_react25.useImperativeHandle)(forwardedRef, () => innerRef.current);
435
- (0, import_react25.useEffect)(() => {
439
+ (0, import_react24.useEffect)(() => {
436
440
  const el = innerRef.current;
437
441
  if (!el || !onNavItemClick) return;
438
442
  const h = (ev) => onNavItemClick(ev);
439
443
  el.addEventListener("nav-item-click", h);
440
444
  return () => el.removeEventListener("nav-item-click", h);
441
445
  }, [onNavItemClick]);
442
- (0, import_react25.useEffect)(() => {
446
+ (0, import_react24.useEffect)(() => {
443
447
  const el = innerRef.current;
444
448
  if (!el || !onNavCollapse) return;
445
449
  const h = (ev) => onNavCollapse(ev);
446
450
  el.addEventListener("nav-collapse", h);
447
451
  return () => el.removeEventListener("nav-collapse", h);
448
452
  }, [onNavCollapse]);
449
- (0, import_react25.useEffect)(() => {
453
+ (0, import_react24.useEffect)(() => {
450
454
  const el = innerRef.current;
451
455
  if (!el) return;
452
456
  if (iconStart) el.setAttribute("icon-start", iconStart);
453
457
  else el.removeAttribute("icon-start");
454
458
  }, [iconStart]);
455
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("lt-nav-item", { ref: innerRef, ...props, children });
459
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("lt-nav-item", { ref: innerRef, ...props, children });
456
460
  });
457
461
  NavItem.displayName = "NavItem";
458
462
 
459
463
  // src/components/Nav/Nav.tsx
460
- var import_react26 = require("react");
461
- var import_jsx_runtime26 = require("react/jsx-runtime");
462
- var Nav = (0, import_react26.forwardRef)(function Nav2({ children, ...props }, forwardedRef) {
463
- const innerRef = (0, import_react26.useRef)(null);
464
- (0, import_react26.useImperativeHandle)(forwardedRef, () => innerRef.current);
465
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("lt-nav", { ref: innerRef, ...props, children });
464
+ var import_react25 = require("react");
465
+ var import_jsx_runtime25 = require("react/jsx-runtime");
466
+ var Nav = (0, import_react25.forwardRef)(function Nav2({ children, ...props }, forwardedRef) {
467
+ const innerRef = (0, import_react25.useRef)(null);
468
+ (0, import_react25.useImperativeHandle)(forwardedRef, () => innerRef.current);
469
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("lt-nav", { ref: innerRef, ...props, children });
466
470
  });
467
471
  Nav.displayName = "Nav";
468
472
 
469
473
  // src/components/Pagination/Pagination.tsx
470
- var import_react27 = require("react");
471
- var import_jsx_runtime27 = require("react/jsx-runtime");
472
- var Pagination = (0, import_react27.forwardRef)(function Pagination2({ onChange, children, ...props }, forwardedRef) {
473
- const innerRef = (0, import_react27.useRef)(null);
474
- (0, import_react27.useImperativeHandle)(forwardedRef, () => innerRef.current);
475
- (0, import_react27.useEffect)(() => {
474
+ var import_react26 = require("react");
475
+ var import_jsx_runtime26 = require("react/jsx-runtime");
476
+ var Pagination = (0, import_react26.forwardRef)(function Pagination2({ onChange, children, ...props }, forwardedRef) {
477
+ const innerRef = (0, import_react26.useRef)(null);
478
+ (0, import_react26.useImperativeHandle)(forwardedRef, () => innerRef.current);
479
+ (0, import_react26.useEffect)(() => {
476
480
  const el = innerRef.current;
477
481
  if (!el || !onChange) return;
478
- const h = (ev) => onChange(ev);
482
+ const h = (ev) => onChange(ev.detail);
479
483
  el.addEventListener("change", h);
480
484
  return () => el.removeEventListener("change", h);
481
485
  }, [onChange]);
482
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("lt-pagination", { ref: innerRef, ...props, children });
486
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("lt-pagination", { ref: innerRef, ...props, children });
483
487
  });
484
488
  Pagination.displayName = "Pagination";
485
489
 
486
- // src/components/Radio/Radio.tsx
490
+ // src/components/Link/Link.tsx
491
+ var import_react27 = require("react");
492
+ var import_jsx_runtime27 = require("react/jsx-runtime");
493
+ var Link = (0, import_react27.forwardRef)(function Link2({ children, ...props }, forwardedRef) {
494
+ const innerRef = (0, import_react27.useRef)(null);
495
+ (0, import_react27.useImperativeHandle)(forwardedRef, () => innerRef.current);
496
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("lt-link", { ref: innerRef, ...props, children });
497
+ });
498
+ Link.displayName = "Link";
499
+
500
+ // src/components/Progress/Progress.tsx
487
501
  var import_react28 = require("react");
488
502
  var import_jsx_runtime28 = require("react/jsx-runtime");
489
- var Radio = (0, import_react28.forwardRef)(function Radio2({ onChange, children, ...props }, forwardedRef) {
503
+ var Progress = (0, import_react28.forwardRef)(function Progress2({ children, ...props }, forwardedRef) {
490
504
  const innerRef = (0, import_react28.useRef)(null);
491
505
  (0, import_react28.useImperativeHandle)(forwardedRef, () => innerRef.current);
492
- (0, import_react28.useEffect)(() => {
493
- const el = innerRef.current;
494
- if (!el || !onChange) return;
495
- const h = (ev) => onChange(ev);
496
- el.addEventListener("change", h);
497
- return () => el.removeEventListener("change", h);
498
- }, [onChange]);
499
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("lt-radio", { ref: innerRef, ...props, children });
506
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("lt-progress", { ref: innerRef, ...props, children });
500
507
  });
501
- Radio.displayName = "Radio";
508
+ Progress.displayName = "Progress";
502
509
 
503
- // src/components/Progress/Progress.tsx
510
+ // src/components/Radio/Radio.tsx
504
511
  var import_react29 = require("react");
505
512
  var import_jsx_runtime29 = require("react/jsx-runtime");
506
- var Progress = (0, import_react29.forwardRef)(function Progress2({ children, ...props }, forwardedRef) {
513
+ var Radio = (0, import_react29.forwardRef)(function Radio2({ onChange, children, ...props }, forwardedRef) {
507
514
  const innerRef = (0, import_react29.useRef)(null);
508
515
  (0, import_react29.useImperativeHandle)(forwardedRef, () => innerRef.current);
509
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("lt-progress", { ref: innerRef, ...props, children });
516
+ (0, import_react29.useEffect)(() => {
517
+ const el = innerRef.current;
518
+ if (!el || !onChange) return;
519
+ const h = (ev) => onChange(ev.detail);
520
+ el.addEventListener("change", h);
521
+ return () => el.removeEventListener("change", h);
522
+ }, [onChange]);
523
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("lt-radio", { ref: innerRef, ...props, children });
510
524
  });
511
- Progress.displayName = "Progress";
525
+ Radio.displayName = "Radio";
512
526
 
513
- // src/components/Select/Select.tsx
527
+ // src/components/RadioGroup/RadioGroup.tsx
514
528
  var import_react30 = require("react");
515
529
  var import_jsx_runtime30 = require("react/jsx-runtime");
516
- var Select = (0, import_react30.forwardRef)(function Select2({ onChange, children, ...props }, forwardedRef) {
530
+ var RadioGroup = (0, import_react30.forwardRef)(function RadioGroup2({ onChange, children, ...props }, forwardedRef) {
517
531
  const innerRef = (0, import_react30.useRef)(null);
518
532
  (0, import_react30.useImperativeHandle)(forwardedRef, () => innerRef.current);
519
533
  (0, import_react30.useEffect)(() => {
520
534
  const el = innerRef.current;
521
535
  if (!el || !onChange) return;
522
- const h = (ev) => onChange(ev);
536
+ const h = (ev) => onChange(ev.detail);
523
537
  el.addEventListener("change", h);
524
538
  return () => el.removeEventListener("change", h);
525
539
  }, [onChange]);
526
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("lt-select", { ref: innerRef, ...props, children });
540
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("lt-radio-group", { ref: innerRef, ...props, children });
527
541
  });
528
- Select.displayName = "Select";
542
+ RadioGroup.displayName = "RadioGroup";
529
543
 
530
- // src/components/RadioGroup/RadioGroup.tsx
544
+ // src/components/Select/Select.tsx
531
545
  var import_react31 = require("react");
532
546
  var import_jsx_runtime31 = require("react/jsx-runtime");
533
- var RadioGroup = (0, import_react31.forwardRef)(function RadioGroup2({ onChange, children, ...props }, forwardedRef) {
547
+ var Select = (0, import_react31.forwardRef)(function Select2({ onChange, children, ...props }, forwardedRef) {
534
548
  const innerRef = (0, import_react31.useRef)(null);
535
549
  (0, import_react31.useImperativeHandle)(forwardedRef, () => innerRef.current);
536
550
  (0, import_react31.useEffect)(() => {
537
551
  const el = innerRef.current;
538
552
  if (!el || !onChange) return;
539
- const h = (ev) => onChange(ev);
553
+ const h = (ev) => onChange(ev.detail);
540
554
  el.addEventListener("change", h);
541
555
  return () => el.removeEventListener("change", h);
542
556
  }, [onChange]);
543
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("lt-radio-group", { ref: innerRef, ...props, children });
557
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("lt-select", { ref: innerRef, ...props, children });
544
558
  });
545
- RadioGroup.displayName = "RadioGroup";
559
+ Select.displayName = "Select";
546
560
 
547
- // src/components/Skeleton/Skeleton.tsx
561
+ // src/components/SidePanel/SidePanel.tsx
548
562
  var import_react32 = require("react");
549
563
  var import_jsx_runtime32 = require("react/jsx-runtime");
550
- var Skeleton = (0, import_react32.forwardRef)(function Skeleton2({ children, ...props }, forwardedRef) {
564
+ var SidePanel = (0, import_react32.forwardRef)(function SidePanel2({ onClose, noCloseButton, children, ...props }, forwardedRef) {
551
565
  const innerRef = (0, import_react32.useRef)(null);
552
566
  (0, import_react32.useImperativeHandle)(forwardedRef, () => innerRef.current);
553
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("lt-skeleton", { ref: innerRef, ...props, children });
554
- });
555
- Skeleton.displayName = "Skeleton";
556
-
557
- // src/components/SidePanel/SidePanel.tsx
558
- var import_react33 = require("react");
559
- var import_jsx_runtime33 = require("react/jsx-runtime");
560
- var SidePanel = (0, import_react33.forwardRef)(function SidePanel2({ onClose, noCloseButton, children, ...props }, forwardedRef) {
561
- const innerRef = (0, import_react33.useRef)(null);
562
- (0, import_react33.useImperativeHandle)(forwardedRef, () => innerRef.current);
563
- (0, import_react33.useEffect)(() => {
567
+ (0, import_react32.useEffect)(() => {
564
568
  const el = innerRef.current;
565
569
  if (!el || !onClose) return;
566
570
  const h = (ev) => onClose(ev);
567
571
  el.addEventListener("close", h);
568
572
  return () => el.removeEventListener("close", h);
569
573
  }, [onClose]);
570
- (0, import_react33.useEffect)(() => {
574
+ (0, import_react32.useEffect)(() => {
571
575
  const el = innerRef.current;
572
576
  if (!el) return;
573
577
  if (noCloseButton) el.setAttribute("no-close-button", "");
574
578
  else el.removeAttribute("no-close-button");
575
579
  }, [noCloseButton]);
576
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("lt-sidepanel", { ref: innerRef, ...props, children });
580
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("lt-sidepanel", { ref: innerRef, ...props, children });
577
581
  });
578
582
  SidePanel.displayName = "SidePanel";
579
583
 
580
- // src/components/Snackbar/Snackbar.tsx
584
+ // src/components/Skeleton/Skeleton.tsx
585
+ var import_react33 = require("react");
586
+ var import_jsx_runtime33 = require("react/jsx-runtime");
587
+ var Skeleton = (0, import_react33.forwardRef)(function Skeleton2({ children, ...props }, forwardedRef) {
588
+ const innerRef = (0, import_react33.useRef)(null);
589
+ (0, import_react33.useImperativeHandle)(forwardedRef, () => innerRef.current);
590
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("lt-skeleton", { ref: innerRef, ...props, children });
591
+ });
592
+ Skeleton.displayName = "Skeleton";
593
+
594
+ // src/components/Slider/Slider.tsx
581
595
  var import_react34 = require("react");
582
596
  var import_jsx_runtime34 = require("react/jsx-runtime");
583
- var Snackbar = (0, import_react34.forwardRef)(function Snackbar2({ onShow, onHide, onAction, children, ...props }, forwardedRef) {
597
+ var Slider = (0, import_react34.forwardRef)(function Slider2({ onInput, onChange, children, ...props }, forwardedRef) {
584
598
  const innerRef = (0, import_react34.useRef)(null);
585
599
  (0, import_react34.useImperativeHandle)(forwardedRef, () => innerRef.current);
586
600
  (0, import_react34.useEffect)(() => {
601
+ const el = innerRef.current;
602
+ if (!el || !onInput) return;
603
+ const h = (ev) => onInput(ev.detail);
604
+ el.addEventListener("input", h);
605
+ return () => el.removeEventListener("input", h);
606
+ }, [onInput]);
607
+ (0, import_react34.useEffect)(() => {
608
+ const el = innerRef.current;
609
+ if (!el || !onChange) return;
610
+ const h = (ev) => onChange(ev.detail);
611
+ el.addEventListener("change", h);
612
+ return () => el.removeEventListener("change", h);
613
+ }, [onChange]);
614
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("lt-slider", { ref: innerRef, ...props, children });
615
+ });
616
+ Slider.displayName = "Slider";
617
+
618
+ // src/components/Snackbar/Snackbar.tsx
619
+ var import_react35 = require("react");
620
+ var import_jsx_runtime35 = require("react/jsx-runtime");
621
+ var Snackbar = (0, import_react35.forwardRef)(function Snackbar2({ onShow, onHide, onAction, children, ...props }, forwardedRef) {
622
+ const innerRef = (0, import_react35.useRef)(null);
623
+ (0, import_react35.useImperativeHandle)(forwardedRef, () => innerRef.current);
624
+ (0, import_react35.useEffect)(() => {
587
625
  const el = innerRef.current;
588
626
  if (!el || !onShow) return;
589
- const h = (ev) => onShow(ev);
627
+ const h = () => onShow();
590
628
  el.addEventListener("show", h);
591
629
  return () => el.removeEventListener("show", h);
592
630
  }, [onShow]);
593
- (0, import_react34.useEffect)(() => {
631
+ (0, import_react35.useEffect)(() => {
594
632
  const el = innerRef.current;
595
633
  if (!el || !onHide) return;
596
- const h = (ev) => onHide(ev);
634
+ const h = () => onHide();
597
635
  el.addEventListener("hide", h);
598
636
  return () => el.removeEventListener("hide", h);
599
637
  }, [onHide]);
600
- (0, import_react34.useEffect)(() => {
638
+ (0, import_react35.useEffect)(() => {
601
639
  const el = innerRef.current;
602
640
  if (!el || !onAction) return;
603
- const h = (ev) => onAction(ev);
641
+ const h = () => onAction();
604
642
  el.addEventListener("action", h);
605
643
  return () => el.removeEventListener("action", h);
606
644
  }, [onAction]);
607
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("lt-snackbar", { ref: innerRef, ...props, children });
645
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("lt-snackbar", { ref: innerRef, ...props, children });
608
646
  });
609
647
  Snackbar.displayName = "Snackbar";
610
648
 
611
- // src/components/Slider/Slider.tsx
612
- var import_react35 = require("react");
613
- var import_jsx_runtime35 = require("react/jsx-runtime");
614
- var Slider = (0, import_react35.forwardRef)(function Slider2({ onInput, onChange, children, ...props }, forwardedRef) {
615
- const innerRef = (0, import_react35.useRef)(null);
616
- (0, import_react35.useImperativeHandle)(forwardedRef, () => innerRef.current);
617
- (0, import_react35.useEffect)(() => {
618
- const el = innerRef.current;
619
- if (!el || !onInput) return;
620
- const h = (ev) => onInput(ev);
621
- el.addEventListener("input", h);
622
- return () => el.removeEventListener("input", h);
623
- }, [onInput]);
624
- (0, import_react35.useEffect)(() => {
625
- const el = innerRef.current;
626
- if (!el || !onChange) return;
627
- const h = (ev) => onChange(ev);
628
- el.addEventListener("change", h);
629
- return () => el.removeEventListener("change", h);
630
- }, [onChange]);
631
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("lt-slider", { ref: innerRef, ...props, children });
632
- });
633
- Slider.displayName = "Slider";
634
-
635
649
  // src/components/Spinner/Spinner.tsx
636
650
  var import_react36 = require("react");
637
651
  var import_jsx_runtime36 = require("react/jsx-runtime");
@@ -642,76 +656,76 @@ var Spinner = (0, import_react36.forwardRef)(function Spinner2({ children, ...pr
642
656
  });
643
657
  Spinner.displayName = "Spinner";
644
658
 
645
- // src/components/Switch/Switch.tsx
659
+ // src/components/Surface/Surface.tsx
646
660
  var import_react37 = require("react");
647
661
  var import_jsx_runtime37 = require("react/jsx-runtime");
648
- var Switch = (0, import_react37.forwardRef)(function Switch2({ onChange, children, ...props }, forwardedRef) {
662
+ var Surface = (0, import_react37.forwardRef)(function Surface2({ children, ...props }, forwardedRef) {
649
663
  const innerRef = (0, import_react37.useRef)(null);
650
664
  (0, import_react37.useImperativeHandle)(forwardedRef, () => innerRef.current);
651
- (0, import_react37.useEffect)(() => {
652
- const el = innerRef.current;
653
- if (!el || !onChange) return;
654
- const h = (ev) => onChange(ev);
655
- el.addEventListener("change", h);
656
- return () => el.removeEventListener("change", h);
657
- }, [onChange]);
658
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("lt-switch", { ref: innerRef, ...props, children });
665
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("lt-surface", { ref: innerRef, ...props, children });
659
666
  });
660
- Switch.displayName = "Switch";
667
+ Surface.displayName = "Surface";
661
668
 
662
- // src/components/Surface/Surface.tsx
669
+ // src/components/Switch/Switch.tsx
663
670
  var import_react38 = require("react");
664
671
  var import_jsx_runtime38 = require("react/jsx-runtime");
665
- var Surface = (0, import_react38.forwardRef)(function Surface2({ children, ...props }, forwardedRef) {
672
+ var Switch = (0, import_react38.forwardRef)(function Switch2({ onChange, children, ...props }, forwardedRef) {
666
673
  const innerRef = (0, import_react38.useRef)(null);
667
674
  (0, import_react38.useImperativeHandle)(forwardedRef, () => innerRef.current);
668
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("lt-surface", { ref: innerRef, ...props, children });
669
- });
670
- Surface.displayName = "Surface";
671
-
672
- // src/components/TabGroup/TabGroup.tsx
673
- var import_react39 = require("react");
674
- var import_jsx_runtime39 = require("react/jsx-runtime");
675
- var TabGroup = (0, import_react39.forwardRef)(function TabGroup2({ onChange, children, ...props }, forwardedRef) {
676
- const innerRef = (0, import_react39.useRef)(null);
677
- (0, import_react39.useImperativeHandle)(forwardedRef, () => innerRef.current);
678
- (0, import_react39.useEffect)(() => {
675
+ (0, import_react38.useEffect)(() => {
679
676
  const el = innerRef.current;
680
677
  if (!el || !onChange) return;
681
- const h = (ev) => onChange(ev);
678
+ const h = (ev) => onChange(ev.detail);
682
679
  el.addEventListener("change", h);
683
680
  return () => el.removeEventListener("change", h);
684
681
  }, [onChange]);
685
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("lt-tab-group", { ref: innerRef, ...props, children });
682
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("lt-switch", { ref: innerRef, ...props, children });
686
683
  });
687
- TabGroup.displayName = "TabGroup";
684
+ Switch.displayName = "Switch";
688
685
 
689
686
  // src/components/TabPanel/TabPanel.tsx
687
+ var import_react39 = require("react");
688
+ var import_jsx_runtime39 = require("react/jsx-runtime");
689
+ var TabPanel = (0, import_react39.forwardRef)(function TabPanel2({ children, ...props }, forwardedRef) {
690
+ const innerRef = (0, import_react39.useRef)(null);
691
+ (0, import_react39.useImperativeHandle)(forwardedRef, () => innerRef.current);
692
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("lt-tab-panel", { ref: innerRef, ...props, children });
693
+ });
694
+ TabPanel.displayName = "TabPanel";
695
+
696
+ // src/components/Tab/Tab.tsx
690
697
  var import_react40 = require("react");
691
698
  var import_jsx_runtime40 = require("react/jsx-runtime");
692
- var TabPanel = (0, import_react40.forwardRef)(function TabPanel2({ children, ...props }, forwardedRef) {
699
+ var Tab = (0, import_react40.forwardRef)(function Tab2({ onTabClick, children, ...props }, forwardedRef) {
693
700
  const innerRef = (0, import_react40.useRef)(null);
694
701
  (0, import_react40.useImperativeHandle)(forwardedRef, () => innerRef.current);
695
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("lt-tab-panel", { ref: innerRef, ...props, children });
702
+ (0, import_react40.useEffect)(() => {
703
+ const el = innerRef.current;
704
+ if (!el || !onTabClick) return;
705
+ const h = (ev) => onTabClick(ev);
706
+ el.addEventListener("tab-click", h);
707
+ return () => el.removeEventListener("tab-click", h);
708
+ }, [onTabClick]);
709
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("lt-tab", { ref: innerRef, ...props, children });
696
710
  });
697
- TabPanel.displayName = "TabPanel";
711
+ Tab.displayName = "Tab";
698
712
 
699
- // src/components/Tab/Tab.tsx
713
+ // src/components/TabGroup/TabGroup.tsx
700
714
  var import_react41 = require("react");
701
715
  var import_jsx_runtime41 = require("react/jsx-runtime");
702
- var Tab = (0, import_react41.forwardRef)(function Tab2({ onTabClick, children, ...props }, forwardedRef) {
716
+ var TabGroup = (0, import_react41.forwardRef)(function TabGroup2({ onChange, children, ...props }, forwardedRef) {
703
717
  const innerRef = (0, import_react41.useRef)(null);
704
718
  (0, import_react41.useImperativeHandle)(forwardedRef, () => innerRef.current);
705
719
  (0, import_react41.useEffect)(() => {
706
720
  const el = innerRef.current;
707
- if (!el || !onTabClick) return;
708
- const h = (ev) => onTabClick(ev);
709
- el.addEventListener("tab-click", h);
710
- return () => el.removeEventListener("tab-click", h);
711
- }, [onTabClick]);
712
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("lt-tab", { ref: innerRef, ...props, children });
721
+ if (!el || !onChange) return;
722
+ const h = (ev) => onChange(ev.detail);
723
+ el.addEventListener("change", h);
724
+ return () => el.removeEventListener("change", h);
725
+ }, [onChange]);
726
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("lt-tab-group", { ref: innerRef, ...props, children });
713
727
  });
714
- Tab.displayName = "Tab";
728
+ TabGroup.displayName = "TabGroup";
715
729
 
716
730
  // src/components/Table/Table.tsx
717
731
  var import_react42 = require("react");
@@ -722,7 +736,7 @@ var Table = (0, import_react42.forwardRef)(function Table2({ onSortChange, child
722
736
  (0, import_react42.useEffect)(() => {
723
737
  const el = innerRef.current;
724
738
  if (!el || !onSortChange) return;
725
- const h = (ev) => onSortChange(ev);
739
+ const h = () => onSortChange();
726
740
  el.addEventListener("sort-change", h);
727
741
  return () => el.removeEventListener("sort-change", h);
728
742
  }, [onSortChange]);
@@ -740,39 +754,39 @@ var Text = (0, import_react43.forwardRef)(function Text2({ children, ...props },
740
754
  });
741
755
  Text.displayName = "Text";
742
756
 
743
- // src/components/Tooltip/Tooltip.tsx
757
+ // src/components/Textfield/Textfield.tsx
744
758
  var import_react44 = require("react");
745
759
  var import_jsx_runtime44 = require("react/jsx-runtime");
746
- var Tooltip = (0, import_react44.forwardRef)(function Tooltip2({ children, ...props }, forwardedRef) {
760
+ var Textfield = (0, import_react44.forwardRef)(function Textfield2({ onInput, onChange, children, ...props }, forwardedRef) {
747
761
  const innerRef = (0, import_react44.useRef)(null);
748
762
  (0, import_react44.useImperativeHandle)(forwardedRef, () => innerRef.current);
749
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("lt-tooltip", { ref: innerRef, ...props, children });
750
- });
751
- Tooltip.displayName = "Tooltip";
752
-
753
- // src/components/Textfield/Textfield.tsx
754
- var import_react45 = require("react");
755
- var import_jsx_runtime45 = require("react/jsx-runtime");
756
- var Textfield = (0, import_react45.forwardRef)(function Textfield2({ onInput, onChange, children, ...props }, forwardedRef) {
757
- const innerRef = (0, import_react45.useRef)(null);
758
- (0, import_react45.useImperativeHandle)(forwardedRef, () => innerRef.current);
759
- (0, import_react45.useEffect)(() => {
763
+ (0, import_react44.useEffect)(() => {
760
764
  const el = innerRef.current;
761
765
  if (!el || !onInput) return;
762
- const h = (ev) => onInput(ev);
766
+ const h = (ev) => onInput(ev.detail);
763
767
  el.addEventListener("input", h);
764
768
  return () => el.removeEventListener("input", h);
765
769
  }, [onInput]);
766
- (0, import_react45.useEffect)(() => {
770
+ (0, import_react44.useEffect)(() => {
767
771
  const el = innerRef.current;
768
772
  if (!el || !onChange) return;
769
- const h = (ev) => onChange(ev);
773
+ const h = (ev) => onChange(ev.detail);
770
774
  el.addEventListener("change", h);
771
775
  return () => el.removeEventListener("change", h);
772
776
  }, [onChange]);
773
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("lt-textfield", { ref: innerRef, ...props, children });
777
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("lt-textfield", { ref: innerRef, ...props, children });
774
778
  });
775
779
  Textfield.displayName = "Textfield";
780
+
781
+ // src/components/Tooltip/Tooltip.tsx
782
+ var import_react45 = require("react");
783
+ var import_jsx_runtime45 = require("react/jsx-runtime");
784
+ var Tooltip = (0, import_react45.forwardRef)(function Tooltip2({ children, ...props }, forwardedRef) {
785
+ const innerRef = (0, import_react45.useRef)(null);
786
+ (0, import_react45.useImperativeHandle)(forwardedRef, () => innerRef.current);
787
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("lt-tooltip", { ref: innerRef, ...props, children });
788
+ });
789
+ Tooltip.displayName = "Tooltip";
776
790
  // Annotate the CommonJS export names for ESM import in node:
777
791
  0 && (module.exports = {
778
792
  Accordion,