@tb-dev/vue 0.3.2 → 0.3.4

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,3 +1,3 @@
1
1
  import { default as ButtonLink } from './ButtonLink.vue';
2
- import { ButtonLinkProps } from './types';
3
- export { ButtonLink, type ButtonLinkProps };
2
+ export type * from './types';
3
+ export { ButtonLink };
@@ -1,3 +1,3 @@
1
1
  import { default as InputNumber } from './InputNumber.vue';
2
- import { InputNumberProps } from './types';
3
- export { InputNumber, type InputNumberProps };
2
+ export type * from './types';
3
+ export { InputNumber };
@@ -1,8 +1,11 @@
1
1
  import { Option } from '@tb-dev/utils';
2
2
  export interface InputNumberProps {
3
+ class?: string;
3
4
  defaultValue?: number;
4
5
  disabled?: boolean;
5
6
  formatOptions?: Intl.NumberFormatOptions;
7
+ label?: string;
8
+ labelClass?: string;
6
9
  max?: number;
7
10
  min?: number;
8
11
  modelValue: Option<number>;
@@ -3,5 +3,5 @@ declare const _default: import('vue').DefineComponent<InputTextProps, {}, {}, {}
3
3
  "update:modelValue": (value: string | null) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<InputTextProps> & Readonly<{
5
5
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLInputElement>;
6
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
7
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { default as InputText } from './InputText.vue';
2
- import { InputTextProps } from './types';
3
- export { InputText, type InputTextProps };
2
+ export type * from './types';
3
+ export { InputText };
@@ -2,6 +2,8 @@ import { Option } from '@tb-dev/utils';
2
2
  export interface InputTextProps {
3
3
  class?: string;
4
4
  disabled?: boolean;
5
+ label?: string;
6
+ labelClass?: string;
5
7
  max?: number;
6
8
  min?: number;
7
9
  modelValue: Option<string>;
@@ -1,3 +1,3 @@
1
1
  import { default as Label } from './Label.vue';
2
- import { LabelProps } from './types';
3
- export { Label, type LabelProps };
2
+ export type * from './types';
3
+ export { Label };
@@ -1,4 +1,5 @@
1
1
  import { VNode } from 'vue';
2
+ import { TableProps } from './types';
2
3
  declare function __VLS_template(): {
3
4
  attrs: Partial<{}>;
4
5
  slots: Readonly<{
@@ -16,7 +17,7 @@ declare function __VLS_template(): {
16
17
  rootEl: any;
17
18
  };
18
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ declare const __VLS_component: import('vue').DefineComponent<TableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
22
  export default _default;
22
23
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,5 @@
1
1
  import { default as Table } from './Table.vue';
2
2
  import { default as TableLink } from './TableLink.vue';
3
+ export type * from './types';
3
4
  export { Table, TableLink };
4
5
  export { TableCell, TableEmpty, TableHead, TableRow } from '../__base/table';
@@ -1,3 +1,9 @@
1
+ export interface TableProps {
2
+ bodyClass?: string;
3
+ captionClass?: string;
4
+ footerClass?: string;
5
+ headerClass?: string;
6
+ }
1
7
  export interface TableLinkProps<T extends string> {
2
8
  label?: string;
3
9
  linkClass?: string;
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { inject as inject$1, toValue, defineComponent, computed, createBlock, op
3
3
  import { twMerge } from 'tailwind-merge';
4
4
  import { clsx } from 'clsx';
5
5
  import { unwrap, isNil, toPixel } from '@tb-dev/utils';
6
- import { Primitive, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, useForwardPropsEmits, CheckboxRoot, CheckboxIndicator, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, useForwardProps, ContextMenuSubTrigger, ContextMenuTrigger, DialogRoot, DialogClose, DialogOverlay, DialogPortal, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DropdownMenuRoot, DropdownMenuCheckboxItem, DropdownMenuItemIndicator, DropdownMenuPortal, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, NumberFieldRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, Label, PopoverRoot, PopoverAnchor, PopoverPortal, PopoverContent, PopoverTrigger, ProgressRoot, ProgressIndicator, RadioGroupRoot, RadioGroupItem, RadioGroupIndicator, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectIcon, SelectValue, Separator, createContext, TooltipRoot, TooltipPortal, TooltipContent, TooltipArrow, TooltipProvider, TooltipTrigger, TabsRoot, TabsContent, TabsList, TabsTrigger, TagsInputRoot, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Toggle } from 'reka-ui';
6
+ import { Primitive, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, useForwardPropsEmits, CheckboxRoot, CheckboxIndicator, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, useForwardProps, ContextMenuSubTrigger, ContextMenuTrigger, DialogRoot, DialogClose, DialogOverlay, DialogPortal, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DropdownMenuRoot, DropdownMenuCheckboxItem, DropdownMenuItemIndicator, DropdownMenuPortal, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Label, NumberFieldRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, PopoverRoot, PopoverAnchor, PopoverPortal, PopoverContent, PopoverTrigger, ProgressRoot, ProgressIndicator, RadioGroupRoot, RadioGroupItem, RadioGroupIndicator, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectIcon, SelectValue, Separator, createContext, TooltipRoot, TooltipPortal, TooltipContent, TooltipArrow, TooltipProvider, TooltipTrigger, TabsRoot, TabsContent, TabsList, TabsTrigger, TagsInputRoot, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Toggle } from 'reka-ui';
7
7
  export { DropdownMenuPortal } from 'reka-ui';
8
8
  import { RouterLink } from 'vue-router';
9
9
  import { createReusableTemplate, reactiveOmit, useVModel, useMediaQuery, useEventListener, computedAsync, useAsyncState, useWindowSize, useElementSize as useElementSize$1, tryOnScopeDispose, onKeyStroke, useLocalStorage } from '@vueuse/core';
@@ -1713,6 +1713,56 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
1713
1713
  });
1714
1714
 
1715
1715
  const _sfc_main$17 = /* @__PURE__ */ defineComponent({
1716
+ __name: "Label",
1717
+ props: {
1718
+ for: {},
1719
+ asChild: { type: Boolean },
1720
+ as: {},
1721
+ class: {}
1722
+ },
1723
+ setup(__props) {
1724
+ const props = __props;
1725
+ const delegatedProps = computed(() => {
1726
+ const { class: _, ...delegated } = props;
1727
+ return delegated;
1728
+ });
1729
+ return (_ctx, _cache) => {
1730
+ return openBlock(), createBlock(unref(Label), mergeProps({ "data-slot": "label" }, delegatedProps.value, {
1731
+ class: unref(cn)(
1732
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
1733
+ props.class
1734
+ )
1735
+ }), {
1736
+ default: withCtx(() => [
1737
+ renderSlot(_ctx.$slots, "default")
1738
+ ]),
1739
+ _: 3
1740
+ }, 16, ["class"]);
1741
+ };
1742
+ }
1743
+ });
1744
+
1745
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
1746
+ __name: "Label",
1747
+ props: {
1748
+ class: {}
1749
+ },
1750
+ setup(__props) {
1751
+ const props = __props;
1752
+ return (_ctx, _cache) => {
1753
+ return openBlock(), createBlock(unref(_sfc_main$17), {
1754
+ class: normalizeClass(unref(cn)("flex w-full flex-col gap-2 font-normal", props.class))
1755
+ }, {
1756
+ default: withCtx(() => [
1757
+ renderSlot(_ctx.$slots, "default")
1758
+ ]),
1759
+ _: 3
1760
+ }, 8, ["class"]);
1761
+ };
1762
+ }
1763
+ });
1764
+
1765
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
1716
1766
  __name: "NumberField",
1717
1767
  props: {
1718
1768
  defaultValue: {},
@@ -1754,7 +1804,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
1754
1804
  }
1755
1805
  });
1756
1806
 
1757
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
1807
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1758
1808
  __name: "NumberFieldContent",
1759
1809
  props: {
1760
1810
  class: {}
@@ -1776,7 +1826,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
1776
1826
  }
1777
1827
  });
