@pequity/squirrel 6.1.0 → 7.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.
Files changed (98) hide show
  1. package/dist/cjs/chunks/p-alert.js +52 -0
  2. package/dist/cjs/chunks/p-avatar.js +65 -0
  3. package/dist/cjs/chunks/p-btn.js +4 -4
  4. package/dist/cjs/chunks/p-date-picker.js +2 -2
  5. package/dist/cjs/chunks/p-input-number.js +161 -0
  6. package/dist/cjs/chunks/p-input-percent.js +2 -2
  7. package/dist/cjs/chunks/p-input.js +111 -0
  8. package/dist/cjs/chunks/p-progress-bar.js +38 -0
  9. package/dist/cjs/chunks/p-select-btn.js +3 -4
  10. package/dist/cjs/chunks/p-textarea.js +89 -0
  11. package/dist/cjs/index.js +69 -76
  12. package/dist/cjs/inputClasses.js +8 -2
  13. package/dist/cjs/p-alert.js +2 -64
  14. package/dist/cjs/p-avatar.js +2 -70
  15. package/dist/cjs/p-drawer.js +2 -2
  16. package/dist/cjs/p-input-number.js +2 -145
  17. package/dist/cjs/p-input-search.js +2 -2
  18. package/dist/cjs/p-input.js +2 -92
  19. package/dist/cjs/p-modal.js +2 -2
  20. package/dist/cjs/p-progress-bar.js +2 -40
  21. package/dist/cjs/p-table-filter-icon.js +14 -9
  22. package/dist/cjs/p-textarea.js +2 -72
  23. package/dist/cjs/p-toggle.js +76 -64
  24. package/dist/cjs/useInputClasses.js +13 -18
  25. package/dist/es/chunks/p-alert.js +53 -0
  26. package/dist/es/chunks/p-avatar.js +66 -0
  27. package/dist/es/chunks/p-btn.js +4 -4
  28. package/dist/es/chunks/p-date-picker.js +2 -2
  29. package/dist/es/chunks/p-input-number.js +162 -0
  30. package/dist/es/chunks/p-input-percent.js +2 -2
  31. package/dist/es/chunks/p-input.js +112 -0
  32. package/dist/es/chunks/p-progress-bar.js +39 -0
  33. package/dist/es/chunks/p-select-btn.js +4 -5
  34. package/dist/es/chunks/p-textarea.js +90 -0
  35. package/dist/es/index.js +119 -126
  36. package/dist/es/inputClasses.js +8 -2
  37. package/dist/es/p-alert.js +2 -64
  38. package/dist/es/p-avatar.js +2 -70
  39. package/dist/es/p-drawer.js +2 -2
  40. package/dist/es/p-input-number.js +2 -145
  41. package/dist/es/p-input-search.js +2 -2
  42. package/dist/es/p-input.js +2 -92
  43. package/dist/es/p-modal.js +2 -2
  44. package/dist/es/p-progress-bar.js +2 -40
  45. package/dist/es/p-table-filter-icon.js +14 -9
  46. package/dist/es/p-textarea.js +2 -72
  47. package/dist/es/p-toggle.js +77 -65
  48. package/dist/es/useInputClasses.js +14 -19
  49. package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +27 -10
  50. package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +9 -10
  51. package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +28 -28
  52. package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +2 -2
  53. package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +37 -13
  54. package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +2 -2
  55. package/dist/squirrel/components/p-input/p-input.vue.d.ts +30 -61
  56. package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +101 -65
  57. package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +113 -83
  58. package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +2 -2
  59. package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +5 -20
  60. package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +1 -1
  61. package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +1 -1
  62. package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +3 -7
  63. package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +79 -42
  64. package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +25 -62
  65. package/dist/squirrel/composables/useInputClasses.d.ts +2 -1
  66. package/dist/squirrel/utils/index.d.ts +1 -3
  67. package/dist/squirrel/utils/inputClasses.d.ts +12 -0
  68. package/dist/squirrel.css +5 -5
  69. package/package.json +19 -19
  70. package/squirrel/components/p-alert/p-alert.spec.js +9 -8
  71. package/squirrel/components/p-alert/p-alert.vue +19 -31
  72. package/squirrel/components/p-avatar/p-avatar.spec.ts +10 -3
  73. package/squirrel/components/p-avatar/p-avatar.vue +40 -42
  74. package/squirrel/components/p-btn/p-btn.spec.js +7 -7
  75. package/squirrel/components/p-btn/p-btn.vue +4 -4
  76. package/squirrel/components/p-input/p-input.vue +63 -40
  77. package/squirrel/components/p-input-number/p-input-number.vue +101 -86
  78. package/squirrel/components/p-progress-bar/p-progress-bar.vue +9 -14
  79. package/squirrel/components/p-select-btn/p-select-btn.spec.js +24 -5
  80. package/squirrel/components/p-select-btn/p-select-btn.vue +1 -1
  81. package/squirrel/components/p-table-header-cell/p-table-filter-icon.vue +8 -9
  82. package/squirrel/components/p-table-sort/p-table-sort.vue +13 -16
  83. package/squirrel/components/p-textarea/p-textarea.vue +55 -37
  84. package/squirrel/components/p-toggle/p-toggle.vue +59 -43
  85. package/squirrel/composables/useInputClasses.spec.js +50 -13
  86. package/squirrel/composables/useInputClasses.ts +18 -24
  87. package/squirrel/utils/index.ts +0 -7
  88. package/squirrel/utils/inputClasses.ts +8 -2
  89. package/dist/cjs/inputClassesMixin.js +0 -58
  90. package/dist/cjs/tailwind.js +0 -25
  91. package/dist/es/inputClassesMixin.js +0 -59
  92. package/dist/es/tailwind.js +0 -25
  93. package/dist/squirrel/utils/inputClassesMixin.d.ts +0 -56
  94. package/dist/squirrel/utils/tailwind.d.ts +0 -8
  95. package/squirrel/utils/inputClassesMixin.spec.js +0 -241
  96. package/squirrel/utils/inputClassesMixin.ts +0 -60
  97. package/squirrel/utils/tailwind.spec.js +0 -27
  98. package/squirrel/utils/tailwind.ts +0 -28
