@krak-stack/registry 0.11.2 → 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.
- package/CHANGELOG.md +8 -0
- package/README.md +22 -0
- package/dist/components/animated-list/html.js +1 -105
- package/dist/components/app-switcher/html.js +1 -103
- package/dist/components/async-action-button/html.js +1 -101
- package/dist/components/bulk-list-input/html.js +2 -102
- package/dist/components/choice-cards/html.js +1 -101
- package/dist/components/code-block/html.js +1 -101
- package/dist/components/copy-button/html.d.ts +2 -2
- package/dist/components/copy-button/html.js +1 -101
- package/dist/components/copy-value/html.js +2 -101
- package/dist/components/data-table/html.d.ts +51 -51
- package/dist/components/data-table/html.js +28 -101
- package/dist/components/date-input/html.js +2 -105
- package/dist/components/editable-text/html.d.ts +2 -2
- package/dist/components/editable-text/html.js +4 -102
- package/dist/components/editing-locale-switcher/html.js +2 -102
- package/dist/components/email-editor/html.js +8 -107
- package/dist/components/error-component/html.d.ts +4 -4
- package/dist/components/error-component/html.js +10 -107
- package/dist/components/file-input/html.js +6 -106
- package/dist/components/icon-input/html.js +3 -103
- package/dist/components/image-crop-editor/html.js +1 -101
- package/dist/components/loading/html.js +1 -101
- package/dist/components/locale-switcher/html.js +1 -103
- package/dist/components/map-menu/html.d.ts +8 -8
- package/dist/components/map-menu/html.js +7 -106
- package/dist/components/markdown/html.js +1 -101
- package/dist/components/notification-menu/html.js +7 -114
- package/dist/components/pagination/html.js +5 -100
- package/dist/components/rich-text-editor/html.js +14 -108
- package/dist/components/search-menu/html.js +1 -103
- package/dist/components/sidebar-layout/html.js +2 -102
- package/dist/components/stepper/html.js +4 -102
- package/dist/components/support/html.js +1 -101
- package/dist/components/theme-switcher/html.js +4 -105
- package/dist/components/time-input/html.d.ts +2 -2
- package/dist/components/time-input/html.js +1 -103
- package/dist/components/toast/html.js +11 -104
- package/dist/components/upload-attachment/html.d.ts +4 -4
- package/dist/components/upload-attachment/html.js +7 -102
- package/dist/components/webhook-delivery-table/html.js +28 -101
- package/dist/lib/lucide-effect.d.ts +2432 -0
- package/dist/lib/lucide-effect.js +7428 -0
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 0.11.2
|
|
4
12
|
|
|
5
13
|
### 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.
|
|
@@ -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
|
|
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);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { Schema as Schema3 } from "effect";
|
|
3
3
|
import { Html } from "effect/ui/html";
|
|
4
4
|
import { Menu } from "effect/ui/kit";
|
|
5
|
-
import { Grip } from "lucide";
|
|
6
5
|
|
|
7
6
|
// ../../src/lib/utils.ts
|
|
8
7
|
import { cn } from "cn";
|
|
@@ -58,107 +57,7 @@ var MenuLabel = (h, menu, options) => menu.groupLabel({
|
|
|
58
57
|
|
|
59
58
|
// ../../src/components/app-switcher/html.ts
|
|
60
59
|
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
61
|
-
|
|
62
|
-
// ../../src/lib/lucide-effect.ts
|
|
63
|
-
import {
|
|
64
|
-
ArrowDown as arrowDown,
|
|
65
|
-
ArrowUp as arrowUp,
|
|
66
|
-
ListFilter as listFilter,
|
|
67
|
-
Check as check,
|
|
68
|
-
ChevronLeft as chevronLeft,
|
|
69
|
-
ChevronDown as chevronDown,
|
|
70
|
-
ChevronRight as chevronRight,
|
|
71
|
-
ChevronsLeft as chevronsLeft,
|
|
72
|
-
ChevronsRight as chevronsRight,
|
|
73
|
-
ChevronsUpDown as chevronsUpDown,
|
|
74
|
-
Copy as copy,
|
|
75
|
-
Download as download,
|
|
76
|
-
Eye as eye,
|
|
77
|
-
EyeOff as eyeOff,
|
|
78
|
-
Ellipsis as ellipsis,
|
|
79
|
-
FileJson as fileJson,
|
|
80
|
-
FileText as fileText,
|
|
81
|
-
GripVertical as gripVertical,
|
|
82
|
-
Image as image,
|
|
83
|
-
LayoutGrid as layoutGrid,
|
|
84
|
-
LoaderCircle as loaderCircle,
|
|
85
|
-
Mail as mail,
|
|
86
|
-
Paperclip as paperclip,
|
|
87
|
-
RefreshCw as refreshCw,
|
|
88
|
-
RotateCcw as rotateCcw,
|
|
89
|
-
Rows3 as rows3,
|
|
90
|
-
Search as search,
|
|
91
|
-
Settings2 as settings2,
|
|
92
|
-
TriangleAlert as triangleAlert,
|
|
93
|
-
X as x
|
|
94
|
-
} from "lucide";
|
|
95
|
-
var createLucideIcon = (icon) => (h, {
|
|
96
|
-
size = 24,
|
|
97
|
-
color = "currentColor",
|
|
98
|
-
strokeWidth = 2,
|
|
99
|
-
className
|
|
100
|
-
} = {}) => h.svg.attrs({
|
|
101
|
-
class: className,
|
|
102
|
-
width: String(size),
|
|
103
|
-
height: String(size),
|
|
104
|
-
viewBox: "0 0 24 24",
|
|
105
|
-
fill: "none",
|
|
106
|
-
stroke: color,
|
|
107
|
-
"stroke-width": String(strokeWidth),
|
|
108
|
-
"stroke-linecap": "round",
|
|
109
|
-
"stroke-linejoin": "round",
|
|
110
|
-
"aria-hidden": "true"
|
|
111
|
-
}).children(...icon.map(([tag, attributes]) => {
|
|
112
|
-
const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
|
|
113
|
-
switch (tag) {
|
|
114
|
-
case "path":
|
|
115
|
-
return h.path.attrs(attrs);
|
|
116
|
-
case "circle":
|
|
117
|
-
return h.circle.attrs(attrs);
|
|
118
|
-
case "ellipse":
|
|
119
|
-
return h.ellipse.attrs(attrs);
|
|
120
|
-
case "line":
|
|
121
|
-
return h.line.attrs(attrs);
|
|
122
|
-
case "polyline":
|
|
123
|
-
return h.polyline.attrs(attrs);
|
|
124
|
-
case "polygon":
|
|
125
|
-
return h.polygon.attrs(attrs);
|
|
126
|
-
case "rect":
|
|
127
|
-
return h.rect.attrs(attrs);
|
|
128
|
-
default:
|
|
129
|
-
throw new Error(`Unsupported Lucide SVG element: ${tag}`);
|
|
130
|
-
}
|
|
131
|
-
}));
|
|
132
|
-
var Check = createLucideIcon(check);
|
|
133
|
-
var ArrowDown = createLucideIcon(arrowDown);
|
|
134
|
-
var ArrowUp = createLucideIcon(arrowUp);
|
|
135
|
-
var ListFilter = createLucideIcon(listFilter);
|
|
136
|
-
var ChevronLeft = createLucideIcon(chevronLeft);
|
|
137
|
-
var ChevronDown = createLucideIcon(chevronDown);
|
|
138
|
-
var ChevronRight = createLucideIcon(chevronRight);
|
|
139
|
-
var ChevronsLeft = createLucideIcon(chevronsLeft);
|
|
140
|
-
var ChevronsRight = createLucideIcon(chevronsRight);
|
|
141
|
-
var ChevronsUpDown = createLucideIcon(chevronsUpDown);
|
|
142
|
-
var Copy = createLucideIcon(copy);
|
|
143
|
-
var Download = createLucideIcon(download);
|
|
144
|
-
var Eye = createLucideIcon(eye);
|
|
145
|
-
var EyeOff = createLucideIcon(eyeOff);
|
|
146
|
-
var Ellipsis = createLucideIcon(ellipsis);
|
|
147
|
-
var FileJson = createLucideIcon(fileJson);
|
|
148
|
-
var FileText = createLucideIcon(fileText);
|
|
149
|
-
var GripVertical = createLucideIcon(gripVertical);
|
|
150
|
-
var Image = createLucideIcon(image);
|
|
151
|
-
var LayoutGrid = createLucideIcon(layoutGrid);
|
|
152
|
-
var LoaderCircle = createLucideIcon(loaderCircle);
|
|
153
|
-
var Mail = createLucideIcon(mail);
|
|
154
|
-
var Paperclip = createLucideIcon(paperclip);
|
|
155
|
-
var RefreshCw = createLucideIcon(refreshCw);
|
|
156
|
-
var RotateCcw = createLucideIcon(rotateCcw);
|
|
157
|
-
var Rows3 = createLucideIcon(rows3);
|
|
158
|
-
var Search = createLucideIcon(search);
|
|
159
|
-
var Settings2 = createLucideIcon(settings2);
|
|
160
|
-
var TriangleAlert = createLucideIcon(triangleAlert);
|
|
161
|
-
var X = createLucideIcon(x);
|
|
60
|
+
import { Check, Grip as GripIcon, createLucideIcon } from "@krak-stack/registry/lucide-effect";
|
|
162
61
|
|
|
163
62
|
// ../../src/components/app-switcher/classes.ts
|
|
164
63
|
var appSwitcherClasses = {
|
|
@@ -246,7 +145,6 @@ var appSwitcherBehaviours = {
|
|
|
246
145
|
};
|
|
247
146
|
|
|
248
147
|
// ../../src/components/app-switcher/html.ts
|
|
249
|
-
var GripIcon = createLucideIcon(Grip);
|
|
250
148
|
var IconNode = Schema3.mutable(Schema3.Array(Schema3.mutable(Schema3.Tuple([
|
|
251
149
|
Schema3.String,
|
|
252
150
|
Schema3.Record(Schema3.String, Schema3.UndefinedOr(Schema3.Union([Schema3.String, Schema3.Number])))
|
|
@@ -37,107 +37,7 @@ var Button = (h, options = {}) => KitButton(h, {
|
|
|
37
37
|
|
|
38
38
|
// ../../src/components/async-action-button/html.ts
|
|
39
39
|
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
40
|
-
|
|
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
|
+
import { Check, LoaderCircle, RotateCcw } from "@krak-stack/registry/lucide-effect";
|
|
141
41
|
|
|
142
42
|
// ../../src/components/async-action-button/classes.ts
|
|
143
43
|
var asyncActionButtonClasses = {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// ../../src/components/bulk-list-input/html.ts
|
|
2
2
|
import { Redacted as Redacted2 } from "effect";
|
|
3
3
|
import { Html } from "effect/ui/html";
|
|
4
|
-
import { Upload } from "lucide";
|
|
5
4
|
|
|
6
5
|
// ../../src/components/effectcn/button.ts
|
|
7
6
|
import {
|
|
@@ -43,106 +42,8 @@ var sizes2 = {
|
|
|
43
42
|
};
|
|
44
43
|
var inputVariants = (options = {}) => cn(base2, sizes2[options.size ?? "default"], options.class);
|
|
45
44
|
|
|
46
|
-
// ../../src/
|
|
47
|
-
import {
|
|
48
|
-
ArrowDown as arrowDown,
|
|
49
|
-
ArrowUp as arrowUp,
|
|
50
|
-
ListFilter as listFilter,
|
|
51
|
-
Check as check,
|
|
52
|
-
ChevronLeft as chevronLeft,
|
|
53
|
-
ChevronDown as chevronDown,
|
|
54
|
-
ChevronRight as chevronRight,
|
|
55
|
-
ChevronsLeft as chevronsLeft,
|
|
56
|
-
ChevronsRight as chevronsRight,
|
|
57
|
-
ChevronsUpDown as chevronsUpDown,
|
|
58
|
-
Copy as copy,
|
|
59
|
-
Download as download,
|
|
60
|
-
Eye as eye,
|
|
61
|
-
EyeOff as eyeOff,
|
|
62
|
-
Ellipsis as ellipsis,
|
|
63
|
-
FileJson as fileJson,
|
|
64
|
-
FileText as fileText,
|
|
65
|
-
GripVertical as gripVertical,
|
|
66
|
-
Image as image,
|
|
67
|
-
LayoutGrid as layoutGrid,
|
|
68
|
-
LoaderCircle as loaderCircle,
|
|
69
|
-
Mail as mail,
|
|
70
|
-
Paperclip as paperclip,
|
|
71
|
-
RefreshCw as refreshCw,
|
|
72
|
-
RotateCcw as rotateCcw,
|
|
73
|
-
Rows3 as rows3,
|
|
74
|
-
Search as search,
|
|
75
|
-
Settings2 as settings2,
|
|
76
|
-
TriangleAlert as triangleAlert,
|
|
77
|
-
X as x
|
|
78
|
-
} from "lucide";
|
|
79
|
-
var createLucideIcon = (icon) => (h, {
|
|
80
|
-
size = 24,
|
|
81
|
-
color = "currentColor",
|
|
82
|
-
strokeWidth = 2,
|
|
83
|
-
className
|
|
84
|
-
} = {}) => h.svg.attrs({
|
|
85
|
-
class: className,
|
|
86
|
-
width: String(size),
|
|
87
|
-
height: String(size),
|
|
88
|
-
viewBox: "0 0 24 24",
|
|
89
|
-
fill: "none",
|
|
90
|
-
stroke: color,
|
|
91
|
-
"stroke-width": String(strokeWidth),
|
|
92
|
-
"stroke-linecap": "round",
|
|
93
|
-
"stroke-linejoin": "round",
|
|
94
|
-
"aria-hidden": "true"
|
|
95
|
-
}).children(...icon.map(([tag, attributes]) => {
|
|
96
|
-
const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
|
|
97
|
-
switch (tag) {
|
|
98
|
-
case "path":
|
|
99
|
-
return h.path.attrs(attrs);
|
|
100
|
-
case "circle":
|
|
101
|
-
return h.circle.attrs(attrs);
|
|
102
|
-
case "ellipse":
|
|
103
|
-
return h.ellipse.attrs(attrs);
|
|
104
|
-
case "line":
|
|
105
|
-
return h.line.attrs(attrs);
|
|
106
|
-
case "polyline":
|
|
107
|
-
return h.polyline.attrs(attrs);
|
|
108
|
-
case "polygon":
|
|
109
|
-
return h.polygon.attrs(attrs);
|
|
110
|
-
case "rect":
|
|
111
|
-
return h.rect.attrs(attrs);
|
|
112
|
-
default:
|
|
113
|
-
throw new Error(`Unsupported Lucide SVG element: ${tag}`);
|
|
114
|
-
}
|
|
115
|
-
}));
|
|
116
|
-
var Check = createLucideIcon(check);
|
|
117
|
-
var ArrowDown = createLucideIcon(arrowDown);
|
|
118
|
-
var ArrowUp = createLucideIcon(arrowUp);
|
|
119
|
-
var ListFilter = createLucideIcon(listFilter);
|
|
120
|
-
var ChevronLeft = createLucideIcon(chevronLeft);
|
|
121
|
-
var ChevronDown = createLucideIcon(chevronDown);
|
|
122
|
-
var ChevronRight = createLucideIcon(chevronRight);
|
|
123
|
-
var ChevronsLeft = createLucideIcon(chevronsLeft);
|
|
124
|
-
var ChevronsRight = createLucideIcon(chevronsRight);
|
|
125
|
-
var ChevronsUpDown = createLucideIcon(chevronsUpDown);
|
|
126
|
-
var Copy = createLucideIcon(copy);
|
|
127
|
-
var Download = createLucideIcon(download);
|
|
128
|
-
var Eye = createLucideIcon(eye);
|
|
129
|
-
var EyeOff = createLucideIcon(eyeOff);
|
|
130
|
-
var Ellipsis = createLucideIcon(ellipsis);
|
|
131
|
-
var FileJson = createLucideIcon(fileJson);
|
|
132
|
-
var FileText = createLucideIcon(fileText);
|
|
133
|
-
var GripVertical = createLucideIcon(gripVertical);
|
|
134
|
-
var Image = createLucideIcon(image);
|
|
135
|
-
var LayoutGrid = createLucideIcon(layoutGrid);
|
|
136
|
-
var LoaderCircle = createLucideIcon(loaderCircle);
|
|
137
|
-
var Mail = createLucideIcon(mail);
|
|
138
|
-
var Paperclip = createLucideIcon(paperclip);
|
|
139
|
-
var RefreshCw = createLucideIcon(refreshCw);
|
|
140
|
-
var RotateCcw = createLucideIcon(rotateCcw);
|
|
141
|
-
var Rows3 = createLucideIcon(rows3);
|
|
142
|
-
var Search = createLucideIcon(search);
|
|
143
|
-
var Settings2 = createLucideIcon(settings2);
|
|
144
|
-
var TriangleAlert = createLucideIcon(triangleAlert);
|
|
145
|
-
var X = createLucideIcon(x);
|
|
45
|
+
// ../../src/components/bulk-list-input/html.ts
|
|
46
|
+
import { Upload as UploadIcon } from "@krak-stack/registry/lucide-effect";
|
|
146
47
|
|
|
147
48
|
// ../../src/components/bulk-list-input/classes.ts
|
|
148
49
|
var bulkListInputClasses = {
|
|
@@ -226,7 +127,6 @@ var bulkListInputBehaviours = {
|
|
|
226
127
|
};
|
|
227
128
|
|
|
228
129
|
// ../../src/components/bulk-list-input/html.ts
|
|
229
|
-
var UploadIcon = createLucideIcon(Upload);
|
|
230
130
|
var BulkListInput = Html.component(bulkListInputOptions).make({
|
|
231
131
|
...bulkListInputBehaviours,
|
|
232
132
|
view: (h, reset) => {
|
|
@@ -2,107 +2,7 @@
|
|
|
2
2
|
import { Schema as Schema2 } from "effect";
|
|
3
3
|
import { Component, UiSchema } from "effect/ui";
|
|
4
4
|
import { Html } from "effect/ui/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 { createLucideIcon } from "@krak-stack/registry/lucide-effect";
|
|
106
6
|
|
|
107
7
|
// ../../src/lib/utils.ts
|
|
108
8
|
import { cn } from "cn";
|