@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
@@ -76,107 +76,12 @@ var SelectScrollDownArrow = (h, select, options = {}) => select.scrollDownArrow(
76
76
 
77
77
  // ../../src/components/pagination/html.ts
78
78
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
79
-
80
- // ../../src/lib/lucide-effect.ts
81
79
  import {
82
- ArrowDown as arrowDown,
83
- ArrowUp as arrowUp,
84
- ListFilter as listFilter,
85
- Check as check,
86
- ChevronLeft as chevronLeft,
87
- ChevronDown as chevronDown,
88
- ChevronRight as chevronRight,
89
- ChevronsLeft as chevronsLeft,
90
- ChevronsRight as chevronsRight,
91
- ChevronsUpDown as chevronsUpDown,
92
- Copy as copy,
93
- Download as download,
94
- Eye as eye,
95
- EyeOff as eyeOff,
96
- Ellipsis as ellipsis,
97
- FileJson as fileJson,
98
- FileText as fileText,
99
- GripVertical as gripVertical,
100
- Image as image,
101
- LayoutGrid as layoutGrid,
102
- LoaderCircle as loaderCircle,
103
- Mail as mail,
104
- Paperclip as paperclip,
105
- RefreshCw as refreshCw,
106
- RotateCcw as rotateCcw,
107
- Rows3 as rows3,
108
- Search as search,
109
- Settings2 as settings2,
110
- TriangleAlert as triangleAlert,
111
- X as x
112
- } from "lucide";
113
- var createLucideIcon = (icon) => (h, {
114
- size = 24,
115
- color = "currentColor",
116
- strokeWidth = 2,
117
- className
118
- } = {}) => h.svg.attrs({
119
- class: className,
120
- width: String(size),
121
- height: String(size),
122
- viewBox: "0 0 24 24",
123
- fill: "none",
124
- stroke: color,
125
- "stroke-width": String(strokeWidth),
126
- "stroke-linecap": "round",
127
- "stroke-linejoin": "round",
128
- "aria-hidden": "true"
129
- }).children(...icon.map(([tag, attributes]) => {
130
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
131
- switch (tag) {
132
- case "path":
133
- return h.path.attrs(attrs);
134
- case "circle":
135
- return h.circle.attrs(attrs);
136
- case "ellipse":
137
- return h.ellipse.attrs(attrs);
138
- case "line":
139
- return h.line.attrs(attrs);
140
- case "polyline":
141
- return h.polyline.attrs(attrs);
142
- case "polygon":
143
- return h.polygon.attrs(attrs);
144
- case "rect":
145
- return h.rect.attrs(attrs);
146
- default:
147
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
148
- }
149
- }));
150
- var Check = createLucideIcon(check);
151
- var ArrowDown = createLucideIcon(arrowDown);
152
- var ArrowUp = createLucideIcon(arrowUp);
153
- var ListFilter = createLucideIcon(listFilter);
154
- var ChevronLeft = createLucideIcon(chevronLeft);
155
- var ChevronDown = createLucideIcon(chevronDown);
156
- var ChevronRight = createLucideIcon(chevronRight);
157
- var ChevronsLeft = createLucideIcon(chevronsLeft);
158
- var ChevronsRight = createLucideIcon(chevronsRight);
159
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
160
- var Copy = createLucideIcon(copy);
161
- var Download = createLucideIcon(download);
162
- var Eye = createLucideIcon(eye);
163
- var EyeOff = createLucideIcon(eyeOff);
164
- var Ellipsis = createLucideIcon(ellipsis);
165
- var FileJson = createLucideIcon(fileJson);
166
- var FileText = createLucideIcon(fileText);
167
- var GripVertical = createLucideIcon(gripVertical);
168
- var Image = createLucideIcon(image);
169
- var LayoutGrid = createLucideIcon(layoutGrid);
170
- var LoaderCircle = createLucideIcon(loaderCircle);
171
- var Mail = createLucideIcon(mail);
172
- var Paperclip = createLucideIcon(paperclip);
173
- var RefreshCw = createLucideIcon(refreshCw);
174
- var RotateCcw = createLucideIcon(rotateCcw);
175
- var Rows3 = createLucideIcon(rows3);
176
- var Search = createLucideIcon(search);
177
- var Settings2 = createLucideIcon(settings2);
178
- var TriangleAlert = createLucideIcon(triangleAlert);
179
- var X = createLucideIcon(x);
80
+ ChevronLeft,
81
+ ChevronRight,
82
+ ChevronsLeft,
83
+ ChevronsRight
84
+ } from "@krak-stack/registry/lucide-effect";
180
85
 