@@ -49,17 +49,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
49
49
  };
50
50
  readonly size: {
51
51
  readonly sm: {
52
- readonly button: "px-2 has-[.slot-wrapper:empty]:px-1 py-1 text-sm";
52
+ readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
53
53
  readonly content: "gap-1";
54
- readonly icon: "text-lg";
54
+ readonly icon: "text-[20px]";
55
55
  };
56
56
  readonly md: {
57
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
57
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
58
58
  readonly content: "gap-2";
59
59
  readonly icon: "text-xl";
60
60
  };
61
61
  readonly lg: {
62
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 py-2.5 text-lg";
62
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
63
63
  readonly content: "gap-2.5";
64
64
  readonly icon: "text-2xl";
65
65
  };
@@ -114,17 +114,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
114
114
  };
115
115
  readonly size: {
116
116
  readonly sm: {
117
- readonly button: "px-2 has-[.slot-wrapper:empty]:px-1 py-1 text-sm";
117
+ readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
118
118
  readonly content: "gap-1";
119
- readonly icon: "text-lg";
119
+ readonly icon: "text-[20px]";
120
120
  };
121
121
  readonly md: {
122
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
122
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
123
123
  readonly content: "gap-2";
124
124
  readonly icon: "text-xl";
125
125
  };
126
126
  readonly lg: {
127
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 py-2.5 text-lg";
127
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
128
128
  readonly content: "gap-2.5";
129
129
  readonly icon: "text-2xl";
130
130
  };
@@ -174,17 +174,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
174
174
  };
175
175
  readonly size: {
176
176
  readonly sm: {
177
- readonly button: "px-2 has-[.slot-wrapper:empty]:px-1 py-1 text-sm";
177
+ readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
178
178
  readonly content: "gap-1";
179
- readonly icon: "text-lg";
179
+ readonly icon: "text-[20px]";
180
180
  };
181
181
  readonly md: {
182
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
182
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
183
183
  readonly content: "gap-2";
184
184
  readonly icon: "text-xl";
185
185
  };
186
186
  readonly lg: {
187
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 py-2.5 text-lg";
187
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
188
188
  readonly content: "gap-2.5";
189
189
  readonly icon: "text-2xl";
190
190
  };
@@ -234,17 +234,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
234
234
  };
