@privyid/persona 0.11.0 → 0.13.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/dist/components/button/Button.vue +3 -3
- package/dist/components/button/Button.vue.d.ts +1 -1
- package/dist/components/button-group/ButtonGroup.vue +1 -1
- package/dist/components/camera/Camera.vue +8 -4
- package/dist/components/camera/Camera.vue.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.vue +1 -1
- package/dist/components/datepicker/Datepicker.vue +1 -1
- package/dist/components/dropdown/Dropdown.vue +17 -6
- package/dist/components/dropdown/Dropdown.vue.d.ts +10 -1
- package/dist/components/form-group/FormGroup.vue +1 -1
- package/dist/components/input/Input.vue +45 -4
- package/dist/components/label/Label.vue.d.ts +1 -1
- package/dist/components/main/Main.vue +14 -3
- package/dist/components/modal/Modal.vue +2 -2
- package/dist/components/nav/NavItemDropdown.vue +30 -3
- package/dist/components/nav/NavItemDropdown.vue.d.ts +34 -2
- package/dist/components/navbar/Navbar.vue +1 -1
- package/dist/components/navbar/NavbarNav.vue +1 -1
- package/dist/components/overlay/Overlay.vue +3 -1
- package/dist/components/pdf-helipad/PdfHelipad.vue +0 -2
- package/dist/components/pdf-object/PdfObjectAddon.vue +1 -0
- package/dist/components/pdf-object/PdfObjectDebugger.vue +1 -1
- package/dist/components/pdf-object/utils/position.d.ts +1 -1
- package/dist/components/pdf-text/PdfText.vue.d.ts +1 -1
- package/dist/components/pdf-viewer/utils/use-viewer.mjs +3 -3
- package/dist/components/sidebar/Sidebar.vue +2 -1
- package/dist/components/signature-text/SignatureText.vue.d.ts +1 -1
- package/dist/components/spread/Spread.vue +1 -1
- package/dist/components/text/Text.vue +44 -0
- package/dist/components/text/Text.vue.d.ts +19 -0
- package/dist/components/toast/Toast.vue +2 -0
- package/dist/components/toast/ToastContainer.vue +1 -1
- package/dist/components/toggle/Toggle.vue +1 -1
- package/dist/components/tooltip/Tooltip.vue +3 -1
- package/dist/components/tour/Tour.vue +3 -0
- package/dist/components/tour/TourDialog.vue +3 -3
- package/dist/components/tour/TourHighlight.vue +2 -2
- package/dist/components/tour/core/tour.mjs +1 -1
- package/dist/module.json +1 -1
- package/dist/types.d.ts +5 -0
- package/package.json +10 -9
|
@@ -104,7 +104,7 @@ export default defineComponent({
|
|
|
104
104
|
--p-color-danger-focus: darken(theme(backgroundColor.danger.emphasis), 10%);
|
|
105
105
|
--p-color-dark-danger-focus: darken(theme(backgroundColor.dark.danger.emphasis), 10%);
|
|
106
106
|
|
|
107
|
-
@apply inline-flex align-middle font-medium disabled:opacity-50 disabled:pointer-events-none transition-all ease-in-out duration-200;
|
|
107
|
+
@apply inline-flex align-middle justify-center font-medium no-underline hover:no-underline disabled:opacity-50 disabled:pointer-events-none transition-all ease-in-out duration-200;
|
|
108
108
|
|
|
109
109
|
> svg {
|
|
110
110
|
@apply self-center;
|
|
@@ -139,8 +139,8 @@ export default defineComponent({
|
|
|
139
139
|
* default style variant
|
|
140
140
|
*/
|
|
141
141
|
&&--variant-solid {
|
|
142
|
-
@apply border border-solid hover:shadow-lg focus:shadow-none active:shadow-none text-state-emphasis;
|
|
143
|
-
@apply dark:text-dark-state-emphasis;
|
|
142
|
+
@apply border border-solid hover:shadow-lg focus:shadow-none active:shadow-none text-state-emphasis hover:text-state-emphasis;
|
|
143
|
+
@apply dark:text-dark-state-emphasis dark:hover:text-dark-state-emphasis;
|
|
144
144
|
|
|
145
145
|
&.btn {
|
|
146
146
|
&--default {
|
|
@@ -56,9 +56,9 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
56
56
|
}>>, {
|
|
57
57
|
variant: StyleVariant;
|
|
58
58
|
size: SizeVariant;
|
|
59
|
+
color: ColorVariant;
|
|
59
60
|
icon: boolean;
|
|
60
61
|
href: string;
|
|
61
|
-
color: ColorVariant;
|
|
62
62
|
pill: boolean;
|
|
63
63
|
}>;
|
|
64
64
|
export default _default;
|
|
@@ -218,10 +218,13 @@ export default defineComponent({
|
|
|
218
218
|
const deviceId = computed(() => {
|
|
219
219
|
return cameras.value?.at(camera.value)?.deviceId;
|
|
220
220
|
});
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
const constraints = computed(() => {
|
|
222
|
+
return {
|
|
223
|
+
video: { deviceId: deviceId.value },
|
|
224
|
+
audio: false
|
|
225
|
+
};
|
|
224
226
|
});
|
|
227
|
+
const { stream, start, stop, enabled: isActive } = useUserMedia({ constraints });
|
|
225
228
|
const classNames = computed(() => {
|
|
226
229
|
const result = [];
|
|
227
230
|
if (meta.value.mirror)
|
|
@@ -316,7 +319,8 @@ export default defineComponent({
|
|
|
316
319
|
turnOn,
|
|
317
320
|
onStart,
|
|
318
321
|
toast,
|
|
319
|
-
deviceId
|
|
322
|
+
deviceId,
|
|
323
|
+
constraints
|
|
320
324
|
};
|
|
321
325
|
}
|
|
322
326
|
});
|
|
@@ -48,6 +48,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
48
48
|
onStart: () => void;
|
|
49
49
|
toast: (text: string) => void;
|
|
50
50
|
deviceId: ComputedRef<string | undefined>;
|
|
51
|
+
constraints: ComputedRef<MediaStreamConstraints>;
|
|
51
52
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("change" | "start" | "update:modelValue" | "result")[], "change" | "start" | "update:modelValue" | "result", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
52
53
|
modelValue: {
|
|
53
54
|
type: PropType<string | string[] | File | File[]>;
|
|
@@ -152,7 +152,7 @@ export default defineComponent({
|
|
|
152
152
|
* with custom icon
|
|
153
153
|
*/
|
|
154
154
|
&__icon {
|
|
155
|
-
@apply w-5 h-5 border rounded-tn border-subtle
|
|
155
|
+
@apply w-5 h-5 inline-flex flex-shrink-0 border rounded-tn border-subtle items-center justify-center bg-default;
|
|
156
156
|
@apply dark:border-dark-subtle dark:bg-dark-default;
|
|
157
157
|
|
|
158
158
|
> svg {
|
|
@@ -142,7 +142,7 @@ export default defineComponent({
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
&__icon {
|
|
145
|
-
@apply
|
|
145
|
+
@apply transition-transform duration-150 text-muted pointer-events-none;
|
|
146
146
|
@apply dark:text-dark-muted;
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
v-show="isOpen"
|
|
36
36
|
ref="menu"
|
|
37
37
|
data-testid="dropdown-menu"
|
|
38
|
-
class="dropdown__menu"
|
|
38
|
+
class="dropdown__menu"
|
|
39
|
+
:class="menuClass">
|
|
39
40
|
<DropdownGroup
|
|
40
41
|
ref="wizard"
|
|
41
42
|
class="dropdown__menu__container">
|
|
@@ -123,6 +124,14 @@ export default defineComponent({
|
|
|
123
124
|
divider: {
|
|
124
125
|
type: Boolean,
|
|
125
126
|
default: false
|
|
127
|
+
},
|
|
128
|
+
menuClass: {
|
|
129
|
+
type: [
|
|
130
|
+
String,
|
|
131
|
+
Array,
|
|
132
|
+
Object
|
|
133
|
+
],
|
|
134
|
+
default: void 0
|
|
126
135
|
}
|
|
127
136
|
},
|
|
128
137
|
models: {
|
|
@@ -183,18 +192,20 @@ export default defineComponent({
|
|
|
183
192
|
}
|
|
184
193
|
});
|
|
185
194
|
onKeyStroke(["ArrowUp"], (event) => {
|
|
186
|
-
|
|
187
|
-
|
|
195
|
+
if (isOpen.value) {
|
|
196
|
+
event.preventDefault();
|
|
188
197
|
prevFocus();
|
|
198
|
+
}
|
|
189
199
|
});
|
|
190
200
|
onKeyStroke(["ArrowDown"], (event) => {
|
|
191
|
-
|
|
192
|
-
|
|
201
|
+
if (isOpen.value) {
|
|
202
|
+
event.preventDefault();
|
|
193
203
|
nextFocus();
|
|
204
|
+
}
|
|
194
205
|
});
|
|
195
206
|
onKeyStroke(["Tab"], (event) => {
|
|
196
|
-
event.preventDefault();
|
|
197
207
|
if (isOpen.value) {
|
|
208
|
+
event.preventDefault();
|
|
198
209
|
if (event.shiftKey)
|
|
199
210
|
prevFocus();
|
|
200
211
|
else
|
|
@@ -46,6 +46,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
|
+
menuClass: {
|
|
50
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
49
53
|
}, {
|
|
50
54
|
isOpen: import("vue-demi").Ref<boolean>;
|
|
51
55
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
@@ -97,6 +101,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
97
101
|
type: BooleanConstructor;
|
|
98
102
|
default: boolean;
|
|
99
103
|
};
|
|
104
|
+
menuClass: {
|
|
105
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
100
108
|
}>> & {
|
|
101
109
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
102
110
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -104,14 +112,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
104
112
|
}, {
|
|
105
113
|
variant: StyleVariant;
|
|
106
114
|
size: SizeVariant;
|
|
115
|
+
color: ColorVariant;
|
|
107
116
|
icon: boolean;
|
|
108
117
|
text: string;
|
|
109
|
-
color: ColorVariant;
|
|
110
118
|
pill: boolean;
|
|
111
119
|
modelValue: boolean;
|
|
112
120
|
disabled: boolean;
|
|
113
121
|
placement: Placement;
|
|
114
122
|
noCaret: boolean;
|
|
115
123
|
divider: boolean;
|
|
124
|
+
menuClass: string | unknown[] | Record<string, any>;
|
|
116
125
|
}>;
|
|
117
126
|
export default _default;
|
|
@@ -101,7 +101,7 @@ export default defineComponent({
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&__hint {
|
|
104
|
-
@apply absolute
|
|
104
|
+
@apply absolute right-0 text-info cursor-pointer focus:outline-none;
|
|
105
105
|
@apply dark:text-dark-info;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="input"
|
|
4
4
|
data-testid="input-container">
|
|
5
|
-
<
|
|
5
|
+
<span
|
|
6
|
+
v-if="$slots.prepend"
|
|
7
|
+
class="input__prepend">
|
|
8
|
+
<slot name="prepend" />
|
|
9
|
+
</span>
|
|
6
10
|
<input
|
|
7
11
|
v-model="model"
|
|
8
12
|
class="input__form"
|
|
@@ -16,7 +20,11 @@
|
|
|
16
20
|
class="input__clear"
|
|
17
21
|
data-testid="input-clear"
|
|
18
22
|
@click="clear" />
|
|
19
|
-
<
|
|
23
|
+
<span
|
|
24
|
+
v-if="$slots.append"
|
|
25
|
+
class="input__append">
|
|
26
|
+
<slot name="append" />
|
|
27
|
+
</span>
|
|
20
28
|
</div>
|
|
21
29
|
</template>
|
|
22
30
|
|
|
@@ -63,7 +71,7 @@ export default defineComponent({
|
|
|
63
71
|
event: "update:modelValue"
|
|
64
72
|
},
|
|
65
73
|
emits: ["update:modelValue", "clear"],
|
|
66
|
-
setup(props, { emit }) {
|
|
74
|
+
setup(props, { emit, slots }) {
|
|
67
75
|
const model = useVModel(props);
|
|
68
76
|
const setting = inject(INPUTGROUP_SETTING, void 0, false);
|
|
69
77
|
const classNames = computed(() => {
|
|
@@ -80,6 +88,10 @@ export default defineComponent({
|
|
|
80
88
|
result.push("input--error", "state--error");
|
|
81
89
|
if (props.clearable)
|
|
82
90
|
result.push("input--clearable");
|
|
91
|
+
if (slots.prepend)
|
|
92
|
+
result.push("input--has-prepend");
|
|
93
|
+
if (slots.append)
|
|
94
|
+
result.push("input--has-append");
|
|
83
95
|
return result;
|
|
84
96
|
});
|
|
85
97
|
function clear(event) {
|
|
@@ -113,7 +125,7 @@ export default defineComponent({
|
|
|
113
125
|
}
|
|
114
126
|
|
|
115
127
|
&:focus {
|
|
116
|
-
@apply border-subtle ring-4 ring-subtle/10 z-
|
|
128
|
+
@apply border-subtle ring-4 ring-subtle/10 z-1;
|
|
117
129
|
@apply dark:border-dark-subtle dark:ring-dark-subtle/10;
|
|
118
130
|
}
|
|
119
131
|
}
|
|
@@ -152,6 +164,35 @@ export default defineComponent({
|
|
|
152
164
|
+ .input__clear {
|
|
153
165
|
@apply absolute right-3 top-1/2 -translate-y-1/2;
|
|
154
166
|
}
|
|
167
|
+
|
|
168
|
+
&:where(.input--has-append) {
|
|
169
|
+
+ .input__clear {
|
|
170
|
+
@apply right-10;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&__prepend,
|
|
176
|
+
&__append {
|
|
177
|
+
@apply absolute top-0 h-full flex items-center z-1;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&__prepend {
|
|
181
|
+
@apply left-3;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&__append {
|
|
185
|
+
@apply right-3;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&--has {
|
|
189
|
+
&-prepend {
|
|
190
|
+
@apply pl-9;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&-append {
|
|
194
|
+
@apply pr-9;
|
|
195
|
+
}
|
|
155
196
|
}
|
|
156
197
|
}
|
|
157
198
|
</style>
|
|
@@ -6,21 +6,32 @@
|
|
|
6
6
|
|
|
7
7
|
<style lang="postcss">
|
|
8
8
|
.main {
|
|
9
|
+
--p-spacer: 1rem;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Heading
|
|
13
|
+
*/
|
|
14
|
+
h1, h2, h3, h4, h5, h6 {
|
|
15
|
+
--p-heading-margin-bottom: calc(var(--p-spacer) * .5);
|
|
16
|
+
@apply mb-[var(--p-heading-margin-bottom)];
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
/**
|
|
10
20
|
* Permalink
|
|
11
21
|
*/
|
|
12
22
|
a {
|
|
13
23
|
--p-color-link-hover: darken(theme(textColor.link), 5%);
|
|
14
24
|
--p-color-dark-link-hover: darken(theme(textColor.link), 5%);
|
|
15
|
-
@apply underline text-link hover:text-[color:var(--p-color-
|
|
16
|
-
@apply dark:text-dark-link hover:dark:text-[color:var(--p-color-dark-
|
|
25
|
+
@apply underline text-link hover:text-[color:var(--p-color-link-hover)];
|
|
26
|
+
@apply dark:text-dark-link hover:dark:text-[color:var(--p-color-dark-link-hover)];
|
|
17
27
|
}
|
|
18
28
|
|
|
19
29
|
/**
|
|
20
30
|
* Paragraph
|
|
21
31
|
*/
|
|
22
32
|
p {
|
|
23
|
-
|
|
33
|
+
--p-paragraph-margin-bottom: var(--p-spacer);
|
|
34
|
+
@apply mt-0 mb-[var(--p-paragraph-margin-bottom)] text-base text-default;
|
|
24
35
|
@apply dark:text-dark-default;
|
|
25
36
|
}
|
|
26
37
|
|
|
@@ -176,7 +176,7 @@ export default defineComponent({
|
|
|
176
176
|
--p-modal-size-lg: 800px;
|
|
177
177
|
--p-modal-size-md: 600px;
|
|
178
178
|
--p-modal-size-sm: 400px;
|
|
179
|
-
--p-modal-z-index:
|
|
179
|
+
--p-modal-z-index: theme(zIndex.modal);
|
|
180
180
|
--p-modal-dismiss-z-index: calc(var(--p-modal-z-index) + 1);
|
|
181
181
|
|
|
182
182
|
/**
|
|
@@ -206,7 +206,7 @@ export default defineComponent({
|
|
|
206
206
|
* in white
|
|
207
207
|
*/
|
|
208
208
|
&__content {
|
|
209
|
-
@apply my-8 bg-default rounded relative shadow-2xl;
|
|
209
|
+
@apply my-8 bg-default rounded relative shadow-2xl max-w-[calc(100vw_-_theme('spacing.4'))];
|
|
210
210
|
@apply dark:bg-dark-default;
|
|
211
211
|
|
|
212
212
|
.modal__dismiss {
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
data-testid="nav-item-dropdown"
|
|
4
4
|
class="nav__item nav__item--dropdown">
|
|
5
5
|
<Dropdown
|
|
6
|
+
v-model="model"
|
|
6
7
|
:text="text"
|
|
7
8
|
:icon="icon"
|
|
8
9
|
:variant="variant"
|
|
9
10
|
:size="size"
|
|
10
|
-
placement="
|
|
11
|
-
:no-caret="noCaret"
|
|
11
|
+
:placement="placement"
|
|
12
|
+
:no-caret="noCaret"
|
|
13
|
+
:menu-class="menuClass">
|
|
12
14
|
<template #button-content>
|
|
13
15
|
<slot name="button-content">
|
|
14
16
|
{{ text }}
|
|
15
17
|
</slot>
|
|
16
18
|
</template>
|
|
17
|
-
|
|
18
19
|
<slot />
|
|
19
20
|
</Dropdown>
|
|
20
21
|
</li>
|
|
@@ -23,9 +24,14 @@
|
|
|
23
24
|
<script>
|
|
24
25
|
import { defineComponent } from "vue-demi";
|
|
25
26
|
import Dropdown from "../dropdown/Dropdown.vue";
|
|
27
|
+
import { useVModel } from "../input";
|
|
26
28
|
export default defineComponent({
|
|
27
29
|
components: { Dropdown },
|
|
28
30
|
props: {
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
29
35
|
text: {
|
|
30
36
|
type: String,
|
|
31
37
|
default: ""
|
|
@@ -45,7 +51,28 @@ export default defineComponent({
|
|
|
45
51
|
noCaret: {
|
|
46
52
|
type: Boolean,
|
|
47
53
|
default: false
|
|
54
|
+
},
|
|
55
|
+
placement: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "bottom-end"
|
|
58
|
+
},
|
|
59
|
+
menuClass: {
|
|
60
|
+
type: [
|
|
61
|
+
String,
|
|
62
|
+
Array,
|
|
63
|
+
Object
|
|
64
|
+
],
|
|
65
|
+
default: void 0
|
|
48
66
|
}
|
|
67
|
+
},
|
|
68
|
+
models: {
|
|
69
|
+
prop: "modelValue",
|
|
70
|
+
event: "update:modelValue"
|
|
71
|
+
},
|
|
72
|
+
emits: ["update:modelValue"],
|
|
73
|
+
setup(props) {
|
|
74
|
+
const model = useVModel(props);
|
|
75
|
+
return { model };
|
|
49
76
|
}
|
|
50
77
|
});
|
|
51
78
|
</script>
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
+
import { Placement } from '@floating-ui/core';
|
|
2
3
|
import type { SizeVariant, StyleVariant } from '../button';
|
|
3
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
4
9
|
text: {
|
|
5
10
|
type: StringConstructor;
|
|
6
11
|
default: string;
|
|
@@ -21,7 +26,21 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
21
26
|
type: BooleanConstructor;
|
|
22
27
|
default: boolean;
|
|
23
28
|
};
|
|
24
|
-
|
|
29
|
+
placement: {
|
|
30
|
+
type: PropType<Placement>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
menuClass: {
|
|
34
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
model: import("vue-demi").Ref<boolean>;
|
|
39
|
+
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
25
44
|
text: {
|
|
26
45
|
type: StringConstructor;
|
|
27
46
|
default: string;
|
|
@@ -42,11 +61,24 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
42
61
|
type: BooleanConstructor;
|
|
43
62
|
default: boolean;
|
|
44
63
|
};
|
|
45
|
-
|
|
64
|
+
placement: {
|
|
65
|
+
type: PropType<Placement>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
menuClass: {
|
|
69
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
}>> & {
|
|
73
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
}, {
|
|
46
75
|
variant: StyleVariant;
|
|
47
76
|
size: SizeVariant;
|
|
48
77
|
icon: boolean;
|
|
49
78
|
text: string;
|
|
79
|
+
modelValue: boolean;
|
|
80
|
+
placement: Placement;
|
|
50
81
|
noCaret: boolean;
|
|
82
|
+
menuClass: string | unknown[] | Record<string, any>;
|
|
51
83
|
}>;
|
|
52
84
|
export default _default;
|
|
@@ -81,7 +81,7 @@ export default defineComponent({
|
|
|
81
81
|
|
|
82
82
|
<style lang="postcss">
|
|
83
83
|
.navbar {
|
|
84
|
-
--p-navbar-z-index:
|
|
84
|
+
--p-navbar-z-index: theme(zIndex.fixed);
|
|
85
85
|
|
|
86
86
|
@apply bg-default relative p-3 flex items-center flex-wrap transition-shadow duration-150 ease-in-out;
|
|
87
87
|
@apply dark:bg-dark-default;
|
|
@@ -53,7 +53,9 @@ export default defineComponent({
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.overlay {
|
|
56
|
-
|
|
56
|
+
--p-overlay-z-index: theme(zIndex.overlay);
|
|
57
|
+
|
|
58
|
+
@apply z-[var(--p-overlay-z-index)] fixed top-0 left-0 right-0 bottom-0 w-screen h-screen bg-inverse/30 flex items-center justify-center select-none will-change-[transform,opacity];
|
|
57
59
|
@apply dark:bg-dark-inverse/30;
|
|
58
60
|
|
|
59
61
|
&__icon {
|
|
@@ -82,10 +82,8 @@ export default defineComponent({
|
|
|
82
82
|
onend(event) {
|
|
83
83
|
if (event.relatedTarget) {
|
|
84
84
|
const reference = event.relatedTarget;
|
|
85
|
-
const container = reference.closest(".pdf-objects");
|
|
86
85
|
const result = getPosition({
|
|
87
86
|
reference,
|
|
88
|
-
container,
|
|
89
87
|
object: object.value,
|
|
90
88
|
scale: scale.value
|
|
91
89
|
});
|
|
@@ -68,7 +68,7 @@ export default defineComponent({
|
|
|
68
68
|
|
|
69
69
|
&__debugger {
|
|
70
70
|
@apply grid grid-cols-1 p-4 bg-inverse text-on-emphasis absolute rounded w-[var(--p-pdf-debugger-size)];
|
|
71
|
-
@apply dark:bg-dark-inverse dark:text-dark-on-emphasis;
|
|
71
|
+
/* @apply dark:bg-dark-inverse dark:text-dark-on-emphasis; */
|
|
72
72
|
|
|
73
73
|
> pre {
|
|
74
74
|
@apply truncate;
|
|
@@ -43,12 +43,12 @@ export function useViewer(container, viewer) {
|
|
|
43
43
|
pdfDoc.value = await pdfLoadingTask.value.promise;
|
|
44
44
|
pdfViewer.value.setDocument(pdfDoc.value);
|
|
45
45
|
pdfLinkService.value.setDocument(pdfDoc.value);
|
|
46
|
-
loadEvent.trigger(pdfDoc.value);
|
|
46
|
+
void loadEvent.trigger(pdfDoc.value);
|
|
47
47
|
}
|
|
48
48
|
} catch (error_) {
|
|
49
49
|
if (error_ instanceof Error) {
|
|
50
50
|
error.value = error_;
|
|
51
|
-
errorEvent.trigger(error_);
|
|
51
|
+
void errorEvent.trigger(error_);
|
|
52
52
|
}
|
|
53
53
|
} finally {
|
|
54
54
|
loading.value = false;
|
|
@@ -77,7 +77,7 @@ export function useViewer(container, viewer) {
|
|
|
77
77
|
pdfViewer.value.currentScaleValue = isWide ? "1" : "page-width";
|
|
78
78
|
pdfViewer.value.currentPageNumber = page.value;
|
|
79
79
|
ready.value = true;
|
|
80
|
-
readyEvent.trigger(pdfViewer.value);
|
|
80
|
+
void readyEvent.trigger(pdfViewer.value);
|
|
81
81
|
});
|
|
82
82
|
bus.on("pagechanging", (event) => {
|
|
83
83
|
page.value = event.pageNumber;
|
|
@@ -79,6 +79,7 @@ export default defineComponent({
|
|
|
79
79
|
.sidebar {
|
|
80
80
|
--p-sidebar-size-narrow: 60px;
|
|
81
81
|
--p-sidebar-size-wide: 230px;
|
|
82
|
+
--p-sidebar-z-index: theme(zIndex.fixed);
|
|
82
83
|
|
|
83
84
|
@apply bg-default px-2 py-4;
|
|
84
85
|
@apply dark:bg-dark-default;
|
|
@@ -104,7 +105,7 @@ export default defineComponent({
|
|
|
104
105
|
* Fixed sidebar
|
|
105
106
|
*/
|
|
106
107
|
&&--fixed {
|
|
107
|
-
@apply fixed top-0 h-full shadow-lg overflow-y-auto;
|
|
108
|
+
@apply fixed z-[var(--p-sidebar-z-index)] top-0 h-full shadow-lg overflow-y-auto;
|
|
108
109
|
|
|
109
110
|
&:not(.sidebar--right) {
|
|
110
111
|
@apply left-0;
|
|
@@ -39,7 +39,7 @@ export default defineComponent({
|
|
|
39
39
|
|
|
40
40
|
&:nth-child(1),
|
|
41
41
|
&:nth-child(3) {
|
|
42
|
-
@apply opacity-25 absolute top-0 left-0 origin-bottom transition-transform z-
|
|
42
|
+
@apply opacity-25 absolute top-0 left-0 origin-bottom transition-transform z-1 will-change-transform;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -23,6 +23,14 @@ export default defineComponent({
|
|
|
23
23
|
href: {
|
|
24
24
|
type: String,
|
|
25
25
|
default: void 0
|
|
26
|
+
},
|
|
27
|
+
weight: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "normal"
|
|
30
|
+
},
|
|
31
|
+
transform: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "normalcase"
|
|
26
34
|
}
|
|
27
35
|
},
|
|
28
36
|
setup(props) {
|
|
@@ -34,6 +42,10 @@ export default defineComponent({
|
|
|
34
42
|
const result = [""];
|
|
35
43
|
if (props.variant)
|
|
36
44
|
result.push(`freetext--${props.variant}`);
|
|
45
|
+
if (props.weight)
|
|
46
|
+
result.push(`freetext--${props.weight}`);
|
|
47
|
+
if (props.transform)
|
|
48
|
+
result.push(`freetext--${props.transform}`);
|
|
37
49
|
if (props.href)
|
|
38
50
|
result.push("freetext--hyperlink");
|
|
39
51
|
if (props.href && (props.variant === "caption" || props.variant === "caption2"))
|
|
@@ -54,10 +66,42 @@ export default defineComponent({
|
|
|
54
66
|
@apply underline decoration-solid;
|
|
55
67
|
}
|
|
56
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Weight variant
|
|
71
|
+
* of text
|
|
72
|
+
*/
|
|
73
|
+
&--normal {
|
|
74
|
+
@apply font-normal;
|
|
75
|
+
}
|
|
76
|
+
|
|
57
77
|
&--medium {
|
|
58
78
|
@apply font-medium;
|
|
59
79
|
}
|
|
60
80
|
|
|
81
|
+
&--bold {
|
|
82
|
+
@apply font-bold;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Text transform
|
|
87
|
+
* of text
|
|
88
|
+
*/
|
|
89
|
+
&--normalcase {
|
|
90
|
+
@apply normal-case;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&--lowercase {
|
|
94
|
+
@apply lowercase;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&--capitalize {
|
|
98
|
+
@apply capitalize;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&--uppercase {
|
|
102
|
+
@apply uppercase;
|
|
103
|
+
}
|
|
104
|
+
|
|
61
105
|
/**
|
|
62
106
|
* Heading Style
|
|
63
107
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { StyleVariant } from '.';
|
|
3
|
+
import { WeightVariant, TransformVariant } from '../heading';
|
|
3
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
5
|
variant: {
|
|
5
6
|
type: PropType<StyleVariant>;
|
|
@@ -9,6 +10,14 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
9
10
|
type: StringConstructor;
|
|
10
11
|
default: undefined;
|
|
11
12
|
};
|
|
13
|
+
weight: {
|
|
14
|
+
type: PropType<WeightVariant>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
transform: {
|
|
18
|
+
type: PropType<TransformVariant>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
12
21
|
}, {
|
|
13
22
|
hyperlink: import("vue-demi").ComputedRef<String>;
|
|
14
23
|
classNames: import("vue-demi").ComputedRef<String[]>;
|
|
@@ -21,8 +30,18 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
21
30
|
type: StringConstructor;
|
|
22
31
|
default: undefined;
|
|
23
32
|
};
|
|
33
|
+
weight: {
|
|
34
|
+
type: PropType<WeightVariant>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
transform: {
|
|
38
|
+
type: PropType<TransformVariant>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
24
41
|
}>>, {
|
|
25
42
|
variant: StyleVariant;
|
|
26
43
|
href: string;
|
|
44
|
+
weight: WeightVariant;
|
|
45
|
+
transform: TransformVariant;
|
|
27
46
|
}>;
|
|
28
47
|
export default _default;
|
|
@@ -44,7 +44,7 @@ export default defineComponent({
|
|
|
44
44
|
|
|
45
45
|
<style lang="postcss">
|
|
46
46
|
.toast-container {
|
|
47
|
-
@apply fixed top-0 right-0
|
|
47
|
+
@apply z-[var(--p-toast-z-index)] fixed top-0 right-0 flex flex-col space-y-2 max-h-screen overflow-visible;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.toast {
|
|
@@ -114,7 +114,9 @@ export default defineComponent({
|
|
|
114
114
|
|
|
115
115
|
<style lang="postcss">
|
|
116
116
|
.tooltip {
|
|
117
|
-
|
|
117
|
+
--p-tooltip-z-index: theme(zIndex.tooltip);
|
|
118
|
+
|
|
119
|
+
@apply z-[var(--p-tooltip-z-index)] px-4 py-3 rounded text-xs inline-block absolute drop-shadow-sm;
|
|
118
120
|
|
|
119
121
|
&__arrow {
|
|
120
122
|
@apply absolute after:w-4 after:h-4 after:block after:rounded-[3px] after:rotate-45 after:left-0 after:content-[''] after:z-0;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
data-testid="tour-control-finish"
|
|
66
66
|
size="xs"
|
|
67
67
|
variant="solid"
|
|
68
|
-
color="
|
|
68
|
+
color="info"
|
|
69
69
|
@click="$emit('next', $event)">
|
|
70
70
|
{{ finishLabel }}
|
|
71
71
|
</p-button>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
data-testid="tour-control-next"
|
|
75
75
|
size="xs"
|
|
76
76
|
variant="solid"
|
|
77
|
-
color="
|
|
77
|
+
color="info"
|
|
78
78
|
@click="$emit('next', $event)">
|
|
79
79
|
{{ nextLabel }}
|
|
80
80
|
</p-button>
|
|
@@ -158,7 +158,7 @@ export default defineComponent({
|
|
|
158
158
|
<style lang="postcss">
|
|
159
159
|
.tour {
|
|
160
160
|
&__dialog {
|
|
161
|
-
@apply rounded bg-inverse w-full max-w-xs
|
|
161
|
+
@apply z-[var(--p-tour-z-index)] rounded bg-inverse w-full max-w-xs overflow-hidden relative shadow-sm;
|
|
162
162
|
@apply dark:bg-dark-inverse;
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -47,11 +47,11 @@ export default defineComponent({
|
|
|
47
47
|
<style lang="postcss">
|
|
48
48
|
.tour {
|
|
49
49
|
&__backdrop {
|
|
50
|
-
@apply fixed inset-0 overflow-hidden w-full h-full z-[
|
|
50
|
+
@apply fixed inset-0 overflow-hidden w-full h-full z-[var(--p-tour-backdrop-z-index)];
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&__highlight {
|
|
54
|
-
@apply absolute shadow-mask cursor-pointer rounded-tn;
|
|
54
|
+
@apply z-[var(--p-tour-z-index)] absolute shadow-mask cursor-pointer rounded-tn;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
</style>
|
|
@@ -80,7 +80,7 @@ export class Tour extends AbstractTour {
|
|
|
80
80
|
* Run "on-finished" hooks
|
|
81
81
|
*/
|
|
82
82
|
async runOnFinishedHooks() {
|
|
83
|
-
await Promise.allSettled(this.onFinishedHooks.map((hook) => hook()));
|
|
83
|
+
await Promise.allSettled(this.onFinishedHooks.map(async (hook) => await hook()));
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* Execute current step
|
package/dist/module.json
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ declare module '@nuxt/schema' {
|
|
|
6
6
|
interface NuxtOptions { ['persona']?: ModuleOptions }
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
declare module 'nuxt/schema' {
|
|
10
|
+
interface NuxtConfig { ['persona']?: Partial<ModuleOptions> }
|
|
11
|
+
interface NuxtOptions { ['persona']?: ModuleOptions }
|
|
12
|
+
}
|
|
13
|
+
|
|
9
14
|
|
|
10
15
|
export { ModuleOptions, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@privyid/persona",
|
|
3
|
-
"
|
|
3
|
+
"description": "Persona core package",
|
|
4
|
+
"version": "0.13.0",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"url": "https://github.com/privy-open-source/design-system.git",
|
|
@@ -60,9 +61,9 @@
|
|
|
60
61
|
"@nuxt/kit": "^3.3.2",
|
|
61
62
|
"@testing-library/dom": "^8.19.0",
|
|
62
63
|
"@testing-library/user-event": "^14.4.3",
|
|
63
|
-
"@vueuse/core": "
|
|
64
|
-
"@vueuse/math": "
|
|
65
|
-
"@zxing/browser": "0.1.
|
|
64
|
+
"@vueuse/core": "10.1.2",
|
|
65
|
+
"@vueuse/math": "10.1.2",
|
|
66
|
+
"@zxing/browser": "0.1.3",
|
|
66
67
|
"@zxing/library": "0.19.2",
|
|
67
68
|
"chart.js": "4.2.1",
|
|
68
69
|
"core-js": "3",
|
|
@@ -87,23 +88,23 @@
|
|
|
87
88
|
"extends @privyid/browserslist-config"
|
|
88
89
|
],
|
|
89
90
|
"peerDependencies": {
|
|
90
|
-
"@privyid/tailwind-preset": "^0.
|
|
91
|
+
"@privyid/tailwind-preset": "^0.13.0",
|
|
91
92
|
"postcss-custom-properties": "^12.1.11",
|
|
92
93
|
"postcss-hexrgba": "^2.1.0",
|
|
93
94
|
"postcss-lighten-darken": "^0.9.0",
|
|
94
|
-
"tailwind": ">=
|
|
95
|
+
"tailwind": ">=3.0.0",
|
|
95
96
|
"vue-router": ">=4.0.0"
|
|
96
97
|
},
|
|
97
98
|
"devDependencies": {
|
|
98
99
|
"@nuxt/module-builder": "^0.3.0",
|
|
99
100
|
"@nuxt/schema": "3.3.3",
|
|
100
101
|
"@nuxtjs/tailwindcss": "^6.2.0",
|
|
101
|
-
"@privyid/browserslist-config": "^0.
|
|
102
|
-
"@privyid/tailwind-preset": "^0.
|
|
102
|
+
"@privyid/browserslist-config": "^0.13.0",
|
|
103
|
+
"@privyid/tailwind-preset": "^0.13.0",
|
|
103
104
|
"@types/sanitize-html": "^2",
|
|
104
105
|
"browserslist-to-esbuild": "^1.2.0",
|
|
105
106
|
"nuxt": "3.3.3",
|
|
106
|
-
"postcss-custom-properties": "^
|
|
107
|
+
"postcss-custom-properties": "^13.0.0",
|
|
107
108
|
"postcss-hexrgba": "^2.1.0",
|
|
108
109
|
"postcss-lighten-darken": "^0.9.0",
|
|
109
110
|
"tailwind": "^4.0.0"
|