@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @krak-stack/registry
2
2
 
3
+ ## 0.11.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Expose the full Lucide icon catalog as typed Effect UI HTML renderers at `@krak-stack/registry/lucide-effect`, including aliases and `createLucideIcon` for custom icons.
8
+
9
+ Use the shared renderers for built-in icons in packaged HTML components and show how to use them in component examples. Copied-source installs stay self-contained.
10
+
11
+ ## 0.11.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Export the React `useModel` hook at `@krak-stack/registry/effect-ui-adapter/react`.
16
+
3
17
  ## 0.11.1
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -34,6 +34,28 @@ Menus default to start alignment, trigger width, available viewport bounds and
34
34
  Update this registry item rather than bare shadcn `select`; existing consumers
35
35
  can update Select alone without upgrading tables or forms.
36
36
 
37
+ ## Lucide icons for Effect UI HTML
38
+
39
+ Import any [Lucide icon](https://lucide.dev/icons/) by its PascalCase name.
40
+ The icons render inline SVG without React:
41
+
42
+ ```ts
43
+ import { Camera, Check } from "@krak-stack/registry/lucide-effect";
44
+ import type { Html } from "effect/ui/html";
45
+
46
+ const StatusIcons = <Msg>(h: Html.H<Msg>) =>
47
+ h.div.children(Camera(h, { size: 16 }), Check(h, { size: 16 }));
48
+ ```
49
+
50
+ Icons inherit the text color and are hidden from assistive technology by default.
51
+ Label icon-only buttons on the button itself. Use `createLucideIcon` to adapt a
52
+ custom Lucide `IconNode`.
53
+
54
+ En Effect UI HTML, importez les icônes Lucide par leur nom en PascalCase. Elles
55
+ s’affichent en SVG sans React, héritent de la couleur du texte et sont masquées
56
+ aux technologies d’assistance. Donnez un libellé aux boutons composés uniquement
57
+ d’une icône.
58
+
37
59
  ## Map radius selection
38
60
 
39
61
  React Map Menu uses the shared KrakStack Select in inline and dialog presentations.
@@ -1,5 +1,5 @@
1
1
  // ../../src/components/agent/react.tsx
2
- import { useEffect as useEffect2, useId, useRef as useRef3, useState as useState3 } from "react";
2
+ import { useEffect, useId, useRef as useRef2, useState as useState2 } from "react";
3
3
  import { Dialog as DialogPrimitive2 } from "@base-ui/react/dialog";
4
4
  import {
5
5
  ArrowDownIcon as ArrowDownIcon2,
@@ -66,167 +66,13 @@ function Button({
66
66
  import { Check, Copy, TriangleAlert } from "lucide-react";
67
67
  import { Redacted as Redacted2 } from "effect";
68
68
  import { Component as Component2 } from "effect/ui";
69
- import { useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState2 } from "react";
69
+ import { useLayoutEffect, useRef, useState } from "react";
70
70
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
71
-
72
- // ../../src/lib/effect-ui-adapter/use-model.ts
73
- import { MessageLog as MessageLog2 } from "effect/ui";
74
- import {
75
- createContext,
76
- useCallback,
77
- useContext,
78
- useEffect,
79
- useLayoutEffect,
80
- useRef,
81
- useState,
82
- useSyncExternalStore
83
- } from "react";
84
-
85
- // ../../src/lib/effect-ui-adapter/model-runtime.ts
86
- import { MessageLog, Renderer, View } from "effect/ui";
87
- import { BrowserHost, Html } from "effect/ui/html";
88
- import { Cause, Effect, Fiber } from "effect";
89
- var node = () => ({ children: [] });
90
- var modelHost = (commit) => {
91
- const remove = (child) => {
92
- if (!child.parent)
93
- return;
94
- child.parent.children.splice(child.parent.children.indexOf(child), 1);
95
- delete child.parent;
96
- };
97
- return {
98
- createElement: node,
99
- createText: node,
100
- setText: () => {},
101
- setAttr: () => {},
102
- setProp: () => {},
103
- setEvents: () => {},
104
- insertBefore: (parent, child, before) => {
105
- if (child === before)
106
- return;
107
- remove(child);
108
- const index = before ? parent.children.indexOf(before) : parent.children.length;
109
- parent.children.splice(index, 0, child);
110
- child.parent = parent;
111
- },
112
- remove,
113
- parentOf: (child) => child.parent,
114
- nextOf: (child) => child.parent?.children[child.parent.children.indexOf(child) + 1],
115
- elements: ["html"],
116
- controlled: new Set,
117
- runsMounts: false,
118
- commit
119
- };
120
- };
121
- var mountModel = (component, props, publishSnapshot, messageLog, onEmit) => {
122
- let currentProps = props;
123
- let root;
124
- let active = true;
125
- let failure;
126
- const publish = () => {
127
- if (!active)
128
- return;
129
- if (failure) {
130
- publishSnapshot({ error: failure });
131
- return;
132
- }
133
- const current = root?.model();
134
- if (current !== undefined)
135
- publishSnapshot({ model: current });
136
- };
137
- const fiber = Effect.runFork(Effect.scoped(Effect.gen(function* () {
138
- const mounted = yield* Renderer.mount(component, Effect.succeed(props), node(), {
139
- head: false,
140
- onEmit,
141
- fallback: ({ cause }) => {
142
- failure = new Error("Effect UI root failed", {
143
- cause: Cause.squash(cause)
144
- });
145
- return View.text("");
146
- }
147
- });
148
- if (!active)
149
- return;
150
- root = mounted;
151
- if (props !== currentProps)
152
- mounted.setProps(currentProps);
153
- publish();
154
- return yield* Effect.never;
155
- }).pipe(Effect.provide(Renderer.layer(modelHost(publish))), Effect.provideService(Html.Host, BrowserHost.htmlHost), Effect.provideService(MessageLog.MessageLog, messageLog))));
156
- return {
157
- send: (message) => {
158
- root?.send(message);
159
- publish();
160
- },
161
- setProps: (next) => {
162
- currentProps = next;
163
- root?.setProps(next);
164
- },
165
- dispose: () => {
166
- active = false;
167
- root = undefined;
168
- Effect.runFork(Fiber.interrupt(fiber));
169
- }
170
- };
171
- };
172
-
173
- // ../../src/lib/effect-ui-adapter/use-model.ts
174
- "use client";
175
- var ModelMessageLogContext = createContext(undefined);
176
- var useModel = (component, props, options = {}) => {
177
- const contextLog = useContext(ModelMessageLogContext);
178
- const messageLog = options.messageLog ?? (contextLog === undefined ? MessageLog2.noop : contextLog);
179
- const [store] = useState(() => {
180
- const initial = { model: component.init(props).model };
181
- let snapshot = initial;
182
- const listeners = new Set;
183
- return {
184
- subscribe: (listener) => {
185
- listeners.add(listener);
186
- return () => {
187
- listeners.delete(listener);
188
- };
189
- },
190
- getSnapshot: () => snapshot,
191
- getServerSnapshot: () => initial,
192
- publish: (next) => {
193
- if ("model" in snapshot && "model" in next && Object.is(snapshot.model, next.model))
194
- return;
195
- if ("error" in snapshot && "error" in next && snapshot.error === next.error)
196
- return;
197
- snapshot = next;
198
- listeners.forEach((listener) => listener());
199
- }
200
- };
201
- });
202
- const snapshot = useSyncExternalStore(store.subscribe, store.getSnapshot, store.getServerSnapshot);
203
- const committed = useRef(props);
204
- const onEmit = useRef(options.onEmit);
205
- const runtime = useRef(undefined);
206
- const send = useCallback((message) => runtime.current?.send(message), []);
207
- useLayoutEffect(() => {
208
- onEmit.current = options.onEmit;
209
- committed.current = props;
210
- runtime.current?.setProps(props);
211
- }, [props, options.onEmit]);
212
- useEffect(() => {
213
- if (messageLog === null)
214
- return;
215
- const mounted = mountModel(component, committed.current, store.publish, messageLog, (event) => onEmit.current?.(event));
216
- runtime.current = mounted;
217
- return () => {
218
- runtime.current = undefined;
219
- mounted.dispose();
220
- };
221
- }, [component, messageLog, store]);
222
- if ("error" in snapshot)
223
- throw snapshot.error;
224
- return { model: snapshot.model, send };
225
- };
71
+ import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
226
72
 
227
73
  // ../../src/components/copy-button/index.ts
228
- import { Effect as Effect2, Redacted, Schema as Schema2 } from "effect";
229
- import { Command, Component, UiSchema, View as View2 } from "effect/ui";
74
+ import { Effect, Redacted, Schema as Schema2 } from "effect";
75
+ import { Command, Component, UiSchema, View } from "effect/ui";
230
76
 
231
77
  // ../../src/components/copy-button/schema.ts
232
78
  import { Schema } from "effect";
@@ -281,13 +127,13 @@ class WriteClipboard extends Command.Service()("copy-button/WriteClipboard", {
281
127
  },
282
128
  success: CopyButtonMessage
283
129
  }) {
284
- static layerFromWrite = (write) => WriteClipboard.toLayer(({ value }) => Effect2.tryPromise(() => write(Redacted.value(value))).pipe(Effect2.match({
130
+ static layerFromWrite = (write) => WriteClipboard.toLayer(({ value }) => Effect.tryPromise(() => write(Redacted.value(value))).pipe(Effect.match({
285
131
  onSuccess: () => CopyButtonMessage.Finished({ success: true }),
286
132
  onFailure: () => CopyButtonMessage.Finished({ success: false })
287
133
  })));
288
134
  static browser = WriteClipboard.layerFromWrite((value) => navigator.clipboard.writeText(value));
289
135
  }
290
- var ResetClipboardFeedback = Command.make("copy-button/ResetFeedback", { args: { delay: Schema2.Number }, mode: "switch" }, ({ delay }) => Effect2.sleep(Math.max(0, delay)).pipe(Effect2.as(CopyButtonMessage.Reset())));
136
+ var ResetClipboardFeedback = Command.make("copy-button/ResetFeedback", { args: { delay: Schema2.Number }, mode: "switch" }, ({ delay }) => Effect.sleep(Math.max(0, delay)).pipe(Effect.as(CopyButtonMessage.Reset())));
291
137
  var copyButtonOptions = {
292
138
  name: "CopyButton",
293
139
  props: CopyButtonModelProps,
@@ -309,7 +155,7 @@ var copyButtonBehaviours = {
309
155
  };
310
156
  var CopyButtonModel = Definition.make({
311
157
  ...copyButtonBehaviours,
312
- view: () => View2.text("")
158
+ view: () => View.text("")
313
159
  });
314
160
  var copyButtonStatus = (status, copy, description) => {
315
161
  if (status === "idle")
@@ -337,19 +183,19 @@ function CopyButton({
337
183
  }) {
338
184
  const locale = useKrakstackLocale(localeOverride);
339
185
  const labels = copyButtonMessages(locale, messages);
340
- const callbacks = useRef2({
186
+ const callbacks = useRef({
341
187
  onCopied,
342
188
  onCopyError,
343
189
  failureLabel: labels.copyFailed
344
190
  });
345
- useLayoutEffect2(() => {
191
+ useLayoutEffect(() => {
346
192
  callbacks.current = {
347
193
  onCopied,
348
194
  onCopyError,
349
195
  failureLabel: labels.copyFailed
350
196
  };
351
197
  }, [onCopied, onCopyError, labels.copyFailed]);
352
- const [component] = useState2(() => CopyButtonModel.pipe(Component2.provide(WriteClipboard.layerFromWrite(async (text) => {
198
+ const [component] = useState(() => CopyButtonModel.pipe(Component2.provide(WriteClipboard.layerFromWrite(async (text) => {
353
199
  const { onCopied, onCopyError, failureLabel } = callbacks.current;
354
200
  try {
355
201
  await navigator.clipboard.writeText(text);
@@ -1521,7 +1367,7 @@ var AgentStreamError = Schema3.Struct({
1521
1367
  import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider/react";
1522
1368
 
1523
1369
  // ../../src/components/agent/index.ts
1524
- import { Context, Effect as Effect3, Layer, Redacted as Redacted3, Schema as Schema5, Stream } from "effect";
1370
+ import { Context, Effect as Effect2, Layer, Redacted as Redacted3, Schema as Schema5, Stream } from "effect";
1525
1371
  import { AtomRegistry } from "effect/reactivity";
1526
1372
  import { Command as Command3, Component as Component3, Subscription, UiSchema as UiSchema2 } from "effect/ui";
1527
1373
 
@@ -1584,7 +1430,7 @@ var AgentWidgetIntentSchema = Schema4.Union([
1584
1430
 
1585
1431
  // ../../src/components/agent/index.ts
1586
1432
  class ConversationHost extends Context.Service()("agent/ConversationHost") {
1587
- static layer = (host) => Layer.merge(Layer.succeed(ConversationHost, host), DispatchIntent.toLayer(({ intent }) => Effect3.suspend(() => host.dispatch(intent)).pipe(Effect3.match({
1433
+ static layer = (host) => Layer.merge(Layer.succeed(ConversationHost, host), DispatchIntent.toLayer(({ intent }) => Effect2.suspend(() => host.dispatch(intent)).pipe(Effect2.match({
1588
1434
  onSuccess: () => AgentWidgetMessage.Delivered({ success: true }),
1589
1435
  onFailure: () => AgentWidgetMessage.Delivered({ success: false })
1590
1436
  }))));
@@ -1729,7 +1575,7 @@ var agentWidgetBehaviours = {
1729
1575
  maximized: false
1730
1576
  }),
1731
1577
  subscriptions: () => [
1732
- Subscription.make("agent/conversation", Stream.unwrap(Effect3.map(ConversationHost, (host) => host.snapshots.pipe(Stream.map((snapshot) => AgentWidgetMessage.Received({
1578
+ Subscription.make("agent/conversation", Stream.unwrap(Effect2.map(ConversationHost, (host) => host.snapshots.pipe(Stream.map((snapshot) => AgentWidgetMessage.Received({
1733
1579
  snapshot: Redacted3.make(snapshot)
1734
1580
  })), Stream.concat(Stream.make(AgentWidgetMessage.Disconnected()))))))
1735
1581
  ],
@@ -2027,7 +1873,7 @@ function ToolActivityLog({
2027
1873
  tools,
2028
1874
  workedSeconds
2029
1875
  }) {
2030
- const [open, setOpen] = useState3();
1876
+ const [open, setOpen] = useState2();
2031
1877
  const approvals = tools.filter((tool) => tool.status === "approval-required");
2032
1878
  const activity = tools.filter((tool) => tool.status !== "approval-required");
2033
1879
  const currentTool = activity.at(-1);
@@ -2104,12 +1950,12 @@ function AgentMessageRow({
2104
1950
  pending
2105
1951
  }) {
2106
1952
  const isUser = message.role === "user";
2107
- const activeStartedAt = useRef3(undefined);
2108
- const activeMilliseconds = useRef3(0);
2109
- const wasPending = useRef3(pending);
2110
- const [workedSeconds, setWorkedSeconds] = useState3();
1953
+ const activeStartedAt = useRef2(undefined);
1954
+ const activeMilliseconds = useRef2(0);
1955
+ const wasPending = useRef2(pending);
1956
+ const [workedSeconds, setWorkedSeconds] = useState2();
2111
1957
  const hasPendingApproval = message.tools.some((tool) => tool.status === "approval-required");
2112
- useEffect2(() => {
1958
+ useEffect(() => {
2113
1959
  const isWorking = pending && !hasPendingApproval;
2114
1960
  if (isWorking) {
2115
1961
  wasPending.current = true;
@@ -2194,15 +2040,15 @@ function AgentWidget({
2194
2040
  const labels = agentWidgetMessages(locale, messageOverrides);
2195
2041
  const referenceInputId = useId();
2196
2042
  const referenceListId = `${referenceInputId}-list`;
2197
- const [open, setOpen] = useState3(false);
2198
- const [maximized, setMaximized] = useState3(false);
2199
- const [referencePickerOpen, setReferencePickerOpen] = useState3(false);
2200
- const [activeReferenceKey, setActiveReferenceKey] = useState3("");
2201
- const [activeReferenceSearch, setActiveReferenceSearch] = useState3();
2202
- const [input, setInput] = useState3("");
2203
- const inputRef = useRef3(null);
2204
- const inputOverlayRef = useRef3(null);
2205
- const [references, setReferences] = useState3([]);
2043
+ const [open, setOpen] = useState2(false);
2044
+ const [maximized, setMaximized] = useState2(false);
2045
+ const [referencePickerOpen, setReferencePickerOpen] = useState2(false);
2046
+ const [activeReferenceKey, setActiveReferenceKey] = useState2("");
2047
+ const [activeReferenceSearch, setActiveReferenceSearch] = useState2();
2048
+ const [input, setInput] = useState2("");
2049
+ const inputRef = useRef2(null);
2050
+ const inputOverlayRef = useRef2(null);
2051
+ const [references, setReferences] = useState2([]);
2206
2052
  const activeContext = state.contextLocked ? state.context ? {
2207
2053
  ...state.context,
2208
2054
  icon: availableReferences.find(({ key }) => key === state.context?.key)?.icon
@@ -2,110 +2,7 @@
2
2
  import { Effect, Queue, Schema as Schema3, Stream as Stream2 } from "effect";
3
3
  import { Component as Component2, Mount } from "effect/ui";
4
4
  import { Html } from "effect/ui/html";
5
- import { GripVertical as GripVertical2 } from "lucide";
6
-
7
- // ../../src/lib/lucide-effect.ts
8
- import {
9
- ArrowDown as arrowDown,
10
- ArrowUp as arrowUp,
11
- ListFilter as listFilter,
12
- Check as check,
13
- ChevronLeft as chevronLeft,
14
- ChevronDown as chevronDown,
15
- ChevronRight as chevronRight,
16
- ChevronsLeft as chevronsLeft,
17
- ChevronsRight as chevronsRight,
18
- ChevronsUpDown as chevronsUpDown,
19
- Copy as copy,
20
- Download as download,
21
- Eye as eye,
22
- EyeOff as eyeOff,
23
- Ellipsis as ellipsis,
24
- FileJson as fileJson,
25
- FileText as fileText,
26
- GripVertical as gripVertical,
27
- Image as image,
28
- LayoutGrid as layoutGrid,
29
- LoaderCircle as loaderCircle,
30
- Mail as mail,
31
- Paperclip as paperclip,
32
- RefreshCw as refreshCw,
33
- RotateCcw as rotateCcw,
34
- Rows3 as rows3,
35
- Search as search,
36
- Settings2 as settings2,
37
- TriangleAlert as triangleAlert,
38
- X as x
39
- } from "lucide";
40
- var createLucideIcon = (icon) => (h, {
41
- size = 24,
42
- color = "currentColor",
43
- strokeWidth = 2,
44
- className
45
- } = {}) => h.svg.attrs({
46
- class: className,
47
- width: String(size),
48
- height: String(size),
49
- viewBox: "0 0 24 24",
50
- fill: "none",
51
- stroke: color,
52
- "stroke-width": String(strokeWidth),
53
- "stroke-linecap": "round",
54
- "stroke-linejoin": "round",
55
- "aria-hidden": "true"
56
- }).children(...icon.map(([tag, attributes]) => {
57
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
58
- switch (tag) {
59
- case "path":
60
- return h.path.attrs(attrs);
61
- case "circle":
62
- return h.circle.attrs(attrs);
63
- case "ellipse":
64
- return h.ellipse.attrs(attrs);
65
- case "line":
66
- return h.line.attrs(attrs);
67
- case "polyline":
68
- return h.polyline.attrs(attrs);
69
- case "polygon":
70
- return h.polygon.attrs(attrs);
71
- case "rect":
72
- return h.rect.attrs(attrs);
73
- default:
74
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
75
- }
76
- }));
77
- var Check = createLucideIcon(check);
78
- var ArrowDown = createLucideIcon(arrowDown);
79
- var ArrowUp = createLucideIcon(arrowUp);
80
- var ListFilter = createLucideIcon(listFilter);
81
- var ChevronLeft = createLucideIcon(chevronLeft);
82
- var ChevronDown = createLucideIcon(chevronDown);
83
- var ChevronRight = createLucideIcon(chevronRight);
84
- var ChevronsLeft = createLucideIcon(chevronsLeft);
85
- var ChevronsRight = createLucideIcon(chevronsRight);
86
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
87
- var Copy = createLucideIcon(copy);
88
- var Download = createLucideIcon(download);
89
- var Eye = createLucideIcon(eye);
90
- var EyeOff = createLucideIcon(eyeOff);
91
- var Ellipsis = createLucideIcon(ellipsis);
92
- var FileJson = createLucideIcon(fileJson);
93
- var FileText = createLucideIcon(fileText);
94
- var GripVertical = createLucideIcon(gripVertical);
95
- var Image = createLucideIcon(image);
96
- var LayoutGrid = createLucideIcon(layoutGrid);
97
- var LoaderCircle = createLucideIcon(loaderCircle);
98
- var Mail = createLucideIcon(mail);
99
- var Paperclip = createLucideIcon(paperclip);
100
- var RefreshCw = createLucideIcon(refreshCw);
101
- var RotateCcw = createLucideIcon(rotateCcw);
102
- var Rows3 = createLucideIcon(rows3);
103
- var Search = createLucideIcon(search);
104
- var Settings2 = createLucideIcon(settings2);
105
- var TriangleAlert = createLucideIcon(triangleAlert);
106
- var X = createLucideIcon(x);
107
-
108
- // ../../src/components/animated-list/html.ts
5
+ import { GripVertical as Grip } from "@krak-stack/registry/lucide-effect";
109
6
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
110
7
 
111
8
  // ../../src/components/animated-list/classes.ts
@@ -258,7 +155,6 @@ var animatedListBehaviours = {
258
155
  };
259
156
 
260
157
  // ../../src/components/animated-list/html.ts
261
- var Grip = createLucideIcon(GripVertical2);
262
158
  var query = "(prefers-reduced-motion: reduce)";
263
159
  var easing = "cubic-bezier(0.2, 0, 0, 1)";
264
160
  var durationOf = (duration) => globalThis.matchMedia?.(query).matches || !Number.isFinite(duration) ? 0 : Math.max(0, duration);