@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
@@ -2,107 +2,7 @@
2
2
  import { Schema as Schema2 } from "effect";
3
3
  import { Html } from "effect/ui/html";
4
4
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
5
-
6
- // ../../src/lib/lucide-effect.ts
7
- import {
8
- ArrowDown as arrowDown,
9
- ArrowUp as arrowUp,
10
- ListFilter as listFilter,
11
- Check as check,
12
- ChevronLeft as chevronLeft,
13
- ChevronDown as chevronDown,
14
- ChevronRight as chevronRight,
15
- ChevronsLeft as chevronsLeft,
16
- ChevronsRight as chevronsRight,
17
- ChevronsUpDown as chevronsUpDown,
18
- Copy as copy,
19
- Download as download,
20
- Eye as eye,
21
- EyeOff as eyeOff,
22
- Ellipsis as ellipsis,
23
- FileJson as fileJson,
24
- FileText as fileText,
25
- GripVertical as gripVertical,
26
- Image as image,
27
- LayoutGrid as layoutGrid,
28
- LoaderCircle as loaderCircle,
29
- Mail as mail,
30
- Paperclip as paperclip,
31
- RefreshCw as refreshCw,
32
- RotateCcw as rotateCcw,
33
- Rows3 as rows3,
34
- Search as search,
35
- Settings2 as settings2,
36
- TriangleAlert as triangleAlert,
37
- X as x
38
- } from "lucide";
39
- var createLucideIcon = (icon) => (h, {
40
- size = 24,
41
- color = "currentColor",
42
- strokeWidth = 2,
43
- className
44
- } = {}) => h.svg.attrs({
45
- class: className,
46
- width: String(size),
47
- height: String(size),
48
- viewBox: "0 0 24 24",
49
- fill: "none",
50
- stroke: color,
51
- "stroke-width": String(strokeWidth),
52
- "stroke-linecap": "round",
53
- "stroke-linejoin": "round",
54
- "aria-hidden": "true"
55
- }).children(...icon.map(([tag, attributes]) => {
56
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
57
- switch (tag) {
58
- case "path":
59
- return h.path.attrs(attrs);
60
- case "circle":
61
- return h.circle.attrs(attrs);
62
- case "ellipse":
63
- return h.ellipse.attrs(attrs);
64
- case "line":
65
- return h.line.attrs(attrs);
66
- case "polyline":
67
- return h.polyline.attrs(attrs);
68
- case "polygon":
69
- return h.polygon.attrs(attrs);
70
- case "rect":
71
- return h.rect.attrs(attrs);
72
- default:
73
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
74
- }
75
- }));
76
- var Check = createLucideIcon(check);
77
- var ArrowDown = createLucideIcon(arrowDown);
78
- var ArrowUp = createLucideIcon(arrowUp);
79
- var ListFilter = createLucideIcon(listFilter);
80
- var ChevronLeft = createLucideIcon(chevronLeft);
81
- var ChevronDown = createLucideIcon(chevronDown);
82
- var ChevronRight = createLucideIcon(chevronRight);
83
- var ChevronsLeft = createLucideIcon(chevronsLeft);
84
- var ChevronsRight = createLucideIcon(chevronsRight);
85
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
86
- var Copy = createLucideIcon(copy);
87
- var Download = createLucideIcon(download);
88
- var Eye = createLucideIcon(eye);
89
- var EyeOff = createLucideIcon(eyeOff);
90
- var Ellipsis = createLucideIcon(ellipsis);
91
- var FileJson = createLucideIcon(fileJson);
92
- var FileText = createLucideIcon(fileText);
93
- var GripVertical = createLucideIcon(gripVertical);
94
- var Image = createLucideIcon(image);
95
- var LayoutGrid = createLucideIcon(layoutGrid);
96
- var LoaderCircle = createLucideIcon(loaderCircle);
97
- var Mail = createLucideIcon(mail);
98
- var Paperclip = createLucideIcon(paperclip);
99
- var RefreshCw = createLucideIcon(refreshCw);
100
- var RotateCcw = createLucideIcon(rotateCcw);
101
- var Rows3 = createLucideIcon(rows3);
102
- var Search = createLucideIcon(search);
103
- var Settings2 = createLucideIcon(settings2);
104
- var TriangleAlert = createLucideIcon(triangleAlert);
105
- var X = createLucideIcon(x);
5
+ import { LoaderCircle } from "@krak-stack/registry/lucide-effect";
106
6
 
