@bitrix24/b24ui-nuxt 0.1.7 → 0.2.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/alert.ts +18 -8
- package/.nuxt/b24ui/badge.ts +1 -1
- package/.nuxt/b24ui/content/description-list.ts +17 -7
- package/.nuxt/b24ui/dropdown-menu.ts +235 -0
- package/.nuxt/b24ui/index.ts +2 -0
- package/.nuxt/b24ui/input-menu.ts +591 -0
- package/.nuxt/b24ui/input.ts +5 -5
- package/.nuxt/b24ui/select-menu.ts +6 -6
- package/.nuxt/b24ui/select.ts +6 -6
- package/.nuxt/b24ui/toast.ts +18 -8
- package/.nuxt/b24ui.css +2 -0
- package/README.md +8 -8
- package/dist/meta.cjs +13508 -1751
- package/dist/meta.d.cts +13508 -1751
- package/dist/meta.d.mts +13508 -1751
- package/dist/meta.d.ts +13508 -1751
- package/dist/meta.mjs +13508 -1751
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Alert.vue +13 -10
- package/dist/runtime/components/DropdownMenu.vue +135 -0
- package/dist/runtime/components/DropdownMenuContent.vue +182 -0
- package/dist/runtime/components/InputMenu.vue +507 -0
- package/dist/runtime/components/Toast.vue +26 -14
- package/dist/runtime/components/Toaster.vue +2 -2
- package/dist/runtime/components/content/DescriptionList.vue +9 -7
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/composables/useToast.d.ts +5 -4
- package/dist/runtime/composables/useToast.js +2 -2
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.d.ts +5 -0
- package/dist/runtime/vue/components/Link.vue +1 -0
- package/dist/shared/{b24ui-nuxt.vQRZieQw.mjs → b24ui-nuxt.CYvh5VlN.mjs} +653 -31
- package/dist/shared/{b24ui-nuxt.ZUYaG6CJ.cjs → b24ui-nuxt.DgnM0VWe.cjs} +653 -31
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +24 -5
|
@@ -15,6 +15,6 @@ export interface UseComponentIconsProps {
|
|
|
15
15
|
export declare function useComponentIcons(componentProps: MaybeRefOrGetter<UseComponentIconsProps>): {
|
|
16
16
|
isLeading: import("vue").ComputedRef<any>;
|
|
17
17
|
isTrailing: import("vue").ComputedRef<boolean>;
|
|
18
|
-
leadingIconName: import("vue").ComputedRef<
|
|
19
|
-
trailingIconName: import("vue").ComputedRef<
|
|
18
|
+
leadingIconName: import("vue").ComputedRef<IconComponent | undefined>;
|
|
19
|
+
trailingIconName: import("vue").ComputedRef<IconComponent | undefined>;
|
|
20
20
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type { ToastProps } from '../types';
|
|
2
|
-
|
|
1
|
+
import type { ToastProps, ToastEmits } from '../types';
|
|
2
|
+
import type { EmitsToProps } from '../types/utils';
|
|
3
|
+
export interface Toast extends Omit<ToastProps, 'defaultOpen'>, EmitsToProps<ToastEmits> {
|
|
3
4
|
id: string | number;
|
|
4
|
-
|
|
5
|
+
onClick?: (toast: Toast) => void;
|
|
5
6
|
}
|
|
6
7
|
export declare function useToast(): {
|
|
7
8
|
toasts: import("vue").Ref<Toast[], Toast[]>;
|
|
8
|
-
add: (toast: Partial<Toast>) =>
|
|
9
|
+
add: (toast: Partial<Toast>) => Toast;
|
|
9
10
|
update: (id: string | number, toast: Omit<Partial<Toast>, "id">) => void;
|
|
10
11
|
remove: (id: string | number) => void;
|
|
11
12
|
clear: () => void;
|
|
@@ -18,14 +18,14 @@ export function useToast() {
|
|
|
18
18
|
}
|
|
19
19
|
running.value = false;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
function add(toast) {
|
|
22
22
|
const body = {
|
|
23
23
|
id: generateId(),
|
|
24
24
|
open: true,
|
|
25
25
|
...toast
|
|
26
26
|
};
|
|
27
27
|
queue.push(body);
|
|
28
|
-
|
|
28
|
+
processQueue();
|
|
29
29
|
return body;
|
|
30
30
|
}
|
|
31
31
|
function update(id, toast) {
|
package/dist/runtime/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@plugin "@bitrix24/b24style";@import "./keyframes.css";@variant light (&:where(.light, .light *));@variant dark (&:where(.dark, .dark *));@layer base{body{@apply antialiased scheme-light dark:scheme-dark}}
|
|
1
|
+
@plugin "@bitrix24/b24style";@import "#build/b24ui.css";@import "./keyframes.css";@variant light (&:where(.light, .light *));@variant dark (&:where(.dark, .dark *));@layer base{body{@apply antialiased scheme-light dark:scheme-dark}}
|
|
@@ -10,9 +10,11 @@ export * from '../components/Checkbox.vue';
|
|
|
10
10
|
export * from '../components/Chip.vue';
|
|
11
11
|
export * from '../components/Container.vue';
|
|
12
12
|
export * from '../components/Countdown.vue';
|
|
13
|
+
export * from '../components/DropdownMenu.vue';
|
|
13
14
|
export * from '../components/Form.vue';
|
|
14
15
|
export * from '../components/FormField.vue';
|
|
15
16
|
export * from '../components/Input.vue';
|
|
17
|
+
export * from '../components/InputMenu.vue';
|
|
16
18
|
export * from '../components/Kbd.vue';
|
|
17
19
|
export * from '../components/Link.vue';
|
|
18
20
|
export * from '../components/Progress.vue';
|
|
@@ -10,9 +10,11 @@ export * from "../components/Checkbox.vue";
|
|
|
10
10
|
export * from "../components/Chip.vue";
|
|
11
11
|
export * from "../components/Container.vue";
|
|
12
12
|
export * from "../components/Countdown.vue";
|
|
13
|
+
export * from "../components/DropdownMenu.vue";
|
|
13
14
|
export * from "../components/Form.vue";
|
|
14
15
|
export * from "../components/FormField.vue";
|
|
15
16
|
export * from "../components/Input.vue";
|
|
17
|
+
export * from "../components/InputMenu.vue";
|
|
16
18
|
export * from "../components/Kbd.vue";
|
|
17
19
|
export * from "../components/Link.vue";
|
|
18
20
|
export * from "../components/Progress.vue";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
1
2
|
export interface TightMap<O = any> {
|
|
2
3
|
[key: string]: TightMap | O;
|
|
3
4
|
}
|
|
@@ -20,3 +21,7 @@ export type SelectItemKey<T> = T extends Record<string, any> ? keyof T : string;
|
|
|
20
21
|
export type SelectModelValueEmits<T, V, M extends boolean = false, DV = T> = {
|
|
21
22
|
'update:modelValue': [payload: SelectModelValue<T, V, M, DV>];
|
|
22
23
|
};
|
|
24
|
+
export type StringOrVNode = string | VNode | (() => VNode);
|
|
25
|
+
export type EmitsToProps<T> = {
|
|
26
|
+
[K in keyof T as `on${Capitalize<string & K>}`]: T[K] extends [...args: infer Args] ? (...args: Args) => void : never;
|
|
27
|
+
};
|
|
@@ -180,6 +180,7 @@ function resolveLinkClass({ route, isActive, isExactActive }: any) {
|
|
|
180
180
|
as,
|
|
181
181
|
type,
|
|
182
182
|
disabled,
|
|
183
|
+
target: props.target ? props.target : undefined,
|
|
183
184
|
href: to ? (isExternal ? to as string : href) : undefined,
|
|
184
185
|
navigate,
|
|
185
186
|
active: isLinkActive({ route: linkRoute, isActive, isExactActive })
|