@bitrix24/b24ui-nuxt 0.4.4 → 0.4.6

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.
Files changed (71) hide show
  1. package/.nuxt/b24ui/content/table-wrapper.ts +1 -1
  2. package/.nuxt/b24ui/prose/img.ts +5 -0
  3. package/.nuxt/b24ui/prose/table.ts +6 -0
  4. package/.nuxt/b24ui/prose/tbody.ts +5 -0
  5. package/.nuxt/b24ui/prose/td.ts +5 -0
  6. package/.nuxt/b24ui/prose/th.ts +5 -0
  7. package/.nuxt/b24ui/prose/thead.ts +5 -0
  8. package/.nuxt/b24ui/prose/tr.ts +5 -0
  9. package/dist/meta.cjs +480 -48
  10. package/dist/meta.d.cts +480 -48
  11. package/dist/meta.d.mts +480 -48
  12. package/dist/meta.d.ts +480 -48
  13. package/dist/meta.mjs +480 -48
  14. package/dist/module.cjs +2 -2
  15. package/dist/module.json +2 -2
  16. package/dist/module.mjs +2 -2
  17. package/dist/runtime/components/App.vue +6 -6
  18. package/dist/runtime/components/Button.vue +1 -0
  19. package/dist/runtime/components/Form.vue +1 -1
  20. package/dist/runtime/components/Input.vue +7 -3
  21. package/dist/runtime/components/LinkBase.vue +4 -2
  22. package/dist/runtime/components/Textarea.vue +7 -3
  23. package/dist/runtime/composables/defineLocale.d.ts +4 -4
  24. package/dist/runtime/composables/useLocale.d.ts +3 -3
  25. package/dist/runtime/composables/useLocale.js +3 -3
  26. package/dist/runtime/locale/ar.d.ts +2 -1
  27. package/dist/runtime/locale/br.d.ts +2 -1
  28. package/dist/runtime/locale/de.d.ts +2 -1
  29. package/dist/runtime/locale/en.d.ts +2 -1
  30. package/dist/runtime/locale/fr.d.ts +2 -1
  31. package/dist/runtime/locale/id.d.ts +2 -1
  32. package/dist/runtime/locale/index.d.ts +1 -1
  33. package/dist/runtime/locale/index.js +1 -1
  34. package/dist/runtime/locale/it.d.ts +2 -1
  35. package/dist/runtime/locale/ja.d.ts +2 -1
  36. package/dist/runtime/locale/kz.d.ts +2 -1
  37. package/dist/runtime/locale/la.d.ts +2 -1
  38. package/dist/runtime/locale/ms.d.ts +2 -1
  39. package/dist/runtime/locale/pl.d.ts +2 -1
  40. package/dist/runtime/locale/ru.d.ts +2 -1
  41. package/dist/runtime/locale/sc.d.ts +2 -1
  42. package/dist/runtime/locale/tc.d.ts +2 -1
  43. package/dist/runtime/locale/th.d.ts +2 -1
  44. package/dist/runtime/locale/tr.d.ts +2 -1
  45. package/dist/runtime/locale/ua.d.ts +2 -1
  46. package/dist/runtime/locale/vn.d.ts +2 -1
  47. package/dist/runtime/prose/A.vue +1 -1
  48. package/dist/runtime/prose/Code.vue +1 -1
  49. package/dist/runtime/prose/Img.vue +32 -0
  50. package/dist/runtime/prose/Table.vue +74 -0
  51. package/dist/runtime/prose/Tbody.vue +34 -0
  52. package/dist/runtime/prose/Td.vue +34 -0
  53. package/dist/runtime/prose/Th.vue +34 -0
  54. package/dist/runtime/prose/Thead.vue +34 -0
  55. package/dist/runtime/prose/Tr.vue +34 -0
  56. package/dist/runtime/types/index.d.ts +7 -0
  57. package/dist/runtime/types/index.js +7 -0
  58. package/dist/runtime/types/locale.d.ts +2 -2
  59. package/dist/runtime/utils/locale.d.ts +5 -5
  60. package/dist/runtime/utils/tv.d.ts +1 -1
  61. package/dist/runtime/vue/plugins/head.d.ts +1 -1
  62. package/dist/runtime/vue/plugins/head.js +4 -3
  63. package/dist/runtime/vue/stubs.d.ts +5 -1
  64. package/dist/runtime/vue/stubs.js +2 -1
  65. package/dist/shared/{b24ui-nuxt.BRwBcdAH.mjs → b24ui-nuxt.BiEJAB1L.mjs} +65 -1
  66. package/dist/shared/{b24ui-nuxt.C1tIhR9w.cjs → b24ui-nuxt.yyScbwpE.cjs} +65 -1
  67. package/dist/unplugin.cjs +1 -1
  68. package/dist/unplugin.mjs +1 -1
  69. package/dist/vite.cjs +1 -1
  70. package/dist/vite.mjs +1 -1
  71. package/package.json +20 -20
