@bitrix24/b24ui-nuxt 0.4.2 → 0.4.4

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 (78) hide show
  1. package/.nuxt/b24ui/prose/a.ts +5 -0
  2. package/.nuxt/b24ui/prose/code.ts +31 -0
  3. package/.nuxt/b24ui/prose/pre.ts +6 -0
  4. package/dist/meta.cjs +714 -0
  5. package/dist/meta.d.cts +714 -0
  6. package/dist/meta.d.mts +714 -0
  7. package/dist/meta.d.ts +714 -0
  8. package/dist/meta.mjs +714 -0
  9. package/dist/module.cjs +1 -1
  10. package/dist/module.json +1 -1
  11. package/dist/module.mjs +1 -1
  12. package/dist/runtime/components/Avatar.vue +2 -1
  13. package/dist/runtime/components/RadioGroup.vue +3 -1
  14. package/dist/runtime/locale/ar.js +55 -0
  15. package/dist/runtime/locale/br.d.ts +2 -0
  16. package/dist/runtime/locale/br.js +54 -0
  17. package/dist/runtime/locale/de.d.ts +2 -0
  18. package/dist/runtime/locale/de.js +54 -0
  19. package/dist/runtime/locale/en.js +6 -0
  20. package/dist/runtime/locale/fr.d.ts +2 -0
  21. package/dist/runtime/locale/fr.js +54 -0
  22. package/dist/runtime/locale/id.d.ts +2 -0
  23. package/dist/runtime/locale/id.js +54 -0
  24. package/dist/runtime/locale/index.d.ts +44 -1
  25. package/dist/runtime/locale/index.js +17 -1
  26. package/dist/runtime/locale/it.d.ts +2 -0
  27. package/dist/runtime/locale/it.js +54 -0
  28. package/dist/runtime/locale/ja.d.ts +2 -0
  29. package/dist/runtime/locale/ja.js +54 -0
  30. package/dist/runtime/locale/kz.d.ts +2 -0
  31. package/dist/runtime/locale/kz.js +54 -0
  32. package/dist/runtime/locale/la.d.ts +2 -0
  33. package/dist/runtime/locale/{es.js → la.js} +7 -1
  34. package/dist/runtime/locale/ms.d.ts +2 -0
  35. package/dist/runtime/locale/ms.js +54 -0
  36. package/dist/runtime/locale/pl.d.ts +2 -0
  37. package/dist/runtime/locale/pl.js +54 -0
  38. package/dist/runtime/locale/ru.js +6 -0
  39. package/dist/runtime/locale/sc.d.ts +2 -0
  40. package/dist/runtime/locale/sc.js +54 -0
  41. package/dist/runtime/locale/tc.d.ts +2 -0
  42. package/dist/runtime/locale/tc.js +54 -0
  43. package/dist/runtime/locale/th.d.ts +2 -0
  44. package/dist/runtime/locale/th.js +54 -0
  45. package/dist/runtime/locale/tr.d.ts +2 -0
  46. package/dist/runtime/locale/tr.js +54 -0
  47. package/dist/runtime/locale/ua.d.ts +2 -0
  48. package/dist/runtime/locale/ua.js +54 -0
  49. package/dist/runtime/locale/vn.d.ts +2 -0
  50. package/dist/runtime/locale/vn.js +54 -0
  51. package/dist/runtime/prose/A.vue +32 -0
  52. package/dist/runtime/prose/Blockquote.vue +0 -2
  53. package/dist/runtime/prose/Code.vue +42 -0
  54. package/dist/runtime/prose/Em.vue +8 -12
  55. package/dist/runtime/prose/H1.vue +0 -2
  56. package/dist/runtime/prose/H2.vue +0 -2
  57. package/dist/runtime/prose/H3.vue +0 -2
  58. package/dist/runtime/prose/H4.vue +0 -2
  59. package/dist/runtime/prose/H5.vue +0 -2
  60. package/dist/runtime/prose/H6.vue +0 -2
  61. package/dist/runtime/prose/Hr.vue +0 -2
  62. package/dist/runtime/prose/Li.vue +0 -2
  63. package/dist/runtime/prose/Ol.vue +0 -2
  64. package/dist/runtime/prose/P.vue +0 -2
  65. package/dist/runtime/prose/Pre.vue +44 -0
  66. package/dist/runtime/prose/Strong.vue +0 -2
  67. package/dist/runtime/prose/Ul.vue +0 -2
  68. package/dist/runtime/types/index.d.ts +3 -0
  69. package/dist/runtime/types/index.js +3 -0
  70. package/dist/runtime/types/locale.d.ts +6 -0
  71. package/dist/shared/{b24ui-nuxt.Bx_-_mhu.mjs → b24ui-nuxt.BRwBcdAH.mjs} +91 -0
  72. package/dist/shared/{b24ui-nuxt.Bt28CeAD.cjs → b24ui-nuxt.C1tIhR9w.cjs} +91 -0
  73. package/dist/unplugin.cjs +1 -1
  74. package/dist/unplugin.mjs +1 -1
  75. package/dist/vite.cjs +1 -1
  76. package/dist/vite.mjs +1 -1
  77. package/package.json +7 -7
  78. /package/dist/runtime/locale/{es.d.ts → ar.d.ts} +0 -0
