@krak-stack/registry 0.11.2 → 0.11.4

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 (47) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +22 -0
  3. package/dist/components/animated-list/html.js +1 -105
  4. package/dist/components/app-switcher/html.js +1 -103
  5. package/dist/components/async-action-button/html.js +1 -101
  6. package/dist/components/bulk-list-input/html.js +2 -102
  7. package/dist/components/choice-cards/html.js +1 -101
  8. package/dist/components/code-block/html.js +1 -101
  9. package/dist/components/copy-button/html.d.ts +2 -2
  10. package/dist/components/copy-button/html.js +1 -101
  11. package/dist/components/copy-value/html.js +2 -101
  12. package/dist/components/data-table/html.d.ts +51 -51
  13. package/dist/components/data-table/html.js +28 -101
  14. package/dist/components/date-input/html.js +2 -105
  15. package/dist/components/editable-text/html.d.ts +2 -2
  16. package/dist/components/editable-text/html.js +4 -102
  17. package/dist/components/editing-locale-switcher/html.js +2 -102
  18. package/dist/components/email-editor/html.js +8 -107
  19. package/dist/components/error-component/html.d.ts +4 -4
  20. package/dist/components/error-component/html.js +10 -107
  21. package/dist/components/file-input/html.js +6 -106
  22. package/dist/components/hint/react.d.ts +15 -0
  23. package/dist/components/hint/react.js +133 -0
  24. package/dist/components/icon-input/html.js +3 -103
  25. package/dist/components/image-crop-editor/html.js +1 -101
  26. package/dist/components/loading/html.js +1 -101
  27. package/dist/components/locale-switcher/html.js +1 -103
  28. package/dist/components/map-menu/html.d.ts +8 -8
  29. package/dist/components/map-menu/html.js +7 -106
  30. package/dist/components/markdown/html.js +1 -101
  31. package/dist/components/notification-menu/html.js +7 -114
  32. package/dist/components/pagination/html.js +5 -100
  33. package/dist/components/rich-text-editor/html.js +14 -108
  34. package/dist/components/search-menu/html.js +1 -103
  35. package/dist/components/sidebar-layout/html.js +2 -102
  36. package/dist/components/stepper/html.js +4 -102
  37. package/dist/components/support/html.js +1 -101
  38. package/dist/components/theme-switcher/html.js +4 -105
  39. package/dist/components/time-input/html.d.ts +2 -2
  40. package/dist/components/time-input/html.js +1 -103
  41. package/dist/components/toast/html.js +11 -104
  42. package/dist/components/upload-attachment/html.d.ts +4 -4
  43. package/dist/components/upload-attachment/html.js +7 -102
  44. package/dist/components/webhook-delivery-table/html.js +28 -101
  45. package/dist/lib/lucide-effect.d.ts +2432 -0
  46. package/dist/lib/lucide-effect.js +7428 -0
  47. package/package.json +11 -3
@@ -3,7 +3,6 @@ import { DateTime as DateTime3, Effect, Schema as Schema3, Stream } from "effect
3
3
  import { Component as Component2, Mount } from "effect/ui";
4
4
  import { Html } from "effect/ui/html";
5
5
  import { Calendar, Popover } from "effect/ui/kit";
6
- import { CalendarDays } from "lucide";
7
6
 
8
7
  // ../../src/components/effectcn/button.ts