107
7
  // ../../src/lib/utils.ts
108
8
  import { cn } from "cn";
@@ -1,7 +1,6 @@
1
1
  // ../../src/components/locale-switcher/html.ts
2
2
  import { Html } from "effect/ui/html";
3
3
  import { Menu } from "effect/ui/kit";
4
- import { Languages } from "lucide";
5
4
 
6
5
  // ../../src/lib/utils.ts
7
6
  import { cn } from "cn";
@@ -59,107 +58,7 @@ var MenuLabel = (h, menu, options) => menu.groupLabel({
59
58
 
60
59
  // ../../src/components/locale-switcher/html.ts
61
60
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
62
-
63
- // ../../src/lib/lucide-effect.ts
64
- import {
65
- ArrowDown as arrowDown,
66
- ArrowUp as arrowUp,
67
- ListFilter as listFilter,
68
- Check as check,
69
- ChevronLeft as chevronLeft,
70
- ChevronDown as chevronDown,
71
- ChevronRight as chevronRight,
72
- ChevronsLeft as chevronsLeft,
73
- ChevronsRight as chevronsRight,
74
- ChevronsUpDown as chevronsUpDown,
75
- Copy as copy,
76
- Download as download,
77
- Eye as eye,
78
- EyeOff as eyeOff,
79
- Ellipsis as ellipsis,
80
- FileJson as fileJson,
81
- FileText as fileText,
82
- GripVertical as gripVertical,
83
- Image as image,
84
- LayoutGrid as layoutGrid,
85
- LoaderCircle as loaderCircle,
86
- Mail as mail,
87
- Paperclip as paperclip,
88
- RefreshCw as refreshCw,
89
- RotateCcw as rotateCcw,
90
- Rows3 as rows3,
91
- Search as search,
92
- Settings2 as settings2,
93
- TriangleAlert as triangleAlert,
94
- X as x
95
- } from "lucide";
96
- var createLucideIcon = (icon) => (h, {
97
- size = 24,
98
- color = "currentColor",
99
- strokeWidth = 2,
100
- className
101
- } = {}) => h.svg.attrs({
102
- class: className,
103
- width: String(size),
104
- height: String(size),
105
- viewBox: "0 0 24 24",
106
- fill: "none",
107
- stroke: color,
108
- "stroke-width": String(strokeWidth),
109
- "stroke-linecap": "round",
110
- "stroke-linejoin": "round",
111
- "aria-hidden": "true"
112
- }).children(...icon.map(([tag, attributes]) => {
113
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
114
- switch (tag) {
115
- case "path":
116
- return h.path.attrs(attrs);
117
- case "circle":
118
- return h.circle.attrs(attrs);
119
- case "ellipse":
120
- return h.ellipse.attrs(attrs);
121
- case "line":
122
- return h.line.attrs(attrs);
123
- case "polyline":
124
- return h.polyline.attrs(attrs);
125
- case "polygon":
126
- return h.polygon.attrs(attrs);
127
- case "rect":
128
- return h.rect.attrs(attrs);
129
- default:
130
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
131
- }
132
- }));
133
- var Check = createLucideIcon(check);
134
- var ArrowDown = createLucideIcon(arrowDown);
135
- var ArrowUp = createLucideIcon(arrowUp);
136
- var ListFilter = createLucideIcon(listFilter);
137
- var ChevronLeft = createLucideIcon(chevronLeft);
138
- var ChevronDown = createLucideIcon(chevronDown);
139
- var ChevronRight = createLucideIcon(chevronRight);
140
- var ChevronsLeft = createLucideIcon(chevronsLeft);
141
- var ChevronsRight = createLucideIcon(chevronsRight);
142
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
143
- var Copy = createLucideIcon(copy);
144
- var Download = createLucideIcon(download);
145
- var Eye = createLucideIcon(eye);
146
- var EyeOff = createLucideIcon(eyeOff);
147
- var Ellipsis = createLucideIcon(ellipsis);
148
- var FileJson = createLucideIcon(fileJson);
149
- var FileText = createLucideIcon(fileText);
150
- var GripVertical = createLucideIcon(gripVertical);
151
- var Image = createLucideIcon(image);
152
- var LayoutGrid = createLucideIcon(layoutGrid);
153
- var LoaderCircle = createLucideIcon(loaderCircle);
154
- var Mail = createLucideIcon(mail);
155
- var Paperclip = createLucideIcon(paperclip);
156
- var RefreshCw = createLucideIcon(refreshCw);
157
- var RotateCcw = createLucideIcon(rotateCcw);
158
- var Rows3 = createLucideIcon(rows3);
159
- var Search = createLucideIcon(search);
160
- var Settings2 = createLucideIcon(settings2);
161
- var TriangleAlert = createLucideIcon(triangleAlert);
162
- var X = createLucideIcon(x);
61
+ import { Languages as LanguagesIcon } from "@krak-stack/registry/lucide-effect";
163
62
 
164
63
  // ../../src/components/locale-switcher/index.ts
165
64
  import { Schema as Schema2 } from "effect";
@@ -219,7 +118,6 @@ var localeSwitcherBehaviours = {
219
118
  };
220
119
 
221
120
  // ../../src/components/locale-switcher/html.ts
222
- var LanguagesIcon = createLucideIcon(Languages);
223
121
  var LocaleSwitcher = Html.component({
224
122
  ...localeSwitcherOptions,
225
123
  reads: { localeConfig: krakstackLocaleRead }
@@ -81,10 +81,10 @@ export declare const makeMapMenu: (viewportHost?: MapViewportHost) => import("ef
81
81
  readonly revision: number;
82
82
  } | null;
83
83
  }, {
84
+ readonly _tag: "Cancel";
85
+ } | {
84
86
  readonly _tag: "CameraRequested";
85
87
  readonly action: "fit" | "in" | "out";
86
- } | {
87
- readonly _tag: "Cancel";
88
88
  } | {
89
89
  readonly _tag: "Confirm";
90
90
  } | {
@@ -112,9 +112,9 @@ export declare const makeMapMenu: (viewportHost?: MapViewportHost) => import("ef
112
112
  readonly _tag: "ZoomChanged";
113
113
  readonly zoom: number;
114
114
  }, {
115
- readonly _tag: "Confirmed";
116
- } | {
117
115
  readonly _tag: "Cancelled";
116
+ } | {
117
+ readonly _tag: "Confirmed";
118
118
  } | {
119
119
  readonly _tag: "CurrentLocationRequested";
120
120
  } | {
@@ -214,10 +214,10 @@ export declare const MapMenu: import("effect/ui/Component").Component<"MapMenu",
214
214
  readonly revision: number;
215
215
  } | null;
216
216
  }, {
217
+ readonly _tag: "Cancel";
218
+ } | {
217
219
  readonly _tag: "CameraRequested";
218
220
  readonly action: "fit" | "in" | "out";
219
- } | {
220
- readonly _tag: "Cancel";
221
221
  } | {
222
222
  readonly _tag: "Confirm";
223
223
  } | {
@@ -245,9 +245,9 @@ export declare const MapMenu: import("effect/ui/Component").Component<"MapMenu",
245
245
  readonly _tag: "ZoomChanged";
246
246
  readonly zoom: number;
247
247
  }, {
248
- readonly _tag: "Confirmed";
249
- } | {
250
248
  readonly _tag: "Cancelled";
249
+ } | {
250
+ readonly _tag: "Confirmed";
251
251
  } | {
252
252
  readonly _tag: "CurrentLocationRequested";
253
253
  } | {
@@ -3,7 +3,6 @@ import { Effect as Effect3, Redacted as Redacted2, Schema as Schema3, Stream as
3
3
  import { Mount } from "effect/ui";
4
4
  import { Html } from "effect/ui/html";
5
5
  import { Combobox, Dialog } from "effect/ui/kit";
6
- import { LocateFixed, MapPin, Minus, Plus, Search as Search2 } from "lucide";
7
6
 
8
7
  // ../../src/components/effectcn/button.ts
9
8
  import {
@@ -79,107 +78,14 @@ var DialogTitle = (h, dialog, options = {}) => dialog.title(h.h2.class(cn("m-0 b
79
78
 
80
79
  // ../../src/components/map-menu/html.ts
81
80
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
82
-
83
- // ../../src/lib/lucide-effect.ts
84
81
  import {
85
- ArrowDown as arrowDown,
86
- ArrowUp as arrowUp,
87
- ListFilter as listFilter,
88
- Check as check,
89
- ChevronLeft as chevronLeft,
90
- ChevronDown as chevronDown,
91
- ChevronRight as chevronRight,
92
- ChevronsLeft as chevronsLeft,
93
- ChevronsRight as chevronsRight,
94
- ChevronsUpDown as chevronsUpDown,
95
- Copy as copy,
96
- Download as download,
97
- Eye as eye,
98
- EyeOff as eyeOff,
99
- Ellipsis as ellipsis,
100
- FileJson as fileJson,
101
- FileText as fileText,
102
- GripVertical as gripVertical,
103
- Image as image,
104
- LayoutGrid as layoutGrid,
105
- LoaderCircle as loaderCircle,
106
- Mail as mail,
107
- Paperclip as paperclip,
108
- RefreshCw as refreshCw,
109
- RotateCcw as rotateCcw,
110
- Rows3 as rows3,
111
- Search as search,
112
- Settings2 as settings2,
113
- TriangleAlert as triangleAlert,
114
- X as x
115
- } from "lucide";
116
- var createLucideIcon = (icon) => (h, {
117
- size = 24,
118
- color = "currentColor",
119
- strokeWidth = 2,
120
- className
121
- } = {}) => h.svg.attrs({
122
- class: className,
123
- width: String(size),
124
- height: String(size),
125
- viewBox: "0 0 24 24",
126
- fill: "none",
127
- stroke: color,
128
- "stroke-width": String(strokeWidth),
129
- "stroke-linecap": "round",
130
- "stroke-linejoin": "round",
131
- "aria-hidden": "true"
132
- }).children(...icon.map(([tag, attributes]) => {
133
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
134
- switch (tag) {
135
- case "path":
136
- return h.path.attrs(attrs);
137
- case "circle":
138
- return h.circle.attrs(attrs);
139
- case "ellipse":
140
- return h.ellipse.attrs(attrs);
141
- case "line":
142
- return h.line.attrs(attrs);
143
- case "polyline":
144
- return h.polyline.attrs(attrs);
145
- case "polygon":
146
- return h.polygon.attrs(attrs);
147
- case "rect":
148
- return h.rect.attrs(attrs);
149
- default:
150
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
151
- }
152
- }));
153
- var Check = createLucideIcon(check);
154
- var ArrowDown = createLucideIcon(arrowDown);
155
- var ArrowUp = createLucideIcon(arrowUp);
156
- var ListFilter = createLucideIcon(listFilter);
157
- var ChevronLeft = createLucideIcon(chevronLeft);
158
- var ChevronDown = createLucideIcon(chevronDown);
159
- var ChevronRight = createLucideIcon(chevronRight);
160
- var ChevronsLeft = createLucideIcon(chevronsLeft);
161
- var ChevronsRight = createLucideIcon(chevronsRight);
162
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
163
- var Copy = createLucideIcon(copy);
164
- var Download = createLucideIcon(download);
165
- var Eye = createLucideIcon(eye);
166
- var EyeOff = createLucideIcon(eyeOff);
167
- var Ellipsis = createLucideIcon(ellipsis);
168
- var FileJson = createLucideIcon(fileJson);
169
- var FileText = createLucideIcon(fileText);
170
- var GripVertical = createLucideIcon(gripVertical);
171
- var Image = createLucideIcon(image);
172
- var LayoutGrid = createLucideIcon(layoutGrid);
173
- var LoaderCircle = createLucideIcon(loaderCircle);
174
- var Mail = createLucideIcon(mail);
175
- var Paperclip = createLucideIcon(paperclip);
176
- var RefreshCw = createLucideIcon(refreshCw);
177
- var RotateCcw = createLucideIcon(rotateCcw);
178
- var Rows3 = createLucideIcon(rows3);
179
- var Search = createLucideIcon(search);
180
- var Settings2 = createLucideIcon(settings2);
181
- var TriangleAlert = createLucideIcon(triangleAlert);
182
- var X = createLucideIcon(x);
82
+ LocateFixed as LocateIcon,
83
+ MapPin as Pin,
84
+ Minus as ZoomOut,
85
+ Plus as ZoomIn,
86
+ Search as SearchIcon,
87
+ X
88
+ } from "@krak-stack/registry/lucide-effect";
183
89
 
184
90
  // ../../src/components/map-menu/classes.ts
185
91
  var mapMenuClasses = {
@@ -697,11 +603,6 @@ var mapMenuBehaviours = {
697
603
  };
698
604
 
699
605
  // ../../src/components/map-menu/html.ts
700
- var LocateIcon = createLucideIcon(LocateFixed);
701
- var Pin = createLucideIcon(MapPin);
702
- var ZoomIn = createLucideIcon(Plus);
703
- var ZoomOut = createLucideIcon(Minus);
704
- var SearchIcon = createLucideIcon(Search2);
705
606
  var isOptionId = Schema3.is(Schema3.String);
706
607
  var PreventSearchSubmit = Mount.make("MapMenu/PreventSearchSubmit", {}, (node) => {
707
608
  const prevent = (event) => {
@@ -49,107 +49,7 @@ var Button = (h, options = {}) => KitButton(h, {
49
49
 
50
50
  // ../../src/components/copy-button/html.ts
51
51
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
52
-
53
- // ../../src/lib/lucide-effect.ts
54
- import {
55
- ArrowDown as arrowDown,
56
- ArrowUp as arrowUp,
57
- ListFilter as listFilter,
58
- Check as check,
59
- ChevronLeft as chevronLeft,
60
- ChevronDown as chevronDown,
61
- ChevronRight as chevronRight,
62
- ChevronsLeft as chevronsLeft,
63
- ChevronsRight as chevronsRight,
64
- ChevronsUpDown as chevronsUpDown,
65
- Copy as copy,
66
- Download as download,
67
- Eye as eye,
68
- EyeOff as eyeOff,
69
- Ellipsis as ellipsis,
70
- FileJson as fileJson,
71
- FileText as fileText,
72
- GripVertical as gripVertical,
73
- Image as image,
74
- LayoutGrid as layoutGrid,
75
- LoaderCircle as loaderCircle,
76
- Mail as mail,
77
- Paperclip as paperclip,
78
- RefreshCw as refreshCw,
79
- RotateCcw as rotateCcw,
80
- Rows3 as rows3,
81
- Search as search,
82
- Settings2 as settings2,
83
- TriangleAlert as triangleAlert,
84
- X as x
85
- } from "lucide";
86
- var createLucideIcon = (icon) => (h, {
87
- size = 24,
88
- color = "currentColor",
89
- strokeWidth = 2,
90
- className
91
- } = {}) => h.svg.attrs({
92
- class: className,
93
- width: String(size),
94
- height: String(size),
95
- viewBox: "0 0 24 24",
96
- fill: "none",
97
- stroke: color,
98
- "stroke-width": String(strokeWidth),
99
- "stroke-linecap": "round",
100
- "stroke-linejoin": "round",
101
- "aria-hidden": "true"
102
- }).children(...icon.map(([tag, attributes]) => {
103
- const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
104
- switch (tag) {
105
- case "path":
106
- return h.path.attrs(attrs);
107
- case "circle":
108
- return h.circle.attrs(attrs);
109
- case "ellipse":
110
- return h.ellipse.attrs(attrs);
111
- case "line":
112
- return h.line.attrs(attrs);
113
- case "polyline":
114
- return h.polyline.attrs(attrs);
115
- case "polygon":
116
- return h.polygon.attrs(attrs);
117
- case "rect":
118
- return h.rect.attrs(attrs);
119
- default:
120
- throw new Error(`Unsupported Lucide SVG element: ${tag}`);
121
- }
122
- }));
123
- var Check = createLucideIcon(check);
124
- var ArrowDown = createLucideIcon(arrowDown);
125
- var ArrowUp = createLucideIcon(arrowUp);
126
- var ListFilter = createLucideIcon(listFilter);
127
- var ChevronLeft = createLucideIcon(chevronLeft);
128
- var ChevronDown = createLucideIcon(chevronDown);
129
- var ChevronRight = createLucideIcon(chevronRight);
130
- var ChevronsLeft = createLucideIcon(chevronsLeft);
131
- var ChevronsRight = createLucideIcon(chevronsRight);
132
- var ChevronsUpDown = createLucideIcon(chevronsUpDown);
133
- var Copy = createLucideIcon(copy);
134
- var Download = createLucideIcon(download);
135
- var Eye = createLucideIcon(eye);
136
- var EyeOff = createLucideIcon(eyeOff);
137
- var Ellipsis = createLucideIcon(ellipsis);
138
- var FileJson = createLucideIcon(fileJson);
139
- var FileText = createLucideIcon(fileText);
140
- var GripVertical = createLucideIcon(gripVertical);
141
- var Image = createLucideIcon(image);
142
- var LayoutGrid = createLucideIcon(layoutGrid);
143
- var LoaderCircle = createLucideIcon(loaderCircle);
144
- var Mail = createLucideIcon(mail);
145
- var Paperclip = createLucideIcon(paperclip);
146
- var RefreshCw = createLucideIcon(refreshCw);
147
- var RotateCcw = createLucideIcon(rotateCcw);
148
- var Rows3 = createLucideIcon(rows3);
149
- var Search = createLucideIcon(search);
150
- var Settings2 = createLucideIcon(settings2);
151
- var TriangleAlert = createLucideIcon(triangleAlert);
152
- var X = createLucideIcon(x);
52
+ import { Check, Copy, TriangleAlert } from "@krak-stack/registry/lucide-effect";
153
53
 
154
54
  // ../../src/components/copy-button/index.ts
155
55
  import { Effect, Redacted, Schema as Schema2 } from "effect";
@@ -1,14 +1,6 @@
1
1
  // ../../src/components/notification-menu/html.ts
2
2
  import { Html } from "effect/ui/html";
3
3
  import { Popover, ScrollArea, makeTabs } from "effect/ui/kit";
4
- import {
5
- Archive,
6
- ArchiveRestore,
7
- Bell,
8
- BellDot,
9
- Inbox,
10
- TriangleAlert as TriangleAlert2
11
- } from "lucide";
12
4
 
13
5
  // ../../src/components/effectcn/button.ts
14
6
  import {
@@ -61,107 +53,14 @@ var ScrollAreaScrollbar = (h, area) => area.scrollbar({
61
53
 
62
54
  // ../../src/components/notification-menu/html.ts
63
55
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
64
-
65
- // ../../src/lib/lucide-effect.ts
66
56
  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);
57
+ Archive as ArchiveIcon,
58
+ ArchiveRestore as ArchiveTabIcon,
59
+ Bell as BellIcon,
60
+ BellDot as BellDotIcon,
61
+ Inbox as InboxIcon,
62
+ TriangleAlert as AlertIcon
63
+ } from "@krak-stack/registry/lucide-effect";
165
64
 
166
65
  // ../../src/components/notification-menu/classes.ts
167
66
  var notificationMenuClasses = {
@@ -330,12 +229,6 @@ var notificationMenuBehaviours = {
330
229
  };
331
230
 
332
231
  // ../../src/components/notification-menu/html.ts
333
- var BellIcon = createLucideIcon(Bell);
334
- var BellDotIcon = createLucideIcon(BellDot);
335
- var ArchiveIcon = createLucideIcon(Archive);
336
- var InboxIcon = createLucideIcon(Inbox);
337
- var ArchiveTabIcon = createLucideIcon(ArchiveRestore);
338
- var AlertIcon = createLucideIcon(TriangleAlert2);
339
232
  var MenuTabs = makeTabs({ value: NotificationMenuTab });
340
233
  var tabClass = "relative z-10 inline-flex h-7 min-w-0 flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-sm px-3 text-[13px] font-medium whitespace-nowrap text-muted-foreground outline-offset-0 select-none transition-colors duration-150 hover:text-foreground data-[active]:text-foreground";
341
234
  var NotificationMenu = Html.component({