@propelinc/citrus-ui 1.0.5 → 1.3.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/README.md +39 -14
- package/dist/citrus-ui.cdn.css +1 -0
- package/dist/citrus-ui.css +1 -0
- package/dist/colors/colors.d.ts +31 -0
- package/dist/colors/theme.d.ts +3 -0
- package/dist/colors/util-classes.d.ts +11 -0
- package/dist/components/CAccordion.vue.d.ts +34 -0
- package/dist/components/CAccordionItem.vue.d.ts +39 -0
- package/dist/components/CAppBar.vue.d.ts +59 -0
- package/dist/components/CBadge.vue.d.ts +35 -0
- package/dist/components/CBottomSheet.vue.d.ts +90 -0
- package/dist/components/CButton/CButton.vue.d.ts +97 -0
- package/dist/components/CButton/types.d.ts +5 -0
- package/dist/components/CButtonStack.vue.d.ts +27 -0
- package/dist/components/CCard.vue.d.ts +53 -0
- package/dist/components/CCardFooter.vue.d.ts +20 -0
- package/dist/components/CCardHeader.vue.d.ts +22 -0
- package/dist/components/CCardSection.vue.d.ts +26 -0
- package/dist/components/CCheckbox.vue.d.ts +62 -0
- package/dist/components/CCol.vue.d.ts +30 -0
- package/dist/components/CDivider.vue.d.ts +9 -0
- package/dist/components/CDobField.vue.d.ts +60 -0
- package/dist/components/CDobSelect.vue.d.ts +50 -0
- package/dist/components/CEmailField.vue.d.ts +48 -0
- package/dist/components/CExpandTransition.vue.d.ts +29 -0
- package/dist/components/CFadeTransition.vue.d.ts +20 -0
- package/dist/components/CFileInput.vue.d.ts +50 -0
- package/dist/components/CFixedPageFooter.vue.d.ts +153 -0
- package/dist/components/CForm.vue.d.ts +44 -0
- package/dist/components/CFormFieldCounter.vue.d.ts +15 -0
- package/dist/components/CIconButton.vue.d.ts +97 -0
- package/dist/components/CLabel.vue.d.ts +36 -0
- package/dist/components/CListItem.vue.d.ts +56 -0
- package/dist/components/CListItemContent.vue.d.ts +27 -0
- package/dist/components/CListItemIcon.vue.d.ts +28 -0
- package/dist/components/CLoader.vue.d.ts +23 -0
- package/dist/components/CLogo.vue.d.ts +9 -0
- package/dist/components/CMaskedTextField.vue.d.ts +511 -0
- package/dist/components/CMenu.vue.d.ts +17 -0
- package/dist/components/CMenuItem.vue.d.ts +37 -0
- package/dist/components/CMenuLabel.vue.d.ts +20 -0
- package/dist/components/CModal.vue.d.ts +59 -0
- package/dist/components/CModalLoading.vue.d.ts +36 -0
- package/dist/components/CNotification.vue.d.ts +64 -0
- package/dist/components/CPhoneField.vue.d.ts +792 -0
- package/dist/components/CPill.vue.d.ts +41 -0
- package/dist/components/CPillGroup.vue.d.ts +39 -0
- package/dist/components/CPopup.vue.d.ts +37 -0
- package/dist/components/CProgressLinear.vue.d.ts +21 -0
- package/dist/components/CProgressRing.vue.d.ts +48 -0
- package/dist/components/CRadio.vue.d.ts +40 -0
- package/dist/components/CRadioGroup.vue.d.ts +54 -0
- package/dist/components/CRebrand.vue.d.ts +28 -0
- package/dist/components/CRow.vue.d.ts +41 -0
- package/dist/components/CSafeArea.vue.d.ts +18 -0
- package/dist/components/CSectionHeader.vue.d.ts +29 -0
- package/dist/components/CSelect.vue.d.ts +96 -0
- package/dist/components/CSkeleton.vue.d.ts +3 -0
- package/dist/components/CSkeletonLoaderCard.vue.d.ts +9 -0
- package/dist/components/CSkeletonLoaderCircle.vue.d.ts +3 -0
- package/dist/components/CSkeletonLoaderText.vue.d.ts +16 -0
- package/dist/components/CSlideFadeTransition.vue.d.ts +36 -0
- package/dist/components/CSplitInput.vue.d.ts +56 -0
- package/dist/components/CSquaredIcon.vue.d.ts +33 -0
- package/dist/components/CSsnField.vue.d.ts +798 -0
- package/dist/components/CStatusDot.vue.d.ts +10 -0
- package/dist/components/CSwitch.vue.d.ts +39 -0
- package/dist/components/CSwitchListItem.vue.d.ts +48 -0
- package/dist/components/CTextArea.vue.d.ts +96 -0
- package/dist/components/CTextField.vue.d.ts +129 -0
- package/dist/components/CTextLink.vue.d.ts +36 -0
- package/dist/components/CThirdPartyLogo.vue.d.ts +22 -0
- package/dist/components/CTimeago.vue.d.ts +12 -0
- package/dist/components/CToast.vue.d.ts +69 -0
- package/dist/components/CToastsList.vue.d.ts +3 -0
- package/dist/components/CValidationMessage.vue.d.ts +37 -0
- package/dist/components/CZipcodeField.vue.d.ts +796 -0
- package/dist/components/index.d.ts +66 -0
- package/dist/components/internal/CCloseButton.vue.d.ts +14 -0
- package/dist/composables/accessibility.d.ts +1 -0
- package/dist/composables/animation.d.ts +12 -0
- package/dist/composables/binding.d.ts +19 -0
- package/dist/composables/colors.d.ts +13 -0
- package/dist/composables/elements.d.ts +3 -0
- package/dist/composables/fields.d.ts +10 -0
- package/dist/composables/gestures.d.ts +53 -0
- package/dist/composables/i18n.d.ts +3 -0
- package/dist/composables/id.d.ts +11 -0
- package/dist/composables/input-mask.d.ts +18 -0
- package/dist/composables/router.d.ts +30 -0
- package/dist/composables/slots.d.ts +2 -0
- package/dist/composables/toast.d.ts +21 -0
- package/dist/composables/validations.d.ts +77 -0
- package/dist/icons.cdn.mjs +3 -0
- package/dist/icons.cdn.mjs.map +1 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.mjs +6 -0
- package/dist/icons.mjs.map +1 -0
- package/dist/index.cdn.mjs +9328 -12875
- package/dist/index.cdn.mjs.map +1 -1
- package/dist/index.cdn2.mjs +55255 -0
- package/dist/index.cdn2.mjs.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +3946 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/services/animation.d.ts +17 -0
- package/dist/services/directives/index.d.ts +2 -0
- package/dist/services/directives/scroll-into-view.d.ts +7 -0
- package/dist/services/directives/tap-animation.d.ts +6 -0
- package/dist/services/id.d.ts +22 -0
- package/dist/services/injections/accordions.d.ts +3 -0
- package/dist/services/injections/animations.d.ts +2 -0
- package/dist/services/injections/buttons.d.ts +4 -0
- package/dist/services/injections/forms.d.ts +6 -0
- package/dist/services/injections/icon-buttons.d.ts +3 -0
- package/dist/services/injections/pills.d.ts +4 -0
- package/dist/services/injections/radio.d.ts +10 -0
- package/dist/{styles/main.css → styles.css} +8 -6
- package/dist/theme/icons.d.ts +36 -0
- package/dist/types/CForm.d.ts +12 -0
- package/dist/types/font-awesome.d.ts +5 -0
- package/dist/types.d.ts +13 -0
- package/package.json +8 -3
- package/src/colors/colors.ts +8 -3
- package/src/components/CAccordion.vue +31 -24
- package/src/components/CAccordionItem.vue +46 -45
- package/src/components/CAppBar.vue +108 -101
- package/src/components/CBadge.vue +33 -25
- package/src/components/CBottomSheet.vue +212 -199
- package/src/components/CButton/CButton.vue +135 -147
- package/src/components/CButtonStack.vue +21 -13
- package/src/components/CCard.vue +72 -69
- package/src/components/CCardFooter.vue +5 -5
- package/src/components/CCardHeader.vue +9 -7
- package/src/components/CCardSection.vue +15 -8
- package/src/components/CCheckbox.vue +68 -69
- package/src/components/CCol.vue +21 -22
- package/src/components/CDivider.vue +9 -8
- package/src/components/CDobField.vue +114 -105
- package/src/components/CDobSelect.vue +162 -164
- package/src/components/CEmailField.vue +39 -27
- package/src/components/CExpandTransition.vue +14 -17
- package/src/components/CFadeTransition.vue +3 -3
- package/src/components/CFileInput.vue +57 -50
- package/src/components/CFixedPageFooter.vue +23 -17
- package/src/components/CForm.vue +67 -60
- package/src/components/CFormFieldCounter.vue +25 -28
- package/src/components/CIconButton.vue +84 -65
- package/src/components/CLabel.vue +19 -13
- package/src/components/CListItem.vue +67 -66
- package/src/components/CListItemContent.vue +14 -16
- package/src/components/CListItemIcon.vue +18 -14
- package/src/components/CLoader.vue +47 -56
- package/src/components/CLogo.vue +13 -12
- package/src/components/CMaskedTextField.vue +80 -64
- package/src/components/CMenu.vue +14 -6
- package/src/components/CMenuItem.vue +28 -22
- package/src/components/CMenuLabel.vue +6 -5
- package/src/components/CModal.vue +76 -71
- package/src/components/CModalLoading.vue +24 -15
- package/src/components/CNotification.vue +77 -28
- package/src/components/CPhoneField.vue +34 -25
- package/src/components/CPill.vue +92 -88
- package/src/components/CPillGroup.vue +30 -21
- package/src/components/CPopup.vue +46 -37
- package/src/components/CProgressLinear.vue +17 -11
- package/src/components/CProgressRing.vue +33 -33
- package/src/components/CRadio.vue +57 -57
- package/src/components/CRadioGroup.vue +85 -72
- package/src/components/CRow.vue +22 -20
- package/src/components/CSectionHeader.vue +20 -12
- package/src/components/CSelect.vue +89 -73
- package/src/components/CSkeletonLoaderCard.vue +9 -15
- package/src/components/CSkeletonLoaderCircle.vue +1 -9
- package/src/components/CSkeletonLoaderText.vue +17 -18
- package/src/components/CSlideFadeTransition.vue +12 -34
- package/src/components/CSplitInput.vue +46 -45
- package/src/components/CSquaredIcon.vue +39 -29
- package/src/components/CSsnField.vue +48 -36
- package/src/components/CStatusDot.vue +16 -16
- package/src/components/CSwitch.vue +31 -22
- package/src/components/CSwitchListItem.vue +27 -28
- package/src/components/CTextArea.vue +116 -83
- package/src/components/CTextField.vue +194 -198
- package/src/components/CTextLink.vue +28 -25
- package/src/components/CThirdPartyLogo.vue +30 -59
- package/src/components/CToast.vue +135 -132
- package/src/components/CToastsList.vue +2 -15
- package/src/components/CValidationMessage.vue +31 -24
- package/src/components/CZipcodeField.vue +40 -27
- package/src/composables/elements.ts +1 -1
- package/src/composables/fields.ts +4 -4
- package/src/composables/router.ts +6 -5
- package/src/icons.ts +6 -0
- package/src/services/injections/buttons.ts +1 -1
- package/src/styles/_core.scss +1 -2
- package/src/styles/_reset.scss +1 -1
- package/src/types.ts +2 -0
- package/dist/index.cdn.css +0 -1
- package/dist/styles/utils.css +0 -2709
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { VNode, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
|
|
2
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** The HTML tag to render as. Avoid changing this if possible. */
|
|
5
|
+
tag?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
default?: () => VNode[];
|
|
11
|
+
}> & {
|
|
12
|
+
default?: () => VNode[];
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
footer: ({
|
|
16
|
+
$: ComponentInternalInstance;
|
|
17
|
+
$data: {};
|
|
18
|
+
$props: {
|
|
19
|
+
readonly tag?: string | undefined;
|
|
20
|
+
readonly large?: boolean | null | undefined;
|
|
21
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
22
|
+
$attrs: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
$refs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
$slots: Readonly<{
|
|
29
|
+
[name: string]: Slot<any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
$root: ComponentPublicInstance | null;
|
|
32
|
+
$parent: ComponentPublicInstance | null;
|
|
33
|
+
$host: Element | null;
|
|
34
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
35
|
+
$el: any;
|
|
36
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
37
|
+
tag?: string;
|
|
38
|
+
large?: boolean | null;
|
|
39
|
+
}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
40
|
+
large: boolean | null;
|
|
41
|
+
tag: string;
|
|
42
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
43
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
44
|
+
created?: (() => void) | (() => void)[];
|
|
45
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
46
|
+
mounted?: (() => void) | (() => void)[];
|
|
47
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
48
|
+
updated?: (() => void) | (() => void)[];
|
|
49
|
+
activated?: (() => void) | (() => void)[];
|
|
50
|
+
deactivated?: (() => void) | (() => void)[];
|
|
51
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
52
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
53
|
+
destroyed?: (() => void) | (() => void)[];
|
|
54
|
+
unmounted?: (() => void) | (() => void)[];
|
|
55
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
56
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
57
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
58
|
+
};
|
|
59
|
+
$forceUpdate: () => void;
|
|
60
|
+
$nextTick: nextTick;
|
|
61
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
62
|
+
} & Readonly<{
|
|
63
|
+
large: boolean | null;
|
|
64
|
+
tag: string;
|
|
65
|
+
}> & Omit<Readonly<{
|
|
66
|
+
tag?: string;
|
|
67
|
+
large?: boolean | null;
|
|
68
|
+
}> & Readonly<{}>, "large" | "tag"> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {} & {
|
|
69
|
+
$slots: Readonly<{
|
|
70
|
+
default?: () => VNode[];
|
|
71
|
+
}> & {
|
|
72
|
+
default?: () => VNode[];
|
|
73
|
+
};
|
|
74
|
+
}) | null;
|
|
75
|
+
};
|
|
76
|
+
rootEl: any;
|
|
77
|
+
};
|
|
78
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
79
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
80
|
+
"change:height": (height: number) => any;
|
|
81
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
82
|
+
"onChange:height"?: ((height: number) => any) | undefined;
|
|
83
|
+
}>, {
|
|
84
|
+
tag: string;
|
|
85
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
86
|
+
footer: ({
|
|
87
|
+
$: ComponentInternalInstance;
|
|
88
|
+
$data: {};
|
|
89
|
+
$props: {
|
|
90
|
+
readonly tag?: string | undefined;
|
|
91
|
+
readonly large?: boolean | null | undefined;
|
|
92
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
93
|
+
$attrs: {
|
|
94
|
+
[x: string]: unknown;
|
|
95
|
+
};
|
|
96
|
+
$refs: {
|
|
97
|
+
[x: string]: unknown;
|
|
98
|
+
};
|
|
99
|
+
$slots: Readonly<{
|
|
100
|
+
[name: string]: Slot<any> | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
$root: ComponentPublicInstance | null;
|
|
103
|
+
$parent: ComponentPublicInstance | null;
|
|
104
|
+
$host: Element | null;
|
|
105
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
106
|
+
$el: any;
|
|
107
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
108
|
+
tag?: string;
|
|
109
|
+
large?: boolean | null;
|
|
110
|
+
}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
111
|
+
large: boolean | null;
|
|
112
|
+
tag: string;
|
|
113
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
114
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
115
|
+
created?: (() => void) | (() => void)[];
|
|
116
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
117
|
+
mounted?: (() => void) | (() => void)[];
|
|
118
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
119
|
+
updated?: (() => void) | (() => void)[];
|
|
120
|
+
activated?: (() => void) | (() => void)[];
|
|
121
|
+
deactivated?: (() => void) | (() => void)[];
|
|
122
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
123
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
124
|
+
destroyed?: (() => void) | (() => void)[];
|
|
125
|
+
unmounted?: (() => void) | (() => void)[];
|
|
126
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
127
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
128
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
129
|
+
};
|
|
130
|
+
$forceUpdate: () => void;
|
|
131
|
+
$nextTick: nextTick;
|
|
132
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
133
|
+
} & Readonly<{
|
|
134
|
+
large: boolean | null;
|
|
135
|
+
tag: string;
|
|
136
|
+
}> & Omit<Readonly<{
|
|
137
|
+
tag?: string;
|
|
138
|
+
large?: boolean | null;
|
|
139
|
+
}> & Readonly<{}>, "large" | "tag"> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {} & {
|
|
140
|
+
$slots: Readonly<{
|
|
141
|
+
default?: () => VNode[];
|
|
142
|
+
}> & {
|
|
143
|
+
default?: () => VNode[];
|
|
144
|
+
};
|
|
145
|
+
}) | null;
|
|
146
|
+
}, any>;
|
|
147
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
148
|
+
export default _default;
|
|
149
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
150
|
+
new (): {
|
|
151
|
+
$slots: S;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { VNode, DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface FormValidation {
|
|
3
|
+
id: string;
|
|
4
|
+
validate: () => boolean;
|
|
5
|
+
valid: boolean;
|
|
6
|
+
field?: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
dataTest?: string;
|
|
10
|
+
};
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: Readonly<{
|
|
14
|
+
default?: () => VNode[];
|
|
15
|
+
}> & {
|
|
16
|
+
default?: () => VNode[];
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
form: HTMLFormElement;
|
|
20
|
+
};
|
|
21
|
+
rootEl: HTMLFormElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
25
|
+
validate: () => boolean;
|
|
26
|
+
inputs: ComputedRef<FormValidation[]>;
|
|
27
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
|
+
input: (value: boolean) => any;
|
|
29
|
+
submit: (event: Event) => any;
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
onInput?: ((value: boolean) => any) | undefined;
|
|
32
|
+
onSubmit?: ((event: Event) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
dataTest: string;
|
|
35
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
36
|
+
form: HTMLFormElement;
|
|
37
|
+
}, HTMLFormElement>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Sets the denominator of the counter. */
|
|
4
|
+
counter?: number | null;
|
|
5
|
+
/** Function or number that determines the numerator of the counter. */
|
|
6
|
+
counterValue?: number | (() => number | null) | null;
|
|
7
|
+
/** Input value of the parent form field */
|
|
8
|
+
value?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
value: string;
|
|
12
|
+
counter: number | null;
|
|
13
|
+
counterValue: number | (() => number | null) | null;
|
|
14
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/pro-light-svg-icons';
|
|
2
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
4
|
+
import { ButtonLevel, ButtonSize, ButtonVariant } from './CButton/types';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
/** ARIA label for the button. You must use either this or ariaLabelledby. */
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
/** ARIA labelledby for the button. You must use either this or ariaLabel. */
|
|
9
|
+
ariaLabelledby?: string;
|
|
10
|
+
/** Controls whether button is disabled */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Designates the button as an anchor and applies the href attribute */
|
|
13
|
+
href?: string;
|
|
14
|
+
/** Specifies a Font Awesome icon */
|
|
15
|
+
icon?: string | string[] | IconDefinition;
|
|
16
|
+
/**
|
|
17
|
+
* Controls whether button uses the large variant
|
|
18
|
+
* @deprecated Use `size="large"` instead
|
|
19
|
+
*/
|
|
20
|
+
large?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Controls the level of the button
|
|
23
|
+
* @default 'normal'
|
|
24
|
+
*/
|
|
25
|
+
level?: ButtonLevel;
|
|
26
|
+
/** Controls whether button is loading */
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Controls whether button uses the secondary variant
|
|
30
|
+
* @deprecated Use `variant="secondary"` instead
|
|
31
|
+
*/
|
|
32
|
+
secondary?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Controls the size of the button
|
|
35
|
+
* @default 'medium'
|
|
36
|
+
*/
|
|
37
|
+
size?: ButtonSize;
|
|
38
|
+
/** Spins the icon for loading states */
|
|
39
|
+
spinIcon?: boolean;
|
|
40
|
+
/** Designates the target attribute. Only use with the href prop. */
|
|
41
|
+
target?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Controls whether button uses the tertiary variant
|
|
44
|
+
* @deprecated Use `variant="tertiary"` instead
|
|
45
|
+
*/
|
|
46
|
+
tertiary?: boolean;
|
|
47
|
+
/** Controls whether button functions as a router-link */
|
|
48
|
+
to?: RouteLocationRaw;
|
|
49
|
+
/**
|
|
50
|
+
* Controls the variant of the button
|
|
51
|
+
* @default 'primary'
|
|
52
|
+
*/
|
|
53
|
+
variant?: ButtonVariant;
|
|
54
|
+
};
|
|
55
|
+
declare function __VLS_template(): {
|
|
56
|
+
attrs: Partial<{}>;
|
|
57
|
+
slots: Readonly<{
|
|
58
|
+
default?: () => VNode[];
|
|
59
|
+
}> & {
|
|
60
|
+
default?: () => VNode[];
|
|
61
|
+
};
|
|
62
|
+
refs: {};
|
|
63
|
+
rootEl: any;
|
|
64
|
+
};
|
|
65
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
66
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
67
|
+
blur: (event: Event) => any;
|
|
68
|
+
click: (event: MouseEvent) => any;
|
|
69
|
+
focus: (event: Event) => any;
|
|
70
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
71
|
+
onBlur?: ((event: Event) => any) | undefined;
|
|
72
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
73
|
+
onFocus?: ((event: Event) => any) | undefined;
|
|
74
|
+
}>, {
|
|
75
|
+
to: RouteLocationRaw;
|
|
76
|
+
size: ButtonSize;
|
|
77
|
+
icon: string | string[] | IconDefinition;
|
|
78
|
+
target: string;
|
|
79
|
+
tertiary: boolean;
|
|
80
|
+
loading: boolean;
|
|
81
|
+
large: boolean;
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
ariaLabel: string;
|
|
84
|
+
secondary: boolean;
|
|
85
|
+
href: string;
|
|
86
|
+
level: ButtonLevel;
|
|
87
|
+
variant: ButtonVariant;
|
|
88
|
+
ariaLabelledby: string;
|
|
89
|
+
spinIcon: boolean;
|
|
90
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
91
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
92
|
+
export default _default;
|
|
93
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Specifies the label's icon, overwritten if icon slot is used */
|
|
5
|
+
icon?: string | string[] | IconDefinition | null;
|
|
6
|
+
/** A custom data test string */
|
|
7
|
+
dataTest?: string;
|
|
8
|
+
};
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
/** Icon slot, overrides icon prop */
|
|
13
|
+
icon?: () => VNode[];
|
|
14
|
+
/** Default content */
|
|
15
|
+
default?: () => VNode[];
|
|
16
|
+
}> & {
|
|
17
|
+
/** Icon slot, overrides icon prop */
|
|
18
|
+
icon?: () => VNode[];
|
|
19
|
+
/** Default content */
|
|
20
|
+
default?: () => VNode[];
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
27
|
+
icon: string | string[] | IconDefinition | null;
|
|
28
|
+
dataTest: string;
|
|
29
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** The Font Awesome icon to display */
|
|
6
|
+
icon?: string | string[] | IconDefinition | null;
|
|
7
|
+
/** The icon to display on the right side for clickable items, defaulting to right arrow */
|
|
8
|
+
actionIcon?: string | string[] | IconDefinition | null;
|
|
9
|
+
/** Color of the icon background */
|
|
10
|
+
iconColor?: string;
|
|
11
|
+
/** Emphasized text above body text. Overridden by the default slot. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Plain body copy. Overridden by the default slot. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Router location for links within the app */
|
|
16
|
+
to?: RouteLocationRaw;
|
|
17
|
+
/** HTML target attribute for links to outside the app */
|
|
18
|
+
target?: string;
|
|
19
|
+
/** Location for links to outside the app */
|
|
20
|
+
href?: string;
|
|
21
|
+
/** Changes alignment of icon and action icon */
|
|
22
|
+
align?: 'top' | 'center';
|
|
23
|
+
/** Overrides default behavior to display a chevron in the action slot */
|
|
24
|
+
hideAction?: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare function __VLS_template(): {
|
|
27
|
+
attrs: Partial<{}>;
|
|
28
|
+
slots: Partial<Record<string, (_: {}) => any>> & {
|
|
29
|
+
prepend?(_: {}): any;
|
|
30
|
+
icon?(_: {}): any;
|
|
31
|
+
append?(_: {}): any;
|
|
32
|
+
action?(_: {}): any;
|
|
33
|
+
};
|
|
34
|
+
refs: {};
|
|
35
|
+
rootEl: any;
|
|
36
|
+
};
|
|
37
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
38
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
39
|
+
label: string;
|
|
40
|
+
title: string;
|
|
41
|
+
align: "top" | "center";
|
|
42
|
+
to: RouteLocationRaw;
|
|
43
|
+
icon: string | string[] | IconDefinition | null;
|
|
44
|
+
target: string;
|
|
45
|
+
href: string;
|
|
46
|
+
iconColor: string;
|
|
47
|
+
actionIcon: string | string[] | IconDefinition | null;
|
|
48
|
+
hideAction: boolean;
|
|
49
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
title?(_: {}): any;
|
|
11
|
+
label?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
label: string;
|
|
19
|
+
title: string;
|
|
20
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
icon?: string | string[] | IconDefinition | null;
|
|
5
|
+
iconColor?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
icon?: () => VNode[];
|
|
11
|
+
}> & {
|
|
12
|
+
icon?: () => VNode[];
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: any;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
icon: string | string[] | IconDefinition | null;
|
|
20
|
+
iconColor: string;
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HexColor, default as Colors } from '../colors/colors';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** Customizes screen reader only text alternative, should be translated */
|
|
6
|
+
accessibleText?: string;
|
|
7
|
+
/** Sets the color of the indicator of the loader */
|
|
8
|
+
color?: HexColor | keyof typeof Colors;
|
|
9
|
+
/** @deprecated Shows a smaller version of the loading icon */
|
|
10
|
+
small?: boolean;
|
|
11
|
+
/** Sets the size of the loader */
|
|
12
|
+
size?: Size;
|
|
13
|
+
/** Sets the color of the track of the loader */
|
|
14
|
+
trackColor?: HexColor | keyof typeof Colors;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
small: boolean;
|
|
18
|
+
size: Size;
|
|
19
|
+
accessibleText: string;
|
|
20
|
+
color: HexColor | keyof typeof Colors;
|
|
21
|
+
trackColor: HexColor | keyof typeof Colors;
|
|
22
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Show just the orange icon */
|
|
4
|
+
icon?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
icon: boolean;
|
|
8
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLImageElement>;
|
|
9
|
+
export default _default;
|