@krak-stack/registry 0.11.1 → 0.11.3

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +22 -0
  3. package/dist/components/agent/react.js +29 -183
  4. package/dist/components/animated-list/html.js +1 -105
  5. package/dist/components/animated-list/react.js +16 -168
  6. package/dist/components/animated-number/react.js +8 -162
  7. package/dist/components/app-switcher/html.js +1 -103
  8. package/dist/components/async-action-button/html.js +1 -101
  9. package/dist/components/async-action-button/react.js +10 -164
  10. package/dist/components/audit-log-table/react.js +59 -213
  11. package/dist/components/bulk-list-input/html.js +2 -102
  12. package/dist/components/choice-cards/html.js +1 -101
  13. package/dist/components/code-block/html.js +1 -101
  14. package/dist/components/code-block/react.js +10 -164
  15. package/dist/components/copy-button/html.d.ts +2 -2
  16. package/dist/components/copy-button/html.js +1 -101
  17. package/dist/components/copy-button/react.js +10 -164
  18. package/dist/components/copy-value/html.js +6 -105
  19. package/dist/components/copy-value/react.js +20 -172
  20. package/dist/components/danger-confirmation/react.js +13 -167
  21. package/dist/components/data-table/html.d.ts +51 -51
  22. package/dist/components/data-table/html.js +28 -101
  23. package/dist/components/data-table/react.js +59 -213
  24. package/dist/components/date-input/html.js +2 -105
  25. package/dist/components/editable-text/html.d.ts +2 -2
  26. package/dist/components/editable-text/html.js +4 -102
  27. package/dist/components/editable-text/react.js +14 -168
  28. package/dist/components/editing-locale-switcher/html.js +2 -102
  29. package/dist/components/email-composer/react.js +25 -174
  30. package/dist/components/email-editor/html.js +8 -107
  31. package/dist/components/email-editor/react.js +34 -186
  32. package/dist/components/error-component/html.d.ts +4 -4
  33. package/dist/components/error-component/html.js +10 -107
  34. package/dist/components/error-component/react.js +15 -169
  35. package/dist/components/file-input/html.js +6 -106
  36. package/dist/components/icon-input/html.js +3 -103
  37. package/dist/components/icon-input/react.js +7 -161
  38. package/dist/components/image-crop-editor/html.js +1 -101
  39. package/dist/components/image-crop-editor/react.js +19 -173
  40. package/dist/components/loading/html.js +1 -101
  41. package/dist/components/locale-switcher/html.js +1 -103
  42. package/dist/components/map-menu/html.d.ts +8 -8
  43. package/dist/components/map-menu/html.js +7 -106
  44. package/dist/components/markdown/html.js +1 -101
  45. package/dist/components/markdown/react.js +10 -164
  46. package/dist/components/notification-menu/html.js +7 -114
  47. package/dist/components/pagination/html.js +5 -100
  48. package/dist/components/presence-transition/react.js +9 -163
  49. package/dist/components/registry-previews/component-example.js +10 -164
  50. package/dist/components/rich-text-editor/html.js +14 -108
  51. package/dist/components/rich-text-editor/react.js +9 -161
  52. package/dist/components/search-menu/html.js +1 -103
  53. package/dist/components/search-menu/react.js +11 -165
  54. package/dist/components/sidebar-layout/html.js +2 -102
  55. package/dist/components/sidebar-layout/react.js +3 -157
  56. package/dist/components/stepper/html.js +4 -102
  57. package/dist/components/support/html.js +1 -101
  58. package/dist/components/support/react.js +14 -168
  59. package/dist/components/theme-switcher/html.js +4 -105
  60. package/dist/components/time-input/html.d.ts +2 -2
  61. package/dist/components/time-input/html.js +1 -103
  62. package/dist/components/timezone-input/react.js +9 -163
  63. package/dist/components/toast/html.js +11 -104
  64. package/dist/components/upload-attachment/html.d.ts +4 -4
  65. package/dist/components/upload-attachment/html.js +7 -102
  66. package/dist/components/webhook-delivery-table/html.js +28 -101
  67. package/dist/components/webhook-delivery-table/react.js +74 -226
  68. package/dist/lib/docs.integrations.server.js +16 -35
  69. package/dist/lib/docs.js +31 -183
  70. package/dist/lib/docs.server.js +16 -35
  71. package/dist/lib/documentation-toolkit.js +19 -38
  72. package/dist/lib/effect-ui-adapter/use-model.js +158 -0
  73. package/dist/lib/lucide-effect.d.ts +2432 -0
  74. package/dist/lib/lucide-effect.js +7428 -0
  75. package/dist/services/agent/client/index.js +29 -183
  76. package/package.json +10 -2
