@kong/kongponents 9.31.3 → 9.31.4
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/kongponents.css +1 -1
- package/dist/kongponents.es.js +84 -123
- package/dist/kongponents.umd.js +1 -1
- package/dist/types/components/KModalFullscreen/KModalFullscreen.vue.d.ts +1 -1
- package/dist/types/components/KPrompt/KPrompt.vue.d.ts +5 -131
- package/dist/types/types/modal.d.ts +1 -0
- package/dist/types/types/prompt.d.ts +90 -6
- package/package.json +1 -1
|
@@ -1,7 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { ButtonAppearance } from './button';
|
|
2
|
+
import type { ModalAttributes } from './modal';
|
|
3
|
+
export interface PromptProps {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the prompt is shown.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Prompt title.
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Message to be displayed in prompt content section.
|
|
16
|
+
* @default ''
|
|
17
|
+
*/
|
|
18
|
+
message?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Text displayed in the action button.
|
|
21
|
+
* @default ''
|
|
22
|
+
*/
|
|
23
|
+
actionButtonText?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Appearance of the action button.
|
|
26
|
+
* One of ['primary', 'secondary', 'tertiary', 'danger', 'none'].
|
|
27
|
+
* @default 'primary'
|
|
28
|
+
*/
|
|
29
|
+
actionButtonAppearance?: ButtonAppearance;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the action button is disabled.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
actionButtonDisabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Text displayed in the cancel button.
|
|
37
|
+
* @default ''
|
|
38
|
+
*/
|
|
39
|
+
cancelButtonText?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Appearance of the cancel button.
|
|
42
|
+
* One of ['primary', 'secondary', 'tertiary', 'danger', 'none'].
|
|
43
|
+
* @default 'tertiary'
|
|
44
|
+
*/
|
|
45
|
+
cancelButtonAppearance?: ButtonAppearance;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the cancel button is disabled.
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
cancelButtonDisabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* A string the user must type before the action button becomes enabled.
|
|
53
|
+
* @default ''
|
|
54
|
+
*/
|
|
55
|
+
confirmationText?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Text shown above the input field when `confirmationText` prop is present.
|
|
58
|
+
* @default 'Type {confirmationText} to confirm your action.'
|
|
59
|
+
*/
|
|
60
|
+
confirmationPrompt?: string;
|
|
61
|
+
/**
|
|
62
|
+
* `KPrompt` provides a `modalAttributes` prop to expose secondary `KModal` component props for customization.
|
|
63
|
+
* @default {}
|
|
64
|
+
*/
|
|
65
|
+
modalAttributes?: ModalAttributes;
|
|
66
|
+
/**
|
|
67
|
+
* Error message text that will be displayed once user attempts to proceed after having typed in the wrong confirmation prompt.
|
|
68
|
+
* @default 'You must enter the text as indicated above to confirm.'
|
|
69
|
+
*/
|
|
70
|
+
errorMessage?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface PromptEmits {
|
|
73
|
+
/**
|
|
74
|
+
* Emitted when action button is clicked.
|
|
75
|
+
*/
|
|
76
|
+
proceed: [];
|
|
77
|
+
/**
|
|
78
|
+
* Emitted when cancel button is clicked.
|
|
79
|
+
*/
|
|
80
|
+
cancel: [];
|
|
81
|
+
}
|
|
82
|
+
export interface PromptSlots {
|
|
83
|
+
/**
|
|
84
|
+
* Slot for prompt content.
|
|
85
|
+
*/
|
|
86
|
+
default?(): any;
|
|
87
|
+
/**
|
|
88
|
+
* Slot for prompt title.
|
|
89
|
+
*/
|
|
90
|
+
title?(): any;
|
|
7
91
|
}
|