1778
1828
 
1779
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
1829
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1780
1830
  __name: "NumberFieldDecrement",
1781
1831
  props: {
1782
1832
  disabled: { type: Boolean },
@@ -1809,7 +1859,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
1809
1859
  }
1810
1860
  });
1811
1861
 
1812
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1862
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1813
1863
  __name: "NumberFieldIncrement",
1814
1864
  props: {
1815
1865
  disabled: { type: Boolean },
@@ -1842,7 +1892,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1842
1892
  }
1843
1893
  });
1844
1894
 
1845
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1895
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1846
1896
  __name: "NumberFieldInput",
1847
1897
  props: {
1848
1898
  class: {}
@@ -1863,12 +1913,15 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1863
1913
  }
1864
1914
  });
1865
1915
 
1866
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1916
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
1867
1917
  __name: "InputNumber",
1868
1918
  props: {
1919
+ class: {},
1869
1920
  defaultValue: {},
1870
1921
  disabled: { type: Boolean },
1871
1922
  formatOptions: { default: () => ({ useGrouping: false }) },
1923
+ label: {},
1924
+ labelClass: {},
1872
1925
  max: {},
1873
1926
  min: {},
1874
1927
  modelValue: {}
@@ -1882,37 +1935,58 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1882
1935
  get: () => props.modelValue ?? void 0,
1883
1936
  set: (it) => emit("update:modelValue", it ?? null)
1884
1937
  });
