@bitrix24/b24ui-nuxt 0.3.1 → 0.3.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.css +3 -2
- package/README.md +2 -12
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/composables/useConfetti.d.ts +17 -0
- package/dist/runtime/composables/useConfetti.js +11 -0
- package/dist/runtime/types/index.d.ts +1 -1
- package/dist/runtime/types/index.js +1 -1
- package/dist/shared/{b24ui-nuxt.CxFyzKH7.mjs → b24ui-nuxt.BTln9cW-.mjs} +3 -2
- package/dist/shared/{b24ui-nuxt.DkKTVBhL.cjs → b24ui-nuxt.ngV6AJEg.cjs} +3 -2
- package/dist/unplugin.cjs +3 -3
- package/dist/unplugin.mjs +3 -3
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +3 -1
package/.nuxt/b24ui.css
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
1
|
+
@source "./b24ui";
|
|
2
|
+
|
|
3
|
+
@theme default static {}
|
package/README.md
CHANGED
|
@@ -39,13 +39,8 @@ export default defineNuxtConfig({
|
|
|
39
39
|
2. Import Tailwind CSS and Bitrix24 UI in your CSS:
|
|
40
40
|
|
|
41
41
|
```css [assets/css/main.css]
|
|
42
|
-
@import "tailwindcss";
|
|
42
|
+
@import "tailwindcss" theme(static);
|
|
43
43
|
@import "@bitrix24/b24ui-nuxt";
|
|
44
|
-
/**
|
|
45
|
-
* @see https://github.com/tailwindlabs/tailwindcss/issues/16733#issuecomment-2676450404
|
|
46
|
-
*/
|
|
47
|
-
@source "../../../node_modules/@bitrix24/b24ui-nuxt/.nuxt";
|
|
48
|
-
@source "../../../node_modules/@bitrix24/b24ui-nuxt/dist";
|
|
49
44
|
```
|
|
50
45
|
|
|
51
46
|
Learn more in the [installation guide](https://bitrix24.github.io/b24ui/guide/installation-nuxt-app.html).
|
|
@@ -90,13 +85,8 @@ app.mount('#app')
|
|
|
90
85
|
3. Import Tailwind CSS and Bitrix24 UI in your CSS:
|
|
91
86
|
|
|
92
87
|
```css [assets/main.css]
|
|
93
|
-
@import "tailwindcss";
|
|
88
|
+
@import "tailwindcss" theme(static);
|
|
94
89
|
@import "@bitrix24/b24ui-nuxt";
|
|
95
|
-
/**
|
|
96
|
-
* @see https://github.com/tailwindlabs/tailwindcss/issues/16733#issuecomment-2676450404
|
|
97
|
-
*/
|
|
98
|
-
@source "../../node_modules/@bitrix24/b24ui-nuxt/.nuxt";
|
|
99
|
-
@source "../../node_modules/@bitrix24/b24ui-nuxt/dist";
|
|
100
90
|
```
|
|
101
91
|
|
|
102
92
|
Learn more in the [installation guide](https://bitrix24.github.io/b24ui/guide/installation-vue.html).
|
package/dist/module.cjs
CHANGED
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, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.
|
|
3
|
+
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.BTln9cW-.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Confetti
|
|
3
|
+
* Performant confetti animation in the browser
|
|
4
|
+
* ---
|
|
5
|
+
* @link https://github.com/catdad/canvas-confetti
|
|
6
|
+
* @link https://www.kirilv.com/canvas-confetti/
|
|
7
|
+
* @link /api_d7/bitrix/ui/confetti/index.php
|
|
8
|
+
* @see bitrix/js/ui/confetti
|
|
9
|
+
*/
|
|
10
|
+
import confetti from 'canvas-confetti';
|
|
11
|
+
import type { CreateTypes, GlobalOptions } from 'canvas-confetti';
|
|
12
|
+
declare function _useConfetti(): {
|
|
13
|
+
fire: (options?: confetti.Options) => Promise<undefined> | null;
|
|
14
|
+
create: (canvas?: HTMLCanvasElement, options?: GlobalOptions) => CreateTypes;
|
|
15
|
+
};
|
|
16
|
+
export declare const useConfetti: typeof _useConfetti;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import confetti from "canvas-confetti";
|
|
2
|
+
import { createSharedComposable } from "@vueuse/core";
|
|
3
|
+
function _useConfetti() {
|
|
4
|
+
const fire = confetti;
|
|
5
|
+
const create = confetti.create;
|
|
6
|
+
return {
|
|
7
|
+
fire,
|
|
8
|
+
create
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export const useConfetti = createSharedComposable(_useConfetti);
|
|
@@ -36,6 +36,6 @@ export * from '../components/Tooltip.vue';
|
|
|
36
36
|
export * from '../components/content/DescriptionList.vue';
|
|
37
37
|
export * from '../components/prose/TableWrapper.vue';
|
|
38
38
|
export * from './form';
|
|
39
|
-
export * from './locale';
|
|
40
39
|
export * from './icons';
|
|
40
|
+
export * from './locale';
|
|
41
41
|
export * from './utils';
|
|
@@ -36,6 +36,6 @@ export * from "../components/Tooltip.vue";
|
|
|
36
36
|
export * from "../components/content/DescriptionList.vue";
|
|
37
37
|
export * from "../components/prose/TableWrapper.vue";
|
|
38
38
|
export * from "./form.js";
|
|
39
|
-
export * from "./locale.js";
|
|
40
39
|
export * from "./icons.js";
|
|
40
|
+
export * from "./locale.js";
|
|
41
41
|
export * from "./utils.js";
|
|
@@ -5333,8 +5333,9 @@ function getTemplates(options) {
|
|
|
5333
5333
|
templates.push({
|
|
5334
5334
|
filename: "b24ui.css",
|
|
5335
5335
|
write: true,
|
|
5336
|
-
getContents: () => `@
|
|
5337
|
-
|
|
5336
|
+
getContents: () => `@source "./b24ui";
|
|
5337
|
+
|
|
5338
|
+
@theme default static {}
|
|
5338
5339
|
`
|
|
5339
5340
|
});
|
|
5340
5341
|
templates.push({
|
|
@@ -5335,8 +5335,9 @@ function getTemplates(options) {
|
|
|
5335
5335
|
templates.push({
|
|
5336
5336
|
filename: "b24ui.css",
|
|
5337
5337
|
write: true,
|
|
5338
|
-
getContents: () => `@
|
|
5339
|
-
|
|
5338
|
+
getContents: () => `@source "./b24ui";
|
|
5339
|
+
|
|
5340
|
+
@theme default static {}
|
|
5340
5341
|
`
|
|
5341
5342
|
});
|
|
5342
5343
|
templates.push({
|
package/dist/unplugin.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const pathe = require('pathe');
|
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
6
|
const defu = require('defu');
|
|
7
7
|
const tailwind = require('@tailwindcss/vite');
|
|
8
|
-
const templates = require('./shared/b24ui-nuxt.
|
|
8
|
+
const templates = require('./shared/b24ui-nuxt.ngV6AJEg.cjs');
|
|
9
9
|
const tinyglobby = require('tinyglobby');
|
|
10
10
|
const knitwork = require('knitwork');
|
|
11
11
|
const MagicString = require('magic-string');
|
|
@@ -217,10 +217,10 @@ const Bitrix24UIPlugin = unplugin.createUnplugin((_options = {}, meta) => {
|
|
|
217
217
|
configResolved(config) {
|
|
218
218
|
const plugins = config.plugins || [];
|
|
219
219
|
if (plugins.filter((i) => i.name === "unplugin-auto-import").length > 1) {
|
|
220
|
-
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-auto-import` detected.
|
|
220
|
+
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-auto-import` detected. Bitrix24 UI includes `unplugin-auto-import` already, and you can configure it using `autoImport` option in Bitrix24 UI module options.");
|
|
221
221
|
}
|
|
222
222
|
if (plugins.filter((i) => i.name === "unplugin-vue-components").length > 1) {
|
|
223
|
-
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-vue-components` detected.
|
|
223
|
+
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-vue-components` detected. Bitrix24 UI includes `unplugin-vue-components` already, and you can configure it using `components` option in Bitrix24 UI module options.");
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
}
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ 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.BTln9cW-.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
|
@@ -207,10 +207,10 @@ const Bitrix24UIPlugin = createUnplugin((_options = {}, meta) => {
|
|
|
207
207
|
configResolved(config) {
|
|
208
208
|
const plugins = config.plugins || [];
|
|
209
209
|
if (plugins.filter((i) => i.name === "unplugin-auto-import").length > 1) {
|
|
210
|
-
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-auto-import` detected.
|
|
210
|
+
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-auto-import` detected. Bitrix24 UI includes `unplugin-auto-import` already, and you can configure it using `autoImport` option in Bitrix24 UI module options.");
|
|
211
211
|
}
|
|
212
212
|
if (plugins.filter((i) => i.name === "unplugin-vue-components").length > 1) {
|
|
213
|
-
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-vue-components` detected.
|
|
213
|
+
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-vue-components` detected. Bitrix24 UI includes `unplugin-vue-components` already, and you can configure it using `components` option in Bitrix24 UI module options.");
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
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": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"@unhead/vue": "^1.11.19",
|
|
78
78
|
"@vueuse/core": "^12.7.0",
|
|
79
79
|
"@vueuse/integrations": "^12.7.0",
|
|
80
|
+
"canvas-confetti": "^1.9.3",
|
|
80
81
|
"colortranslator": "^4.1.0",
|
|
81
82
|
"consola": "^3.4.0",
|
|
82
83
|
"defu": "^6.1.4",
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
"vaul-vue": "^0.3.0"
|
|
106
107
|
},
|
|
107
108
|
"devDependencies": {
|
|
109
|
+
"@types/canvas-confetti": "^1.9.0",
|
|
108
110
|
"@nuxt/eslint-config": "^1.1.0",
|
|
109
111
|
"@nuxt/module-builder": "^0.8.4",
|
|
110
112
|
"@nuxt/test-utils": "^3.17.0",
|