9
8
  import {
@@ -40,109 +39,7 @@ var Button = (h, options = {}) => KitButton(h, {
40
39
 
41
40
  // ../../src/components/effectcn/calendar.ts
42
41
  import { DateTime } from "effect";
43
-
44
- // ../../src/lib/lucide-effect.ts
45
- import {
46
- ArrowDown as arrowDown,
47
- ArrowUp as arrowUp,
48
- ListFilter as listFilter,
49
- Check as check,
50
- ChevronLeft as chevronLeft,
51
- ChevronDown as chevronDown,
52
- ChevronRight as chevronRight,
53
- ChevronsLeft as chevronsLeft,
54
- ChevronsRight as chevronsRight,
55
- ChevronsUpDown as chevronsUpDown,
56
- Copy as copy,
57
- Download as download,
58
- Eye as eye,
59
- EyeOff as eyeOff,
60
- Ellipsis as ellipsis,
61
- FileJson as fileJson,
62
- FileText as fileText,
63
- GripVertical as gripVertical,
64
- Image as image,
65
- LayoutGrid as layoutGrid,
66
- LoaderCircle as loaderCircle,
67
- Mail as mail,
68
- Paperclip as paperclip,
69
- RefreshCw as refreshCw,
70
- RotateCcw as rotateCcw,
71
- Rows3 as rows3,
72
- Search as search,
73
- Settings2 as settings2,
74
- TriangleAlert as triangleAlert,
75
- X as x
76
- } from "lucide";
77
- var createLucideIcon = (icon) => (h, {
78
- size = 24,
79
- color = "currentColor",
80
- strokeWidth = 2,
81
- className
82
- } = {}) => h.svg.attrs({
83
- class: className,
84
- width: String(size),
85
- height: String(size),
86
- viewBox: "0 0 24 24",
87
- fill: "none",
88
- stroke: color,
89
- "stroke-width": String(strokeWidth),
90
- "stroke-linecap": "round",
91
- "stroke-linejoin": "round",
92
- "aria-hidden": "true"
93
- }).children(...icon.map(([tag, attributes]) => {
94
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
95
- switch (tag) {
96
- case "path":
97
- return h.path.attrs(attrs);
98
- case "circle":
99
- return h.circle.attrs(attrs);
100
- case "ellipse":
101
- return h.ellipse.attrs(attrs);
102
- case "line":
103
- return h.line.attrs(attrs);
104
- case "polyline":
105
- return h.polyline.attrs(attrs);
106
- case "polygon":
107
- return h.polygon.attrs(attrs);
108
- case "rect":
109
- return h.rect.attrs(attrs);
110
- default:
111
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
112
- }
113
- }));
114
- var Check = createLucideIcon(check);
115
- var ArrowDown = createLucideIcon(arrowDown);
116
- var ArrowUp = createLucideIcon(arrowUp);
117
- var ListFilter = createLucideIcon(listFilter);
118
- var ChevronLeft = createLucideIcon(chevronLeft);
119
- var ChevronDown = createLucideIcon(chevronDown);
120
- var ChevronRight = createLucideIcon(chevronRight);
121
- var ChevronsLeft = createLucideIcon(chevronsLeft);
122
- var ChevronsRight = createLucideIcon(chevronsRight);
123
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
124
- var Copy = createLucideIcon(copy);
125
- var Download = createLucideIcon(download);
126
- var Eye = createLucideIcon(eye);
127
- var EyeOff = createLucideIcon(eyeOff);
128
- var Ellipsis = createLucideIcon(ellipsis);
129
- var FileJson = createLucideIcon(fileJson);
130
- var FileText = createLucideIcon(fileText);
131
- var GripVertical = createLucideIcon(gripVertical);
132
- var Image = createLucideIcon(image);
133
- var LayoutGrid = createLucideIcon(layoutGrid);
134
- var LoaderCircle = createLucideIcon(loaderCircle);
135
- var Mail = createLucideIcon(mail);
136
- var Paperclip = createLucideIcon(paperclip);
137
- var RefreshCw = createLucideIcon(refreshCw);
138
- var RotateCcw = createLucideIcon(rotateCcw);
139
- var Rows3 = createLucideIcon(rows3);
140
- var Search = createLucideIcon(search);
141
- var Settings2 = createLucideIcon(settings2);
142
- var TriangleAlert = createLucideIcon(triangleAlert);
143
- var X = createLucideIcon(x);
144
-
145
- // ../../src/components/effectcn/calendar.ts
42
+ import { ChevronLeft, ChevronRight } from "@krak-stack/registry/lucide-effect";
146
43
  var navClass = "inline-grid size-7 shrink-0 place-items-center rounded-sm border border-input bg-background " + "text-foreground transition-colors duration-150 hover:bg-accent data-[disabled]:cursor-not-allowed " + "data-[disabled]:opacity-40 data-[disabled]:hover:bg-background [&_svg]:size-3.5 rtl:[&_svg]:rotate-180";
147
44
  var dayClass = "inline-grid size-8 place-items-center rounded-sm p-0 text-[13px] text-foreground tabular-nums " + "transition-colors duration-150 hover:bg-accent focus-visible:relative focus-visible:outline-offset-1 " + "not-data-[selected]:data-[today]:bg-accent data-[today]:font-semibold " + "not-data-[selected]:data-[outside-month]:text-muted-foreground not-data-[selected]:data-[outside-month]:opacity-55 " + "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary " + "data-[unavailable]:cursor-not-allowed data-[unavailable]:text-muted-foreground data-[unavailable]:line-through " + "data-[unavailable]:hover:bg-transparent " + "data-[disabled]:cursor-not-allowed data-[disabled]:text-muted-foreground data-[disabled]:opacity-35! " + "data-[disabled]:hover:bg-transparent";
148
45
  var CalendarRoot = (h, calendar, options = {}) => calendar.root(h.div.class(cn("inline-flex w-fit flex-col gap-2.5 text-[13px] outline-none data-[disabled]:opacity-60", options.variant !== "ghost" && "bg-card rounded-lg border p-3 shadow-sm", options.class)));
@@ -177,6 +74,7 @@ var PopoverTitle = (h, popover, options = {}) => popover.title(h.h2.class(cn("m-
177
74
 
178
75
  // ../../src/components/date-input/html.ts
179
76
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
77
+ import { CalendarDays as CalendarIcon, X } from "@krak-stack/registry/lucide-effect";
180
78
 
181
79
  // ../../src/components/date-input/classes.ts
182
80
  var dateInputClasses = {
@@ -318,7 +216,6 @@ var dateInputBehaviours = {
318
216
  };
319
217
 
320
218
  // ../../src/components/date-input/html.ts
321
- var CalendarIcon = createLucideIcon(CalendarDays);
322
219
  var ApplyDateValidity = Mount.make("ApplyDateValidity", { args: { error: Schema3.String } }, (input, _, changes) => changes.pipe(Stream.runForEach(({ error }) => Effect.sync(() => input.setCustomValidity(error))), Effect.as(Component2.noop)));
323
220
  var toUtc = (value) => {
324
221
  const date = parseDateOnly(value ?? "");
@@ -31,8 +31,6 @@ export declare const EditableText: import("effect/ui/Component").Component<"Edit
31
31
  readonly status: "editing" | "error" | "idle" | "pending";
32
32
  readonly draft: Redacted.Redacted<string>;
33
33
  }, {
34
- readonly _tag: "Focused";
35
- } | {
36
34
  readonly _tag: "Opened";
37
35
  } | {
38
36
  readonly _tag: "Cancelled";
@@ -43,6 +41,8 @@ export declare const EditableText: import("effect/ui/Component").Component<"Edit
43
41
  readonly _tag: "Finished";
44
42
  readonly value: Redacted.Redacted<string>;
45
43
  readonly success: boolean;
44
+ } | {
45
+ readonly _tag: "Focused";
46
46
  } | {
47
47
  readonly _tag: "Saved";
48
48
  }, {
@@ -2,7 +2,6 @@
2
2
  import { Redacted as Redacted2 } from "effect";
3
3
  import { Command as Command2 } from "effect/ui";
4
4
  import { Html, HtmlCommand } from "effect/ui/html";
5
- import { Pencil } from "lucide";
6
5
 
7
6
  // ../../src/components/effectcn/button.ts
8
7
  import {
@@ -52,107 +51,11 @@ var Input = (h, options) => KitInput(h, options).class(inputVariants(options));
52
51
 
53
52
  // ../../src/components/editable-text/html.ts
54
53
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
55
-
56
- // ../../src/lib/lucide-effect.ts
57
54
  import {
58
- ArrowDown as arrowDown,
59
- ArrowUp as arrowUp,
60
- ListFilter as listFilter,
61
- Check as check,
62
- ChevronLeft as chevronLeft,
63
- ChevronDown as chevronDown,
64
- ChevronRight as chevronRight,
65
- ChevronsLeft as chevronsLeft,
66
- ChevronsRight as chevronsRight,
67
- ChevronsUpDown as chevronsUpDown,
68
- Copy as copy,
69
- Download as download,
70
- Eye as eye,
71
- EyeOff as eyeOff,
72
- Ellipsis as ellipsis,
73
- FileJson as fileJson,
74
- FileText as fileText,
75
- GripVertical as gripVertical,
76
- Image as image,
77
- LayoutGrid as layoutGrid,
78
- LoaderCircle as loaderCircle,
79
- Mail as mail,
80
- Paperclip as paperclip,
81
- RefreshCw as refreshCw,
82
- RotateCcw as rotateCcw,
83
- Rows3 as rows3,
84
- Search as search,
85
- Settings2 as settings2,
86
- TriangleAlert as triangleAlert,
87
- X as x
88
- } from "lucide";
89
- var createLucideIcon = (icon) => (h, {
90
- size = 24,
91
- color = "currentColor",
92
- strokeWidth = 2,
93
- className
94
- } = {}) => h.svg.attrs({
95
- class: className,
96
- width: String(size),
97
- height: String(size),
98
- viewBox: "0 0 24 24",
99
- fill: "none",
100
- stroke: color,
101
- "stroke-width": String(strokeWidth),
102
- "stroke-linecap": "round",
103
- "stroke-linejoin": "round",
104
- "aria-hidden": "true"
105
- }).children(...icon.map(([tag, attributes]) => {
106
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
107
- switch (tag) {
108
- case "path":
109
- return h.path.attrs(attrs);
110
- case "circle":
111
- return h.circle.attrs(attrs);
112
- case "ellipse":
113
- return h.ellipse.attrs(attrs);
114
- case "line":
115
- return h.line.attrs(attrs);
116
- case "polyline":
117
- return h.polyline.attrs(attrs);
118
- case "polygon":
119
- return h.polygon.attrs(attrs);
120
- case "rect":
121
- return h.rect.attrs(attrs);
122
- default:
123
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
124
- }
125
- }));
126
- var Check = createLucideIcon(check);
127
- var ArrowDown = createLucideIcon(arrowDown);
128
- var ArrowUp = createLucideIcon(arrowUp);
129
- var ListFilter = createLucideIcon(listFilter);
130
- var ChevronLeft = createLucideIcon(chevronLeft);
131
- var ChevronDown = createLucideIcon(chevronDown);
132
- var ChevronRight = createLucideIcon(chevronRight);
133
- var ChevronsLeft = createLucideIcon(chevronsLeft);
134
- var ChevronsRight = createLucideIcon(chevronsRight);
135
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
136
- var Copy = createLucideIcon(copy);
137
- var Download = createLucideIcon(download);
138
- var Eye = createLucideIcon(eye);
139
- var EyeOff = createLucideIcon(eyeOff);
140
- var Ellipsis = createLucideIcon(ellipsis);
141
- var FileJson = createLucideIcon(fileJson);
142
- var FileText = createLucideIcon(fileText);
143
- var GripVertical = createLucideIcon(gripVertical);
144
- var Image = createLucideIcon(image);
145
- var LayoutGrid = createLucideIcon(layoutGrid);
146
- var LoaderCircle = createLucideIcon(loaderCircle);
147
- var Mail = createLucideIcon(mail);
148
- var Paperclip = createLucideIcon(paperclip);
149
- var RefreshCw = createLucideIcon(refreshCw);
150
- var RotateCcw = createLucideIcon(rotateCcw);
151
- var Rows3 = createLucideIcon(rows3);
152
- var Search = createLucideIcon(search);
153
- var Settings2 = createLucideIcon(settings2);
154
- var TriangleAlert = createLucideIcon(triangleAlert);
155
- var X = createLucideIcon(x);
55
+ LoaderCircle,
56
+ Pencil as PencilIcon,
57
+ RotateCcw
58
+ } from "@krak-stack/registry/lucide-effect";
156
59
 
157
60
  // ../../src/components/editable-text/classes.ts
158
61
  var editableTextClasses = {
@@ -295,7 +198,6 @@ var editableTextBehaviours = {
295
198
  };
296
199
 
297
200
  // ../../src/components/editable-text/html.ts
298
- var PencilIcon = createLucideIcon(Pencil);
299
201
  var Input2 = Html.ref("EditableTextInput", "input");
300
202
  var Trigger = Html.ref("EditableTextTrigger", "button");
301
203
  var EditableText = Html.component({
@@ -1,7 +1,6 @@
1
1
  // ../../src/components/editing-locale-switcher/html.ts
2
2
  import { Html } from "effect/ui/html";
3
3
  import { Select } from "effect/ui/kit";
4
- import { SquarePen } from "lucide";
5
4
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
6
5
 
7
6
  // ../../src/lib/utils.ts
@@ -45,106 +44,8 @@ var SelectScrollDownArrow = (h, select, options = {}) => select.scrollDownArrow(
45
44
  element: h.div.class(cn(scrollArrow, "bottom-0 before:-translate-y-0.5 before:border-r-[1.5px] before:border-b-[1.5px]", options.class))
46
45
  });
47
46
 
48
- // ../../src/lib/lucide-effect.ts
49
- import {
50
- ArrowDown as arrowDown,
51
- ArrowUp as arrowUp,
52
- ListFilter as listFilter,
53
- Check as check,
54
- ChevronLeft as chevronLeft,
55
- ChevronDown as chevronDown,
56
- ChevronRight as chevronRight,
57
- ChevronsLeft as chevronsLeft,
58
- ChevronsRight as chevronsRight,
59
- ChevronsUpDown as chevronsUpDown,
60
- Copy as copy,
61
- Download as download,
62
- Eye as eye,
63
- EyeOff as eyeOff,
64
- Ellipsis as ellipsis,
65
- FileJson as fileJson,
66
- FileText as fileText,
67
- GripVertical as gripVertical,
68
- Image as image,
69
- LayoutGrid as layoutGrid,
70
- LoaderCircle as loaderCircle,
71
- Mail as mail,
72
- Paperclip as paperclip,
73
- RefreshCw as refreshCw,
74
- RotateCcw as rotateCcw,
75
- Rows3 as rows3,
76
- Search as search,
77
- Settings2 as settings2,
78
- TriangleAlert as triangleAlert,
79
- X as x
80
- } from "lucide";
81
- var createLucideIcon = (icon) => (h, {
82
- size = 24,
83
- color = "currentColor",
84
- strokeWidth = 2,
85
- className
86
- } = {}) => h.svg.attrs({
87
- class: className,
88
- width: String(size),
89
- height: String(size),
90
- viewBox: "0 0 24 24",
91
- fill: "none",
92
- stroke: color,
93
- "stroke-width": String(strokeWidth),
94
- "stroke-linecap": "round",
95
- "stroke-linejoin": "round",
96
- "aria-hidden": "true"
97
- }).children(...icon.map(([tag, attributes]) => {
98
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
99
- switch (tag) {
100
- case "path":
101
- return h.path.attrs(attrs);
102
- case "circle":
103
- return h.circle.attrs(attrs);
104
- case "ellipse":
105
- return h.ellipse.attrs(attrs);
106
- case "line":
107
- return h.line.attrs(attrs);
108
- case "polyline":
109
- return h.polyline.attrs(attrs);
110
- case "polygon":
111
- return h.polygon.attrs(attrs);
112
- case "rect":
113
- return h.rect.attrs(attrs);
114
- default:
115
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
116
- }
117
- }));
118
- var Check = createLucideIcon(check);
119
- var ArrowDown = createLucideIcon(arrowDown);
120
- var ArrowUp = createLucideIcon(arrowUp);
121
- var ListFilter = createLucideIcon(listFilter);
122
- var ChevronLeft = createLucideIcon(chevronLeft);
123
- var ChevronDown = createLucideIcon(chevronDown);
124
- var ChevronRight = createLucideIcon(chevronRight);
125
- var ChevronsLeft = createLucideIcon(chevronsLeft);
126
- var ChevronsRight = createLucideIcon(chevronsRight);
127
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
128
- var Copy = createLucideIcon(copy);
129
- var Download = createLucideIcon(download);
130
- var Eye = createLucideIcon(eye);
131
- var EyeOff = createLucideIcon(eyeOff);
132
- var Ellipsis = createLucideIcon(ellipsis);
133
- var FileJson = createLucideIcon(fileJson);
134
- var FileText = createLucideIcon(fileText);
135
- var GripVertical = createLucideIcon(gripVertical);
136
- var Image = createLucideIcon(image);
137
- var LayoutGrid = createLucideIcon(layoutGrid);
138
- var LoaderCircle = createLucideIcon(loaderCircle);
139
- var Mail = createLucideIcon(mail);
140
- var Paperclip = createLucideIcon(paperclip);
141
- var RefreshCw = createLucideIcon(refreshCw);
142
- var RotateCcw = createLucideIcon(rotateCcw);
143
- var Rows3 = createLucideIcon(rows3);
144
- var Search = createLucideIcon(search);
145
- var Settings2 = createLucideIcon(settings2);
146
- var TriangleAlert = createLucideIcon(triangleAlert);
147
- var X = createLucideIcon(x);
47
+ // ../../src/components/editing-locale-switcher/html.ts
48
+ import { SquarePen as EditIcon } from "@krak-stack/registry/lucide-effect";
148
49
 
149
50
  // ../../src/components/editing-locale-switcher/classes.ts
150
51
  var editingLocaleSwitcherClasses = {
@@ -214,7 +115,6 @@ var editingLocaleSwitcherBehaviours = {
214
115
  };
215
116
 
216
117
  // ../../src/components/editing-locale-switcher/html.ts
217
- var EditIcon = createLucideIcon(SquarePen);
218
118
  var EditingLocaleSwitcher = Html.component({
219
119
  ...editingLocaleSwitcherOptions,
220
120
  reads: { localeConfig: krakstackLocaleRead }
@@ -57,110 +57,15 @@ var PopoverTitle = (h, popover, options = {}) => popover.title(h.h2.class(cn("m-
57
57
 
58
58
  // ../../src/components/email-editor/html.ts
59
59
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
60
-
61
- // ../../src/lib/lucide-effect.ts
62
60
  import {
63
- ArrowDown as arrowDown,
64
- ArrowUp as arrowUp,
65
- ListFilter as listFilter,
66
- Check as check,
67
- ChevronLeft as chevronLeft,
68
- ChevronDown as chevronDown,
69
- ChevronRight as chevronRight,
70
- ChevronsLeft as chevronsLeft,
71
- ChevronsRight as chevronsRight,
72
- ChevronsUpDown as chevronsUpDown,
73
- Copy as copy,
74
- Download as download,
75
- Eye as eye,
76
- EyeOff as eyeOff,
77
- Ellipsis as ellipsis,
78
- FileJson as fileJson,
79
- FileText as fileText,
80
- GripVertical as gripVertical,
81
- Image as image,
82
- LayoutGrid as layoutGrid,
83
- LoaderCircle as loaderCircle,
84
- Mail as mail,
85
- Paperclip as paperclip,
86
- RefreshCw as refreshCw,
87
- RotateCcw as rotateCcw,
88
- Rows3 as rows3,
89
- Search as search,
90
- Settings2 as settings2,
91
- TriangleAlert as triangleAlert,
92
- X as x
93
- } from "lucide";
94
- var createLucideIcon = (icon) => (h, {
95
- size = 24,
96
- color = "currentColor",
97
- strokeWidth = 2,
98
- className
99
- } = {}) => h.svg.attrs({
100
- class: className,
101
- width: String(size),
102
- height: String(size),
103
- viewBox: "0 0 24 24",
104
- fill: "none",
105
- stroke: color,
106
- "stroke-width": String(strokeWidth),
107
- "stroke-linecap": "round",
108
- "stroke-linejoin": "round",
109
- "aria-hidden": "true"
110
- }).children(...icon.map(([tag, attributes]) => {
111
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
112
- switch (tag) {
113
- case "path":
114
- return h.path.attrs(attrs);
115
- case "circle":
116
- return h.circle.attrs(attrs);
117
- case "ellipse":
118
- return h.ellipse.attrs(attrs);
119
- case "line":
120
- return h.line.attrs(attrs);
121
- case "polyline":
122
- return h.polyline.attrs(attrs);
123
- case "polygon":
124
- return h.polygon.attrs(attrs);
125
- case "rect":
126
- return h.rect.attrs(attrs);
127
- default:
128
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
129
- }
130
- }));
131
- var Check = createLucideIcon(check);
132
- var ArrowDown = createLucideIcon(arrowDown);
133
- var ArrowUp = createLucideIcon(arrowUp);
134
- var ListFilter = createLucideIcon(listFilter);
135
- var ChevronLeft = createLucideIcon(chevronLeft);
136
- var ChevronDown = createLucideIcon(chevronDown);
137
- var ChevronRight = createLucideIcon(chevronRight);
138
- var ChevronsLeft = createLucideIcon(chevronsLeft);
139
- var ChevronsRight = createLucideIcon(chevronsRight);
140
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
141
- var Copy = createLucideIcon(copy);
142
- var Download = createLucideIcon(download);
143
- var Eye = createLucideIcon(eye);
144
- var EyeOff = createLucideIcon(eyeOff);
145
- var Ellipsis = createLucideIcon(ellipsis);
146
- var FileJson = createLucideIcon(fileJson);
147
- var FileText = createLucideIcon(fileText);
148
- var GripVertical = createLucideIcon(gripVertical);
149
- var Image = createLucideIcon(image);
150
- var LayoutGrid = createLucideIcon(layoutGrid);
151
- var LoaderCircle = createLucideIcon(loaderCircle);
152
- var Mail = createLucideIcon(mail);
153
- var Paperclip = createLucideIcon(paperclip);
154
- var RefreshCw = createLucideIcon(refreshCw);
155
- var RotateCcw = createLucideIcon(rotateCcw);
156
- var Rows3 = createLucideIcon(rows3);
157
- var Search = createLucideIcon(search);
158
- var Settings2 = createLucideIcon(settings2);
159
- var TriangleAlert = createLucideIcon(triangleAlert);
160
- var X = createLucideIcon(x);
161
-
162
- // ../../src/components/email-editor/html.ts
163
- import { GripVertical as GripVertical2, Pencil, Plus, Trash2 } from "lucide";
61
+ Copy,
62
+ GripVertical as Grip,
63
+ Image,
64
+ Pencil as Edit,
65
+ Plus as Add,
66
+ Trash2 as Remove,
67
+ X
68
+ } from "@krak-stack/registry/lucide-effect";
164
69
 
165
70
  // ../../src/lib/email-document/model.ts
166
71
  import { Schema as Schema4 } from "effect";
@@ -1504,10 +1409,6 @@ var LegacyEditor = Html.component({
1504
1409
  });
1505
1410
 
1506
1411
  // ../../src/components/email-editor/html.ts
1507
- var Grip = createLucideIcon(GripVertical2);
1508
- var Edit = createLucideIcon(Pencil);
1509
- var Add = createLucideIcon(Plus);
1510
- var Remove = createLucideIcon(Trash2);
1511
1412
  var EmailEditor = Html2.component({
1512
1413
  ...emailEditorOptions,
1513
1414
  reads: { localeConfig: krakstackLocaleRead },
@@ -50,14 +50,14 @@ export declare const makeErrorComponent: (renderFeedback?: FeedbackView) => impo
50
50
  readonly success: boolean;
51
51
  } | null;
52
52
  }, {
53
- readonly _tag: "Retry";
54
- } | {
55
53
  readonly _tag: "Copied";
56
54
  readonly report: Redacted.Redacted<string>;
57
55
  readonly success: boolean;
58
56
  } | {
59
57
  readonly _tag: "Copy";
60
58
  readonly report: Redacted.Redacted<string>;
59
+ } | {
60
+ readonly _tag: "Retry";
61
61
  }, {
62
62
  readonly _tag: "Retry";
63
63
  }, never, Html.Elements, {}, never>;
@@ -106,14 +106,14 @@ export declare const ErrorComponent: import("effect/ui/Component").Component<"Er
106
106
  readonly success: boolean;
107
107
  } | null;
108
108
  }, {
109
- readonly _tag: "Retry";
110
- } | {
111
109
  readonly _tag: "Copied";
112
110
  readonly report: Redacted.Redacted<string>;
113
111
  readonly success: boolean;
114
112
  } | {
115
113
  readonly _tag: "Copy";
116
114
  readonly report: Redacted.Redacted<string>;
115
+ } | {
116
+ readonly _tag: "Retry";
117
117
  }, {
118
118
  readonly _tag: "Retry";
119
119
  }, never, Html.Elements, {}, never>;