@krak-stack/registry 0.11.4 → 0.11.6
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 +23 -1
- package/README.md +23 -9
- package/dist/components/agent/react.js +226 -1072
- package/dist/components/app-switcher/html.js +10 -53
- package/dist/components/app-switcher/react.js +29 -139
- package/dist/components/async-action-button/html.js +3 -34
- package/dist/components/async-action-button/react.d.ts +1 -1
- package/dist/components/async-action-button/react.js +8 -54
- package/dist/components/audit-log-table/react.js +706 -1279
- package/dist/components/bulk-list-input/html.js +3 -40
- package/dist/components/bulk-list-input/react.d.ts +1 -1
- package/dist/components/bulk-list-input/react.js +6 -59
- package/dist/components/code-block/html.js +1 -35
- package/dist/components/code-block/react.js +12 -59
- package/dist/components/color-input/html.js +2 -19
- package/dist/components/color-input/react.js +6 -97
- package/dist/components/copy-button/html.js +1 -35
- package/dist/components/copy-button/react.d.ts +1 -1
- package/dist/components/copy-button/react.js +7 -54
- package/dist/components/copy-value/html.js +11 -52
- package/dist/components/copy-value/react.js +25 -165
- package/dist/components/cron-input/html.js +2 -18
- package/dist/components/cron-input/react.js +15 -30
- package/dist/components/danger-confirmation/html.js +11 -57
- package/dist/components/danger-confirmation/react.js +26 -187
- package/dist/components/data-table/classes.d.ts +9 -3
- package/dist/components/data-table/html.d.ts +93 -21
- package/dist/components/data-table/html.js +309 -196
- package/dist/components/data-table/index.d.ts +97 -9
- package/dist/components/data-table/react.d.ts +14 -3
- package/dist/components/data-table/react.js +700 -1273
- package/dist/components/data-table/schema.d.ts +175 -16
- package/dist/components/date-input/html.js +19 -74
- package/dist/components/date-input/react.d.ts +1 -1
- package/dist/components/date-input/react.js +28 -313
- package/dist/components/docs/classes.d.ts +15 -0
- package/dist/components/docs/html.d.ts +55 -0
- package/dist/components/docs/html.js +837 -0
- package/dist/components/docs/index.d.ts +49 -0
- package/dist/components/docs/react.d.ts +10 -0
- package/dist/components/docs/react.js +949 -0
- package/dist/components/docs/schema.d.ts +49 -0
- package/dist/components/editable-text/html.js +6 -52
- package/dist/components/editable-text/react.js +13 -83
- package/dist/components/editing-locale-switcher/html.d.ts +2 -2
- package/dist/components/editing-locale-switcher/html.js +13 -43
- package/dist/components/editing-locale-switcher/react.js +17 -141
- package/dist/components/effect-form/react.js +249 -812
- package/dist/components/email-composer/react.js +62 -279
- package/dist/components/email-editor/html.js +13 -58
- package/dist/components/email-editor/react.js +187 -483
- package/dist/components/error-component/html.js +2 -47
- package/dist/components/error-component/react.js +33 -137
- package/dist/components/file-input/html.js +9 -40
- package/dist/components/file-input/react.js +39 -208
- package/dist/components/form/react.js +212 -777
- package/dist/components/icon-input/html.js +9 -56
- package/dist/components/icon-input/react.js +43 -143
- package/dist/components/image-crop-editor/html.js +1 -35
- package/dist/components/image-crop-editor/react.js +21 -66
- package/dist/components/locale-switcher/html.js +8 -55
- package/dist/components/locale-switcher/react.js +21 -146
- package/dist/components/map-menu/html.d.ts +8 -8
- package/dist/components/map-menu/html.js +13 -72
- package/dist/components/map-menu/react.js +92 -309
- package/dist/components/markdown/html.js +1 -35
- package/dist/components/markdown/react.js +20 -64
- package/dist/components/notification-menu/html.js +14 -50
- package/dist/components/notification-menu/react.js +73 -343
- package/dist/components/pagination/html.js +17 -73
- package/dist/components/pagination/react.js +37 -200
- package/dist/components/phone-number-input/html.js +19 -57
- package/dist/components/phone-number-input/react.d.ts +1 -1
- package/dist/components/phone-number-input/react.js +43 -142
- package/dist/components/presence-transition/index.d.ts +2 -2
- package/dist/components/registry-previews/component-example.js +26 -126
- package/dist/components/rich-text-editor/html.d.ts +12 -12
- package/dist/components/rich-text-editor/html.js +12 -85
- package/dist/components/rich-text-editor/react.js +55 -272
- package/dist/components/search-menu/classes.d.ts +2 -0
- package/dist/components/search-menu/html.d.ts +2 -0
- package/dist/components/search-menu/html.js +40 -73
- package/dist/components/search-menu/index.d.ts +27 -2
- package/dist/components/search-menu/react.d.ts +1 -1
- package/dist/components/search-menu/react.js +59 -280
- package/dist/components/search-menu/schema.d.ts +1 -0
- package/dist/components/select-with-custom-input/html.d.ts +2 -2
- package/dist/components/select-with-custom-input/html.js +13 -48
- package/dist/components/select-with-custom-input/react.js +22 -146
- package/dist/components/sidebar-layout/html.d.ts +16 -6
- package/dist/components/sidebar-layout/html.js +83 -69
- package/dist/components/sidebar-layout/index.d.ts +16 -0
- package/dist/components/sidebar-layout/react.js +105 -698
- package/dist/components/stats-card/react.js +13 -58
- package/dist/components/support/html.js +14 -69
- package/dist/components/support/react.js +74 -320
- package/dist/components/theme-switcher/html.js +11 -55
- package/dist/components/theme-switcher/react.js +28 -152
- package/dist/components/time-input/html.d.ts +2 -2
- package/dist/components/time-input/html.js +8 -53
- package/dist/components/time-input/react.js +34 -188
- package/dist/components/timezone-input/html.js +11 -67
- package/dist/components/timezone-input/react.js +41 -143
- package/dist/components/toast/html.d.ts +6 -6
- package/dist/components/toast/html.js +13 -46
- package/dist/components/tracking-notice/react.js +39 -188
- package/dist/components/unsaved-changes-guard/html.js +9 -43
- package/dist/components/unsaved-changes-guard/react.js +19 -169
- package/dist/components/upload-attachment/html.d.ts +4 -4
- package/dist/components/upload-attachment/html.js +4 -35
- package/dist/components/upload-attachment/react.js +25 -164
- package/dist/components/virtualized-combobox/html.js +10 -35
- package/dist/components/virtualized-combobox/react.js +28 -129
- package/dist/components/webhook-delivery-table/html.js +320 -206
- package/dist/components/webhook-delivery-table/react.js +736 -1376
- package/dist/lib/docs.integrations.server.js +150 -202
- package/dist/lib/docs.js +305 -1085
- package/dist/lib/docs.server.js +134 -186
- package/dist/lib/documentation-toolkit.js +144 -196
- package/dist/services/agent/client/index.js +226 -1072
- package/dist/services/notification/client/index.js +73 -343
- package/dist/services/notification/public.js +73 -343
- package/package.json +5 -13
- package/dist/components/effectcn/alert-dialog.d.ts +0 -13
- package/dist/components/effectcn/button.d.ts +0 -31
- package/dist/components/effectcn/calendar.d.ts +0 -12
- package/dist/components/effectcn/checkbox.d.ts +0 -10
- package/dist/components/effectcn/combobox.d.ts +0 -25
- package/dist/components/effectcn/dialog.d.ts +0 -19
- package/dist/components/effectcn/field.d.ts +0 -11
- package/dist/components/effectcn/file-drop.d.ts +0 -8
- package/dist/components/effectcn/input.d.ts +0 -26
- package/dist/components/effectcn/menu.d.ts +0 -85
- package/dist/components/effectcn/menubar.d.ts +0 -8
- package/dist/components/effectcn/popover.d.ts +0 -18
- package/dist/components/effectcn/scroll-area.d.ts +0 -12
- package/dist/components/effectcn/select.d.ts +0 -68
- package/dist/components/effectcn/toast.d.ts +0 -29
- package/dist/components/ui/alert-dialog.d.ts +0 -18
- package/dist/components/ui/alert.d.ts +0 -10
- package/dist/components/ui/attachment.d.ts +0 -23
- package/dist/components/ui/badge.d.ts +0 -7
- package/dist/components/ui/bubble.d.ts +0 -16
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/card.d.ts +0 -11
- package/dist/components/ui/checkbox.d.ts +0 -3
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/command.d.ts +0 -18
- package/dist/components/ui/dialog.d.ts +0 -17
- package/dist/components/ui/dropdown-menu.d.ts +0 -29
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/field.d.ts +0 -24
- package/dist/components/ui/input-group.d.ts +0 -17
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/item.d.ts +0 -22
- package/dist/components/ui/label.d.ts +0 -3
- package/dist/components/ui/menubar.d.ts +0 -29
- package/dist/components/ui/message-scroller.d.ts +0 -10
- package/dist/components/ui/message.d.ts +0 -10
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/scroll-area.d.ts +0 -4
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -159
- package/dist/components/ui/separator.d.ts +0 -3
- package/dist/components/ui/sheet.d.ts +0 -14
- package/dist/components/ui/sidebar.d.ts +0 -63
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/table.d.ts +0 -10
- package/dist/components/ui/tabs.d.ts +0 -10
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/tooltip.d.ts +0 -6
- package/dist/components/ui/trace.d.ts +0 -18
- package/dist/lib/effectcn-form.d.ts +0 -3
- package/dist/lib/effectcn-form.js +0 -54
|
@@ -115,6 +115,21 @@ export declare const DataTableRowSchema: Schema.Struct<{
|
|
|
115
115
|
readonly selectable: Schema.optionalKey<Schema.Boolean>;
|
|
116
116
|
readonly disabledColumnIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
117
117
|
}>;
|
|
118
|
+
declare const DataTableBadgeOptionSchema: Schema.Struct<{
|
|
119
|
+
readonly value: Schema.NonEmptyString;
|
|
120
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
121
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
122
|
+
}>;
|
|
123
|
+
export type DataTableBadgeOption = typeof DataTableBadgeOptionSchema.Type;
|
|
124
|
+
declare const DataTableBadgeOptionsSchema: Schema.Struct<{
|
|
125
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
126
|
+
readonly value: Schema.NonEmptyString;
|
|
127
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
128
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
129
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
130
|
+
}>>>;
|
|
131
|
+
}>;
|
|
132
|
+
export type DataTableBadgeOptions = typeof DataTableBadgeOptionsSchema.Type;
|
|
118
133
|
export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct<{
|
|
119
134
|
readonly id: Schema.NonEmptyString;
|
|
120
135
|
readonly headerName: Schema.String;
|
|
@@ -131,6 +146,15 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
131
146
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
132
147
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
133
148
|
readonly type: Schema.Literal<"text">;
|
|
149
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
150
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
151
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
152
|
+
readonly value: Schema.NonEmptyString;
|
|
153
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
154
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
155
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
156
|
+
}>>>;
|
|
157
|
+
}>>;
|
|
134
158
|
readonly fields: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
135
159
|
readonly id: Schema.NonEmptyString;
|
|
136
160
|
readonly headerName: Schema.String;
|
|
@@ -147,6 +171,15 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
147
171
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
148
172
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
149
173
|
readonly type: Schema.Literal<"text">;
|
|
174
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
175
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
176
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
177
|
+
readonly value: Schema.NonEmptyString;
|
|
178
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
179
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
180
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
181
|
+
}>>>;
|
|
182
|
+
}>>;
|
|
150
183
|
}>, Schema.Struct<{
|
|
151
184
|
readonly id: Schema.NonEmptyString;
|
|
152
185
|
readonly headerName: Schema.String;
|
|
@@ -288,7 +321,7 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
288
321
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
289
322
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
290
323
|
}>>>;
|
|
291
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
324
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
292
325
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
293
326
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
294
327
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -335,6 +368,15 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
335
368
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
336
369
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
337
370
|
readonly type: Schema.Literal<"text">;
|
|
371
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
372
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
373
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
374
|
+
readonly value: Schema.NonEmptyString;
|
|
375
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
376
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
377
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
378
|
+
}>>>;
|
|
379
|
+
}>>;
|
|
338
380
|
}>, Schema.Struct<{
|
|
339
381
|
readonly id: Schema.NonEmptyString;
|
|
340
382
|
readonly headerName: Schema.String;
|
|
@@ -476,7 +518,7 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
476
518
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
477
519
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
478
520
|
}>>>;
|
|
479
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
521
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
480
522
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
481
523
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
482
524
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -513,6 +555,15 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
513
555
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
514
556
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
515
557
|
readonly type: Schema.Literal<"text">;
|
|
558
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
559
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
560
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
561
|
+
readonly value: Schema.NonEmptyString;
|
|
562
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
563
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
564
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
565
|
+
}>>>;
|
|
566
|
+
}>>;
|
|
516
567
|
}>, Schema.Struct<{
|
|
517
568
|
readonly id: Schema.NonEmptyString;
|
|
518
569
|
readonly headerName: Schema.String;
|
|
@@ -654,7 +705,7 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
654
705
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
655
706
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
656
707
|
}>>>;
|
|
657
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
708
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
658
709
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
659
710
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
660
711
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -697,6 +748,15 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
697
748
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
698
749
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
699
750
|
readonly type: Schema.Literal<"text">;
|
|
751
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
752
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
753
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
754
|
+
readonly value: Schema.NonEmptyString;
|
|
755
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
756
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
757
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
758
|
+
}>>>;
|
|
759
|
+
}>>;
|
|
700
760
|
}>, Schema.Struct<{
|
|
701
761
|
readonly id: Schema.NonEmptyString;
|
|
702
762
|
readonly headerName: Schema.String;
|
|
@@ -838,7 +898,7 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
838
898
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
839
899
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
840
900
|
}>>>;
|
|
841
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
901
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
842
902
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
843
903
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
844
904
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -883,6 +943,15 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
883
943
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
884
944
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
885
945
|
readonly type: Schema.Literal<"text">;
|
|
946
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
947
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
948
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
949
|
+
readonly value: Schema.NonEmptyString;
|
|
950
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
951
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
952
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
953
|
+
}>>>;
|
|
954
|
+
}>>;
|
|
886
955
|
}>, Schema.Struct<{
|
|
887
956
|
readonly id: Schema.NonEmptyString;
|
|
888
957
|
readonly headerName: Schema.String;
|
|
@@ -1024,7 +1093,7 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
1024
1093
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
1025
1094
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
1026
1095
|
}>>>;
|
|
1027
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
1096
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
1028
1097
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
1029
1098
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
1030
1099
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -1067,6 +1136,15 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
1067
1136
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
1068
1137
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
1069
1138
|
readonly type: Schema.Literal<"text">;
|
|
1139
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
1140
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
1141
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1142
|
+
readonly value: Schema.NonEmptyString;
|
|
1143
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
1144
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
1145
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
1146
|
+
}>>>;
|
|
1147
|
+
}>>;
|
|
1070
1148
|
}>, Schema.Struct<{
|
|
1071
1149
|
readonly id: Schema.NonEmptyString;
|
|
1072
1150
|
readonly headerName: Schema.String;
|
|
@@ -1208,7 +1286,7 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
1208
1286
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
1209
1287
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
1210
1288
|
}>>>;
|
|
1211
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
1289
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
1212
1290
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
1213
1291
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
1214
1292
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -1244,7 +1322,7 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
1244
1322
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
1245
1323
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
1246
1324
|
}>>>;
|
|
1247
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
1325
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
1248
1326
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
1249
1327
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
1250
1328
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -1264,6 +1342,15 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
1264
1342
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
1265
1343
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
1266
1344
|
readonly type: Schema.Literal<"text">;
|
|
1345
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
1346
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
1347
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1348
|
+
readonly value: Schema.NonEmptyString;
|
|
1349
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
1350
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
1351
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
1352
|
+
}>>>;
|
|
1353
|
+
}>>;
|
|
1267
1354
|
}>, Schema.Struct<{
|
|
1268
1355
|
readonly id: Schema.NonEmptyString;
|
|
1269
1356
|
readonly headerName: Schema.String;
|
|
@@ -1405,7 +1492,7 @@ export declare const DataTableColumnSchema: Schema.Union<readonly [Schema.Struct
|
|
|
1405
1492
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
1406
1493
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
1407
1494
|
}>>>;
|
|
1408
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
1495
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
1409
1496
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
1410
1497
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
1411
1498
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -1509,6 +1596,15 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
1509
1596
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
1510
1597
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
1511
1598
|
readonly type: Schema.Literal<"text">;
|
|
1599
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
1600
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
1601
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1602
|
+
readonly value: Schema.NonEmptyString;
|
|
1603
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
1604
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
1605
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
1606
|
+
}>>>;
|
|
1607
|
+
}>>;
|
|
1512
1608
|
readonly fields: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1513
1609
|
readonly id: Schema.NonEmptyString;
|
|
1514
1610
|
readonly headerName: Schema.String;
|
|
@@ -1525,6 +1621,15 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
1525
1621
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
1526
1622
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
1527
1623
|
readonly type: Schema.Literal<"text">;
|
|
1624
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
1625
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
1626
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1627
|
+
readonly value: Schema.NonEmptyString;
|
|
1628
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
1629
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
1630
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
1631
|
+
}>>>;
|
|
1632
|
+
}>>;
|
|
1528
1633
|
}>, Schema.Struct<{
|
|
1529
1634
|
readonly id: Schema.NonEmptyString;
|
|
1530
1635
|
readonly headerName: Schema.String;
|
|
@@ -1666,7 +1771,7 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
1666
1771
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
1667
1772
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
1668
1773
|
}>>>;
|
|
1669
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
1774
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
1670
1775
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
1671
1776
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
1672
1777
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -1713,6 +1818,15 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
1713
1818
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
1714
1819
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
1715
1820
|
readonly type: Schema.Literal<"text">;
|
|
1821
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
1822
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
1823
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1824
|
+
readonly value: Schema.NonEmptyString;
|
|
1825
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
1826
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
1827
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
1828
|
+
}>>>;
|
|
1829
|
+
}>>;
|
|
1716
1830
|
}>, Schema.Struct<{
|
|
1717
1831
|
readonly id: Schema.NonEmptyString;
|
|
1718
1832
|
readonly headerName: Schema.String;
|
|
@@ -1854,7 +1968,7 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
1854
1968
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
1855
1969
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
1856
1970
|
}>>>;
|
|
1857
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
1971
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
1858
1972
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
1859
1973
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
1860
1974
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -1891,6 +2005,15 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
1891
2005
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
1892
2006
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
1893
2007
|
readonly type: Schema.Literal<"text">;
|
|
2008
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
2009
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
2010
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2011
|
+
readonly value: Schema.NonEmptyString;
|
|
2012
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
2013
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
2014
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
2015
|
+
}>>>;
|
|
2016
|
+
}>>;
|
|
1894
2017
|
}>, Schema.Struct<{
|
|
1895
2018
|
readonly id: Schema.NonEmptyString;
|
|
1896
2019
|
readonly headerName: Schema.String;
|
|
@@ -2032,7 +2155,7 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2032
2155
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
2033
2156
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
2034
2157
|
}>>>;
|
|
2035
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
2158
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
2036
2159
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
2037
2160
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
2038
2161
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -2075,6 +2198,15 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2075
2198
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
2076
2199
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
2077
2200
|
readonly type: Schema.Literal<"text">;
|
|
2201
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
2202
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
2203
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2204
|
+
readonly value: Schema.NonEmptyString;
|
|
2205
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
2206
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
2207
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
2208
|
+
}>>>;
|
|
2209
|
+
}>>;
|
|
2078
2210
|
}>, Schema.Struct<{
|
|
2079
2211
|
readonly id: Schema.NonEmptyString;
|
|
2080
2212
|
readonly headerName: Schema.String;
|
|
@@ -2216,7 +2348,7 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2216
2348
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
2217
2349
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
2218
2350
|
}>>>;
|
|
2219
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
2351
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
2220
2352
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
2221
2353
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
2222
2354
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -2261,6 +2393,15 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2261
2393
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
2262
2394
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
2263
2395
|
readonly type: Schema.Literal<"text">;
|
|
2396
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
2397
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
2398
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2399
|
+
readonly value: Schema.NonEmptyString;
|
|
2400
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
2401
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
2402
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
2403
|
+
}>>>;
|
|
2404
|
+
}>>;
|
|
2264
2405
|
}>, Schema.Struct<{
|
|
2265
2406
|
readonly id: Schema.NonEmptyString;
|
|
2266
2407
|
readonly headerName: Schema.String;
|
|
@@ -2402,7 +2543,7 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2402
2543
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
2403
2544
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
2404
2545
|
}>>>;
|
|
2405
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
2546
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
2406
2547
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
2407
2548
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
2408
2549
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -2445,6 +2586,15 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2445
2586
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
2446
2587
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
2447
2588
|
readonly type: Schema.Literal<"text">;
|
|
2589
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
2590
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
2591
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2592
|
+
readonly value: Schema.NonEmptyString;
|
|
2593
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
2594
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
2595
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
2596
|
+
}>>>;
|
|
2597
|
+
}>>;
|
|
2448
2598
|
}>, Schema.Struct<{
|
|
2449
2599
|
readonly id: Schema.NonEmptyString;
|
|
2450
2600
|
readonly headerName: Schema.String;
|
|
@@ -2586,7 +2736,7 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2586
2736
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
2587
2737
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
2588
2738
|
}>>>;
|
|
2589
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
2739
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
2590
2740
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
2591
2741
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
2592
2742
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -2622,7 +2772,7 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2622
2772
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
2623
2773
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
2624
2774
|
}>>>;
|
|
2625
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
2775
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
2626
2776
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
2627
2777
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
2628
2778
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -2642,6 +2792,15 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2642
2792
|
readonly emptyLabel: Schema.optionalKey<Schema.String>;
|
|
2643
2793
|
readonly nulls: Schema.optionalKey<Schema.Literals<readonly ["first", "last"]>>;
|
|
2644
2794
|
readonly type: Schema.Literal<"text">;
|
|
2795
|
+
readonly display: Schema.optionalKey<Schema.Literal<"badge">>;
|
|
2796
|
+
readonly typeOptions: Schema.optionalKey<Schema.Struct<{
|
|
2797
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2798
|
+
readonly value: Schema.NonEmptyString;
|
|
2799
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
2800
|
+
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "secondary", "outline", "destructive", "success", "info", "muted"]>>;
|
|
2801
|
+
readonly icon: Schema.optionalKey<Schema.declare<<Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">, <Msg>(h: import("effect/ui/html/Html").H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => import("effect/ui/html/Html").SvgElement<Msg, never, SVGSVGElement, "svg">>>;
|
|
2802
|
+
}>>>;
|
|
2803
|
+
}>>;
|
|
2645
2804
|
}>, Schema.Struct<{
|
|
2646
2805
|
readonly id: Schema.NonEmptyString;
|
|
2647
2806
|
readonly headerName: Schema.String;
|
|
@@ -2783,7 +2942,7 @@ export declare const DataTablePropsSchema: Schema.Struct<{
|
|
|
2783
2942
|
readonly variant: Schema.optionalKey<Schema.Literals<readonly ["default", "destructive"]>>;
|
|
2784
2943
|
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
2785
2944
|
}>>>;
|
|
2786
|
-
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon"]>>;
|
|
2945
|
+
readonly display: Schema.optionalKey<Schema.Literals<readonly ["list", "icon", "badge"]>>;
|
|
2787
2946
|
readonly visibleCount: Schema.optionalKey<Schema.Int>;
|
|
2788
2947
|
readonly actionsLabel: Schema.optionalKey<Schema.String>;
|
|
2789
2948
|
readonly manageLabel: Schema.optionalKey<Schema.String>;
|
|
@@ -1,81 +1,26 @@
|
|
|
1
1
|
// ../../src/components/date-input/html.ts
|
|
2
|
-
import { DateTime as
|
|
2
|
+
import { DateTime as DateTime2, 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 { Calendar, Popover } from "effect/ui/kit";
|
|
6
|
-
|
|
7
|
-
// ../../src/components/effectcn/button.ts
|
|
6
|
+
import { Button, buttonVariants } from "@/components/effectcn/button";
|
|
8
7
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
// ../../src/components/effectcn/button.ts
|
|
16
|
-
var base = "inline-flex h-8.5 shrink-0 items-center justify-center gap-1.5 rounded-md border border-transparent px-3.5 text-[13px] leading-none font-medium whitespace-nowrap no-underline select-none transition-[background-color,border-color,color,opacity] duration-150 active:translate-y-px data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:size-[15px] [&_svg]:shrink-0 data-[loading]:before:size-3 data-[loading]:before:animate-spin data-[loading]:before:rounded-full data-[loading]:before:border-2 data-[loading]:before:border-current data-[loading]:before:border-r-transparent";
|
|
17
|
-
var variants = {
|
|
18
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/85",
|
|
19
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
|
|
20
|
-
outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
21
|
-
ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
22
|
-
brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
|
|
23
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
|
|
24
|
-
link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
|
|
25
|
-
};
|
|
26
|
-
var sizes = {
|
|
27
|
-
default: "",
|
|
28
|
-
sm: "h-7 rounded-sm px-2.5 text-xs",
|
|
29
|
-
lg: "h-10 px-5 text-sm",
|
|
30
|
-
icon: "w-8.5 px-0",
|
|
31
|
-
"icon-sm": "h-7 w-7 rounded-sm px-0"
|
|
32
|
-
};
|
|
33
|
-
var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
|
|
34
|
-
var Button = (h, options = {}) => KitButton(h, {
|
|
35
|
-
element: options.element,
|
|
36
|
-
onPress: options.onPress,
|
|
37
|
-
props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
|
|
38
|
-
}).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
|
|
39
|
-
|
|
40
|
-
// ../../src/components/effectcn/calendar.ts
|
|
41
|
-
import { DateTime } from "effect";
|
|
42
|
-
import { ChevronLeft, ChevronRight } from "@krak-stack/registry/lucide-effect";
|
|
43
|
-
var navClass = "inline-grid size-7 shrink-0 place-items-center rounded-sm border border-input bg-background " + "text-foreground transition-colors duration-150 hover:bg-accent data-[disabled]:cursor-not-allowed " + "data-[disabled]:opacity-40 data-[disabled]:hover:bg-background [&_svg]:size-3.5 rtl:[&_svg]:rotate-180";
|
|
44
|
-
var dayClass = "inline-grid size-8 place-items-center rounded-sm p-0 text-[13px] text-foreground tabular-nums " + "transition-colors duration-150 hover:bg-accent focus-visible:relative focus-visible:outline-offset-1 " + "not-data-[selected]:data-[today]:bg-accent data-[today]:font-semibold " + "not-data-[selected]:data-[outside-month]:text-muted-foreground not-data-[selected]:data-[outside-month]:opacity-55 " + "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary " + "data-[unavailable]:cursor-not-allowed data-[unavailable]:text-muted-foreground data-[unavailable]:line-through " + "data-[unavailable]:hover:bg-transparent " + "data-[disabled]:cursor-not-allowed data-[disabled]:text-muted-foreground data-[disabled]:opacity-35! " + "data-[disabled]:hover:bg-transparent";
|
|
45
|
-
var CalendarRoot = (h, calendar, options = {}) => calendar.root(h.div.class(cn("inline-flex w-fit flex-col gap-2.5 text-[13px] outline-none data-[disabled]:opacity-60", options.variant !== "ghost" && "bg-card rounded-lg border p-3 shadow-sm", options.class)));
|
|
46
|
-
var CalendarHeader = (h, calendar, month) => h.div.class("flex min-h-7 items-center gap-1").children(calendar.previous(h.button.class(navClass)).children(ChevronLeft(h)), month.heading(h.h3.class("flex-1 text-center text-[13px] font-medium")).children(month.title), calendar.next(h.button.class(navClass)).children(ChevronRight(h)));
|
|
47
|
-
var CalendarGrid = (h, calendar, month) => month.grid(h.table.class("border-separate border-spacing-x-0 border-spacing-y-0.5")).children(h.thead(h.tr.children(calendar.weekdays.map((weekday, index) => calendar.weekday({
|
|
48
|
-
element: h.th.key(weekday.long).class("h-6 w-8 p-0 text-xs font-normal text-muted-foreground"),
|
|
49
|
-
index
|
|
50
|
-
}).children(weekday.short)))), h.tbody(month.weeks.map((week) => h.tr.key(String(week[0]?.epochMilliseconds)).children(week.map((date) => month.cell({
|
|
51
|
-
element: h.td.key(String(date.epochMilliseconds)).class("p-0 text-center"),
|
|
52
|
-
date
|
|
53
|
-
}).children(month.day({ element: h.button.class(dayClass), date }).children(String(DateTime.getPartUtc(date, "day")))))))));
|
|
54
|
-
|
|
55
|
-
// ../../src/components/effectcn/input.ts
|
|
8
|
+
CalendarGrid,
|
|
9
|
+
CalendarHeader,
|
|
10
|
+
CalendarRoot
|
|
11
|
+
} from "@/components/effectcn/calendar";
|
|
12
|
+
import { Input, InputGroup } from "@/components/effectcn/input";
|
|
56
13
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
default: "",
|
|
62
|
-
sm: "h-7 rounded-sm px-2.5 text-xs",
|
|
63
|
-
lg: "h-10 px-3.5 text-sm"
|
|
64
|
-
};
|
|
65
|
-
var inputVariants = (options = {}) => cn(base2, sizes2[options.size ?? "default"], options.class);
|
|
66
|
-
var Input = (h, options) => KitInput(h, options).class(inputVariants(options));
|
|
67
|
-
var InputGroup = (h, options = {}) => h.div.class(cn("border-input bg-background flex h-8.5 w-full items-center rounded-md border shadow-sm", "focus-within:border-ring focus-within:ring-ring/20 transition-[border-color,box-shadow] duration-150 focus-within:ring-3", "has-[input[aria-invalid=true]]:border-destructive has-[input[data-disabled]]:opacity-50", "[&>input]:h-full [&>input]:flex-1 [&>input]:border-0 [&>input]:bg-transparent [&>input]:shadow-none [&>input]:focus-visible:ring-0", options.class));
|
|
68
|
-
|
|
69
|
-
// ../../src/components/effectcn/popover.ts
|
|
70
|
-
var sizes3 = { sm: "w-56", default: "w-72", auto: "w-auto" };
|
|
71
|
-
var PopoverPositioner = (h, popover, options = {}) => popover.positioner(h.div.class(cn("z-50 outline-none", options.class)));
|
|
72
|
-
var PopoverPopup = (h, popover, options = {}) => popover.popup(h.div.class(cn("bg-popover relative flex origin-[var(--transform-origin)] flex-col gap-2 rounded-lg border p-4 text-[13px]", "text-popover-foreground shadow-md outline-none", "h-[var(--popup-height,auto)] transition-[opacity,scale,height] duration-150 ease-out", "data-[ending-style]:scale-95 data-[ending-style]:opacity-0", "data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "data-[instant]:duration-0", sizes3[options.size ?? "default"], options.class)));
|
|
73
|
-
var PopoverTitle = (h, popover, options = {}) => popover.title(h.h2.class(cn("m-0 border-0 p-0 text-sm leading-snug font-semibold", options.class)));
|
|
74
|
-
|
|
75
|
-
// ../../src/components/date-input/html.ts
|
|
14
|
+
PopoverPopup,
|
|
15
|
+
PopoverPositioner,
|
|
16
|
+
PopoverTitle
|
|
17
|
+
} from "@/components/effectcn/popover";
|
|
76
18
|
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
77
19
|
import { CalendarDays as CalendarIcon, X } from "@krak-stack/registry/lucide-effect";
|
|
78
20
|
|
|
21
|
+
// ../../src/lib/utils.ts
|
|
22
|
+
import { cn } from "cn";
|
|
23
|
+
|
|
79
24
|
// ../../src/components/date-input/classes.ts
|
|
80
25
|
var dateInputClasses = {
|
|
81
26
|
actions: "size-6 bg-clip-padding hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent",
|
|
@@ -91,7 +36,7 @@ var resolveDateInputClasses = (overrides) => ({
|
|
|
91
36
|
});
|
|
92
37
|
|
|
93
38
|
// ../../src/components/date-input/index.ts
|
|
94
|
-
import { DateTime
|
|
39
|
+
import { DateTime, Schema as Schema2 } from "effect";
|
|
95
40
|
import { Component, UiSchema } from "effect/ui";
|
|
96
41
|
|
|
97
42
|
// ../../src/components/date-input/schema.ts
|
|
@@ -206,7 +151,7 @@ var dateInputBehaviours = {
|
|
|
206
151
|
const fallback = new Date;
|
|
207
152
|
fallback.setUTCHours(0, 0, 0, 0);
|
|
208
153
|
const date = (getDateInputState($.props) === "valid" ? parseDateOnly(value) : undefined) ?? parseDateOnly(min ?? "") ?? parseDateOnly(max ?? "") ?? fallback;
|
|
209
|
-
return { open: true, month:
|
|
154
|
+
return { open: true, month: DateTime.makeUnsafe(date) };
|
|
210
155
|
},
|
|
211
156
|
Closed: () => ({ open: false, month: null }),
|
|
212
157
|
Edited: ($, { value }) => change($, value, false),
|
|
@@ -219,7 +164,7 @@ var dateInputBehaviours = {
|
|
|
219
164
|
var ApplyDateValidity = Mount.make("ApplyDateValidity", { args: { error: Schema3.String } }, (input, _, changes) => changes.pipe(Stream.runForEach(({ error }) => Effect.sync(() => input.setCustomValidity(error))), Effect.as(Component2.noop)));
|
|
220
165
|
var toUtc = (value) => {
|
|
221
166
|
const date = parseDateOnly(value ?? "");
|
|
222
|
-
return date ?
|
|
167
|
+
return date ? DateTime2.makeUnsafe(date) : undefined;
|
|
223
168
|
};
|
|
224
169
|
var DateInput = Html.component({
|
|
225
170
|
...dateInputOptions,
|
|
@@ -290,11 +235,11 @@ var DateInput = Html.component({
|
|
|
290
235
|
min: toUtc(p.min),
|
|
291
236
|
max: toUtc(p.max),
|
|
292
237
|
locale,
|
|
293
|
-
today:
|
|
238
|
+
today: DateTime2.makeUnsafe(new Date)
|
|
294
239
|
},
|
|
295
240
|
onEmit: {
|
|
296
241
|
Picked: ({ date }) => DateInputMessage.Picked({
|
|
297
|
-
value:
|
|
242
|
+
value: DateTime2.formatIso(date).slice(0, 10)
|
|
298
243
|
}),
|
|
299
244
|
RequestedMonth: ({ month }) => DateInputMessage.MonthChanged({ month })
|
|
300
245
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentProps } from "react";
|
|
2
|
-
import { Calendar } from "
|
|
2
|
+
import { Calendar } from "@/components/ui/calendar";
|
|
3
3
|
import { type DateInputSharedProps } from "./schema.js";
|
|
4
4
|
export { DateOnlySchema, getDateInputState, parseDateOnly } from "./schema.js";
|
|
5
5
|
export type { DateInputMessages } from "./schema.js";
|