1938
+ const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
1885
1939
  return (_ctx, _cache) => {
1886
- return openBlock(), createBlock(unref(_sfc_main$17), {
1887
- modelValue: value.value,
1888
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
1889
- "default-value": _ctx.defaultValue,
1890
- "format-options": _ctx.formatOptions,
1891
- min: _ctx.min,
1892
- max: _ctx.max,
1893
- disabled: _ctx.disabled
1894
- }, {
1895
- default: withCtx(() => [
1896
- createVNode(unref(_sfc_main$16), null, {
1897
- default: withCtx(() => [
1898
- createVNode(unref(_sfc_main$15)),
1899
- createVNode(unref(_sfc_main$13)),
1900
- createVNode(unref(_sfc_main$14))
1901
- ]),
1902
- _: 1
1903
- })
1904
- ]),
1905
- _: 1
1906
- }, 8, ["modelValue", "default-value", "format-options", "min", "max", "disabled"]);
1940
+ return openBlock(), createElementBlock(Fragment, null, [
1941
+ createVNode(unref(DefineTemplate), null, {
1942
+ default: withCtx(() => [
1943
+ createVNode(unref(_sfc_main$15), {
1944
+ modelValue: value.value,
1945
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
1946
+ "default-value": _ctx.defaultValue,
1947
+ "format-options": _ctx.formatOptions,
1948
+ min: _ctx.min,
1949
+ max: _ctx.max,
1950
+ disabled: _ctx.disabled,
1951
+ class: normalizeClass(props.class)
1952
+ }, {
1953
+ default: withCtx(() => [
1954
+ createVNode(unref(_sfc_main$14), null, {
1955
+ default: withCtx(() => [
1956
+ createVNode(unref(_sfc_main$13)),
1957
+ createVNode(unref(_sfc_main$11)),
1958
+ createVNode(unref(_sfc_main$12))
1959
+ ]),
1960
+ _: 1
1961
+ })
1962
+ ]),
1963
+ _: 1
1964
+ }, 8, ["modelValue", "default-value", "format-options", "min", "max", "disabled", "class"])
1965
+ ]),
1966
+ _: 1
1967
+ }),
1968
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$16), {
1969
+ key: 0,
1970
+ class: normalizeClass(_ctx.labelClass)
1971
+ }, {
1972
+ default: withCtx(() => [
1973
+ createElementVNode("span", null, toDisplayString(_ctx.label), 1),
1974
+ createVNode(unref(ReuseTemplate))
1975
+ ]),
1976
+ _: 1
1977
+ }, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
1978
+ ], 64);
1907
1979
  };
