@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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// ../../src/components/theme-switcher/html.ts
|
|
2
2
|
import { Html } from "effect/ui/html";
|
|
3
3
|
import { Menu } from "effect/ui/kit";
|
|
4
|
-
import { Monitor, Moon, Sun } 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/theme-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 { Monitor, Moon, Sun } from "@krak-stack/registry/lucide-effect";
|
|
163
62
|
|
|
164
63
|
// ../../src/components/theme-switcher/index.ts
|
|
165
64
|
import { Schema as Schema2 } from "effect";
|
|
@@ -230,9 +129,9 @@ var themeSwitcherBehaviours = {
|
|
|
230
129
|
|
|
231
130
|
// ../../src/components/theme-switcher/html.ts
|
|
232
131
|
var icons = {
|
|
233
|
-
light:
|
|
234
|
-
dark:
|
|
235
|
-
system:
|
|
132
|
+
light: Sun,
|
|
133
|
+
dark: Moon,
|
|
134
|
+
system: Monitor
|
|
236
135
|
};
|
|
237
136
|
var ThemeSwitcher = Html.component({
|
|
238
137
|
...themeSwitcherOptions,
|
|
@@ -58,11 +58,11 @@ export declare const TimeInput: Component.Component<"TimeInput", {
|
|
|
58
58
|
}, {
|
|
59
59
|
readonly open: boolean;
|
|
60
60
|
}, {
|
|
61
|
+
readonly _tag: "Cleared";
|
|
62
|
+
} | {
|
|
61
63
|
readonly _tag: "Closed";
|
|
62
64
|
} | {
|
|
63
65
|
readonly _tag: "Opened";
|
|
64
|
-
} | {
|
|
65
|
-
readonly _tag: "Cleared";
|
|
66
66
|
} | {
|
|
67
67
|
readonly _tag: "Edited";
|
|
68
68
|
readonly value: string;
|
|
@@ -3,7 +3,6 @@ import { 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 { Popover } from "effect/ui/kit";
|
|
6
|
-
import { Clock } from "lucide";
|
|
7
6
|
|
|
8
7
|
// ../../src/components/effectcn/button.ts
|
|
9
8
|
import {
|
|
@@ -60,107 +59,7 @@ var PopoverTitle = (h, popover, options = {}) => popover.title(h.h2.class(cn("m-
|
|
|
60
59
|
|
|
61
60
|
// ../../src/components/time-input/html.ts
|
|
62
61
|
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
63
|
-
|
|
64
|
-
// ../../src/lib/lucide-effect.ts
|
|
65
|
-
import {
|
|
66
|
-
ArrowDown as arrowDown,
|
|
67
|
-
ArrowUp as arrowUp,
|
|
68
|
-
ListFilter as listFilter,
|
|
69
|
-
Check as check,
|
|
70
|
-
ChevronLeft as chevronLeft,
|
|
71
|
-
ChevronDown as chevronDown,
|
|
72
|
-
ChevronRight as chevronRight,
|
|
73
|
-
ChevronsLeft as chevronsLeft,
|
|
74
|
-
ChevronsRight as chevronsRight,
|
|
75
|
-
ChevronsUpDown as chevronsUpDown,
|
|
76
|
-
Copy as copy,
|
|
77
|
-
Download as download,
|
|
78
|
-
Eye as eye,
|
|
79
|
-
EyeOff as eyeOff,
|
|
80
|
-
Ellipsis as ellipsis,
|
|
81
|
-
FileJson as fileJson,
|
|
82
|
-
FileText as fileText,
|
|
83
|
-
GripVertical as gripVertical,
|
|
84
|
-
Image as image,
|
|
85
|
-
LayoutGrid as layoutGrid,
|
|
86
|
-
LoaderCircle as loaderCircle,
|
|
87
|
-
Mail as mail,
|
|
88
|
-
Paperclip as paperclip,
|
|
89
|
-
RefreshCw as refreshCw,
|
|
90
|
-
RotateCcw as rotateCcw,
|
|
91
|
-
Rows3 as rows3,
|
|
92
|
-
Search as search,
|
|
93
|
-
Settings2 as settings2,
|
|
94
|
-
TriangleAlert as triangleAlert,
|
|
95
|
-
X as x
|
|
96
|
-
} from "lucide";
|
|
97
|
-
var createLucideIcon = (icon) => (h, {
|
|
98
|
-
size = 24,
|
|
99
|
-
color = "currentColor",
|
|
100
|
-
strokeWidth = 2,
|
|
101
|
-
className
|
|
102
|
-
} = {}) => h.svg.attrs({
|
|
103
|
-
class: className,
|
|
104
|
-
width: String(size),
|
|
105
|
-
height: String(size),
|
|
106
|
-
viewBox: "0 0 24 24",
|
|
107
|
-
fill: "none",
|
|
108
|
-
stroke: color,
|
|
109
|
-
"stroke-width": String(strokeWidth),
|
|
110
|
-
"stroke-linecap": "round",
|
|
111
|
-
"stroke-linejoin": "round",
|
|
112
|
-
"aria-hidden": "true"
|
|
113
|
-
}).children(...icon.map(([tag, attributes]) => {
|
|
114
|
-
const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
|
|
115
|
-
switch (tag) {
|
|
116
|
-
case "path":
|
|
117
|
-
return h.path.attrs(attrs);
|
|
118
|
-
case "circle":
|
|
119
|
-
return h.circle.attrs(attrs);
|
|
120
|
-
case "ellipse":
|
|
121
|
-
return h.ellipse.attrs(attrs);
|
|
122
|
-
case "line":
|
|
123
|
-
return h.line.attrs(attrs);
|
|
124
|
-
case "polyline":
|
|
125
|
-
return h.polyline.attrs(attrs);
|
|
126
|
-
case "polygon":
|
|
127
|
-
return h.polygon.attrs(attrs);
|
|
128
|
-
case "rect":
|
|
129
|
-
return h.rect.attrs(attrs);
|
|
130
|
-
default:
|
|
131
|
-
throw new Error(`Unsupported Lucide SVG element: ${tag}`);
|
|
132
|
-
}
|
|
133
|
-
}));
|
|
134
|
-
var Check = createLucideIcon(check);
|
|
135
|
-
var ArrowDown = createLucideIcon(arrowDown);
|
|
136
|
-
var ArrowUp = createLucideIcon(arrowUp);
|
|
137
|
-
var ListFilter = createLucideIcon(listFilter);
|
|
138
|
-
var ChevronLeft = createLucideIcon(chevronLeft);
|
|
139
|
-
var ChevronDown = createLucideIcon(chevronDown);
|
|
140
|
-
var ChevronRight = createLucideIcon(chevronRight);
|
|
141
|
-
var ChevronsLeft = createLucideIcon(chevronsLeft);
|
|
142
|
-
var ChevronsRight = createLucideIcon(chevronsRight);
|
|
143
|
-
var ChevronsUpDown = createLucideIcon(chevronsUpDown);
|
|
144
|
-
var Copy = createLucideIcon(copy);
|
|
145
|
-
var Download = createLucideIcon(download);
|
|
146
|
-
var Eye = createLucideIcon(eye);
|
|
147
|
-
var EyeOff = createLucideIcon(eyeOff);
|
|
148
|
-
var Ellipsis = createLucideIcon(ellipsis);
|
|
149
|
-
var FileJson = createLucideIcon(fileJson);
|
|
150
|
-
var FileText = createLucideIcon(fileText);
|
|
151
|
-
var GripVertical = createLucideIcon(gripVertical);
|
|
152
|
-
var Image = createLucideIcon(image);
|
|
153
|
-
var LayoutGrid = createLucideIcon(layoutGrid);
|
|
154
|
-
var LoaderCircle = createLucideIcon(loaderCircle);
|
|
155
|
-
var Mail = createLucideIcon(mail);
|
|
156
|
-
var Paperclip = createLucideIcon(paperclip);
|
|
157
|
-
var RefreshCw = createLucideIcon(refreshCw);
|
|
158
|
-
var RotateCcw = createLucideIcon(rotateCcw);
|
|
159
|
-
var Rows3 = createLucideIcon(rows3);
|
|
160
|
-
var Search = createLucideIcon(search);
|
|
161
|
-
var Settings2 = createLucideIcon(settings2);
|
|
162
|
-
var TriangleAlert = createLucideIcon(triangleAlert);
|
|
163
|
-
var X = createLucideIcon(x);
|
|
62
|
+
import { Clock as ClockIcon, X } from "@krak-stack/registry/lucide-effect";
|
|
164
63
|
|
|
165
64
|
// ../../src/components/time-input/classes.ts
|
|
166
65
|
var timeInputClasses = {
|
|
@@ -461,7 +360,6 @@ var getTimeInputColumns = (p, status) => {
|
|
|
461
360
|
};
|
|
462
361
|
|
|
463
362
|
// ../../src/components/time-input/html.ts
|
|
464
|
-
var ClockIcon = createLucideIcon(Clock);
|
|
465
363
|
var actionButton = {
|
|
466
364
|
variant: "ghost",
|
|
467
365
|
size: "icon-sm",
|
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
ToastProvider as ToastRequests,
|
|
5
5
|
ToastProviderProps as KitToastProps
|
|
6
6
|
} from "effect/ui/kit";
|
|
7
|
-
import { CircleAlert, CircleCheck, Info, TriangleAlert as TriangleAlert2 } from "lucide";
|
|
8
7
|
|
|
9
8
|
// ../../src/lib/utils.ts
|
|
10
9
|
import { cn } from "cn";
|
|
@@ -50,106 +49,15 @@ var ToastClose = (h, provider, toast, options) => provider.close({
|
|
|
50
49
|
toast
|
|
51
50
|
});
|
|
52
51
|
|
|
53
|
-
// ../../src/
|
|
52
|
+
// ../../src/components/toast/html.ts
|
|
54
53
|
import {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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);
|
|
54
|
+
CircleAlert,
|
|
55
|
+
CircleCheck,
|
|
56
|
+
Info as InfoIcon,
|
|
57
|
+
LoaderCircle,
|
|
58
|
+
TriangleAlert,
|
|
59
|
+
X
|
|
60
|
+
} from "@krak-stack/registry/lucide-effect";
|
|
153
61
|
|
|
154
62
|
// ../../src/components/toast/classes.ts
|
|
155
63
|
var toastClasses = {
|
|
@@ -219,12 +127,11 @@ var ToastProviderPropsSchema = Schema2.Struct({
|
|
|
219
127
|
...ToastSharedPropsSchema.fields
|
|
220
128
|
}).annotate({ identifier: "ToastProviderHtmlProps" });
|
|
221
129
|
var icons = {
|
|
222
|
-
success:
|
|
223
|
-
error:
|
|
224
|
-
warning:
|
|
130
|
+
success: CircleCheck,
|
|
131
|
+
error: CircleAlert,
|
|
132
|
+
warning: TriangleAlert,
|
|
225
133
|
loading: LoaderCircle
|
|
226
134
|
};
|
|
227
|
-
var InfoIcon = createLucideIcon(Info);
|
|
228
135
|
var ToastProvider = (h, options) => {
|
|
229
136
|
const {
|
|
230
137
|
position = "bottom-right",
|
|
@@ -70,15 +70,15 @@ export declare const UploadAttachment: import("effect/ui/Component").Component<"
|
|
|
70
70
|
readonly canRetry?: boolean | undefined;
|
|
71
71
|
readonly canRemove?: boolean | undefined;
|
|
72
72
|
}, null, {
|
|
73
|
-
readonly _tag: "Retry";
|
|
74
|
-
} | {
|
|
75
73
|
readonly _tag: "Cancel";
|
|
76
74
|
} | {
|
|
77
75
|
readonly _tag: "Remove";
|
|
78
|
-
}, {
|
|
79
|
-
readonly _tag: "Retry";
|
|
80
76
|
} | {
|
|
77
|
+
readonly _tag: "Retry";
|
|
78
|
+
}, {
|
|
81
79
|
readonly _tag: "Cancel";
|
|
82
80
|
} | {
|
|
83
81
|
readonly _tag: "Remove";
|
|
82
|
+
} | {
|
|
83
|
+
readonly _tag: "Retry";
|
|
84
84
|
}, never, Html.Elements, {}, never>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// ../../src/components/upload-attachment/html.ts
|
|
2
2
|
import { Schema as Schema3 } from "effect";
|
|
3
3
|
import { Html } from "effect/ui/html";
|
|
4
|
-
import { File } from "lucide";
|
|
5
4
|
|
|
6
5
|
// ../../src/components/effectcn/button.ts
|
|
7
6
|
import {
|
|
@@ -38,107 +37,14 @@ var Button = (h, options = {}) => KitButton(h, {
|
|
|
38
37
|
|
|
39
38
|
// ../../src/components/upload-attachment/html.ts
|
|
40
39
|
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
41
|
-
|
|
42
|
-
// ../../src/lib/lucide-effect.ts
|
|
43
40
|
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
ChevronsLeft as chevronsLeft,
|
|
52
|
-
ChevronsRight as chevronsRight,
|
|
53
|
-
ChevronsUpDown as chevronsUpDown,
|
|
54
|
-
Copy as copy,
|
|
55
|
-
Download as download,
|
|
56
|
-
Eye as eye,
|
|
57
|
-
EyeOff as eyeOff,
|
|
58
|
-
Ellipsis as ellipsis,
|
|
59
|
-
FileJson as fileJson,
|
|
60
|
-
FileText as fileText,
|
|
61
|
-
GripVertical as gripVertical,
|
|
62
|
-
Image as image,
|
|
63
|
-
LayoutGrid as layoutGrid,
|
|
64
|
-
LoaderCircle as loaderCircle,
|
|
65
|
-
Mail as mail,
|
|
66
|
-
Paperclip as paperclip,
|
|
67
|
-
RefreshCw as refreshCw,
|
|
68
|
-
RotateCcw as rotateCcw,
|
|
69
|
-
Rows3 as rows3,
|
|
70
|
-
Search as search,
|
|
71
|
-
Settings2 as settings2,
|
|
72
|
-
TriangleAlert as triangleAlert,
|
|
73
|
-
X as x
|
|
74
|
-
} from "lucide";
|
|
75
|
-
var createLucideIcon = (icon) => (h, {
|
|
76
|
-
size = 24,
|
|
77
|
-
color = "currentColor",
|
|
78
|
-
strokeWidth = 2,
|
|
79
|
-
className
|
|
80
|
-
} = {}) => h.svg.attrs({
|
|
81
|
-
class: className,
|
|
82
|
-
width: String(size),
|
|
83
|
-
height: String(size),
|
|
84
|
-
viewBox: "0 0 24 24",
|
|
85
|
-
fill: "none",
|
|
86
|
-
stroke: color,
|
|
87
|
-
"stroke-width": String(strokeWidth),
|
|
88
|
-
"stroke-linecap": "round",
|
|
89
|
-
"stroke-linejoin": "round",
|
|
90
|
-
"aria-hidden": "true"
|
|
91
|
-
}).children(...icon.map(([tag, attributes]) => {
|
|
92
|
-
const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
|
|
93
|
-
switch (tag) {
|
|
94
|
-
case "path":
|
|
95
|
-
return h.path.attrs(attrs);
|
|
96
|
-
case "circle":
|
|
97
|
-
return h.circle.attrs(attrs);
|
|
98
|
-
case "ellipse":
|
|
99
|
-
return h.ellipse.attrs(attrs);
|
|
100
|
-
case "line":
|
|
101
|
-
return h.line.attrs(attrs);
|
|
102
|
-
case "polyline":
|
|
103
|
-
return h.polyline.attrs(attrs);
|
|
104
|
-
case "polygon":
|
|
105
|
-
return h.polygon.attrs(attrs);
|
|
106
|
-
case "rect":
|
|
107
|
-
return h.rect.attrs(attrs);
|
|
108
|
-
default:
|
|
109
|
-
throw new Error(`Unsupported Lucide SVG element: ${tag}`);
|
|
110
|
-
}
|
|
111
|
-
}));
|
|
112
|
-
var Check = createLucideIcon(check);
|
|
113
|
-
var ArrowDown = createLucideIcon(arrowDown);
|
|
114
|
-
var ArrowUp = createLucideIcon(arrowUp);
|
|
115
|
-
var ListFilter = createLucideIcon(listFilter);
|
|
116
|
-
var ChevronLeft = createLucideIcon(chevronLeft);
|
|
117
|
-
var ChevronDown = createLucideIcon(chevronDown);
|
|
118
|
-
var ChevronRight = createLucideIcon(chevronRight);
|
|
119
|
-
var ChevronsLeft = createLucideIcon(chevronsLeft);
|
|
120
|
-
var ChevronsRight = createLucideIcon(chevronsRight);
|
|
121
|
-
var ChevronsUpDown = createLucideIcon(chevronsUpDown);
|
|
122
|
-
var Copy = createLucideIcon(copy);
|
|
123
|
-
var Download = createLucideIcon(download);
|
|
124
|
-
var Eye = createLucideIcon(eye);
|
|
125
|
-
var EyeOff = createLucideIcon(eyeOff);
|
|
126
|
-
var Ellipsis = createLucideIcon(ellipsis);
|
|
127
|
-
var FileJson = createLucideIcon(fileJson);
|
|
128
|
-
var FileText = createLucideIcon(fileText);
|
|
129
|
-
var GripVertical = createLucideIcon(gripVertical);
|
|
130
|
-
var Image = createLucideIcon(image);
|
|
131
|
-
var LayoutGrid = createLucideIcon(layoutGrid);
|
|
132
|
-
var LoaderCircle = createLucideIcon(loaderCircle);
|
|
133
|
-
var Mail = createLucideIcon(mail);
|
|
134
|
-
var Paperclip = createLucideIcon(paperclip);
|
|
135
|
-
var RefreshCw = createLucideIcon(refreshCw);
|
|
136
|
-
var RotateCcw = createLucideIcon(rotateCcw);
|
|
137
|
-
var Rows3 = createLucideIcon(rows3);
|
|
138
|
-
var Search = createLucideIcon(search);
|
|
139
|
-
var Settings2 = createLucideIcon(settings2);
|
|
140
|
-
var TriangleAlert = createLucideIcon(triangleAlert);
|
|
141
|
-
var X = createLucideIcon(x);
|
|
41
|
+
Check,
|
|
42
|
+
File as FileIcon,
|
|
43
|
+
LoaderCircle,
|
|
44
|
+
RotateCcw,
|
|
45
|
+
TriangleAlert,
|
|
46
|
+
X
|
|
47
|
+
} from "@krak-stack/registry/lucide-effect";
|
|
142
48
|
|
|
143
49
|
// ../../src/components/upload-attachment/classes.ts
|
|
144
50
|
var uploadAttachmentClasses = {
|
|
@@ -263,7 +169,6 @@ var uploadAttachmentBehaviours = {
|
|
|
263
169
|
};
|
|
264
170
|
|
|
265
171
|
// ../../src/components/upload-attachment/html.ts
|
|
266
|
-
var FileIcon = createLucideIcon(File);
|
|
267
172
|
var props = Schema3.Struct({
|
|
268
173
|
...uploadAttachmentOptions.props.fields,
|
|
269
174
|
canCancel: Schema3.optional(Schema3.Boolean),
|