235
235
  readonly size: {
236
236
  readonly sm: {
237
- readonly button: "px-2 has-[.slot-wrapper:empty]:px-1 py-1 text-sm";
237
+ readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
238
238
  readonly content: "gap-1";
239
- readonly icon: "text-lg";
239
+ readonly icon: "text-[20px]";
240
240
  };
241
241
  readonly md: {
242
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
242
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
243
243
  readonly content: "gap-2";
244
244
  readonly icon: "text-xl";
245
245
  };
246
246
  readonly lg: {
247
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 py-2.5 text-lg";
247
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
248
248
  readonly content: "gap-2.5";
249
249
  readonly icon: "text-2xl";
250
250
  };
@@ -299,17 +299,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
299
299
  };
300
300
  readonly size: {
301
301
  readonly sm: {
302
- readonly button: "px-2 has-[.slot-wrapper:empty]:px-1 py-1 text-sm";
302
+ readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
303
303
  readonly content: "gap-1";
304
- readonly icon: "text-lg";
304
+ readonly icon: "text-[20px]";
305
305
  };
306
306
  readonly md: {
307
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
307
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
308
308
  readonly content: "gap-2";
309
309
  readonly icon: "text-xl";
310
310
  };
311
311
  readonly lg: {
312
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 py-2.5 text-lg";
312
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
313
313
  readonly content: "gap-2.5";
314
314
  readonly icon: "text-2xl";
315
315
  };
@@ -364,17 +364,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
364
364
  };
365
365
  readonly size: {
366
366
  readonly sm: {
367
- readonly button: "px-2 has-[.slot-wrapper:empty]:px-1 py-1 text-sm";
367
+ readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
368
368
  readonly content: "gap-1";
369
- readonly icon: "text-lg";
369
+ readonly icon: "text-[20px]";
370
370
  };
371
371
  readonly md: {
372
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
372
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
373
373
  readonly content: "gap-2";
374
374
  readonly icon: "text-xl";
375
375
  };
376
376
  readonly lg: {
377
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 py-2.5 text-lg";
377
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
378
378
  readonly content: "gap-2.5";
379
379
  readonly icon: "text-2xl";
380
380
  };
@@ -424,17 +424,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
424
424
  };
425
425
  readonly size: {
426
426
  readonly sm: {
427
- readonly button: "px-2 has-[.slot-wrapper:empty]:px-1 py-1 text-sm";
427
+ readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
428
428
  readonly content: "gap-1";
429
- readonly icon: "text-lg";
429
+ readonly icon: "text-[20px]";
430
430
  };
431
431
  readonly md: {
432
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
432
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
433
433
  readonly content: "gap-2";
434
434
  readonly icon: "text-xl";
435
435
  };
436
436
  readonly lg: {
437
- readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 py-2.5 text-lg";
437
+ readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
438
438
  readonly content: "gap-2.5";
439
439
  readonly icon: "text-2xl";
440
440
  };
@@ -5,9 +5,9 @@ type Props = {
5
5
  required?: boolean;
6
6
  } & VueDatePickerProps;
7
7
  type __VLS_Props = Props;
8
- type __VLS_PublicProps = {
8
+ type __VLS_PublicProps = __VLS_Props & {
9
9
  modelValue?: Date | string | null;
10
- } & __VLS_Props;
10
+ };
11
11
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  "update:modelValue": (value: string | Date | null) => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -157,11 +157,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
157
157
  width: string;
158
158
  title: string;
159
159
  disabled: boolean;
160
- zIndex: number;
161
160
  modelValue: boolean;
162
161
  errorMsg: string;
163
162
  position: string;
164
163
  appendTo: string;
164
+ zIndex: number;
165
165
  drawerStyle: Record<string, any>;
166
166
  drawerClass: string;
167
167
  inClass: string;
@@ -171,24 +171,48 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
171
171
  showBackdrop: boolean;
172
172
  enableClose: boolean;
173
173
  }, {}, {
174
- PAlert: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
175
- type: {
176
- type: import("vue").PropType<"info" | "error" | "success" | "warning">;
177
- default: string;
178
- validator(value: "info" | "error" | "success" | "warning"): boolean;
179
- };
180
- }>, {}, {}, {
181
- classes(): string;
182
- svgColor(): undefined;
183
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
174
+ PAlert: {
175
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
176
+ type: {
177
+ type: import("vue").PropType<"info" | "error" | "success" | "warning">;
178
+ default: string;
179
+ validator(value: "info" | "error" | "success" | "warning"): boolean;
180
+ };
181
+ }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
182
+ type: "info" | "error" | "success" | "warning";
183
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
184
+ P: {};
185
+ B: {};
186
+ D: {};
187
+ C: {};
188
+ M: {};
189
+ Defaults: {};
190
+ }, Readonly<import("vue").ExtractPropTypes<{
191
+ type: {
192
+ type: import("vue").PropType<"info" | "error" | "success" | "warning">;
193
+ default: string;
194
+ validator(value: "info" | "error" | "success" | "warning"): boolean;
195
+ };
196
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
197
+ type: "info" | "error" | "success" | "warning";
198
+ }>;
199
+ __isFragment?: never;
200
+ __isTeleport?: never;
201
+ __isSuspense?: never;
202
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
184
203
  type: {
185
204
  type: import("vue").PropType<"info" | "error" | "success" | "warning">;
186
205
  default: string;
187
206
  validator(value: "info" | "error" | "success" | "warning"): boolean;
188
207
  };