1908
1980
  }
1909
1981
  });
1910
1982
 
1911
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1983
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
1912
1984
  __name: "InputText",
1913
1985
  props: {
1914
1986
  class: {},
1915
1987
  disabled: { type: Boolean },
1988
+ label: {},
1989
+ labelClass: {},
1916
1990
  max: {},
1917
1991
  min: {},
1918
1992
  modelValue: {},
@@ -1929,71 +2003,39 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1929
2003
  get: () => props.modelValue ?? void 0,
1930
2004
  set: (it) => emit("update:modelValue", it ?? null)
1931
2005
  });
2006
+ const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
1932
2007
  return (_ctx, _cache) => {
1933
- return openBlock(), createBlock(unref(_sfc_main$18), {
1934
- modelValue: value.value,
1935
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
1936
- modelModifiers: { trim: true },
1937
- type: "text",
1938
- placeholder: _ctx.placeholder,
1939
- disabled: _ctx.disabled,
1940
- maxlength: _ctx.max,
1941
- minlength: _ctx.min,
1942
- size: _ctx.size,
1943
- spellcheck: "false",
1944
- class: normalizeClass(unref(cn)("focus-visible:ring-0 disabled:cursor-default", props.class)),
1945
- onBlur: _ctx.onBlur
1946
- }, null, 8, ["modelValue", "placeholder", "disabled", "maxlength", "minlength", "size", "class", "onBlur"]);
1947
- };
1948
- }
1949
- });
1950
-
1951
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
1952
- __name: "Label",
1953
- props: {
1954
- for: {},
1955
- asChild: { type: Boolean },
1956
- as: {},
1957
- class: {}
1958
- },
1959
- setup(__props) {
1960
- const props = __props;
1961
- const delegatedProps = computed(() => {
1962
- const { class: _, ...delegated } = props;
1963
- return delegated;
1964
- });
1965
- return (_ctx, _cache) => {
1966
- return openBlock(), createBlock(unref(Label), mergeProps({ "data-slot": "label" }, delegatedProps.value, {
1967
- class: unref(cn)(
1968
- "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
1969
- props.class
1970
- )
1971
- }), {
1972
- default: withCtx(() => [
1973
- renderSlot(_ctx.$slots, "default")
1974
- ]),
1975
- _: 3
1976
- }, 16, ["class"]);
1977
- };
1978
- }
1979
- });
1980
-
1981
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
1982
- __name: "Label",
1983
- props: {
1984
- class: {}
1985
- },
1986
- setup(__props) {
1987
- const props = __props;
1988
- return (_ctx, _cache) => {
1989
- return openBlock(), createBlock(unref(_sfc_main$10), {
1990
- class: normalizeClass(unref(cn)("flex w-full flex-col gap-2 font-normal", props.class))
1991
- }, {
1992
- default: withCtx(() => [
1993
- renderSlot(_ctx.$slots, "default")
1994
- ]),
1995
- _: 3
1996
- }, 8, ["class"]);
2008
+ return openBlock(), createElementBlock(Fragment, null, [
2009
+ createVNode(unref(DefineTemplate), null, {
2010
+ default: withCtx(() => [
2011
+ createVNode(unref(_sfc_main$18), {
2012
+ modelValue: value.value,
2013
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
2014
+ modelModifiers: { trim: true },
2015
+ type: "text",
2016
+ placeholder: _ctx.placeholder,
2017
+ disabled: _ctx.disabled,
2018
+ maxlength: _ctx.max,
2019
+ minlength: _ctx.min,
2020
+ size: _ctx.size,
2021
+ spellcheck: "false",
2022
+ class: normalizeClass(unref(cn)("focus-visible:ring-0 disabled:cursor-default", props.class)),
2023
+ onBlur: _ctx.onBlur
2024
+ }, null, 8, ["modelValue", "placeholder", "disabled", "maxlength", "minlength", "size", "class", "onBlur"])
2025
+ ]),
2026
+ _: 1
2027
+ }),
2028
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$16), {
2029
+ key: 0,
2030
+ class: normalizeClass(_ctx.labelClass)
2031
+ }, {
2032
+ default: withCtx(() => [
2033
+ createElementVNode("span", null, toDisplayString(_ctx.label), 1),
2034
+ createVNode(unref(ReuseTemplate))
2035
+ ]),
2036
+ _: 1
2037
+ }, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
2038
+ ], 64);
1997
2039
  };
