@tb-dev/vue 0.3.17 → 0.3.19
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,8 +1,10 @@
|
|
|
1
1
|
import { Option } from '@tb-dev/utils';
|
|
2
2
|
export interface CheckboxProps {
|
|
3
3
|
class?: string;
|
|
4
|
+
defaultValue?: boolean;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
label?: string;
|
|
6
7
|
labelClass?: string;
|
|
7
|
-
modelValue
|
|
8
|
+
modelValue?: Option<boolean>;
|
|
9
|
+
required?: boolean;
|
|
8
10
|
}
|
|
@@ -10,10 +10,10 @@ declare function __VLS_template(): {
|
|
|
10
10
|
attrs: Partial<{}>;
|
|
11
11
|
slots: Readonly<{
|
|
12
12
|
default: () => VNode;
|
|
13
|
-
trigger
|
|
13
|
+
trigger: () => VNode;
|
|
14
14
|
}> & {
|
|
15
15
|
default: () => VNode;
|
|
16
|
-
trigger
|
|
16
|
+
trigger: () => VNode;
|
|
17
17
|
};
|
|
18
18
|
refs: {
|
|
19
19
|
contentEl: ({
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { unwrap, isNil, toPixel } from '@tb-dev/utils';
|
|
6
6
|
import { Primitive, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, Label, useForwardPropsEmits, CheckboxRoot, CheckboxIndicator, ComboboxRoot, useForwardProps, ComboboxAnchor, ComboboxEmpty, ComboboxGroup, ComboboxLabel, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxContent, ComboboxSeparator, ComboboxViewport, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, 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, MenubarRoot, MenubarCheckboxItem, MenubarItemIndicator, MenubarPortal, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, PaginationRoot, PaginationList, PaginationEllipsis, PaginationFirst, PaginationListItem, PaginationLast, PaginationNext, PaginationPrev, PopoverRoot, 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, SwitchRoot, SwitchThumb, TabsRoot, TabsContent, TabsList, TabsTrigger, TagsInputRoot, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Toggle } from 'reka-ui';
|
|
7
|
-
export { ComboboxCancel, ComboboxTrigger, DropdownMenuPortal } from 'reka-ui';
|
|
7
|
+
export { ComboboxCancel, ComboboxTrigger, DropdownMenuPortal, PaginationList, PaginationListItem } from 'reka-ui';
|
|
8
8
|
import { RouterLink } from 'vue-router';
|
|
9
9
|
import { createReusableTemplate, reactiveOmit, useVModel, onClickOutside, useMediaQuery, useEventListener, computedAsync, useAsyncState, useWindowSize, useElementSize as useElementSize$1, tryOnScopeDispose, onKeyStroke, useLocalStorage } from '@vueuse/core';
|
|
10
10
|
import { Check, SearchIcon, Circle, ChevronRight, X, Minus, Plus, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, CircleIcon, ChevronDown, ChevronUp, PanelLeft } from 'lucide-vue-next';
|
|
@@ -653,10 +653,12 @@ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
|
|
|
653
653
|
__name: "Checkbox",
|
|
654
654
|
props: {
|
|
655
655
|
class: {},
|
|
656
|
+
defaultValue: { type: Boolean },
|
|
656
657
|
disabled: { type: Boolean },
|
|
657
658
|
label: {},
|
|
658
659
|
labelClass: {},
|
|
659
|
-
modelValue: {}
|
|
660
|
+
modelValue: {},
|
|
661
|
+
required: { type: Boolean }
|
|
660
662
|
},
|
|
661
663
|
emits: ["update:modelValue"],
|
|
662
664
|
setup(__props, { emit: __emit }) {
|
|
@@ -674,9 +676,11 @@ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
|
|
|
674
676
|
createVNode(unref(_sfc_main$2D), {
|
|
675
677
|
modelValue: value.value,
|
|
676
678
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
679
|
+
"default-value": _ctx.defaultValue,
|
|
677
680
|
disabled: _ctx.disabled,
|
|
681
|
+
required: _ctx.required,
|
|
678
682
|
class: normalizeClass(props.class)
|
|
679
|
-
}, null, 8, ["modelValue", "disabled", "class"])
|
|
683
|
+
}, null, 8, ["modelValue", "default-value", "disabled", "required", "class"])
|
|
680
684
|
]),
|
|
681
685
|
_: 1
|
|
682
686
|
}),
|