181
86
  // ../../src/components/pagination/classes.ts
182
87
  var paginationClasses = {
@@ -4,7 +4,6 @@ import { Mount } from "effect/ui";
4
4
  import { Html } from "effect/ui/html";
5
5
  import { Menu, Select } from "effect/ui/kit";
6
6
  import { Editor } from "@tiptap/core";
7
- import { Bold, Braces, Italic, Link2, Redo2, Underline, Undo2 } from "lucide";
8
7
 
9
8
  // ../../src/components/effectcn/button.ts
10
9
  import {
@@ -92,107 +91,15 @@ var scrollArrow = "inset-x-0 z-10 hidden h-6 cursor-default place-items-center r
92
91
 
93
92
  // ../../src/components/rich-text-editor/html.ts
94
93
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
95
-
96
- // ../../src/lib/lucide-effect.ts
97
94
  import {
98
- ArrowDown as arrowDown,
99
- ArrowUp as arrowUp,
100
- ListFilter as listFilter,
101
- Check as check,
102
- ChevronLeft as chevronLeft,
103
- ChevronDown as chevronDown,
104
- ChevronRight as chevronRight,
105
- ChevronsLeft as chevronsLeft,
106
- ChevronsRight as chevronsRight,
107
- ChevronsUpDown as chevronsUpDown,
108
- Copy as copy,
109
- Download as download,
110
- Eye as eye,
111
- EyeOff as eyeOff,
112
- Ellipsis as ellipsis,
113
- FileJson as fileJson,
114
- FileText as fileText,
115
- GripVertical as gripVertical,
116
- Image as image,
117
- LayoutGrid as layoutGrid,
118
- LoaderCircle as loaderCircle,
119
- Mail as mail,
120
- Paperclip as paperclip,
121
- RefreshCw as refreshCw,
122
- RotateCcw as rotateCcw,
123
- Rows3 as rows3,
124
- Search as search,
125
- Settings2 as settings2,
126
- TriangleAlert as triangleAlert,
127
- X as x
128
- } from "lucide";
129
- var createLucideIcon = (icon) => (h, {
130
- size = 24,
131
- color = "currentColor",
132
- strokeWidth = 2,
133
- className
134
- } = {}) => h.svg.attrs({
135
- class: className,
136
- width: String(size),
137
- height: String(size),
138
- viewBox: "0 0 24 24",
139
- fill: "none",
140
- stroke: color,
141
- "stroke-width": String(strokeWidth),
142
- "stroke-linecap": "round",
143
- "stroke-linejoin": "round",
144
- "aria-hidden": "true"
145
- }).children(...icon.map(([tag, attributes]) => {
146
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
147
- switch (tag) {
148
- case "path":
149
- return h.path.attrs(attrs);
150
- case "circle":
151
- return h.circle.attrs(attrs);
152
- case "ellipse":
153
- return h.ellipse.attrs(attrs);
154
- case "line":
155
- return h.line.attrs(attrs);
156
- case "polyline":
157
- return h.polyline.attrs(attrs);
158
- case "polygon":
159
- return h.polygon.attrs(attrs);
160
- case "rect":
161
- return h.rect.attrs(attrs);
162
- default:
163
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
164
- }
165
- }));
166
- var Check = createLucideIcon(check);
167
- var ArrowDown = createLucideIcon(arrowDown);
168
- var ArrowUp = createLucideIcon(arrowUp);
169
- var ListFilter = createLucideIcon(listFilter);
170
- var ChevronLeft = createLucideIcon(chevronLeft);
171
- var ChevronDown = createLucideIcon(chevronDown);
172
- var ChevronRight = createLucideIcon(chevronRight);
173
- var ChevronsLeft = createLucideIcon(chevronsLeft);
174
- var ChevronsRight = createLucideIcon(chevronsRight);
175
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
176
- var Copy = createLucideIcon(copy);
177
- var Download = createLucideIcon(download);
178
- var Eye = createLucideIcon(eye);
179
- var EyeOff = createLucideIcon(eyeOff);
180
- var Ellipsis = createLucideIcon(ellipsis);
181
- var FileJson = createLucideIcon(fileJson);
182
- var FileText = createLucideIcon(fileText);
183
- var GripVertical = createLucideIcon(gripVertical);
184
- var Image = createLucideIcon(image);
185
- var LayoutGrid = createLucideIcon(layoutGrid);
186
- var LoaderCircle = createLucideIcon(loaderCircle);
187
- var Mail = createLucideIcon(mail);
188
- var Paperclip = createLucideIcon(paperclip);
189
- var RefreshCw = createLucideIcon(refreshCw);
190
- var RotateCcw = createLucideIcon(rotateCcw);
191
- var Rows3 = createLucideIcon(rows3);
192
- var Search = createLucideIcon(search);
193
- var Settings2 = createLucideIcon(settings2);
194
- var TriangleAlert = createLucideIcon(triangleAlert);
195
- var X = createLucideIcon(x);
95
+ Bold,
96
+ Braces as VariableIcon,
97
+ Italic,
98
+ Link2,
99
+ Redo2,
100
+ Underline,
101
+ Undo2
102
+ } from "@krak-stack/registry/lucide-effect";
196
103
 
197
104
  // ../../src/lib/rich-text/tiptap.ts
198
105
  import { Extension } from "@tiptap/core";
@@ -637,14 +544,13 @@ var contentArgs = {
637
544
  errorId: Schema6.String
638
545
  };
639
546
  var icons = {
640
- bold: createLucideIcon(Bold),
641
- italic: createLucideIcon(Italic),
642
- underline: createLucideIcon(Underline),
643
- undo: createLucideIcon(Undo2),
644
- redo: createLucideIcon(Redo2),
645
- link: createLucideIcon(Link2)
547
+ bold: Bold,
548
+ italic: Italic,
549
+ underline: Underline,
550
+ undo: Undo2,
551
+ redo: Redo2,
552
+ link: Link2
646
553
  };
647
- var VariableIcon = createLucideIcon(Braces);
648
554
  var blocks = ["paragraph", "heading", "bullet", "numbered"];
649
555
  var makeRichTextEditor = (name, extensions) => {
650
556
  const Attach = Mount.makeStream(`${name}.editor`, { args: contentArgs }, (node, initial, changes) => Stream.callback((queue) => Effect.gen(function* () {
@@ -3,7 +3,6 @@ import { Schema as Schema3 } from "effect";
3
3
  import { Subscription, UiSchema as UiSchema2 } from "effect/ui";
4
4
  import { Html } from "effect/ui/html";
5
5
  import { Combobox, Dialog } from "effect/ui/kit";
6
- import { Search as Search2 } from "lucide";
7
6
 
8
7
  // ../../src/components/effectcn/button.ts
9
8
  import {
@@ -61,107 +60,7 @@ var DialogDescription = (h, dialog, options = {}) => dialog.description(h.p.clas
61
60
 
62
61
  // ../../src/components/search-menu/html.ts
63
62
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
64
-
65
- // ../../src/lib/lucide-effect.ts
66
- import {
67
- ArrowDown as arrowDown,
68
- ArrowUp as arrowUp,
69
- ListFilter as listFilter,
70
- Check as check,
71
- ChevronLeft as chevronLeft,
72
- ChevronDown as chevronDown,
73
- ChevronRight as chevronRight,
74
- ChevronsLeft as chevronsLeft,
75
- ChevronsRight as chevronsRight,
76
- ChevronsUpDown as chevronsUpDown,
77
- Copy as copy,
78
- Download as download,
79
- Eye as eye,
80
- EyeOff as eyeOff,
81
- Ellipsis as ellipsis,
82
- FileJson as fileJson,
83
- FileText as fileText,
84
- GripVertical as gripVertical,
85
- Image as image,
86
- LayoutGrid as layoutGrid,
87
- LoaderCircle as loaderCircle,
88
- Mail as mail,
89
- Paperclip as paperclip,
90
- RefreshCw as refreshCw,
91
- RotateCcw as rotateCcw,
92
- Rows3 as rows3,
93
- Search as search,
94
- Settings2 as settings2,
95
- TriangleAlert as triangleAlert,
96
- X as x
97
- } from "lucide";
98
- var createLucideIcon = (icon) => (h, {
99
- size = 24,
100
- color = "currentColor",
101
- strokeWidth = 2,
102
- className
103
- } = {}) => h.svg.attrs({
104
- class: className,
105
- width: String(size),
106
- height: String(size),
107
- viewBox: "0 0 24 24",
108
- fill: "none",
109
- stroke: color,
110
- "stroke-width": String(strokeWidth),
111
- "stroke-linecap": "round",
112
- "stroke-linejoin": "round",
113
- "aria-hidden": "true"
114
- }).children(...icon.map(([tag, attributes]) => {
115
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
116
- switch (tag) {
117
- case "path":
118
- return h.path.attrs(attrs);
119
- case "circle":
120
- return h.circle.attrs(attrs);
121
- case "ellipse":
122
- return h.ellipse.attrs(attrs);
123
- case "line":
124
- return h.line.attrs(attrs);
125
- case "polyline":
126
- return h.polyline.attrs(attrs);
127
- case "polygon":
128
- return h.polygon.attrs(attrs);
129
- case "rect":
130
- return h.rect.attrs(attrs);
131
- default:
132
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
133
- }
134
- }));
135
- var Check = createLucideIcon(check);
136
- var ArrowDown = createLucideIcon(arrowDown);
137
- var ArrowUp = createLucideIcon(arrowUp);
138
- var ListFilter = createLucideIcon(listFilter);
139
- var ChevronLeft = createLucideIcon(chevronLeft);
140
- var ChevronDown = createLucideIcon(chevronDown);
141
- var ChevronRight = createLucideIcon(chevronRight);
142
- var ChevronsLeft = createLucideIcon(chevronsLeft);
143
- var ChevronsRight = createLucideIcon(chevronsRight);
144
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
145
- var Copy = createLucideIcon(copy);
146
- var Download = createLucideIcon(download);
147
- var Eye = createLucideIcon(eye);
148
- var EyeOff = createLucideIcon(eyeOff);
149
- var Ellipsis = createLucideIcon(ellipsis);
150
- var FileJson = createLucideIcon(fileJson);
151
- var FileText = createLucideIcon(fileText);
152
- var GripVertical = createLucideIcon(gripVertical);
153
- var Image = createLucideIcon(image);
154
- var LayoutGrid = createLucideIcon(layoutGrid);
155
- var LoaderCircle = createLucideIcon(loaderCircle);
156
- var Mail = createLucideIcon(mail);
157
- var Paperclip = createLucideIcon(paperclip);
158
- var RefreshCw = createLucideIcon(refreshCw);
159
- var RotateCcw = createLucideIcon(rotateCcw);
160
- var Rows3 = createLucideIcon(rows3);
161
- var Search = createLucideIcon(search);
162
- var Settings2 = createLucideIcon(settings2);
163
- var TriangleAlert = createLucideIcon(triangleAlert);
164
- var X = createLucideIcon(x);
63
+ import { Search as SearchIcon, X, createLucideIcon } from "@krak-stack/registry/lucide-effect";
165
64
 
166
65
  // ../../src/components/search-menu/classes.ts
167
66
  var searchMenuClasses = {
@@ -297,7 +196,6 @@ var Props = SearchMenuPropsSchema.mapFields((fields) => ({
297
196
  ...fields,
298
197
  groups: Schema3.Array(Group2)
299
198
  }));
300
- var SearchIcon = createLucideIcon(Search2);
301
199
  var Events = UiSchema2.TaggedEnum({
302
200
  OpenChanged: { open: Schema3.Boolean },
303
201
  QueryChanged: { query: Schema3.String },
@@ -2,7 +2,6 @@
2
2
  import { Schema as Schema3 } from "effect";
3
3
  import { Html } from "effect/ui/html";
4
4
  import { Dialog } from "effect/ui/kit";
5
- import { PanelLeft } from "lucide";
6
5
 
7
6
  // ../../src/components/effectcn/button.ts
8
7
  import {
@@ -38,106 +37,8 @@ var DialogViewport = (h, dialog, options = {}) => dialog.viewport(h.div.class(cn
38
37
  var DialogPopup = (h, dialog, options = {}) => dialog.popup(h.div.class(cn("bg-popover text-popover-foreground pointer-events-auto relative flex max-h-full w-full max-w-[440px] flex-col gap-4 rounded-lg border p-6 text-sm shadow-lg outline-none", "transition-[opacity,scale,translate,filter] duration-200 ease-out data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "data-[nested-dialog-open]:-translate-y-[calc(14px*var(--nested-dialogs))] data-[nested-dialog-open]:scale-[calc(1-0.05*var(--nested-dialogs))] data-[nested-dialog-open]:brightness-95", options.class)));
39
38
  var DialogTitle = (h, dialog, options = {}) => dialog.title(h.h2.class(cn("m-0 border-0 p-0 text-[16px] leading-snug font-semibold tracking-tight", options.class)));
40
39
 
41
- // ../../src/lib/lucide-effect.ts
42
- import {
43
- ArrowDown as arrowDown,
44
- ArrowUp as arrowUp,
45
- ListFilter as listFilter,
46
- Check as check,
47
- ChevronLeft as chevronLeft,
48
- ChevronDown as chevronDown,
49
- ChevronRight as chevronRight,
50
- ChevronsLeft as chevronsLeft,
51
- ChevronsRight as chevronsRight,
52
- ChevronsUpDown as chevronsUpDown,
53
- Copy as copy,
54
- Download as download,
55
- Eye as eye,
56
- EyeOff as eyeOff,
57
- Ellipsis as ellipsis,
58
- FileJson as fileJson,
59
- FileText as fileText,
60
- GripVertical as gripVertical,
61
- Image as image,
62
- LayoutGrid as layoutGrid,
63
- LoaderCircle as loaderCircle,
64
- Mail as mail,
65
- Paperclip as paperclip,
66
- RefreshCw as refreshCw,
67
- RotateCcw as rotateCcw,
68
- Rows3 as rows3,
69
- Search as search,
70
- Settings2 as settings2,
71
- TriangleAlert as triangleAlert,
72
- X as x
73
- } from "lucide";
74
- var createLucideIcon = (icon) => (h, {
75
- size = 24,
76
- color = "currentColor",
77
- strokeWidth = 2,
78
- className
79
- } = {}) => h.svg.attrs({
80
- class: className,
81
- width: String(size),
82
- height: String(size),
83
- viewBox: "0 0 24 24",
84
- fill: "none",
85
- stroke: color,
86
- "stroke-width": String(strokeWidth),
87
- "stroke-linecap": "round",
88
- "stroke-linejoin": "round",
89
- "aria-hidden": "true"
90
- }).children(...icon.map(([tag, attributes]) => {
91
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
92
- switch (tag) {
93
- case "path":
94
- return h.path.attrs(attrs);
95
- case "circle":
96
- return h.circle.attrs(attrs);
97
- case "ellipse":
98
- return h.ellipse.attrs(attrs);
99
- case "line":
100
- return h.line.attrs(attrs);
101
- case "polyline":
102
- return h.polyline.attrs(attrs);
103
- case "polygon":
104
- return h.polygon.attrs(attrs);
105
- case "rect":
106
- return h.rect.attrs(attrs);
107
- default:
108
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
109
- }
110
- }));
111
- var Check = createLucideIcon(check);
112
- var ArrowDown = createLucideIcon(arrowDown);
113
- var ArrowUp = createLucideIcon(arrowUp);
114
- var ListFilter = createLucideIcon(listFilter);
115
- var ChevronLeft = createLucideIcon(chevronLeft);
116
- var ChevronDown = createLucideIcon(chevronDown);
117
- var ChevronRight = createLucideIcon(chevronRight);
118
- var ChevronsLeft = createLucideIcon(chevronsLeft);
119
- var ChevronsRight = createLucideIcon(chevronsRight);
120
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
121
- var Copy = createLucideIcon(copy);
122
- var Download = createLucideIcon(download);
123
- var Eye = createLucideIcon(eye);
124
- var EyeOff = createLucideIcon(eyeOff);
125
- var Ellipsis = createLucideIcon(ellipsis);
126
- var FileJson = createLucideIcon(fileJson);
127
- var FileText = createLucideIcon(fileText);
128
- var GripVertical = createLucideIcon(gripVertical);
129
- var Image = createLucideIcon(image);
130
- var LayoutGrid = createLucideIcon(layoutGrid);
131
- var LoaderCircle = createLucideIcon(loaderCircle);
132
- var Mail = createLucideIcon(mail);
133
- var Paperclip = createLucideIcon(paperclip);
134
- var RefreshCw = createLucideIcon(refreshCw);
135
- var RotateCcw = createLucideIcon(rotateCcw);
136
- var Rows3 = createLucideIcon(rows3);
137
- var Search = createLucideIcon(search);
138
- var Settings2 = createLucideIcon(settings2);
139
- var TriangleAlert = createLucideIcon(triangleAlert);
140
- var X = createLucideIcon(x);
40
+ // ../../src/components/sidebar-layout/html.ts
41
+ import { PanelLeft as PanelIcon, createLucideIcon } from "@krak-stack/registry/lucide-effect";
141
42
 
142
43
  // ../../src/components/sidebar-layout/classes.ts
143
44
  var sidebarLayoutClasses = {
@@ -244,7 +145,6 @@ var sidebarLayoutBehaviours = {
244
145
  };
245
146
 
246
147
  // ../../src/components/sidebar-layout/html.ts
247
- var PanelIcon = createLucideIcon(PanelLeft);
248
148
  var badges = {
249
149
  default: "bg-primary text-primary-foreground",
250
150
  secondary: "bg-secondary text-secondary-foreground",
@@ -2,109 +2,12 @@
2
2
  import { Effect, Schema as Schema3, Stream } from "effect";
3
3
  import { Component as Component2, Mount, View } from "effect/ui";
4
4
  import { Html } from "effect/ui/html";
5
- import { CircleAlert } from "lucide";
6
5
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
7
-
8
- // ../../src/lib/lucide-effect.ts
9
6
  import {
10
- ArrowDown as arrowDown,
11
- ArrowUp as arrowUp,
12
- ListFilter as listFilter,
13
- Check as check,
14
- ChevronLeft as chevronLeft,
15
- ChevronDown as chevronDown,
16
- ChevronRight as chevronRight,
17
- ChevronsLeft as chevronsLeft,
18
- ChevronsRight as chevronsRight,
19
- ChevronsUpDown as chevronsUpDown,
20
- Copy as copy,
21
- Download as download,
22
- Eye as eye,
23
- EyeOff as eyeOff,
24
- Ellipsis as ellipsis,
25
- FileJson as fileJson,
26
- FileText as fileText,
27
- GripVertical as gripVertical,
28
- Image as image,
29
- LayoutGrid as layoutGrid,
30
- LoaderCircle as loaderCircle,
31
- Mail as mail,
32
- Paperclip as paperclip,
33
- RefreshCw as refreshCw,
34
- RotateCcw as rotateCcw,
35
- Rows3 as rows3,
36
- Search as search,
37
- Settings2 as settings2,
38
- TriangleAlert as triangleAlert,
39
- X as x
40
- } from "lucide";
41
- var createLucideIcon = (icon) => (h, {
42
- size = 24,
43
- color = "currentColor",
44
- strokeWidth = 2,
45
- className
46
- } = {}) => h.svg.attrs({
47
- class: className,
48
- width: String(size),
49
- height: String(size),
50
- viewBox: "0 0 24 24",
51
- fill: "none",
52
- stroke: color,
53
- "stroke-width": String(strokeWidth),
54
- "stroke-linecap": "round",
55
- "stroke-linejoin": "round",
56
- "aria-hidden": "true"
57
- }).children(...icon.map(([tag, attributes]) => {
58
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
59
- switch (tag) {
60
- case "path":
61
- return h.path.attrs(attrs);
62
- case "circle":
63
- return h.circle.attrs(attrs);
64
- case "ellipse":
65
- return h.ellipse.attrs(attrs);
66
- case "line":
67
- return h.line.attrs(attrs);
68
- case "polyline":
69
- return h.polyline.attrs(attrs);
70
- case "polygon":
71
- return h.polygon.attrs(attrs);
72
- case "rect":
73
- return h.rect.attrs(attrs);
74
- default:
75
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
76
- }
77
- }));
78
- var Check = createLucideIcon(check);
79
- var ArrowDown = createLucideIcon(arrowDown);
80
- var ArrowUp = createLucideIcon(arrowUp);
81
- var ListFilter = createLucideIcon(listFilter);
82
- var ChevronLeft = createLucideIcon(chevronLeft);
83
- var ChevronDown = createLucideIcon(chevronDown);
84
- var ChevronRight = createLucideIcon(chevronRight);
85
- var ChevronsLeft = createLucideIcon(chevronsLeft);
86
- var ChevronsRight = createLucideIcon(chevronsRight);
87
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
88
- var Copy = createLucideIcon(copy);
89
- var Download = createLucideIcon(download);
90
- var Eye = createLucideIcon(eye);
91
- var EyeOff = createLucideIcon(eyeOff);
92
- var Ellipsis = createLucideIcon(ellipsis);
93
- var FileJson = createLucideIcon(fileJson);
94
- var FileText = createLucideIcon(fileText);
95
- var GripVertical = createLucideIcon(gripVertical);
96
- var Image = createLucideIcon(image);
97
- var LayoutGrid = createLucideIcon(layoutGrid);
98
- var LoaderCircle = createLucideIcon(loaderCircle);
99
- var Mail = createLucideIcon(mail);
100
- var Paperclip = createLucideIcon(paperclip);
101
- var RefreshCw = createLucideIcon(refreshCw);
102
- var RotateCcw = createLucideIcon(rotateCcw);
103
- var Rows3 = createLucideIcon(rows3);
104
- var Search = createLucideIcon(search);
105
- var Settings2 = createLucideIcon(settings2);
106
- var TriangleAlert = createLucideIcon(triangleAlert);
107
- var X = createLucideIcon(x);
7
+ Check,
8
+ CircleAlert as ErrorIcon,
9
+ createLucideIcon
10
+ } from "@krak-stack/registry/lucide-effect";
108
11
 
109
12
  // ../../src/lib/utils.ts
110
13
  import { cn } from "cn";
@@ -227,7 +130,6 @@ var stepperBehaviours = {
227
130
  };
228
131
 
229
132
  // ../../src/components/stepper/html.ts
230
- var ErrorIcon = createLucideIcon(CircleAlert);
231
133
  var IconNode = Schema3.mutable(Schema3.Array(Schema3.mutable(Schema3.Tuple([
232
134
  Schema3.String,
233
135
  Schema3.Record(Schema3.String, Schema3.UndefinedOr(Schema3.Union([Schema3.String, Schema3.Number])))