1998
2040
  }
1999
2041
  });
@@ -3528,34 +3570,51 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3528
3570
 
3529
3571
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
3530
3572
  __name: "Table",
3573
+ props: {
3574
+ bodyClass: {},
3575
+ captionClass: {},
3576
+ footerClass: {},
3577
+ headerClass: {}
3578
+ },
3531
3579
  setup(__props) {
3532
3580
  return (_ctx, _cache) => {
3533
3581
  return openBlock(), createBlock(unref(_sfc_main$l), null, {
3534
3582
  default: withCtx(() => [
3535
- _ctx.$slots.caption ? (openBlock(), createBlock(unref(_sfc_main$j), { key: 0 }, {
3583
+ _ctx.$slots.caption ? (openBlock(), createBlock(unref(_sfc_main$j), {
3584
+ key: 0,
3585
+ class: normalizeClass(_ctx.captionClass)
3586
+ }, {
3536
3587
  default: withCtx(() => [
3537
3588
  renderSlot(_ctx.$slots, "caption")
3538
3589
  ]),
3539
3590
  _: 3
3540
- })) : createCommentVNode("", true),
3541
- _ctx.$slots.header ? (openBlock(), createBlock(unref(_sfc_main$d), { key: 1 }, {
3591
+ }, 8, ["class"])) : createCommentVNode("", true),
3592
+ _ctx.$slots.header ? (openBlock(), createBlock(unref(_sfc_main$d), {
3593
+ key: 1,
3594
+ class: normalizeClass(_ctx.headerClass)
3595
+ }, {
3542
3596
  default: withCtx(() => [
3543
3597
  renderSlot(_ctx.$slots, "header")
3544
3598
  ]),
3545
3599
  _: 3
3546
- })) : createCommentVNode("", true),
3547
- createVNode(unref(_sfc_main$k), null, {
3600
+ }, 8, ["class"])) : createCommentVNode("", true),
3601
+ createVNode(unref(_sfc_main$k), {
3602
+ class: normalizeClass(_ctx.bodyClass)
3603
+ }, {
3548
3604
  default: withCtx(() => [
3549
3605
  renderSlot(_ctx.$slots, "default")
3550
3606
  ]),
3551
3607
  _: 3
3552
- }),
3553
- _ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$f), { key: 2 }, {
3608
+ }, 8, ["class"]),
3609
+ _ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$f), {
3610
+ key: 2,
3611
+ class: normalizeClass(_ctx.footerClass)
3612
+ }, {
3554
3613
  default: withCtx(() => [
3555
3614
  renderSlot(_ctx.$slots, "footer")
3556
3615
  ]),
3557
3616
  _: 3
3558
- })) : createCommentVNode("", true)
3617
+ }, 8, ["class"])) : createCommentVNode("", true)
3559
3618
  ]),
3560
3619
  _: 3
3561
3620
  });
@@ -4087,4 +4146,4 @@ function localRef(key, initial, options) {
4087
4146
  });
4088
4147
  }
4089
4148
 