@@ -51,6 +51,13 @@ export * from "../prose/Ol.vue";
51
51
  export * from "../prose/Ul.vue";
52
52
  export * from "../prose/Li.vue";
53
53
  export * from "../prose/Hr.vue";
54
+ export * from "../prose/Table.vue";
55
+ export * from "../prose/Thead.vue";
56
+ export * from "../prose/Tbody.vue";
57
+ export * from "../prose/Tr.vue";
58
+ export * from "../prose/Th.vue";
59
+ export * from "../prose/Td.vue";
60
+ export * from "../prose/Img.vue";
54
61
  export * from "../prose/Code.vue";
55
62
  export * from "../prose/Pre.vue";
56
63
  export * from "./form.js";
@@ -48,9 +48,9 @@ export type Messages = {
48
48
  };
49
49
  };
50
50
  export type Direction = 'ltr' | 'rtl';
51
- export type Locale = {
51
+ export type Locale<M> = {
52
52
  name: string;
53
53
  code: string;
54
54
  dir: Direction;
55
- messages: Messages;
55
+ messages: M;
56
56
  };
@@ -3,13 +3,13 @@ import type { Locale, Direction } from '../types/locale';
3
3
  import type { MaybeRef } from '@vueuse/core';
4
4
  export type TranslatorOption = Record<string, string | number>;
5
5
  export type Translator = (path: string, option?: TranslatorOption) => string;
6
- export type LocaleContext = {
7
- locale: Ref<Locale>;
6
+ export type LocaleContext<M> = {
7
+ locale: Ref<Locale<M>>;
8
8
  lang: Ref<string>;
9
9
  dir: Ref<Direction>;
10
10
  code: Ref<string>;
11
11
  t: Translator;
12
12
  };
13
- export declare function buildTranslator(locale: MaybeRef<Locale>): Translator;
14
- export declare function translate(path: string, option: undefined | TranslatorOption, locale: Locale): string;
15
- export declare function buildLocaleContext(locale: MaybeRef<Locale>): LocaleContext;
13
+ export declare function buildTranslator<M>(locale: MaybeRef<Locale<M>>): Translator;
14
+ export declare function translate<M>(path: string, option: undefined | TranslatorOption, locale: Locale<M>): string;
15
+ export declare function buildLocaleContext<M>(locale: MaybeRef<Locale<M>>): LocaleContext<M>;
@@ -1 +1 @@
1
- export declare const tv: import("tailwind-variants").CreateTV<boolean | (string | number | symbol)[] | {} | undefined>;
1
+ export declare const tv: import("tailwind-variants").CreateTV;
@@ -1,4 +1,4 @@
1
1
  declare const _default: {
2
- install(): void;
2
+ install(app: import("vue").App<any>): void;
3
3
  };
4
4
  export default _default;
@@ -1,6 +1,7 @@
1
- import { createHead, setHeadInjectionHandler } from "@unhead/vue";
1
+ import { createHead } from "@unhead/vue/client";
2
2
  export default {
3
- install() {
4
- setHeadInjectionHandler(() => createHead());
3
+ install(app) {
4
+ const head = createHead();
5
+ app.use(head);
5
6
  }
6
7
  };
@@ -1,8 +1,12 @@
1
1
  import type { Ref } from 'vue';
2
2
  import type { NuxtApp } from '#app';
3
- export { useHead } from '@unhead/vue';
3
+ /**
4
+ * @todo not use @unhead/vue/legacy
5
+ */
6
+ export { useHead } from '@unhead/vue/legacy';
4
7
  export { useRoute, useRouter } from 'vue-router';
5
8
  export { defineShortcuts } from '../composables/defineShortcuts';
9
+ export { defineLocale } from '../composables/defineLocale';
6
10
  export { useLocale } from '../composables/useLocale';
7
11
  export { useConfetti } from '../composables/useConfetti';
8
12
  export { useOverlay } from '../composables/useOverlay';
@@ -1,9 +1,10 @@
1
1
  import { ref } from "vue";
2
2
  import appConfig from "#build/app.config";
3
3
  import { useColorMode as useColorModeVueUse } from "@vueuse/core";
4
- export { useHead } from "@unhead/vue";
4
+ export { useHead } from "@unhead/vue/legacy";
5
5
  export { useRoute, useRouter } from "vue-router";
6
6
  export { defineShortcuts } from "../composables/defineShortcuts.js";
7
+ export { defineLocale } from "../composables/defineLocale.js";
7
8
  export { useLocale } from "../composables/useLocale.js";
8
9
  export { useConfetti } from "../composables/useConfetti.js";
9
10
  export { useOverlay } from "../composables/useOverlay.js";
@@ -5534,6 +5534,60 @@ const hr = {
5534
5534
  }
5535
5535
  };
5536
5536
 
5537
+ const table = {
5538
+ slots: {
5539
+ root: [
5540
+ "my-4",
5541
+ "overflow-x-auto"
5542
+ ].join(" "),
5543
+ base: ""
5544
+ }
5545
+ };
5546
+
5547
+ const thead = {
5548
+ slots: {
5549
+ base: [
5550
+ "bg-base-50",
5551
+ "dark:bg-base-600"
5552
+ ].join(" ")
5553
+ }
5554
+ };
5555
+
5556
+ const tbody = {
5557
+ slots: {
5558
+ base: ""
5559
+ }
5560
+ };
5561
+
5562
+ const tr = {
5563
+ slots: {
5564
+ base: ""
5565
+ }
5566
+ };
5567
+
5568
+ const th = {
5569
+ slots: {
5570
+ base: ""
5571
+ }
5572
+ };
5573
+
5574
+ const td = {
5575
+ slots: {
5576
+ base: [
5577
+ "[&_code]:text-xs/5",
5578
+ "[&_p]:my-0 [&_p]:leading-6",
5579
+ "[&_ul]:my-0 [&_ol]:my-0 [&_ul]:ps-4.5 [&_ol]:ps-4.5",
5580
+ "[&_li]:leading-6 [&_li]:my-0.5"
5581
+ ].join(" ")
5582
+ }
5583
+ };
5584
+
5585
+ const img = {
5586
+ slots: {
5587
+ base: ""
5588
+ }
5589
+ };
5590
+
5537
5591
  const code = {
5538
5592
  slots: {
5539
5593
  base: [
@@ -5620,11 +5674,18 @@ const themeProse = {
5620
5674
  h5: h5,
5621
5675
  h6: h6,
5622
5676
  hr: hr,
5677
+ img: img,
5623
5678
  li: li,
5624
5679
  ol: ol,
5625
5680
  p: p,
5626
5681
  pre: pre,
5627
5682
  strong: strong,
5683
+ table: table,
5684
+ tbody: tbody,
5685
+ td: td,
5686
+ th: th,
5687
+ thead: thead,
5688
+ tr: tr,
5628
5689
  ul: ul
5629
5690
  };
5630
5691
 
@@ -5677,7 +5738,7 @@ const tableWrapper = {
5677
5738
  },
5678
5739
  rounded: {
5679
5740
  true: "rounded-md",
5680
- false: "rounded"
5741
+ false: ""
5681
5742
  },
5682
5743
  zebra: {
5683
5744
  true: [
@@ -5832,6 +5893,9 @@ type AppConfigUI = {
5832
5893
 
5833
5894
  declare module '@nuxt/schema' {
5834
5895
  interface AppConfigInput {
5896
+ /**
5897
+ * Bitrix24 UI theme configuration
5898
+ */
5835
5899
  b24ui?: AppConfigUI
5836
5900
  }
5837
5901
  }
@@ -5536,6 +5536,60 @@ const hr = {
5536
5536
  }
5537
5537
  };
5538
5538
 
5539
+ const table = {
5540
+ slots: {
5541
+ root: [
5542
+ "my-4",
5543
+ "overflow-x-auto"
5544
+ ].join(" "),
5545
+ base: ""
5546
+ }
5547
+ };
5548
+
5549
+ const thead = {
5550
+ slots: {
5551
+ base: [
5552
+ "bg-base-50",
5553
+ "dark:bg-base-600"
5554
+ ].join(" ")
5555
+ }
5556
+ };
5557
+
5558
+ const tbody = {
5559
+ slots: {
5560
+ base: ""
5561
+ }
5562
+ };
5563
+
5564
+ const tr = {
5565
+ slots: {
5566
+ base: ""
5567
+ }
5568
+ };
5569
+
5570
+ const th = {
5571
+ slots: {
5572
+ base: ""
5573
+ }
5574
+ };
5575
+
5576
+ const td = {
5577
+ slots: {
5578
+ base: [
5579
+ "[&_code]:text-xs/5",
5580
+ "[&_p]:my-0 [&_p]:leading-6",
5581
+ "[&_ul]:my-0 [&_ol]:my-0 [&_ul]:ps-4.5 [&_ol]:ps-4.5",
5582
+ "[&_li]:leading-6 [&_li]:my-0.5"
5583
+ ].join(" ")
5584
+ }
5585
+ };
5586
+
5587
+ const img = {
5588
+ slots: {
5589
+ base: ""
5590
+ }
5591
+ };
5592
+
5539
5593
  const code = {
5540
5594
  slots: {
5541
5595
  base: [
@@ -5622,11 +5676,18 @@ const themeProse = {
5622
5676
  h5: h5,
5623
5677
  h6: h6,
5624
5678
  hr: hr,
5679
+ img: img,
5625
5680
  li: li,
5626
5681
  ol: ol,
5627
5682
  p: p,
5628
5683
  pre: pre,
5629
5684
  strong: strong,
5685
+ table: table,
5686
+ tbody: tbody,
5687
+ td: td,
5688
+ th: th,
5689
+ thead: thead,
5690
+ tr: tr,
5630
5691
  ul: ul
5631
5692
  };
5632
5693
 
@@ -5679,7 +5740,7 @@ const tableWrapper = {
5679
5740
  },
5680
5741
  rounded: {
5681
5742
  true: "rounded-md",
5682
- false: "rounded"
5743
+ false: ""
5683
5744
  },
5684
5745
  zebra: {
5685
5746
  true: [
@@ -5834,6 +5895,9 @@ type AppConfigUI = {
5834
5895
 
5835
5896
  declare module '@nuxt/schema' {
5836
5897
  interface AppConfigInput {
5898
+ /**
5899
+ * Bitrix24 UI theme configuration
5900
+ */
5837
5901
  b24ui?: AppConfigUI
5838
5902
  }
5839
5903
  }
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.C1tIhR9w.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.yyScbwpE.cjs');
9
9
  const tinyglobby = require('tinyglobby');
10
10
  const knitwork = require('knitwork');
11
11
  const MagicString = require('magic-string');
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.BRwBcdAH.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.BiEJAB1L.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
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.C1tIhR9w.cjs');
9
+ require('./shared/b24ui-nuxt.yyScbwpE.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.BRwBcdAH.mjs';
7
+ import './shared/b24ui-nuxt.BiEJAB1L.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.4.4",
4
+ "version": "0.4.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -72,15 +72,15 @@
72
72
  "@bitrix24/b24style": "^1.0.1",
73
73
  "@internationalized/date": "^3.7.0",
74
74
  "@internationalized/number": "^3.6.0",
75
- "@nuxt/kit": "^3.15.4",
76
- "@nuxt/schema": "^3.15.4",
75
+ "@nuxt/kit": "^3.16.0",
76
+ "@nuxt/schema": "^3.16.0",
77
77
  "@nuxtjs/color-mode": "^3.5.2",
78
- "@tailwindcss/postcss": "^4.0.11",
79
- "@tailwindcss/vite": "^4.0.11",
78
+ "@tailwindcss/postcss": "^4.0.12",
79
+ "@tailwindcss/vite": "^4.0.12",
80
80
  "@tanstack/vue-table": "^8.21.2",
81
- "@unhead/vue": "^1.11.19",
82
- "@vueuse/core": "^12.8.2",
83
- "@vueuse/integrations": "^12.8.2",
81
+ "@unhead/vue": "^2.0.0-rc.9",
82
+ "@vueuse/core": "^13.0.0",
83
+ "@vueuse/integrations": "^13.0.0",
84
84
  "canvas-confetti": "^1.9.3",
85
85
  "colortranslator": "^4.1.0",
86
86
  "consola": "^3.4.0",
@@ -100,31 +100,33 @@
100
100
  "pathe": "^2.0.3",
101
101
  "reka-ui": "^2.0.2",
102
102
  "scule": "^1.3.0",
103
- "tailwind-variants": "^0.3.1",
104
- "tailwindcss": "^4.0.11",
103
+ "tailwind-variants": "^1.0.0",
104
+ "tailwindcss": "^4.0.12",
105
105
  "tinyglobby": "^0.2.12",
106
106
  "unplugin": "^2.2.0",
107
107
  "unplugin-auto-import": "^19.1.1",
108
108
  "unplugin-vue-components": "^28.4.1",
109
- "vaul-vue": "^0.3.0"
109
+ "vaul-vue": "^0.3.0",
110
+ "vue": "^3.5.13",
111
+ "vue-router": "^4.5.0"
110
112
  },
111
113
  "devDependencies": {
112
114
  "@types/canvas-confetti": "^1.9.0",
113
- "@nuxt/eslint-config": "^1.1.0",
115
+ "@nuxt/eslint-config": "^1.2.0",
114
116
  "@nuxt/module-builder": "^0.8.4",
115
- "@nuxt/test-utils": "^3.17.1",
117
+ "@nuxt/test-utils": "^3.17.2",
116
118
  "@standard-schema/spec": "^1.0.0",
117
119
  "@vue/test-utils": "^2.4.6",
118
120
  "embla-carousel": "^8.5.2",
119
- "eslint": "^9.21.0",
120
- "happy-dom": "^17.1.2",
121
+ "eslint": "^9.22.0",
122
+ "happy-dom": "^17.4.3",
121
123
  "joi": "^17.13.3",
122
- "nuxt": "^3.15.4",
124
+ "nuxt": "^3.16.0",
123
125
  "nuxt-component-meta": "^0.10.0",
124
126
  "superstruct": "^2.0.2",
125
127
  "valibot": "^0.42.1",
126
128
  "vitepress": "^1.5.0",
127
- "vitest": "^3.0.7",
129
+ "vitest": "^3.0.8",
128
130
  "vitest-environment-nuxt": "^1.0.1",
129
131
  "vue-tsc": "^2.2.0",
130
132
  "yup": "^1.6.1",
@@ -137,10 +139,8 @@
137
139
  "@bitrix24/b24ui-nuxt": "workspace:*",
138
140
  "chokidar": "3.6.0",
139
141
  "debug": "4.3.7",
140
- "happy-dom": "17.1.2",
141
- "rollup": "4.32.1",
142
+ "rollup": "4.34.9",
142
143
  "typescript": "5.6.3",
143
- "unimport": "3.14.5",
144
144
  "unplugin": "^2.2.0",
145
145
  "vue": "3.5.13",
146
146
  "vue-tsc": "2.2.0"