@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.
Files changed (201) hide show
  1. package/README.md +39 -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} +8 -6
  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 +8 -3
  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/types.ts +2 -0
  200. package/dist/index.cdn.css +0 -1
  201. package/dist/styles/utils.css +0 -2709
@@ -0,0 +1,97 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { RouteLocationRaw } from 'vue-router';
4
+ import { ButtonIconPosition, ButtonLevel, ButtonSize, ButtonVariant } from './types';
5
+ type __VLS_Props = {
6
+ /** Controls whether button appears as full-width */
7
+ block?: boolean;
8
+ /** Controls whether button is disabled */
9
+ disabled?: boolean;
10
+ /** Designates the button as an anchor and applies the href attribute */
11
+ href?: string;
12
+ /** Chooses an icon to render next to the button text */
13
+ icon?: string | string[] | IconDefinition;
14
+ /** Chooses whether to place the icon before or after the button text */
15
+ iconPosition?: ButtonIconPosition;
16
+ /**
17
+ * @deprecated use `size` prop instead
18
+ * Controls whether button uses the large variant
19
+ */
20
+ large?: boolean;
21
+ /** Controls the level of the button */
22
+ level?: ButtonLevel;
23
+ /** Controls whether button is loading */
24
+ loading?: boolean;
25
+ /**
26
+ * @deprecated use `variant` prop instead
27
+ * Controls whether button uses the secondary variant
28
+ */
29
+ secondary?: boolean;
30
+ /**
31
+ * Controls the size of the button
32
+ * @default 'medium'
33
+ */
34
+ size?: ButtonSize;
35
+ /** Designates the target attribute. Only use with the href prop. */
36
+ target?: string;
37
+ /**
38
+ * @deprecated use `variant` prop instead
39
+ * Controls whether button uses the tertiary variant
40
+ */
41
+ tertiary?: boolean;
42
+ /** Controls whether button functions as a router-link */
43
+ to?: RouteLocationRaw;
44
+ /**
45
+ * Controls the styling of the button
46
+ * @default 'primary'
47
+ */
48
+ variant?: ButtonVariant;
49
+ };
50
+ declare function __VLS_template(): {
51
+ attrs: Partial<{}>;
52
+ slots: Readonly<{
53
+ icon?: () => VNode[];
54
+ default?: () => VNode[];
55
+ }> & {
56
+ icon?: () => VNode[];
57
+ default?: () => VNode[];
58
+ };
59
+ refs: {
60
+ button: unknown;
61
+ };
62
+ rootEl: any;
63
+ };
64
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
65
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
66
+ blur: (event: Event) => any;
67
+ click: (event: MouseEvent) => any;
68
+ focus: (event: Event) => any;
69
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
70
+ onBlur?: ((event: Event) => any) | undefined;
71
+ onClick?: ((event: MouseEvent) => any) | undefined;
72
+ onFocus?: ((event: Event) => any) | undefined;
73
+ }>, {
74
+ to: RouteLocationRaw;
75
+ size: ButtonSize;
76
+ icon: string | string[] | IconDefinition;
77
+ target: string;
78
+ tertiary: boolean;
79
+ loading: boolean;
80
+ block: boolean;
81
+ large: boolean;
82
+ disabled: boolean;
83
+ secondary: boolean;
84
+ href: string;
85
+ iconPosition: ButtonIconPosition;
86
+ level: ButtonLevel;
87
+ variant: ButtonVariant;
88
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
89
+ button: unknown;
90
+ }, 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,5 @@
1
+ export type ButtonSize = 'medium' | 'large';
2
+ export type ButtonLevel = 'normal' | 'danger';
3
+ export type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
4
+ export type ButtonShoelaceVariant = 'default' | 'primary' | 'text';
5
+ export type ButtonIconPosition = 'prefix' | 'suffix';
@@ -0,0 +1,27 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ tag?: string;
4
+ large?: boolean | null;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: Readonly<{
9
+ default?: () => VNode[];
10
+ }> & {
11
+ default?: () => VNode[];
12
+ };
13
+ refs: {};
14
+ rootEl: any;
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
+ large: boolean | null;
19
+ tag: string;
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
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,53 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { RouteLocationRaw } from 'vue-router';
3
+ export interface InternalCardConfig {
4
+ attrs: Record<string, unknown>;
5
+ element: string;
6
+ isLink: boolean;
7
+ }
8
+ type __VLS_Props = {
9
+ /** Sets the border color of the card */
10
+ borderColor?: string;
11
+ /** Removes the border of the card */
12
+ borderless?: boolean;
13
+ /** Sets the background color of the entire card */
14
+ color?: string;
15
+ /** Navigates externally on click */
16
+ href?: string;
17
+ /** Stretches the card vertically to fill the height of the parent container */
18
+ stretch?: boolean;
19
+ /** Toggles a squared-off card style intended to fill the width of the page */
20
+ tile?: boolean;
21
+ /** Sets the title of the card */
22
+ title?: string;
23
+ /** Navigates within the app on click */
24
+ to?: RouteLocationRaw;
25
+ };
26
+ declare function __VLS_template(): {
27
+ attrs: Partial<{}>;
28
+ slots: Readonly<{
29
+ default?: () => VNode[];
30
+ }> & {
31
+ default?: () => VNode[];
32
+ };
33
+ refs: {};
34
+ rootEl: any;
35
+ };
36
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
37
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
38
+ title: string;
39
+ to: RouteLocationRaw;
40
+ color: string;
41
+ href: string;
42
+ borderColor: string;
43
+ borderless: boolean;
44
+ stretch: boolean;
45
+ tile: boolean;
46
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
47
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
+ export default _default;
49
+ type __VLS_WithTemplateSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,20 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ default?: () => VNode[];
6
+ }> & {
7
+ default?: () => VNode[];
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,22 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ default?: () => VNode[];
6
+ append?: () => VNode[];
7
+ }> & {
8
+ default?: () => VNode[];
9
+ append?: () => VNode[];
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,26 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ /** Removes the padding from the content */
4
+ fluid?: boolean;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: Readonly<{
9
+ default?: () => VNode[];
10
+ }> & {
11
+ default?: () => VNode[];
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
+ fluid: boolean;
19
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,62 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ /** A custom data-test selector */
4
+ dataTest?: string;
5
+ /** Hides the validation message area. */
6
+ hideDetails?: boolean | 'auto';
7
+ /** Assigns the checkbox's id */
8
+ id?: string | null;
9
+ /** The label text for the checkbox */
10
+ label?: string;
11
+ /**
12
+ * An array of functions that either return either true / false or a string
13
+ * containing an error message. The component passes the input value as an
14
+ * argument. The input field will enter an error state if a function does
15
+ * not return true.
16
+ */
17
+ rules?: ((value: boolean) => string | boolean)[];
18
+ /** Whether the checkbox is checked */
19
+ value?: boolean;
20
+ /**
21
+ * Controls the appearance of the checkbox.
22
+ * @default 'contained'
23
+ */
24
+ variant?: 'contained' | 'minimal';
25
+ };
26
+ declare function __VLS_template(): {
27
+ attrs: Partial<{}>;
28
+ slots: Readonly<{
29
+ label?: () => VNode[];
30
+ message?: () => VNode[];
31
+ }> & {
32
+ label?: () => VNode[];
33
+ message?: () => VNode[];
34
+ };
35
+ refs: {};
36
+ rootEl: HTMLDivElement;
37
+ };
38
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
40
+ change: (value: boolean) => any;
41
+ blur: () => any;
42
+ focus: () => any;
43
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
44
+ onChange?: ((value: boolean) => any) | undefined;
45
+ onBlur?: (() => any) | undefined;
46
+ onFocus?: (() => any) | undefined;
47
+ }>, {
48
+ label: string;
49
+ id: string | null;
50
+ value: boolean;
51
+ dataTest: string;
52
+ variant: "contained" | "minimal";
53
+ rules: ((value: boolean) => string | boolean)[];
54
+ hideDetails: boolean | "auto";
55
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
56
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
57
+ export default _default;
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1,30 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type Cols = 'auto' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
3
+ type __VLS_Props = {
4
+ /**
5
+ * Sets the default number of columns the component extends.
6
+ * Available options are: 1 -> 12 and auto.
7
+ */
8
+ cols?: Cols | null;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: Readonly<{
13
+ default?: () => VNode[];
14
+ }> & {
15
+ default?: () => VNode[];
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
+ cols: Cols | null;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,9 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ /** Displays dividers vertically. */
4
+ vertical?: boolean;
5
+ };
6
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ vertical: boolean;
8
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLHRElement>;
9
+ export default _default;
@@ -0,0 +1,60 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Rules } from '../composables/validations';
3
+ type __VLS_Props = {
4
+ /** A custom data-test attribute for the input. */
5
+ dataTest?: string;
6
+ /** A unique id for the input. */
7
+ id?: string;
8
+ /** The input's label text. */
9
+ label?: string | null;
10
+ /** The input's placeholder. */
11
+ placeholder?: string;
12
+ /** Additional validation rules. */
13
+ rules?: Rules<string>;
14
+ /** The value of the input, must have the format YYYY-MM-DD or YYYY. */
15
+ value?: string;
16
+ /**
17
+ * Toggles the field's year only variant. Changes default label, placeholder,
18
+ * mask and validation behavior
19
+ */
20
+ yearOnly?: boolean;
21
+ };
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: Readonly<{
25
+ label?: () => VNode[];
26
+ message?: () => VNode[];
27
+ }> & {
28
+ label?: () => VNode[];
29
+ message?: () => VNode[];
30
+ };
31
+ refs: {};
32
+ rootEl: any;
33
+ };
34
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
35
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
36
+ change: (event: Event) => any;
37
+ blur: (event: Event) => any;
38
+ focus: (event: Event) => any;
39
+ input: (value: string) => any;
40
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
41
+ onChange?: ((event: Event) => any) | undefined;
42
+ onBlur?: ((event: Event) => any) | undefined;
43
+ onFocus?: ((event: Event) => any) | undefined;
44
+ onInput?: ((value: string) => any) | undefined;
45
+ }>, {
46
+ label: string | null;
47
+ id: string;
48
+ value: string;
49
+ dataTest: string;
50
+ placeholder: string;
51
+ rules: Rules<string>;
52
+ yearOnly: boolean;
53
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
54
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
55
+ export default _default;
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,50 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Rules } from '../composables/validations';
3
+ type __VLS_Props = {
4
+ dataTest?: string;
5
+ id?: string;
6
+ label?: string | null;
7
+ required?: boolean;
8
+ rules?: Rules<string>;
9
+ hideLabel?: boolean;
10
+ hideDetails?: boolean;
11
+ value?: string;
12
+ disabled?: boolean;
13
+ };
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: Readonly<{
17
+ label?: () => VNode[];
18
+ }> & {
19
+ label?: () => VNode[];
20
+ };
21
+ refs: {};
22
+ rootEl: HTMLDivElement;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
26
+ blur: () => any;
27
+ focus: () => any;
28
+ input: (value: string) => any;
29
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
30
+ onBlur?: (() => any) | undefined;
31
+ onFocus?: (() => any) | undefined;
32
+ onInput?: ((value: string) => any) | undefined;
33
+ }>, {
34
+ label: string | null;
35
+ id: string;
36
+ value: string;
37
+ dataTest: string;
38
+ disabled: boolean;
39
+ rules: Rules<string>;
40
+ required: boolean;
41
+ hideDetails: boolean;
42
+ hideLabel: boolean;
43
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
+ export default _default;
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,48 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Rules } from '../composables/validations';
3
+ type __VLS_Props = {
4
+ dataTest?: string;
5
+ id?: string;
6
+ label?: string | null;
7
+ placeholder?: string | null;
8
+ rules?: Rules<string>;
9
+ value?: string;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: Readonly<{
14
+ label?: () => VNode[];
15
+ message?: () => VNode[];
16
+ }> & {
17
+ label?: () => VNode[];
18
+ message?: () => VNode[];
19
+ };
20
+ refs: {};
21
+ rootEl: any;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
25
+ change: (value: string) => any;
26
+ blur: (event: Event) => any;
27
+ focus: (event: Event) => any;
28
+ input: (value: string) => any;
29
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
30
+ onChange?: ((value: string) => any) | undefined;
31
+ onBlur?: ((event: Event) => any) | undefined;
32
+ onFocus?: ((event: Event) => any) | undefined;
33
+ onInput?: ((value: string) => any) | undefined;
34
+ }>, {
35
+ label: string | null;
36
+ id: string;
37
+ value: string;
38
+ dataTest: string;
39
+ placeholder: string | null;
40
+ rules: Rules<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,29 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ disabled?: boolean;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: Readonly<{
8
+ default: () => VNode[];
9
+ }> & {
10
+ default: () => VNode[];
11
+ };
12
+ refs: {
13
+ content: HTMLDivElement;
14
+ };
15
+ rootEl: HTMLDivElement;
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
+ disabled: boolean;
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
21
+ content: HTMLDivElement;
22
+ }, HTMLDivElement>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,20 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ default: () => VNode[];
6
+ }> & {
7
+ default: () => VNode[];
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,50 @@
1
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ /** A custom data-test string applied to the form field, text field and hide icon */
4
+ dataTest?: string;
5
+ /** Controls whether the input is disabled */
6
+ disabled?: boolean;
7
+ /** A unique id for the input */
8
+ id: string;
9
+ /** The input's label, both visual and screenreader-only */
10
+ label: string;
11
+ /** Allow the user to upload multiple files */
12
+ multiple?: boolean;
13
+ /** Placholder text to display before a user has selected any files */
14
+ prompt: string;
15
+ /** Controls whether the input is required */
16
+ required?: boolean;
17
+ /** The input's value. Either one file or an array of files */
18
+ value?: File[] | File | null;
19
+ };
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: Readonly<{
23
+ label?: () => VNode[];
24
+ prompt?: () => VNode[];
25
+ }> & {
26
+ label?: () => VNode[];
27
+ prompt?: () => VNode[];
28
+ };
29
+ refs: {};
30
+ rootEl: HTMLLabelElement;
31
+ };
32
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
34
+ input: (value: File | File[] | null) => any;
35
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ onInput?: ((value: File | File[] | null) => any) | undefined;
37
+ }>, {
38
+ value: File[] | File | null;
39
+ dataTest: string;
40
+ disabled: boolean;
41
+ required: boolean;
42
+ multiple: boolean;
43
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
+ export default _default;
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };