paket-ui 0.1.0 → 0.1.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/dist/module.json +1 -1
- package/dist/module.mjs +7 -0
- package/dist/runtime/assets/main.css +1 -1
- package/dist/runtime/components/app.d.vue.ts +13 -0
- package/dist/runtime/components/app.vue +10 -0
- package/dist/runtime/components/app.vue.d.ts +13 -0
- package/dist/runtime/components/badge/index.js +1 -1
- package/dist/runtime/components/breadcrumb/Breadcrumb.d.vue.ts +11 -0
- package/dist/runtime/components/breadcrumb/Breadcrumb.vue +35 -0
- package/dist/runtime/components/breadcrumb/Breadcrumb.vue.d.ts +11 -0
- package/dist/runtime/components/button/Button.d.vue.ts +5 -3
- package/dist/runtime/components/button/Button.vue +3 -1
- package/dist/runtime/components/button/Button.vue.d.ts +5 -3
- package/dist/runtime/components/button/variant.d.ts +7 -1
- package/dist/runtime/components/button/variant.js +8 -2
- package/dist/runtime/components/chat/Reply.d.vue.ts +1 -1
- package/dist/runtime/components/chat/Reply.vue +2 -2
- package/dist/runtime/components/chat/Reply.vue.d.ts +1 -1
- package/dist/runtime/components/chip/Chip.vue +1 -1
- package/dist/runtime/components/combobox/Combobox.d.vue.ts +1 -1
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +1 -1
- package/dist/runtime/components/dialog/DialogConfirmationSingle.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/DialogConfirmationSingle.vue.d.ts +2 -2
- package/dist/runtime/components/divider/Divider.vue +3 -3
- package/dist/runtime/components/editor/Editor.vue +1 -1
- package/dist/runtime/components/editor/EditorBar.vue +2 -2
- package/dist/runtime/components/file/AddFile.vue +1 -1
- package/dist/runtime/components/file/InputMultiple.vue +1 -1
- package/dist/runtime/components/file/ViewFile.vue +1 -1
- package/dist/runtime/components/input/InputField.d.vue.ts +2 -2
- package/dist/runtime/components/input/InputField.vue.d.ts +2 -2
- package/dist/runtime/components/input/InputFieldPassword.d.vue.ts +3 -3
- package/dist/runtime/components/input/InputFieldPassword.vue.d.ts +3 -3
- package/dist/runtime/components/input/InputFileDropable.vue +1 -1
- package/dist/runtime/components/input/InputOtp.vue +1 -1
- package/dist/runtime/components/loading/LoadingIndicator.vue +1 -1
- package/dist/runtime/components/navbar/Navbar.d.vue.ts +13 -0
- package/dist/runtime/components/navbar/Navbar.vue +56 -0
- package/dist/runtime/components/navbar/Navbar.vue.d.ts +13 -0
- package/dist/runtime/components/navbar/NavbarMenus.d.vue.ts +19 -0
- package/dist/runtime/components/navbar/NavbarMenus.vue +34 -0
- package/dist/runtime/components/navbar/NavbarMenus.vue.d.ts +19 -0
- package/dist/runtime/components/navbar/NavbarSearch.d.vue.ts +18 -0
- package/dist/runtime/components/navbar/NavbarSearch.vue +78 -0
- package/dist/runtime/components/navbar/NavbarSearch.vue.d.ts +18 -0
- package/dist/runtime/components/navbar/NavbarSearchInput.d.vue.ts +133 -0
- package/dist/runtime/components/navbar/NavbarSearchInput.vue +54 -0
- package/dist/runtime/components/navbar/NavbarSearchInput.vue.d.ts +133 -0
- package/dist/runtime/components/navbar/NavbarSearchResults.d.vue.ts +11 -0
- package/dist/runtime/components/navbar/NavbarSearchResults.vue +34 -0
- package/dist/runtime/components/navbar/NavbarSearchResults.vue.d.ts +11 -0
- package/dist/runtime/components/page/Dashboard.d.vue.ts +18 -0
- package/dist/runtime/components/page/Dashboard.vue +31 -0
- package/dist/runtime/components/page/Dashboard.vue.d.ts +18 -0
- package/dist/runtime/components/page/PageHeader.d.vue.ts +26 -0
- package/dist/runtime/components/page/PageHeader.vue +60 -0
- package/dist/runtime/components/page/PageHeader.vue.d.ts +26 -0
- package/dist/runtime/components/player/Video.vue +5 -1
- package/dist/runtime/components/radio/Courier.vue +2 -2
- package/dist/runtime/components/radio/RadioCourierBadge.vue +1 -1
- package/dist/runtime/components/range-picker/RangePicker.vue +1 -1
- package/dist/runtime/components/select/Select.vue +1 -1
- package/dist/runtime/components/select/SelectWithInput.vue +1 -1
- package/dist/runtime/components/sidebar/Sidebar.d.vue.ts +26 -0
- package/dist/runtime/components/sidebar/Sidebar.vue +68 -0
- package/dist/runtime/components/sidebar/Sidebar.vue.d.ts +26 -0
- package/dist/runtime/components/sidebar/SidebarChild.d.vue.ts +8 -0
- package/dist/runtime/components/sidebar/SidebarChild.vue +64 -0
- package/dist/runtime/components/sidebar/SidebarChild.vue.d.ts +8 -0
- package/dist/runtime/components/sidebar/SidebarCollapse.d.vue.ts +6 -0
- package/dist/runtime/components/sidebar/SidebarCollapse.vue +31 -0
- package/dist/runtime/components/sidebar/SidebarCollapse.vue.d.ts +6 -0
- package/dist/runtime/components/sidebar/SidebarMenu.d.vue.ts +16 -0
- package/dist/runtime/components/sidebar/SidebarMenu.vue +20 -0
- package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +16 -0
- package/dist/runtime/components/sidebar/SidebarParent.d.vue.ts +7 -0
- package/dist/runtime/components/sidebar/SidebarParent.vue +182 -0
- package/dist/runtime/components/sidebar/SidebarParent.vue.d.ts +7 -0
- package/dist/runtime/components/toast/ToastCard.vue +1 -1
- package/dist/runtime/components/toast/ToastContainer.vue +1 -1
- package/dist/runtime/composables/useDevice.d.ts +4 -0
- package/dist/runtime/composables/useDevice.js +10 -0
- package/dist/runtime/composables/useSidebar.d.ts +8 -0
- package/dist/runtime/composables/useSidebar.js +30 -0
- package/dist/runtime/lib/utils.d.ts +3 -5
- package/dist/runtime/lib/utils.js +5 -15
- package/dist/runtime/plugin.d.ts +15 -0
- package/dist/runtime/plugin.js +84 -2
- package/dist/runtime/types/navigation.d.ts +20 -0
- package/dist/runtime/types/navigation.js +0 -0
- package/package.json +2 -2
- package/dist/runtime/components/icon/KAFavicon.d.vue.ts +0 -3
- package/dist/runtime/components/icon/KAFavicon.vue +0 -45
- package/dist/runtime/components/icon/KAFavicon.vue.d.ts +0 -3
- package/dist/runtime/components/icon/KALogo.d.vue.ts +0 -3
- package/dist/runtime/components/icon/KALogo.vue +0 -102
- package/dist/runtime/components/icon/KALogo.vue.d.ts +0 -3
- package/dist/runtime/components/icon/KALogoMono.d.vue.ts +0 -3
- package/dist/runtime/components/icon/KALogoMono.vue +0 -70
- package/dist/runtime/components/icon/KALogoMono.vue.d.ts +0 -3
- package/dist/runtime/plugins/toast.client.d.ts +0 -17
- package/dist/runtime/plugins/toast.client.js +0 -85
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -35,6 +35,9 @@ const module$1 = defineNuxtModule({
|
|
|
35
35
|
fallback: "light",
|
|
36
36
|
storageKey: "color-mode"
|
|
37
37
|
}
|
|
38
|
+
},
|
|
39
|
+
"@radya/nuxt-dompurify": {
|
|
40
|
+
version: ">=1.0.5"
|
|
38
41
|
}
|
|
39
42
|
},
|
|
40
43
|
async setup(options, nuxt) {
|
|
@@ -52,6 +55,10 @@ const module$1 = defineNuxtModule({
|
|
|
52
55
|
from: resolver.resolve("./runtime/lib/date")
|
|
53
56
|
});
|
|
54
57
|
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
58
|
+
addImports({
|
|
59
|
+
name: "useDevice",
|
|
60
|
+
from: resolver.resolve("./runtime/composables/useDevice")
|
|
61
|
+
});
|
|
55
62
|
const componentsDir = resolver.resolve("./runtime/components");
|
|
56
63
|
nuxt.hook("components:dirs", (dirs) => {
|
|
57
64
|
dirs.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "tailwindcss";@import "tw-animate-css";@source "../components/**/*.{vue,ts,mjs,js}";@source "../../playground/**/*.{vue,ts,mjs,js}";@custom-variant dark (&:is(.dark *))
|
|
1
|
+
@import "tailwindcss";@import "tw-animate-css";@source "../components/**/*.{vue,ts,mjs,js}";@source "../../playground/**/*.{vue,ts,mjs,js}";@custom-variant dark (&:is(.dark *));@theme{--navbar-height:60px;--font-body:"Inter",sans-serif;--spacing-navbar:var(--navbar-height);--spacing-navbar-screen:calc(100vh - var(--navbar-height));--color-background:#fff;--color-on-background:#1d1b1e;--color-card:oklch(1 0 0);--color-card-foreground:oklch(0.145 0 0);--color-popover:oklch(1 0 0);--color-popover-foreground:oklch(0.145 0 0);--color-primary:#581eb8;--color-on-primary:#fff;--color-primary-container:#ede9fe;--color-on-primary-container:#2d0e67;--color-secondary:#625b70;--color-on-secondary:#fff;--color-secondary-container:#e9def8;--color-on-secondary-container:#4a4358;--color-tertiary:#7e525e;--color-on-tertiary:#fff;--color-tertiary-container:#ffd9e1;--color-on-tertiary-container:#643b47;--color-error:#ba1a1a;--color-on-error:#fff;--color-error-container:#ffdad6;--color-on-error-container:#93000a;--color-warning:#8d4e2a;--color-on-warning:#fff;--color-warning-container:#ffdbca;--color-on-warning-container:#703715;--color-warning-yellow:#d19600;--color-on-warning-yellow:#fff;--color-warning-yellow-container:#fff5be;--color-on-warning-yellow-container:#9d7204;--color-magenta:#874b6d;--color-on-magenta:#fff;--color-magenta-container:#ffdad6;--color-on-magenta-container:#690005;--color-info:#415f91;--color-on-info:#fff;--color-info-container:#d6e3ff;--color-on-info-container:#274777;--color-success:#306a42;--color-on-success:#fff;--color-success-container:#b3f1bf;--color-on-success-container:#15512d;--color-outline:#7a757f;--color-outline-variant:#cbc4cf;--color-on-surface:#1d1b20;--color-on-surface-variant:#49454e;--color-inverse-surface:#322f33;--color-inverse-on-surface:#f6eff4;--color-inverse-primary:#d1bcfd;--color-scrim:#000;--color-shadow:#000;--color-surface-bright:#fef7fc;--color-surface:#fef7ff;--color-surface-dim:#ded8dd;--color-surface-container-lowest:#fff;--color-surface-container-low:#f8f1fa;--color-surface-container:#f2ecf4;--color-surface-container-high:#ece6ee;--color-surface-container-highest:#e7e0e8;--color-border:var(--color-outline-variant);--text-xxs:0.625rem;--color-layer:var(--color-surface-container-low);--color-layer-inner:var(--color-background)}.dark{--color-background:#0f0d11;--color-on-background:#e7e1e5;--color-card:oklch(0.145 0 0);--color-card-foreground:oklch(0.985 0 0);--color-popover:oklch(0.145 0 0);--color-popover-foreground:oklch(0.985 0 0);--color-primary:#d1bcfd;--color-on-primary:#37265c;--color-primary-container:#4e3d75;--color-on-primary-container:#eaddff;--color-secondary:#ccc2db;--color-on-secondary:#342d41;--color-secondary-container:#4a4358;--color-on-secondary-container:#e9def8;--color-tertiary:#f0b8c6;--color-on-tertiary:#4a2531;--color-tertiary-container:#643b47;--color-on-tertiary-container:#ffd9e1;--color-error:#ffb4ab;--color-on-error:#690005;--color-error-container:#93000a;--color-on-error-container:#ffdad6;--color-info:#aac7ff;--color-on-info:#0a305f;--color-info-container:#274777;--color-on-info-container:#d6e3ff;--color-success:#97d5a5;--color-on-success:#00391a;--color-success-container:#15512d;--color-on-success-container:#b3f1bf;--color-outline:#948f99;--color-outline-variant:#49454e;--color-on-surface:#e7e0e8;--color-on-surface-variant:#cbc4cf;--color-inverse-surface:#e7e1e5;--color-inverse-on-surface:#1d1b1e;--color-inverse-primary:#67558e;--color-scrim:#000;--color-shadow:#000;--color-surface-bright:#3b383e;--color-surface:#141218;--color-surface-dim:#141218;--color-surface-container-lowest:#0f0d13;--color-surface-container-low:#1d1b20;--color-surface-container:#211f24;--color-surface-container-high:#2b292f;--color-surface-container-highest:#36343a;--color-layer:var(--color-background);--color-layer-inner:var(--color-surface)}@layer base{*{@apply border-border}html{@apply bg-layer text-on-background font-body}}@layer components{.box-center{@apply flex items-center justify-center}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -25,7 +25,7 @@ export const variantConfig = {
|
|
|
25
25
|
errorOutline: "border border-error text-error",
|
|
26
26
|
black: "bg-onSurfaceVariant text-surface",
|
|
27
27
|
blackContainer: "bg-surfaceContainerHigh text-onSurface",
|
|
28
|
-
outline: "text-outline border border-
|
|
28
|
+
outline: "text-outline border border-outline-variant",
|
|
29
29
|
secondary: "bg-secondary text-on-secondary",
|
|
30
30
|
secondaryOutlineVariant: "bg-outline-variant text-secondary",
|
|
31
31
|
secondaryContainer: "bg-secondary-container text-secondary",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
link: string;
|
|
3
|
+
label: string;
|
|
4
|
+
color?: string | null;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
breadcrumbs: BreadcrumbItem[];
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<nav aria-label="breadcrumb" class="mb-1">
|
|
3
|
+
<ol class="flex items-center text-primary text-xs">
|
|
4
|
+
<li
|
|
5
|
+
v-for="(crumb, index) in breadcrumbs"
|
|
6
|
+
:key="index"
|
|
7
|
+
class="flex items-center text-xs font-medium leading-3"
|
|
8
|
+
>
|
|
9
|
+
<NuxtLink
|
|
10
|
+
v-if="crumb.link !== '-' && index < breadcrumbs.length - 1"
|
|
11
|
+
:to="crumb.link"
|
|
12
|
+
>
|
|
13
|
+
<span :class="`${crumb.color ?? 'text-primary'} font-medium`">
|
|
14
|
+
{{ crumb.label }}
|
|
15
|
+
</span>
|
|
16
|
+
</NuxtLink>
|
|
17
|
+
<span v-else class="text-outline font-normal">
|
|
18
|
+
{{ crumb.label }}
|
|
19
|
+
</span>
|
|
20
|
+
<span
|
|
21
|
+
v-if="index < breadcrumbs.length - 1"
|
|
22
|
+
class="mx-2 text-outline font-medium"
|
|
23
|
+
>
|
|
24
|
+
/
|
|
25
|
+
</span>
|
|
26
|
+
</li>
|
|
27
|
+
</ol>
|
|
28
|
+
</nav>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script setup>
|
|
32
|
+
defineProps({
|
|
33
|
+
breadcrumbs: { type: Array, required: true }
|
|
34
|
+
});
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
link: string;
|
|
3
|
+
label: string;
|
|
4
|
+
color?: string | null;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
breadcrumbs: BreadcrumbItem[];
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -14,11 +14,13 @@ type __VLS_Props = {
|
|
|
14
14
|
boxed?: boolean;
|
|
15
15
|
to?: string | RouteLocationRaw;
|
|
16
16
|
};
|
|
17
|
-
declare var __VLS_8: {}, __VLS_16: {};
|
|
17
|
+
declare var __VLS_8: {}, __VLS_16: {}, __VLS_18: {};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
|
-
|
|
19
|
+
icon?: (props: typeof __VLS_8) => any;
|
|
20
20
|
} & {
|
|
21
|
-
|
|
21
|
+
default?: (props: typeof __VLS_16) => any;
|
|
22
|
+
} & {
|
|
23
|
+
content?: (props: typeof __VLS_18) => any;
|
|
22
24
|
};
|
|
23
25
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -41,13 +41,15 @@ const props = defineProps({
|
|
|
41
41
|
"
|
|
42
42
|
:disabled="props.disabled || props.loading"
|
|
43
43
|
>
|
|
44
|
-
<slot>
|
|
44
|
+
<slot name="icon">
|
|
45
45
|
<Icon
|
|
46
46
|
v-if="props.loading || props.icon"
|
|
47
47
|
:name="props.loading ? 'svg-spinners:ring-resize' : props.icon"
|
|
48
48
|
:size="iconSizeConfig[props.size]"
|
|
49
49
|
:class="cn('relative', { 'mx-auto': !props.label }, props.iconClass)"
|
|
50
50
|
/>
|
|
51
|
+
</slot>
|
|
52
|
+
<slot>
|
|
51
53
|
<span
|
|
52
54
|
v-if="props.label && props.label.length"
|
|
53
55
|
:class="cn('relative', props.labelClass)"
|
|
@@ -14,11 +14,13 @@ type __VLS_Props = {
|
|
|
14
14
|
boxed?: boolean;
|
|
15
15
|
to?: string | RouteLocationRaw;
|
|
16
16
|
};
|
|
17
|
-
declare var __VLS_8: {}, __VLS_16: {};
|
|
17
|
+
declare var __VLS_8: {}, __VLS_16: {}, __VLS_18: {};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
|
-
|
|
19
|
+
icon?: (props: typeof __VLS_8) => any;
|
|
20
20
|
} & {
|
|
21
|
-
|
|
21
|
+
default?: (props: typeof __VLS_16) => any;
|
|
22
|
+
} & {
|
|
23
|
+
content?: (props: typeof __VLS_18) => any;
|
|
22
24
|
};
|
|
23
25
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export declare const BASE_CLASS = "rounded-full flex justify-center relative overflow-hidden items-center gap-2 text-sm font-semibold disabled:opacity-40 disabled:cursor-not-allowed hover:saturate-150";
|
|
1
|
+
export declare const BASE_CLASS = "rounded-full flex justify-center cursor-pointer hover:saturate-120 relative overflow-hidden items-center gap-2 text-sm font-semibold disabled:opacity-40 disabled:cursor-not-allowed hover:saturate-150";
|
|
2
2
|
export declare const BOXED_BASE_CLASS = "px-2.5 py-1.5 flex-1 lg:flex-none rounded-lg";
|
|
3
3
|
export declare const variantConfig: {
|
|
4
4
|
primary: string;
|
|
5
5
|
primaryOutline: string;
|
|
6
6
|
primaryContainer: string;
|
|
7
7
|
primaryOutlineContainer: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
secondaryOutline: string;
|
|
8
10
|
info: string;
|
|
9
11
|
infoOutline: string;
|
|
10
12
|
success: string;
|
|
@@ -19,6 +21,10 @@ export declare const variantConfig: {
|
|
|
19
21
|
ghostContainer: string;
|
|
20
22
|
white: string;
|
|
21
23
|
whiteOutline: string;
|
|
24
|
+
warningYellow: string;
|
|
25
|
+
warningYellowOutline: string;
|
|
26
|
+
warningYellowContainer: string;
|
|
27
|
+
link: string;
|
|
22
28
|
};
|
|
23
29
|
export declare const sizeConfig: {
|
|
24
30
|
lg: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export const BASE_CLASS = "rounded-full flex justify-center relative overflow-hidden items-center gap-2 text-sm font-semibold disabled:opacity-40 disabled:cursor-not-allowed hover:saturate-150";
|
|
1
|
+
export const BASE_CLASS = "rounded-full flex justify-center cursor-pointer hover:saturate-120 relative overflow-hidden items-center gap-2 text-sm font-semibold disabled:opacity-40 disabled:cursor-not-allowed hover:saturate-150";
|
|
2
2
|
export const BOXED_BASE_CLASS = "px-2.5 py-1.5 flex-1 lg:flex-none rounded-lg";
|
|
3
3
|
export const variantConfig = {
|
|
4
4
|
primary: "bg-primary text-on-primary border border-primary",
|
|
5
5
|
primaryOutline: "text-primary border border-primary",
|
|
6
6
|
primaryContainer: "bg-primary-container text-on-primary-container border border-primary-container",
|
|
7
7
|
primaryOutlineContainer: "text-secondary-container border border-primary-container",
|
|
8
|
+
secondary: "bg-secondary text-on-secondary border border-secondary",
|
|
9
|
+
secondaryOutline: "text-secondary border border-secondary",
|
|
8
10
|
info: "bg-info text-on-info border border-info",
|
|
9
11
|
infoOutline: "text-info border border-info",
|
|
10
12
|
success: "bg-success text-on-success border border-success",
|
|
@@ -18,7 +20,11 @@ export const variantConfig = {
|
|
|
18
20
|
container: "bg-surface-container text-on-surface",
|
|
19
21
|
ghostContainer: "text-on-surface hover:bg-surface-container border border-transparent",
|
|
20
22
|
white: "bg-white text-black",
|
|
21
|
-
whiteOutline: "text-white border border-white"
|
|
23
|
+
whiteOutline: "text-white border border-white",
|
|
24
|
+
warningYellow: "bg-warning-yellow text-on-warning-yellow border border-warning-yellow",
|
|
25
|
+
warningYellowOutline: "text-warning-yellow border border-warning-yellow",
|
|
26
|
+
warningYellowContainer: "bg-warning-yellow-container text-on-warning-yellow-container border border-warning-yellow-container",
|
|
27
|
+
link: "text-primary hover:underline border border-transparent"
|
|
22
28
|
};
|
|
23
29
|
export const sizeConfig = {
|
|
24
30
|
lg: "py-4 px-8",
|
|
@@ -76,8 +76,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
76
76
|
recorded: (value: FileList) => void;
|
|
77
77
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
78
78
|
onSubmit?: (() => any) | undefined;
|
|
79
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
80
79
|
onRecorded?: ((value: FileList) => any) | undefined;
|
|
80
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
81
81
|
"onRecorder-remove"?: (() => any) | undefined;
|
|
82
82
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
83
83
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -3,7 +3,7 @@ import EmojiPicker, {} from "vue3-emoji-picker";
|
|
|
3
3
|
import "vue3-emoji-picker/css";
|
|
4
4
|
import { breakpointsTailwind, useBreakpoints, useVModel } from "@vueuse/core";
|
|
5
5
|
import { computed, useTemplateRef, useSlots, ref, nextTick } from "vue";
|
|
6
|
-
import { useColorMode } from "
|
|
6
|
+
import { useColorMode } from "#imports";
|
|
7
7
|
import Audio from "../recorder/Audio.vue";
|
|
8
8
|
import TextArea from "../input/TextArea.vue";
|
|
9
9
|
import Dropdown from "../dropdown/Dropdown.vue";
|
|
@@ -166,5 +166,5 @@ const slots = useSlots();
|
|
|
166
166
|
</template>
|
|
167
167
|
|
|
168
168
|
<style>
|
|
169
|
-
.v3-emoji-picker{background:transparent!important;--v3-picker-bg:var(--color-surfaceContainer)!important;--v3-picker-fg:var(--color-onSurface)!important;--v3-picker-border:var(--color-
|
|
169
|
+
.v3-emoji-picker{background:transparent!important;--v3-picker-bg:var(--color-surfaceContainer)!important;--v3-picker-fg:var(--color-onSurface)!important;--v3-picker-border:var(--color-outline-variant)!important;--v3-picker-input-border:var(--color-outline-variant)!important}.v3-footer{display:none!important}.v3-body{padding-bottom:0!important}
|
|
170
170
|
</style>
|
|
@@ -76,8 +76,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
76
76
|
recorded: (value: FileList) => void;
|
|
77
77
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
78
78
|
onSubmit?: (() => any) | undefined;
|
|
79
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
80
79
|
onRecorded?: ((value: FileList) => any) | undefined;
|
|
80
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
81
81
|
"onRecorder-remove"?: (() => any) | undefined;
|
|
82
82
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
83
83
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -25,8 +25,8 @@ declare const __VLS_export: <T extends Record<string, AcceptableValue | boolean
|
|
|
25
25
|
immediateSearch?: boolean;
|
|
26
26
|
} & {
|
|
27
27
|
onSelect?: ((payload: T) => any) | undefined;
|
|
28
|
-
"onUpdate:isLoading"?: ((value?: boolean | undefined) => any) | undefined;
|
|
29
28
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
29
|
+
"onUpdate:isLoading"?: ((value?: boolean | undefined) => any) | undefined;
|
|
30
30
|
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
31
31
|
__VLS_PROPS_FALLBACK: infer P;
|
|
32
32
|
} ? P : {});
|
|
@@ -25,8 +25,8 @@ declare const __VLS_export: <T extends Record<string, AcceptableValue | boolean
|
|
|
25
25
|
immediateSearch?: boolean;
|
|
26
26
|
} & {
|
|
27
27
|
onSelect?: ((payload: T) => any) | undefined;
|
|
28
|
-
"onUpdate:isLoading"?: ((value?: boolean | undefined) => any) | undefined;
|
|
29
28
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
29
|
+
"onUpdate:isLoading"?: ((value?: boolean | undefined) => any) | undefined;
|
|
30
30
|
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
31
31
|
__VLS_PROPS_FALLBACK: infer P;
|
|
32
32
|
} ? P : {});
|
|
@@ -28,12 +28,12 @@ type __VLS_Slots = {} & {
|
|
|
28
28
|
};
|
|
29
29
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
30
|
submit: () => void;
|
|
31
|
-
close: () => void;
|
|
32
31
|
cancel: () => void;
|
|
32
|
+
close: () => void;
|
|
33
33
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
34
|
onSubmit?: (() => any) | undefined;
|
|
35
|
-
onClose?: (() => any) | undefined;
|
|
36
35
|
onCancel?: (() => any) | undefined;
|
|
36
|
+
onClose?: (() => any) | undefined;
|
|
37
37
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -28,12 +28,12 @@ type __VLS_Slots = {} & {
|
|
|
28
28
|
};
|
|
29
29
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
30
|
submit: () => void;
|
|
31
|
-
close: () => void;
|
|
32
31
|
cancel: () => void;
|
|
32
|
+
close: () => void;
|
|
33
33
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
34
|
onSubmit?: (() => any) | undefined;
|
|
35
|
-
onClose?: (() => any) | undefined;
|
|
36
35
|
onCancel?: (() => any) | undefined;
|
|
36
|
+
onClose?: (() => any) | undefined;
|
|
37
37
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,7 +13,7 @@ const props = defineProps({
|
|
|
13
13
|
<div
|
|
14
14
|
:class="
|
|
15
15
|
cn(
|
|
16
|
-
props.label ? 'w-full flex items-center' : 'w-full h-px bg-
|
|
16
|
+
props.label ? 'w-full flex items-center' : 'w-full h-px bg-outline-variant',
|
|
17
17
|
props.colorClass,
|
|
18
18
|
props.class
|
|
19
19
|
)
|
|
@@ -22,14 +22,14 @@ const props = defineProps({
|
|
|
22
22
|
<template v-if="props.label">
|
|
23
23
|
<div
|
|
24
24
|
v-if="labelPosition === 'right' || labelPosition === 'center'"
|
|
25
|
-
:class="cn('grow h-px bg-
|
|
25
|
+
:class="cn('grow h-px bg-outline-variant', props.colorClass)"
|
|
26
26
|
></div>
|
|
27
27
|
<span :class="cn('flex-none p-1 text-xs', props.labelClass)">{{
|
|
28
28
|
props.label
|
|
29
29
|
}}</span>
|
|
30
30
|
<div
|
|
31
31
|
v-if="labelPosition === 'left' || labelPosition === 'center'"
|
|
32
|
-
:class="cn('grow h-px bg-
|
|
32
|
+
:class="cn('grow h-px bg-outline-variant', props.colorClass)"
|
|
33
33
|
></div>
|
|
34
34
|
</template>
|
|
35
35
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="border-b bg-surfaceContainerLowest border-
|
|
3
|
+
class="border-b bg-surfaceContainerLowest border-outline-variant p-2 grid gap-2 items-center"
|
|
4
4
|
>
|
|
5
5
|
<div class="flex gap-1 items-center flex-wrap">
|
|
6
6
|
<Button
|
|
@@ -300,7 +300,7 @@ import Button from "../button/Button.vue";
|
|
|
300
300
|
import Dropdown from "../dropdown/Dropdown.vue";
|
|
301
301
|
import DropdownItem from "../dropdown/DropdownItem.vue";
|
|
302
302
|
import Select from "../select/Select.vue";
|
|
303
|
-
import { navigateTo } from "
|
|
303
|
+
import { navigateTo } from "#imports";
|
|
304
304
|
import { parseRgbString } from "../../lib/color";
|
|
305
305
|
const props = defineProps({
|
|
306
306
|
editor: { type: Object, required: true }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
type="button"
|
|
4
4
|
:class="
|
|
5
5
|
cn([
|
|
6
|
-
'border border-
|
|
6
|
+
'border border-outline-variant rounded-xl border-dashed hover:border-solid hover:border-primary p-3 shrink-0 aspect-square w-20 hover:ring-2 transition-all ring-inset hover:text-primary hover:ring-primary',
|
|
7
7
|
props.class
|
|
8
8
|
])
|
|
9
9
|
"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</template>
|
|
77
77
|
|
|
78
78
|
<script setup>
|
|
79
|
-
import { useNuxtApp } from "
|
|
79
|
+
import { useNuxtApp } from "#imports";
|
|
80
80
|
import { computed, ref, nextTick, watch } from "vue";
|
|
81
81
|
import { cn } from "../../lib/utils";
|
|
82
82
|
import ErrorLabel from "../label/ErrorLabel.vue";
|
|
@@ -16,11 +16,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
16
16
|
focus: () => void | undefined;
|
|
17
17
|
blur: () => void | undefined;
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
-
"update:modelValue": (payload?: string | number | undefined) => any;
|
|
20
19
|
paste: (event: ClipboardEvent) => any;
|
|
20
|
+
"update:modelValue": (payload?: string | number | undefined) => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
-
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
23
22
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
@@ -16,11 +16,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
16
16
|
focus: () => void | undefined;
|
|
17
17
|
blur: () => void | undefined;
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
-
"update:modelValue": (payload?: string | number | undefined) => any;
|
|
20
19
|
paste: (event: ClipboardEvent) => any;
|
|
20
|
+
"update:modelValue": (payload?: string | number | undefined) => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
-
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
23
22
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
@@ -26,15 +26,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
26
26
|
inputMask?: keyof typeof inputMaskingConfiguration;
|
|
27
27
|
localTel?: boolean;
|
|
28
28
|
}> & Readonly<{
|
|
29
|
-
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
30
29
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
textInputRef: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
|
|
33
33
|
focus: () => void | undefined;
|
|
34
34
|
blur: () => void | undefined;
|
|
35
35
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
-
"update:modelValue": (payload?: string | number | undefined) => any;
|
|
37
36
|
paste: (event: ClipboardEvent) => any;
|
|
37
|
+
"update:modelValue": (payload?: string | number | undefined) => any;
|
|
38
38
|
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
39
|
P: {};
|
|
40
40
|
B: {};
|
|
@@ -53,8 +53,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
53
53
|
inputMask?: keyof typeof inputMaskingConfiguration;
|
|
54
54
|
localTel?: boolean;
|
|
55
55
|
}> & Readonly<{
|
|
56
|
-
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
57
56
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
58
58
|
}>, {
|
|
59
59
|
textInputRef: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
|
|
60
60
|
focus: () => void | undefined;
|
|
@@ -26,15 +26,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
26
26
|
inputMask?: keyof typeof inputMaskingConfiguration;
|
|
27
27
|
localTel?: boolean;
|
|
28
28
|
}> & Readonly<{
|
|
29
|
-
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
30
29
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
textInputRef: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
|
|
33
33
|
focus: () => void | undefined;
|
|
34
34
|
blur: () => void | undefined;
|
|
35
35
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
-
"update:modelValue": (payload?: string | number | undefined) => any;
|
|
37
36
|
paste: (event: ClipboardEvent) => any;
|
|
37
|
+
"update:modelValue": (payload?: string | number | undefined) => any;
|
|
38
38
|
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
39
|
P: {};
|
|
40
40
|
B: {};
|
|
@@ -53,8 +53,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
53
53
|
inputMask?: keyof typeof inputMaskingConfiguration;
|
|
54
54
|
localTel?: boolean;
|
|
55
55
|
}> & Readonly<{
|
|
56
|
-
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
57
56
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((payload?: string | number | undefined) => any) | undefined;
|
|
58
58
|
}>, {
|
|
59
59
|
textInputRef: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
|
|
60
60
|
focus: () => void | undefined;
|
|
@@ -86,7 +86,7 @@ const drop = (event) => {
|
|
|
86
86
|
/>
|
|
87
87
|
<div
|
|
88
88
|
draggable
|
|
89
|
-
class="border border-
|
|
89
|
+
class="border border-outline-variant border-dashed transition duration-300 bg-surfaceContainerLow py-3 rounded-xl"
|
|
90
90
|
:class="[loading || validating ? 'cursor-not-allowed' : 'cursor-pointer']"
|
|
91
91
|
@dragover.prevent="isDrag = true"
|
|
92
92
|
@dragleave.prevent="isDrag = false"
|
|
@@ -48,7 +48,7 @@ const handleComplete = () => {
|
|
|
48
48
|
ref="inputRefs"
|
|
49
49
|
:key="num"
|
|
50
50
|
:index="index"
|
|
51
|
-
class="w-10 h-10 md:w-12 md:h-12 bg-surfaceContainerLowest rounded-xl text-center border border-
|
|
51
|
+
class="w-10 h-10 md:w-12 md:h-12 bg-surfaceContainerLowest rounded-xl text-center border border-outline-variant focus-visible:outline-none ring-0 focus:ring-offset-1 focus:ring-offset-primary outline-none"
|
|
52
52
|
:class="[
|
|
53
53
|
props.invalid ? 'text-error ring-offset-1 ring-offset-error focus:border-error' : 'text-onSurface ring-offset-0 ring-offset-primary focus:border-primary'
|
|
54
54
|
]"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|