189
- }>> & Readonly<{}>, {
208
+ }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
190
209
  type: "info" | "error" | "success" | "warning";
191
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
210
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
211
+ $slots: {
212
+ icon?: ((props: {}) => any) | undefined;
213
+ default?: ((props: {}) => any) | undefined;
214
+ };
215
+ });
192
216
  PCloseBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
193
217
  variant: {
194
218
  type: import("vue").PropType<"transparent" | "gray" | "dark">;
@@ -10,9 +10,9 @@ declare const model: import("vue").ModelRef<string | Date | null, string, string
10
10
  declare const labelClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
11
11
  declare const datePickerProps: import("vue").ComputedRef<VueDatePickerProps>;
12
12
  declare const style: import("vue").ComputedRef<StyleValue>;
13
- type __VLS_PublicProps = {
13
+ type __VLS_PublicProps = __VLS_Props & {
14
14
  modelValue?: Date | string | null;
15
- } & __VLS_Props;
15
+ };
16
16
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
17
17
  declare var __VLS_1: {
18
18
  label: string;
@@ -1,13 +1,14 @@
1
- import { type PropType, type StyleValue } from 'vue';
1
+ import { type Size } from '../p-btn/p-btn.types';
2
+ import { type PropType } from 'vue';
2
3
  declare const INPUT_TYPES: {
3
4
  TEXT: string;
4
5
  PASSWORD: string;
5
6
  };
6
7
  type InputTypeKeys = keyof typeof INPUT_TYPES;
7
8
  type InputType = (typeof INPUT_TYPES)[InputTypeKeys];
8
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
10
  modelValue: {
10
- type: (StringConstructor | NumberConstructor)[];
11
+ type: PropType<string | number | boolean | null>;
11
12
  default: string;
12
13
  };
13
14
  type: {
@@ -27,70 +28,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
27
28
  type: BooleanConstructor;
28
29
  default: boolean;
29
30
  };
30
- rounded: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- };
34
- }>, {}, {}, {
35
- attrs(): {
36
- [x: string]: unknown;
37
- };
38
- style(): StyleValue;
39
- }, {}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
40
31
  size: {
41
- type: PropType<import("../index.js").Size>;
32
+ type: PropType<Size>;
42
33
  default: string;
43
- validator(value: import("../index.js").Size): boolean;
44
- };
45
- errorMsg: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- required: {
50
- type: BooleanConstructor;
51
- default: boolean;
34
+ validator(value: Size): boolean;
52
35
  };
53
36
  rounded: {
54
37
  type: BooleanConstructor;
55
38
  default: boolean;
56
39
  };
