@bitrix24/b24ui-nuxt 0.2.7 → 0.2.9

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.
@@ -177,7 +177,7 @@ const alert = {
177
177
  const avatar = {
178
178
  slots: {
179
179
  root: "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-base-100 dark:bg-base-900",
180
- image: "h-full w-full rounded-[inherit] object-cover data-[error]:hidden",
180
+ image: "h-full w-full rounded-[inherit] object-cover",
181
181
  fallback: "font-medium text-base-500 dark:text-base-600 truncate",
182
182
  icon: "text-base-500 shrink-0 dark:text-base-600"
183
183
  },
@@ -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: "",
@@ -3159,10 +3158,10 @@ const modal = {
3159
3158
  content: [
3160
3159
  "py-md2 px-5",
3161
3160
  "fixed bg-white dark:bg-base-950",
3162
- // 'divide-y divide-base-900/10 dark:divide-white/20',
3163
3161
  "flex flex-col focus:outline-none"
3164
3162
  ].join(" "),
3165
- header: "pe-5 pt-0",
3163
+ header: "flex items-center gap-1.5 pe-5 pt-0 min-h-lg2",
3164
+ wrapper: "",
3166
3165
  body: "flex-1 overflow-y-auto my-2.5 text-md leading-normal",
3167
3166
  footer: "flex items-center justify-center gap-3 mt-2.5 pt-4 border-t border-t-1 border-t-base-900/10 dark:border-t-white/20",
3168
3167
  title: "font-bold text-md leading-normal text-base-900 dark:text-base-150",
@@ -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-[32rem] max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)]",
3185
+ "w-[calc(100vw-2rem)] max-w-[32rem] max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)]",
3187
3186
  "rounded-md shadow-lg",
3188
3187
  "ring ring-base-300 dark:ring-base-800"
3189
3188
  ].join(" ")
@@ -4974,8 +4973,94 @@ const theme = {
4974
4973
  tooltip: tooltip
4975
4974
  };
4976
4975
 
