@propelinc/citrus-ui 1.3.1 → 2.0.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 +3 -1
- package/dist/citrus-ui.cdn.css +1 -1
- package/dist/citrus-ui.css +1 -1
- package/dist/colors/colors.d.ts +12 -0
- package/dist/components/CBadge.vue.d.ts +0 -1
- package/dist/components/CCard.vue.d.ts +0 -5
- package/dist/components/CIconButton.vue.d.ts +0 -6
- package/dist/components/CMaskedTextField.vue.d.ts +23 -60
- package/dist/components/CPhoneField.vue.d.ts +40 -92
- package/dist/components/CProgressRing.vue.d.ts +0 -1
- package/dist/components/CSelect.vue.d.ts +0 -4
- package/dist/components/CSkeleton.vue.d.ts +5 -1
- package/dist/components/CSkeletonLoaderCard.vue.d.ts +3 -0
- package/dist/components/CSplitInput.vue.d.ts +1 -5
- package/dist/components/CSsnField.vue.d.ts +41 -95
- package/dist/components/CSwitchListItem.vue.d.ts +1 -4
- package/dist/components/CTextArea.vue.d.ts +3 -8
- package/dist/components/CTextField.vue.d.ts +6 -14
- package/dist/components/CTextLink.vue.d.ts +0 -3
- package/dist/components/CZipcodeField.vue.d.ts +42 -96
- package/dist/components/index.d.ts +0 -2
- package/dist/composables/colors.d.ts +3 -2
- package/dist/composables/input-mask.d.ts +2 -2
- package/dist/composables/toast.d.ts +1 -0
- package/dist/index.cdn.mjs +4490 -4689
- package/dist/index.cdn.mjs.map +1 -1
- package/dist/index.mjs +1594 -1657
- package/dist/index.mjs.map +1 -1
- package/dist/src/assets/fonts/grenette-regular.woff2 +0 -0
- package/dist/src/assets/fonts/grenette-semibold.woff2 +0 -0
- package/dist/src/assets/fonts/polymath.woff2 +0 -0
- package/dist/styles.css +33 -34
- package/package.json +6 -4
- package/src/colors/colors.ts +44 -0
- package/src/colors/util-classes.ts +4 -0
- package/src/components/CAppBar.vue +3 -3
- package/src/components/CBadge.vue +3 -4
- package/src/components/CBottomSheet.vue +2 -2
- package/src/components/CCard.vue +3 -8
- package/src/components/CIconButton.vue +0 -6
- package/src/components/CLoader.vue +3 -3
- package/src/components/CMaskedTextField.vue +4 -9
- package/src/components/CNotification.vue +1 -0
- package/src/components/CProgressRing.vue +3 -4
- package/src/components/CSelect.vue +0 -4
- package/src/components/CSkeleton.vue +12 -1
- package/src/components/CSkeletonLoaderCard.vue +4 -1
- package/src/components/CSkeletonLoaderText.vue +3 -3
- package/src/components/CSplitInput.vue +1 -5
- package/src/components/CSquaredIcon.vue +2 -2
- package/src/components/CSsnField.vue +1 -3
- package/src/components/CSwitchListItem.vue +1 -4
- package/src/components/CTextArea.vue +3 -8
- package/src/components/CTextField.vue +3 -11
- package/src/components/CTextLink.vue +0 -3
- package/src/components/CToast.vue +3 -3
- package/src/components/CToastsList.vue +1 -0
- package/src/components/CZipcodeField.vue +2 -4
- package/src/components/index.ts +0 -2
- package/src/composables/colors.ts +12 -4
- package/src/composables/input-mask.ts +4 -4
- package/src/composables/toast.ts +1 -0
- package/src/styles/_core.scss +12 -10
- package/src/styles/_typography.scss +4 -0
- package/src/styles/layer-order.css +1 -0
- package/src/styles/tailwind.css +3 -0
- package/src/styles/variables.scss +15 -14
- package/dist/components/CCol.vue.d.ts +0 -30
- package/dist/components/CRow.vue.d.ts +0 -41
- package/src/components/CCol.vue +0 -54
- package/src/components/CRow.vue +0 -64
|
@@ -5,8 +5,8 @@ import { OnCleanup } from '@vue/reactivity';
|
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
dataTest?: string;
|
|
7
7
|
id?: string;
|
|
8
|
-
label?: string
|
|
9
|
-
placeholder?: string
|
|
8
|
+
label?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
10
|
rules?: Rules<string>;
|
|
11
11
|
value?: string;
|
|
12
12
|
};
|
|
@@ -27,10 +27,10 @@ declare function __VLS_template(): {
|
|
|
27
27
|
readonly counter?: number | null | undefined;
|
|
28
28
|
readonly dataTest?: string | undefined;
|
|
29
29
|
readonly id?: string | undefined;
|
|
30
|
-
readonly label?: string |
|
|
30
|
+
readonly label?: string | undefined;
|
|
31
31
|
readonly mask: MaskOptions["mask"] | null;
|
|
32
|
-
readonly minlength?: number | string |
|
|
33
|
-
readonly maxlength?: number | string |
|
|
32
|
+
readonly minlength?: number | string | undefined;
|
|
33
|
+
readonly maxlength?: number | string | undefined;
|
|
34
34
|
readonly placeholder?: string | undefined;
|
|
35
35
|
readonly rules?: Rules<string> | undefined;
|
|
36
36
|
readonly tokens?: ( MaskTokens | null) | undefined;
|
|
@@ -55,9 +55,9 @@ declare function __VLS_template(): {
|
|
|
55
55
|
$: ComponentInternalInstance;
|
|
56
56
|
$data: {};
|
|
57
57
|
$props: {
|
|
58
|
-
readonly id?: string |
|
|
59
|
-
readonly label?: string |
|
|
60
|
-
readonly ariaLabel?: string |
|
|
58
|
+
readonly id?: string | undefined;
|
|
59
|
+
readonly label?: string | undefined;
|
|
60
|
+
readonly ariaLabel?: string | undefined;
|
|
61
61
|
readonly placeholder?: string | undefined;
|
|
62
62
|
readonly type?: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric" | undefined;
|
|
63
63
|
readonly clearable?: boolean | undefined;
|
|
@@ -104,9 +104,9 @@ declare function __VLS_template(): {
|
|
|
104
104
|
$emit: ((event: "change", value: string) => void) & ((event: "blur", event: Event) => void) & ((event: "click", event: MouseEvent) => void) & ((event: "focus", event: Event) => void) & ((event: "input", value: string) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "click:hide", hidden: boolean) => void);
|
|
105
105
|
$el: any;
|
|
106
106
|
$options: ComponentOptionsBase<Readonly<{
|
|
107
|
-
id?: string
|
|
108
|
-
label?: string
|
|
109
|
-
ariaLabel?: string
|
|
107
|
+
id?: string;
|
|
108
|
+
label?: string;
|
|
109
|
+
ariaLabel?: string;
|
|
110
110
|
placeholder?: string;
|
|
111
111
|
type?: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
|
|
112
112
|
clearable?: boolean;
|
|
@@ -153,27 +153,19 @@ declare function __VLS_template(): {
|
|
|
153
153
|
"click:hide": (hidden: boolean) => any;
|
|
154
154
|
}, string, {
|
|
155
155
|
type: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
|
|
156
|
-
label: string | null;
|
|
157
|
-
id: string | null;
|
|
158
156
|
value: string;
|
|
159
157
|
size: "medium" | "large";
|
|
160
158
|
dataTest: string;
|
|
161
|
-
placeholder: string;
|
|
162
159
|
disabled: boolean;
|
|
163
|
-
ariaLabel: string | null;
|
|
164
160
|
rules: Rules<string>;
|
|
165
161
|
required: boolean;
|
|
166
162
|
hideDetails: boolean | "auto";
|
|
167
163
|
counter: number | null;
|
|
168
164
|
counterValue: number | (() => number | null) | null;
|
|
169
165
|
clearable: boolean;
|
|
170
|
-
inputmode: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
171
|
-
minlength: number | string;
|
|
172
|
-
maxlength: number | string;
|
|
173
166
|
hideable: boolean;
|
|
174
167
|
hideLabel: boolean;
|
|
175
168
|
validateOnBlur: boolean;
|
|
176
|
-
errorMessage: string;
|
|
177
169
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
178
170
|
beforeCreate?: (() => void) | (() => void)[];
|
|
179
171
|
created?: (() => void) | (() => void)[];
|
|
@@ -196,31 +188,23 @@ declare function __VLS_template(): {
|
|
|
196
188
|
$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;
|
|
197
189
|
} & Readonly<{
|
|
198
190
|
type: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
|
|
199
|
-
label: string | null;
|
|
200
|
-
id: string | null;
|
|
201
191
|
value: string;
|
|
202
192
|
size: "medium" | "large";
|
|
203
193
|
dataTest: string;
|
|
204
|
-
placeholder: string;
|
|
205
194
|
disabled: boolean;
|
|
206
|
-
ariaLabel: string | null;
|
|
207
195
|
rules: Rules<string>;
|
|
208
196
|
required: boolean;
|
|
209
197
|
hideDetails: boolean | "auto";
|
|
210
198
|
counter: number | null;
|
|
211
199
|
counterValue: number | (() => number | null) | null;
|
|
212
200
|
clearable: boolean;
|
|
213
|
-
inputmode: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
214
|
-
minlength: number | string;
|
|
215
|
-
maxlength: number | string;
|
|
216
201
|
hideable: boolean;
|
|
217
202
|
hideLabel: boolean;
|
|
218
203
|
validateOnBlur: boolean;
|
|
219
|
-
errorMessage: string;
|
|
220
204
|
}> & Omit<Readonly<{
|
|
221
|
-
id?: string
|
|
222
|
-
label?: string
|
|
223
|
-
ariaLabel?: string
|
|
205
|
+
id?: string;
|
|
206
|
+
label?: string;
|
|
207
|
+
ariaLabel?: string;
|
|
224
208
|
placeholder?: string;
|
|
225
209
|
type?: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
|
|
226
210
|
clearable?: boolean;
|
|
@@ -250,7 +234,7 @@ declare function __VLS_template(): {
|
|
|
250
234
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
251
235
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
252
236
|
"onClick:hide"?: ((hidden: boolean) => any) | undefined;
|
|
253
|
-
}>, "blur" | "focus" | "input" | "startValidating" | ("type" | "
|
|
237
|
+
}>, "blur" | "focus" | "input" | "startValidating" | ("type" | "value" | "size" | "dataTest" | "disabled" | "rules" | "required" | "hideDetails" | "counter" | "counterValue" | "clearable" | "hideable" | "hideLabel" | "validateOnBlur")> & ShallowUnwrapRef<{
|
|
254
238
|
input: Ref<HTMLInputElement | null>;
|
|
255
239
|
focus: () => void;
|
|
256
240
|
blur: () => void;
|
|
@@ -281,10 +265,10 @@ declare function __VLS_template(): {
|
|
|
281
265
|
counter?: number | null;
|
|
282
266
|
dataTest?: string;
|
|
283
267
|
id?: string;
|
|
284
|
-
label?: string
|
|
268
|
+
label?: string;
|
|
285
269
|
mask: MaskOptions["mask"] | null;
|
|
286
|
-
minlength?: number | string
|
|
287
|
-
maxlength?: number | string
|
|
270
|
+
minlength?: number | string;
|
|
271
|
+
maxlength?: number | string;
|
|
288
272
|
placeholder?: string;
|
|
289
273
|
rules?: Rules<string>;
|
|
290
274
|
tokens?: MaskTokens | null;
|
|
@@ -311,15 +295,10 @@ declare function __VLS_template(): {
|
|
|
311
295
|
keyup: (event: KeyboardEvent) => any;
|
|
312
296
|
"input:masked": (value: string) => any;
|
|
313
297
|
}, string, {
|
|
314
|
-
label: string | null;
|
|
315
|
-
id: string;
|
|
316
298
|
value: string;
|
|
317
299
|
dataTest: string;
|
|
318
|
-
placeholder: string;
|
|
319
300
|
rules: Rules<string>;
|
|
320
301
|
counter: number | null;
|
|
321
|
-
minlength: number | string | null;
|
|
322
|
-
maxlength: number | string | null;
|
|
323
302
|
tokens: MaskTokens | null;
|
|
324
303
|
unmaskRules: boolean;
|
|
325
304
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -343,25 +322,20 @@ declare function __VLS_template(): {
|
|
|
343
322
|
$nextTick: nextTick;
|
|
344
323
|
$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;
|
|
345
324
|
} & Readonly<{
|
|
346
|
-
label: string | null;
|
|
347
|
-
id: string;
|
|
348
325
|
value: string;
|
|
349
326
|
dataTest: string;
|
|
350
|
-
placeholder: string;
|
|
351
327
|
rules: Rules<string>;
|
|
352
328
|
counter: number | null;
|
|
353
|
-
minlength: number | string | null;
|
|
354
|
-
maxlength: number | string | null;
|
|
355
329
|
tokens: MaskTokens | null;
|
|
356
330
|
unmaskRules: boolean;
|
|
357
331
|
}> & Omit<Readonly<{
|
|
358
332
|
counter?: number | null;
|
|
359
333
|
dataTest?: string;
|
|
360
334
|
id?: string;
|
|
361
|
-
label?: string
|
|
335
|
+
label?: string;
|
|
362
336
|
mask: MaskOptions["mask"] | null;
|
|
363
|
-
minlength?: number | string
|
|
364
|
-
maxlength?: number | string
|
|
337
|
+
minlength?: number | string;
|
|
338
|
+
maxlength?: number | string;
|
|
365
339
|
placeholder?: string;
|
|
366
340
|
rules?: Rules<string>;
|
|
367
341
|
tokens?: MaskTokens | null;
|
|
@@ -376,7 +350,7 @@ declare function __VLS_template(): {
|
|
|
376
350
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
377
351
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
378
352
|
"onInput:masked"?: ((value: string) => any) | undefined;
|
|
379
|
-
}>, "input" | ("
|
|
353
|
+
}>, "input" | ("value" | "dataTest" | "rules" | "counter" | "tokens" | "unmaskRules")> & ShallowUnwrapRef<{
|
|
380
354
|
input: ComputedRef<HTMLInputElement | null>;
|
|
381
355
|
}> & {} & ComponentCustomProperties & {} & {
|
|
382
356
|
$slots: Readonly<{
|
|
@@ -408,11 +382,9 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
408
382
|
onFocus?: ((event: Event) => any) | undefined;
|
|
409
383
|
onInput?: ((value: string) => any) | undefined;
|
|
410
384
|
}>, {
|
|
411
|
-
label: string | null;
|
|
412
385
|
id: string;
|
|
413
386
|
value: string;
|
|
414
387
|
dataTest: string;
|
|
415
|
-
placeholder: string | null;
|
|
416
388
|
rules: Rules<string>;
|
|
417
389
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
418
390
|
field: ({
|
|
@@ -422,10 +394,10 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
422
394
|
readonly counter?: number | null | undefined;
|
|
423
395
|
readonly dataTest?: string | undefined;
|
|
424
396
|
readonly id?: string | undefined;
|
|
425
|
-
readonly label?: string |
|
|
397
|
+
readonly label?: string | undefined;
|
|
426
398
|
readonly mask: MaskOptions["mask"] | null;
|
|
427
|
-
readonly minlength?: number | string |
|
|
428
|
-
readonly maxlength?: number | string |
|
|
399
|
+
readonly minlength?: number | string | undefined;
|
|
400
|
+
readonly maxlength?: number | string | undefined;
|
|
429
401
|
readonly placeholder?: string | undefined;
|
|
430
402
|
readonly rules?: Rules<string> | undefined;
|
|
431
403
|
readonly tokens?: ( MaskTokens | null) | undefined;
|
|
@@ -450,9 +422,9 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
450
422
|
$: ComponentInternalInstance;
|
|
451
423
|
$data: {};
|
|
452
424
|
$props: {
|
|
453
|
-
readonly id?: string |
|
|
454
|
-
readonly label?: string |
|
|
455
|
-
readonly ariaLabel?: string |
|
|
425
|
+
readonly id?: string | undefined;
|
|
426
|
+
readonly label?: string | undefined;
|
|
427
|
+
readonly ariaLabel?: string | undefined;
|
|
456
428
|
readonly placeholder?: string | undefined;
|
|
457
429
|
readonly type?: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric" | undefined;
|
|
458
430
|
readonly clearable?: boolean | undefined;
|
|
@@ -499,9 +471,9 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
499
471
|
$emit: ((event: "change", value: string) => void) & ((event: "blur", event: Event) => void) & ((event: "click", event: MouseEvent) => void) & ((event: "focus", event: Event) => void) & ((event: "input", value: string) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "click:hide", hidden: boolean) => void);
|
|
500
472
|
$el: any;
|
|
501
473
|
$options: ComponentOptionsBase<Readonly<{
|
|
502
|
-
id?: string
|
|
503
|
-
label?: string
|
|
504
|
-
ariaLabel?: string
|
|
474
|
+
id?: string;
|
|
475
|
+
label?: string;
|
|
476
|
+
ariaLabel?: string;
|
|
505
477
|
placeholder?: string;
|
|
506
478
|
type?: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
|
|
507
479
|
clearable?: boolean;
|
|
@@ -548,27 +520,19 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
548
520
|
"click:hide": (hidden: boolean) => any;
|
|
549
521
|
}, string, {
|
|
550
522
|
type: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
|
|
551
|
-
label: string | null;
|
|
552
|
-
id: string | null;
|
|
553
523
|
value: string;
|
|
554
524
|
size: "medium" | "large";
|
|
555
525
|
dataTest: string;
|
|
556
|
-
placeholder: string;
|
|
557
526
|
disabled: boolean;
|
|
558
|
-
ariaLabel: string | null;
|
|
559
527
|
rules: Rules<string>;
|
|
560
528
|
required: boolean;
|
|
561
529
|
hideDetails: boolean | "auto";
|
|
562
530
|
counter: number | null;
|
|
563
531
|
counterValue: number | (() => number | null) | null;
|
|
564
532
|
clearable: boolean;
|
|
565
|
-
inputmode: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
566
|
-
minlength: number | string;
|
|
567
|
-
maxlength: number | string;
|
|
568
533
|
hideable: boolean;
|
|
569
534
|
hideLabel: boolean;
|
|
570
535
|
validateOnBlur: boolean;
|
|
571
|
-
errorMessage: string;
|
|
572
536
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
573
537
|
beforeCreate?: (() => void) | (() => void)[];
|
|
574
538
|
created?: (() => void) | (() => void)[];
|
|
@@ -591,31 +555,23 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
591
555
|
$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;
|
|
592
556
|
} & Readonly<{
|
|
593
557
|
type: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
|
|
594
|
-
label: string | null;
|
|
595
|
-
id: string | null;
|
|
596
558
|
value: string;
|
|
597
559
|
size: "medium" | "large";
|
|
598
560
|
dataTest: string;
|
|
599
|
-
placeholder: string;
|
|
600
561
|
disabled: boolean;
|
|
601
|
-
ariaLabel: string | null;
|
|
602
562
|
rules: Rules<string>;
|
|
603
563
|
required: boolean;
|
|
604
564
|
hideDetails: boolean | "auto";
|
|
605
565
|
counter: number | null;
|
|
606
566
|
counterValue: number | (() => number | null) | null;
|
|
607
567
|
clearable: boolean;
|
|
608
|
-
inputmode: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
609
|
-
minlength: number | string;
|
|
610
|
-
maxlength: number | string;
|
|
611
568
|
hideable: boolean;
|
|
612
569
|
hideLabel: boolean;
|
|
613
570
|
validateOnBlur: boolean;
|
|
614
|
-
errorMessage: string;
|
|
615
571
|
}> & Omit<Readonly<{
|
|
616
|
-
id?: string
|
|
617
|
-
label?: string
|
|
618
|
-
ariaLabel?: string
|
|
572
|
+
id?: string;
|
|
573
|
+
label?: string;
|
|
574
|
+
ariaLabel?: string;
|
|
619
575
|
placeholder?: string;
|
|
620
576
|
type?: "text" | "password" | "email" | "tel" | "url" | "search" | "number" | "decimal" | "numeric";
|
|
621
577
|
clearable?: boolean;
|
|
@@ -645,7 +601,7 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
645
601
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
646
602
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
647
603
|
"onClick:hide"?: ((hidden: boolean) => any) | undefined;
|
|
648
|
-
}>, "blur" | "focus" | "input" | "startValidating" | ("type" | "
|
|
604
|
+
}>, "blur" | "focus" | "input" | "startValidating" | ("type" | "value" | "size" | "dataTest" | "disabled" | "rules" | "required" | "hideDetails" | "counter" | "counterValue" | "clearable" | "hideable" | "hideLabel" | "validateOnBlur")> & ShallowUnwrapRef<{
|
|
649
605
|
input: Ref<HTMLInputElement | null>;
|
|
650
606
|
focus: () => void;
|
|
651
607
|
blur: () => void;
|
|
@@ -676,10 +632,10 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
676
632
|
counter?: number | null;
|
|
677
633
|
dataTest?: string;
|
|
678
634
|
id?: string;
|
|
679
|
-
label?: string
|
|
635
|
+
label?: string;
|
|
680
636
|
mask: MaskOptions["mask"] | null;
|
|
681
|
-
minlength?: number | string
|
|
682
|
-
maxlength?: number | string
|
|
637
|
+
minlength?: number | string;
|
|
638
|
+
maxlength?: number | string;
|
|
683
639
|
placeholder?: string;
|
|
684
640
|
rules?: Rules<string>;
|
|
685
641
|
tokens?: MaskTokens | null;
|
|
@@ -706,15 +662,10 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
706
662
|
keyup: (event: KeyboardEvent) => any;
|
|
707
663
|
"input:masked": (value: string) => any;
|
|
708
664
|
}, string, {
|
|
709
|
-
label: string | null;
|
|
710
|
-
id: string;
|
|
711
665
|
value: string;
|
|
712
666
|
dataTest: string;
|
|
713
|
-
placeholder: string;
|
|
714
667
|
rules: Rules<string>;
|
|
715
668
|
counter: number | null;
|
|
716
|
-
minlength: number | string | null;
|
|
717
|
-
maxlength: number | string | null;
|
|
718
669
|
tokens: MaskTokens | null;
|
|
719
670
|
unmaskRules: boolean;
|
|
720
671
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -738,25 +689,20 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
738
689
|
$nextTick: nextTick;
|
|
739
690
|
$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;
|
|
740
691
|
} & Readonly<{
|
|
741
|
-
label: string | null;
|
|
742
|
-
id: string;
|
|
743
692
|
value: string;
|
|
744
693
|
dataTest: string;
|
|
745
|
-
placeholder: string;
|
|
746
694
|
rules: Rules<string>;
|
|
747
695
|
counter: number | null;
|
|
748
|
-
minlength: number | string | null;
|
|
749
|
-
maxlength: number | string | null;
|
|
750
696
|
tokens: MaskTokens | null;
|
|
751
697
|
unmaskRules: boolean;
|
|
752
698
|
}> & Omit<Readonly<{
|
|
753
699
|
counter?: number | null;
|
|
754
700
|
dataTest?: string;
|
|
755
701
|
id?: string;
|
|
756
|
-
label?: string
|
|
702
|
+
label?: string;
|
|
757
703
|
mask: MaskOptions["mask"] | null;
|
|
758
|
-
minlength?: number | string
|
|
759
|
-
maxlength?: number | string
|
|
704
|
+
minlength?: number | string;
|
|
705
|
+
maxlength?: number | string;
|
|
760
706
|
placeholder?: string;
|
|
761
707
|
rules?: Rules<string>;
|
|
762
708
|
tokens?: MaskTokens | null;
|
|
@@ -771,7 +717,7 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
|
771
717
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
772
718
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
773
719
|
"onInput:masked"?: ((value: string) => any) | undefined;
|
|
774
|
-
}>, "input" | ("
|
|
720
|
+
}>, "input" | ("value" | "dataTest" | "rules" | "counter" | "tokens" | "unmaskRules")> & ShallowUnwrapRef<{
|
|
775
721
|
input: ComputedRef<HTMLInputElement | null>;
|
|
776
722
|
}> & {} & ComponentCustomProperties & {} & {
|
|
777
723
|
$slots: Readonly<{
|
|
@@ -9,7 +9,6 @@ export { default as CCardFooter } from './CCardFooter.vue';
|
|
|
9
9
|
export { default as CCardHeader } from './CCardHeader.vue';
|
|
10
10
|
export { default as CCardSection } from './CCardSection.vue';
|
|
11
11
|
export { default as CCheckbox } from './CCheckbox.vue';
|
|
12
|
-
export { default as CCol } from './CCol.vue';
|
|
13
12
|
export { default as CDivider } from './CDivider.vue';
|
|
14
13
|
export { default as CDobField } from './CDobField.vue';
|
|
15
14
|
export { default as CDobSelect } from './CDobSelect.vue';
|
|
@@ -41,7 +40,6 @@ export { default as CProgressRing } from './CProgressRing.vue';
|
|
|
41
40
|
export { default as CRadio } from './CRadio.vue';
|
|
42
41
|
export { default as CRadioGroup } from './CRadioGroup.vue';
|
|
43
42
|
export { default as CRebrand } from './CRebrand.vue';
|
|
44
|
-
export { default as CRow } from './CRow.vue';
|
|
45
43
|
export { default as CSafeArea } from './CSafeArea.vue';
|
|
46
44
|
export { default as CSectionHeader } from './CSectionHeader.vue';
|
|
47
45
|
export { default as CSelect } from './CSelect.vue';
|
|
@@ -3,11 +3,12 @@ import { CssColor } from '../colors/colors';
|
|
|
3
3
|
/**
|
|
4
4
|
* Maps from a color name or hex code to its corresponding CSS color value.
|
|
5
5
|
* Gray neutrals resolve to rgba(); other palette colors are hex.
|
|
6
|
+
* Can also accept a palette color converted to rgba for transparency via `withAlpha`.
|
|
6
7
|
*
|
|
7
8
|
* @param name - The color to resolve. Can be in kebab case, SCREAMING_SNAKE_CASE, or a hex code from the palette.
|
|
8
9
|
* @returns The CSS color value (hex or rgba) and whether the color is valid.
|
|
9
10
|
*/
|
|
10
|
-
export declare function
|
|
11
|
+
export declare function usePaletteColor(name: MaybeRefOrGetter<string | undefined>): {
|
|
11
12
|
cssColor: Ref<CssColor | undefined>;
|
|
12
|
-
|
|
13
|
+
isPaletteColor: Ref<boolean>;
|
|
13
14
|
};
|
|
@@ -14,5 +14,5 @@ options: Ref<MaskInputOptions>): {
|
|
|
14
14
|
maskedValue: Ref<string>;
|
|
15
15
|
unmaskedValue: Ref<string>;
|
|
16
16
|
};
|
|
17
|
-
export declare function useMaskedMinLength(minlength: Ref<number | string |
|
|
18
|
-
export declare function useMaskedMaxLength(maxlength: Ref<number | string |
|
|
17
|
+
export declare function useMaskedMinLength(minlength: Ref<number | string | undefined>, value: Ref<string>, options: Ref<MaskOptions>): Ref<number | null>;
|
|
18
|
+
export declare function useMaskedMaxLength(maxlength: Ref<number | string | undefined>, options: Ref<MaskOptions>): Ref<number | null>;
|