@bitrix24/b24ui-nuxt 0.2.6 → 0.2.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.
@@ -32,7 +32,7 @@ export default {
32
32
  "slots": {
33
33
  "base": "select-none font-b24-secondary font-normal inline-flex items-center transition-all duration-200 ease-linear px-2 leading-normal rounded-md",
34
34
  "wrapper": "inline-flex items-center",
35
- "label": "max-w-full whitespace-nowrap text-ellipsis",
35
+ "label": "max-w-full whitespace-nowrap text-ellipsis decoration-from-font",
36
36
  "leadingIcon": "shrink-0",
37
37
  "leadingAvatar": "shrink-0",
38
38
  "leadingAvatarSize": "",
@@ -21,7 +21,7 @@ export default {
21
21
  "content": "inset-0"
22
22
  },
23
23
  "false": {
24
- "content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)] rounded-md shadow-lg ring ring-base-300 dark:ring-base-800"
24
+ "content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-[32rem] max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)] rounded-md shadow-lg ring ring-base-300 dark:ring-base-800"
25
25
  }
26
26
  }
27
27
  }
package/dist/module.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const defu = require('defu');
4
4
  const kit = require('@nuxt/kit');
5
- const templates = require('./shared/b24ui-nuxt.D-N3gDSr.cjs');
5
+ const templates = require('./shared/b24ui-nuxt.DBz6Z5xw.cjs');
6
6
  require('node:url');
7
7
  require('scule');
8
8
 