57
- }>, {}, {}, {
58
- allClasses(): {
59
- input: string;
60
- label: string;
61
- errorMessage: string;
62
- };
63
- inputClasses(): string;
64
- labelClasses(): string;
65
- errorMsgClasses(): string;
66
- selectClasses(): string;
67
- textareaClasses(): string;
68
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
69
- size: {
70
- type: PropType<import("../index.js").Size>;
71
- default: string;
72
- validator(value: import("../index.js").Size): boolean;
73
- };
74
- errorMsg: {
75
- type: StringConstructor;
76
- default: string;
77
- };
78
- required: {
79
- type: BooleanConstructor;
80
- default: boolean;
81
- };
82
- rounded: {
83
- type: BooleanConstructor;
84
- default: boolean;
85
- };
86
- }>> & Readonly<{}>, {
87
- size: "sm" | "md" | "lg";
88
- required: boolean;
89
- rounded: boolean;
90
- errorMsg: string;
91
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ "update:modelValue": (...args: any[]) => void;
42
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
92
43
  modelValue: {
93
- type: (StringConstructor | NumberConstructor)[];
44
+ type: PropType<string | number | boolean | null>;
94
45
  default: string;
95
46
  };
96
47
  type: {
@@ -110,6 +61,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
110
61
  type: BooleanConstructor;
111
62
  default: boolean;
112
63
  };
64
+ size: {
65
+ type: PropType<Size>;
66
+ default: string;
67
+ validator(value: Size): boolean;
68
+ };
113
69
  rounded: {
114
70
  type: BooleanConstructor;
115
71
  default: boolean;
@@ -117,11 +73,24 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
117
73
  }>> & Readonly<{
118
74
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
119
75
  }>, {
76
+ size: "sm" | "md" | "lg";
120
77
  type: string;
121
78
  label: string;
122
79
  required: boolean;
123
- modelValue: string | number;
80
+ modelValue: string | number | boolean | null;
124
81
  rounded: boolean;
125
82
  errorMsg: string;
126
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
83
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
84
+ label?: ((props: {
85
+ label: string;
86
+ labelClasses: string;
87
+ }) => any) | undefined;
88
+ prefix?: ((props: {}) => any) | undefined;
89
+ suffix?: ((props: {}) => any) | undefined;
90
+ }>;
127
91
  export default _default;
92
+ type __VLS_WithSlots<T, S> = T & {
93
+ new (): {
94
+ $slots: S;
95
+ };
96
+ };
@@ -1,5 +1,24 @@
1
+ import { type Size } from '../p-btn/p-btn.types';
2
+ import PInfoIcon from '../p-info-icon/p-info-icon.vue';
1
3
  import { type PropType, type StyleValue } from 'vue';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ declare const labelClasses: import("vue").ComputedRef<string>, inputClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
5
+ declare const inputRef: import("vue").Ref<any, any>;
6
+ declare const computedAttrs: import("vue").ComputedRef<{
7
+ [x: string]: unknown;
8
+ }>;
9
+ declare const style: import("vue").ComputedRef<StyleValue>;
10
+ declare const focus: () => void;
11
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
12
+ declare var __VLS_1: {
13
+ label: string;
14
+ labelClasses: string;
15
+ }, __VLS_6: {};
16
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
17
+ label?: (props: typeof __VLS_1) => any;
18
+ } & {
19
+ prefix?: (props: typeof __VLS_6) => any;
20
+ }>;
21
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
22
  modelValue: {
4
23
  type: PropType<number | string | null | undefined>;
5
24
  default: null;
@@ -16,6 +35,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
35
  type: BooleanConstructor;
17
36
  default: boolean;
18
37
  };
38
+ size: {
39
+ type: PropType<Size>;
40
+ default: string;
41
+ validator(value: Size): boolean;
42
+ };
19
43
  selectOnClick: {
20
44
  type: BooleanConstructor;
21
45
  default: boolean;
@@ -25,17 +49,25 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
49
  default: string;
26
50
  };
