@krak-stack/registry 0.3.0 → 0.5.0
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 +26 -0
- package/dist/components/ui/app-switcher.d.ts +25 -0
- package/dist/components/ui/app-switcher.js +233 -0
- package/dist/components/ui/bulk-list-input.d.ts +24 -0
- package/dist/components/ui/bulk-list-input.js +152 -0
- package/dist/components/ui/choice-cards.d.ts +32 -0
- package/dist/components/ui/choice-cards.js +88 -0
- package/dist/components/ui/color-picker.js +3 -2
- package/dist/components/ui/effect-form.js +2 -2
- package/dist/components/ui/form.js +2 -2
- package/dist/components/ui/icon-input.js +2 -2
- package/dist/components/ui/map-menu.d.ts +14 -2
- package/dist/components/ui/map-menu.js +332 -306
- package/dist/components/ui/secret-value.d.ts +19 -0
- package/dist/components/ui/secret-value.js +216 -0
- package/dist/components/ui/upload-attachment.d.ts +39 -0
- package/dist/components/ui/upload-attachment.js +286 -0
- package/dist/components/ui/virtualized-combobox.js +2 -2
- package/package.json +21 -1
|
@@ -3,6 +3,10 @@ export declare enum MapMenuMode {
|
|
|
3
3
|
Point = "point",
|
|
4
4
|
Radius = "radius"
|
|
5
5
|
}
|
|
6
|
+
export declare enum MapMenuPresentation {
|
|
7
|
+
Dialog = "dialog",
|
|
8
|
+
Inline = "inline"
|
|
9
|
+
}
|
|
6
10
|
export type MapMenuPoint = GoogleMapPoint;
|
|
7
11
|
export declare const mapMenuRadiiKm: readonly [1, 2, 5, 10, 20, 40, 60, 80, 100, 250, 500];
|
|
8
12
|
export type MapMenuLocation = {
|
|
@@ -33,8 +37,6 @@ export type MapMenuMessages = {
|
|
|
33
37
|
};
|
|
34
38
|
type MapMenuCommonProps = {
|
|
35
39
|
apiKey: string;
|
|
36
|
-
open: boolean;
|
|
37
|
-
onOpenChange: (open: boolean) => void;
|
|
38
40
|
input: string;
|
|
39
41
|
onInputChange: (input: string) => void;
|
|
40
42
|
selectedLocation: MapMenuLocation | null;
|
|
@@ -53,6 +55,16 @@ type MapMenuCommonProps = {
|
|
|
53
55
|
messages?: Partial<Record<string, Partial<MapMenuMessages>>> | undefined;
|
|
54
56
|
};
|
|
55
57
|
export type MapMenuProps = MapMenuCommonProps & ({
|
|
58
|
+
presentation?: MapMenuPresentation.Dialog | undefined;
|
|
59
|
+
open: boolean;
|
|
60
|
+
onOpenChange: (open: boolean) => void;
|
|
61
|
+
onCancel?: never;
|
|
62
|
+
} | {
|
|
63
|
+
presentation: MapMenuPresentation.Inline;
|
|
64
|
+
open?: never;
|
|
65
|
+
onOpenChange?: never;
|
|
66
|
+
onCancel: () => void;
|
|
67
|
+
}) & ({
|
|
56
68
|
mode: MapMenuMode.Point;
|
|
57
69
|
radiusKm?: never;
|
|
58
70
|
onRadiusChange?: never;
|