@propelinc/citrus-ui 1.0.4 → 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.
Files changed (202) hide show
  1. package/README.md +51 -14
  2. package/dist/citrus-ui.cdn.css +1 -0
  3. package/dist/citrus-ui.css +1 -0
  4. package/dist/colors/colors.d.ts +31 -0
  5. package/dist/colors/theme.d.ts +3 -0
  6. package/dist/colors/util-classes.d.ts +11 -0
  7. package/dist/components/CAccordion.vue.d.ts +34 -0
  8. package/dist/components/CAccordionItem.vue.d.ts +39 -0
  9. package/dist/components/CAppBar.vue.d.ts +59 -0
  10. package/dist/components/CBadge.vue.d.ts +35 -0
  11. package/dist/components/CBottomSheet.vue.d.ts +90 -0
  12. package/dist/components/CButton/CButton.vue.d.ts +97 -0
  13. package/dist/components/CButton/types.d.ts +5 -0
  14. package/dist/components/CButtonStack.vue.d.ts +27 -0
  15. package/dist/components/CCard.vue.d.ts +53 -0
  16. package/dist/components/CCardFooter.vue.d.ts +20 -0
  17. package/dist/components/CCardHeader.vue.d.ts +22 -0
  18. package/dist/components/CCardSection.vue.d.ts +26 -0
  19. package/dist/components/CCheckbox.vue.d.ts +62 -0
  20. package/dist/components/CCol.vue.d.ts +30 -0
  21. package/dist/components/CDivider.vue.d.ts +9 -0
  22. package/dist/components/CDobField.vue.d.ts +60 -0
  23. package/dist/components/CDobSelect.vue.d.ts +50 -0
  24. package/dist/components/CEmailField.vue.d.ts +48 -0
  25. package/dist/components/CExpandTransition.vue.d.ts +29 -0
  26. package/dist/components/CFadeTransition.vue.d.ts +20 -0
  27. package/dist/components/CFileInput.vue.d.ts +50 -0
  28. package/dist/components/CFixedPageFooter.vue.d.ts +153 -0
  29. package/dist/components/CForm.vue.d.ts +44 -0
  30. package/dist/components/CFormFieldCounter.vue.d.ts +15 -0
  31. package/dist/components/CIconButton.vue.d.ts +97 -0
  32. package/dist/components/CLabel.vue.d.ts +36 -0
  33. package/dist/components/CListItem.vue.d.ts +56 -0
  34. package/dist/components/CListItemContent.vue.d.ts +27 -0
  35. package/dist/components/CListItemIcon.vue.d.ts +28 -0
  36. package/dist/components/CLoader.vue.d.ts +23 -0
  37. package/dist/components/CLogo.vue.d.ts +9 -0
  38. package/dist/components/CMaskedTextField.vue.d.ts +511 -0
  39. package/dist/components/CMenu.vue.d.ts +17 -0
  40. package/dist/components/CMenuItem.vue.d.ts +37 -0
  41. package/dist/components/CMenuLabel.vue.d.ts +20 -0
  42. package/dist/components/CModal.vue.d.ts +59 -0
  43. package/dist/components/CModalLoading.vue.d.ts +36 -0
  44. package/dist/components/CNotification.vue.d.ts +64 -0
  45. package/dist/components/CPhoneField.vue.d.ts +792 -0
  46. package/dist/components/CPill.vue.d.ts +41 -0
  47. package/dist/components/CPillGroup.vue.d.ts +39 -0
  48. package/dist/components/CPopup.vue.d.ts +37 -0
  49. package/dist/components/CProgressLinear.vue.d.ts +21 -0
  50. package/dist/components/CProgressRing.vue.d.ts +48 -0
  51. package/dist/components/CRadio.vue.d.ts +40 -0
  52. package/dist/components/CRadioGroup.vue.d.ts +54 -0
  53. package/dist/components/CRebrand.vue.d.ts +28 -0
  54. package/dist/components/CRow.vue.d.ts +41 -0
  55. package/dist/components/CSafeArea.vue.d.ts +18 -0
  56. package/dist/components/CSectionHeader.vue.d.ts +29 -0
  57. package/dist/components/CSelect.vue.d.ts +96 -0
  58. package/dist/components/CSkeleton.vue.d.ts +3 -0
  59. package/dist/components/CSkeletonLoaderCard.vue.d.ts +9 -0
  60. package/dist/components/CSkeletonLoaderCircle.vue.d.ts +3 -0
  61. package/dist/components/CSkeletonLoaderText.vue.d.ts +16 -0
  62. package/dist/components/CSlideFadeTransition.vue.d.ts +36 -0
  63. package/dist/components/CSplitInput.vue.d.ts +56 -0
  64. package/dist/components/CSquaredIcon.vue.d.ts +33 -0
  65. package/dist/components/CSsnField.vue.d.ts +798 -0
  66. package/dist/components/CStatusDot.vue.d.ts +10 -0
  67. package/dist/components/CSwitch.vue.d.ts +39 -0
  68. package/dist/components/CSwitchListItem.vue.d.ts +48 -0
  69. package/dist/components/CTextArea.vue.d.ts +96 -0
  70. package/dist/components/CTextField.vue.d.ts +129 -0
  71. package/dist/components/CTextLink.vue.d.ts +36 -0
  72. package/dist/components/CThirdPartyLogo.vue.d.ts +22 -0
  73. package/dist/components/CTimeago.vue.d.ts +12 -0
  74. package/dist/components/CToast.vue.d.ts +69 -0
  75. package/dist/components/CToastsList.vue.d.ts +3 -0
  76. package/dist/components/CValidationMessage.vue.d.ts +37 -0
  77. package/dist/components/CZipcodeField.vue.d.ts +796 -0
  78. package/dist/components/index.d.ts +66 -0
  79. package/dist/components/internal/CCloseButton.vue.d.ts +14 -0
  80. package/dist/composables/accessibility.d.ts +1 -0
  81. package/dist/composables/animation.d.ts +12 -0
  82. package/dist/composables/binding.d.ts +19 -0
  83. package/dist/composables/colors.d.ts +13 -0
  84. package/dist/composables/elements.d.ts +3 -0
  85. package/dist/composables/fields.d.ts +10 -0
  86. package/dist/composables/gestures.d.ts +53 -0
  87. package/dist/composables/i18n.d.ts +3 -0
  88. package/dist/composables/id.d.ts +11 -0
  89. package/dist/composables/input-mask.d.ts +18 -0
  90. package/dist/composables/router.d.ts +30 -0
  91. package/dist/composables/slots.d.ts +2 -0
  92. package/dist/composables/toast.d.ts +21 -0
  93. package/dist/composables/validations.d.ts +77 -0
  94. package/dist/icons.cdn.mjs +3 -0
  95. package/dist/icons.cdn.mjs.map +1 -0
  96. package/dist/icons.d.ts +1 -0
  97. package/dist/icons.mjs +6 -0
  98. package/dist/icons.mjs.map +1 -0
  99. package/dist/index.cdn.mjs +9328 -12875
  100. package/dist/index.cdn.mjs.map +1 -1
  101. package/dist/index.cdn2.mjs +55255 -0
  102. package/dist/index.cdn2.mjs.map +1 -0
  103. package/dist/index.d.ts +8 -0
  104. package/dist/index.mjs +3946 -0
  105. package/dist/index.mjs.map +1 -0
  106. package/dist/plugin.d.ts +3 -0
  107. package/dist/services/animation.d.ts +17 -0
  108. package/dist/services/directives/index.d.ts +2 -0
  109. package/dist/services/directives/scroll-into-view.d.ts +7 -0
  110. package/dist/services/directives/tap-animation.d.ts +6 -0
  111. package/dist/services/id.d.ts +22 -0
  112. package/dist/services/injections/accordions.d.ts +3 -0
  113. package/dist/services/injections/animations.d.ts +2 -0
  114. package/dist/services/injections/buttons.d.ts +4 -0
  115. package/dist/services/injections/forms.d.ts +6 -0
  116. package/dist/services/injections/icon-buttons.d.ts +3 -0
  117. package/dist/services/injections/pills.d.ts +4 -0
  118. package/dist/services/injections/radio.d.ts +10 -0
  119. package/dist/{styles/main.css → styles.css} +40 -2
  120. package/dist/theme/icons.d.ts +36 -0
  121. package/dist/types/CForm.d.ts +12 -0
  122. package/dist/types/font-awesome.d.ts +5 -0
  123. package/dist/types.d.ts +13 -0
  124. package/package.json +11 -4
  125. package/src/colors/colors.ts +8 -3
  126. package/src/components/CAccordion.vue +31 -24
  127. package/src/components/CAccordionItem.vue +46 -45
  128. package/src/components/CAppBar.vue +108 -101
  129. package/src/components/CBadge.vue +33 -25
  130. package/src/components/CBottomSheet.vue +212 -199
  131. package/src/components/CButton/CButton.vue +135 -147
  132. package/src/components/CButtonStack.vue +21 -13
  133. package/src/components/CCard.vue +72 -69
  134. package/src/components/CCardFooter.vue +5 -5
  135. package/src/components/CCardHeader.vue +9 -7
  136. package/src/components/CCardSection.vue +15 -8
  137. package/src/components/CCheckbox.vue +68 -69
  138. package/src/components/CCol.vue +21 -22
  139. package/src/components/CDivider.vue +9 -8
  140. package/src/components/CDobField.vue +114 -105
  141. package/src/components/CDobSelect.vue +162 -164
  142. package/src/components/CEmailField.vue +39 -27
  143. package/src/components/CExpandTransition.vue +14 -17
  144. package/src/components/CFadeTransition.vue +3 -3
  145. package/src/components/CFileInput.vue +57 -50
  146. package/src/components/CFixedPageFooter.vue +23 -17
  147. package/src/components/CForm.vue +67 -60
  148. package/src/components/CFormFieldCounter.vue +25 -28
  149. package/src/components/CIconButton.vue +84 -65
  150. package/src/components/CLabel.vue +19 -13
  151. package/src/components/CListItem.vue +67 -66
  152. package/src/components/CListItemContent.vue +14 -16
  153. package/src/components/CListItemIcon.vue +18 -14
  154. package/src/components/CLoader.vue +47 -56
  155. package/src/components/CLogo.vue +13 -12
  156. package/src/components/CMaskedTextField.vue +80 -64
  157. package/src/components/CMenu.vue +14 -6
  158. package/src/components/CMenuItem.vue +28 -22
  159. package/src/components/CMenuLabel.vue +6 -5
  160. package/src/components/CModal.vue +76 -71
  161. package/src/components/CModalLoading.vue +24 -15
  162. package/src/components/CNotification.vue +77 -28
  163. package/src/components/CPhoneField.vue +34 -25
  164. package/src/components/CPill.vue +92 -88
  165. package/src/components/CPillGroup.vue +30 -21
  166. package/src/components/CPopup.vue +46 -37
  167. package/src/components/CProgressLinear.vue +17 -11
  168. package/src/components/CProgressRing.vue +33 -33
  169. package/src/components/CRadio.vue +57 -57
  170. package/src/components/CRadioGroup.vue +85 -72
  171. package/src/components/CRow.vue +22 -20
  172. package/src/components/CSectionHeader.vue +20 -12
  173. package/src/components/CSelect.vue +89 -73
  174. package/src/components/CSkeletonLoaderCard.vue +9 -15
  175. package/src/components/CSkeletonLoaderCircle.vue +1 -9
  176. package/src/components/CSkeletonLoaderText.vue +17 -18
  177. package/src/components/CSlideFadeTransition.vue +12 -34
  178. package/src/components/CSplitInput.vue +46 -45
  179. package/src/components/CSquaredIcon.vue +39 -29
  180. package/src/components/CSsnField.vue +48 -36
  181. package/src/components/CStatusDot.vue +16 -16
  182. package/src/components/CSwitch.vue +31 -22
  183. package/src/components/CSwitchListItem.vue +27 -28
  184. package/src/components/CTextArea.vue +116 -83
  185. package/src/components/CTextField.vue +194 -198
  186. package/src/components/CTextLink.vue +28 -25
  187. package/src/components/CThirdPartyLogo.vue +30 -59
  188. package/src/components/CToast.vue +135 -132
  189. package/src/components/CToastsList.vue +2 -15
  190. package/src/components/CValidationMessage.vue +31 -24
  191. package/src/components/CZipcodeField.vue +40 -27
  192. package/src/composables/elements.ts +1 -1
  193. package/src/composables/fields.ts +4 -4
  194. package/src/composables/router.ts +6 -5
  195. package/src/icons.ts +6 -0
  196. package/src/services/injections/buttons.ts +1 -1
  197. package/src/styles/_core.scss +1 -2
  198. package/src/styles/_reset.scss +1 -1
  199. package/src/styles/main.scss +2 -0
  200. package/src/types.ts +2 -0
  201. package/dist/index.cdn.css +0 -1
  202. package/dist/styles/utils.css +0 -2709
