@bitrix24/b24ui-nuxt 0.3.4 → 0.4.0
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/button.ts +2 -1
- package/.nuxt/b24ui/toaster.ts +1 -1
- package/dist/meta.cjs +262 -262
- package/dist/meta.d.cts +262 -262
- package/dist/meta.d.mts +262 -262
- package/dist/meta.d.ts +262 -262
- package/dist/meta.mjs +262 -262
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/OverlayProvider.vue +2 -2
- package/dist/runtime/composables/useOverlay.js +1 -1
- package/dist/shared/{b24ui-nuxt.BpFAFOHo.cjs → b24ui-nuxt.BT9wxrhm.cjs} +9 -2
- package/dist/shared/{b24ui-nuxt.BqTJ-9uP.mjs → b24ui-nuxt.CBO0gAWn.mjs} +9 -2
- package/dist/unplugin.cjs +2 -2
- package/dist/unplugin.mjs +2 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +7 -6
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.CBO0gAWn.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
|
-
import { useOverlay } from '../composables/useOverlay'
|
|
3
|
+
import { useOverlay, type Overlay } from '../composables/useOverlay'
|
|
4
4
|
|
|
5
5
|
const { overlays, unMount, close } = useOverlay()
|
|
6
6
|
|
|
7
|
-
const mountedOverlays = computed(() => overlays.filter(overlay => overlay.isMounted))
|
|
7
|
+
const mountedOverlays = computed(() => overlays.filter((overlay: Overlay) => overlay.isMounted))
|
|
8
8
|
|
|
9
9
|
const onAfterLeave = (id: symbol) => {
|
|
10
10
|
close(id)
|
|
@@ -715,6 +715,12 @@ const badge = {
|
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
717
|
|
|
718
|
+
const safeList = [
|
|
719
|
+
"h-full w-full absolute inset-0 flex flex-row flex-nowrap items-center justify-center",
|
|
720
|
+
"w-[28px] h-[28px]",
|
|
721
|
+
"size-lg animate-spin stroke-2",
|
|
722
|
+
"invisible"
|
|
723
|
+
].join(" ");
|
|
718
724
|
const button = {
|
|
719
725
|
slots: {
|
|
720
726
|
base: [
|
|
@@ -732,7 +738,8 @@ const button = {
|
|
|
732
738
|
leadingIcon: "shrink-0",
|
|
733
739
|
leadingAvatar: "shrink-0",
|
|
734
740
|
leadingAvatarSize: "",
|
|
735
|
-
trailingIcon: "shrink-0"
|
|
741
|
+
trailingIcon: "shrink-0",
|
|
742
|
+
safeList
|
|
736
743
|
},
|
|
737
744
|
variants: {
|
|
738
745
|
...buttonGroupVariant,
|
|
@@ -5065,7 +5072,7 @@ const toast = {
|
|
|
5065
5072
|
|
|
5066
5073
|
const toaster = {
|
|
5067
5074
|
slots: {
|
|
5068
|
-
viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
|
|
5075
|
+
viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none mr-(--scrollbar-width)",
|
|
5069
5076
|
base: "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
|
|
5070
5077
|
},
|
|
5071
5078
|
variants: {
|
|
@@ -713,6 +713,12 @@ const badge = {
|
|
|
713
713
|
}
|
|
714
714
|
};
|
|
715
715
|
|
|
716
|
+
const safeList = [
|
|
717
|
+
"h-full w-full absolute inset-0 flex flex-row flex-nowrap items-center justify-center",
|
|
718
|
+
"w-[28px] h-[28px]",
|
|
719
|
+
"size-lg animate-spin stroke-2",
|
|
720
|
+
"invisible"
|
|
721
|
+
].join(" ");
|
|
716
722
|
const button = {
|
|
717
723
|
slots: {
|
|
718
724
|
base: [
|
|
@@ -730,7 +736,8 @@ const button = {
|
|
|
730
736
|
leadingIcon: "shrink-0",
|
|
731
737
|
leadingAvatar: "shrink-0",
|
|
732
738
|
leadingAvatarSize: "",
|
|
733
|
-
trailingIcon: "shrink-0"
|
|
739
|
+
trailingIcon: "shrink-0",
|
|
740
|
+
safeList
|
|
734
741
|
},
|
|
735
742
|
variants: {
|
|
736
743
|
...buttonGroupVariant,
|
|
@@ -5063,7 +5070,7 @@ const toast = {
|
|
|
5063
5070
|
|
|
5064
5071
|
const toaster = {
|
|
5065
5072
|
slots: {
|
|
5066
|
-
viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
|
|
5073
|
+
viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none mr-(--scrollbar-width)",
|
|
5067
5074
|
base: "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
|
|
5068
5075
|
},
|
|
5069
5076
|
variants: {
|
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.BT9wxrhm.cjs');
|
|
9
9
|
const tinyglobby = require('tinyglobby');
|
|
10
10
|
const knitwork = require('knitwork');
|
|
11
11
|
const MagicString = require('magic-string');
|
|
@@ -201,7 +201,7 @@ function AutoImportPlugin(options, meta) {
|
|
|
201
201
|
|
|
202
202
|
const runtimeDir = pathe.normalize(node_url.fileURLToPath(new URL("./runtime", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('unplugin.cjs', document.baseURI).href)))));
|
|
203
203
|
const Bitrix24UIPlugin = unplugin.createUnplugin((_options = {}, meta) => {
|
|
204
|
-
const options = defu.defu(_options, {
|
|
204
|
+
const options = defu.defu(_options, {}, templates.defaultOptions);
|
|
205
205
|
const appConfig = defu.defu({ b24ui: options.b24ui, colorMode: options.colorMode }, { b24ui: templates.getDefaultUiConfig() });
|
|
206
206
|
return [
|
|
207
207
|
Bitrix24EnvironmentPlugin(),
|
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.CBO0gAWn.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
|
@@ -191,7 +191,7 @@ function AutoImportPlugin(options, meta) {
|
|
|
191
191
|
|
|
192
192
|
const runtimeDir = normalize(fileURLToPath(new URL("./runtime", import.meta.url)));
|
|
193
193
|
const Bitrix24UIPlugin = createUnplugin((_options = {}, meta) => {
|
|
194
|
-
const options = defu(_options, {
|
|
194
|
+
const options = defu(_options, {}, defaultOptions);
|
|
195
195
|
const appConfig = defu({ b24ui: options.b24ui, colorMode: options.colorMode }, { b24ui: getDefaultUiConfig() });
|
|
196
196
|
return [
|
|
197
197
|
Bitrix24EnvironmentPlugin(),
|
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.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
"types": "./vue-plugin.d.ts"
|
|
36
36
|
},
|
|
37
37
|
"./runtime/*": "./dist/runtime/*",
|
|
38
|
+
"./components/*": "./dist/runtime/components/*",
|
|
39
|
+
"./composables/*": "./dist/runtime/composables/*",
|
|
40
|
+
"./types/*": "./dist/runtime/types/*",
|
|
38
41
|
"./utils/*": {
|
|
39
42
|
"types": "./dist/runtime/utils/*.d.ts",
|
|
40
43
|
"import": "./dist/runtime/utils/*.js"
|
|
@@ -94,15 +97,14 @@
|
|
|
94
97
|
"mlly": "^1.7.4",
|
|
95
98
|
"ohash": "^1.1.4",
|
|
96
99
|
"pathe": "^2.0.3",
|
|
97
|
-
"reka-ui": "^2.0.
|
|
100
|
+
"reka-ui": "^2.0.2",
|
|
98
101
|
"scule": "^1.3.0",
|
|
99
|
-
"sirv": "^3.0.1",
|
|
100
102
|
"tailwind-variants": "^0.3.1",
|
|
101
103
|
"tailwindcss": "^4.0.9",
|
|
102
104
|
"tinyglobby": "^0.2.12",
|
|
103
105
|
"unplugin": "^2.2.0",
|
|
104
|
-
"unplugin-auto-import": "^19.1.
|
|
105
|
-
"unplugin-vue-components": "^28.4.
|
|
106
|
+
"unplugin-auto-import": "^19.1.1",
|
|
107
|
+
"unplugin-vue-components": "^28.4.1",
|
|
106
108
|
"vaul-vue": "^0.3.0"
|
|
107
109
|
},
|
|
108
110
|
"devDependencies": {
|
|
@@ -116,7 +118,6 @@
|
|
|
116
118
|
"eslint": "^9.21.0",
|
|
117
119
|
"happy-dom": "^17.1.2",
|
|
118
120
|
"joi": "^17.13.3",
|
|
119
|
-
"knitwork": "^1.2.0",
|
|
120
121
|
"nuxt": "^3.15.4",
|
|
121
122
|
"nuxt-component-meta": "^0.10.0",
|
|
122
123
|
"superstruct": "^2.0.2",
|