@@ -15,8 +15,6 @@ export interface proseHrProps {
15
15
  </script>
16
16
 
17
17
  <script setup lang="ts">
18
- defineOptions({ inheritAttrs: false })
19
-
20
18
  const props = defineProps<proseHrProps>()
21
19
 
22
20
  // eslint-disable-next-line vue/no-dupe-keys
@@ -19,8 +19,6 @@ export interface proseLiSlots {
19
19
  </script>
20
20
 
21
21
  <script setup lang="ts">
22
- defineOptions({ inheritAttrs: false })
23
-
24
22
  const props = defineProps<proseLiProps>()
25
23
 
26
24
  // eslint-disable-next-line vue/no-dupe-keys
@@ -19,8 +19,6 @@ export interface proseOlSlots {
19
19
  </script>
20
20
 
21
21
  <script setup lang="ts">
22
- defineOptions({ inheritAttrs: false })
23
-
24
22
  const props = defineProps<proseOlProps>()
25
23
 
26
24
  // eslint-disable-next-line vue/no-dupe-keys
@@ -19,8 +19,6 @@ export interface prosePSlots {
19
19
  </script>
20
20
 
21
21
  <script setup lang="ts">
22
- defineOptions({ inheritAttrs: false })
23
-
24
22
  const props = defineProps<prosePProps>()
25
23
 
26
24
  // eslint-disable-next-line vue/no-dupe-keys
@@ -0,0 +1,44 @@
1
+ <script lang="ts">
2
+ import type { AppConfig } from '@nuxt/schema'
3
+ import _appConfig from '#build/app.config'
4
+ import theme from '#build/b24ui/prose/pre'
5
+ import { tv } from '../utils/tv'
6
+
7
+ const appConfigProsePre = _appConfig as AppConfig & { b24ui: { prose: { pre: Partial<typeof theme> } } }
8
+
9
+ const prosePre = tv({ extend: tv(theme), ...(appConfigProsePre.b24ui?.prose?.pre || {}) })
10
+
11
+ export interface prosePreProps {
12
+ /**
13
+ * The element or component this component should render as.
14
+ * @defaultValue 'div'
15
+ */
16
+ as?: any
17
+ class?: any
18
+ style?: any
19
+ b24ui?: Partial<typeof prosePre.slots>
20
+ }
21
+
22
+ export interface prosePreSlots {
23
+ default(props?: {}): any
24
+ }
25
+ </script>
26
+
27
+ <script setup lang="ts">
28
+ import { Primitive } from 'reka-ui'
29
+
30
+ defineOptions({ inheritAttrs: false })
31
+
32
+ const props = withDefaults(defineProps<prosePreProps>(), { as: 'div' })
33
+
34
+ // eslint-disable-next-line vue/no-dupe-keys
35
+ const b24ui = prosePre({})
36
+ </script>
37
+
38
+ <template>
39
+ <Primitive :as="as" :class="b24ui.root({ class: [props.class, props.b24ui?.root] })" :style="props.style">
40
+ <pre
41
+ :class="b24ui.base({ class: props.b24ui?.base })"
42
+ ><slot /></pre>
43
+ </Primitive>
44
+ </template>
@@ -19,8 +19,6 @@ export interface proseStrongSlots {
19
19
  </script>
20
20
 
21
21
  <script setup lang="ts">
22
- defineOptions({ inheritAttrs: false })
23
-
24
22
  const props = defineProps<proseStrongProps>()
25
23
 
26
24
  // eslint-disable-next-line vue/no-dupe-keys
@@ -19,8 +19,6 @@ export interface proseUlSlots {
19
19
  </script>
20
20
 
21
21
  <script setup lang="ts">
22
- defineOptions({ inheritAttrs: false })
23
-
24
22
  const props = defineProps<proseUlProps>()
25
23
 
26
24
  // eslint-disable-next-line vue/no-dupe-keys
@@ -44,12 +44,15 @@ export * from '../prose/H4.vue';
44
44
  export * from '../prose/H5.vue';
45
45
  export * from '../prose/H6.vue';
46
46
  export * from '../prose/P.vue';
47
+ export * from '../prose/A.vue';
47
48
  export * from '../prose/Blockquote.vue';
48
49
  export * from '../prose/Strong.vue';
49
50
  export * from '../prose/Ol.vue';
50
51
  export * from '../prose/Ul.vue';
51
52
  export * from '../prose/Li.vue';
52
53
  export * from '../prose/Hr.vue';
54
+ export * from '../prose/Code.vue';
55
+ export * from '../prose/Pre.vue';
53
56
  export * from './form';
54
57
  export * from './icons';
55
58
  export * from './locale';
@@ -44,12 +44,15 @@ export * from "../prose/H4.vue";
44
44
  export * from "../prose/H5.vue";
45
45
  export * from "../prose/H6.vue";
46
46
  export * from "../prose/P.vue";
47
+ export * from "../prose/A.vue";
47
48
  export * from "../prose/Blockquote.vue";
48
49
  export * from "../prose/Strong.vue";
49
50
  export * from "../prose/Ol.vue";
50
51
  export * from "../prose/Ul.vue";
51
52
  export * from "../prose/Li.vue";
52
53
  export * from "../prose/Hr.vue";
54
+ export * from "../prose/Code.vue";
55
+ export * from "../prose/Pre.vue";
53
56
  export * from "./form.js";
54
57
  export * from "./icons.js";
55
58
  export * from "./locale.js";
@@ -4,6 +4,12 @@ export type Messages = {
4
4
  noData: string;
5
5
  create: string;
6
6
  };
7
+ calendar: {
8
+ prevYear: string;
9
+ nextYear: string;
10
+ prevMonth: string;
11
+ nextMonth: string;
12
+ };
7
13
  inputNumber: {
8
14
  increment: string;
9
15
  decrement: string;
@@ -5462,6 +5462,21 @@ const p = {
5462
5462
  }
5463
5463
  };
5464
5464
 
5465
+ const a = {
5466
+ slots: {
5467
+ base: [
5468
+ "cursor-pointer",
5469
+ "text-blue-700 dark:text-blue-300",
5470
+ "hover:underline underline-offset-2",
5471
+ "focus-visible:outline-info-text",
5472
+ "transition-colors [&>code]:transition-colors",
5473
+ "[&>code]:ring-dashed",
5474
+ "hover:[&>code]:text-blue-700 hover:[&>code]:bg-blue-250 hover:[&>code]:ring-blue-250",
5475
+ "dark:hover:[&>code]:text-blue-700 dark:hover:[&>code]:bg-blue-250 dark:hover:[&>code]:ring-blue-250"
5476
+ ].join(" ")
5477
+ }
5478
+ };
5479
+
5465
5480
  const blockquote = {
5466
5481
  slots: {
5467
5482
  base: "mb-2 border-s-4 border-blue-500 dark:border-blue-600 ps-4 italic"
@@ -5519,9 +5534,84 @@ const hr = {
5519
5534
  }
5520
5535
  };
5521
5536
 
5537
+ const code = {
5538
+ slots: {
5539
+ base: [
5540
+ "px-1.5 py-0.5",
5541
+ "font-b24-system-mono font-medium text-sm leading-normal",
5542
+ "rounded-md",
5543
+ "inline-block"
5544
+ ].join(" ")
5545
+ },
5546
+ variants: {
5547
+ color: {
5548
+ default: [
5549
+ "ring ring-inset",
5550
+ "text-base-800 bg-base-150 ring-base-300",
5551
+ "dark:text-base-950 dark:bg-base-200 dark:ring-base-800"
5552
+ ].join(" "),
5553
+ danger: [
5554
+ "ring ring-inset",
5555
+ "text-red-800 bg-red-250 ring-red-250",
5556
+ "dark:text-red-800 dark:bg-red-350 dark:ring-red-350"
5557
+ ].join(" "),
5558
+ success: [
5559
+ "ring ring-inset",
5560
+ "text-green-800 bg-green-300 ring-green-300",
5561
+ "dark:text-green-800 dark:bg-green-330 dark:ring-green-330"
5562
+ ].join(" "),
5563
+ warning: [
5564
+ "ring ring-inset",
5565
+ "text-orange-800 bg-orange-300 ring-orange-300",
5566
+ "dark:text-orange-800 dark:bg-orange-400 dark:ring-orange-400"
5567
+ ].join(" "),
5568
+ primary: [
5569
+ "ring ring-inset",
5570
+ "text-blue-700 bg-blue-250 ring-blue-250",
5571
+ "dark:text-blue-700 dark:bg-blue-300 dark:ring-blue-300"
5572
+ ].join(" "),
5573
+ secondary: [
5574
+ "ring ring-inset",
5575
+ "text-white bg-cyan-350 ring-cyan-350",
5576
+ "dark:text-cyan-100 dark:bg-cyan-400 dark:ring-cyan-400"
5577
+ ].join(" "),
5578
+ collab: [
5579
+ "ring ring-inset",
5580
+ "text-collab-800 bg-collab-300 ring-collab-300",
5581
+ "dark:text-collab-800 dark:bg-collab-300 dark:ring-collab-300"
5582
+ ].join(" "),
5583
+ ai: [
5584
+ "ring ring-inset",
5585
+ "text-ai-500 bg-ai-150 ring-ai-150",
5586
+ "dark:text-ai-600 dark:bg-ai-200 dark:ring-ai-200"
5587
+ ].join(" ")
5588
+ }
5589
+ },
5590
+ defaultVariants: {
5591
+ color: "default"
5592
+ }
5593
+ };
5594
+
5595
+ const pre = {
5596
+ slots: {
5597
+ root: [
5598
+ "my-4 p-4",
5599
+ "font-b24-system-mono font-semibold text-sm leading-4",
5600
+ "bg-black",
5601
+ "overflow-auto rounded w-full",
5602
+ "text-pretty"
5603
+ ].join(" "),
5604
+ base: [
5605
+ "text-green-350"
5606
+ ].join(" ")
5607
+ }
5608
+ };
5609
+
5522
5610
  const themeProse = {
5523
5611
  __proto__: null,
5612
+ a: a,
5524
5613
  blockquote: blockquote,
5614
+ code: code,
5525
5615
  em: em,
5526
5616
  h1: h1,
5527
5617
  h2: h2,
@@ -5533,6 +5623,7 @@ const themeProse = {
5533
5623
  li: li,
5534
5624
  ol: ol,
5535
5625
  p: p,
5626
+ pre: pre,
5536
5627
  strong: strong,
5537
5628
  ul: ul
5538
5629
  };
@@ -5464,6 +5464,21 @@ const p = {
5464
5464
  }
5465
5465
  };
5466
5466
 
5467
+ const a = {
5468
+ slots: {
5469
+ base: [
5470
+ "cursor-pointer",
5471
+ "text-blue-700 dark:text-blue-300",
5472
+ "hover:underline underline-offset-2",
5473
+ "focus-visible:outline-info-text",
5474
+ "transition-colors [&>code]:transition-colors",
5475
+ "[&>code]:ring-dashed",
5476
+ "hover:[&>code]:text-blue-700 hover:[&>code]:bg-blue-250 hover:[&>code]:ring-blue-250",
5477
+ "dark:hover:[&>code]:text-blue-700 dark:hover:[&>code]:bg-blue-250 dark:hover:[&>code]:ring-blue-250"
5478
+ ].join(" ")
5479
+ }
5480
+ };
5481
+
5467
5482
  const blockquote = {
5468
5483
  slots: {
5469
5484
  base: "mb-2 border-s-4 border-blue-500 dark:border-blue-600 ps-4 italic"
@@ -5521,9 +5536,84 @@ const hr = {
5521
5536
  }
5522
5537
  };
5523
5538
 
5539
+ const code = {
5540
+ slots: {
5541
+ base: [
5542
+ "px-1.5 py-0.5",
5543
+ "font-b24-system-mono font-medium text-sm leading-normal",
5544
+ "rounded-md",
5545
+ "inline-block"
5546
+ ].join(" ")
5547
+ },
5548
+ variants: {
5549
+ color: {
5550
+ default: [
5551
+ "ring ring-inset",
5552
+ "text-base-800 bg-base-150 ring-base-300",
5553
+ "dark:text-base-950 dark:bg-base-200 dark:ring-base-800"
5554
+ ].join(" "),
5555
+ danger: [
5556
+ "ring ring-inset",
5557
+ "text-red-800 bg-red-250 ring-red-250",
5558
+ "dark:text-red-800 dark:bg-red-350 dark:ring-red-350"
5559
+ ].join(" "),
5560
+ success: [
5561
+ "ring ring-inset",
5562
+ "text-green-800 bg-green-300 ring-green-300",
5563
+ "dark:text-green-800 dark:bg-green-330 dark:ring-green-330"
5564
+ ].join(" "),
5565
+ warning: [
5566
+ "ring ring-inset",
5567
+ "text-orange-800 bg-orange-300 ring-orange-300",
5568
+ "dark:text-orange-800 dark:bg-orange-400 dark:ring-orange-400"
5569
+ ].join(" "),
5570
+ primary: [
5571
+ "ring ring-inset",
5572
+ "text-blue-700 bg-blue-250 ring-blue-250",
5573
+ "dark:text-blue-700 dark:bg-blue-300 dark:ring-blue-300"
5574
+ ].join(" "),
5575
+ secondary: [
5576
+ "ring ring-inset",
5577
+ "text-white bg-cyan-350 ring-cyan-350",
5578
+ "dark:text-cyan-100 dark:bg-cyan-400 dark:ring-cyan-400"
5579
+ ].join(" "),
5580
+ collab: [
5581
+ "ring ring-inset",
5582
+ "text-collab-800 bg-collab-300 ring-collab-300",
5583
+ "dark:text-collab-800 dark:bg-collab-300 dark:ring-collab-300"
5584
+ ].join(" "),
5585
+ ai: [
5586
+ "ring ring-inset",
5587
+ "text-ai-500 bg-ai-150 ring-ai-150",
5588
+ "dark:text-ai-600 dark:bg-ai-200 dark:ring-ai-200"
5589
+ ].join(" ")
5590
+ }
5591
+ },
5592
+ defaultVariants: {
5593
+ color: "default"
5594
+ }
5595
+ };
5596
+
5597
+ const pre = {
5598
+ slots: {
5599
+ root: [
5600
+ "my-4 p-4",
5601
+ "font-b24-system-mono font-semibold text-sm leading-4",
5602
+ "bg-black",
5603
+ "overflow-auto rounded w-full",
5604
+ "text-pretty"
5605
+ ].join(" "),
5606
+ base: [
5607
+ "text-green-350"
5608
+ ].join(" ")
5609
+ }
5610
+ };
5611
+
5524
5612
  const themeProse = {
5525
5613
  __proto__: null,
5614
+ a: a,
5526
5615
  blockquote: blockquote,
5616
+ code: code,
5527
5617
  em: em,
5528
5618
  h1: h1,
5529
5619
  h2: h2,
@@ -5535,6 +5625,7 @@ const themeProse = {
5535
5625
  li: li,
5536
5626
  ol: ol,
5537
5627
  p: p,
5628
+ pre: pre,
5538
5629
  strong: strong,
5539
5630
  ul: ul
5540
5631
  };
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.Bt28CeAD.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.C1tIhR9w.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.Bx_-_mhu.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.BRwBcdAH.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.Bt28CeAD.cjs');
9
+ require('./shared/b24ui-nuxt.C1tIhR9w.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.Bx_-_mhu.mjs';
7
+ import './shared/b24ui-nuxt.BRwBcdAH.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.2",
4
+ "version": "0.4.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -75,12 +75,12 @@
75
75
  "@nuxt/kit": "^3.15.4",
76
76
  "@nuxt/schema": "^3.15.4",
77
77
  "@nuxtjs/color-mode": "^3.5.2",
78
- "@tailwindcss/postcss": "^4.0.10",
79
- "@tailwindcss/vite": "^4.0.10",
78
+ "@tailwindcss/postcss": "^4.0.11",
79
+ "@tailwindcss/vite": "^4.0.11",
80
80
  "@tanstack/vue-table": "^8.21.2",
81
81
  "@unhead/vue": "^1.11.19",
82
- "@vueuse/core": "^12.7.0",
83
- "@vueuse/integrations": "^12.7.0",
82
+ "@vueuse/core": "^12.8.2",
83
+ "@vueuse/integrations": "^12.8.2",
84
84
  "canvas-confetti": "^1.9.3",
85
85
  "colortranslator": "^4.1.0",
86
86
  "consola": "^3.4.0",
@@ -96,12 +96,12 @@
96
96
  "knitwork": "^1.2.0",
97
97
  "magic-string": "^0.30.17",
98
98
  "mlly": "^1.7.4",
99
- "ohash": "^2.0.10",
99
+ "ohash": "^2.0.11",
100
100
  "pathe": "^2.0.3",
101
101
  "reka-ui": "^2.0.2",
102
102
  "scule": "^1.3.0",
103
103
  "tailwind-variants": "^0.3.1",
104
- "tailwindcss": "^4.0.10",
104
+ "tailwindcss": "^4.0.11",
105
105
  "tinyglobby": "^0.2.12",
106
106
  "unplugin": "^2.2.0",
107
107
  "unplugin-auto-import": "^19.1.1",
File without changes