@bitrix24/b24ui-nuxt 2.0.7 → 2.0.8
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/meta.d.mts +1 -1
- package/dist/meta.mjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/RadioGroup.d.vue.ts +5 -5
- package/dist/runtime/components/RadioGroup.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +5 -5
- package/dist/shared/{b24ui-nuxt.CPlfZAfR.mjs → b24ui-nuxt.CEMVb5Ee.mjs} +5 -3
- package/dist/unplugin.mjs +29 -1
- package/dist/vite.mjs +3 -1
- package/package.json +1 -8
- package/.nuxt/b24ui/accordion.ts +0 -20
- package/.nuxt/b24ui/advice.ts +0 -36
- package/.nuxt/b24ui/alert.ts +0 -176
- package/.nuxt/b24ui/avatar-group.ts +0 -52
- package/.nuxt/b24ui/avatar.ts +0 -63
- package/.nuxt/b24ui/badge.ts +0 -333
- package/.nuxt/b24ui/banner.ts +0 -78
- package/.nuxt/b24ui/breadcrumb.ts +0 -42
- package/.nuxt/b24ui/button.ts +0 -350
- package/.nuxt/b24ui/calendar.ts +0 -112
- package/.nuxt/b24ui/card.ts +0 -180
- package/.nuxt/b24ui/chat-message.ts +0 -123
- package/.nuxt/b24ui/chat-messages.ts +0 -14
- package/.nuxt/b24ui/chat-palette.ts +0 -8
- package/.nuxt/b24ui/chat-prompt-submit.ts +0 -5
- package/.nuxt/b24ui/chat-prompt.ts +0 -35
- package/.nuxt/b24ui/checkbox-group.ts +0 -255
- package/.nuxt/b24ui/checkbox.ts +0 -195
- package/.nuxt/b24ui/chip.ts +0 -238
- package/.nuxt/b24ui/collapsible.ts +0 -6
- package/.nuxt/b24ui/color-picker.ts +0 -42
- package/.nuxt/b24ui/command-palette.ts +0 -56
- package/.nuxt/b24ui/container.ts +0 -3
- package/.nuxt/b24ui/content/content-search-button.ts +0 -6
- package/.nuxt/b24ui/content/content-search.ts +0 -13
- package/.nuxt/b24ui/content/content-surround.ts +0 -21
- package/.nuxt/b24ui/content/content-toc.ts +0 -41
- package/.nuxt/b24ui/context-menu.ts +0 -91
- package/.nuxt/b24ui/countdown.ts +0 -89
- package/.nuxt/b24ui/dashboard-group.ts +0 -3
- package/.nuxt/b24ui/dashboard-search-button.ts +0 -6
- package/.nuxt/b24ui/dashboard-search.ts +0 -13
- package/.nuxt/b24ui/description-list.ts +0 -67
- package/.nuxt/b24ui/dropdown-menu.ts +0 -166
- package/.nuxt/b24ui/empty.ts +0 -145
- package/.nuxt/b24ui/error.ts +0 -9
- package/.nuxt/b24ui/field-group.ts +0 -17
- package/.nuxt/b24ui/file-upload.ts +0 -241
- package/.nuxt/b24ui/form-field.ts +0 -58
- package/.nuxt/b24ui/form.ts +0 -3
- package/.nuxt/b24ui/index.ts +0 -88
- package/.nuxt/b24ui/input-menu.ts +0 -631
- package/.nuxt/b24ui/input-number.ts +0 -426
- package/.nuxt/b24ui/input-tags.ts +0 -412
- package/.nuxt/b24ui/input.ts +0 -386
- package/.nuxt/b24ui/kbd.ts +0 -33
- package/.nuxt/b24ui/link.ts +0 -22
- package/.nuxt/b24ui/modal.ts +0 -57
- package/.nuxt/b24ui/navbar-divider.ts +0 -5
- package/.nuxt/b24ui/navbar-section.ts +0 -5
- package/.nuxt/b24ui/navbar-spacer.ts +0 -5
- package/.nuxt/b24ui/navbar.ts +0 -5
- package/.nuxt/b24ui/navigation-menu.ts +0 -155
- package/.nuxt/b24ui/page-card.ts +0 -489
- package/.nuxt/b24ui/page-columns.ts +0 -3
- package/.nuxt/b24ui/page-grid.ts +0 -3
- package/.nuxt/b24ui/page-links.ts +0 -26
- package/.nuxt/b24ui/page-list.ts +0 -8
- package/.nuxt/b24ui/pagination.ts +0 -13
- package/.nuxt/b24ui/pin-input.ts +0 -152
- package/.nuxt/b24ui/popover.ts +0 -6
- package/.nuxt/b24ui/progress.ts +0 -289
- package/.nuxt/b24ui/prose/a.ts +0 -5
- package/.nuxt/b24ui/prose/accordion-item.ts +0 -3
- package/.nuxt/b24ui/prose/accordion.ts +0 -6
- package/.nuxt/b24ui/prose/badge.ts +0 -3
- package/.nuxt/b24ui/prose/blockquote.ts +0 -5
- package/.nuxt/b24ui/prose/callout.ts +0 -83
- package/.nuxt/b24ui/prose/card-group.ts +0 -3
- package/.nuxt/b24ui/prose/card.ts +0 -86
- package/.nuxt/b24ui/prose/code-collapse.ts +0 -19
- package/.nuxt/b24ui/prose/code-group.ts +0 -10
- package/.nuxt/b24ui/prose/code-icon.ts +0 -66
- package/.nuxt/b24ui/prose/code-preview.ts +0 -14
- package/.nuxt/b24ui/prose/code.ts +0 -75
- package/.nuxt/b24ui/prose/collapsible.ts +0 -9
- package/.nuxt/b24ui/prose/em.ts +0 -5
- package/.nuxt/b24ui/prose/field-group.ts +0 -3
- package/.nuxt/b24ui/prose/field.ts +0 -11
- package/.nuxt/b24ui/prose/h1.ts +0 -26
- package/.nuxt/b24ui/prose/h2.ts +0 -28
- package/.nuxt/b24ui/prose/h3.ts +0 -28
- package/.nuxt/b24ui/prose/h4.ts +0 -28
- package/.nuxt/b24ui/prose/h5.ts +0 -25
- package/.nuxt/b24ui/prose/h6.ts +0 -25
- package/.nuxt/b24ui/prose/hr.ts +0 -5
- package/.nuxt/b24ui/prose/img.ts +0 -23
- package/.nuxt/b24ui/prose/index.ts +0 -41
- package/.nuxt/b24ui/prose/kbd.ts +0 -3
- package/.nuxt/b24ui/prose/li.ts +0 -5
- package/.nuxt/b24ui/prose/ol.ts +0 -5
- package/.nuxt/b24ui/prose/p.ts +0 -30
- package/.nuxt/b24ui/prose/pre.ts +0 -17
- package/.nuxt/b24ui/prose/steps.ts +0 -19
- package/.nuxt/b24ui/prose/strong.ts +0 -5
- package/.nuxt/b24ui/prose/table.ts +0 -6
- package/.nuxt/b24ui/prose/tabs-item.ts +0 -3
- package/.nuxt/b24ui/prose/tabs.ts +0 -5
- package/.nuxt/b24ui/prose/tbody.ts +0 -5
- package/.nuxt/b24ui/prose/td.ts +0 -5
- package/.nuxt/b24ui/prose/th.ts +0 -5
- package/.nuxt/b24ui/prose/thead.ts +0 -5
- package/.nuxt/b24ui/prose/tr.ts +0 -5
- package/.nuxt/b24ui/prose/ul.ts +0 -5
- package/.nuxt/b24ui/radio-group.ts +0 -303
- package/.nuxt/b24ui/range.ts +0 -184
- package/.nuxt/b24ui/select-menu.ts +0 -554
- package/.nuxt/b24ui/select.ts +0 -533
- package/.nuxt/b24ui/separator.ts +0 -131
- package/.nuxt/b24ui/sidebar-body.ts +0 -15
- package/.nuxt/b24ui/sidebar-footer.ts +0 -5
- package/.nuxt/b24ui/sidebar-header.ts +0 -5
- package/.nuxt/b24ui/sidebar-heading.ts +0 -5
- package/.nuxt/b24ui/sidebar-layout.ts +0 -160
- package/.nuxt/b24ui/sidebar-section.ts +0 -5
- package/.nuxt/b24ui/sidebar-spacer.ts +0 -5
- package/.nuxt/b24ui/sidebar.ts +0 -5
- package/.nuxt/b24ui/skeleton.ts +0 -21
- package/.nuxt/b24ui/slideover.ts +0 -130
- package/.nuxt/b24ui/stepper.ts +0 -187
- package/.nuxt/b24ui/switch.ts +0 -139
- package/.nuxt/b24ui/table-wrapper.ts +0 -46
- package/.nuxt/b24ui/table.ts +0 -131
- package/.nuxt/b24ui/tabs.ts +0 -119
- package/.nuxt/b24ui/textarea.ts +0 -186
- package/.nuxt/b24ui/timeline.ts +0 -211
- package/.nuxt/b24ui/toast.ts +0 -95
- package/.nuxt/b24ui/toaster.ts +0 -91
- package/.nuxt/b24ui/tooltip.ts +0 -10
- package/.nuxt/b24ui/user.ts +0 -95
- package/.nuxt/b24ui.css +0 -5
package/dist/meta.d.mts
CHANGED
|
@@ -72446,7 +72446,7 @@ var B24UIMeta = {
|
|
|
72446
72446
|
],
|
|
72447
72447
|
"events": [],
|
|
72448
72448
|
"exposed": [],
|
|
72449
|
-
"hash": "
|
|
72449
|
+
"hash": "bDOluW3EIgFlO6spiuqNkUSXYTrphrkPEpv0JnNHVDo"
|
|
72450
72450
|
}
|
|
72451
72451
|
},
|
|
72452
72452
|
"B24Range": {
|
package/dist/meta.mjs
CHANGED
|
@@ -72446,7 +72446,7 @@ const B24UIMeta = {
|
|
|
72446
72446
|
],
|
|
72447
72447
|
"events": [],
|
|
72448
72448
|
"exposed": [],
|
|
72449
|
-
"hash": "
|
|
72449
|
+
"hash": "bDOluW3EIgFlO6spiuqNkUSXYTrphrkPEpv0JnNHVDo"
|
|
72450
72450
|
}
|
|
72451
72451
|
},
|
|
72452
72452
|
"B24Range": {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, v as version, n as name, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.
|
|
3
|
+
import { d as defaultOptions, v as version, n as name, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.CEMVb5Ee.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'node:fs/promises';
|
|
6
6
|
import 'pathe';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RadioGroupRootProps, RadioGroupRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/b24ui/radio-group';
|
|
4
|
-
import type { AcceptableValue, GetItemKeys, GetModelValue } from '../types/utils';
|
|
4
|
+
import type { AcceptableValue, GetItemKeys, GetModelValue, GetModelValueEmits } from '../types/utils';
|
|
5
5
|
import type { ComponentConfig } from '../types/tv';
|
|
6
6
|
type RadioGroup = ComponentConfig<typeof theme, AppConfig, 'radioGroup'>;
|
|
7
7
|
export type RadioGroupValue = AcceptableValue;
|
|
@@ -66,9 +66,9 @@ export interface RadioGroupProps<T extends RadioGroupItem[] = RadioGroupItem[],
|
|
|
66
66
|
class?: any;
|
|
67
67
|
b24ui?: RadioGroup['slots'];
|
|
68
68
|
}
|
|
69
|
-
export type RadioGroupEmits = RadioGroupRootEmits & {
|
|
69
|
+
export type RadioGroupEmits<T extends RadioGroupItem[] = RadioGroupItem[], VK extends GetItemKeys<T> = 'value'> = Omit<RadioGroupRootEmits, 'update:modelValue'> & {
|
|
70
70
|
change: [event: Event];
|
|
71
|
-
}
|
|
71
|
+
} & GetModelValueEmits<T, VK, false>;
|
|
72
72
|
type NormalizeItem<T extends RadioGroupItem> = Exclude<T & {
|
|
73
73
|
id: string;
|
|
74
74
|
}, RadioGroupValue>;
|
|
@@ -84,12 +84,12 @@ export interface RadioGroupSlots<T extends RadioGroupItem[] = RadioGroupItem[]>
|
|
|
84
84
|
declare const __VLS_export: <T extends RadioGroupItem[], VK extends GetItemKeys<T> = "value">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
85
85
|
props: __VLS_PrettifyLocal<RadioGroupProps<T, VK> & {
|
|
86
86
|
onChange?: ((event: Event) => any) | undefined;
|
|
87
|
-
"onUpdate:modelValue"?: ((
|
|
87
|
+
"onUpdate:modelValue"?: ((value: import("../types/utils").GetItemValue<T, VK, import("../types/utils").NestedItem<T>>) => any) | undefined;
|
|
88
88
|
}> & import("vue").PublicProps;
|
|
89
89
|
expose: (exposed: {}) => void;
|
|
90
90
|
attrs: any;
|
|
91
91
|
slots: RadioGroupSlots<T>;
|
|
92
|
-
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue",
|
|
92
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("../types/utils").GetItemValue<T, VK, import("../types/utils").NestedItem<T>>) => void);
|
|
93
93
|
}>) => import("vue").VNode & {
|
|
94
94
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
95
95
|
};
|
|
@@ -31,7 +31,7 @@ const props = defineProps({
|
|
|
31
31
|
name: { type: String, required: false },
|
|
32
32
|
required: { type: Boolean, required: false }
|
|
33
33
|
});
|
|
34
|
-
const emits = defineEmits(["
|
|
34
|
+
const emits = defineEmits(["change", "update:modelValue"]);
|
|
35
35
|
const slots = defineSlots();
|
|
36
36
|
const appConfig = useAppConfig();
|
|
37
37
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "loop", "required"), emits);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RadioGroupRootProps, RadioGroupRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/b24ui/radio-group';
|
|
4
|
-
import type { AcceptableValue, GetItemKeys, GetModelValue } from '../types/utils';
|
|
4
|
+
import type { AcceptableValue, GetItemKeys, GetModelValue, GetModelValueEmits } from '../types/utils';
|
|
5
5
|
import type { ComponentConfig } from '../types/tv';
|
|
6
6
|
type RadioGroup = ComponentConfig<typeof theme, AppConfig, 'radioGroup'>;
|
|
7
7
|
export type RadioGroupValue = AcceptableValue;
|
|
@@ -66,9 +66,9 @@ export interface RadioGroupProps<T extends RadioGroupItem[] = RadioGroupItem[],
|
|
|
66
66
|
class?: any;
|
|
67
67
|
b24ui?: RadioGroup['slots'];
|
|
68
68
|
}
|
|
69
|
-
export type RadioGroupEmits = RadioGroupRootEmits & {
|
|
69
|
+
export type RadioGroupEmits<T extends RadioGroupItem[] = RadioGroupItem[], VK extends GetItemKeys<T> = 'value'> = Omit<RadioGroupRootEmits, 'update:modelValue'> & {
|
|
70
70
|
change: [event: Event];
|
|
71
|
-
}
|
|
71
|
+
} & GetModelValueEmits<T, VK, false>;
|
|
72
72
|
type NormalizeItem<T extends RadioGroupItem> = Exclude<T & {
|
|
73
73
|
id: string;
|
|
74
74
|
}, RadioGroupValue>;
|
|
@@ -84,12 +84,12 @@ export interface RadioGroupSlots<T extends RadioGroupItem[] = RadioGroupItem[]>
|
|
|
84
84
|
declare const __VLS_export: <T extends RadioGroupItem[], VK extends GetItemKeys<T> = "value">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
85
85
|
props: __VLS_PrettifyLocal<RadioGroupProps<T, VK> & {
|
|
86
86
|
onChange?: ((event: Event) => any) | undefined;
|
|
87
|
-
"onUpdate:modelValue"?: ((
|
|
87
|
+
"onUpdate:modelValue"?: ((value: import("../types/utils").GetItemValue<T, VK, import("../types/utils").NestedItem<T>>) => any) | undefined;
|
|
88
88
|
}> & import("vue").PublicProps;
|
|
89
89
|
expose: (exposed: {}) => void;
|
|
90
90
|
attrs: any;
|
|
91
91
|
slots: RadioGroupSlots<T>;
|
|
92
|
-
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue",
|
|
92
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("../types/utils").GetItemValue<T, VK, import("../types/utils").NestedItem<T>>) => void);
|
|
93
93
|
}>) => import("vue").VNode & {
|
|
94
94
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
95
95
|
};
|
|
@@ -4,11 +4,11 @@ import { join } from 'pathe';
|
|
|
4
4
|
import { globSync } from 'tinyglobby';
|
|
5
5
|
import { kebabCase, camelCase, pascalCase } from 'scule';
|
|
6
6
|
import { genExport } from 'knitwork';
|
|
7
|
-
import { addTypeTemplate, addTemplate, updateTemplates,
|
|
7
|
+
import { hasNuxtModule, addTypeTemplate, addTemplate, updateTemplates, logger } from '@nuxt/kit';
|
|
8
8
|
import { defuFn } from 'defu';
|
|
9
9
|
|
|
10
10
|
const name = "@bitrix24/b24ui-nuxt";
|
|
11
|
-
const version = "2.0.
|
|
11
|
+
const version = "2.0.8";
|
|
12
12
|
|
|
13
13
|
const getDefaultUiConfig = () => ({});
|
|
14
14
|
const defaultOptions = {
|
|
@@ -10142,7 +10142,9 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
10142
10142
|
}
|
|
10143
10143
|
return sources || '@source "./b24ui";';
|
|
10144
10144
|
}
|
|
10145
|
-
|
|
10145
|
+
const forNuxt = !!nuxt && (hasNuxtModule("@nuxtjs/mdc") || options.mdc || (hasNuxtModule("@nuxt/content") || options.content));
|
|
10146
|
+
const forVue = !nuxt && options.mdc;
|
|
10147
|
+
if (forNuxt || forVue) {
|
|
10146
10148
|
hasProse = true;
|
|
10147
10149
|
const path = "prose";
|
|
10148
10150
|
writeThemeTemplate(themeProse, path);
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,9 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.CEMVb5Ee.mjs';
|
|
7
|
+
import fs from 'node:fs';
|
|
8
|
+
import path from 'node:path';
|
|
7
9
|
import MagicString from 'magic-string';
|
|
8
10
|
import { genSafeVariableName } from 'knitwork';
|
|
9
11
|
import { resolvePathSync } from 'mlly';
|
|
@@ -17,9 +19,35 @@ import '@nuxt/kit';
|
|
|
17
19
|
function TemplatePlugin(options, appConfig) {
|
|
18
20
|
const templates = getTemplates(options, appConfig.b24ui);
|
|
19
21
|
const templateKeys = new Set(templates.map((t) => `#build/${t.filename}`));
|
|
22
|
+
async function writeTemplates(root) {
|
|
23
|
+
const map = {};
|
|
24
|
+
const dir = path.join(root, "node_modules", ".b24ui-nuxt");
|
|
25
|
+
for (const template of templates) {
|
|
26
|
+
if (!template.write || !template.filename) {
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
const filePath = path.join(dir, template.filename);
|
|
30
|
+
if (!fs.existsSync(path.dirname(filePath))) {
|
|
31
|
+
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
32
|
+
}
|
|
33
|
+
fs.writeFileSync(filePath, await template.getContents({}));
|
|
34
|
+
map[`#build/${template.filename}`] = filePath;
|
|
35
|
+
}
|
|
36
|
+
return map;
|
|
37
|
+
}
|
|
20
38
|
return {
|
|
21
39
|
name: "bitrix24:b24ui:templates",
|
|
22
40
|
enforce: "pre",
|
|
41
|
+
vite: {
|
|
42
|
+
async config(config) {
|
|
43
|
+
const alias = await writeTemplates(config.root || process.cwd());
|
|
44
|
+
return {
|
|
45
|
+
resolve: {
|
|
46
|
+
alias
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
},
|
|
23
51
|
resolveId(id) {
|
|
24
52
|
if (templateKeys.has(id + ".ts")) {
|
|
25
53
|
return id.replace("#build/", "virtual:bitrix24-ui-templates/") + ".ts";
|
package/dist/vite.mjs
CHANGED
|
@@ -4,12 +4,14 @@ import 'pathe';
|
|
|
4
4
|
import 'unplugin';
|
|
5
5
|
import 'defu';
|
|
6
6
|
import '@tailwindcss/vite';
|
|
7
|
-
import './shared/b24ui-nuxt.
|
|
7
|
+
import './shared/b24ui-nuxt.CEMVb5Ee.mjs';
|
|
8
8
|
import 'node:fs/promises';
|
|
9
9
|
import 'tinyglobby';
|
|
10
10
|
import 'scule';
|
|
11
11
|
import 'knitwork';
|
|
12
12
|
import '@nuxt/kit';
|
|
13
|
+
import 'node:fs';
|
|
14
|
+
import 'node:path';
|
|
13
15
|
import 'magic-string';
|
|
14
16
|
import 'mlly';
|
|
15
17
|
import 'unplugin-vue-components';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrix24/b24ui-nuxt",
|
|
3
3
|
"description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.8",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -80,10 +80,6 @@
|
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
"imports": {
|
|
84
|
-
"#build/b24ui/*": "./.nuxt/b24ui/*.ts",
|
|
85
|
-
"#build/b24ui.css": "./.nuxt/b24ui.css"
|
|
86
|
-
},
|
|
87
83
|
"bin": {
|
|
88
84
|
"bitrix24-ui": "./cli/index.mjs"
|
|
89
85
|
},
|
|
@@ -93,8 +89,6 @@
|
|
|
93
89
|
"README.md",
|
|
94
90
|
"README-AI.md",
|
|
95
91
|
"LICENSE",
|
|
96
|
-
".nuxt/b24ui",
|
|
97
|
-
".nuxt/b24ui.css",
|
|
98
92
|
"dist",
|
|
99
93
|
"cli",
|
|
100
94
|
"vue-plugin.d.ts"
|
|
@@ -203,7 +197,6 @@
|
|
|
203
197
|
"@bitrix24/b24ui-nuxt": "workspace:*",
|
|
204
198
|
"debug": "4.3.7",
|
|
205
199
|
"typescript": "5.8.3",
|
|
206
|
-
"unimport": "4.1.1",
|
|
207
200
|
"unplugin": "^2.3.10"
|
|
208
201
|
},
|
|
209
202
|
"keywords": [
|
package/.nuxt/b24ui/accordion.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
"slots": {
|
|
3
|
-
"root": "w-full",
|
|
4
|
-
"item": "text-(--b24ui-typography-label-color) border-b border-(--ui-color-divider-vibrant-accent-more) last:border-b-0",
|
|
5
|
-
"header": "flex",
|
|
6
|
-
"trigger": "min-w-0 group flex-1 flex items-center gap-1.5 py-[12px] font-(--ui-font-weight-medium) text-(length:--ui-font-size-sm) leading-[20px] focus-visible:outline-(--ui-color-accent-soft-element-blue) cursor-pointer",
|
|
7
|
-
"content": "motion-safe:data-[state=open]:animate-[accordion-down_200ms_ease-out] motion-safe:data-[state=closed]:animate-[accordion-up_200ms_ease-out] overflow-hidden focus:outline-none",
|
|
8
|
-
"body": "text-(length:--ui-font-size-sm) pb-[12px]",
|
|
9
|
-
"leadingIcon": "shrink-0 size-[20px]",
|
|
10
|
-
"trailingIcon": "shrink-0 size-[20px] ms-auto group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
11
|
-
"label": "text-start break-words"
|
|
12
|
-
},
|
|
13
|
-
"variants": {
|
|
14
|
-
"disabled": {
|
|
15
|
-
"true": {
|
|
16
|
-
"trigger": "cursor-not-allowed opacity-75"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
package/.nuxt/b24ui/advice.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const angle = [
|
|
2
|
-
"top",
|
|
3
|
-
"bottom"
|
|
4
|
-
] as const
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
"slots": {
|
|
8
|
-
"root": "light style-outline-accent-1 flex items-end",
|
|
9
|
-
"descriptionWrapper": "relative",
|
|
10
|
-
"descriptionBorder": "fill-(--b24ui-border-color)",
|
|
11
|
-
"descriptionBg": "fill-(--b24ui-background) dark:fill-(--ui-color-base-6)",
|
|
12
|
-
"descriptionAngle": "absolute w-[14px] h-[12px]",
|
|
13
|
-
"description": "grow w-11/12 py-3 px-md2 ms-2 rounded-[23px] font-[family-name:var(--ui-font-family-secondary)] text-(length:--ui-font-size-md)/(--ui-font-line-height-md) font-(--ui-font-weight-normal) border-1 border-(--b24ui-border-color) bg-(--b24ui-background) text-(--b24ui-color) dark:bg-(--ui-color-base-6)",
|
|
14
|
-
"leading": "me-1.5 ms-2 font-(--ui-font-weight-medium) text-(--ui-color-design-plain-content-icon-secondary)",
|
|
15
|
-
"leadingIcon": "shrink-0 size-[42px]",
|
|
16
|
-
"leadingAvatar": "shrink-0",
|
|
17
|
-
"leadingAvatarIcon": "text-(--b24ui-typography-label-color) bg-(--ui-color-base-8)",
|
|
18
|
-
"leadingAvatarSize": "lg"
|
|
19
|
-
},
|
|
20
|
-
"variants": {
|
|
21
|
-
"angle": {
|
|
22
|
-
"top": {
|
|
23
|
-
"root": "items-start",
|
|
24
|
-
"leading": "mt-0.5",
|
|
25
|
-
"descriptionAngle": "start-[0.8px] top-[9px] scale-x-100 -scale-y-100 rtl:-scale-x-100"
|
|
26
|
-
},
|
|
27
|
-
"bottom": {
|
|
28
|
-
"root": "items-end",
|
|
29
|
-
"descriptionAngle": "start-[0.8px] bottom-[9px] rtl:-scale-x-100"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"defaultVariants": {
|
|
34
|
-
"angle": "bottom" as typeof angle[number]
|
|
35
|
-
}
|
|
36
|
-
}
|
package/.nuxt/b24ui/alert.ts
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
const color = [
|
|
2
|
-
"air-primary",
|
|
3
|
-
"air-primary-success",
|
|
4
|
-
"air-primary-alert",
|
|
5
|
-
"air-primary-copilot",
|
|
6
|
-
"air-primary-warning",
|
|
7
|
-
"air-secondary",
|
|
8
|
-
"air-secondary-alert",
|
|
9
|
-
"air-secondary-accent",
|
|
10
|
-
"air-secondary-accent-1",
|
|
11
|
-
"air-secondary-accent-2",
|
|
12
|
-
"air-tertiary",
|
|
13
|
-
"default",
|
|
14
|
-
"danger",
|
|
15
|
-
"success",
|
|
16
|
-
"warning",
|
|
17
|
-
"primary",
|
|
18
|
-
"secondary",
|
|
19
|
-
"collab",
|
|
20
|
-
"ai"
|
|
21
|
-
] as const
|
|
22
|
-
|
|
23
|
-
const size = [
|
|
24
|
-
"sm",
|
|
25
|
-
"md"
|
|
26
|
-
] as const
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
"slots": {
|
|
30
|
-
"root": "relative overflow-hidden w-full flex text-(--b24ui-color) bg-(--b24ui-background) border-(--b24ui-border-color) border-(length:--b24ui-border-width) rounded-(--ui-border-radius-md)",
|
|
31
|
-
"wrapper": "min-w-0 flex-1 flex flex-col font-[family-name:var(--ui-font-family-primary)]",
|
|
32
|
-
"title": "font-(--ui-font-weight-bold)",
|
|
33
|
-
"description": "",
|
|
34
|
-
"icon": "shrink-0 size-6",
|
|
35
|
-
"avatar": "shrink-0",
|
|
36
|
-
"avatarSize": "",
|
|
37
|
-
"actions": "flex flex-wrap gap-1.5 shrink-0",
|
|
38
|
-
"close": "p-0 [--ui-btn-color:var(--b24ui-color)] hover:bg-(--ui-color-base-white-fixed)/10 focus-visible:bg-(--ui-color-base-white-fixed)/10 -me-1.5 lg:me-0"
|
|
39
|
-
},
|
|
40
|
-
"variants": {
|
|
41
|
-
"color": {
|
|
42
|
-
"air-primary": {
|
|
43
|
-
"root": "style-filled"
|
|
44
|
-
},
|
|
45
|
-
"air-primary-success": {
|
|
46
|
-
"root": "style-filled-success"
|
|
47
|
-
},
|
|
48
|
-
"air-primary-alert": {
|
|
49
|
-
"root": "style-filled-alert"
|
|
50
|
-
},
|
|
51
|
-
"air-primary-copilot": {
|
|
52
|
-
"root": "style-filled-copilot"
|
|
53
|
-
},
|
|
54
|
-
"air-primary-warning": {
|
|
55
|
-
"root": "style-filled-warning"
|
|
56
|
-
},
|
|
57
|
-
"air-secondary": {
|
|
58
|
-
"root": "style-tinted"
|
|
59
|
-
},
|
|
60
|
-
"air-secondary-alert": {
|
|
61
|
-
"root": "style-tinted-alert"
|
|
62
|
-
},
|
|
63
|
-
"air-secondary-accent": {
|
|
64
|
-
"root": "style-outline"
|
|
65
|
-
},
|
|
66
|
-
"air-secondary-accent-1": {
|
|
67
|
-
"root": "style-outline-accent-1"
|
|
68
|
-
},
|
|
69
|
-
"air-secondary-accent-2": {
|
|
70
|
-
"root": "style-outline-accent-2"
|
|
71
|
-
},
|
|
72
|
-
"air-tertiary": {
|
|
73
|
-
"root": "style-outline-no-accent"
|
|
74
|
-
},
|
|
75
|
-
"default": {
|
|
76
|
-
"root": "style-old-default"
|
|
77
|
-
},
|
|
78
|
-
"danger": {
|
|
79
|
-
"root": "style-old-danger"
|
|
80
|
-
},
|
|
81
|
-
"success": {
|
|
82
|
-
"root": "style-old-success"
|
|
83
|
-
},
|
|
84
|
-
"warning": {
|
|
85
|
-
"root": "style-old-warning"
|
|
86
|
-
},
|
|
87
|
-
"primary": {
|
|
88
|
-
"root": "style-old-primary"
|
|
89
|
-
},
|
|
90
|
-
"secondary": {
|
|
91
|
-
"root": "style-old-secondary"
|
|
92
|
-
},
|
|
93
|
-
"collab": {
|
|
94
|
-
"root": "style-old-collab"
|
|
95
|
-
},
|
|
96
|
-
"ai": {
|
|
97
|
-
"root": "style-old-ai"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"size": {
|
|
101
|
-
"sm": {
|
|
102
|
-
"root": "py-xs ps-sm pe-xs gap-2",
|
|
103
|
-
"title": "text-(length:--ui-font-size-sm)/(--ui-font-line-height-lg)",
|
|
104
|
-
"description": "text-(length:--ui-font-size-sm)/(--ui-font-line-height-lg)",
|
|
105
|
-
"avatarSize": "md"
|
|
106
|
-
},
|
|
107
|
-
"md": {
|
|
108
|
-
"root": "py-md ps-md pe-xs gap-2.5",
|
|
109
|
-
"title": "text-(length:--ui-font-size-md)/(--ui-font-line-height-reset)",
|
|
110
|
-
"description": "text-(length:--ui-font-size-md)/(--ui-font-line-height-3xs)",
|
|
111
|
-
"avatarSize": "xl"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"orientation": {
|
|
115
|
-
"horizontal": {
|
|
116
|
-
"root": "items-center",
|
|
117
|
-
"actions": "items-center"
|
|
118
|
-
},
|
|
119
|
-
"vertical": {
|
|
120
|
-
"root": "items-start",
|
|
121
|
-
"actions": "items-start mt-2"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"title": {
|
|
125
|
-
"true": {
|
|
126
|
-
"description": "mt-1"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"inverted": {
|
|
130
|
-
"true": "",
|
|
131
|
-
"false": ""
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"compoundVariants": [
|
|
135
|
-
{
|
|
136
|
-
"inverted": true,
|
|
137
|
-
"color": "air-primary" as typeof color[number],
|
|
138
|
-
"class": {
|
|
139
|
-
"root": "style-filled-inverted"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"inverted": true,
|
|
144
|
-
"color": "air-primary-success" as typeof color[number],
|
|
145
|
-
"class": {
|
|
146
|
-
"root": "style-filled-success-inverted"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"inverted": true,
|
|
151
|
-
"color": "air-primary-alert" as typeof color[number],
|
|
152
|
-
"class": {
|
|
153
|
-
"root": "style-filled-alert-inverted"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"inverted": true,
|
|
158
|
-
"color": "air-primary-copilot" as typeof color[number],
|
|
159
|
-
"class": {
|
|
160
|
-
"root": "style-filled-copilot-inverted"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"inverted": true,
|
|
165
|
-
"color": "air-primary-warning" as typeof color[number],
|
|
166
|
-
"class": {
|
|
167
|
-
"root": "style-filled-warning-inverted"
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
"defaultVariants": {
|
|
172
|
-
"color": "air-secondary-accent" as typeof color[number],
|
|
173
|
-
"size": "md" as typeof size[number],
|
|
174
|
-
"inverted": false
|
|
175
|
-
}
|
|
176
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const size = [
|
|
2
|
-
"3xs",
|
|
3
|
-
"2xs",
|
|
4
|
-
"xs",
|
|
5
|
-
"sm",
|
|
6
|
-
"md",
|
|
7
|
-
"lg",
|
|
8
|
-
"xl",
|
|
9
|
-
"2xl",
|
|
10
|
-
"3xl"
|
|
11
|
-
] as const
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
"slots": {
|
|
15
|
-
"root": "inline-flex justify-end",
|
|
16
|
-
"base": "relative rounded-full last:me-0"
|
|
17
|
-
},
|
|
18
|
-
"variants": {
|
|
19
|
-
"size": {
|
|
20
|
-
"3xs": {
|
|
21
|
-
"base": "-me-0.5"
|
|
22
|
-
},
|
|
23
|
-
"2xs": {
|
|
24
|
-
"base": "-me-0.5"
|
|
25
|
-
},
|
|
26
|
-
"xs": {
|
|
27
|
-
"base": "-me-0.5"
|
|
28
|
-
},
|
|
29
|
-
"sm": {
|
|
30
|
-
"base": "-me-1.5"
|
|
31
|
-
},
|
|
32
|
-
"md": {
|
|
33
|
-
"base": "-me-1.5"
|
|
34
|
-
},
|
|
35
|
-
"lg": {
|
|
36
|
-
"base": "-me-1.5"
|
|
37
|
-
},
|
|
38
|
-
"xl": {
|
|
39
|
-
"base": "-me-2"
|
|
40
|
-
},
|
|
41
|
-
"2xl": {
|
|
42
|
-
"base": "-me-2"
|
|
43
|
-
},
|
|
44
|
-
"3xl": {
|
|
45
|
-
"base": "-me-2"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"defaultVariants": {
|
|
50
|
-
"size": "md" as typeof size[number]
|
|
51
|
-
}
|
|
52
|
-
}
|
package/.nuxt/b24ui/avatar.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
const size = [
|
|
2
|
-
"3xs",
|
|
3
|
-
"2xs",
|
|
4
|
-
"xs",
|
|
5
|
-
"sm",
|
|
6
|
-
"md",
|
|
7
|
-
"lg",
|
|
8
|
-
"xl",
|
|
9
|
-
"2xl",
|
|
10
|
-
"3xl"
|
|
11
|
-
] as const
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
"slots": {
|
|
15
|
-
"root": "air-secondary-accent inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-(--ui-color-base-8) ring ring-(--ui-color-base-7)",
|
|
16
|
-
"image": "h-full w-full rounded-[inherit] object-cover",
|
|
17
|
-
"fallback": "font-(--ui-font-weight-medium) text-(--ui-color-design-plain-content-icon-secondary) truncate",
|
|
18
|
-
"icon": "text-(--ui-color-design-plain-content-icon-secondary) shrink-0"
|
|
19
|
-
},
|
|
20
|
-
"variants": {
|
|
21
|
-
"size": {
|
|
22
|
-
"3xs": {
|
|
23
|
-
"root": "size-[10px] text-4xs font-(--ui-font-weight-regular)",
|
|
24
|
-
"icon": "size-[10px]"
|
|
25
|
-
},
|
|
26
|
-
"2xs": {
|
|
27
|
-
"root": "size-[20px] text-(length:--ui-font-size-4xs)/(--ui-font-line-height-reset) font-(--ui-font-weight-regular)",
|
|
28
|
-
"icon": "size-[18px]"
|
|
29
|
-
},
|
|
30
|
-
"xs": {
|
|
31
|
-
"root": "size-[24px] text-(length:--ui-font-size-3xs)/(--ui-font-line-height-reset) font-(--ui-font-weight-regular)",
|
|
32
|
-
"icon": "size-[22px]"
|
|
33
|
-
},
|
|
34
|
-
"sm": {
|
|
35
|
-
"root": "size-[28px] text-(length:--ui-font-size-xs)/(--ui-font-line-height-reset)",
|
|
36
|
-
"icon": "size-[26px]"
|
|
37
|
-
},
|
|
38
|
-
"md": {
|
|
39
|
-
"root": "size-[32px] text-(length:--ui-font-size-sm)/(--ui-font-line-height-reset)",
|
|
40
|
-
"icon": "size-[28px]"
|
|
41
|
-
},
|
|
42
|
-
"lg": {
|
|
43
|
-
"root": "size-[42px] text-(length:--ui-font-size-2xl)/(--ui-font-line-height-reset)",
|
|
44
|
-
"icon": "size-[38px]"
|
|
45
|
-
},
|
|
46
|
-
"xl": {
|
|
47
|
-
"root": "ring-2 size-[48px] text-(length:--ui-font-size-2xl)/(--ui-font-line-height-reset)",
|
|
48
|
-
"icon": "size-[44px]"
|
|
49
|
-
},
|
|
50
|
-
"2xl": {
|
|
51
|
-
"root": "ring-2 size-[60px] text-(length:--ui-font-size-5xl)/(--ui-font-line-height-reset)",
|
|
52
|
-
"icon": "size-[56px]"
|
|
53
|
-
},
|
|
54
|
-
"3xl": {
|
|
55
|
-
"root": "ring-2 size-[94px] text-[34px]/(--ui-font-line-height-reset)",
|
|
56
|
-
"icon": "size-[90px]"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"defaultVariants": {
|
|
61
|
-
"size": "md" as typeof size[number]
|
|
62
|
-
}
|
|
63
|
-
}
|