@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
|
@@ -141,107 +141,12 @@ var SelectScrollDownArrow = (h, select, options = {}) => select.scrollDownArrow(
|
|
|
141
141
|
|
|
142
142
|
// ../../src/components/pagination/html.ts
|
|
143
143
|
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
144
|
-
|
|
145
|
-
// ../../src/lib/lucide-effect.ts
|
|
146
144
|
import {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
ChevronDown as chevronDown,
|
|
153
|
-
ChevronRight as chevronRight,
|
|
154
|
-
ChevronsLeft as chevronsLeft,
|
|
155
|
-
ChevronsRight as chevronsRight,
|
|
156
|
-
ChevronsUpDown as chevronsUpDown,
|
|
157
|
-
Copy as copy,
|
|
158
|
-
Download as download,
|
|
159
|
-
Eye as eye,
|
|
160
|
-
EyeOff as eyeOff,
|
|
161
|
-
Ellipsis as ellipsis,
|
|
162
|
-
FileJson as fileJson,
|
|
163
|
-
FileText as fileText,
|
|
164
|
-
GripVertical as gripVertical,
|
|
165
|
-
Image as image,
|
|
166
|
-
LayoutGrid as layoutGrid,
|
|
167
|
-
LoaderCircle as loaderCircle,
|
|
168
|
-
Mail as mail,
|
|
169
|
-
Paperclip as paperclip,
|
|
170
|
-
RefreshCw as refreshCw,
|
|
171
|
-
RotateCcw as rotateCcw,
|
|
172
|
-
Rows3 as rows3,
|
|
173
|
-
Search as search,
|
|
174
|
-
Settings2 as settings2,
|
|
175
|
-
TriangleAlert as triangleAlert,
|
|
176
|
-
X as x
|
|
177
|
-
} from "lucide";
|
|
178
|
-
var createLucideIcon = (icon) => (h, {
|
|
179
|
-
size = 24,
|
|
180
|
-
color = "currentColor",
|
|
181
|
-
strokeWidth = 2,
|
|
182
|
-
className
|
|
183
|
-
} = {}) => h.svg.attrs({
|
|
184
|
-
class: className,
|
|
185
|
-
width: String(size),
|
|
186
|
-
height: String(size),
|
|
187
|
-
viewBox: "0 0 24 24",
|
|
188
|
-
fill: "none",
|
|
189
|
-
stroke: color,
|
|
190
|
-
"stroke-width": String(strokeWidth),
|
|
191
|
-
"stroke-linecap": "round",
|
|
192
|
-
"stroke-linejoin": "round",
|
|
193
|
-
"aria-hidden": "true"
|
|
194
|
-
}).children(...icon.map(([tag, attributes]) => {
|
|
195
|
-
const attrs = Object.fromEntries(Object.entries(attributes).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]]));
|
|
196
|
-
switch (tag) {
|
|
197
|
-
case "path":
|
|
198
|
-
return h.path.attrs(attrs);
|
|
199
|
-
case "circle":
|
|
200
|
-
return h.circle.attrs(attrs);
|
|
201
|
-
case "ellipse":
|
|
202
|
-
return h.ellipse.attrs(attrs);
|
|
203
|
-
case "line":
|
|
204
|
-
return h.line.attrs(attrs);
|
|
205
|
-
case "polyline":
|
|
206
|
-
return h.polyline.attrs(attrs);
|
|
207
|
-
case "polygon":
|
|
208
|
-
return h.polygon.attrs(attrs);
|
|
209
|
-
case "rect":
|
|
210
|
-
return h.rect.attrs(attrs);
|
|
211
|
-
default:
|
|
212
|
-
throw new Error(`Unsupported Lucide SVG element: ${tag}`);
|
|
213
|
-
}
|
|
214
|
-
}));
|
|
215
|
-
var Check = createLucideIcon(check);
|
|
216
|
-
var ArrowDown = createLucideIcon(arrowDown);
|
|
217
|
-
var ArrowUp = createLucideIcon(arrowUp);
|
|
218
|
-
var ListFilter = createLucideIcon(listFilter);
|
|
219
|
-
var ChevronLeft = createLucideIcon(chevronLeft);
|
|
220
|
-
var ChevronDown = createLucideIcon(chevronDown);
|
|
221
|
-
var ChevronRight = createLucideIcon(chevronRight);
|
|
222
|
-
var ChevronsLeft = createLucideIcon(chevronsLeft);
|
|
223
|
-
var ChevronsRight = createLucideIcon(chevronsRight);
|
|
224
|
-
var ChevronsUpDown = createLucideIcon(chevronsUpDown);
|
|
225
|
-
var Copy = createLucideIcon(copy);
|
|
226
|
-
var Download = createLucideIcon(download);
|
|
227
|
-
var Eye = createLucideIcon(eye);
|
|
228
|
-
var EyeOff = createLucideIcon(eyeOff);
|
|
229
|
-
var Ellipsis = createLucideIcon(ellipsis);
|
|
230
|
-
var FileJson = createLucideIcon(fileJson);
|
|
231
|
-
var FileText = createLucideIcon(fileText);
|
|
232
|
-
var GripVertical = createLucideIcon(gripVertical);
|
|
233
|
-
var Image = createLucideIcon(image);
|
|
234
|
-
var LayoutGrid = createLucideIcon(layoutGrid);
|
|
235
|
-
var LoaderCircle = createLucideIcon(loaderCircle);
|
|
236
|
-
var Mail = createLucideIcon(mail);
|
|
237
|
-
var Paperclip = createLucideIcon(paperclip);
|
|
238
|
-
var RefreshCw = createLucideIcon(refreshCw);
|
|
239
|
-
var RotateCcw = createLucideIcon(rotateCcw);
|
|
240
|
-
var Rows3 = createLucideIcon(rows3);
|
|
241
|
-
var Search = createLucideIcon(search);
|
|
242
|
-
var Settings2 = createLucideIcon(settings2);
|
|
243
|
-
var TriangleAlert = createLucideIcon(triangleAlert);
|
|
244
|
-
var X = createLucideIcon(x);
|
|
145
|
+
ChevronLeft,
|
|
146
|
+
ChevronRight,
|
|
147
|
+
ChevronsLeft,
|
|
148
|
+
ChevronsRight
|
|
149
|
+
} from "@krak-stack/registry/lucide-effect";
|
|
245
150
|
|
|
246
151
|
// ../../src/components/pagination/classes.ts
|
|
247
152
|
var paginationClasses = {
|
|
@@ -616,6 +521,28 @@ var PaginationMeta = Schema3.Struct({
|
|
|
616
521
|
examples: [{ page: 0, pageSize: 20, total: 125, pageCount: 7 }]
|
|
617
522
|
}));
|
|
618
523
|
|
|
524
|
+
// ../../src/components/data-table/html.ts
|
|
525
|
+
import {
|
|
526
|
+
ArrowDown,
|
|
527
|
+
ArrowUp,
|
|
528
|
+
ChevronDown,
|
|
529
|
+
ChevronRight as ChevronRight2,
|
|
530
|
+
ChevronsUpDown,
|
|
531
|
+
Download,
|
|
532
|
+
Ellipsis,
|
|
533
|
+
EyeOff,
|
|
534
|
+
FileJson,
|
|
535
|
+
FileText,
|
|
536
|
+
GripVertical,
|
|
537
|
+
LayoutGrid,
|
|
538
|
+
ListFilter,
|
|
539
|
+
RefreshCw,
|
|
540
|
+
Rows3,
|
|
541
|
+
Search,
|
|
542
|
+
Settings2,
|
|
543
|
+
X
|
|
544
|
+
} from "@krak-stack/registry/lucide-effect";
|
|
545
|
+
|
|
619
546
|
// ../../src/components/data-table/index.ts
|
|
620
547
|
import { DateTime as DateTime3, Effect as Effect2, Option as Option3, Redacted, Schema as Schema5, Stream } from "effect";
|
|
621
548
|
import { Csv } from "effect/encoding";
|
|
@@ -2391,7 +2318,7 @@ var DataTable = Html2.component({
|
|
|
2391
2318
|
const definition = field.groups?.find(({ id }) => id === groupId);
|
|
2392
2319
|
const label = definition?.label ?? groupId;
|
|
2393
2320
|
const open = !model.collapsedGroups[key];
|
|
2394
|
-
const title = h.div.class(cn(tableClasses.groupContent, !gallery && tableClasses.groupSticky)).children(h.button.attr("type", "button").class(tableClasses.groupTrigger).style({ paddingInlineStart: `${depth * 20}px` }).on("click", DataTableMessage.GroupToggled({ key })).attr("aria-expanded", open ? "true" : "false").attr("aria-label", label).children((open ? ChevronDown :
|
|
2321
|
+
const title = h.div.class(cn(tableClasses.groupContent, !gallery && tableClasses.groupSticky)).children(h.button.attr("type", "button").class(tableClasses.groupTrigger).style({ paddingInlineStart: `${depth * 20}px` }).on("click", DataTableMessage.GroupToggled({ key })).attr("aria-expanded", open ? "true" : "false").attr("aria-label", label).children((open ? ChevronDown : ChevronRight2)(h, {
|
|
2395
2322
|
size: 16,
|
|
2396
2323
|
className: "shrink-0"
|
|
2397
2324
|
}), h.span.class("min-w-0 flex-1 truncate").children(label), h.span.class(tableClasses.count).children(String(children.length))), !!field.actions?.length && menu(keyOf("group", key), field.actionsLabel ?? copy.actions, `${field.actionsLabel ?? copy.actions}: ${label}`, field.actions.map((action) => ({
|