@@ -1,11 +1,11 @@
1
1
  // ../../src/components/danger-confirmation/react.tsx
2
2
  import { Component as Component2 } from "effect/ui";
3
3
  import {
4
- useEffect as useEffect2,
4
+ useEffect,
5
5
  useId,
6
- useLayoutEffect as useLayoutEffect2,
7
- useRef as useRef2,
8
- useState as useState2
6
+ useLayoutEffect,
7
+ useRef,
8
+ useState
9
9
  } from "react";
10
10
 
11
11
  // ../../src/components/ui/alert-dialog.tsx
@@ -181,161 +181,7 @@ function Label({ className, ...props }) {
181
181
 
182
182
  // ../../src/components/danger-confirmation/react.tsx
183
183
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
184
-
185
- // ../../src/lib/effect-ui-adapter/use-model.ts
186
- import { MessageLog as MessageLog2 } from "effect/ui";
187
- import {
188
- createContext,
189
- useCallback,
190
- useContext,
191
- useEffect,
192
- useLayoutEffect,
193
- useRef,
194
- useState,
195
- useSyncExternalStore
196
- } from "react";
197
-
198
- // ../../src/lib/effect-ui-adapter/model-runtime.ts
199
- import { MessageLog, Renderer, View } from "effect/ui";
200
- import { BrowserHost, Html } from "effect/ui/html";
201
- import { Cause, Effect, Fiber } from "effect";
202
- var node = () => ({ children: [] });
203
- var modelHost = (commit) => {
204
- const remove = (child) => {
205
- if (!child.parent)
206
- return;
207
- child.parent.children.splice(child.parent.children.indexOf(child), 1);
208
- delete child.parent;
209
- };
210
- return {
211
- createElement: node,
212
- createText: node,
213
- setText: () => {},
214
- setAttr: () => {},
215
- setProp: () => {},
216
- setEvents: () => {},
217
- insertBefore: (parent, child, before) => {
218
- if (child === before)
219
- return;
220
- remove(child);
221
- const index = before ? parent.children.indexOf(before) : parent.children.length;
222
- parent.children.splice(index, 0, child);
223
- child.parent = parent;
224
- },
225
- remove,
226
- parentOf: (child) => child.parent,
227
- nextOf: (child) => child.parent?.children[child.parent.children.indexOf(child) + 1],
228
- elements: ["html"],
229
- controlled: new Set,
230
- runsMounts: false,
231
- commit
232
- };
233
- };
234
- var mountModel = (component, props, publishSnapshot, messageLog, onEmit) => {
235
- let currentProps = props;
236
- let root;
237
- let active = true;
238
- let failure;
239
- const publish = () => {
240
- if (!active)
241
- return;
242
- if (failure) {
243
- publishSnapshot({ error: failure });
244
- return;
245
- }
246
- const current = root?.model();
247
- if (current !== undefined)
248
- publishSnapshot({ model: current });
249
- };
250
- const fiber = Effect.runFork(Effect.scoped(Effect.gen(function* () {
251
- const mounted = yield* Renderer.mount(component, Effect.succeed(props), node(), {
252
- head: false,
253
- onEmit,
254
- fallback: ({ cause }) => {
255
- failure = new Error("Effect UI root failed", {
256
- cause: Cause.squash(cause)
257
- });
258
- return View.text("");
259
- }
260
- });
261
- if (!active)
262
- return;
263
- root = mounted;
264
- if (props !== currentProps)
265
- mounted.setProps(currentProps);
266
- publish();
267
- return yield* Effect.never;
268
- }).pipe(Effect.provide(Renderer.layer(modelHost(publish))), Effect.provideService(Html.Host, BrowserHost.htmlHost), Effect.provideService(MessageLog.MessageLog, messageLog))));
269
- return {
270
- send: (message) => {
271
- root?.send(message);
272
- publish();
273
- },
274
- setProps: (next) => {
275
- currentProps = next;
276
- root?.setProps(next);
277
- },
278
- dispose: () => {
279
- active = false;
280
- root = undefined;
281
- Effect.runFork(Fiber.interrupt(fiber));
282
- }
283
- };
284
- };
285
-
286
- // ../../src/lib/effect-ui-adapter/use-model.ts
287
- "use client";
288
- var ModelMessageLogContext = createContext(undefined);
289
- var useModel = (component, props, options = {}) => {
290
- const contextLog = useContext(ModelMessageLogContext);
291
- const messageLog = options.messageLog ?? (contextLog === undefined ? MessageLog2.noop : contextLog);
292
- const [store] = useState(() => {
293
- const initial = { model: component.init(props).model };
294
- let snapshot = initial;
295
- const listeners = new Set;
296
- return {
297
- subscribe: (listener) => {
298
- listeners.add(listener);
299
- return () => {
300
- listeners.delete(listener);
301
- };
302
- },
303
- getSnapshot: () => snapshot,
304
- getServerSnapshot: () => initial,
305
- publish: (next) => {
306
- if ("model" in snapshot && "model" in next && Object.is(snapshot.model, next.model))
307
- return;
308
- if ("error" in snapshot && "error" in next && snapshot.error === next.error)
309
- return;
310
- snapshot = next;
311
- listeners.forEach((listener) => listener());
312
- }
313
- };
314
- });
315
- const snapshot = useSyncExternalStore(store.subscribe, store.getSnapshot, store.getServerSnapshot);
316
- const committed = useRef(props);
317
- const onEmit = useRef(options.onEmit);
318
- const runtime = useRef(undefined);
319
- const send = useCallback((message) => runtime.current?.send(message), []);
320
- useLayoutEffect(() => {
321
- onEmit.current = options.onEmit;
322
- committed.current = props;
323
- runtime.current?.setProps(props);
324
- }, [props, options.onEmit]);
325
- useEffect(() => {
326
- if (messageLog === null)
327
- return;
328
- const mounted = mountModel(component, committed.current, store.publish, messageLog, (event) => onEmit.current?.(event));
329
- runtime.current = mounted;
330
- return () => {
331
- runtime.current = undefined;
332
- mounted.dispose();
333
- };
334
- }, [component, messageLog, store]);
335
- if ("error" in snapshot)
336
- throw snapshot.error;
337
- return { model: snapshot.model, send };
338
- };
184
+ import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
339
185
 
340
186
  // ../../src/components/danger-confirmation/classes.ts
341
187
  var dangerConfirmationClasses = {
@@ -347,8 +193,8 @@ var resolveDangerConfirmationClasses = (overrides) => ({
347
193
  });
348
194
 
349
195
  // ../../src/components/danger-confirmation/index.ts
350
- import { Effect as Effect2, Schema as Schema2 } from "effect";
351
- import { Command, Component, UiSchema, View as View2 } from "effect/ui";
196
+ import { Effect, Schema as Schema2 } from "effect";
197
+ import { Command, Component, UiSchema, View } from "effect/ui";
352
198
 
353
199
  // ../../src/components/danger-confirmation/schema.ts
354
200
  import { Schema, Struct } from "effect";
@@ -406,7 +252,7 @@ var DangerConfirmationMessage = UiSchema.TaggedEnum({
406
252
  }).annotate({ identifier: "DangerConfirmationMessage" });
407
253
 
408
254
  class RunConfirmation extends Command.Service()("danger-confirmation/RunConfirmation", { args: {}, success: DangerConfirmationMessage }) {
409
- static layerFromConfirm = (confirm) => RunConfirmation.toLayer(() => Effect2.tryPromise(async () => confirm()).pipe(Effect2.match({
255
+ static layerFromConfirm = (confirm) => RunConfirmation.toLayer(() => Effect.tryPromise(async () => confirm()).pipe(Effect.match({
410
256
  onSuccess: () => DangerConfirmationMessage.Finished({ success: true }),
411
257
  onFailure: () => DangerConfirmationMessage.Finished({ success: false })
412
258
  })));
@@ -443,7 +289,7 @@ var dangerConfirmationBehaviours = {
443
289
  };
444
290
  var DangerConfirmationModel = Definition.make({
445
291
  ...dangerConfirmationBehaviours,
446
- view: () => View2.text("")
292
+ view: () => View.text("")
447
293
  });
448
294
 
449
295
  // ../../src/components/danger-confirmation/react.tsx
@@ -454,18 +300,18 @@ var DangerConfirmation = (props) => {
454
300
  const { open, onOpenChange, onConfirm, title, description, confirmation } = props;
455
301
  const copy = getDangerConfirmationMessages(useKrakstackLocale(props.locale), props.messages);
456
302
  const id = useId();
457
- const confirm = useRef2(onConfirm);
458
- useLayoutEffect2(() => {
303
+ const confirm = useRef(onConfirm);
304
+ useLayoutEffect(() => {
459
305
  confirm.current = onConfirm;
460
306
  }, [onConfirm]);
461
- const [component] = useState2(() => DangerConfirmationModel.pipe(Component2.provide(RunConfirmation.layerFromConfirm(() => confirm.current()))));
307
+ const [component] = useState(() => DangerConfirmationModel.pipe(Component2.provide(RunConfirmation.layerFromConfirm(() => confirm.current()))));
462
308
  const { model, send } = useModel(component, {
463
309
  initiallyOpen: open,
464
310
  ...confirmation !== undefined ? { confirmation } : {}
465
311
  });
466
312
  const { status, text } = model;
467
313
  const pending = status === "pending";
468
- useEffect2(() => {
314
+ useEffect(() => {
469
315
  if (status === "succeeded")
470
316
  onOpenChange(false);
471
317
  if (open && !model.open)
@@ -1639,6 +1639,25 @@ export declare const DataTable: Component.Component<"DataTable", {
1639
1639
  } | null;
1640
1640
  readonly invalidFilter: boolean;
1641
1641
  }, {
1642
+ readonly _tag: "PreferencesLoaded";
1643
+ readonly preferences: {
1644
+ readonly columnVisibility: {
1645
+ readonly [x: string]: boolean;
1646
+ };
1647
+ readonly columnSizing: {
1648
+ readonly [x: string]: number;
1649
+ };
1650
+ readonly grouping?: readonly string[] | undefined;
1651
+ readonly view: "gallery" | "table";
1652
+ } | null;
1653
+ } | {
1654
+ readonly _tag: "BuiltInExportRequested";
1655
+ readonly format: "csv" | "json";
1656
+ readonly locale?: string | undefined;
1657
+ } | {
1658
+ readonly _tag: "BulkActionRequested";
1659
+ readonly actionId: string;
1660
+ } | {
1642
1661
  readonly _tag: "CellEditRequested";
1643
1662
  readonly rowId: string;
1644
1663
  readonly columnId: string;
@@ -1652,41 +1671,6 @@ export declare const DataTable: Component.Component<"DataTable", {
1652
1671
  readonly _tag: "SetBoolean";
1653
1672
  readonly value: boolean;
1654
1673
  };
1655
- } | {
1656
- readonly _tag: "ExportRequested";
1657
- readonly actionId: string;
1658
- } | {
1659
- readonly _tag: "GroupActionRequested";
1660
- readonly fieldId: string;
1661
- readonly groupId: string;
1662
- readonly actionId: string;
1663
- } | {
1664
- readonly _tag: "GroupMoveRequested";
1665
- readonly rowId: string;
1666
- readonly fieldId: string;
1667
- readonly groupId: string;
1668
- } | {
1669
- readonly _tag: "ItemActionRequested";
1670
- readonly rowId: string;
1671
- readonly columnId: string;
1672
- readonly itemId: string;
1673
- readonly actionId: string;
1674
- } | {
1675
- readonly _tag: "RefreshRequested";
1676
- } | {
1677
- readonly _tag: "RowActionRequested";
1678
- readonly rowId: string;
1679
- readonly actionId: string;
1680
- } | {
1681
- readonly _tag: "RowActivated";
1682
- readonly rowId: string;
1683
- } | {
1684
- readonly _tag: "BuiltInExportRequested";
1685
- readonly format: "csv" | "json";
1686
- readonly locale?: string | undefined;
1687
- } | {
1688
- readonly _tag: "BulkActionRequested";
1689
- readonly actionId: string;
1690
1674
  } | {
1691
1675
  readonly _tag: "ColumnFilterChanged";
1692
1676
  readonly id: string;
@@ -1742,6 +1726,9 @@ export declare const DataTable: Component.Component<"DataTable", {
1742
1726
  } | {
1743
1727
  readonly _tag: "ExportFinished";
1744
1728
  readonly failed: boolean;
1729
+ } | {
1730
+ readonly _tag: "ExportRequested";
1731
+ readonly actionId: string;
1745
1732
  } | {
1746
1733
  readonly _tag: "ExportStarted";
1747
1734
  } | {
@@ -1761,16 +1748,32 @@ export declare const DataTable: Component.Component<"DataTable", {
1761
1748
  readonly checked: boolean;
1762
1749
  } | {
1763
1750
  readonly _tag: "FiltersCleared";
1751
+ } | {
1752
+ readonly _tag: "GroupActionRequested";
1753
+ readonly fieldId: string;
1754
+ readonly groupId: string;
1755
+ readonly actionId: string;
1764
1756
  } | {
1765
1757
  readonly _tag: "GroupDropped";
1766
1758
  readonly fieldId: string;
1767
1759
  readonly groupId: string;
1760
+ } | {
1761
+ readonly _tag: "GroupMoveRequested";
1762
+ readonly rowId: string;
1763
+ readonly fieldId: string;
1764
+ readonly groupId: string;
1768
1765
  } | {
1769
1766
  readonly _tag: "GroupToggled";
1770
1767
  readonly key: string;
1771
1768
  } | {
1772
1769
  readonly _tag: "GroupingToggled";
1773
1770
  readonly fieldId: string;
1771
+ } | {
1772
+ readonly _tag: "ItemActionRequested";
1773
+ readonly rowId: string;
1774
+ readonly columnId: string;
1775
+ readonly itemId: string;
1776
+ readonly actionId: string;
1774
1777
  } | {
1775
1778
  readonly _tag: "MenuClosed";
1776
1779
  readonly key: string;
@@ -1787,21 +1790,11 @@ export declare const DataTable: Component.Component<"DataTable", {
1787
1790
  } | {
1788
1791
  readonly _tag: "PageSizeRequested";
1789
1792
  readonly pageSize: number;
1790
- } | {
1791
- readonly _tag: "PreferencesLoaded";
1792
- readonly preferences: {
1793
- readonly columnVisibility: {
1794
- readonly [x: string]: boolean;
1795
- };
1796
- readonly columnSizing: {
1797
- readonly [x: string]: number;
1798
- };
1799
- readonly grouping?: readonly string[] | undefined;
1800
- readonly view: "gallery" | "table";
1801
- } | null;
1802
1793
  } | {
1803
1794
  readonly _tag: "ReferenceImageFailed";
1804
1795
  readonly src: string;
1796
+ } | {
1797
+ readonly _tag: "RefreshRequested";
1805
1798
  } | {
1806
1799
  readonly _tag: "ReorderRequested";
1807
1800
  readonly rowId: string;
@@ -1819,6 +1812,13 @@ export declare const DataTable: Component.Component<"DataTable", {
1819
1812
  readonly id: string;
1820
1813
  readonly x: number;
1821
1814
  readonly pointerId: number;
1815
+ } | {
1816
+ readonly _tag: "RowActionRequested";
1817
+ readonly rowId: string;
1818
+ readonly actionId: string;
1819
+ } | {
1820
+ readonly _tag: "RowActivated";
1821
+ readonly rowId: string;
1822
1822
  } | {
1823
1823
  readonly _tag: "SearchChanged";
1824
1824
  readonly value: string;
@@ -1843,10 +1843,6 @@ export declare const DataTable: Component.Component<"DataTable", {
1843
1843
  readonly _tag: "ViewPicked";
1844
1844
  readonly view: "gallery" | "table";
1845
1845
  }, {
1846
- readonly _tag: "BulkActionRequested";
1847
- readonly rowIds: readonly string[];
1848
- readonly actionId: string;
1849
- } | {
1850
1846
  readonly _tag: "CellEditRequested";
1851
1847
  readonly rowId: string;
1852
1848
  readonly columnId: string;
@@ -1888,6 +1884,10 @@ export declare const DataTable: Component.Component<"DataTable", {
1888
1884
  } | {
1889
1885
  readonly _tag: "RowActivated";
1890
1886
  readonly rowId: string;
1887
+ } | {
1888
+ readonly _tag: "BulkActionRequested";
1889
+ readonly rowIds: readonly string[];
1890
+ readonly actionId: string;
1891
1891
  } | {
1892
1892
  readonly _tag: "RowsReordered";
1893
1893
  readonly rowIds: readonly string[];
@@ -137,107 +137,12 @@ var SelectScrollDownArrow = (h, select, options = {}) => select.scrollDownArrow(
137
137
 
138
138
  // ../../src/components/pagination/html.ts
139
139
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
140
-
141
- // ../../src/lib/lucide-effect.ts
142
140
  import {
143
- ArrowDown as arrowDown,
144
- ArrowUp as arrowUp,
145
- ListFilter as listFilter,
146
- Check as check,
147
- ChevronLeft as chevronLeft,
148
- ChevronDown as chevronDown,
149
- ChevronRight as chevronRight,
150
- ChevronsLeft as chevronsLeft,
151
- ChevronsRight as chevronsRight,
152
- ChevronsUpDown as chevronsUpDown,
153
- Copy as copy,
154
- Download as download,
155
- Eye as eye,
156
- EyeOff as eyeOff,
157
- Ellipsis as ellipsis,
158
- FileJson as fileJson,
159
- FileText as fileText,
160
- GripVertical as gripVertical,
161
- Image as image,
162
- LayoutGrid as layoutGrid,
163
- LoaderCircle as loaderCircle,
164
- Mail as mail,
165
- Paperclip as paperclip,
166
- RefreshCw as refreshCw,
167
- RotateCcw as rotateCcw,
168
- Rows3 as rows3,
169
- Search as search,
170
- Settings2 as settings2,
171
- TriangleAlert as triangleAlert,
172
- X as x
173
- } from "lucide";
174
- var createLucideIcon = (icon) => (h, {
175
- size = 24,
176
- color = "currentColor",
177
- strokeWidth = 2,
178
- className
179
- } = {}) => h.svg.attrs({
180
- class: className,
181
- width: String(size),
182
- height: String(size),
183
- viewBox: "0 0 24 24",
184
- fill: "none",
185
- stroke: color,
186
- "stroke-width": String(strokeWidth),
187
- "stroke-linecap": "round",
188
- "stroke-linejoin": "round",
189
- "aria-hidden": "true"
190
- }).children(...icon.map(([tag, attributes]) => {
191
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
192
- switch (tag) {
193
- case "path":
194
- return h.path.attrs(attrs);
195
- case "circle":
196
- return h.circle.attrs(attrs);
197
- case "ellipse":
198
- return h.ellipse.attrs(attrs);
199
- case "line":
200
- return h.line.attrs(attrs);
201
- case "polyline":
202
- return h.polyline.attrs(attrs);
203
- case "polygon":
204
- return h.polygon.attrs(attrs);
205
- case "rect":
206
- return h.rect.attrs(attrs);
207
- default:
208
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
209
- }
210
- }));
211
- var Check = createLucideIcon(check);
212
- var ArrowDown = createLucideIcon(arrowDown);
213
- var ArrowUp = createLucideIcon(arrowUp);
214
- var ListFilter = createLucideIcon(listFilter);
215
- var ChevronLeft = createLucideIcon(chevronLeft);
216
- var ChevronDown = createLucideIcon(chevronDown);
217
- var ChevronRight = createLucideIcon(chevronRight);
218
- var ChevronsLeft = createLucideIcon(chevronsLeft);
219
- var ChevronsRight = createLucideIcon(chevronsRight);
220
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
221
- var Copy = createLucideIcon(copy);
222
- var Download = createLucideIcon(download);
223
- var Eye = createLucideIcon(eye);
224
- var EyeOff = createLucideIcon(eyeOff);
225
- var Ellipsis = createLucideIcon(ellipsis);
226
- var FileJson = createLucideIcon(fileJson);
227
- var FileText = createLucideIcon(fileText);
228
- var GripVertical = createLucideIcon(gripVertical);
229
- var Image = createLucideIcon(image);
230
- var LayoutGrid = createLucideIcon(layoutGrid);
231
- var LoaderCircle = createLucideIcon(loaderCircle);
232
- var Mail = createLucideIcon(mail);
233
- var Paperclip = createLucideIcon(paperclip);
234
- var RefreshCw = createLucideIcon(refreshCw);
235
- var RotateCcw = createLucideIcon(rotateCcw);
236
- var Rows3 = createLucideIcon(rows3);
237
- var Search = createLucideIcon(search);
238
- var Settings2 = createLucideIcon(settings2);
239
- var TriangleAlert = createLucideIcon(triangleAlert);
240
- var X = createLucideIcon(x);
141
+ ChevronLeft,
142
+ ChevronRight,
143
+ ChevronsLeft,
144
+ ChevronsRight
145
+ } from "@krak-stack/registry/lucide-effect";
241
146
 
242
147
  // ../../src/components/pagination/classes.ts
243
148
  var paginationClasses = {
@@ -612,6 +517,28 @@ var PaginationMeta = Schema3.Struct({
612
517
  examples: [{ page: 0, pageSize: 20, total: 125, pageCount: 7 }]
613
518
  }));
614
519
 
520
+ // ../../src/components/data-table/html.ts
521
+ import {
522
+ ArrowDown,
523
+ ArrowUp,
524
+ ChevronDown,
525
+ ChevronRight as ChevronRight2,
526
+ ChevronsUpDown,
527
+ Download,
528
+ Ellipsis,
529
+ EyeOff,
530
+ FileJson,
531
+ FileText,
532
+ GripVertical,
533
+ LayoutGrid,
534
+ ListFilter,
535
+ RefreshCw,
536
+ Rows3,
537
+ Search,
538
+ Settings2,
539
+ X
540
+ } from "@krak-stack/registry/lucide-effect";
541
+
615
542
  // ../../src/components/data-table/index.ts
616
543
  import { DateTime as DateTime3, Effect as Effect2, Option as Option3, Redacted, Schema as Schema5, Stream } from "effect";
617
544
  import { Csv } from "effect/encoding";
@@ -2387,7 +2314,7 @@ var DataTable = Html2.component({
2387
2314
  const definition = field.groups?.find(({ id }) => id === groupId);
2388
2315
  const label = definition?.label ?? groupId;
2389
2316
  const open = !model.collapsedGroups[key];
2390
- const title = h.div.class(cn(tableClasses.groupContent, !gallery && tableClasses.groupSticky)).children(h.button.attr("type", "button").class(tableClasses.groupTrigger).style({ paddingInlineStart: `${depth * 20}px` }).on("click", DataTableMessage.GroupToggled({ key })).attr("aria-expanded", open ? "true" : "false").attr("aria-label", label).children((open ? ChevronDown : ChevronRight)(h, {
2317
+ const title = h.div.class(cn(tableClasses.groupContent, !gallery && tableClasses.groupSticky)).children(h.button.attr("type", "button").class(tableClasses.groupTrigger).style({ paddingInlineStart: `${depth * 20}px` }).on("click", DataTableMessage.GroupToggled({ key })).attr("aria-expanded", open ? "true" : "false").attr("aria-label", label).children((open ? ChevronDown : ChevronRight2)(h, {
2391
2318
  size: 16,
2392
2319
  className: "shrink-0"
2393
2320
  }), h.span.class("min-w-0 flex-1 truncate").children(label), h.span.class(tableClasses.count).children(String(children.length))), !!field.actions?.length && menu(keyOf("group", key), field.actionsLabel ?? copy.actions, `${field.actionsLabel ?? copy.actions}: ${label}`, field.actions.map((action) => ({