@tb-dev/vue 0.3.20 → 0.3.22

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.
@@ -1,6 +1,8 @@
1
1
  import { Option } from '@tb-dev/utils';
2
2
  import { InputHTMLAttributes } from 'vue';
3
3
  export interface InputProps {
4
+ autocomplete?: InputHTMLAttributes['autocomplete'];
5
+ autofocus?: InputHTMLAttributes['autofocus'];
4
6
  class?: string;
5
7
  disabled?: InputHTMLAttributes['disabled'];
6
8
  label?: string;
@@ -10,6 +12,8 @@ export interface InputProps {
10
12
  modelValue: Option<string>;
11
13
  onBlur?: () => void;
12
14
  placeholder?: InputHTMLAttributes['placeholder'];
15
+ readonly?: InputHTMLAttributes['readonly'];
16
+ required?: InputHTMLAttributes['required'];
13
17
  size?: InputHTMLAttributes['size'];
14
18
  spellcheck?: InputHTMLAttributes['spellcheck'];
15
19
  type?: InputHTMLAttributes['type'];
@@ -1,12 +1,18 @@
1
1
  import { Option } from '@tb-dev/utils';
2
+ import { NumberFieldRootProps } from 'reka-ui';
2
3
  export interface InputNumberProps {
3
4
  class?: string;
4
5
  defaultValue?: number;
5
6
  disabled?: boolean;
6
- formatOptions?: Intl.NumberFormatOptions;
7
+ disableDecrement?: boolean;
8
+ disableIncrement?: boolean;
9
+ disableWheelChange?: NumberFieldRootProps['disableWheelChange'];
10
+ formatOptions?: NumberFieldRootProps['formatOptions'];
7
11
  label?: string;
8
12
  labelClass?: string;
9
- max?: number;
10
- min?: number;
13
+ max?: NumberFieldRootProps['max'];
14
+ min?: NumberFieldRootProps['min'];
11
15
  modelValue: Option<number>;
16
+ step?: NumberFieldRootProps['step'];
17
+ stepSnapping?: NumberFieldRootProps['stepSnapping'];
12
18
  }
@@ -1,5 +1,7 @@
1
1
  import { InputHTMLAttributes } from 'vue';
2
2
  export interface InputTextProps {
3
+ autocomplete?: InputHTMLAttributes['autocomplete'];
4
+ autofocus?: InputHTMLAttributes['autofocus'];
3
5
  class?: string;
4
6
  disabled?: InputHTMLAttributes['disabled'];
5
7
  label?: string;
@@ -8,6 +10,8 @@ export interface InputTextProps {
8
10
  min?: InputHTMLAttributes['minlength'];
9
11
  onBlur?: () => void;
10
12
  placeholder?: InputHTMLAttributes['placeholder'];
13
+ readonly?: InputHTMLAttributes['readonly'];
14
+ required?: InputHTMLAttributes['required'];
11
15
  size?: InputHTMLAttributes['size'];
12
16
  spellcheck?: InputHTMLAttributes['spellcheck'];
13
17
  }
@@ -1,3 +1 @@
1
- import { default as Label } from './Label.vue';
2
- export type * from './types';
3
- export { Label };
1
+ export { Label } from '../__base/label';
@@ -1,5 +1,8 @@
1
1
  import { Option } from '@tb-dev/utils';
2
+ import { SelectHTMLAttributes } from 'vue';
2
3
  export interface SelectProps {
4
+ autocomplete?: SelectHTMLAttributes['autocomplete'];
5
+ autofocus?: SelectHTMLAttributes['autofocus'];
3
6
  class?: string;
4
7
  contentClass?: string;
5
8
  disabled?: boolean;
@@ -7,4 +10,6 @@ export interface SelectProps {
7
10
  labelClass?: string;
8
11
  modelValue: Option<string>;
9
12
  placeholder?: string;
13
+ required?: boolean;
14
+ triggerClass?: string;
10
15
  }
@@ -4,8 +4,8 @@ declare const _default: import('vue').DefineComponent<TextareaProps, {}, {}, {},
4
4
  }, string, import('vue').PublicProps, Readonly<TextareaProps> & Readonly<{
5
5
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
6
6
  }>, {
7
- spellcheck: boolean | "true" | "false";
8
7
  autocomplete: string;
8
+ spellcheck: boolean | "true" | "false";
9
9
  autocorrect: string;
10
10
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
package/dist/index.js CHANGED
@@ -90,7 +90,7 @@ function cn(...inputs) {
90
90
  return twMerge(clsx(inputs));
91
91
  }
92
92
 
93
- const _sfc_main$2S = /* @__PURE__ */ defineComponent({
93
+ const _sfc_main$2R = /* @__PURE__ */ defineComponent({
94
94
  __name: "Badge",
95
95
  props: {
96
96
  asChild: { type: Boolean },
@@ -135,7 +135,7 @@ const badgeVariants = cva(
135
135
  }
136
136
  );
137
137
 
138
- const _sfc_main$2R = /* @__PURE__ */ defineComponent({
138
+ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
139
139
  __name: "Button",
140
140
  props: {
141
141
  variant: {},
@@ -190,7 +190,7 @@ const buttonVariants = cva(
190
190
 
191
191
  const _hoisted_1$i = { key: 0 };
192
192
  const _hoisted_2$2 = { key: 0 };
193
- const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
193
+ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
194
194
  __name: "ButtonLink",
195
195
  props: {
196
196
  buttonClass: {},
@@ -206,17 +206,17 @@ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
206
206
  return openBlock(), createElementBlock(Fragment, null, [
207
207
  createVNode(unref(DefineTemplate), null, {
208
208
  default: withCtx(() => [
209
- createVNode(unref(_sfc_main$2R), {
209
+ createVNode(unref(_sfc_main$2Q), mergeProps(_ctx.$attrs, {
210
210
  variant: _ctx.variant,
211
211
  size: _ctx.size,
212
212
  disabled: _ctx.disabled,
213
- class: normalizeClass(unref(cn)("size-full", _ctx.buttonClass))
214
- }, {
213
+ class: unref(cn)("size-full", _ctx.buttonClass)
214
+ }), {
215
215
  default: withCtx(() => [
216
216
  _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$i, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
217
217
  ]),
218
218
  _: 3
219
- }, 8, ["variant", "size", "disabled", "class"])
219
+ }, 16, ["variant", "size", "disabled", "class"])
220
220
  ]),
221
221
  _: 3
222
222
  }),
@@ -236,7 +236,7 @@ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
236
236
  }
237
237
  });
238
238
 
239
- const _sfc_main$2P = /* @__PURE__ */ defineComponent({
239
+ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
240
240
  __name: "ButtonIcon",
241
241
  props: {
242
242
  buttonClass: {},
@@ -249,7 +249,7 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
249
249
  setup(__props) {
250
250
  const props = __props;
251
251
  return (_ctx, _cache) => {
252
- return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$2Q), {
252
+ return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$2P), {
253
253
  key: 0,
254
254
  to: _ctx.to,
255
255
  variant: "ghost",
@@ -264,7 +264,7 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
264
264
  }, null, 8, ["class", "size"]))
265
265
  ]),
266
266
  _: 1
267
- }, 8, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$2R), {
267
+ }, 8, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$2Q), {
268
268
  key: 1,
269
269
  variant: "ghost",
270
270
  size: "icon",
@@ -282,7 +282,7 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
282
282
  }
283
283
  });
284
284
 
285
- const _sfc_main$2O = /* @__PURE__ */ defineComponent({
285
+ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
286
286
  __name: "ScrollBar",
287
287
  props: {
288
288
  orientation: { default: "vertical" },
@@ -318,7 +318,7 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
318
318
  }
319
319
  });
320
320
 
321
- const _sfc_main$2N = /* @__PURE__ */ defineComponent({
321
+ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
322
322
  __name: "ScrollArea",
323
323
  props: {
324
324
  type: {},
@@ -348,7 +348,7 @@ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
348
348
  ]),
349
349
  _: 3
350
350
  }),
351
- createVNode(_sfc_main$2O),
351
+ createVNode(_sfc_main$2N),
352
352
  createVNode(unref(ScrollAreaCorner))
353
353
  ]),
354
354
  _: 3
@@ -357,7 +357,7 @@ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
357
357
  }
358
358
  });
359
359
 
360
- const _sfc_main$2M = /* @__PURE__ */ defineComponent({
360
+ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
361
361
  __name: "Card",
362
362
  props: {
363
363
  class: {}
@@ -380,7 +380,7 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
380
380
  }
381
381
  });
382
382
 
383
- const _sfc_main$2L = /* @__PURE__ */ defineComponent({
383
+ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
384
384
  __name: "CardContent",
385
385
  props: {
386
386
  class: {}
@@ -398,7 +398,7 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
398
398
  }
399
399
  });
400
400
 
401
- const _sfc_main$2K = /* @__PURE__ */ defineComponent({
401
+ const _sfc_main$2J = /* @__PURE__ */ defineComponent({
402
402
  __name: "CardDescription",
403
403
  props: {
404
404
  class: {}
@@ -416,7 +416,7 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
416
416
  }
417
417
  });
418
418
 
419
- const _sfc_main$2J = /* @__PURE__ */ defineComponent({
419
+ const _sfc_main$2I = /* @__PURE__ */ defineComponent({
420
420
  __name: "CardFooter",
421
421
  props: {
422
422
  class: {}
@@ -434,7 +434,7 @@ const _sfc_main$2J = /* @__PURE__ */ defineComponent({
434
434
  }
435
435
  });
436
436
 
437
- const _sfc_main$2I = /* @__PURE__ */ defineComponent({
437
+ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
438
438
  __name: "CardHeader",
439
439
  props: {
440
440
  class: {}
@@ -457,7 +457,7 @@ const _sfc_main$2I = /* @__PURE__ */ defineComponent({
457
457
  }
458
458
  });
459
459
 
460
- const _sfc_main$2H = /* @__PURE__ */ defineComponent({
460
+ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
461
461
  __name: "CardTitle",
462
462
  props: {
463
463
  class: {}
@@ -475,7 +475,7 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
475
475
  }
476
476
  });
477
477
 
478
- const _sfc_main$2G = /* @__PURE__ */ defineComponent({
478
+ const _sfc_main$2F = /* @__PURE__ */ defineComponent({
479
479
  __name: "Card",
480
480
  props: {
481
481
  contentClass: {},
@@ -488,14 +488,14 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
488
488
  },
489
489
  setup(__props) {
490
490
  return (_ctx, _cache) => {
491
- return openBlock(), createBlock(unref(_sfc_main$2M), null, {
491
+ return openBlock(), createBlock(unref(_sfc_main$2L), null, {
492
492
  default: withCtx(() => [
493
- _ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$2I), {
493
+ _ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$2H), {
494
494
  key: 0,
495
495
  class: normalizeClass(_ctx.headerClass)
496
496
  }, {
497
497
  default: withCtx(() => [
498
- createVNode(unref(_sfc_main$2H), {
498
+ createVNode(unref(_sfc_main$2G), {
499
499
  class: normalizeClass(_ctx.titleClass)
500
500
  }, {
501
501
  default: withCtx(() => [
@@ -503,7 +503,7 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
503
503
  ]),
504
504
  _: 3
505
505
  }, 8, ["class"]),
506
- _ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$2K), {
506
+ _ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$2J), {
507
507
  key: 0,
508
508
  class: normalizeClass(_ctx.descriptionClass)
509
509
  }, {
@@ -515,12 +515,12 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
515
515
  ]),
516
516
  _: 3
517
517
  }, 8, ["class"])) : createCommentVNode("", true),
518
- _ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$2L), {
518
+ _ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$2K), {
519
519
  key: 1,
520
520
  class: normalizeClass(unref(cn)("p-0", _ctx.contentClass))
521
521
  }, {
522
522
  default: withCtx(() => [
523
- _ctx.scrollAreaHeight && _ctx.scrollAreaHeight !== "auto" ? (openBlock(), createBlock(unref(_sfc_main$2N), {
523
+ _ctx.scrollAreaHeight && _ctx.scrollAreaHeight !== "auto" ? (openBlock(), createBlock(unref(_sfc_main$2M), {
524
524
  key: 0,
525
525
  class: normalizeClass(_ctx.scrollAreaClass),
526
526
  style: normalizeStyle({ height: unref(toPixel)(_ctx.scrollAreaHeight) })
@@ -533,7 +533,7 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
533
533
  ]),
534
534
  _: 3
535
535
  }, 8, ["class"])) : createCommentVNode("", true),
536
- _ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$2J), {
536
+ _ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$2I), {
537
537
  key: 2,
538
538
  class: normalizeClass(_ctx.footerClass)
539
539
  }, {
@@ -549,7 +549,7 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
549
549
  }
550
550
  });
551
551
 
552
- const _sfc_main$2F = /* @__PURE__ */ defineComponent({
552
+ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
553
553
  __name: "Label",
554
554
  props: {
555
555
  for: {},
@@ -579,26 +579,6 @@ const _sfc_main$2F = /* @__PURE__ */ defineComponent({
579
579
  }
580
580
  });
581
581
 
582
- const _sfc_main$2E = /* @__PURE__ */ defineComponent({
583
- __name: "Label",
584
- props: {
585
- class: {}
586
- },
587
- setup(__props) {
588
- const props = __props;
589
- return (_ctx, _cache) => {
590
- return openBlock(), createBlock(unref(_sfc_main$2F), {
591
- class: normalizeClass(unref(cn)("flex w-full flex-col gap-2 font-normal", props.class))
592
- }, {
593
- default: withCtx(() => [
594
- renderSlot(_ctx.$slots, "default")
595
- ]),
596
- _: 3
597
- }, 8, ["class"]);
598
- };
599
- }
600
- });
601
-
602
582
  const _sfc_main$2D = /* @__PURE__ */ defineComponent({
603
583
  __name: "Checkbox",
604
584
  props: {
@@ -673,14 +653,14 @@ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
673
653
  return openBlock(), createElementBlock(Fragment, null, [
674
654
  createVNode(unref(DefineTemplate), null, {
675
655
  default: withCtx(() => [
676
- createVNode(unref(_sfc_main$2D), {
656
+ createVNode(unref(_sfc_main$2D), mergeProps(_ctx.$attrs, {
677
657
  modelValue: value.value,
678
658
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
679
659
  "default-value": _ctx.defaultValue,
680
660
  disabled: _ctx.disabled,
681
661
  required: _ctx.required,
682
- class: normalizeClass(props.class)
683
- }, null, 8, ["modelValue", "default-value", "disabled", "required", "class"])
662
+ class: props.class
663
+ }), null, 16, ["modelValue", "default-value", "disabled", "required", "class"])
684
664
  ]),
685
665
  _: 1
686
666
  }),
@@ -2237,6 +2217,8 @@ const _hoisted_1$b = { class: "w-full" };
2237
2217
  const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
2238
2218
  __name: "Input",
2239
2219
  props: {
2220
+ autocomplete: {},
2221
+ autofocus: {},
2240
2222
  class: {},
2241
2223
  disabled: {},
2242
2224
  label: {},
@@ -2246,6 +2228,8 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
2246
2228
  modelValue: {},
2247
2229
  onBlur: {},
2248
2230
  placeholder: {},
2231
+ readonly: {},
2232
+ required: {},
2249
2233
  size: {},
2250
2234
  spellcheck: { default: "false" },
2251
2235
  type: { default: "text" }
@@ -2264,25 +2248,29 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
2264
2248
  return openBlock(), createElementBlock(Fragment, null, [
2265
2249
  createVNode(unref(DefineTemplate), null, {
2266
2250
  default: withCtx(() => [
2267
- createVNode(unref(_sfc_main$1R), {
2251
+ createVNode(unref(_sfc_main$1R), mergeProps(_ctx.$attrs, {
2268
2252
  modelValue: value.value,
2269
2253
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
2270
2254
  type: _ctx.type,
2255
+ autocomplete: _ctx.autocomplete,
2256
+ autofocus: _ctx.autofocus,
2271
2257
  placeholder: _ctx.placeholder,
2272
2258
  disabled: _ctx.disabled,
2273
2259
  maxlength: _ctx.max,
2274
2260
  minlength: _ctx.min,
2261
+ readonly: _ctx.readonly,
2262
+ required: _ctx.required,
2275
2263
  size: _ctx.size,
2276
2264
  spellcheck: _ctx.spellcheck,
2277
- class: normalizeClass(unref(cn)("focus-visible:ring-0 disabled:cursor-default", props.class)),
2265
+ class: unref(cn)("focus-visible:ring-0 disabled:cursor-default", props.class),
2278
2266
  onBlur: _ctx.onBlur
2279
- }, null, 8, ["modelValue", "type", "placeholder", "disabled", "maxlength", "minlength", "size", "spellcheck", "class", "onBlur"])
2267
+ }), null, 16, ["modelValue", "type", "autocomplete", "autofocus", "placeholder", "disabled", "maxlength", "minlength", "readonly", "required", "size", "spellcheck", "class", "onBlur"])
2280
2268
  ]),
2281
2269
  _: 1
2282
2270
  }),
2283
2271
  _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$2E), {
2284
2272
  key: 0,
2285
- class: normalizeClass(_ctx.labelClass)
2273
+ class: normalizeClass(unref(cn)("flex w-full flex-col gap-2 font-normal", _ctx.labelClass))
2286
2274
  }, {
2287
2275
  default: withCtx(() => [
2288
2276
  createElementVNode("span", _hoisted_1$b, toDisplayString(_ctx.label), 1),
@@ -2453,12 +2441,17 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
2453
2441
  class: {},
2454
2442
  defaultValue: {},
2455
2443
  disabled: { type: Boolean },
2444
+ disableDecrement: { type: Boolean },
2445
+ disableIncrement: { type: Boolean },
2446
+ disableWheelChange: { type: Boolean },
2456
2447
  formatOptions: { default: () => ({ useGrouping: false }) },
2457
2448
  label: {},
2458
2449
  labelClass: {},
2459
2450
  max: {},
2460
2451
  min: {},
2461
- modelValue: {}
2452
+ modelValue: {},
2453
+ step: {},
2454
+ stepSnapping: { type: Boolean }
2462
2455
  },
2463
2456
  emits: ["update:modelValue"],
2464
2457
  setup(__props, { emit: __emit }) {
@@ -2474,34 +2467,41 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
2474
2467
  return openBlock(), createElementBlock(Fragment, null, [
2475
2468
  createVNode(unref(DefineTemplate), null, {
2476
2469
  default: withCtx(() => [
2477
- createVNode(unref(_sfc_main$1P), {
2470
+ createVNode(unref(_sfc_main$1P), mergeProps(_ctx.$attrs, {
2478
2471
  modelValue: value.value,
2479
2472
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
2480
2473
  "default-value": _ctx.defaultValue,
2474
+ disabled: _ctx.disabled,
2475
+ "disable-wheel-change": _ctx.disableWheelChange,
2481
2476
  "format-options": _ctx.formatOptions,
2482
2477
  min: _ctx.min,
2483
2478
  max: _ctx.max,
2484
- disabled: _ctx.disabled,
2485
- class: normalizeClass(unref(cn)("w-full", props.class))
2486
- }, {
2479
+ step: _ctx.step,
2480
+ "step-snapping": _ctx.stepSnapping,
2481
+ class: unref(cn)("w-full", props.class)
2482
+ }), {
2487
2483
  default: withCtx(() => [
2488
2484
  createVNode(unref(_sfc_main$1O), null, {
2489
2485
  default: withCtx(() => [
2490
- createVNode(unref(_sfc_main$1N)),
2486
+ createVNode(unref(_sfc_main$1N), {
2487
+ disabled: _ctx.disabled || _ctx.disableDecrement
2488
+ }, null, 8, ["disabled"]),
2491
2489
  createVNode(unref(_sfc_main$1L)),
2492
- createVNode(unref(_sfc_main$1M))
2490
+ createVNode(unref(_sfc_main$1M), {
2491
+ disabled: _ctx.disabled || _ctx.disableIncrement
2492
+ }, null, 8, ["disabled"])
2493
2493
  ]),
2494
2494
  _: 1
2495
2495
  })
2496
2496
  ]),
2497
2497
  _: 1
2498
- }, 8, ["modelValue", "default-value", "format-options", "min", "max", "disabled", "class"])
2498
+ }, 16, ["modelValue", "default-value", "disabled", "disable-wheel-change", "format-options", "min", "max", "step", "step-snapping", "class"])
2499
2499
  ]),
2500
2500
  _: 1
2501
2501
  }),
2502
2502
  _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$2E), {
2503
2503
  key: 0,
2504
- class: normalizeClass(_ctx.labelClass)
2504
+ class: normalizeClass(unref(cn)("flex w-full flex-col gap-2 font-normal", _ctx.labelClass))
2505
2505
  }, {
2506
2506
  default: withCtx(() => [
2507
2507
  createElementVNode("span", _hoisted_1$a, toDisplayString(_ctx.label), 1),
@@ -2517,6 +2517,8 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
2517
2517
  const _sfc_main$1J = /* @__PURE__ */ defineComponent({
2518
2518
  __name: "InputText",
2519
2519
  props: /* @__PURE__ */ mergeModels({
2520
+ autocomplete: {},
2521
+ autofocus: {},
2520
2522
  class: {},
2521
2523
  disabled: {},
2522
2524
  label: {},
@@ -2525,6 +2527,8 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
2525
2527
  min: {},
2526
2528
  onBlur: {},
2527
2529
  placeholder: {},
2530
+ readonly: {},
2531
+ required: {},
2528
2532
  size: {},
2529
2533
  spellcheck: { default: "false" }
2530
2534
  }, {
@@ -2536,11 +2540,13 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
2536
2540
  const props = __props;
2537
2541
  const value = useModel(__props, "modelValue");
2538
2542
  return (_ctx, _cache) => {
2539
- return openBlock(), createBlock(unref(_sfc_main$1Q), {
2543
+ return openBlock(), createBlock(unref(_sfc_main$1Q), mergeProps(_ctx.$attrs, {
2540
2544
  modelValue: value.value,
2541
2545
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
2542
2546
  type: "text",
2543
- class: normalizeClass(props.class),
2547
+ class: props.class,
2548
+ autocomplete: _ctx.autocomplete,
2549
+ autofocus: _ctx.autofocus,
2544
2550
  disabled: _ctx.disabled,
2545
2551
  label: _ctx.label,
2546
2552
  "label-class": _ctx.labelClass,
@@ -2548,9 +2554,11 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
2548
2554
  min: _ctx.min,
2549
2555
  "on-blur": _ctx.onBlur,
2550
2556
  placeholder: _ctx.placeholder,
2557
+ readonly: _ctx.readonly,
2558
+ required: _ctx.required,
2551
2559
  size: _ctx.size,
2552
2560
  spellcheck: _ctx.spellcheck
2553
- }, null, 8, ["modelValue", "class", "disabled", "label", "label-class", "max", "min", "on-blur", "placeholder", "size", "spellcheck"]);
2561
+ }), null, 16, ["modelValue", "class", "autocomplete", "autofocus", "disabled", "label", "label-class", "max", "min", "on-blur", "placeholder", "readonly", "required", "size", "spellcheck"]);
2554
2562
  };
2555
2563
  }
2556
2564
  });
@@ -3907,13 +3915,17 @@ const _hoisted_2$1 = { class: "w-full" };
3907
3915
  const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3908
3916
  __name: "Select",
3909
3917
  props: {
3918
+ autocomplete: {},
3919
+ autofocus: {},
3910
3920
  class: {},
3911
3921
  contentClass: {},
3912
3922
  disabled: { type: Boolean },
3913
3923
  label: {},
3914
3924
  labelClass: {},
3915
3925
  modelValue: {},
3916
- placeholder: {}
3926
+ placeholder: {},
3927
+ required: { type: Boolean },
3928
+ triggerClass: {}
3917
3929
  },
3918
3930
  emits: ["update:modelValue"],
3919
3931
  setup(__props, { emit: __emit }) {
@@ -3930,20 +3942,24 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3930
3942
  createVNode(unref(DefineTemplate), null, {
3931
3943
  default: withCtx(() => [
3932
3944
  createElementVNode("div", _hoisted_1$5, [
3933
- createVNode(unref(_sfc_main$1d), {
3945
+ createVNode(unref(_sfc_main$1d), mergeProps(_ctx.$attrs, {
3934
3946
  modelValue: value.value,
3935
3947
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
3948
+ autocomplete: _ctx.autocomplete,
3949
+ autofocus: _ctx.autofocus,
3936
3950
  disabled: _ctx.disabled,
3937
- autocomplete: "off",
3938
- class: normalizeClass(unref(cn)("w-full", props.class))
3939
- }, {
3951
+ required: _ctx.required,
3952
+ class: props.class
3953
+ }), {
3940
3954
  default: withCtx(() => [
3941
- createVNode(unref(_sfc_main$14), null, {
3955
+ createVNode(unref(_sfc_main$14), {
3956
+ class: normalizeClass(unref(cn)("w-full", _ctx.triggerClass))
3957
+ }, {
3942
3958
  default: withCtx(() => [
3943
3959
  createVNode(unref(_sfc_main$13), { placeholder: _ctx.placeholder }, null, 8, ["placeholder"])
3944
3960
  ]),
3945
3961
  _: 1
3946
- }),
3962
+ }, 8, ["class"]),
3947
3963
  createVNode(unref(_sfc_main$1c), {
3948
3964
  class: normalizeClass(_ctx.contentClass)
3949
3965
  }, {
@@ -3954,7 +3970,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3954
3970
  }, 8, ["class"])
3955
3971
  ]),
3956
3972
  _: 3
3957
- }, 8, ["modelValue", "disabled", "class"]),
3973
+ }, 16, ["modelValue", "autocomplete", "autofocus", "disabled", "required", "class"]),
3958
3974
  renderSlot(_ctx.$slots, "action")
3959
3975
  ])
3960
3976
  ]),
@@ -3962,7 +3978,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3962
3978
  }),
3963
3979
  _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$2E), {
3964
3980
  key: 0,
3965
- class: normalizeClass(unref(cn)("flex flex-col gap-2", _ctx.labelClass))
3981
+ class: normalizeClass(unref(cn)("flex w-full flex-col gap-2 font-normal", _ctx.labelClass))
3966
3982
  }, {
3967
3983
  default: withCtx(() => [
3968
3984
  createElementVNode("span", _hoisted_2$1, toDisplayString(_ctx.label), 1),
@@ -5116,7 +5132,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
5116
5132
  const props = __props;
5117
5133
  const { toggleSidebar } = useSidebar();
5118
5134
  return (_ctx, _cache) => {
5119
- return openBlock(), createBlock(unref(_sfc_main$2R), {
5135
+ return openBlock(), createBlock(unref(_sfc_main$2Q), {
5120
5136
  "data-sidebar": "trigger",
5121
5137
  "data-slot": "sidebar-trigger",
5122
5138
  variant: "ghost",
@@ -5330,12 +5346,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5330
5346
  return openBlock(), createElementBlock(Fragment, null, [
5331
5347
  createVNode(unref(DefineTemplate), null, {
5332
5348
  default: withCtx(() => [
5333
- createVNode(unref(_sfc_main$p), {
5349
+ createVNode(unref(_sfc_main$p), mergeProps(_ctx.$attrs, {
5334
5350
  modelValue: toggled.value,
5335
5351
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => toggled.value = $event),
5336
5352
  disabled: _ctx.disabled,
5337
- class: normalizeClass(props.class)
5338
- }, createSlots({ _: 2 }, [
5353
+ class: props.class
5354
+ }), createSlots({ _: 2 }, [
5339
5355
  _ctx.$slots.thumb ? {
5340
5356
  name: "thumb",
5341
5357
  fn: withCtx(() => [
@@ -5343,7 +5359,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5343
5359
  ]),
5344
5360
  key: "0"
5345
5361
  } : void 0
5346
- ]), 1032, ["modelValue", "disabled", "class"])
5362
+ ]), 1040, ["modelValue", "disabled", "class"])
5347
5363
  ]),
5348
5364
  _: 3
5349
5365
  }),
@@ -5987,7 +6003,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
5987
6003
  return openBlock(), createElementBlock(Fragment, null, [
5988
6004
  createVNode(unref(DefineTemplate), null, {
5989
6005
  default: withCtx(() => [
5990
- createVNode(unref(_sfc_main$3), {
6006
+ createVNode(unref(_sfc_main$3), mergeProps(_ctx.$attrs, {
5991
6007
  modelValue: value.value,
5992
6008
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
5993
6009
  autocapitalize: _ctx.autocapitalize,
@@ -6003,20 +6019,18 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6003
6019
  required: _ctx.required,
6004
6020
  rows: _ctx.rows,
6005
6021
  spellcheck: _ctx.spellcheck,
6006
- class: normalizeClass(
6007
- unref(cn)(
6008
- "size-full resize-none font-normal focus-visible:ring-0 disabled:cursor-default",
6009
- props.class
6010
- )
6022
+ class: unref(cn)(
6023
+ "size-full resize-none font-normal focus-visible:ring-0 disabled:cursor-default",
6024
+ props.class
6011
6025
  ),
6012
6026
  onBlur: _ctx.onBlur
6013
- }, null, 8, ["modelValue", "autocapitalize", "autocomplete", "autocorrect", "autofocus", "cols", "disabled", "maxlength", "minlength", "placeholder", "readonly", "required", "rows", "spellcheck", "class", "onBlur"])
6027
+ }), null, 16, ["modelValue", "autocapitalize", "autocomplete", "autocorrect", "autofocus", "cols", "disabled", "maxlength", "minlength", "placeholder", "readonly", "required", "rows", "spellcheck", "class", "onBlur"])
6014
6028
  ]),
6015
6029
  _: 1
6016
6030
  }),
6017
6031
  _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$2E), {
6018
6032
  key: 0,
6019
- class: normalizeClass(unref(cn)("flex flex-col gap-1", _ctx.labelClass))
6033
+ class: normalizeClass(unref(cn)("flex w-full flex-col gap-1 font-normal", _ctx.labelClass))
6020
6034
  }, {
6021
6035
  default: withCtx(() => [
6022
6036
  createElementVNode("span", _hoisted_1, toDisplayString(_ctx.label), 1),
@@ -6245,4 +6259,4 @@ function localRef(key, initial, options) {
6245
6259
  });
6246
6260
  }
6247
6261
 
6248
- export { _sfc_main$2S as Badge, _sfc_main$2R as Button, _sfc_main$2P as ButtonIcon, _sfc_main$2Q as ButtonLink, _sfc_main$2G as Card, _sfc_main$2C as Checkbox, _sfc_main$2B as Combobox, _sfc_main$2A as ComboboxAnchor, _sfc_main$2z as ComboboxEmpty, _sfc_main$2y as ComboboxGroup, _sfc_main$2x as ComboboxInput, _sfc_main$2w as ComboboxItem, _sfc_main$2v as ComboboxItemIndicator, _sfc_main$2u as ComboboxList, _sfc_main$2t as ComboboxSeparator, _sfc_main$2s as ComboboxViewport, _sfc_main$2r as ContextMenu, _sfc_main$2q as ContextMenuCheckboxItem, _sfc_main$2p as ContextMenuContent, _sfc_main$2o as ContextMenuGroup, _sfc_main$2n as ContextMenuItem, _sfc_main$2m as ContextMenuLabel, _sfc_main$2l as ContextMenuRadioGroup, _sfc_main$2k as ContextMenuRadioItem, _sfc_main$2j as ContextMenuSeparator, _sfc_main$2i as ContextMenuShortcut, _sfc_main$2h as ContextMenuSub, _sfc_main$2g as ContextMenuSubContent, _sfc_main$2f as ContextMenuSubTrigger, _sfc_main$2e as ContextMenuTrigger, _sfc_main$2d as Dialog, _sfc_main$2c as DialogClose, _sfc_main$2a as DialogContent, _sfc_main$29 as DialogDescription, _sfc_main$28 as DialogFooter, _sfc_main$27 as DialogHeader, _sfc_main$2b as DialogOverlay, _sfc_main$26 as DialogScrollContent, _sfc_main$25 as DialogTitle, _sfc_main$24 as DialogTrigger, _sfc_main$23 as DropdownMenu, _sfc_main$22 as DropdownMenuCheckboxItem, _sfc_main$21 as DropdownMenuContent, _sfc_main$20 as DropdownMenuGroup, _sfc_main$1$ as DropdownMenuItem, _sfc_main$1_ as DropdownMenuLabel, _sfc_main$1Z as DropdownMenuRadioGroup, _sfc_main$1Y as DropdownMenuRadioItem, _sfc_main$1X as DropdownMenuSeparator, _sfc_main$1W as DropdownMenuShortcut, _sfc_main$1V as DropdownMenuSub, _sfc_main$1U as DropdownMenuSubContent, _sfc_main$1T as DropdownMenuSubTrigger, _sfc_main$1S as DropdownMenuTrigger, _sfc_main$1Q as Input, _sfc_main$1K as InputNumber, _sfc_main$1J as InputText, _sfc_main$2E as Label, _sfc_main$1I as Link, _sfc_main$1H as Menubar, _sfc_main$1G as MenubarCheckboxItem, _sfc_main$1F as MenubarContent, _sfc_main$1E as MenubarGroup, _sfc_main$1D as MenubarItem, _sfc_main$1C as MenubarLabel, _sfc_main$1B as MenubarMenu, _sfc_main$1A as MenubarRadioGroup, _sfc_main$1z as MenubarRadioItem, _sfc_main$1y as MenubarSeparator, _sfc_main$1x as MenubarShortcut, _sfc_main$1w as MenubarSub, _sfc_main$1v as MenubarSubContent, _sfc_main$1u as MenubarSubTrigger, _sfc_main$1t as MenubarTrigger, _sfc_main$1s as Pagination, _sfc_main$1r as PaginationContent, _sfc_main$1q as PaginationEllipsis, _sfc_main$1p as PaginationFirst, _sfc_main$1o as PaginationItem, _sfc_main$1n as PaginationLast, _sfc_main$1m as PaginationNext, _sfc_main$1l as PaginationPrevious, _sfc_main$1h as Popover, _sfc_main$1g as Progress, _sfc_main$1f as RadioGroup, _sfc_main$1e as RadioGroupItem, _sfc_main$2N as ScrollArea, _sfc_main$12 as Select, _sfc_main$1b as SelectGroup, _sfc_main$1a as SelectItem, _sfc_main$19 as SelectItemText, _sfc_main$18 as SelectLabel, _sfc_main$17 as SelectScrollDownButton, _sfc_main$16 as SelectScrollUpButton, _sfc_main$15 as SelectSeparator, _sfc_main$11 as Separator, _sfc_main$10 as Sheet, _sfc_main$$ as SheetClose, _sfc_main$Z as SheetContent, _sfc_main$Y as SheetDescription, _sfc_main$X as SheetFooter, _sfc_main$W as SheetHeader, _sfc_main$V as SheetTitle, _sfc_main$U as SheetTrigger, _sfc_main$r as Sidebar, _sfc_main$Q as SidebarGroup, _sfc_main$P as SidebarGroupAction, _sfc_main$O as SidebarGroupContent, _sfc_main$N as SidebarGroupLabel, _sfc_main$K as SidebarMenu, _sfc_main$J as SidebarMenuAction, _sfc_main$I as SidebarMenuBadge, _sfc_main$C as SidebarMenuButton, _sfc_main$B as SidebarMenuItem, _sfc_main$z as SidebarMenuSkeleton, _sfc_main$y as SidebarMenuSub, _sfc_main$x as SidebarMenuSubButton, _sfc_main$w as SidebarMenuSubItem, _sfc_main$u as SidebarRail, _sfc_main$t as SidebarSeparator, _sfc_main$s as SidebarTrigger, _sfc_main$A as Skeleton, _sfc_main$q as Sonner, _sfc_main$o as Switch, _sfc_main$e as Table, _sfc_main$k as TableCell, _sfc_main$i as TableEmpty, _sfc_main$g as TableHead, _sfc_main$d as TableLink, _sfc_main$j as TableRow, _sfc_main$c as Tabs, _sfc_main$b as TabsContent, _sfc_main$a as TabsList, _sfc_main$9 as TabsTrigger, _sfc_main$8 as TagsInput, _sfc_main$7 as TagsInputInput, _sfc_main$6 as TagsInputItem, _sfc_main$5 as TagsInputItemDelete, _sfc_main$4 as TagsInputItemText, _sfc_main$2 as Textarea, _sfc_main$1 as Toggle, _sfc_main as Tooltip, asyncComputed, asyncRef, cn, getCurrentApp, getErrorHandler, handleError, inject, localRef, maybe, onAltKeyDown, onCtrlKeyDown, onCtrlShiftKeyDown, onKeyDown, onShiftKeyDown, provide, runWithContext, setCurrentApp, setErrorHandler, tryGetCurrentApp, tryInject, trySetCurrentApp, useElementSize, useHeight, useHeightDiff, useSidebar, useWidth, useWidthDiff, useWindowHeight, useWindowWidth };
6262
+ export { _sfc_main$2R as Badge, _sfc_main$2Q as Button, _sfc_main$2O as ButtonIcon, _sfc_main$2P as ButtonLink, _sfc_main$2F as Card, _sfc_main$2C as Checkbox, _sfc_main$2B as Combobox, _sfc_main$2A as ComboboxAnchor, _sfc_main$2z as ComboboxEmpty, _sfc_main$2y as ComboboxGroup, _sfc_main$2x as ComboboxInput, _sfc_main$2w as ComboboxItem, _sfc_main$2v as ComboboxItemIndicator, _sfc_main$2u as ComboboxList, _sfc_main$2t as ComboboxSeparator, _sfc_main$2s as ComboboxViewport, _sfc_main$2r as ContextMenu, _sfc_main$2q as ContextMenuCheckboxItem, _sfc_main$2p as ContextMenuContent, _sfc_main$2o as ContextMenuGroup, _sfc_main$2n as ContextMenuItem, _sfc_main$2m as ContextMenuLabel, _sfc_main$2l as ContextMenuRadioGroup, _sfc_main$2k as ContextMenuRadioItem, _sfc_main$2j as ContextMenuSeparator, _sfc_main$2i as ContextMenuShortcut, _sfc_main$2h as ContextMenuSub, _sfc_main$2g as ContextMenuSubContent, _sfc_main$2f as ContextMenuSubTrigger, _sfc_main$2e as ContextMenuTrigger, _sfc_main$2d as Dialog, _sfc_main$2c as DialogClose, _sfc_main$2a as DialogContent, _sfc_main$29 as DialogDescription, _sfc_main$28 as DialogFooter, _sfc_main$27 as DialogHeader, _sfc_main$2b as DialogOverlay, _sfc_main$26 as DialogScrollContent, _sfc_main$25 as DialogTitle, _sfc_main$24 as DialogTrigger, _sfc_main$23 as DropdownMenu, _sfc_main$22 as DropdownMenuCheckboxItem, _sfc_main$21 as DropdownMenuContent, _sfc_main$20 as DropdownMenuGroup, _sfc_main$1$ as DropdownMenuItem, _sfc_main$1_ as DropdownMenuLabel, _sfc_main$1Z as DropdownMenuRadioGroup, _sfc_main$1Y as DropdownMenuRadioItem, _sfc_main$1X as DropdownMenuSeparator, _sfc_main$1W as DropdownMenuShortcut, _sfc_main$1V as DropdownMenuSub, _sfc_main$1U as DropdownMenuSubContent, _sfc_main$1T as DropdownMenuSubTrigger, _sfc_main$1S as DropdownMenuTrigger, _sfc_main$1Q as Input, _sfc_main$1K as InputNumber, _sfc_main$1J as InputText, _sfc_main$2E as Label, _sfc_main$1I as Link, _sfc_main$1H as Menubar, _sfc_main$1G as MenubarCheckboxItem, _sfc_main$1F as MenubarContent, _sfc_main$1E as MenubarGroup, _sfc_main$1D as MenubarItem, _sfc_main$1C as MenubarLabel, _sfc_main$1B as MenubarMenu, _sfc_main$1A as MenubarRadioGroup, _sfc_main$1z as MenubarRadioItem, _sfc_main$1y as MenubarSeparator, _sfc_main$1x as MenubarShortcut, _sfc_main$1w as MenubarSub, _sfc_main$1v as MenubarSubContent, _sfc_main$1u as MenubarSubTrigger, _sfc_main$1t as MenubarTrigger, _sfc_main$1s as Pagination, _sfc_main$1r as PaginationContent, _sfc_main$1q as PaginationEllipsis, _sfc_main$1p as PaginationFirst, _sfc_main$1o as PaginationItem, _sfc_main$1n as PaginationLast, _sfc_main$1m as PaginationNext, _sfc_main$1l as PaginationPrevious, _sfc_main$1h as Popover, _sfc_main$1g as Progress, _sfc_main$1f as RadioGroup, _sfc_main$1e as RadioGroupItem, _sfc_main$2M as ScrollArea, _sfc_main$12 as Select, _sfc_main$1b as SelectGroup, _sfc_main$1a as SelectItem, _sfc_main$19 as SelectItemText, _sfc_main$18 as SelectLabel, _sfc_main$17 as SelectScrollDownButton, _sfc_main$16 as SelectScrollUpButton, _sfc_main$15 as SelectSeparator, _sfc_main$11 as Separator, _sfc_main$10 as Sheet, _sfc_main$$ as SheetClose, _sfc_main$Z as SheetContent, _sfc_main$Y as SheetDescription, _sfc_main$X as SheetFooter, _sfc_main$W as SheetHeader, _sfc_main$V as SheetTitle, _sfc_main$U as SheetTrigger, _sfc_main$r as Sidebar, _sfc_main$Q as SidebarGroup, _sfc_main$P as SidebarGroupAction, _sfc_main$O as SidebarGroupContent, _sfc_main$N as SidebarGroupLabel, _sfc_main$K as SidebarMenu, _sfc_main$J as SidebarMenuAction, _sfc_main$I as SidebarMenuBadge, _sfc_main$C as SidebarMenuButton, _sfc_main$B as SidebarMenuItem, _sfc_main$z as SidebarMenuSkeleton, _sfc_main$y as SidebarMenuSub, _sfc_main$x as SidebarMenuSubButton, _sfc_main$w as SidebarMenuSubItem, _sfc_main$u as SidebarRail, _sfc_main$t as SidebarSeparator, _sfc_main$s as SidebarTrigger, _sfc_main$A as Skeleton, _sfc_main$q as Sonner, _sfc_main$o as Switch, _sfc_main$e as Table, _sfc_main$k as TableCell, _sfc_main$i as TableEmpty, _sfc_main$g as TableHead, _sfc_main$d as TableLink, _sfc_main$j as TableRow, _sfc_main$c as Tabs, _sfc_main$b as TabsContent, _sfc_main$a as TabsList, _sfc_main$9 as TabsTrigger, _sfc_main$8 as TagsInput, _sfc_main$7 as TagsInputInput, _sfc_main$6 as TagsInputItem, _sfc_main$5 as TagsInputItemDelete, _sfc_main$4 as TagsInputItemText, _sfc_main$2 as Textarea, _sfc_main$1 as Toggle, _sfc_main as Tooltip, asyncComputed, asyncRef, cn, getCurrentApp, getErrorHandler, handleError, inject, localRef, maybe, onAltKeyDown, onCtrlKeyDown, onCtrlShiftKeyDown, onKeyDown, onShiftKeyDown, provide, runWithContext, setCurrentApp, setErrorHandler, tryGetCurrentApp, tryInject, trySetCurrentApp, useElementSize, useHeight, useHeightDiff, useSidebar, useWidth, useWidthDiff, useWindowHeight, useWindowWidth };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue",
3
- "version": "0.3.20",
3
+ "version": "0.3.22",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,21 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { LabelProps } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- default: () => VNode;
7
- }> & {
8
- default: () => VNode;
9
- };
10
- refs: {};
11
- rootEl: any;
12
- };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import('vue').DefineComponent<LabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
- export default _default;
17
- type __VLS_WithTemplateSlots<T, S> = T & {
18
- new (): {
19
- $slots: S;
20
- };
21
- };
@@ -1,3 +0,0 @@
1
- export interface LabelProps {
2
- class?: string;
3
- }