pdap-design-system 3.1.0-beta.37 → 3.1.0-beta.39
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/AsyncTypeahead/AsyncTypeahead.vue.d.ts +85 -0
- package/dist/components/AsyncTypeahead/index.d.ts +1 -0
- package/dist/components/AsyncTypeahead/types.d.ts +7 -0
- package/dist/components/ErrorBoundary/PdapErrorBoundary.vue.d.ts +3 -3
- package/dist/components/Footer/PdapFooter.vue.d.ts +1 -11
- package/dist/components/Footer/constants.d.ts +1 -1
- package/dist/components/Footer/types.d.ts +0 -6
- package/dist/components/Form/PdapForm.vue.d.ts +1 -1
- package/dist/components/FormV2/PdapFormV2.vue.d.ts +1 -1
- package/dist/components/Header/PdapHeader.vue.d.ts +4 -7
- package/dist/components/Header/types.d.ts +1 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/demo/pages/TypeaheadDemo.vue.d.ts +2 -0
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4476 -4367
- package/dist/styles.css +1 -1
- package/docs/components.md +1 -0
- package/package.json +1 -1
@@ -0,0 +1,85 @@
|
|
1
|
+
declare const _default: <T>(__VLS_props: {
|
2
|
+
onOnInput?: ((...args: any[]) => any) | undefined;
|
3
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
4
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
5
|
+
onSelectItem?: ((...args: any[]) => any) | undefined;
|
6
|
+
id: string;
|
7
|
+
placeholder?: string | undefined;
|
8
|
+
items: T[] | undefined;
|
9
|
+
formatItemForDisplay?: ((item: T) => string) | undefined;
|
10
|
+
error?: string | undefined;
|
11
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
12
|
+
attrs: any;
|
13
|
+
emit: (event: "onInput" | "onFocus" | "onBlur" | "selectItem", ...args: any[]) => void;
|
14
|
+
slots: {
|
15
|
+
label?(_: {}): any;
|
16
|
+
error?(_: {}): any;
|
17
|
+
item?(_: T): any;
|
18
|
+
"not-found"?(_: {}): any;
|
19
|
+
};
|
20
|
+
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
21
|
+
boldMatchText: (text: string) => string;
|
22
|
+
clearInput: () => void;
|
23
|
+
focusInput: () => void;
|
24
|
+
readonly value: string;
|
25
|
+
}>) => void) | undefined, __VLS_setup?: Promise<{
|
26
|
+
props: {
|
27
|
+
onOnInput?: ((...args: any[]) => any) | undefined;
|
28
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
29
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
30
|
+
onSelectItem?: ((...args: any[]) => any) | undefined;
|
31
|
+
id: string;
|
32
|
+
placeholder?: string | undefined;
|
33
|
+
items: T[] | undefined;
|
34
|
+
formatItemForDisplay?: ((item: T) => string) | undefined;
|
35
|
+
error?: string | undefined;
|
36
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
37
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
38
|
+
boldMatchText: (text: string) => string;
|
39
|
+
clearInput: () => void;
|
40
|
+
focusInput: () => void;
|
41
|
+
readonly value: string;
|
42
|
+
}>): void;
|
43
|
+
attrs: any;
|
44
|
+
slots: {
|
45
|
+
label?(_: {}): any;
|
46
|
+
error?(_: {}): any;
|
47
|
+
item?(_: T): any;
|
48
|
+
"not-found"?(_: {}): any;
|
49
|
+
};
|
50
|
+
emit: (event: "onInput" | "onFocus" | "onBlur" | "selectItem", ...args: any[]) => void;
|
51
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
52
|
+
[key: string]: any;
|
53
|
+
}> & {
|
54
|
+
__ctx?: {
|
55
|
+
props: {
|
56
|
+
onOnInput?: ((...args: any[]) => any) | undefined;
|
57
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
58
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
59
|
+
onSelectItem?: ((...args: any[]) => any) | undefined;
|
60
|
+
id: string;
|
61
|
+
placeholder?: string | undefined;
|
62
|
+
items: T[] | undefined;
|
63
|
+
formatItemForDisplay?: ((item: T) => string) | undefined;
|
64
|
+
error?: string | undefined;
|
65
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
66
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
67
|
+
boldMatchText: (text: string) => string;
|
68
|
+
clearInput: () => void;
|
69
|
+
focusInput: () => void;
|
70
|
+
readonly value: string;
|
71
|
+
}>): void;
|
72
|
+
attrs: any;
|
73
|
+
slots: {
|
74
|
+
label?(_: {}): any;
|
75
|
+
error?(_: {}): any;
|
76
|
+
item?(_: T): any;
|
77
|
+
"not-found"?(_: {}): any;
|
78
|
+
};
|
79
|
+
emit: (event: "onInput" | "onFocus" | "onBlur" | "selectItem", ...args: any[]) => void;
|
80
|
+
} | undefined;
|
81
|
+
};
|
82
|
+
export default _default;
|
83
|
+
type __VLS_Prettify<T> = {
|
84
|
+
[K in keyof T]: T[K];
|
85
|
+
} & {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as AsyncTypeahead } from './AsyncTypeahead.vue';
|
@@ -16,11 +16,11 @@ import { PdapErrorBoundaryProps, PdapErrorEmitted } from './types';
|
|
16
16
|
*
|
17
17
|
* <template>
|
18
18
|
* <AuthWrapper>
|
19
|
-
* <Header
|
19
|
+
* <Header />
|
20
20
|
* <ErrorBoundary component="main">
|
21
21
|
* <router-view />
|
22
22
|
* </ErrorBoundary>
|
23
|
-
* <Footer
|
23
|
+
* <Footer />
|
24
24
|
* </AuthWrapper>
|
25
25
|
* </template>
|
26
26
|
*
|
@@ -53,8 +53,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
53
53
|
}>>> & {
|
54
54
|
onOnError?: ((args_0: PdapErrorEmitted) => any) | undefined;
|
55
55
|
}, {
|
56
|
-
params: Record<string, string>;
|
57
56
|
onError: (error: Error, target?: ComponentPublicInstance | null | undefined, info?: string | undefined) => void;
|
57
|
+
params: Record<string, string>;
|
58
58
|
component: string;
|
59
59
|
}, {}>, {
|
60
60
|
default?(_: {}): any;
|
@@ -1,17 +1,7 @@
|
|
1
|
-
import { PdapFooterProps } from './types';
|
2
1
|
/**
|
3
2
|
* # `Footer`
|
4
3
|
*
|
5
4
|
*
|
6
5
|
*/
|
7
|
-
declare const _default: import("vue").DefineComponent<
|
6
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
8
7
|
export default _default;
|
9
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
10
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
11
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
12
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
13
|
-
} : {
|
14
|
-
type: import('vue').PropType<T[K]>;
|
15
|
-
required: true;
|
16
|
-
};
|
17
|
-
};
|
@@ -3,9 +3,9 @@
|
|
3
3
|
*/
|
4
4
|
export declare const FOOTER_LINK_ICONS: {
|
5
5
|
readonly GITHUB: "github";
|
6
|
-
readonly LINKEDIN: "linkedin";
|
7
6
|
readonly DISCORD: "discord";
|
8
7
|
readonly JOBS: "jobs";
|
9
8
|
readonly NEWSLETTER: "newsletter";
|
10
9
|
readonly DOCS: "docs";
|
10
|
+
readonly EMAIL: "email";
|
11
11
|
};
|
@@ -6,9 +6,3 @@ export interface PdapFooterSocialLinks {
|
|
6
6
|
icon?: FooterIconName;
|
7
7
|
}
|
8
8
|
export type FooterIconName = (typeof FOOTER_LINK_ICONS)[keyof typeof FOOTER_LINK_ICONS];
|
9
|
-
export interface PdapFooterProps {
|
10
|
-
fundraisingData: {
|
11
|
-
raised: number;
|
12
|
-
goal: number;
|
13
|
-
};
|
14
|
-
}
|
@@ -113,8 +113,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
113
113
|
}>, {
|
114
114
|
setValues: <T extends Record<string, string>>(update: T) => void;
|
115
115
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
116
|
-
change: (...args: any[]) => void;
|
117
116
|
submit: (...args: any[]) => void;
|
117
|
+
change: (...args: any[]) => void;
|
118
118
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapFormProps>, {
|
119
119
|
error: null;
|
120
120
|
resetOn: string;
|
@@ -14,9 +14,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
14
14
|
custom: ((value: unknown) => boolean) | ((value: unknown) => boolean);
|
15
15
|
} | undefined>, Record<PropertyKey, unknown>>>;
|
16
16
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
17
|
-
change: (...args: any[]) => void;
|
18
17
|
error: (...args: any[]) => void;
|
19
18
|
submit: (...args: any[]) => void;
|
19
|
+
change: (...args: any[]) => void;
|
20
20
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapFormPropsV2>>> & {
|
21
21
|
onChange?: ((...args: any[]) => any) | undefined;
|
22
22
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
@@ -4,21 +4,18 @@ import { PdapHeaderProps } from './types';
|
|
4
4
|
*
|
5
5
|
* ## Props
|
6
6
|
* @prop {string} logoImageSrc Src for the PDAP logo image to be displayed
|
7
|
-
* @prop {string }
|
7
|
+
* @prop {string } logoAnchorPath Path for the link that wraps the PDAP logo image
|
8
8
|
*
|
9
9
|
* ## Notes
|
10
10
|
* The `Header` component does not require any props to be passed. But keep in mind that it is responsible for rendering the `Nav` component. Consuming applications will need to `provide` an array of nav links -- **there are no defaults for this**, you must `provide` these links either 1\. in a layout component (see example below), at the route level, or at the app level. This allows for flexibility in which links are rendered on which routes
|
11
11
|
*
|
12
12
|
*/
|
13
13
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapHeaderProps>, {
|
14
|
-
|
15
|
-
logoImageAnchorPath: string;
|
14
|
+
logoAnchorPath: string;
|
16
15
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapHeaderProps>, {
|
17
|
-
|
18
|
-
logoImageAnchorPath: string;
|
16
|
+
logoAnchorPath: string;
|
19
17
|
}>>>, {
|
20
|
-
|
21
|
-
logoImageAnchorPath: string;
|
18
|
+
logoAnchorPath: string;
|
22
19
|
}, {}>;
|
23
20
|
export default _default;
|
24
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
2
|
+
export default _default;
|