@privyid/persona 0.24.0 → 0.25.1
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/dist/components/accordion/Accordion.vue +1 -1
- package/dist/components/aspect-ratio/index.d.ts +1 -1
- package/dist/components/avatar/Avatar.vue.d.ts +2 -2
- package/dist/components/badge/Badge.vue.d.ts +3 -3
- package/dist/components/banner/Banner.vue.d.ts +2 -2
- package/dist/components/breadcrumbs/Breadcrumb.vue.d.ts +1 -1
- package/dist/components/breadcrumbs/BreadcrumbItem.vue +2 -2
- package/dist/components/breadcrumbs/BreadcrumbItem.vue.d.ts +7 -6
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/button/Button.vue +16 -4
- package/dist/components/button-group/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/button-group/index.d.ts +2 -2
- package/dist/components/calendar/Calendar.vue.d.ts +2 -2
- package/dist/components/calendar/adapter/adapter.d.ts +1 -1
- package/dist/components/camera/Camera.vue.d.ts +2 -2
- package/dist/components/camera/adapter/adapter.d.ts +1 -1
- package/dist/components/camera/utils/motion.mjs +2 -2
- package/dist/components/caption/Caption.vue.d.ts +3 -3
- package/dist/components/card/Card.vue.d.ts +2 -2
- package/dist/components/carousel/Carousel.vue.d.ts +9 -9
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/chart/Chart.vue +20 -17
- package/dist/components/chart/Chart.vue.d.ts +3 -3
- package/dist/components/chart/ChartSet.vue.d.ts +2 -2
- package/dist/components/chart/ChartVal.vue.d.ts +4 -4
- package/dist/components/chart/adapter/adapter.d.ts +1 -1
- package/dist/components/chart/adapter/index.d.ts +1 -1
- package/dist/components/chart/index.d.ts +1 -1
- package/dist/components/checkbox/Checkbox.vue +3 -2
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/contextual-bar/ContextualBar.vue.d.ts +5 -5
- package/dist/components/cropper/Cropper.vue.d.ts +10 -10
- package/dist/components/cropper/index.d.ts +2 -2
- package/dist/components/cropper/utils/use-pinch.d.ts +1 -1
- package/dist/components/cropper/utils/use-ratio.d.ts +1 -1
- package/dist/components/datepicker/Datepicker.vue +1 -0
- package/dist/components/datepicker/Datepicker.vue.d.ts +3 -3
- package/dist/components/dialog/Dialog.vue +8 -3
- package/dist/components/dialog/Dialog.vue.d.ts +1 -1
- package/dist/components/dialog/DialogFooter.vue.d.ts +1 -1
- package/dist/components/dialog/index.d.ts +19 -2
- package/dist/components/dialog/index.mjs +42 -0
- package/dist/components/dot/Dot.vue.d.ts +3 -3
- package/dist/components/dropdown/Dropdown.vue +28 -24
- package/dist/components/dropdown/DropdownItem.vue +2 -1
- package/dist/components/dropdown/DropdownItem.vue.d.ts +1 -1
- package/dist/components/dropdown/index.d.ts +1 -1
- package/dist/components/dropdown-subitem/index.d.ts +1 -1
- package/dist/components/dropzone/Dropzone.vue.d.ts +5 -5
- package/dist/components/filterbar/Filterbar.vue.d.ts +2 -2
- package/dist/components/filterbar/index.d.ts +4 -4
- package/dist/components/filterbar/pinned/PinnedDate.vue.d.ts +2 -2
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue.d.ts +3 -3
- package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +5 -5
- package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +8 -8
- package/dist/components/form-group/FormGroup.vue +23 -10
- package/dist/components/global/store.d.ts +2 -2
- package/dist/components/global/use-singleton.d.ts +1 -1
- package/dist/components/heading/Heading.vue.d.ts +2 -2
- package/dist/components/input/Input.vue.d.ts +7 -6
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/utils/accept.d.ts +1 -1
- package/dist/components/input-file/InputFile.vue.d.ts +8 -8
- package/dist/components/input-group/InputGroup.vue.d.ts +2 -2
- package/dist/components/input-group/index.d.ts +2 -2
- package/dist/components/input-password/InputPassword.vue.d.ts +1 -1
- package/dist/components/input-password/index.d.ts +1 -1
- package/dist/components/input-pin/InputPin.vue +1 -1
- package/dist/components/input-pin/InputPin.vue.d.ts +5 -5
- package/dist/components/input-range/InputRange.vue.d.ts +7 -7
- package/dist/components/input-range/utils/use-drag.d.ts +1 -1
- package/dist/components/label/Label.vue.d.ts +4 -4
- package/dist/components/list-group/ListGroupItem.vue.d.ts +2 -2
- package/dist/components/markdown/index.d.ts +1 -1
- package/dist/components/meta.json +10 -10
- package/dist/components/modal/Modal.vue +6 -6
- package/dist/components/modal/Modal.vue.d.ts +3 -3
- package/dist/components/nav/Nav.vue +1 -1
- package/dist/components/nav/Nav.vue.d.ts +6 -5
- package/dist/components/nav/NavItem.vue.d.ts +1 -1
- package/dist/components/nav/NavItemDropdown.vue.d.ts +4 -4
- package/dist/components/navbar/Navbar.vue.d.ts +5 -5
- package/dist/components/navbar/NavbarNav.vue.d.ts +2 -2
- package/dist/components/navbar/index.d.ts +2 -2
- package/dist/components/navbar-menu/NavbarNavMenu.vue.d.ts +2 -2
- package/dist/components/page/Page.vue.d.ts +3 -3
- package/dist/components/pagination/Pagination.vue +3 -2
- package/dist/components/pagination/Pagination.vue.d.ts +3 -3
- package/dist/components/pdf-helipad/utils/use-drag.d.ts +2 -2
- package/dist/components/pdf-object/PdfObject.vue.d.ts +2 -2
- package/dist/components/pdf-object/PdfObjectAddon.vue.d.ts +2 -2
- package/dist/components/pdf-object/PdfObjectDebugger.vue +1 -1
- package/dist/components/pdf-object/index.d.ts +3 -3
- package/dist/components/pdf-object/utils/use-drag.d.ts +1 -1
- package/dist/components/pdf-object/utils/use-drop.d.ts +1 -1
- package/dist/components/pdf-object/utils/use-resize.d.ts +2 -2
- package/dist/components/pdf-object/utils/use-selector.d.ts +2 -2
- package/dist/components/pdf-text/PdfText.vue.d.ts +2 -2
- package/dist/components/pdf-viewer/PdfError.vue.d.ts +1 -1
- package/dist/components/pdf-viewer/PdfNavigation.vue +2 -0
- package/dist/components/pdf-viewer/PdfNavigation.vue.d.ts +1 -1
- package/dist/components/pdf-viewer/PdfViewer.vue.d.ts +8 -8
- package/dist/components/pdf-viewer/index.d.ts +1 -1
- package/dist/components/pdf-viewer/utils/use-idle.d.ts +1 -1
- package/dist/components/pdf-viewer/utils/use-sticky.d.ts +2 -2
- package/dist/components/pdf-viewer/utils/use-viewer.d.ts +21 -0
- package/dist/components/pdf-viewer/utils/use-viewer.mjs +3 -2
- package/dist/components/progress/Progress.vue.d.ts +1 -1
- package/dist/components/progress-indicator/ProgressIndicator.vue.d.ts +4 -4
- package/dist/components/progressbar/Progressbar.vue.d.ts +7 -7
- package/dist/components/radio/Radio.vue.d.ts +1 -1
- package/dist/components/ringbar/Ringbar.vue.d.ts +7 -7
- package/dist/components/select/Select.vue +22 -12
- package/dist/components/select/SelectInput.vue +14 -3
- package/dist/components/select/SelectTags.vue +3 -2
- package/dist/components/select/adapter/adapter.d.ts +2 -2
- package/dist/components/select/adapter/async-adapter.d.ts +2 -2
- package/dist/components/select/adapter/async-adapter.mjs +6 -5
- package/dist/components/select/utils/use-on-scroll.d.ts +1 -1
- package/dist/components/select/utils/use-on-typing.d.ts +1 -1
- package/dist/components/sheet/Sheet.vue +3 -3
- package/dist/components/sidebar/Sidebar.vue +5 -4
- package/dist/components/sidebar/SidebarBrand.vue +3 -3
- package/dist/components/sidebar/SidebarBrand.vue.d.ts +5 -3
- package/dist/components/sidebar/SidebarContent.vue +19 -25
- package/dist/components/sidebar/SidebarContent.vue.d.ts +16 -0
- package/dist/components/sidebar/SidebarNav.vue +4 -2
- package/dist/components/sidebar/index.d.ts +2 -2
- package/dist/components/sidebar-menu/SidebarMenu.vue +7 -5
- package/dist/components/sidebar-menu/SidebarMenuItem.vue +2 -2
- package/dist/components/sidebar-menu/index.d.ts +8 -7
- package/dist/components/signature-draw/SignatureDraw.vue.d.ts +3 -3
- package/dist/components/signature-draw/SignatureDrawDesktop.vue.d.ts +3 -3
- package/dist/components/signature-draw/SignatureDrawMobile.vue.d.ts +3 -3
- package/dist/components/signature-draw/utils/smooth-line.d.ts +1 -1
- package/dist/components/signature-draw/utils/straight-line.d.ts +1 -1
- package/dist/components/signature-draw/utils/use-draw.d.ts +1 -1
- package/dist/components/signature-text/SignatureText.vue.d.ts +6 -6
- package/dist/components/steps/Step.vue.d.ts +2 -2
- package/dist/components/steps/Steps.vue.d.ts +2 -2
- package/dist/components/steps/index.d.ts +1 -1
- package/dist/components/strengthbar/Strengthbar.vue.d.ts +8 -8
- package/dist/components/subheading/Subheading.vue.d.ts +3 -3
- package/dist/components/table/Table.vue.d.ts +2 -2
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table-flex/TableFlex.vue +7 -3
- package/dist/components/table-static/TableStatic.vue +34 -6
- package/dist/components/table-static/TableStaticRoot.vue +1 -1
- package/dist/components/tabs/TabContent.vue +1 -1
- package/dist/components/tabs/Tabs.vue +9 -7
- package/dist/components/text/Text.vue +2 -2
- package/dist/components/text/Text.vue.d.ts +8 -7
- package/dist/components/textarea/Textarea.vue.d.ts +8 -7
- package/dist/components/toast/Toast.vue +75 -5
- package/dist/components/toast/Toast.vue.d.ts +16 -2
- package/dist/components/toast/ToastContainer.vue +19 -12
- package/dist/components/toast/ToastContainer.vue.d.ts +6 -134
- package/dist/components/toast/ToastRoot.vue +1 -3
- package/dist/components/toast/ToastRoot.vue.d.ts +2 -2
- package/dist/components/toast/index.d.ts +3 -1
- package/dist/components/toggle/Toggle.vue.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.vue +1 -1
- package/dist/components/tooltip/Tooltip.vue.d.ts +3 -3
- package/dist/components/tooltip/TooltipContainer.vue.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/utils/parse-bindings.d.ts +2 -2
- package/dist/components/tour/Tour.vue +6 -2
- package/dist/components/tour/TourDialog.vue.d.ts +1 -1
- package/dist/components/tour/TourHighlight.vue +1 -1
- package/dist/components/tour/TourHighlight.vue.d.ts +1 -1
- package/dist/components/tour/core/step/conditional.d.ts +2 -2
- package/dist/components/tour/core/tour.d.ts +2 -1
- package/dist/components/tour/index.d.ts +1 -1
- package/dist/components/truncate/Truncate.vue +1 -8
- package/dist/components/truncate/Truncate.vue.d.ts +2 -2
- package/dist/components/utils/date.d.ts +2 -1
- package/dist/components/utils/vnode.d.ts +1 -1
- package/dist/components/wizard/Wizard.vue.d.ts +2 -2
- package/dist/components/wizard/WizardBody.vue.d.ts +1 -1
- package/dist/components/wizard/WizardStep.vue.d.ts +2 -2
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.mjs +7 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { ToastStyleVariant, ToastTypeVariant } from '.';
|
|
1
|
+
import type { PropType } from 'vue-demi';
|
|
2
|
+
import type { ToastStyleVariant, ToastTypeVariant } from '.';
|
|
3
|
+
import type { ColorVariant } from '../button';
|
|
3
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
5
|
title: {
|
|
5
6
|
type: StringConstructor;
|
|
@@ -7,6 +8,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
7
8
|
};
|
|
8
9
|
text: {
|
|
9
10
|
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
10
12
|
};
|
|
11
13
|
type: {
|
|
12
14
|
type: PropType<ToastTypeVariant>;
|
|
@@ -20,9 +22,14 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
20
22
|
type: NumberConstructor;
|
|
21
23
|
default: number;
|
|
22
24
|
};
|
|
25
|
+
iconColor: {
|
|
26
|
+
type: PropType<ColorVariant>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
23
29
|
}, {
|
|
24
30
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
25
31
|
toastIcon: import("vue-demi").ComputedRef<any>;
|
|
32
|
+
classIcon: import("vue-demi").ComputedRef<string[]>;
|
|
26
33
|
close: () => void;
|
|
27
34
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, "dismissed"[], "dismissed", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
28
35
|
title: {
|
|
@@ -31,6 +38,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
31
38
|
};
|
|
32
39
|
text: {
|
|
33
40
|
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
34
42
|
};
|
|
35
43
|
type: {
|
|
36
44
|
type: PropType<ToastTypeVariant>;
|
|
@@ -44,11 +52,17 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
44
52
|
type: NumberConstructor;
|
|
45
53
|
default: number;
|
|
46
54
|
};
|
|
55
|
+
iconColor: {
|
|
56
|
+
type: PropType<ColorVariant>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
47
59
|
}>> & {
|
|
48
60
|
onDismissed?: ((...args: any[]) => any) | undefined;
|
|
49
61
|
}, {
|
|
50
62
|
variant: ToastStyleVariant;
|
|
51
63
|
type: ToastTypeVariant;
|
|
64
|
+
text: string;
|
|
52
65
|
duration: number;
|
|
66
|
+
iconColor: ColorVariant;
|
|
53
67
|
}, {}>;
|
|
54
68
|
export default _default;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
:type="item.type"
|
|
15
15
|
:variant="item.variant"
|
|
16
16
|
:duration="item.duration"
|
|
17
|
+
:icon-color="item.iconColor"
|
|
17
18
|
:class="item.toastClass"
|
|
18
19
|
@dismissed="remove(i)">
|
|
19
20
|
<template #icon>
|
|
@@ -38,7 +39,6 @@ import {
|
|
|
38
39
|
ref
|
|
39
40
|
} from "vue-demi";
|
|
40
41
|
import Toast from "./Toast.vue";
|
|
41
|
-
import { startsWith } from "lodash-es";
|
|
42
42
|
export default defineComponent({
|
|
43
43
|
components: { Toast },
|
|
44
44
|
props: {
|
|
@@ -56,17 +56,11 @@ export default defineComponent({
|
|
|
56
56
|
return result;
|
|
57
57
|
});
|
|
58
58
|
function add(option) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
} else {
|
|
65
|
-
items.value.unshift({
|
|
66
|
-
...option,
|
|
67
|
-
_id: Symbol("id")
|
|
68
|
-
});
|
|
69
|
-
}
|
|
59
|
+
const item = { ...option, _id: Symbol("id") };
|
|
60
|
+
if (props.position.startsWith("bottom"))
|
|
61
|
+
items.value.push(item);
|
|
62
|
+
else
|
|
63
|
+
items.value.unshift(item);
|
|
70
64
|
}
|
|
71
65
|
function remove(index) {
|
|
72
66
|
items.value.splice(index, 1);
|
|
@@ -84,6 +78,7 @@ export default defineComponent({
|
|
|
84
78
|
<style lang="postcss">
|
|
85
79
|
.toast-container {
|
|
86
80
|
--p-toast-z-index: theme(zIndex.toast);
|
|
81
|
+
|
|
87
82
|
@apply z-[var(--p-toast-z-index)] fixed flex flex-col space-y-2 max-h-screen overflow-visible;
|
|
88
83
|
|
|
89
84
|
&--top-right {
|
|
@@ -151,6 +146,18 @@ export default defineComponent({
|
|
|
151
146
|
}
|
|
152
147
|
}
|
|
153
148
|
}
|
|
149
|
+
|
|
150
|
+
&--top-left,
|
|
151
|
+
&--top-center,
|
|
152
|
+
&--top-right {
|
|
153
|
+
@apply justify-start;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&--bottom-left,
|
|
157
|
+
&--bottom-center,
|
|
158
|
+
&--bottom-right {
|
|
159
|
+
@apply justify-end;
|
|
160
|
+
}
|
|
154
161
|
}
|
|
155
162
|
|
|
156
163
|
.toast {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { ToastOption, ToastPositionVariant } from '.';
|
|
1
|
+
import type { PropType, Ref } from 'vue-demi';
|
|
2
|
+
import type { ToastOption, ToastPositionVariant } from '.';
|
|
3
|
+
interface ToastItem extends ToastOption {
|
|
4
|
+
_id: symbol;
|
|
5
|
+
}
|
|
3
6
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
7
|
position: {
|
|
5
8
|
type: PropType<ToastPositionVariant>;
|
|
@@ -8,138 +11,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
8
11
|
}, {
|
|
9
12
|
add: (option: ToastOption) => void;
|
|
10
13
|
remove: (index: number) => void;
|
|
11
|
-
items:
|
|
12
|
-
_id: symbol;
|
|
13
|
-
type?: import(".").ToastTypeVariant | undefined;
|
|
14
|
-
variant?: import(".").ToastStyleVariant | undefined;
|
|
15
|
-
title: string;
|
|
16
|
-
text?: string | undefined;
|
|
17
|
-
icon?: string | import("vue-demi").FunctionalComponent<any, any, any> | {
|
|
18
|
-
new (...args: any[]): any;
|
|
19
|
-
__isFragment?: undefined;
|
|
20
|
-
__isTeleport?: undefined;
|
|
21
|
-
__isSuspense?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
setup?: ((this: void, props: import("@vue/shared").LooseRequired<any>, ctx: {
|
|
25
|
-
attrs: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
};
|
|
28
|
-
slots: Readonly<{
|
|
29
|
-
[name: string]: import("vue-demi").Slot<any> | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
32
|
-
expose: (exposed?: Record<string, any> | undefined) => void;
|
|
33
|
-
}) => any) | undefined;
|
|
34
|
-
name?: string | undefined;
|
|
35
|
-
template?: string | object | undefined;
|
|
36
|
-
render?: Function | undefined;
|
|
37
|
-
components?: Record<string, import("vue-demi").Component<any, any, any, import("vue-demi").ComputedOptions, import("vue-demi").MethodOptions>> | undefined;
|
|
38
|
-
directives?: Record<string, import("vue-demi").Directive<any, any>> | undefined;
|
|
39
|
-
inheritAttrs?: boolean | undefined;
|
|
40
|
-
emits?: any;
|
|
41
|
-
slots?: {} | undefined;
|
|
42
|
-
expose?: string[] | undefined;
|
|
43
|
-
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
44
|
-
compilerOptions?: {
|
|
45
|
-
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
46
|
-
whitespace?: "preserve" | "condense" | undefined;
|
|
47
|
-
comments?: boolean | undefined;
|
|
48
|
-
delimiters?: [string, string] | undefined;
|
|
49
|
-
} | undefined;
|
|
50
|
-
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
51
|
-
__isFragment?: undefined;
|
|
52
|
-
__isTeleport?: undefined;
|
|
53
|
-
__isSuspense?: undefined;
|
|
54
|
-
__defaults?: any;
|
|
55
|
-
compatConfig?: {
|
|
56
|
-
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
57
|
-
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
58
|
-
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
59
|
-
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
60
|
-
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
61
|
-
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
62
|
-
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
63
|
-
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
64
|
-
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
65
|
-
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
66
|
-
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
67
|
-
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
68
|
-
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
69
|
-
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
70
|
-
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
71
|
-
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
72
|
-
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
73
|
-
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
74
|
-
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
75
|
-
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
76
|
-
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
77
|
-
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
78
|
-
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
79
|
-
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
80
|
-
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
81
|
-
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
82
|
-
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
83
|
-
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
84
|
-
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
85
|
-
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
86
|
-
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
87
|
-
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
88
|
-
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
89
|
-
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
90
|
-
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
91
|
-
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
92
|
-
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
93
|
-
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
94
|
-
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
95
|
-
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
96
|
-
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
97
|
-
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
98
|
-
MODE?: 2 | 3 | ((comp: import("vue-demi").Component<any, any, any, import("vue-demi").ComputedOptions, import("vue-demi").MethodOptions> | null) => 2 | 3) | undefined;
|
|
99
|
-
} | undefined;
|
|
100
|
-
data?: ((this: any, vm: any) => any) | undefined;
|
|
101
|
-
computed?: import("vue-demi").ComputedOptions | undefined;
|
|
102
|
-
methods?: import("vue-demi").MethodOptions | undefined;
|
|
103
|
-
watch?: {
|
|
104
|
-
[x: string]: (string | import("vue-demi").WatchCallback<any, any> | ({
|
|
105
|
-
handler: string | import("vue-demi").WatchCallback<any, any>;
|
|
106
|
-
} & import("vue-demi").WatchOptions<boolean>)) | (string | import("vue-demi").WatchCallback<any, any> | ({
|
|
107
|
-
handler: string | import("vue-demi").WatchCallback<any, any>;
|
|
108
|
-
} & import("vue-demi").WatchOptions<boolean>))[];
|
|
109
|
-
} | undefined;
|
|
110
|
-
provide?: import("vue-demi").ComponentProvideOptions | undefined;
|
|
111
|
-
inject?: {} | string[] | undefined;
|
|
112
|
-
filters?: Record<string, Function> | undefined;
|
|
113
|
-
mixins?: any[] | undefined;
|
|
114
|
-
extends?: any;
|
|
115
|
-
beforeCreate?: (() => void) | undefined;
|
|
116
|
-
created?: (() => void) | undefined;
|
|
117
|
-
beforeMount?: (() => void) | undefined;
|
|
118
|
-
mounted?: (() => void) | undefined;
|
|
119
|
-
beforeUpdate?: (() => void) | undefined;
|
|
120
|
-
updated?: (() => void) | undefined;
|
|
121
|
-
activated?: (() => void) | undefined;
|
|
122
|
-
deactivated?: (() => void) | undefined;
|
|
123
|
-
beforeDestroy?: (() => void) | undefined;
|
|
124
|
-
beforeUnmount?: (() => void) | undefined;
|
|
125
|
-
destroyed?: (() => void) | undefined;
|
|
126
|
-
unmounted?: (() => void) | undefined;
|
|
127
|
-
renderTracked?: ((e: import("vue-demi").DebuggerEvent) => void) | undefined;
|
|
128
|
-
renderTriggered?: ((e: import("vue-demi").DebuggerEvent) => void) | undefined;
|
|
129
|
-
errorCaptured?: ((err: unknown, instance: import("vue-demi").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue-demi").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | undefined;
|
|
130
|
-
delimiters?: [string, string] | undefined;
|
|
131
|
-
__differentiator?: string | number | symbol | undefined;
|
|
132
|
-
__isBuiltIn?: boolean | undefined;
|
|
133
|
-
__file?: string | undefined;
|
|
134
|
-
__name?: string | undefined;
|
|
135
|
-
beforeRouteEnter?: import("vue-router").NavigationGuardWithThis<undefined> | undefined;
|
|
136
|
-
beforeRouteUpdate?: import("vue-router").NavigationGuard | undefined;
|
|
137
|
-
beforeRouteLeave?: import("vue-router").NavigationGuard | undefined;
|
|
138
|
-
} | undefined;
|
|
139
|
-
duration?: number | undefined;
|
|
140
|
-
toastClass?: string | string[] | undefined;
|
|
141
|
-
position?: ToastPositionVariant | undefined;
|
|
142
|
-
}[]>;
|
|
14
|
+
items: Ref<ToastItem[]>;
|
|
143
15
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
144
16
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
145
17
|
position: {
|
|
@@ -24,9 +24,7 @@ export default defineComponent({
|
|
|
24
24
|
setup() {
|
|
25
25
|
const groups = shallowRef(/* @__PURE__ */ new Map());
|
|
26
26
|
async function add(options) {
|
|
27
|
-
|
|
28
|
-
options.position = "bottom-left";
|
|
29
|
-
const position = options.position;
|
|
27
|
+
const position = options.position || "bottom-left";
|
|
30
28
|
let group = groups.value.get(position);
|
|
31
29
|
if (!group) {
|
|
32
30
|
group = { ref: ref(), position };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ref } from 'vue-demi';
|
|
1
|
+
import type { Ref } from 'vue-demi';
|
|
2
2
|
import ToastGroup from './ToastContainer.vue';
|
|
3
|
-
import { ToastOption, ToastPositionVariant } from '.';
|
|
3
|
+
import type { ToastOption, ToastPositionVariant } from '.';
|
|
4
4
|
type ToastInstance = InstanceType<typeof ToastGroup>;
|
|
5
5
|
type ToastGroupMap = Map<ToastPositionVariant, {
|
|
6
6
|
position: ToastPositionVariant;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Component } from 'vue-demi';
|
|
1
|
+
import type { Component } from 'vue-demi';
|
|
2
|
+
import type { ColorVariant } from '../button';
|
|
2
3
|
export type ToastTypeVariant = 'info' | 'success' | 'warning' | 'error';
|
|
3
4
|
export type ToastStyleVariant = 'simple' | 'filled';
|
|
4
5
|
export interface ToastOption {
|
|
@@ -10,6 +11,7 @@ export interface ToastOption {
|
|
|
10
11
|
duration?: number;
|
|
11
12
|
toastClass?: string | string[];
|
|
12
13
|
position?: ToastPositionVariant;
|
|
14
|
+
iconColor?: ColorVariant;
|
|
13
15
|
}
|
|
14
16
|
export type ToastPositionVariant = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
15
17
|
export default function showToast(option: ToastOption): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { ColorVariant } from '.';
|
|
3
|
-
import { Placement } from '@floating-ui/dom';
|
|
1
|
+
import type { PropType } from 'vue-demi';
|
|
2
|
+
import type { ColorVariant } from '.';
|
|
3
|
+
import type { Placement } from '@floating-ui/dom';
|
|
4
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
5
5
|
modelValue: {
|
|
6
6
|
type: BooleanConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TooltipItem, TooltipOptions } from '.';
|
|
1
|
+
import type { TooltipItem, TooltipOptions } from '.';
|
|
2
2
|
declare const _default: import("vue-demi").DefineComponent<{}, {
|
|
3
3
|
items: import("vue-demi").Ref<Map<string, TooltipItem>>;
|
|
4
4
|
add: (options: TooltipOptions) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Placement } from '@floating-ui/dom';
|
|
2
|
-
import { DirectiveBinding } from 'vue-demi';
|
|
1
|
+
import type { Placement } from '@floating-ui/dom';
|
|
2
|
+
import type { DirectiveBinding } from 'vue-demi';
|
|
3
3
|
import type { ColorVariant } from '..';
|
|
4
4
|
/**
|
|
5
5
|
* Parse placement from modifier
|
|
@@ -19,7 +19,8 @@ import {
|
|
|
19
19
|
defineComponent,
|
|
20
20
|
ref,
|
|
21
21
|
shallowRef,
|
|
22
|
-
watchEffect
|
|
22
|
+
watchEffect,
|
|
23
|
+
onBeforeUnmount
|
|
23
24
|
} from "vue-demi";
|
|
24
25
|
import TourDialog from "./TourDialog.vue";
|
|
25
26
|
import TourHighlight from "./TourHighlight.vue";
|
|
@@ -61,7 +62,7 @@ export default defineComponent({
|
|
|
61
62
|
tour.value.style.visibility = middlewareData.hide.referenceHidden ? "hidden" : "visible";
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
|
-
});
|
|
65
|
+
}, { animationFrame: true });
|
|
65
66
|
onCleanup(cleanup);
|
|
66
67
|
}
|
|
67
68
|
});
|
|
@@ -80,6 +81,9 @@ export default defineComponent({
|
|
|
80
81
|
function hide() {
|
|
81
82
|
isShow.value = false;
|
|
82
83
|
}
|
|
84
|
+
onBeforeUnmount(() => {
|
|
85
|
+
hide();
|
|
86
|
+
});
|
|
83
87
|
return {
|
|
84
88
|
isShow,
|
|
85
89
|
dialog,
|
|
@@ -93,8 +93,8 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
93
93
|
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
94
94
|
onPrev?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
}, {
|
|
96
|
-
dismissable: boolean;
|
|
97
96
|
image: string;
|
|
97
|
+
dismissable: boolean;
|
|
98
98
|
text: string;
|
|
99
99
|
title: string;
|
|
100
100
|
step: number;
|
|
@@ -35,7 +35,7 @@ export default defineComponent({
|
|
|
35
35
|
hightlight.value.style.height = `${bounding.height + padding}px`;
|
|
36
36
|
hightlight.value.style.left = `${bounding.left - padding / 2}px`;
|
|
37
37
|
hightlight.value.style.top = `${bounding.top - padding / 2}px`;
|
|
38
|
-
});
|
|
38
|
+
}, { animationFrame: true });
|
|
39
39
|
onCleanup(cleanup);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MaybeRef } from '@vueuse/shared';
|
|
1
|
+
import type { MaybeRef } from '@vueuse/shared';
|
|
2
2
|
import { AbstractStep } from '../step';
|
|
3
|
-
import { Tour } from '../tour';
|
|
3
|
+
import type { Tour } from '../tour';
|
|
4
4
|
export interface ConditionalOptions {
|
|
5
5
|
condition: MaybeRef<boolean | (() => boolean | Promise<boolean>)>;
|
|
6
6
|
tour: Tour;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<span
|
|
6
6
|
:key="`${expand}`"
|
|
7
7
|
v-p-tooltip="tooltip && !expandable && text.length > maxLength"
|
|
8
|
-
class="
|
|
8
|
+
class="truncated"
|
|
9
9
|
data-testid="truncate"
|
|
10
10
|
:title="text">
|
|
11
11
|
{{ viewText }}
|
|
@@ -82,10 +82,3 @@ export default defineComponent({
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
</script>
|
|
85
|
-
|
|
86
|
-
<style lang="postcss">
|
|
87
|
-
.truncate {
|
|
88
|
-
@apply text-default;
|
|
89
|
-
@apply dark:text-dark-default;
|
|
90
|
-
}
|
|
91
|
-
</style>
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
length: {
|
|
7
|
-
type: (
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
10
|
omission: {
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
40
|
length: {
|
|
41
|
-
type: (
|
|
41
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
42
42
|
default: number;
|
|
43
43
|
};
|
|
44
44
|
omission: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { TravelHook, FinishedHook } from '../steps';
|
|
1
|
+
import type { PropType } from 'vue-demi';
|
|
2
|
+
import type { TravelHook, FinishedHook } from '../steps';
|
|
3
3
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
5
|
type: NumberConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { TravelHook } from '../steps';
|
|
1
|
+
import type { PropType } from 'vue-demi';
|
|
2
|
+
import type { TravelHook } from '../steps';
|
|
3
3
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
4
|
title: {
|
|
5
5
|
type: StringConstructor;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { hideOverlay, showOverlay, } from '../components/overlay';
|
|
|
3
3
|
export { hideTooltip, showTooltip, toggleTooltip, } from '../components/tooltip';
|
|
4
4
|
export { default as toast, } from '../components/toast';
|
|
5
5
|
export * as dialog from '../components/dialog';
|
|
6
|
-
export { defineOptions, } from '../components/select';
|
|
6
|
+
export { type SelectItem, defineOptions, } from '../components/select';
|
|
7
7
|
export { default as defineAsyncAdapter, } from '../components/select/adapter/async-adapter';
|
|
8
8
|
export { default as FuzzyAdapter, } from '../components/select/adapter/fuzzy-adapter';
|
|
9
9
|
export { default as BasicAdapter, } from '../components/select/adapter/basic-adapter';
|
|
@@ -13,7 +13,8 @@ export { toBase64, fromBase64, } from '../components/utils/base64';
|
|
|
13
13
|
export { default as CaptureAdapter, } from '../components/camera/adapter/capture';
|
|
14
14
|
export { default as LivenessAdapter, } from '../components/camera/adapter/liveness';
|
|
15
15
|
export { default as QrCodeAdapter, } from '../components/camera/adapter/qr-code';
|
|
16
|
-
export { defineAdapter, } from '../components/
|
|
16
|
+
export { defineAdapter as defineSelectAdapter, } from '../components/select/adapter/adapter';
|
|
17
|
+
export { defineAdapter as defineCameraAdapter, } from '../components/camera/adapter/adapter';
|
|
17
18
|
export { defineFilter, } from '../components/filterbar';
|
|
18
19
|
export { markdown, } from '../components/markdown';
|
|
19
20
|
export { useStore, initStore, createStore, setStore, setLang, getLang, useLang, type State, } from '../components/global/store';
|
|
@@ -31,3 +32,4 @@ export { installLocale, formatDate, } from '../components/utils/date';
|
|
|
31
32
|
export { default as useLoading, } from '../components/overlay/utils/use-loading';
|
|
32
33
|
export { findAllChildren, toBoolean, } from '../components/utils/vnode';
|
|
33
34
|
export { createSpinner, createAlias, createText, } from '../components/avatar/utils/create-image';
|
|
35
|
+
export { useSelector, } from '../components/pdf-object/utils/use-selector';
|
package/dist/core/index.mjs
CHANGED
|
@@ -49,7 +49,10 @@ export {
|
|
|
49
49
|
default as QrCodeAdapter
|
|
50
50
|
} from "../components/camera/adapter/qr-code";
|
|
51
51
|
export {
|
|
52
|
-
defineAdapter
|
|
52
|
+
defineAdapter as defineSelectAdapter
|
|
53
|
+
} from "../components/select/adapter/adapter";
|
|
54
|
+
export {
|
|
55
|
+
defineAdapter as defineCameraAdapter
|
|
53
56
|
} from "../components/camera/adapter/adapter";
|
|
54
57
|
export {
|
|
55
58
|
defineFilter
|
|
@@ -110,3 +113,6 @@ export {
|
|
|
110
113
|
createAlias,
|
|
111
114
|
createText
|
|
112
115
|
} from "../components/avatar/utils/create-image";
|
|
116
|
+
export {
|
|
117
|
+
useSelector
|
|
118
|
+
} from "../components/pdf-object/utils/use-selector";
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -18,7 +18,7 @@ const module = defineNuxtModule({
|
|
|
18
18
|
href: "https://fonts.gstatic.com",
|
|
19
19
|
crossorigin: ""
|
|
20
20
|
},
|
|
21
|
-
{ rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap" }
|
|
21
|
+
{ rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap" }
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
await addComponentsDir({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@privyid/persona",
|
|
3
3
|
"description": "Persona core package",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.25.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/privy-open-source/design-system.git",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"chart.js": "4.4.0",
|
|
72
72
|
"core-js": "3",
|
|
73
73
|
"date-fns": "2.30.0",
|
|
74
|
-
"defu": "6.1.
|
|
74
|
+
"defu": "6.1.3",
|
|
75
75
|
"fast-equals": "^5.0.0",
|
|
76
|
-
"fuse.js": "
|
|
76
|
+
"fuse.js": "7.0.0",
|
|
77
77
|
"interactjs": "1.10.19",
|
|
78
78
|
"lodash-es": "4.17.21",
|
|
79
79
|
"marked": "5.1.2",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"sanitize-html": "2.11.0",
|
|
83
83
|
"scroll-into-view": "1.16.2",
|
|
84
84
|
"tabbable": "6.2.0",
|
|
85
|
-
"vue-collapsed": "1.2.
|
|
85
|
+
"vue-collapsed": "1.2.9",
|
|
86
86
|
"vue-demi": "0.14.6",
|
|
87
87
|
"vuedraggable": "next",
|
|
88
88
|
"webfontloader": "1.6.28",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"extends @privyid/browserslist-config"
|
|
93
93
|
],
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@privyid/browserslist-config": "^0.
|
|
96
|
-
"@privyid/tailwind-preset": "^0.
|
|
95
|
+
"@privyid/browserslist-config": "^0.25.1",
|
|
96
|
+
"@privyid/tailwind-preset": "^0.25.1",
|
|
97
97
|
"postcss-custom-properties": "^12.1.11 || ^13.0.0",
|
|
98
98
|
"postcss-hexrgba": "^2.1.0",
|
|
99
99
|
"postcss-lighten-darken": "^0.9.0",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"@nuxt/module-builder": "^0.5.0",
|
|
105
105
|
"@nuxt/schema": "3.7.4",
|
|
106
106
|
"@nuxtjs/tailwindcss": "^6.2.0",
|
|
107
|
-
"@privyid/browserslist-config": "^0.
|
|
108
|
-
"@privyid/tailwind-preset": "^0.
|
|
107
|
+
"@privyid/browserslist-config": "^0.25.1",
|
|
108
|
+
"@privyid/tailwind-preset": "^0.25.1",
|
|
109
109
|
"@types/sanitize-html": "^2",
|
|
110
110
|
"browserslist-to-esbuild": "^1.2.0",
|
|
111
111
|
"nuxt": "3.7.4",
|