4976
+ const variantTable = "[&>table]";
4977
+ const variantHeadTr = "[&>table>thead>tr]";
4978
+ const variantBodyTr = "[&>table>tbody>tr]";
4979
+ const variantFoot = "[&>table>tfoot]";
4980
+ const variantFootTr = "[&>table>tfoot>tr]";
4981
+ const variantsTr = [
4982
+ variantHeadTr,
4983
+ variantBodyTr,
4984
+ variantFootTr
4985
+ ];
4986
+ const variantsTdTh = [
4987
+ "[&>table>thead>tr>td]",
4988
+ "[&>table>thead>tr>th]",
4989
+ "[&>table>tbody>tr>td]",
4990
+ "[&>table>tbody>tr>th]",
4991
+ "[&>table>tfoot>tr>td]",
4992
+ "[&>table>tfoot>tr>th]"
4993
+ ];
4994
+ const tableWrapper = {
4995
+ slots: {
4996
+ base: [
4997
+ `font-b24-primary ${variantTable}:text-md ${variantTable}:relative ${variantTable}:w-full ${variantTable}:text-left ${variantTable}:rtl:text-right`,
4998
+ `${variantTable}:text-base-900 dark:${variantTable}:text-base-200`,
4999
+ ...variantsTdTh.map((variant) => `${variant}:align-middle`),
5000
+ ...variantsTdTh.filter((variant) => !variant.includes("tbody>tr>td")).map((variant) => `${variant}:whitespace-nowrap ${variant}:text-md ${variant}:font-normal`),
5001
+ `${variantHeadTr}:border-base-300 dark:${variantHeadTr}:border-base-800`,
5002
+ `${variantBodyTr}:border-base-master/10 dark:${variantBodyTr}:border-base-100/20`,
5003
+ `${variantFoot}:border-base-300 dark:${variantFoot}:border-base-800`,
5004
+ `${variantHeadTr}:border-b ${variantBodyTr.replace(">tr]", ">tr:not(:last-child)]")}:border-b`,
5005
+ `${variantFoot}:border-t`
5006
+ ].join(" ")
5007
+ },
5008
+ variants: {
5009
+ size: {
5010
+ xs: [
5011
+ ...variantsTdTh.map((variant) => `${variant}:text-xs ${variant}:px-2 ${variant}:py-1`)
5012
+ ].join(" "),
5013
+ sm: [
5014
+ ...variantsTdTh.map((variant) => `${variant}:text-sm ${variant}:px-3 ${variant}:py-2`)
5015
+ ].join(" "),
5016
+ md: [
5017
+ ...variantsTdTh.map((variant) => `${variant}:text-md ${variant}:px-4 ${variant}:py-3.5`)
5018
+ ].join(" "),
5019
+ lg: [
5020
+ ...variantsTdTh.map((variant) => `${variant}:text-lg ${variant}:px-5 ${variant}:py-4`)
5021
+ ].join(" ")
5022
+ },
5023
+ rounded: {
5024
+ true: "rounded-md",
5025
+ false: "rounded"
5026
+ },
5027
+ zebra: {
5028
+ true: [
5029
+ ...variantsTr.filter((variant) => variant === variantBodyTr).map((variant) => `${variant}:even:bg-base-30 ${variant}:even:[&>td]:bg-base-30 ${variant}:even:[&>th]:bg-base-30 dark:${variant}:even:bg-base-dark dark:${variant}:even:[&>td]:bg-base-dark dark:${variant}:even:[&>th]:bg-base-dark`)
5030
+ ].join(" ")
5031
+ },
5032
+ pinRows: {
5033
+ true: [
5034
+ ...variantsTr.filter((variant) => variant !== variantBodyTr).map((variant) => `${variant}:sticky ${variant}:${variant === variantHeadTr ? "top-0" : "bottom-0"} ${variant}:z-1 ${variant}:bg-white dark:${variant}:bg-base-dark ${variant}:${variant === variantHeadTr ? "shadow-bottom-sm" : "shadow-top-sm"}`)
5035
+ ].join(" ")
5036
+ },
5037
+ pinCols: {
5038
+ true: [
5039
+ ...variantsTr.map((row) => {
5040
+ const variant = row.replace(">tr]", ">tr>th]");
5041
+ return `${variant}:sticky ${variant}:right-0 ${variant}:left-0 ${variant}:bg-base-20 dark:${variant}:bg-base-dark`;
5042
+ })
5043
+ ].join(" ")
5044
+ },
5045
+ rowHover: {
5046
+ true: `${variantBodyTr}:hover:bg-base-40 ${variantBodyTr}:hover:[&>td]:bg-base-40 ${variantBodyTr}:hover:[&>th]:bg-base-40 dark:${variantBodyTr}:hover:bg-base-900 dark:${variantBodyTr}:hover:[&>td]:bg-base-900 dark:${variantBodyTr}:hover:[&>th]:bg-base-900`
5047
+ },
5048
+ bordered: {
5049
+ true: "border border-base-master/10 dark:border-base-800"
5050
+ },
5051
+ scrollbarThin: {
5052
+ true: "scrollbar-thin"
5053
+ }
5054
+ },
5055
+ defaultVariants: {
5056
+ size: "md",
5057
+ scrollbarThin: true
5058
+ }
5059
+ };
5060
+
4977
5061
  const themeProse = {
4978
- __proto__: null
5062
+ __proto__: null,
5063
+ tableWrapper: tableWrapper
4979
5064
  };
4980
5065
 
4981
5066
  const descriptionList = {
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.DWZW38ni.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.DcPkWX-m.cjs');
9
9
  const tinyglobby = require('tinyglobby');
10
10
  const knitwork = require('knitwork');
11
11
  const MagicString = require('magic-string');
@@ -78,6 +78,18 @@ ${plugins.map((p) => ` app.use(${knitwork.genSafeVariableName(p)})`).join("\n
78
78
  }
79
79
  }
80
80
  `;
81
+ },
82
+ // Argument Vite specific configuration
83
+ vite: {
84
+ config() {
85
+ return {
86
+ // Opt-out Bitrix24 UI from Vite's pre-bundling,
87
+ // as we need Vite's pipeline to resolve imports like `#imports`
88
+ optimizeDeps: {
89
+ exclude: ["@bitrix24/b24ui-nuxt"]
90
+ }
91
+ };
92
+ }
81
93
  }
82
94
  };
83
95
  }
@@ -189,7 +201,7 @@ function AutoImportPlugin(options, meta) {
189
201
 
190
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)))));
191
203
  const Bitrix24UIPlugin = unplugin.createUnplugin((_options = {}, meta) => {
192
- const options = defu.defu(_options, { fonts: false, devtools: { enabled: false } }, templates.defaultOptions);
204
+ const options = defu.defu(_options, { devtools: { enabled: false } }, templates.defaultOptions);
193
205
  const appConfig = defu.defu({ b24ui: options.b24ui }, { b24ui: templates.getDefaultUiConfig() });
194
206
  return [
195
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.BhidWnCI.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.0h2uYsyZ.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
@@ -68,6 +68,18 @@ ${plugins.map((p) => ` app.use(${genSafeVariableName(p)})`).join("\n")}
68
68
  }
69
69
  }
70
70
  `;
71
+ },
72
+ // Argument Vite specific configuration
73
+ vite: {
74
+ config() {
75
+ return {
76
+ // Opt-out Bitrix24 UI from Vite's pre-bundling,
77
+ // as we need Vite's pipeline to resolve imports like `#imports`
78
+ optimizeDeps: {
79
+ exclude: ["@bitrix24/b24ui-nuxt"]
80
+ }
81
+ };
82
+ }
71
83
  }