4090
- export { _sfc_main$1W as Badge, _sfc_main$1V as Button, _sfc_main$1U as ButtonLink, _sfc_main$1M as Card, _sfc_main$1L as Checkbox, _sfc_main$1K as ContextMenu, _sfc_main$1J as ContextMenuCheckboxItem, _sfc_main$1I as ContextMenuContent, _sfc_main$1H as ContextMenuGroup, _sfc_main$1G as ContextMenuItem, _sfc_main$1F as ContextMenuLabel, _sfc_main$1E as ContextMenuRadioGroup, _sfc_main$1D as ContextMenuRadioItem, _sfc_main$1C as ContextMenuSeparator, _sfc_main$1B as ContextMenuShortcut, _sfc_main$1A as ContextMenuSub, _sfc_main$1z as ContextMenuSubContent, _sfc_main$1y as ContextMenuSubTrigger, _sfc_main$1x as ContextMenuTrigger, _sfc_main$1w as Dialog, _sfc_main$1v as DialogClose, _sfc_main$1t as DialogContent, _sfc_main$1s as DialogDescription, _sfc_main$1r as DialogFooter, _sfc_main$1q as DialogHeader, _sfc_main$1u as DialogOverlay, _sfc_main$1p as DialogScrollContent, _sfc_main$1o as DialogTitle, _sfc_main$1n as DialogTrigger, _sfc_main$1m as DropdownMenu, _sfc_main$1l as DropdownMenuCheckboxItem, _sfc_main$1k as DropdownMenuContent, _sfc_main$1j as DropdownMenuGroup, _sfc_main$1i as DropdownMenuItem, _sfc_main$1h as DropdownMenuLabel, _sfc_main$1g as DropdownMenuRadioGroup, _sfc_main$1f as DropdownMenuRadioItem, _sfc_main$1e as DropdownMenuSeparator, _sfc_main$1d as DropdownMenuShortcut, _sfc_main$1c as DropdownMenuSub, _sfc_main$1b as DropdownMenuSubContent, _sfc_main$1a as DropdownMenuSubTrigger, _sfc_main$19 as DropdownMenuTrigger, _sfc_main$18 as Input, _sfc_main$12 as InputNumber, _sfc_main$11 as InputText, _sfc_main$$ as Label, _sfc_main$_ as Link, _sfc_main$Z as Popover, _sfc_main$Y as PopoverAnchor, _sfc_main$X as PopoverContent, _sfc_main$W as PopoverTrigger, _sfc_main$V as Progress, _sfc_main$U as RadioGroup, _sfc_main$T as RadioGroupItem, _sfc_main$1S as ScrollArea, _sfc_main$S as Select, _sfc_main$R as SelectContent, _sfc_main$Q as SelectGroup, _sfc_main$P as SelectItem, _sfc_main$O as SelectItemText, _sfc_main$N as SelectLabel, _sfc_main$M as SelectScrollDownButton, _sfc_main$L as SelectScrollUpButton, _sfc_main$K as SelectSeparator, _sfc_main$J as SelectTrigger, _sfc_main$I as SelectValue, _sfc_main$H as Separator, _sfc_main$G as Sheet, _sfc_main$F as SheetClose, _sfc_main$D as SheetContent, _sfc_main$C as SheetDescription, _sfc_main$B as SheetFooter, _sfc_main$A as SheetHeader, _sfc_main$z as SheetTitle, _sfc_main$y as SheetTrigger, _sfc_main$m as Sidebar, _sfc_main$o as Skeleton, _sfc_main$c as Table, _sfc_main$i as TableCell, _sfc_main$g as TableEmpty, _sfc_main$e as TableHead, _sfc_main$b as TableLink, _sfc_main$h as TableRow, _sfc_main$a as Tabs, _sfc_main$9 as TabsContent, _sfc_main$8 as TabsList, _sfc_main$7 as TabsTrigger, _sfc_main$6 as TagsInput, _sfc_main$5 as TagsInputInput, _sfc_main$4 as TagsInputItem, _sfc_main$3 as TagsInputItemDelete, _sfc_main$2 as TagsInputItemText, _sfc_main$1 as Textarea, _sfc_main as Toggle, _sfc_main$s as Tooltip, _sfc_main$r as TooltipContent, _sfc_main$q as TooltipProvider, _sfc_main$p as TooltipTrigger, 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 };
4149
+ export { _sfc_main$1W as Badge, _sfc_main$1V as Button, _sfc_main$1U as ButtonLink, _sfc_main$1M as Card, _sfc_main$1L as Checkbox, _sfc_main$1K as ContextMenu, _sfc_main$1J as ContextMenuCheckboxItem, _sfc_main$1I as ContextMenuContent, _sfc_main$1H as ContextMenuGroup, _sfc_main$1G as ContextMenuItem, _sfc_main$1F as ContextMenuLabel, _sfc_main$1E as ContextMenuRadioGroup, _sfc_main$1D as ContextMenuRadioItem, _sfc_main$1C as ContextMenuSeparator, _sfc_main$1B as ContextMenuShortcut, _sfc_main$1A as ContextMenuSub, _sfc_main$1z as ContextMenuSubContent, _sfc_main$1y as ContextMenuSubTrigger, _sfc_main$1x as ContextMenuTrigger, _sfc_main$1w as Dialog, _sfc_main$1v as DialogClose, _sfc_main$1t as DialogContent, _sfc_main$1s as DialogDescription, _sfc_main$1r as DialogFooter, _sfc_main$1q as DialogHeader, _sfc_main$1u as DialogOverlay, _sfc_main$1p as DialogScrollContent, _sfc_main$1o as DialogTitle, _sfc_main$1n as DialogTrigger, _sfc_main$1m as DropdownMenu, _sfc_main$1l as DropdownMenuCheckboxItem, _sfc_main$1k as DropdownMenuContent, _sfc_main$1j as DropdownMenuGroup, _sfc_main$1i as DropdownMenuItem, _sfc_main$1h as DropdownMenuLabel, _sfc_main$1g as DropdownMenuRadioGroup, _sfc_main$1f as DropdownMenuRadioItem, _sfc_main$1e as DropdownMenuSeparator, _sfc_main$1d as DropdownMenuShortcut, _sfc_main$1c as DropdownMenuSub, _sfc_main$1b as DropdownMenuSubContent, _sfc_main$1a as DropdownMenuSubTrigger, _sfc_main$19 as DropdownMenuTrigger, _sfc_main$18 as Input, _sfc_main$10 as InputNumber, _sfc_main$$ as InputText, _sfc_main$16 as Label, _sfc_main$_ as Link, _sfc_main$Z as Popover, _sfc_main$Y as PopoverAnchor, _sfc_main$X as PopoverContent, _sfc_main$W as PopoverTrigger, _sfc_main$V as Progress, _sfc_main$U as RadioGroup, _sfc_main$T as RadioGroupItem, _sfc_main$1S as ScrollArea, _sfc_main$S as Select, _sfc_main$R as SelectContent, _sfc_main$Q as SelectGroup, _sfc_main$P as SelectItem, _sfc_main$O as SelectItemText, _sfc_main$N as SelectLabel, _sfc_main$M as SelectScrollDownButton, _sfc_main$L as SelectScrollUpButton, _sfc_main$K as SelectSeparator, _sfc_main$J as SelectTrigger, _sfc_main$I as SelectValue, _sfc_main$H as Separator, _sfc_main$G as Sheet, _sfc_main$F as SheetClose, _sfc_main$D as SheetContent, _sfc_main$C as SheetDescription, _sfc_main$B as SheetFooter, _sfc_main$A as SheetHeader, _sfc_main$z as SheetTitle, _sfc_main$y as SheetTrigger, _sfc_main$m as Sidebar, _sfc_main$o as Skeleton, _sfc_main$c as Table, _sfc_main$i as TableCell, _sfc_main$g as TableEmpty, _sfc_main$e as TableHead, _sfc_main$b as TableLink, _sfc_main$h as TableRow, _sfc_main$a as Tabs, _sfc_main$9 as TabsContent, _sfc_main$8 as TabsList, _sfc_main$7 as TabsTrigger, _sfc_main$6 as TagsInput, _sfc_main$5 as TagsInputInput, _sfc_main$4 as TagsInputItem, _sfc_main$3 as TagsInputItemDelete, _sfc_main$2 as TagsInputItemText, _sfc_main$1 as Textarea, _sfc_main as Toggle, _sfc_main$s as Tooltip, _sfc_main$r as TooltipContent, _sfc_main$q as TooltipProvider, _sfc_main$p as TooltipTrigger, 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.2",
3
+ "version": "0.3.4",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",