@@ -30,15 +30,15 @@ const module$1 = kit.defineNuxtModule({
30
30
  } else {
31
31
  nuxt.options.postcss.plugins["@tailwindcss/postcss"] = {};
32
32
  }
33
- async function registerModule(name, options2) {
33
+ async function registerModule(name, key, options2) {
34
34
  if (!kit.hasNuxtModule(name)) {
35
35
  await kit.installModule(name, options2);
36
36
  } else {
37
- nuxt.options[name] = defu.defu(nuxt.options[name], options2);
37
+ nuxt.options[key] = defu.defu(nuxt.options[key], options2);
38
38
  }
39
39
  }
40
40
  if (options.colorMode) {
41
- await registerModule("@nuxtjs/color-mode", { classSuffix: "", disableTransition: true });
41
+ await registerModule("@nuxtjs/color-mode", "colorMode", { classSuffix: "", disableTransition: true });
42
42
  }
43
43
  kit.addPlugin({ src: resolve("./runtime/plugins/colors") });
44
44
  kit.addPlugin({ src: resolve("./runtime/plugins/modal") });
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.13.1"
6
6
  },
7
7
  "docs": "https://bitrix24.github.io/b24ui/guide/installation-nuxt-app.html",
8
- "version": "0.2.6",
8
+ "version": "0.2.8",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.8.4",
11
11
  "unbuild": "2.0.0"
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.CAS1q3My.mjs';
3
+ import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.BJy-SIWG.mjs';
4
4
  import 'node:url';
5
5
  import 'scule';
6
6
 
@@ -27,15 +27,15 @@ const module = defineNuxtModule({
27
27
  } else {
28
28
  nuxt.options.postcss.plugins["@tailwindcss/postcss"] = {};
29
29
  }
30
- async function registerModule(name, options2) {
30
+ async function registerModule(name, key, options2) {
31
31
  if (!hasNuxtModule(name)) {
32
32
  await installModule(name, options2);
33
33
  } else {
34
- nuxt.options[name] = defu(nuxt.options[name], options2);
34
+ nuxt.options[key] = defu(nuxt.options[key], options2);
35
35
  }
36
36
  }
37
37
  if (options.colorMode) {
38
- await registerModule("@nuxtjs/color-mode", { classSuffix: "", disableTransition: true });
38
+ await registerModule("@nuxtjs/color-mode", "colorMode", { classSuffix: "", disableTransition: true });
39
39
  }
40
40
  addPlugin({ src: resolve("./runtime/plugins/colors") });
41
41
  addPlugin({ src: resolve("./runtime/plugins/modal") });
@@ -43,7 +43,7 @@ import { useAvatarGroup } from '../composables/useAvatarGroup'
43
43
  defineOptions({ inheritAttrs: false })
44
44
 
45
45
  const props = withDefaults(defineProps<AvatarProps>(), { as: 'span' })
46
- const attrs = useAttrs()
46
+ const attrs = useAttrs() as any
47
47
 
48
48
  const fallbackProps = useForwardProps(reactivePick(props, 'delayMs'))
49
49
 
@@ -100,11 +100,13 @@ const b24ui = computed(() => badge({
100
100
  />
101
101
  </slot>
102
102
 
103
- <slot>
104
- <span v-if="label" :class="b24ui.label({ class: props.b24ui?.label })">
105
- {{ label }}
106
- </span>
107
- </slot>
103
+ <span :class="b24ui.label({ class: props.b24ui?.label })">
104
+ <slot>
105
+ <span v-if="label">
106
+ {{ label }}
107
+ </span>
108
+ </slot>
109
+ </span>
108
110
  </Primitive>
109
111
  <slot name="trailing">
110
112
  <Cross20Icon
@@ -341,8 +341,7 @@ const badge = {
341
341
  "px-2 leading-normal rounded-md"
342
342
  ].join(" "),
343
343
  wrapper: "inline-flex items-center",
344
- label: "max-w-full whitespace-nowrap text-ellipsis",
345
- // truncate ////
344
+ label: "max-w-full whitespace-nowrap text-ellipsis decoration-from-font",
346
345
  leadingIcon: "shrink-0",
347
346
  leadingAvatar: "shrink-0",
348
347
  leadingAvatarSize: "",
@@ -3181,7 +3180,7 @@ const modal = {
3181
3180
  false: {
3182
3181
  content: [
3183
3182
  "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
3184
- "w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)]",
3183
+ "w-[calc(100vw-2rem)] max-w-[32rem] max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)]",
3185
3184
  "rounded-md shadow-lg",
3186
3185
  "ring ring-base-300 dark:ring-base-800"
3187
3186
  ].join(" ")
@@ -343,8 +343,7 @@ const badge = {
343
343
  "px-2 leading-normal rounded-md"
344
344
  ].join(" "),
345
345
  wrapper: "inline-flex items-center",
346
- label: "max-w-full whitespace-nowrap text-ellipsis",
347
- // truncate ////
346
+ label: "max-w-full whitespace-nowrap text-ellipsis decoration-from-font",
348
347
  leadingIcon: "shrink-0",
349
348
  leadingAvatar: "shrink-0",
350
349
  leadingAvatarSize: "",
@@ -3183,7 +3182,7 @@ const modal = {
3183
3182
  false: {
3184
3183
  content: [
3185
3184
  "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
3186
- "w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)]",
3185
+ "w-[calc(100vw-2rem)] max-w-[32rem] max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)]",
3187
3186
  "rounded-md shadow-lg",
3188
3187
  "ring ring-base-300 dark:ring-base-800"
3189
3188
  ].join(" ")
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.D-N3gDSr.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.DBz6Z5xw.cjs');
9
9
  const tinyglobby = require('tinyglobby');
10
10
  const knitwork = require('knitwork');
11
11
  const MagicString = require('magic-string');
@@ -189,7 +189,7 @@ function AutoImportPlugin(options, meta) {
189
189
 
190
190
  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)))));
191
191
  const Bitrix24UIPlugin = unplugin.createUnplugin((_options = {}, meta) => {
192
- const options = defu.defu(_options, { fonts: false, devtools: { enabled: false } }, templates.defaultOptions);
192
+ const options = defu.defu(_options, { devtools: { enabled: false } }, templates.defaultOptions);
193
193
  const appConfig = defu.defu({ b24ui: options.b24ui }, { b24ui: templates.getDefaultUiConfig() });
194
194
  return [
195
195
  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.CAS1q3My.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.BJy-SIWG.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
@@ -179,7 +179,7 @@ function AutoImportPlugin(options, meta) {
179
179
 
180
180
  const runtimeDir = normalize(fileURLToPath(new URL("./runtime", import.meta.url)));
181
181
  const Bitrix24UIPlugin = createUnplugin((_options = {}, meta) => {
182
- const options = defu(_options, { fonts: false, devtools: { enabled: false } }, defaultOptions);
182
+ const options = defu(_options, { devtools: { enabled: false } }, defaultOptions);
183
183
  const appConfig = defu({ b24ui: options.b24ui }, { b24ui: getDefaultUiConfig() });
184
184
  return [
185
185
  Bitrix24EnvironmentPlugin(),
package/dist/vite.cjs CHANGED
@@ -6,7 +6,7 @@ require('pathe');
6
6
  require('unplugin');
7
7
  require('defu');
8
8
  require('@tailwindcss/vite');
9
- require('./shared/b24ui-nuxt.D-N3gDSr.cjs');
9
+ require('./shared/b24ui-nuxt.DBz6Z5xw.cjs');
10
10
  require('scule');
11
11
  require('@nuxt/kit');
12
12
  require('tinyglobby');
package/dist/vite.mjs CHANGED
@@ -4,7 +4,7 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/b24ui-nuxt.CAS1q3My.mjs';
7
+ import './shared/b24ui-nuxt.BJy-SIWG.mjs';
8
8
  import 'scule';
9
9
  import '@nuxt/kit';
10
10
  import 'tinyglobby';
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.2.6",
4
+ "version": "0.2.8",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -75,8 +75,8 @@
75
75
  "@tailwindcss/vite": "^4.0.6",
76
76
  "@tanstack/vue-table": "^8.21.2",
77
77
  "@unhead/vue": "^1.11.19",
78
- "@vueuse/core": "^12.6.1",
79
- "@vueuse/integrations": "^12.6.1",
78
+ "@vueuse/core": "^12.7.0",
79
+ "@vueuse/integrations": "^12.7.0",
80
80
  "colortranslator": "^4.1.0",
81
81
  "consola": "^3.4.0",
82
82
  "defu": "^6.1.4",
@@ -99,8 +99,8 @@
99
99
  "tailwindcss": "^4.0.6",
100
100
  "tinyglobby": "^0.2.10",
101
101
  "unplugin": "^2.2.0",
102
- "unplugin-auto-import": "^19.0.0",
103
- "unplugin-vue-components": "^28.0.0",
102
+ "unplugin-auto-import": "^19.1.0",
103
+ "unplugin-vue-components": "^28.1.0",
104
104
  "vaul-vue": "^0.2.1"
105
105
  },
106
106
  "devDependencies": {
@@ -132,11 +132,12 @@
132
132
  "@bitrix24/b24ui-nuxt": "workspace:*",
133
133
  "chokidar": "3.6.0",
134
134
  "debug": "4.3.7",
135
- "rollup": "^4.24.0",
135
+ "rollup": "4.32.1",
136
136
  "typescript": "5.6.3",
137
137
  "unimport": "3.14.5",
138
138
  "unplugin": "^2.2.0",
139
139
  "vite": "^6.0.11",
140
+ "vue": "3.5.13",
140
141
  "vue-tsc": "2.2.0"
141
142
  },
142
143
  "keywords": [