72
84
  };
73
85
  }
@@ -179,7 +191,7 @@ function AutoImportPlugin(options, meta) {
179
191
 
180
192
  const runtimeDir = normalize(fileURLToPath(new URL("./runtime", import.meta.url)));
181
193
  const Bitrix24UIPlugin = createUnplugin((_options = {}, meta) => {
182
- const options = defu(_options, { fonts: false, devtools: { enabled: false } }, defaultOptions);
194
+ const options = defu(_options, { devtools: { enabled: false } }, defaultOptions);
183
195
  const appConfig = defu({ b24ui: options.b24ui }, { b24ui: getDefaultUiConfig() });
184
196
  return [
185
197
  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.DWZW38ni.cjs');
9
+ require('./shared/b24ui-nuxt.DcPkWX-m.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.BhidWnCI.mjs';
7
+ import './shared/b24ui-nuxt.0h2uYsyZ.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.7",
4
+ "version": "0.2.9",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -71,12 +71,12 @@
71
71
  "@nuxt/kit": "^3.15.4",
72
72
  "@nuxt/schema": "^3.15.4",
73
73
  "@nuxtjs/color-mode": "^3.5.2",
74
- "@tailwindcss/postcss": "^4.0.6",
75
- "@tailwindcss/vite": "^4.0.6",
74
+ "@tailwindcss/postcss": "^4.0.7",
75
+ "@tailwindcss/vite": "^4.0.7",
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",
@@ -93,25 +93,26 @@
93
93
  "mlly": "^1.7.4",
94
94
  "ohash": "^1.1.4",
95
95
  "pathe": "^2.0.3",
96
- "reka-ui": "1.0.0-alpha.10",
96
+ "reka-ui": "^2.0.0",
97
97
  "scule": "^1.3.0",
98
+ "sirv": "^3.0.1",
98
99
  "tailwind-variants": "^0.3.1",
99
- "tailwindcss": "^4.0.6",
100
- "tinyglobby": "^0.2.10",
100
+ "tailwindcss": "^4.0.7",
101
+ "tinyglobby": "^0.2.11",
101
102
  "unplugin": "^2.2.0",
102
- "unplugin-auto-import": "^19.0.0",
103
- "unplugin-vue-components": "^28.0.0",
104
- "vaul-vue": "^0.2.1"
103
+ "unplugin-auto-import": "^19.1.0",
104
+ "unplugin-vue-components": "^28.4.0",
105
+ "vaul-vue": "^0.3.0"
105
106
  },
106
107
  "devDependencies": {
107
- "@nuxt/eslint-config": "^1.0.1",
108
+ "@nuxt/eslint-config": "^1.1.0",
108
109
  "@nuxt/module-builder": "^0.8.4",
109
110
  "@nuxt/test-utils": "^3.15.4",
110
111
  "@standard-schema/spec": "^1.0.0",
111
112
  "@vue/test-utils": "^2.4.6",
112
113
  "embla-carousel": "^8.5.2",
113
114
  "eslint": "^9.20.1",
114
- "happy-dom": "^17.1.0",
115
+ "happy-dom": "^17.1.1",
115
116
  "joi": "^17.13.3",
116
117
  "knitwork": "^1.2.0",
117
118
  "nuxt": "^3.15.4",
@@ -119,7 +120,7 @@
119
120
  "superstruct": "^2.0.2",
120
121
  "valibot": "^0.42.1",
121
122
  "vitepress": "^1.5.0",
122
- "vitest": "^3.0.5",
123
+ "vitest": "^3.0.6",
123
124
  "vitest-environment-nuxt": "^1.0.1",
124
125
  "vue-tsc": "^2.2.0",
125
126
  "yup": "^1.6.1",
@@ -132,11 +133,11 @@
132
133
  "@bitrix24/b24ui-nuxt": "workspace:*",
133
134
  "chokidar": "3.6.0",
134
135
  "debug": "4.3.7",
135
- "rollup": "^4.24.0",
136
+ "rollup": "4.32.1",
136
137
  "typescript": "5.6.3",
137
138
  "unimport": "3.14.5",
138
139
  "unplugin": "^2.2.0",
139
- "vite": "^6.0.11",
140
+ "vue": "3.5.13",
140
141
  "vue-tsc": "2.2.0"
141
142
  },
142
143
  "keywords": [