@@ -0,0 +1,10 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ count?: number | null;
4
+ bordered?: boolean;
5
+ };
6
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ count: number | null;
8
+ bordered: boolean;
9
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ /** Label for screen-readers. This hides and overrides the normal label. */
4
+ ariaLabel?: string;
5
+ /** Prevents the user from interacting with the switch */
6
+ disabled?: boolean;
7
+ /** When true, the slot label is visually rendered before the control (label left, switch right) */
8
+ labelFirst?: boolean;
9
+ /** Whether the switch is in an "on" or "off" state */
10
+ value?: boolean;
11
+ };
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: Readonly<{
15
+ default?: () => VNode[];
16
+ }> & {
17
+ default?: () => VNode[];
18
+ };
19
+ refs: {};
20
+ rootEl: any;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
24
+ input: (value: boolean) => any;
25
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onInput?: ((value: boolean) => any) | undefined;
27
+ }>, {
28
+ value: boolean;
29
+ disabled: boolean;
30
+ ariaLabel: string;
31
+ labelFirst: boolean;
32
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,48 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ /** Alignment of the content */
5
+ align?: 'top' | 'center';
6
+ /** Prevents the user from interacting with the switch */
7
+ disabled?: boolean;
8
+ /** Font Awesome icon to render on the left side of the component */
9
+ icon?: string | string[] | IconDefinition | null;
10
+ /** Color of the icon background */
11
+ iconColor?: string;
12
+ /** Plain body copy. Overridden by the default slot. */
13
+ label?: string;
14
+ /** Emphasized text above body text. Overridden by the default slot. */
15
+ title?: string;
16
+ /** Whether the switch is in an "on" or "off" state */
17
+ value?: boolean;
18
+ };
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: Partial<Record<string, (_: {}) => any>> & {
22
+ prepend?(_: {}): any;
23
+ icon?(_: {}): any;
24
+ };
25
+ refs: {};
26
+ rootEl: any;
27
+ };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
30
+ input: (value: boolean) => any;
31
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onInput?: ((value: boolean) => any) | undefined;
33
+ }>, {
34
+ label: string;
35
+ title: string;
36
+ align: "top" | "center";
37
+ value: boolean;
38
+ icon: string | string[] | IconDefinition | null;
39
+ disabled: boolean;
40
+ iconColor: string;
41
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
+ export default _default;
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,96 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Rules } from '../composables/validations';
3
+ type __VLS_Props = {
4
+ /** Shows a character counter and sets its denominator. */
5
+ counter?: number | null;
6
+ /**
7
+ * Function or number that determines the numerator of the counter. If not
8
+ * set, the counter will be the length of the input value.
9
+ */
10
+ counterValue?: number | (() => number | null) | null;
11
+ /** Adds a custom data test string to the form field and textarea elements */
12
+ dataTest?: string;
13
+ /** Controls whether the input is disabled */
14
+ disabled?: boolean;
15
+ /**
16
+ * Overrides the default validation message. If provided, this error message will always
17
+ * be shown, regardless of any other failing validation rules.
18
+ */
19
+ errorMessage?: string | null;
20
+ /** Hides the label and instead labels the field with `aria-label` */
21
+ hideLabel?: boolean;
22
+ /**
23
+ * Hides the validation message area. Defaults to `false` (show message area even when valid),
24
+ * so validations transition in gracefully.
25
+ */
26
+ hideDetails?: boolean | 'auto';
27
+ /** The textarea element's id */
28
+ id?: string | null;
29
+ /** The textarea's label, both visual and screenreader-only */
30
+ label?: string | null;
31
+ /** Sets the maxlength attribute of the textarea */
32
+ maxlength?: number;
33
+ /** The textarea's placeholder */
34
+ placeholder?: string;
35
+ /** If true, the field is required */
36
+ required?: boolean;
37
+ /**
38
+ * Accepts a mixed array of types function, boolean and string.
39
+ * Functions pass an input value as an argument and must return either true / false or
40
+ * a string containing an error message. The input field will enter an error state if a
41
+ * function returns (or any value in the array contains) false or is a string
42
+ */
43
+ rules?: Rules<string>;
44
+ /** The textarea's value */
45
+ value?: string;
46
+ };
47
+ declare function __VLS_template(): {
48
+ attrs: Partial<{}>;
49
+ slots: Readonly<{
50
+ label?: () => VNode[];
51
+ message?: () => VNode[];
52
+ }> & {
53
+ label?: () => VNode[];
54
+ message?: () => VNode[];
55
+ };
56
+ refs: {
57
+ textarea: HTMLTextAreaElement;
58
+ };
59
+ rootEl: HTMLDivElement;
60
+ };
61
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
62
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
63
+ change: (value: string) => any;
64
+ blur: () => any;
65
+ focus: () => any;
66
+ input: (value: string) => any;
67
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
68
+ onChange?: ((value: string) => any) | undefined;
69
+ onBlur?: (() => any) | undefined;
70
+ onFocus?: (() => any) | undefined;
71
+ onInput?: ((value: string) => any) | undefined;
72
+ }>, {
73
+ label: string | null;
74
+ id: string | null;
75
+ value: string;
76
+ dataTest: string;
77
+ placeholder: string;
78
+ disabled: boolean;
79
+ rules: Rules<string>;
80
+ required: boolean;
81
+ hideDetails: boolean | "auto";
82
+ counter: number | null;
83
+ counterValue: number | (() => number | null) | null;
84
+ maxlength: number;
85
+ hideLabel: boolean;
86
+ errorMessage: string | null;
87
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
88
+ textarea: HTMLTextAreaElement;
89
+ }, HTMLDivElement>;
90
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
91
+ export default _default;
92
+ type __VLS_WithTemplateSlots<T, S> = T & {
93
+ new (): {
94
+ $slots: S;
95
+ };
96
+ };
@@ -0,0 +1,129 @@
1
+ import { VNode, Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Rules } from '../composables/validations';
3
+ export interface CTextFieldExposed {
4
+ input: Ref<HTMLInputElement | null>;
5
+ focus: () => void;
6
+ blur: () => void;
7
+ startValidating: () => void;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
10
+ id?: string | null;
11
+ label?: string | null;
12
+ ariaLabel?: string | null;
13
+ placeholder?: string;
14
+ type?: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
15
+ clearable?: boolean;
16
+ size?: "medium" | "large";
17
+ inputmode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
18
+ minlength?: number | string;
19
+ maxlength?: number | string;
20
+ disabled?: boolean;
21
+ hideable?: boolean;
22
+ hideLabel?: boolean;
23
+ hideDetails?: boolean | "auto";
24
+ value?: string;
25
+ dataTest?: string;
26
+ counter?: number | null;
27
+ counterValue?: number | (() => number | null) | null;
28
+ rules?: Rules<string>;
29
+ validateOnBlur?: boolean;
30
+ required?: boolean;
31
+ /**
32
+ * Overrides the default validation message. If provided, this error message will always
33
+ * be shown, regardless of any other failing validation rules.
34
+ */
35
+ errorMessage?: string;
36
+ }, {
37
+ input: Ref<HTMLInputElement | null>;
38
+ focus: () => void;
39
+ blur: () => void;
40
+ startValidating: () => void;
41
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
42
+ change: (value: string) => any;
43
+ blur: (event: Event) => any;
44
+ click: (event: MouseEvent) => any;
45
+ focus: (event: Event) => any;
46
+ input: (value: string) => any;
47
+ keydown: (event: KeyboardEvent) => any;
48
+ keypress: (event: KeyboardEvent) => any;
49
+ keyup: (event: KeyboardEvent) => any;
50
+ "click:hide": (hidden: boolean) => any;
51
+ }, string, PublicProps, Readonly<{
52
+ id?: string | null;
53
+ label?: string | null;
54
+ ariaLabel?: string | null;
55
+ placeholder?: string;
56
+ type?: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
57
+ clearable?: boolean;
58
+ size?: "medium" | "large";
59
+ inputmode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
60
+ minlength?: number | string;
61
+ maxlength?: number | string;
62
+ disabled?: boolean;
63
+ hideable?: boolean;
64
+ hideLabel?: boolean;
65
+ hideDetails?: boolean | "auto";
66
+ value?: string;
67
+ dataTest?: string;
68
+ counter?: number | null;
69
+ counterValue?: number | (() => number | null) | null;
70
+ rules?: Rules<string>;
71
+ validateOnBlur?: boolean;
72
+ required?: boolean;
73
+ /**
74
+ * Overrides the default validation message. If provided, this error message will always
75
+ * be shown, regardless of any other failing validation rules.
76
+ */
77
+ errorMessage?: string;
78
+ }> & Readonly<{
79
+ onChange?: ((value: string) => any) | undefined;
80
+ onBlur?: ((event: Event) => any) | undefined;
81
+ onClick?: ((event: MouseEvent) => any) | undefined;
82
+ onFocus?: ((event: Event) => any) | undefined;
83
+ onInput?: ((value: string) => any) | undefined;
84
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
85
+ onKeypress?: ((event: KeyboardEvent) => any) | undefined;
86
+ onKeyup?: ((event: KeyboardEvent) => any) | undefined;
87
+ "onClick:hide"?: ((hidden: boolean) => any) | undefined;
88
+ }>, {
89
+ type: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
90
+ label: string | null;
91
+ id: string | null;
92
+ value: string;
93
+ size: "medium" | "large";
94
+ dataTest: string;
95
+ placeholder: string;
96
+ disabled: boolean;
97
+ ariaLabel: string | null;
98
+ rules: Rules<string>;
99
+ required: boolean;
100
+ hideDetails: boolean | "auto";
101
+ counter: number | null;
102
+ counterValue: number | (() => number | null) | null;
103
+ clearable: boolean;
104
+ inputmode: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
105
+ minlength: number | string;
106
+ maxlength: number | string;
107
+ hideable: boolean;
108
+ hideLabel: boolean;
109
+ validateOnBlur: boolean;
110
+ errorMessage: string;
111
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
112
+ input: HTMLInputElement;
113
+ }, any>, Readonly<{
114
+ label?: () => VNode[];
115
+ 'prepend-inner'?: () => VNode[];
116
+ append?: () => VNode[];
117
+ message?: () => VNode[];
118
+ }> & {
119
+ label?: () => VNode[];
120
+ 'prepend-inner'?: () => VNode[];
121
+ append?: () => VNode[];
122
+ message?: () => VNode[];
123
+ }>;
124
+ export default _default;
125
+ type __VLS_WithTemplateSlots<T, S> = T & {
126
+ new (): {
127
+ $slots: S;
128
+ };
129
+ };
@@ -0,0 +1,36 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { RouteLocationRaw } from 'vue-router';
3
+ type __VLS_Props = {
4
+ /** Controls whether the text link functions as a router-link */
5
+ to?: RouteLocationRaw;
6
+ /** Designates the text link as an anchor and applies the href attribute */
7
+ href?: string;
8
+ /** Designates the target attribute. Only use with the href prop. */
9
+ target?: string;
10
+ /** Toggles whether the link should have an underline */
11
+ underline?: boolean;
12
+ };
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: Readonly<{
16
+ default?: () => VNode[];
17
+ }> & {
18
+ default?: () => VNode[];
19
+ };
20
+ refs: {};
21
+ rootEl: HTMLAnchorElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
+ to: RouteLocationRaw;
26
+ target: string;
27
+ href: string;
28
+ underline: boolean;
29
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLAnchorElement>;
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,22 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type Size = 'medium' | 'large';
4
+ type __VLS_Props = {
5
+ /** The alt text for the logo. */
6
+ alt: string;
7
+ /** The color of the fallback icon logo */
8
+ color?: string;
9
+ /** The Font Awesome icon to display as a fallback */
10
+ icon?: string | string[] | IconDefinition | null;
11
+ /** The size of the logo. Defaults to `medium`. */
12
+ size?: Size;
13
+ /** The URL of the logo image */
14
+ src?: string;
15
+ };
16
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ size: Size;
18
+ icon: string | string[] | IconDefinition | null;
19
+ color: string;
20
+ src: string;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ datetime: string | number | Date;
4
+ converter: (datetime: string | number | Date, locale: string, count?: number) => string;
5
+ locale?: string;
6
+ autoUpdate?: number | false;
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ locale: string;
10
+ autoUpdate: number | false;
11
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLTimeElement>;
12
+ export default _default;
@@ -0,0 +1,69 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { ToastVariant } from '../types';
3
+ type __VLS_Props = {
4
+ /** The data-test attribute for the toast. */
5
+ dataTest?: string;
6
+ /** Controls (overrides) whether the toast is dismissible. */
7
+ dismissible?: boolean | undefined;
8
+ /**
9
+ * @deprecated use `variant` prop instead
10
+ * Renders the error state
11
+ */
12
+ error?: boolean;
13
+ /** The message rendered in the toast, using the default slot overrides this value */
14
+ message?: string;
15
+ /**
16
+ * @deprecated use `variant` prop instead
17
+ * Renders the success state
18
+ */
19
+ success?: boolean;
20
+ /** Show/hides the toast */
21
+ value?: boolean;
22
+ /** The variant of the toast */
23
+ variant?: ToastVariant;
24
+ /**
25
+ * @deprecated use `variant` prop instead
26
+ * Renders the warning state
27
+ */
28
+ warning?: boolean;
29
+ };
30
+ declare function __VLS_template(): {
31
+ attrs: Partial<{}>;
32
+ slots: Readonly<{
33
+ icon?: () => VNode[];
34
+ default?: () => VNode[];
35
+ }> & {
36
+ icon?: () => VNode[];
37
+ default?: () => VNode[];
38
+ };
39
+ refs: {
40
+ alert: unknown;
41
+ };
42
+ rootEl: any;
43
+ };
44
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
45
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
46
+ input: (value: boolean) => any;
47
+ hide: () => any;
48
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
49
+ onInput?: ((value: boolean) => any) | undefined;
50
+ onHide?: (() => any) | undefined;
51
+ }>, {
52
+ error: boolean;
53
+ value: boolean;
54
+ dataTest: string;
55
+ message: string;
56
+ variant: ToastVariant;
57
+ warning: boolean;
58
+ dismissible: boolean;
59
+ success: boolean;
60
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
61
+ alert: unknown;
62
+ }, any>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
64
+ export default _default;
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ /** Test selector for the component */
4
+ dataTest?: string;
5
+ /**
6
+ * Whether to hide the component. If "auto", the component will automatically
7
+ * hide itself if it has no content.
8
+ */
9
+ hide?: boolean | 'auto';
10
+ /** Validation message to display */
11
+ validationMessage?: string | null;
12
+ };
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: Readonly<{
16
+ default?: () => VNode[];
17
+ append?: () => VNode[];
18
+ }> & {
19
+ default?: () => VNode[];
20
+ append?: () => VNode[];
21
+ };
22
+ refs: {};
23
+ rootEl: any;
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
+ dataTest: string;
28
+ hide: boolean | "auto";
29
+ validationMessage: string | null;
30
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };