@tb-dev/vue 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button-link/index.d.ts +2 -2
- package/dist/components/input-number/index.d.ts +2 -2
- package/dist/components/input-number/types.d.ts +3 -0
- package/dist/components/input-text/InputText.vue.d.ts +1 -1
- package/dist/components/input-text/index.d.ts +2 -2
- package/dist/components/input-text/types.d.ts +2 -0
- package/dist/components/label/index.d.ts +2 -2
- package/dist/index.js +147 -103
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as ButtonLink } from './ButtonLink.vue';
|
|
2
|
-
|
|
3
|
-
export { ButtonLink
|
|
2
|
+
export type * from './types';
|
|
3
|
+
export { ButtonLink };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as InputNumber } from './InputNumber.vue';
|
|
2
|
-
|
|
3
|
-
export { InputNumber
|
|
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, {},
|
|
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
|
-
|
|
3
|
-
export { InputText
|
|
2
|
+
export type * from './types';
|
|
3
|
+
export { InputText };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as Label } from './Label.vue';
|
|
2
|
-
|
|
3
|
-
export { Label
|
|
2
|
+
export type * from './types';
|
|
3
|
+
export { Label };
|
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,
|
|
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';
|
|
@@ -186,7 +186,7 @@ const buttonVariants = cva(
|
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
|
|
189
|
-
const _hoisted_1$
|
|
189
|
+
const _hoisted_1$b = { key: 0 };
|
|
190
190
|
const _hoisted_2$1 = { key: 0 };
|
|
191
191
|
const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
192
192
|
__name: "ButtonLink",
|
|
@@ -211,7 +211,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
211
211
|
class: normalizeClass(unref(cn)("size-full", _ctx.buttonClass))
|
|
212
212
|
}, {
|
|
213
213
|
default: withCtx(() => [
|
|
214
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
214
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$b, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
215
215
|
]),
|
|
216
216
|
_: 3
|
|
217
217
|
}, 8, ["variant", "size", "disabled", "class"])
|
|
@@ -543,7 +543,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
543
543
|
}
|
|
544
544
|
});
|
|
545
545
|
|
|
546
|
-
const _hoisted_1$
|
|
546
|
+
const _hoisted_1$a = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
547
547
|
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
548
548
|
__name: "ContextMenuCheckboxItem",
|
|
549
549
|
props: {
|
|
@@ -571,7 +571,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
571
571
|
)
|
|
572
572
|
}), {
|
|
573
573
|
default: withCtx(() => [
|
|
574
|
-
createElementVNode("span", _hoisted_1$
|
|
574
|
+
createElementVNode("span", _hoisted_1$a, [
|
|
575
575
|
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
576
576
|
default: withCtx(() => [
|
|
577
577
|
createVNode(unref(Check), { class: "size-4" })
|
|
@@ -748,7 +748,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
748
748
|
}
|
|
749
749
|
});
|
|
750
750
|
|
|
751
|
-
const _hoisted_1$
|
|
751
|
+
const _hoisted_1$9 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
752
752
|
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
753
753
|
__name: "ContextMenuRadioItem",
|
|
754
754
|
props: {
|
|
@@ -776,7 +776,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
776
776
|
)
|
|
777
777
|
}), {
|
|
778
778
|
default: withCtx(() => [
|
|
779
|
-
createElementVNode("span", _hoisted_1$
|
|
779
|
+
createElementVNode("span", _hoisted_1$9, [
|
|
780
780
|
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
781
781
|
default: withCtx(() => [
|
|
782
782
|
createVNode(unref(Circle), { class: "size-2 fill-current" })
|
|
@@ -1271,7 +1271,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
1271
1271
|
}
|
|
1272
1272
|
});
|
|
1273
1273
|
|
|
1274
|
-
const _hoisted_1$
|
|
1274
|
+
const _hoisted_1$8 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
1275
1275
|
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
1276
1276
|
__name: "DropdownMenuCheckboxItem",
|
|
1277
1277
|
props: {
|
|
@@ -1299,7 +1299,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
1299
1299
|
)
|
|
1300
1300
|
}), {
|
|
1301
1301
|
default: withCtx(() => [
|
|
1302
|
-
createElementVNode("span", _hoisted_1$
|
|
1302
|
+
createElementVNode("span", _hoisted_1$8, [
|
|
1303
1303
|
createVNode(unref(DropdownMenuItemIndicator), null, {
|
|
1304
1304
|
default: withCtx(() => [
|
|
1305
1305
|
createVNode(unref(Check), { class: "size-4" })
|
|
@@ -1474,7 +1474,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
1474
1474
|
}
|
|
1475
1475
|
});
|
|
1476
1476
|
|
|
1477
|
-
const _hoisted_1$
|
|
1477
|
+
const _hoisted_1$7 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
1478
1478
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
1479
1479
|
__name: "DropdownMenuRadioItem",
|
|
1480
1480
|
props: {
|
|
@@ -1502,7 +1502,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1502
1502
|
)
|
|
1503
1503
|
}), {
|
|
1504
1504
|
default: withCtx(() => [
|
|
1505
|
-
createElementVNode("span", _hoisted_1$
|
|
1505
|
+
createElementVNode("span", _hoisted_1$7, [
|
|
1506
1506
|
createVNode(unref(DropdownMenuItemIndicator), null, {
|
|
1507
1507
|
default: withCtx(() => [
|
|
1508
1508
|
createVNode(unref(Circle), { class: "size-2 fill-current" })
|
|
@@ -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$
|
|
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$
|
|
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$
|
|
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$
|
|
1895
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
1846
1896
|
__name: "NumberFieldInput",
|
|
1847
1897
|
props: {
|
|
1848
1898
|
class: {}
|
|
@@ -1863,12 +1913,16 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
1863
1913
|
}
|
|
1864
1914
|
});
|
|
1865
1915
|
|
|
1866
|
-
const
|
|
1916
|
+
const _hoisted_1$6 = { class: "w-full" };
|
|
1917
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
1867
1918
|
__name: "InputNumber",
|
|
1868
1919
|
props: {
|
|
1920
|
+
class: {},
|
|
1869
1921
|
defaultValue: {},
|
|
1870
1922
|
disabled: { type: Boolean },
|
|
1871
1923
|
formatOptions: { default: () => ({ useGrouping: false }) },
|
|
1924
|
+
label: {},
|
|
1925
|
+
labelClass: {},
|
|
1872
1926
|
max: {},
|
|
1873
1927
|
min: {},
|
|
1874
1928
|
modelValue: {}
|
|
@@ -1882,37 +1936,59 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
1882
1936
|
get: () => props.modelValue ?? void 0,
|
|
1883
1937
|
set: (it) => emit("update:modelValue", it ?? null)
|
|
1884
1938
|
});
|
|
1939
|
+
const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
1885
1940
|
return (_ctx, _cache) => {
|
|
1886
|
-
return openBlock(),
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1941
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1942
|
+
createVNode(unref(DefineTemplate), null, {
|
|
1943
|
+
default: withCtx(() => [
|
|
1944
|
+
createVNode(unref(_sfc_main$15), {
|
|
1945
|
+
modelValue: value.value,
|
|
1946
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
1947
|
+
"default-value": _ctx.defaultValue,
|
|
1948
|
+
"format-options": _ctx.formatOptions,
|
|
1949
|
+
min: _ctx.min,
|
|
1950
|
+
max: _ctx.max,
|
|
1951
|
+
disabled: _ctx.disabled,
|
|
1952
|
+
class: normalizeClass(props.class)
|
|
1953
|
+
}, {
|
|
1954
|
+
default: withCtx(() => [
|
|
1955
|
+
createVNode(unref(_sfc_main$14), null, {
|
|
1956
|
+
default: withCtx(() => [
|
|
1957
|
+
createVNode(unref(_sfc_main$13)),
|
|
1958
|
+
createVNode(unref(_sfc_main$11)),
|
|
1959
|
+
createVNode(unref(_sfc_main$12))
|
|
1960
|
+
]),
|
|
1961
|
+
_: 1
|
|
1962
|
+
})
|
|
1963
|
+
]),
|
|
1964
|
+
_: 1
|
|
1965
|
+
}, 8, ["modelValue", "default-value", "format-options", "min", "max", "disabled", "class"])
|
|
1966
|
+
]),
|
|
1967
|
+
_: 1
|
|
1968
|
+
}),
|
|
1969
|
+
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$16), {
|
|
1970
|
+
key: 0,
|
|
1971
|
+
class: normalizeClass(_ctx.labelClass)
|
|
1972
|
+
}, {
|
|
1973
|
+
default: withCtx(() => [
|
|
1974
|
+
createElementVNode("span", _hoisted_1$6, toDisplayString(_ctx.label), 1),
|
|
1975
|
+
createVNode(unref(ReuseTemplate))
|
|
1976
|
+
]),
|
|
1977
|
+
_: 1
|
|
1978
|
+
}, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
|
|
1979
|
+
], 64);
|
|
1907
1980
|
};
|
|
1908
1981
|
}
|
|
1909
1982
|
});
|
|
1910
1983
|
|
|
1911
|
-
const
|
|
1984
|
+
const _hoisted_1$5 = { class: "w-full" };
|
|
1985
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
1912
1986
|
__name: "InputText",
|
|
1913
1987
|
props: {
|
|
1914
1988
|
class: {},
|
|
1915
1989
|
disabled: { type: Boolean },
|
|
1990
|
+
label: {},
|
|
1991
|
+
labelClass: {},
|
|
1916
1992
|
max: {},
|
|
1917
1993
|
min: {},
|
|
1918
1994
|
modelValue: {},
|
|
@@ -1929,71 +2005,39 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
1929
2005
|
get: () => props.modelValue ?? void 0,
|
|
1930
2006
|
set: (it) => emit("update:modelValue", it ?? null)
|
|
1931
2007
|
});
|
|
2008
|
+
const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
1932
2009
|
return (_ctx, _cache) => {
|
|
1933
|
-
return openBlock(),
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
})
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
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"]);
|
|
2010
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
2011
|
+
createVNode(unref(DefineTemplate), null, {
|
|
2012
|
+
default: withCtx(() => [
|
|
2013
|
+
createVNode(unref(_sfc_main$18), {
|
|
2014
|
+
modelValue: value.value,
|
|
2015
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
2016
|
+
modelModifiers: { trim: true },
|
|
2017
|
+
type: "text",
|
|
2018
|
+
placeholder: _ctx.placeholder,
|
|
2019
|
+
disabled: _ctx.disabled,
|
|
2020
|
+
maxlength: _ctx.max,
|
|
2021
|
+
minlength: _ctx.min,
|
|
2022
|
+
size: _ctx.size,
|
|
2023
|
+
spellcheck: "false",
|
|
2024
|
+
class: normalizeClass(unref(cn)("focus-visible:ring-0 disabled:cursor-default", props.class)),
|
|
2025
|
+
onBlur: _ctx.onBlur
|
|
2026
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "maxlength", "minlength", "size", "class", "onBlur"])
|
|
2027
|
+
]),
|
|
2028
|
+
_: 1
|
|
2029
|
+
}),
|
|
2030
|
+
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$16), {
|
|
2031
|
+
key: 0,
|
|
2032
|
+
class: normalizeClass(_ctx.labelClass)
|
|
2033
|
+
}, {
|
|
2034
|
+
default: withCtx(() => [
|
|
2035
|
+
createElementVNode("span", _hoisted_1$5, toDisplayString(_ctx.label), 1),
|
|
2036
|
+
createVNode(unref(ReuseTemplate))
|
|
2037
|
+
]),
|
|
2038
|
+
_: 1
|
|
2039
|
+
}, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
|
|
2040
|
+
], 64);
|
|
1997
2041
|
};
|
|
1998
2042
|
}
|
|
1999
2043
|
});
|
|
@@ -4104,4 +4148,4 @@ function localRef(key, initial, options) {
|
|
|
4104
4148
|
});
|
|
4105
4149
|
}
|
|
4106
4150
|
|
|
4107
|
-
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$
|
|
4151
|
+
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 };
|