@baybreezy/docd 0.1.9 → 0.1.11
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/app/assets/css/shadcn.css +612 -0
- package/app/assets/css/tailwind.css +1 -1
- package/app/components/Ui/Avatar/Avatar.vue +7 -19
- package/app/components/Ui/Avatar/Badge.vue +1 -1
- package/app/components/Ui/Avatar/Fallback.vue +2 -2
- package/app/components/Ui/Avatar/Group.vue +1 -1
- package/app/components/Ui/Avatar/GroupCount.vue +1 -1
- package/app/components/Ui/Avatar/Image.vue +2 -2
- package/app/components/Ui/Badge.vue +6 -6
- package/app/components/Ui/BadgeGroup.vue +6 -6
- package/app/components/Ui/BgPattern/Grid.vue +3 -2
- package/app/components/Ui/BorderBeam.vue +10 -30
- package/app/components/Ui/Breadcrumbs.vue +5 -10
- package/app/components/Ui/Button.vue +23 -18
- package/app/components/Ui/ButtonGroup/ButtonGroup.vue +3 -4
- package/app/components/Ui/ButtonGroup/Separator.vue +2 -6
- package/app/components/Ui/ButtonGroup/Text.vue +1 -3
- package/app/components/Ui/Card/Action.vue +1 -1
- package/app/components/Ui/Card/Card.vue +4 -4
- package/app/components/Ui/Card/Content.vue +2 -2
- package/app/components/Ui/Card/Description.vue +2 -2
- package/app/components/Ui/Card/Footer.vue +1 -1
- package/app/components/Ui/Card/Header.vue +1 -1
- package/app/components/Ui/Card/Title.vue +2 -2
- package/app/components/Ui/Collapsible/Content.vue +1 -1
- package/app/components/Ui/Command/Command.vue +4 -18
- package/app/components/Ui/Command/Dialog.vue +2 -6
- package/app/components/Ui/Command/Footer.vue +1 -1
- package/app/components/Ui/Command/Group.vue +1 -1
- package/app/components/Ui/Command/Input.vue +1 -1
- package/app/components/Ui/Command/Item.vue +5 -5
- package/app/components/Ui/Command/List.vue +1 -1
- package/app/components/Ui/Command/Separator.vue +1 -1
- package/app/components/Ui/Command/Shortcut.vue +2 -2
- package/app/components/Ui/Container.vue +2 -2
- package/app/components/Ui/ContextMenu/Arrow.vue +2 -2
- package/app/components/Ui/ContextMenu/CheckboxItem.vue +3 -3
- package/app/components/Ui/ContextMenu/Content.vue +2 -2
- package/app/components/Ui/ContextMenu/Item.vue +6 -8
- package/app/components/Ui/ContextMenu/ItemIndicator.vue +1 -1
- package/app/components/Ui/ContextMenu/Label.vue +3 -3
- package/app/components/Ui/ContextMenu/RadioItem.vue +3 -3
- package/app/components/Ui/ContextMenu/Separator.vue +1 -1
- package/app/components/Ui/ContextMenu/Shortcut.vue +1 -3
- package/app/components/Ui/ContextMenu/SubContent.vue +2 -2
- package/app/components/Ui/ContextMenu/SubTrigger.vue +4 -4
- package/app/components/Ui/Dialog/Content.vue +7 -7
- package/app/components/Ui/Dialog/Description.vue +2 -2
- package/app/components/Ui/Dialog/Footer.vue +1 -1
- package/app/components/Ui/Dialog/Header.vue +1 -1
- package/app/components/Ui/Dialog/Overlay.vue +1 -1
- package/app/components/Ui/Dialog/Title.vue +2 -2
- package/app/components/Ui/Divider.vue +8 -14
- package/app/components/Ui/Drawer/Description.vue +2 -6
- package/app/components/Ui/Drawer/Footer.vue +1 -3
- package/app/components/Ui/Drawer/Header.vue +1 -3
- package/app/components/Ui/Drawer/Title.vue +2 -6
- package/app/components/Ui/DropdownMenu/Arrow.vue +2 -2
- package/app/components/Ui/DropdownMenu/CheckboxItem.vue +3 -3
- package/app/components/Ui/DropdownMenu/Content.vue +2 -2
- package/app/components/Ui/DropdownMenu/Item.vue +6 -6
- package/app/components/Ui/DropdownMenu/ItemIndicator.vue +2 -2
- package/app/components/Ui/DropdownMenu/Label.vue +3 -3
- package/app/components/Ui/DropdownMenu/RadioItem.vue +3 -3
- package/app/components/Ui/DropdownMenu/Separator.vue +1 -1
- package/app/components/Ui/DropdownMenu/Shortcut.vue +1 -1
- package/app/components/Ui/DropdownMenu/SubContent.vue +3 -3
- package/app/components/Ui/DropdownMenu/SubTrigger.vue +5 -5
- package/app/components/Ui/FancyIcon.vue +5 -15
- package/app/components/Ui/GradientDivider.vue +16 -3
- package/app/components/Ui/IframeLazy.vue +10 -15
- package/app/components/Ui/Input.vue +12 -11
- package/app/components/Ui/InputGroup/Addon.vue +2 -3
- package/app/components/Ui/InputGroup/Button.vue +1 -0
- package/app/components/Ui/InputGroup/InputGroup.vue +1 -3
- package/app/components/Ui/InputGroup/Text.vue +1 -3
- package/app/components/Ui/Kbd/Group.vue +1 -3
- package/app/components/Ui/Kbd/Kbd.vue +7 -5
- package/app/components/Ui/Label.vue +2 -4
- package/app/components/Ui/ScrollArea/ScrollArea.vue +47 -4
- package/app/components/Ui/ScrollArea/Scrollbar.vue +1 -1
- package/app/components/Ui/ScrollArea/Thumb.vue +1 -1
- package/app/components/Ui/ScrollArea/Viewport.vue +1 -1
- package/app/components/Ui/Scrollspy.vue +1 -3
- package/app/components/Ui/Separator.vue +1 -3
- package/app/components/Ui/Skeleton.vue +2 -2
- package/app/components/Ui/Tabs/Content.vue +1 -1
- package/app/components/Ui/Tabs/Indicator.vue +1 -1
- package/app/components/Ui/Tabs/List.vue +1 -1
- package/app/components/Ui/Tabs/Trigger.vue +2 -2
- package/app/components/Ui/Textarea.vue +10 -10
- package/app/components/Ui/Tooltip/Arrow.vue +1 -1
- package/package.json +9 -9
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
|
|
18
18
|
const props = defineProps<
|
|
19
19
|
ContextMenuLabelProps & {
|
|
20
|
-
/**Custom class(es) to add to the element */
|
|
20
|
+
/** Custom class(es) to add to the element. */
|
|
21
21
|
class?: HTMLAttributes["class"];
|
|
22
|
-
/** Wether an indentation should be added to the item or not */
|
|
22
|
+
/** Wether an indentation should be added to the item or not. */
|
|
23
23
|
inset?: boolean;
|
|
24
|
-
/** The label for the item */
|
|
24
|
+
/** The label for the item. */
|
|
25
25
|
label?: string;
|
|
26
26
|
}
|
|
27
27
|
>();
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
|
|
23
23
|
const props = defineProps<
|
|
24
24
|
ContextMenuRadioItemProps & {
|
|
25
|
-
/**Custom class(es) to add to the element */
|
|
25
|
+
/** Custom class(es) to add to the element. */
|
|
26
26
|
class?: HTMLAttributes["class"];
|
|
27
|
-
/**The icon to display */
|
|
27
|
+
/** The icon to display. */
|
|
28
28
|
icon?: string;
|
|
29
|
-
/**The title for the item */
|
|
29
|
+
/** The title for the item. */
|
|
30
30
|
title?: string;
|
|
31
31
|
}
|
|
32
32
|
>();
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
const props = withDefaults(
|
|
27
27
|
defineProps<
|
|
28
28
|
ContextMenuSubContentProps & {
|
|
29
|
-
/**Custom class(es) to add to the element */
|
|
29
|
+
/** Custom class(es) to add to the element. */
|
|
30
30
|
class?: HTMLAttributes["class"];
|
|
31
|
-
/** Whether to render the content with a translucent surface */
|
|
31
|
+
/** Whether to render the content with a translucent surface. */
|
|
32
32
|
translucent?: boolean;
|
|
33
33
|
}
|
|
34
34
|
>(),
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
|
|
21
21
|
const props = defineProps<
|
|
22
22
|
ContextMenuSubTriggerProps & {
|
|
23
|
-
/**Custom class(es) to add to the element */
|
|
23
|
+
/** Custom class(es) to add to the element. */
|
|
24
24
|
class?: HTMLAttributes["class"];
|
|
25
|
-
/** Wether an indentation should be added to the item or not */
|
|
25
|
+
/** Wether an indentation should be added to the item or not. */
|
|
26
26
|
inset?: boolean;
|
|
27
|
-
/** The icon to display */
|
|
27
|
+
/** The icon to display. */
|
|
28
28
|
icon?: string;
|
|
29
|
-
/** The title for the item */
|
|
29
|
+
/** The title for the item. */
|
|
30
30
|
title?: string;
|
|
31
31
|
}
|
|
32
32
|
>();
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
defineOptions({ inheritAttrs: false });
|
|
47
47
|
const props = defineProps<
|
|
48
48
|
DialogContentProps & {
|
|
49
|
-
/** Icon to display in the close button */
|
|
49
|
+
/** Icon to display in the close button. */
|
|
50
50
|
icon?: string;
|
|
51
|
-
/** Title text */
|
|
51
|
+
/** Title text. */
|
|
52
52
|
title?: string;
|
|
53
|
-
/** Description text */
|
|
53
|
+
/** Description text. */
|
|
54
54
|
description?: string;
|
|
55
|
-
/** Custom class(es) to add to the parent */
|
|
55
|
+
/** Custom class(es) to add to the parent. */
|
|
56
56
|
class?: HTMLAttributes["class"];
|
|
57
|
-
/** Whether to hide the close button */
|
|
57
|
+
/** Whether to hide the close button. */
|
|
58
58
|
hideClose?: boolean;
|
|
59
|
-
/** Where to render the dialog */
|
|
59
|
+
/** Where to render the dialog. */
|
|
60
60
|
to?: string | HTMLElement;
|
|
61
|
-
/** Whether to render the content with a translucent surface */
|
|
61
|
+
/** Whether to render the content with a translucent surface. */
|
|
62
62
|
translucent?: boolean;
|
|
63
63
|
}
|
|
64
64
|
>();
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
const props = defineProps<
|
|
18
18
|
DialogDescriptionProps & {
|
|
19
|
-
/** Custom class(es) to add to the parent */
|
|
19
|
+
/** Custom class(es) to add to the parent. */
|
|
20
20
|
class?: HTMLAttributes["class"];
|
|
21
|
-
/** The description text */
|
|
21
|
+
/** The description text. */
|
|
22
22
|
description?: string;
|
|
23
23
|
}
|
|
24
24
|
>();
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
const props = defineProps<
|
|
18
18
|
DialogTitleProps & {
|
|
19
|
-
/** Custom class(es) to add to the parent */
|
|
19
|
+
/** Custom class(es) to add to the parent. */
|
|
20
20
|
class?: HTMLAttributes["class"];
|
|
21
|
-
/** The title text */
|
|
21
|
+
/** The title text. */
|
|
22
22
|
title?: string;
|
|
23
23
|
}
|
|
24
24
|
>();
|
|
@@ -31,31 +31,25 @@
|
|
|
31
31
|
import type { HTMLAttributes } from "vue";
|
|
32
32
|
|
|
33
33
|
const props = defineProps<{
|
|
34
|
-
/**
|
|
35
|
-
* Custom class for the divider
|
|
36
|
-
*/
|
|
34
|
+
/** Custom class for the divider. */
|
|
37
35
|
class?: HTMLAttributes["class"];
|
|
38
36
|
/**
|
|
39
|
-
* The type of the divider
|
|
37
|
+
* The type of the divider.
|
|
38
|
+
*
|
|
40
39
|
* @default "solid"
|
|
41
40
|
*/
|
|
42
41
|
type?: VariantProps<typeof style>["type"];
|
|
43
42
|
/**
|
|
44
|
-
* The orientation of the divider
|
|
43
|
+
* The orientation of the divider.
|
|
44
|
+
*
|
|
45
45
|
* @default "horizontal"
|
|
46
46
|
*/
|
|
47
47
|
orientation?: VariantProps<typeof style>["orientation"];
|
|
48
|
-
/**
|
|
49
|
-
* The icon to display in the divider
|
|
50
|
-
*/
|
|
48
|
+
/** The icon to display in the divider. */
|
|
51
49
|
icon?: string;
|
|
52
|
-
/**
|
|
53
|
-
* The label to display in the divider
|
|
54
|
-
*/
|
|
50
|
+
/** The label to display in the divider. */
|
|
55
51
|
label?: string;
|
|
56
|
-
/**
|
|
57
|
-
* The avatar to display in the divider
|
|
58
|
-
*/
|
|
52
|
+
/** The avatar to display in the divider. */
|
|
59
53
|
avatar?: string;
|
|
60
54
|
}>();
|
|
61
55
|
|
|
@@ -17,13 +17,9 @@
|
|
|
17
17
|
import type { HTMLAttributes } from "vue";
|
|
18
18
|
|
|
19
19
|
interface Props extends DrawerDescriptionProps {
|
|
20
|
-
/**
|
|
21
|
-
* Custom class(es) to add to the parent.
|
|
22
|
-
*/
|
|
20
|
+
/** Custom class(es) to add to the parent. */
|
|
23
21
|
class?: HTMLAttributes["class"];
|
|
24
|
-
/**
|
|
25
|
-
* The text content of the description.
|
|
26
|
-
*/
|
|
22
|
+
/** The text content of the description. */
|
|
27
23
|
text?: string;
|
|
28
24
|
}
|
|
29
25
|
|
|
@@ -18,13 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<
|
|
20
20
|
DrawerTitleProps & {
|
|
21
|
-
/**
|
|
22
|
-
* Custom class(es) to add to the parent.
|
|
23
|
-
*/
|
|
21
|
+
/** Custom class(es) to add to the parent. */
|
|
24
22
|
class?: HTMLAttributes["class"];
|
|
25
|
-
/**
|
|
26
|
-
* The text content of the title.
|
|
27
|
-
*/
|
|
23
|
+
/** The text content of the title. */
|
|
28
24
|
text?: string;
|
|
29
25
|
}
|
|
30
26
|
>();
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
const props = withDefaults(
|
|
21
21
|
defineProps<
|
|
22
22
|
DropdownMenuArrowProps & {
|
|
23
|
-
/** Custom class(es) to add to the parent */
|
|
23
|
+
/** Custom class(es) to add to the parent. */
|
|
24
24
|
class?: HTMLAttributes["class"];
|
|
25
|
-
/** Whether to render the arrow with a translucent surface */
|
|
25
|
+
/** Whether to render the arrow with a translucent surface. */
|
|
26
26
|
translucent?: boolean;
|
|
27
27
|
}
|
|
28
28
|
>(),
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
|
|
25
25
|
const props = defineProps<
|
|
26
26
|
DropdownMenuCheckboxItemProps & {
|
|
27
|
-
/** Custom class(es) to add to the parent */
|
|
27
|
+
/** Custom class(es) to add to the parent. */
|
|
28
28
|
class?: HTMLAttributes["class"];
|
|
29
|
-
/** The shortcut text to display */
|
|
29
|
+
/** The shortcut text to display. */
|
|
30
30
|
shortcut?: string;
|
|
31
|
-
/** The title text to display */
|
|
31
|
+
/** The title text to display. */
|
|
32
32
|
title?: string;
|
|
33
33
|
}
|
|
34
34
|
>();
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
const props = withDefaults(
|
|
27
27
|
defineProps<
|
|
28
28
|
DropdownMenuContentProps & {
|
|
29
|
-
/** Custom class(es) to add to the parent */
|
|
29
|
+
/** Custom class(es) to add to the parent. */
|
|
30
30
|
class?: HTMLAttributes["class"];
|
|
31
|
-
/** Whether to render the content with a translucent surface */
|
|
31
|
+
/** Whether to render the content with a translucent surface. */
|
|
32
32
|
translucent?: boolean;
|
|
33
33
|
}
|
|
34
34
|
>(),
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
|
|
29
29
|
const props = defineProps<
|
|
30
30
|
DropdownMenuItemProps & {
|
|
31
|
-
/** Custom class(es) to add to the parent */
|
|
31
|
+
/** Custom class(es) to add to the parent. */
|
|
32
32
|
class?: HTMLAttributes["class"];
|
|
33
|
-
/** Whether to inset the content */
|
|
33
|
+
/** Whether to inset the content. */
|
|
34
34
|
inset?: boolean;
|
|
35
|
-
/** The shortcut text to display */
|
|
35
|
+
/** The shortcut text to display. */
|
|
36
36
|
shortcut?: string;
|
|
37
|
-
/** The title text to display */
|
|
37
|
+
/** The title text to display. */
|
|
38
38
|
title?: string;
|
|
39
|
-
/** The icon to display */
|
|
39
|
+
/** The icon to display. */
|
|
40
40
|
icon?: string;
|
|
41
41
|
/**
|
|
42
42
|
* The variant of the item.
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
const styles = tv({
|
|
57
|
-
base: "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-
|
|
57
|
+
base: "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset=true]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",
|
|
58
58
|
variants: {
|
|
59
59
|
inset: {
|
|
60
60
|
true: "pl-8",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<
|
|
20
20
|
DropdownMenuItemIndicatorProps & {
|
|
21
|
-
/** The icon to display */
|
|
21
|
+
/** The icon to display. */
|
|
22
22
|
icon?: string;
|
|
23
|
-
/** Custom class(es) to add to the parent */
|
|
23
|
+
/** Custom class(es) to add to the parent. */
|
|
24
24
|
class?: HTMLAttributes["class"];
|
|
25
25
|
}
|
|
26
26
|
>();
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
const props = defineProps<
|
|
18
18
|
DropdownMenuLabelProps & {
|
|
19
|
-
/** Custom class(es) to add to the parent */
|
|
19
|
+
/** Custom class(es) to add to the parent. */
|
|
20
20
|
class?: HTMLAttributes["class"];
|
|
21
|
-
/** Whether to inset the content */
|
|
21
|
+
/** Whether to inset the content. */
|
|
22
22
|
inset?: boolean;
|
|
23
|
-
/** The label text to display */
|
|
23
|
+
/** The label text to display. */
|
|
24
24
|
label?: string;
|
|
25
25
|
}
|
|
26
26
|
>();
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
|
|
23
23
|
const props = defineProps<
|
|
24
24
|
DropdownMenuRadioItemProps & {
|
|
25
|
-
/** Custom class(es) to add to the parent */
|
|
25
|
+
/** Custom class(es) to add to the parent. */
|
|
26
26
|
class?: HTMLAttributes["class"];
|
|
27
|
-
/** The icon to display */
|
|
27
|
+
/** The icon to display. */
|
|
28
28
|
icon?: string;
|
|
29
|
-
/** The title text to display */
|
|
29
|
+
/** The title text to display. */
|
|
30
30
|
title?: string;
|
|
31
31
|
}
|
|
32
32
|
>();
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
const props = withDefaults(
|
|
26
26
|
defineProps<
|
|
27
27
|
DropdownMenuSubContentProps & {
|
|
28
|
-
/** Custom class(es) to add to the parent */
|
|
28
|
+
/** Custom class(es) to add to the parent. */
|
|
29
29
|
class?: HTMLAttributes["class"];
|
|
30
|
-
/** The element to render the portal into */
|
|
30
|
+
/** The element to render the portal into. */
|
|
31
31
|
to?: string | HTMLElement;
|
|
32
|
-
/** Whether to render the content with a translucent surface */
|
|
32
|
+
/** Whether to render the content with a translucent surface. */
|
|
33
33
|
translucent?: boolean;
|
|
34
34
|
}
|
|
35
35
|
>(),
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
|
|
24
24
|
const props = defineProps<
|
|
25
25
|
DropdownMenuSubTriggerProps & {
|
|
26
|
-
/**Custom class(es) to add to the element */
|
|
26
|
+
/** Custom class(es) to add to the element. */
|
|
27
27
|
class?: HTMLAttributes["class"];
|
|
28
|
-
/** Wether an indentation should be added to the item or not */
|
|
28
|
+
/** Wether an indentation should be added to the item or not. */
|
|
29
29
|
inset?: boolean;
|
|
30
|
-
/** The icon to display */
|
|
30
|
+
/** The icon to display. */
|
|
31
31
|
icon?: string;
|
|
32
|
-
/** The title for the item */
|
|
32
|
+
/** The title for the item. */
|
|
33
33
|
title?: string;
|
|
34
|
-
/** The trailing icon to display */
|
|
34
|
+
/** The trailing icon to display. */
|
|
35
35
|
trailingIcon?: string;
|
|
36
36
|
}
|
|
37
37
|
>();
|
|
@@ -15,25 +15,15 @@
|
|
|
15
15
|
|
|
16
16
|
const props = withDefaults(
|
|
17
17
|
defineProps<{
|
|
18
|
-
/**
|
|
19
|
-
* Custom class(es) to add to the icon container.
|
|
20
|
-
*/
|
|
18
|
+
/** Custom class(es) to add to the icon container. */
|
|
21
19
|
class?: HTMLAttributes["class"];
|
|
22
|
-
/**
|
|
23
|
-
* The icon to display.
|
|
24
|
-
*/
|
|
20
|
+
/** The icon to display. */
|
|
25
21
|
icon?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The color variant of the icon.
|
|
28
|
-
*/
|
|
22
|
+
/** The color variant of the icon. */
|
|
29
23
|
color?: VariantProps<typeof styles>["color"];
|
|
30
|
-
/**
|
|
31
|
-
* The theme variant of the icon.
|
|
32
|
-
*/
|
|
24
|
+
/** The theme variant of the icon. */
|
|
33
25
|
theme?: VariantProps<typeof styles>["theme"];
|
|
34
|
-
/**
|
|
35
|
-
* The size variant of the icon.
|
|
36
|
-
*/
|
|
26
|
+
/** The size variant of the icon. */
|
|
37
27
|
size?: VariantProps<typeof styles>["size"];
|
|
38
28
|
}>(),
|
|
39
29
|
{
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Separator
|
|
3
3
|
v-bind="forwarded"
|
|
4
|
-
:class="
|
|
4
|
+
:class="
|
|
5
|
+
styles({ orientation: props.orientation, class: normalizeClass(props.class) || undefined })
|
|
6
|
+
"
|
|
5
7
|
/>
|
|
6
8
|
</template>
|
|
7
9
|
|
|
@@ -13,7 +15,7 @@
|
|
|
13
15
|
|
|
14
16
|
const props = defineProps<
|
|
15
17
|
SeparatorProps & {
|
|
16
|
-
/** Custom class(es) to add to parent element */
|
|
18
|
+
/** Custom class(es) to add to parent element. */
|
|
17
19
|
class?: HTMLAttributes["class"];
|
|
18
20
|
}
|
|
19
21
|
>();
|
|
@@ -21,6 +23,17 @@
|
|
|
21
23
|
const forwarded = reactiveOmit(props, "class");
|
|
22
24
|
|
|
23
25
|
const styles = tv({
|
|
24
|
-
base: "
|
|
26
|
+
base: "",
|
|
27
|
+
variants: {
|
|
28
|
+
orientation: {
|
|
29
|
+
horizontal:
|
|
30
|
+
"h-px w-full border-t-0 bg-[linear-gradient(90deg,--alpha(var(--input)/10%),var(--input),--alpha(var(--input)/10%))]",
|
|
31
|
+
vertical:
|
|
32
|
+
"h-full min-h-4 w-px border-l-0 bg-[linear-gradient(180deg,--alpha(var(--input)/10%),var(--input),--alpha(var(--input)/10%))]",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
orientation: "horizontal",
|
|
37
|
+
},
|
|
25
38
|
});
|
|
26
39
|
</script>
|
|
@@ -24,20 +24,14 @@
|
|
|
24
24
|
defineEmits<{ load: [event: Event] }>();
|
|
25
25
|
|
|
26
26
|
type IFrameLazyProps = {
|
|
27
|
-
/**
|
|
28
|
-
* The URL of the page to embed in the iframe.
|
|
29
|
-
*/
|
|
27
|
+
/** The URL of the page to embed in the iframe. */
|
|
30
28
|
src?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Additional classes to apply to the wrapper element.
|
|
33
|
-
*/
|
|
29
|
+
/** Additional classes to apply to the wrapper element. */
|
|
34
30
|
class?: HTMLAttributes["class"];
|
|
35
|
-
/**
|
|
36
|
-
* Additional classes to apply to the iframe element.
|
|
37
|
-
*/
|
|
31
|
+
/** Additional classes to apply to the iframe element. */
|
|
38
32
|
iframeClass?: HTMLAttributes["class"];
|
|
39
33
|
/**
|
|
40
|
-
* Indicates when the browser should load the iframe
|
|
34
|
+
* Indicates when the browser should load the iframe.
|
|
41
35
|
*
|
|
42
36
|
* - `lazy`: Load the iframe when it is about to come into view.
|
|
43
37
|
* - `eager`: Load the iframe immediately.
|
|
@@ -52,19 +46,20 @@
|
|
|
52
46
|
*/
|
|
53
47
|
placeholder?: boolean;
|
|
54
48
|
/**
|
|
55
|
-
* A string which specifies a set of offsets to add to the root's bounding box when calculating
|
|
49
|
+
* A string which specifies a set of offsets to add to the root's bounding box when calculating
|
|
50
|
+
* intersections.
|
|
56
51
|
*
|
|
57
52
|
* @default "150px"
|
|
58
53
|
*/
|
|
59
54
|
rootMargin?: string;
|
|
60
55
|
/**
|
|
61
|
-
* Either a single number or an array of numbers between 0.0 and 1.0, specifying a ratio of
|
|
56
|
+
* Either a single number or an array of numbers between 0.0 and 1.0, specifying a ratio of
|
|
57
|
+
* intersection area to total bounding box area for the observed target.
|
|
58
|
+
*
|
|
62
59
|
* @default 0
|
|
63
60
|
*/
|
|
64
61
|
threshold?: number | number[];
|
|
65
|
-
/**
|
|
66
|
-
* Disable scrolling within the iframe.
|
|
67
|
-
*/
|
|
62
|
+
/** Disable scrolling within the iframe. */
|
|
68
63
|
disableScroll?: boolean;
|
|
69
64
|
};
|
|
70
65
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- eslint-disable vue/html-self-closing -->
|
|
1
2
|
<template>
|
|
2
3
|
<input
|
|
3
4
|
v-bind="props"
|
|
@@ -14,27 +15,27 @@
|
|
|
14
15
|
import type { HTMLAttributes, InputHTMLAttributes } from "vue";
|
|
15
16
|
|
|
16
17
|
export type InputProps = {
|
|
17
|
-
/** Additional classes to add to the input */
|
|
18
|
+
/** Additional classes to add to the input. */
|
|
18
19
|
class?: HTMLAttributes["class"];
|
|
19
|
-
/** The id of the input */
|
|
20
|
+
/** The id of the input. */
|
|
20
21
|
id?: string;
|
|
21
|
-
/** The name of the input */
|
|
22
|
+
/** The name of the input. */
|
|
22
23
|
name?: string;
|
|
23
|
-
/** The placeholder of the input */
|
|
24
|
+
/** The placeholder of the input. */
|
|
24
25
|
placeholder?: string;
|
|
25
|
-
/** Whether the input is disabled */
|
|
26
|
+
/** Whether the input is disabled. */
|
|
26
27
|
disabled?: boolean;
|
|
27
|
-
/** Whether the input is required */
|
|
28
|
+
/** Whether the input is required. */
|
|
28
29
|
required?: boolean;
|
|
29
|
-
/** The type of the input */
|
|
30
|
+
/** The type of the input. */
|
|
30
31
|
type?: InputHTMLAttributes["type"];
|
|
31
|
-
/** The value of the input */
|
|
32
|
+
/** The value of the input. */
|
|
32
33
|
modelValue?: any;
|
|
33
|
-
/** The maximum length of the input */
|
|
34
|
+
/** The maximum length of the input. */
|
|
34
35
|
maxlength?: number;
|
|
35
|
-
/** The `RegExp` pattern of the input */
|
|
36
|
+
/** The `RegExp` pattern of the input. */
|
|
36
37
|
pattern?: string;
|
|
37
|
-
/** When `true`, the input will be focused when mounted */
|
|
38
|
+
/** When `true`, the input will be focused when mounted. */
|
|
38
39
|
autofocus?: boolean;
|
|
39
40
|
};
|
|
40
41
|
</script>
|
|
@@ -39,12 +39,11 @@
|
|
|
39
39
|
export type InputGroupAddonVariants = PrimitiveProps & {
|
|
40
40
|
/**
|
|
41
41
|
* Alignment of the addon within the input group.
|
|
42
|
+
*
|
|
42
43
|
* @default "inline-start"
|
|
43
44
|
*/
|
|
44
45
|
align?: VariantProps<typeof inputGroupAddonVariants>["align"];
|
|
45
|
-
/**
|
|
46
|
-
* Additional classes to apply to the input group addon container.
|
|
47
|
-
*/
|
|
46
|
+
/** Additional classes to apply to the input group addon container. */
|
|
48
47
|
class?: HTMLAttributes["class"];
|
|
49
48
|
};
|
|
50
49
|
</script>
|
|
@@ -35,9 +35,7 @@
|
|
|
35
35
|
<script lang="ts" setup>
|
|
36
36
|
const props = defineProps<
|
|
37
37
|
PrimitiveProps & {
|
|
38
|
-
/**
|
|
39
|
-
* Additional classes to apply to the input group container.
|
|
40
|
-
*/
|
|
38
|
+
/** Additional classes to apply to the input group container. */
|
|
41
39
|
class?: HTMLAttributes["class"];
|
|
42
40
|
}
|
|
43
41
|
>();
|