27
51
  }>, {
28
- inputRef: import("vue").Ref<any, any>;
29
- computedAttrs: import("vue").ComputedRef<{
30
- [x: string]: unknown;
31
- }>;
32
- style: import("vue").ComputedRef<StyleValue>;
33
- focus: () => void;
34
- }, {}, {}, {}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
35
- size: {
36
- type: PropType<import("../index.js").Size>;
52
+ PInfoIcon: typeof PInfoIcon;
53
+ labelClasses: typeof labelClasses;
54
+ inputClasses: typeof inputClasses;
55
+ errorMsgClasses: typeof errorMsgClasses;
56
+ inputRef: typeof inputRef;
57
+ computedAttrs: typeof computedAttrs;
58
+ style: typeof style;
59
+ focus: typeof focus;
60
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
61
+ change: (...args: any[]) => void;
62
+ "update:modelValue": (...args: any[]) => void;
63
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
+ modelValue: {
65
+ type: PropType<number | string | null | undefined>;
66
+ default: null;
67
+ };
68
+ label: {
69
+ type: StringConstructor;
37
70
  default: string;
38
- validator(value: import("../index.js").Size): boolean;
39
71
  };
40
72
  errorMsg: {
41
73
  type: StringConstructor;
@@ -45,26 +77,39 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
45
77
  type: BooleanConstructor;
46
78
  default: boolean;
47
79
  };
48
- rounded: {
80
+ size: {
81
+ type: PropType<Size>;
82
+ default: string;
83
+ validator(value: Size): boolean;
84
+ };
85
+ selectOnClick: {
49
86
  type: BooleanConstructor;
50
87
  default: boolean;
51
88
  };
52
- }>, {}, {}, {
53
- allClasses(): {
54
- input: string;
55
- label: string;
56
- errorMessage: string;
57
- };
58
- inputClasses(): string;
59
- labelClasses(): string;
60
- errorMsgClasses(): string;
61
- selectClasses(): string;
62
- textareaClasses(): string;
63
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
- size: {
65
- type: PropType<import("../index.js").Size>;
89
+ tooltipText: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ }>> & Readonly<{
94
+ onChange?: ((...args: any[]) => any) | undefined;
95
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
96
+ }>, {
97
+ size: "sm" | "md" | "lg";
98
+ label: string;
99
+ required: boolean;
100
+ modelValue: string | number | null | undefined;
101
+ errorMsg: string;
102
+ selectOnClick: boolean;
103
+ tooltipText: string;
104
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
105
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
106
+ modelValue: {
107
+ type: PropType<number | string | null | undefined>;
108
+ default: null;
109
+ };
110
+ label: {
111
+ type: StringConstructor;
66
112
  default: string;
67
- validator(value: import("../index.js").Size): boolean;
68
113
  };
69
114
  errorMsg: {
70
115
  type: StringConstructor;
@@ -74,16 +119,25 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
74
119
  type: BooleanConstructor;
75
120
  default: boolean;
76
121
  };
77
- rounded: {
122
+ size: {
123
+ type: PropType<Size>;
124
+ default: string;
125
+ validator(value: Size): boolean;
126
+ };
127
+ selectOnClick: {
78
128
  type: BooleanConstructor;
79
129
  default: boolean;
80
130
  };
81
- }>> & Readonly<{}>, {
82
- size: "sm" | "md" | "lg";
83
- required: boolean;
84
- rounded: boolean;
85
- errorMsg: string;
86
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
131
+ tooltipText: {
132
+ type: StringConstructor;
133
+ default: string;
134
+ };
135
+ }>, {
136
+ setValue: (number: number | null) => void;
137
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
138
+ change: (...args: any[]) => void;
139
+ "update:modelValue": (...args: any[]) => void;
140
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
87
141
  modelValue: {
88
142
  type: PropType<number | string | null | undefined>;
89
143
  default: null;
@@ -100,6 +154,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
100
154
  type: BooleanConstructor;
101
155
  default: boolean;
102
156
  };
157
+ size: {
158
+ type: PropType<Size>;
159
+ default: string;
160
+ validator(value: Size): boolean;
161
+ };
103
162
  selectOnClick: {
104
163
  type: BooleanConstructor;
105
164
  default: boolean;
@@ -112,41 +171,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
112
171
  onChange?: ((...args: any[]) => any) | undefined;
113
172
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
114
173
  }>, {
174
+ size: "sm" | "md" | "lg";
115
175
  label: string;
116
176
  required: boolean;
117
177
  modelValue: string | number | null | undefined;
118
178
  errorMsg: string;
119
179
  selectOnClick: boolean;
120
180
  tooltipText: string;
121
- }, {}, {
122
- PInfoIcon: {
123
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
124
- text?: string | null;
125
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
126
- text: string | null;
127
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
128
- P: {};
129
- B: {};
130
- D: {};
131
- C: {};
132
- M: {};
133
- Defaults: {};
134
- }, Readonly<{
135
- text?: string | null;
136
- }> & Readonly<{}>, {}, {}, {}, {}, {
137
- text: string | null;
138
- }>;
139
- __isFragment?: never;
140
- __isTeleport?: never;
141
- __isSuspense?: never;
142
- } & import("vue").ComponentOptionsBase<Readonly<{
143
- text?: string | null;
144
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
145
- text: string | null;
146
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
147
- $slots: {
148
- default?: ((props: {}) => any) | undefined;
149
- };
150
- });
151
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
181
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
182
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
152
183
  export default _default;
184
+ type __VLS_WithSlots<T, S> = T & {
185
+ new (): {
186
+ $slots: S;
187
+ };
188
+ };