@bitrix24/b24ui-nuxt 0.6.0 → 0.6.2
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/.nuxt/b24ui/advice.ts +10 -2
- package/.nuxt/b24ui/alert.ts +10 -2
- package/.nuxt/b24ui/avatar-group.ts +10 -2
- package/.nuxt/b24ui/avatar.ts +10 -2
- package/.nuxt/b24ui/badge.ts +10 -2
- package/.nuxt/b24ui/button-group.ts +10 -2
- package/.nuxt/b24ui/button.ts +16 -6
- package/.nuxt/b24ui/calendar.ts +10 -2
- package/.nuxt/b24ui/checkbox.ts +10 -2
- package/.nuxt/b24ui/chip.ts +10 -2
- package/.nuxt/b24ui/collapsible.ts +10 -2
- package/.nuxt/b24ui/container.ts +10 -2
- package/.nuxt/b24ui/countdown.ts +10 -2
- package/.nuxt/b24ui/description-list.ts +10 -2
- package/.nuxt/b24ui/dropdown-menu.ts +10 -2
- package/.nuxt/b24ui/form-field.ts +10 -2
- package/.nuxt/b24ui/form.ts +10 -2
- package/.nuxt/b24ui/input-menu.ts +10 -2
- package/.nuxt/b24ui/input-number.ts +10 -2
- package/.nuxt/b24ui/input.ts +10 -2
- package/.nuxt/b24ui/kbd.ts +10 -2
- package/.nuxt/b24ui/link.ts +10 -2
- package/.nuxt/b24ui/modal.ts +10 -2
- package/.nuxt/b24ui/navbar-divider.ts +10 -2
- package/.nuxt/b24ui/navbar-section.ts +10 -2
- package/.nuxt/b24ui/navbar-spacer.ts +10 -2
- package/.nuxt/b24ui/navbar.ts +10 -2
- package/.nuxt/b24ui/navigation-menu.ts +10 -2
- package/.nuxt/b24ui/popover.ts +10 -2
- package/.nuxt/b24ui/progress.ts +10 -2
- package/.nuxt/b24ui/radio-group.ts +10 -2
- package/.nuxt/b24ui/range.ts +10 -2
- package/.nuxt/b24ui/select-menu.ts +10 -2
- package/.nuxt/b24ui/select.ts +10 -2
- package/.nuxt/b24ui/separator.ts +10 -2
- package/.nuxt/b24ui/sidebar-body.ts +10 -2
- package/.nuxt/b24ui/sidebar-footer.ts +10 -2
- package/.nuxt/b24ui/sidebar-header.ts +10 -2
- package/.nuxt/b24ui/sidebar-heading.ts +10 -2
- package/.nuxt/b24ui/sidebar-layout.ts +10 -2
- package/.nuxt/b24ui/sidebar-section.ts +10 -2
- package/.nuxt/b24ui/sidebar-spacer.ts +10 -2
- package/.nuxt/b24ui/sidebar.ts +10 -2
- package/.nuxt/b24ui/skeleton.ts +10 -2
- package/.nuxt/b24ui/slideover.ts +10 -2
- package/.nuxt/b24ui/stacked-layout.ts +10 -2
- package/.nuxt/b24ui/switch.ts +10 -2
- package/.nuxt/b24ui/tabs.ts +10 -2
- package/.nuxt/b24ui/textarea.ts +10 -2
- package/.nuxt/b24ui/toast.ts +10 -2
- package/.nuxt/b24ui/toaster.ts +10 -2
- package/.nuxt/b24ui/tooltip.ts +10 -2
- package/cli/templates.mjs +19 -15
- package/dist/meta.d.mts +1807 -3391
- package/dist/meta.mjs +1807 -3391
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Advice.vue +5 -6
- package/dist/runtime/components/Advice.vue.d.ts +7 -121
- package/dist/runtime/components/Alert.vue +5 -6
- package/dist/runtime/components/Alert.vue.d.ts +12 -379
- package/dist/runtime/components/Avatar.vue +5 -6
- package/dist/runtime/components/Avatar.vue.d.ts +6 -225
- package/dist/runtime/components/AvatarGroup.vue +5 -6
- package/dist/runtime/components/AvatarGroup.vue.d.ts +6 -170
- package/dist/runtime/components/Badge.vue +5 -6
- package/dist/runtime/components/Badge.vue.d.ts +8 -447
- package/dist/runtime/components/Button.vue +16 -14
- package/dist/runtime/components/Button.vue.d.ts +10 -535
- package/dist/runtime/components/ButtonGroup.vue +11 -6
- package/dist/runtime/components/ButtonGroup.vue.d.ts +8 -61
- package/dist/runtime/components/Calendar.vue +4 -5
- package/dist/runtime/components/Calendar.vue.d.ts +7 -337
- package/dist/runtime/components/Checkbox.vue +5 -6
- package/dist/runtime/components/Checkbox.vue.d.ts +7 -306
- package/dist/runtime/components/Chip.vue +5 -6
- package/dist/runtime/components/Chip.vue.d.ts +8 -202
- package/dist/runtime/components/Collapsible.vue +6 -6
- package/dist/runtime/components/Collapsible.vue.d.ts +5 -73
- package/dist/runtime/components/Container.vue +6 -5
- package/dist/runtime/components/Countdown.vue +6 -7
- package/dist/runtime/components/Countdown.vue.d.ts +7 -241
- package/dist/runtime/components/DescriptionList.vue +5 -6
- package/dist/runtime/components/DescriptionList.vue.d.ts +8 -278
- package/dist/runtime/components/DropdownMenu.vue +4 -5
- package/dist/runtime/components/DropdownMenu.vue.d.ts +9 -409
- package/dist/runtime/components/DropdownMenuContent.vue +1 -3
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +9 -186
- package/dist/runtime/components/Form.vue +8 -6
- package/dist/runtime/components/Form.vue.d.ts +6 -0
- package/dist/runtime/components/FormField.vue +5 -6
- package/dist/runtime/components/FormField.vue.d.ts +6 -215
- package/dist/runtime/components/Input.vue +4 -5
- package/dist/runtime/components/Input.vue.d.ts +8 -628
- package/dist/runtime/components/InputMenu.vue +4 -5
- package/dist/runtime/components/InputMenu.vue.d.ts +19 -1185
- package/dist/runtime/components/InputNumber.vue +4 -5
- package/dist/runtime/components/InputNumber.vue.d.ts +10 -430
- package/dist/runtime/components/Kbd.vue +6 -5
- package/dist/runtime/components/Kbd.vue.d.ts +6 -60
- package/dist/runtime/components/Link.vue +12 -11
- package/dist/runtime/components/Modal.vue +5 -6
- package/dist/runtime/components/Modal.vue.d.ts +13 -216
- package/dist/runtime/components/Navbar.vue +6 -6
- package/dist/runtime/components/Navbar.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarDivider.vue +6 -6
- package/dist/runtime/components/NavbarDivider.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarSection.vue +6 -6
- package/dist/runtime/components/NavbarSection.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarSpacer.vue +6 -6
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +5 -60
- package/dist/runtime/components/NavigationMenu.vue +4 -5
- package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -676
- package/dist/runtime/components/Popover.vue +5 -6
- package/dist/runtime/components/Popover.vue.d.ts +7 -75
- package/dist/runtime/components/Progress.vue +5 -6
- package/dist/runtime/components/Progress.vue.d.ts +11 -500
- package/dist/runtime/components/RadioGroup.vue +5 -6
- package/dist/runtime/components/RadioGroup.vue.d.ts +9 -644
- package/dist/runtime/components/Range.vue +5 -6
- package/dist/runtime/components/Range.vue.d.ts +7 -351
- package/dist/runtime/components/Select.vue +4 -5
- package/dist/runtime/components/Select.vue.d.ts +15 -1046
- package/dist/runtime/components/SelectMenu.vue +4 -5
- package/dist/runtime/components/SelectMenu.vue.d.ts +17 -1098
- package/dist/runtime/components/Separator.vue +5 -6
- package/dist/runtime/components/Separator.vue.d.ts +9 -332
- package/dist/runtime/components/Sidebar.vue +6 -6
- package/dist/runtime/components/Sidebar.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarBody.vue +5 -6
- package/dist/runtime/components/SidebarBody.vue.d.ts +5 -42
- package/dist/runtime/components/SidebarFooter.vue +6 -6
- package/dist/runtime/components/SidebarFooter.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarHeader.vue +6 -6
- package/dist/runtime/components/SidebarHeader.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarHeading.vue +6 -6
- package/dist/runtime/components/SidebarHeading.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarLayout.vue +6 -7
- package/dist/runtime/components/SidebarLayout.vue.d.ts +5 -162
- package/dist/runtime/components/SidebarSection.vue +6 -6
- package/dist/runtime/components/SidebarSection.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarSpacer.vue +6 -6
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +5 -60
- package/dist/runtime/components/Skeleton.vue +6 -5
- package/dist/runtime/components/Slideover.vue +5 -6
- package/dist/runtime/components/Slideover.vue.d.ts +15 -248
- package/dist/runtime/components/StackedLayout.vue +6 -7
- package/dist/runtime/components/StackedLayout.vue.d.ts +5 -132
- package/dist/runtime/components/Switch.vue +4 -5
- package/dist/runtime/components/Switch.vue.d.ts +7 -517
- package/dist/runtime/components/Tabs.vue +8 -5
- package/dist/runtime/components/Tabs.vue.d.ts +18 -367
- package/dist/runtime/components/Textarea.vue +4 -5
- package/dist/runtime/components/Textarea.vue.d.ts +7 -467
- package/dist/runtime/components/Toast.vue +5 -6
- package/dist/runtime/components/Toast.vue.d.ts +11 -354
- package/dist/runtime/components/Toaster.vue +6 -7
- package/dist/runtime/components/Toaster.vue.d.ts +7 -156
- package/dist/runtime/components/Tooltip.vue +5 -6
- package/dist/runtime/components/Tooltip.vue.d.ts +5 -126
- package/dist/runtime/components/content/TableWrapper.vue +5 -6
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +6 -160
- package/dist/runtime/inertia/components/Link.vue +153 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +97 -0
- package/dist/runtime/inertia/stubs.d.ts +45 -0
- package/dist/runtime/inertia/stubs.js +84 -0
- package/dist/runtime/prose/A.vue +10 -9
- package/dist/runtime/prose/A.vue.d.ts +8 -65
- package/dist/runtime/prose/Blockquote.vue +8 -9
- package/dist/runtime/prose/Blockquote.vue.d.ts +8 -65
- package/dist/runtime/prose/Code.vue +6 -6
- package/dist/runtime/prose/Code.vue.d.ts +9 -75
- package/dist/runtime/prose/Em.vue +10 -9
- package/dist/runtime/prose/Em.vue.d.ts +8 -65
- package/dist/runtime/prose/H1.vue +8 -9
- package/dist/runtime/prose/H1.vue.d.ts +8 -78
- package/dist/runtime/prose/H2.vue +8 -9
- package/dist/runtime/prose/H2.vue.d.ts +8 -104
- package/dist/runtime/prose/H3.vue +8 -9
- package/dist/runtime/prose/H3.vue.d.ts +8 -104
- package/dist/runtime/prose/H4.vue +8 -9
- package/dist/runtime/prose/H4.vue.d.ts +8 -104
- package/dist/runtime/prose/H5.vue +8 -9
- package/dist/runtime/prose/H5.vue.d.ts +8 -104
- package/dist/runtime/prose/H6.vue +8 -9
- package/dist/runtime/prose/H6.vue.d.ts +8 -104
- package/dist/runtime/prose/Hr.vue +7 -9
- package/dist/runtime/prose/Hr.vue.d.ts +7 -62
- package/dist/runtime/prose/Img.vue +7 -9
- package/dist/runtime/prose/Img.vue.d.ts +7 -65
- package/dist/runtime/prose/Li.vue +8 -9
- package/dist/runtime/prose/Li.vue.d.ts +8 -65
- package/dist/runtime/prose/Ol.vue +8 -9
- package/dist/runtime/prose/Ol.vue.d.ts +8 -65
- package/dist/runtime/prose/P.vue +8 -9
- package/dist/runtime/prose/P.vue.d.ts +8 -65
- package/dist/runtime/prose/Pre.vue +7 -6
- package/dist/runtime/prose/Pre.vue.d.ts +10 -80
- package/dist/runtime/prose/Strong.vue +8 -9
- package/dist/runtime/prose/Strong.vue.d.ts +8 -65
- package/dist/runtime/prose/Table.vue +8 -9
- package/dist/runtime/prose/Table.vue.d.ts +10 -80
- package/dist/runtime/prose/Tbody.vue +8 -9
- package/dist/runtime/prose/Tbody.vue.d.ts +8 -65
- package/dist/runtime/prose/Td.vue +8 -9
- package/dist/runtime/prose/Td.vue.d.ts +8 -65
- package/dist/runtime/prose/Th.vue +8 -9
- package/dist/runtime/prose/Th.vue.d.ts +8 -65
- package/dist/runtime/prose/Thead.vue +8 -9
- package/dist/runtime/prose/Thead.vue.d.ts +8 -65
- package/dist/runtime/prose/Tr.vue +8 -9
- package/dist/runtime/prose/Tr.vue.d.ts +8 -65
- package/dist/runtime/prose/Ul.vue +8 -9
- package/dist/runtime/prose/Ul.vue.d.ts +8 -65
- package/dist/runtime/types/form.d.ts +1 -0
- package/dist/runtime/types/utils.d.ts +47 -7
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Link.vue +13 -12
- package/dist/runtime/vue/stubs.d.ts +1 -1
- package/dist/shared/{b24ui-nuxt.BA6Y2FnC.mjs → b24ui-nuxt.wBs9vEU5.mjs} +27 -2
- package/dist/unplugin.d.mts +4 -0
- package/dist/unplugin.mjs +12 -4
- package/dist/vite.mjs +1 -1
- package/package.json +21 -15
|
@@ -1,130 +1,9 @@
|
|
|
1
1
|
import type { TooltipRootProps, TooltipRootEmits, TooltipContentProps, TooltipContentEmits, TooltipArrowProps } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/b24ui/tooltip';
|
|
2
4
|
import type { KbdProps } from '../types';
|
|
3
|
-
import type { EmitsToProps } from '../types/utils';
|
|
4
|
-
|
|
5
|
-
[key: string]: {
|
|
6
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
7
|
-
text?: import("tailwind-variants").ClassValue;
|
|
8
|
-
content?: import("tailwind-variants").ClassValue;
|
|
9
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
10
|
-
kbds?: import("tailwind-variants").ClassValue;
|
|
11
|
-
kbdsSize?: import("tailwind-variants").ClassValue;
|
|
12
|
-
kbdsDepth?: import("tailwind-variants").ClassValue;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
} | {
|
|
16
|
-
[x: string]: {
|
|
17
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
18
|
-
text?: import("tailwind-variants").ClassValue;
|
|
19
|
-
content?: import("tailwind-variants").ClassValue;
|
|
20
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
21
|
-
kbds?: import("tailwind-variants").ClassValue;
|
|
22
|
-
kbdsSize?: import("tailwind-variants").ClassValue;
|
|
23
|
-
kbdsDepth?: import("tailwind-variants").ClassValue;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
} | {
|
|
27
|
-
[x: string]: {
|
|
28
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
29
|
-
text?: import("tailwind-variants").ClassValue;
|
|
30
|
-
content?: import("tailwind-variants").ClassValue;
|
|
31
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
32
|
-
kbds?: import("tailwind-variants").ClassValue;
|
|
33
|
-
kbdsSize?: import("tailwind-variants").ClassValue;
|
|
34
|
-
kbdsDepth?: import("tailwind-variants").ClassValue;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
} | {}, {
|
|
38
|
-
content: string;
|
|
39
|
-
arrow: string;
|
|
40
|
-
text: string;
|
|
41
|
-
kbds: string;
|
|
42
|
-
kbdsSize: string;
|
|
43
|
-
kbdsDepth: string;
|
|
44
|
-
}, undefined, {
|
|
45
|
-
[key: string]: {
|
|
46
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
47
|
-
text?: import("tailwind-variants").ClassValue;
|
|
48
|
-
content?: import("tailwind-variants").ClassValue;
|
|
49
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
50
|
-
kbds?: import("tailwind-variants").ClassValue;
|
|
51
|
-
kbdsSize?: import("tailwind-variants").ClassValue;
|
|
52
|
-
kbdsDepth?: import("tailwind-variants").ClassValue;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
} | {
|
|
56
|
-
[x: string]: {
|
|
57
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
58
|
-
text?: import("tailwind-variants").ClassValue;
|
|
59
|
-
content?: import("tailwind-variants").ClassValue;
|
|
60
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
61
|
-
kbds?: import("tailwind-variants").ClassValue;
|
|
62
|
-
kbdsSize?: import("tailwind-variants").ClassValue;
|
|
63
|
-
kbdsDepth?: import("tailwind-variants").ClassValue;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
} | {}, {
|
|
67
|
-
content: string;
|
|
68
|
-
arrow: string;
|
|
69
|
-
text: string;
|
|
70
|
-
kbds: string;
|
|
71
|
-
kbdsSize: string;
|
|
72
|
-
kbdsDepth: string;
|
|
73
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
74
|
-
[key: string]: {
|
|
75
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
76
|
-
text?: import("tailwind-variants").ClassValue;
|
|
77
|
-
content?: import("tailwind-variants").ClassValue;
|
|
78
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
79
|
-
kbds?: import("tailwind-variants").ClassValue;
|
|
80
|
-
kbdsSize?: import("tailwind-variants").ClassValue;
|
|
81
|
-
kbdsDepth?: import("tailwind-variants").ClassValue;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
} | {
|
|
85
|
-
[x: string]: {
|
|
86
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
87
|
-
text?: import("tailwind-variants").ClassValue;
|
|
88
|
-
content?: import("tailwind-variants").ClassValue;
|
|
89
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
90
|
-
kbds?: import("tailwind-variants").ClassValue;
|
|
91
|
-
kbdsSize?: import("tailwind-variants").ClassValue;
|
|
92
|
-
kbdsDepth?: import("tailwind-variants").ClassValue;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
} | {}, {
|
|
96
|
-
content: string;
|
|
97
|
-
arrow: string;
|
|
98
|
-
text: string;
|
|
99
|
-
kbds: string;
|
|
100
|
-
kbdsSize: string;
|
|
101
|
-
kbdsDepth: string;
|
|
102
|
-
}, undefined, {
|
|
103
|
-
[key: string]: {
|
|
104
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
105
|
-
text?: import("tailwind-variants").ClassValue;
|
|
106
|
-
content?: import("tailwind-variants").ClassValue;
|
|
107
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
108
|
-
kbds?: import("tailwind-variants").ClassValue;
|
|
109
|
-
kbdsSize?: import("tailwind-variants").ClassValue;
|
|
110
|
-
kbdsDepth?: import("tailwind-variants").ClassValue;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
} | {}, {
|
|
114
|
-
content: string;
|
|
115
|
-
arrow: string;
|
|
116
|
-
text: string;
|
|
117
|
-
kbds: string;
|
|
118
|
-
kbdsSize: string;
|
|
119
|
-
kbdsDepth: string;
|
|
120
|
-
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
121
|
-
content: string;
|
|
122
|
-
arrow: string;
|
|
123
|
-
text: string;
|
|
124
|
-
kbds: string;
|
|
125
|
-
kbdsSize: string;
|
|
126
|
-
kbdsDepth: string;
|
|
127
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
5
|
+
import type { EmitsToProps, ComponentConfig } from '../types/utils';
|
|
6
|
+
type Tooltip = ComponentConfig<typeof theme, AppConfig, 'tooltip'>;
|
|
128
7
|
export interface TooltipProps extends TooltipRootProps {
|
|
129
8
|
/** The text content of the tooltip. */
|
|
130
9
|
text?: string;
|
|
@@ -146,7 +25,7 @@ export interface TooltipProps extends TooltipRootProps {
|
|
|
146
25
|
*/
|
|
147
26
|
portal?: boolean;
|
|
148
27
|
class?: any;
|
|
149
|
-
b24ui?:
|
|
28
|
+
b24ui?: Tooltip['slots'];
|
|
150
29
|
}
|
|
151
30
|
export interface TooltipEmits extends TooltipRootEmits {
|
|
152
31
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/content/table-wrapper";
|
|
4
|
-
import { tv } from "../../utils/tv";
|
|
5
|
-
const appConfigTableWrapper = _appConfig;
|
|
6
|
-
const tableWrapper = tv({ extend: tv(theme), ...appConfigTableWrapper.b24ui?.content?.tableWrapper || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { computed } from "vue";
|
|
11
7
|
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { tv } from "../../utils/tv";
|
|
12
10
|
defineOptions({ inheritAttrs: false });
|
|
13
11
|
const props = defineProps({
|
|
14
12
|
as: { type: null, required: false, default: "div" },
|
|
@@ -21,9 +19,10 @@ const props = defineProps({
|
|
|
21
19
|
bordered: { type: Boolean, required: false },
|
|
22
20
|
scrollbarThin: { type: Boolean, required: false, default: true },
|
|
23
21
|
class: { type: null, required: false },
|
|
24
|
-
b24ui: { type:
|
|
22
|
+
b24ui: { type: null, required: false }
|
|
25
23
|
});
|
|
26
|
-
const
|
|
24
|
+
const appConfig = useAppConfig();
|
|
25
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.content?.tableWrapper || {} })({
|
|
27
26
|
size: props.size,
|
|
28
27
|
rounded: Boolean(props.rounded),
|
|
29
28
|
zebra: Boolean(props.zebra),
|
|
@@ -1,161 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
sm: string;
|
|
6
|
-
md: string;
|
|
7
|
-
lg: string;
|
|
8
|
-
};
|
|
9
|
-
rounded: {
|
|
10
|
-
true: string;
|
|
11
|
-
false: string;
|
|
12
|
-
};
|
|
13
|
-
zebra: {
|
|
14
|
-
true: string;
|
|
15
|
-
};
|
|
16
|
-
pinRows: {
|
|
17
|
-
true: string;
|
|
18
|
-
};
|
|
19
|
-
pinCols: {
|
|
20
|
-
true: string;
|
|
21
|
-
};
|
|
22
|
-
rowHover: {
|
|
23
|
-
true: string;
|
|
24
|
-
};
|
|
25
|
-
bordered: {
|
|
26
|
-
true: string;
|
|
27
|
-
};
|
|
28
|
-
scrollbarThin: {
|
|
29
|
-
true: string;
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
base: string;
|
|
33
|
-
}, undefined, {
|
|
34
|
-
size: {
|
|
35
|
-
xs: string;
|
|
36
|
-
sm: string;
|
|
37
|
-
md: string;
|
|
38
|
-
lg: string;
|
|
39
|
-
};
|
|
40
|
-
rounded: {
|
|
41
|
-
true: string;
|
|
42
|
-
false: string;
|
|
43
|
-
};
|
|
44
|
-
zebra: {
|
|
45
|
-
true: string;
|
|
46
|
-
};
|
|
47
|
-
pinRows: {
|
|
48
|
-
true: string;
|
|
49
|
-
};
|
|
50
|
-
pinCols: {
|
|
51
|
-
true: string;
|
|
52
|
-
};
|
|
53
|
-
rowHover: {
|
|
54
|
-
true: string;
|
|
55
|
-
};
|
|
56
|
-
bordered: {
|
|
57
|
-
true: string;
|
|
58
|
-
};
|
|
59
|
-
scrollbarThin: {
|
|
60
|
-
true: string;
|
|
61
|
-
};
|
|
62
|
-
}, {
|
|
63
|
-
base: string;
|
|
64
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
65
|
-
size: {
|
|
66
|
-
xs: string;
|
|
67
|
-
sm: string;
|
|
68
|
-
md: string;
|
|
69
|
-
lg: string;
|
|
70
|
-
};
|
|
71
|
-
rounded: {
|
|
72
|
-
true: string;
|
|
73
|
-
false: string;
|
|
74
|
-
};
|
|
75
|
-
zebra: {
|
|
76
|
-
true: string;
|
|
77
|
-
};
|
|
78
|
-
pinRows: {
|
|
79
|
-
true: string;
|
|
80
|
-
};
|
|
81
|
-
pinCols: {
|
|
82
|
-
true: string;
|
|
83
|
-
};
|
|
84
|
-
rowHover: {
|
|
85
|
-
true: string;
|
|
86
|
-
};
|
|
87
|
-
bordered: {
|
|
88
|
-
true: string;
|
|
89
|
-
};
|
|
90
|
-
scrollbarThin: {
|
|
91
|
-
true: string;
|
|
92
|
-
};
|
|
93
|
-
}, {
|
|
94
|
-
base: string;
|
|
95
|
-
}, undefined, {
|
|
96
|
-
size: {
|
|
97
|
-
xs: string;
|
|
98
|
-
sm: string;
|
|
99
|
-
md: string;
|
|
100
|
-
lg: string;
|
|
101
|
-
};
|
|
102
|
-
rounded: {
|
|
103
|
-
true: string;
|
|
104
|
-
false: string;
|
|
105
|
-
};
|
|
106
|
-
zebra: {
|
|
107
|
-
true: string;
|
|
108
|
-
};
|
|
109
|
-
pinRows: {
|
|
110
|
-
true: string;
|
|
111
|
-
};
|
|
112
|
-
pinCols: {
|
|
113
|
-
true: string;
|
|
114
|
-
};
|
|
115
|
-
rowHover: {
|
|
116
|
-
true: string;
|
|
117
|
-
};
|
|
118
|
-
bordered: {
|
|
119
|
-
true: string;
|
|
120
|
-
};
|
|
121
|
-
scrollbarThin: {
|
|
122
|
-
true: string;
|
|
123
|
-
};
|
|
124
|
-
}, {
|
|
125
|
-
base: string;
|
|
126
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
127
|
-
size: {
|
|
128
|
-
xs: string;
|
|
129
|
-
sm: string;
|
|
130
|
-
md: string;
|
|
131
|
-
lg: string;
|
|
132
|
-
};
|
|
133
|
-
rounded: {
|
|
134
|
-
true: string;
|
|
135
|
-
false: string;
|
|
136
|
-
};
|
|
137
|
-
zebra: {
|
|
138
|
-
true: string;
|
|
139
|
-
};
|
|
140
|
-
pinRows: {
|
|
141
|
-
true: string;
|
|
142
|
-
};
|
|
143
|
-
pinCols: {
|
|
144
|
-
true: string;
|
|
145
|
-
};
|
|
146
|
-
rowHover: {
|
|
147
|
-
true: string;
|
|
148
|
-
};
|
|
149
|
-
bordered: {
|
|
150
|
-
true: string;
|
|
151
|
-
};
|
|
152
|
-
scrollbarThin: {
|
|
153
|
-
true: string;
|
|
154
|
-
};
|
|
155
|
-
}, {
|
|
156
|
-
base: string;
|
|
157
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
158
|
-
type TableWrapperVariants = VariantProps<typeof tableWrapper>;
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/b24ui/content/table-wrapper';
|
|
3
|
+
import type { ComponentConfig } from '../../types/utils';
|
|
4
|
+
type TableWrapper = ComponentConfig<typeof theme, AppConfig, 'tableWrapper', 'b24ui.content'>;
|
|
159
5
|
export interface TableWrapperProps {
|
|
160
6
|
/**
|
|
161
7
|
* The element or component this component should render as.
|
|
@@ -165,7 +11,7 @@ export interface TableWrapperProps {
|
|
|
165
11
|
/**
|
|
166
12
|
* @defaultValue 'md'
|
|
167
13
|
*/
|
|
168
|
-
size?:
|
|
14
|
+
size?: TableWrapper['variants']['size'];
|
|
169
15
|
/**
|
|
170
16
|
* @defaultValue false
|
|
171
17
|
*/
|
|
@@ -195,7 +41,7 @@ export interface TableWrapperProps {
|
|
|
195
41
|
*/
|
|
196
42
|
scrollbarThin?: boolean;
|
|
197
43
|
class?: any;
|
|
198
|
-
b24ui?:
|
|
44
|
+
b24ui?: TableWrapper['slots'];
|
|
199
45
|
}
|
|
200
46
|
export interface TableWrapperSlots {
|
|
201
47
|
default(props?: {}): any;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/b24ui/link";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { defu } from "defu";
|
|
8
|
+
import { useForwardProps } from "reka-ui";
|
|
9
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
10
|
+
import { usePage, Link as InertiaLink } from "@inertiajs/vue3";
|
|
11
|
+
import { hasProtocol } from "ufo";
|
|
12
|
+
import { useAppConfig } from "#imports";
|
|
13
|
+
import { tv } from "../../utils/tv";
|
|
14
|
+
import B24LinkBase from "./../../components/LinkBase.vue";
|
|
15
|
+
defineOptions({ inheritAttrs: false });
|
|
16
|
+
const props = defineProps({
|
|
17
|
+
as: { type: null, required: false, default: "button" },
|
|
18
|
+
type: { type: null, required: false, default: "button" },
|
|
19
|
+
disabled: { type: Boolean, required: false },
|
|
20
|
+
active: { type: Boolean, required: false, default: void 0 },
|
|
21
|
+
exact: { type: Boolean, required: false },
|
|
22
|
+
inactiveClass: { type: String, required: false, default: "" },
|
|
23
|
+
custom: { type: Boolean, required: false },
|
|
24
|
+
isAction: { type: Boolean, required: false, default: false },
|
|
25
|
+
raw: { type: Boolean, required: false },
|
|
26
|
+
class: { type: null, required: false },
|
|
27
|
+
activeClass: { type: String, required: false, default: "" },
|
|
28
|
+
to: { type: String, required: false },
|
|
29
|
+
href: { type: String, required: false },
|
|
30
|
+
external: { type: Boolean, required: false },
|
|
31
|
+
target: { type: [String, Object, null], required: false },
|
|
32
|
+
ariaCurrentValue: { type: String, required: false },
|
|
33
|
+
data: { type: Object, required: false },
|
|
34
|
+
method: { type: String, required: false },
|
|
35
|
+
headers: { type: Object, required: false },
|
|
36
|
+
onClick: { type: Function, required: false },
|
|
37
|
+
preserveScroll: { type: [Boolean, String, Function], required: false },
|
|
38
|
+
preserveState: { type: [Boolean, String, Function], required: false },
|
|
39
|
+
replace: { type: Boolean, required: false },
|
|
40
|
+
only: { type: Array, required: false },
|
|
41
|
+
except: { type: Array, required: false },
|
|
42
|
+
onCancelToken: { type: Function, required: false },
|
|
43
|
+
onBefore: { type: Function, required: false },
|
|
44
|
+
onStart: { type: Function, required: false },
|
|
45
|
+
onProgress: { type: Function, required: false },
|
|
46
|
+
onFinish: { type: Function, required: false },
|
|
47
|
+
onCancel: { type: Function, required: false },
|
|
48
|
+
onSuccess: { type: Function, required: false },
|
|
49
|
+
onError: { type: Function, required: false },
|
|
50
|
+
queryStringArrayFormat: { type: String, required: false },
|
|
51
|
+
async: { type: Boolean, required: false },
|
|
52
|
+
prefetch: { type: [Boolean, String, Array], required: false },
|
|
53
|
+
cacheFor: { type: [Number, String, Array], required: false }
|
|
54
|
+
});
|
|
55
|
+
defineSlots();
|
|
56
|
+
const appConfig = useAppConfig();
|
|
57
|
+
const routerLinkProps = useForwardProps(reactiveOmit(props, "as", "type", "disabled", "active", "exact", "activeClass", "inactiveClass", "to", "raw", "class"));
|
|
58
|
+
const b24ui = computed(() => tv({
|
|
59
|
+
extend: tv(theme),
|
|
60
|
+
...defu({
|
|
61
|
+
variants: {
|
|
62
|
+
active: {
|
|
63
|
+
true: props.activeClass,
|
|
64
|
+
false: props.inactiveClass
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, appConfig.b24ui?.link || {})
|
|
68
|
+
}));
|
|
69
|
+
const isExternal = computed(() => {
|
|
70
|
+
if (!props.to) return false;
|
|
71
|
+
return typeof props.to === "string" && hasProtocol(props.to, { acceptRelative: true });
|
|
72
|
+
});
|
|
73
|
+
const linkClass = computed(() => {
|
|
74
|
+
const active = isActive.value;
|
|
75
|
+
if (props.raw) {
|
|
76
|
+
return [props.class, active ? props.activeClass : props.inactiveClass];
|
|
77
|
+
}
|
|
78
|
+
return b24ui.value({
|
|
79
|
+
class: props.class,
|
|
80
|
+
active,
|
|
81
|
+
disabled: props.disabled,
|
|
82
|
+
isAction: Boolean(props.isAction)
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
const page = usePage();
|
|
86
|
+
const url = computed(() => props.to ?? props.href ?? "#");
|
|
87
|
+
const isActive = computed(() => props.active || (props.exact ? url.value === props.href : page?.url.startsWith(url.value)));
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<template>
|
|
91
|
+
<template v-if="!isExternal">
|
|
92
|
+
<InertiaLink v-bind="routerLinkProps" :href="url" custom>
|
|
93
|
+
<template v-if="custom">
|
|
94
|
+
<slot
|
|
95
|
+
v-bind="{
|
|
96
|
+
...$attrs,
|
|
97
|
+
as,
|
|
98
|
+
type,
|
|
99
|
+
disabled,
|
|
100
|
+
href: url,
|
|
101
|
+
active: isActive
|
|
102
|
+
}"
|
|
103
|
+
/>
|
|
104
|
+
</template>
|
|
105
|
+
<B24LinkBase
|
|
106
|
+
v-else
|
|
107
|
+
v-bind="{
|
|
108
|
+
...$attrs,
|
|
109
|
+
as,
|
|
110
|
+
type,
|
|
111
|
+
disabled,
|
|
112
|
+
href: url,
|
|
113
|
+
active: isActive
|
|
114
|
+
}"
|
|
115
|
+
:class="linkClass"
|
|
116
|
+
>
|
|
117
|
+
<slot :active="isActive" />
|
|
118
|
+
</B24LinkBase>
|
|
119
|
+
</InertiaLink>
|
|
120
|
+
</template>
|
|
121
|
+
|
|
122
|
+
<template v-else>
|
|
123
|
+
<template v-if="custom">
|
|
124
|
+
<slot
|
|
125
|
+
v-bind="{
|
|
126
|
+
...$attrs,
|
|
127
|
+
as,
|
|
128
|
+
type,
|
|
129
|
+
disabled,
|
|
130
|
+
href: to,
|
|
131
|
+
target: isExternal ? '_blank' : void 0,
|
|
132
|
+
active: isActive
|
|
133
|
+
}"
|
|
134
|
+
/>
|
|
135
|
+
</template>
|
|
136
|
+
<B24LinkBase
|
|
137
|
+
v-else
|
|
138
|
+
v-bind="{
|
|
139
|
+
...$attrs,
|
|
140
|
+
as,
|
|
141
|
+
type,
|
|
142
|
+
disabled,
|
|
143
|
+
href: url,
|
|
144
|
+
target: isExternal ? '_blank' : void 0,
|
|
145
|
+
active: isActive
|
|
146
|
+
}"
|
|
147
|
+
:is-external="isExternal"
|
|
148
|
+
:class="linkClass"
|
|
149
|
+
>
|
|
150
|
+
<slot :active="isActive" />
|
|
151
|
+
</B24LinkBase>
|
|
152
|
+
</template>
|
|
153
|
+
</template>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes } from 'vue';
|
|
2
|
+
import type { InertiaLinkProps } from '@inertiajs/vue3';
|
|
3
|
+
interface NuxtLinkProps extends Omit<InertiaLinkProps, 'href'> {
|
|
4
|
+
activeClass?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Route Location the link should navigate to when clicked on.
|
|
7
|
+
*/
|
|
8
|
+
to?: string;
|
|
9
|
+
/**
|
|
10
|
+
* An alias for `to`. If used with `to`, `href` will be ignored
|
|
11
|
+
*/
|
|
12
|
+
href?: NuxtLinkProps['to'];
|
|
13
|
+
/**
|
|
14
|
+
* Forces the link to be considered as external (true) or internal (false). This is helpful to handle edge-cases
|
|
15
|
+
*/
|
|
16
|
+
external?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Where to display the linked URL, as the name for a browsing context.
|
|
19
|
+
*/
|
|
20
|
+
target?: '_blank' | '_parent' | '_self' | '_top' | (string & {}) | null;
|
|
21
|
+
ariaCurrentValue?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface LinkProps extends NuxtLinkProps {
|
|
24
|
+
/**
|
|
25
|
+
* The element or component this component should render as when not a link.
|
|
26
|
+
* @defaultValue 'button'
|
|
27
|
+
*/
|
|
28
|
+
as?: any;
|
|
29
|
+
/**
|
|
30
|
+
* The type of the button when not a link.
|
|
31
|
+
* @defaultValue 'button'
|
|
32
|
+
*/
|
|
33
|
+
type?: ButtonHTMLAttributes['type'];
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Force the link to be active independent of the current route. */
|
|
36
|
+
active?: boolean;
|
|
37
|
+
/** Will only be active if the current route is an exact match. */
|
|
38
|
+
exact?: boolean;
|
|
39
|
+
/** The class to apply when the link is inactive. */
|
|
40
|
+
inactiveClass?: string;
|
|
41
|
+
custom?: boolean;
|
|
42
|
+
/** When `true`, uses special underlined styling. */
|
|
43
|
+
isAction?: boolean;
|
|
44
|
+
/** When `true`, only styles from `class`, `activeClass`, and `inactiveClass` will be applied. */
|
|
45
|
+
raw?: boolean;
|
|
46
|
+
class?: any;
|
|
47
|
+
}
|
|
48
|
+
export interface LinkSlots {
|
|
49
|
+
default(props: {
|
|
50
|
+
active: boolean;
|
|
51
|
+
}): any;
|
|
52
|
+
}
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
|
|
54
|
+
as: string;
|
|
55
|
+
type: string;
|
|
56
|
+
active: undefined;
|
|
57
|
+
isAction: boolean;
|
|
58
|
+
activeClass: string;
|
|
59
|
+
inactiveClass: string;
|
|
60
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
|
|
61
|
+
as: string;
|
|
62
|
+
type: string;
|
|
63
|
+
active: undefined;
|
|
64
|
+
isAction: boolean;
|
|
65
|
+
activeClass: string;
|
|
66
|
+
inactiveClass: string;
|
|
67
|
+
}>>> & Readonly<{}>, {
|
|
68
|
+
as: any;
|
|
69
|
+
type: "reset" | "submit" | "button";
|
|
70
|
+
activeClass: string;
|
|
71
|
+
active: boolean;
|
|
72
|
+
inactiveClass: string;
|
|
73
|
+
isAction: boolean;
|
|
74
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<LinkSlots> & LinkSlots>;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_WithDefaults<P, D> = {
|
|
77
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
78
|
+
default: D[K];
|
|
79
|
+
}> : P[K];
|
|
80
|
+
};
|
|
81
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
82
|
+
type __VLS_TypePropsToOption<T> = {
|
|
83
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
84
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
85
|
+
} : {
|
|
86
|
+
type: import('vue').PropType<T[K]>;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
91
|
+
new (): {
|
|
92
|
+
$slots: S;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
type __VLS_PrettifyLocal<T> = {
|
|
96
|
+
[K in keyof T]: T[K];
|
|
97
|
+
} & {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { NuxtApp } from '#app';
|
|
3
|
+
export { useHead } from '@unhead/vue';
|
|
4
|
+
export { defineShortcuts } from '../composables/defineShortcuts';
|
|
5
|
+
export { defineLocale } from '../composables/defineLocale';
|
|
6
|
+
export { useLocale } from '../composables/useLocale';
|
|
7
|
+
export { useConfetti } from '../composables/useConfetti';
|
|
8
|
+
export { useOverlay } from '../composables/useOverlay';
|
|
9
|
+
export declare const useRoute: () => {
|
|
10
|
+
fullPath: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const useRouter: () => void;
|
|
13
|
+
export declare const useColorMode: () => {
|
|
14
|
+
forced: boolean;
|
|
15
|
+
preference?: undefined;
|
|
16
|
+
readonly value?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
preference: "light" | "dark" | "system";
|
|
19
|
+
readonly value: import("@vueuse/core").BasicColorMode;
|
|
20
|
+
forced: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare const useAppConfig: () => any;
|
|
23
|
+
export declare const useCookie: <T = string>(_name: string, _options?: Record<string, any>) => {
|
|
24
|
+
value: Ref<T, T>;
|
|
25
|
+
get: () => T;
|
|
26
|
+
set: () => void;
|
|
27
|
+
update: () => void;
|
|
28
|
+
refresh: () => Promise<Awaited<T>>;
|
|
29
|
+
remove: () => void;
|
|
30
|
+
};
|
|
31
|
+
export declare const useState: <T>(key: string, init: () => T) => Ref<T>;
|
|
32
|
+
export declare function useNuxtApp(): {
|
|
33
|
+
isHydrating: boolean;
|
|
34
|
+
payload: {
|
|
35
|
+
serverRendered: boolean;
|
|
36
|
+
};
|
|
37
|
+
hooks: import("hookable").Hookable<Record<string, any>, string>;
|
|
38
|
+
hook: <NameT extends string>(name: NameT, function_: any, options?: {
|
|
39
|
+
allowDeprecated?: boolean;
|
|
40
|
+
}) => () => void;
|
|
41
|
+
};
|
|
42
|
+
export declare function useRuntimeHook(name: string, fn: (...args: any[]) => void): void;
|
|
43
|
+
export declare function defineNuxtPlugin(plugin: (nuxtApp: NuxtApp) => void): {
|
|
44
|
+
install(app: import("vue").App<any>): void;
|
|
45
|
+
};
|