@bitrix24/b24ui-nuxt 0.4.0 → 0.4.1

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 (73) hide show
  1. package/.nuxt/b24ui/index.ts +1 -0
  2. package/.nuxt/b24ui/modal.ts +1 -1
  3. package/.nuxt/b24ui/prose/prose-h1.ts +6 -0
  4. package/.nuxt/b24ui/prose/prose-h2.ts +16 -0
  5. package/.nuxt/b24ui/prose/prose-h3.ts +16 -0
  6. package/.nuxt/b24ui/prose/prose-li.ts +5 -0
  7. package/.nuxt/b24ui/prose/prose-ol.ts +5 -0
  8. package/.nuxt/b24ui/prose/prose-p.ts +5 -0
  9. package/.nuxt/b24ui/prose/prose-ul.ts +5 -0
  10. package/.nuxt/b24ui/slideover.ts +3 -2
  11. package/dist/meta.cjs +31777 -28683
  12. package/dist/meta.d.cts +31777 -28683
  13. package/dist/meta.d.mts +31777 -28683
  14. package/dist/meta.d.ts +31777 -28683
  15. package/dist/meta.mjs +31777 -28683
  16. package/dist/module.cjs +6 -1
  17. package/dist/module.json +1 -1
  18. package/dist/module.mjs +6 -1
  19. package/dist/runtime/components/Advice.vue +3 -0
  20. package/dist/runtime/components/Alert.vue +17 -2
  21. package/dist/runtime/components/Avatar.vue +7 -0
  22. package/dist/runtime/components/AvatarGroup.vue +3 -0
  23. package/dist/runtime/components/Badge.vue +21 -3
  24. package/dist/runtime/components/Button.vue +37 -7
  25. package/dist/runtime/components/ButtonGroup.vue +7 -1
  26. package/dist/runtime/components/Checkbox.vue +6 -0
  27. package/dist/runtime/components/Chip.vue +18 -2
  28. package/dist/runtime/components/Countdown.vue +32 -8
  29. package/dist/runtime/components/{content/DescriptionList.vue → DescriptionList.vue} +19 -8
  30. package/dist/runtime/components/DropdownMenu.vue +14 -2
  31. package/dist/runtime/components/DropdownMenuContent.vue +6 -0
  32. package/dist/runtime/components/FormField.vue +6 -0
  33. package/dist/runtime/components/Input.vue +50 -6
  34. package/dist/runtime/components/InputMenu.vue +67 -15
  35. package/dist/runtime/components/InputNumber.vue +42 -8
  36. package/dist/runtime/components/Kbd.vue +6 -0
  37. package/dist/runtime/components/Link.vue +8 -4
  38. package/dist/runtime/components/Modal.vue +9 -3
  39. package/dist/runtime/components/Progress.vue +19 -3
  40. package/dist/runtime/components/RadioGroup.vue +6 -0
  41. package/dist/runtime/components/Range.vue +9 -1
  42. package/dist/runtime/components/Select.vue +47 -10
  43. package/dist/runtime/components/SelectMenu.vue +52 -12
  44. package/dist/runtime/components/Separator.vue +16 -2
  45. package/dist/runtime/components/Slideover.vue +12 -2
  46. package/dist/runtime/components/Switch.vue +19 -3
  47. package/dist/runtime/components/Tabs.vue +12 -0
  48. package/dist/runtime/components/Textarea.vue +50 -6
  49. package/dist/runtime/components/Toast.vue +13 -2
  50. package/dist/runtime/components/Toaster.vue +8 -0
  51. package/dist/runtime/components/{prose → content}/TableWrapper.vue +27 -3
  52. package/dist/runtime/composables/useComponentIcons.d.ts +11 -4
  53. package/dist/runtime/index.css +1 -1
  54. package/dist/runtime/prose/ProseH1.vue +36 -0
  55. package/dist/runtime/prose/ProseH2.vue +36 -0
  56. package/dist/runtime/prose/ProseH3.vue +36 -0
  57. package/dist/runtime/prose/ProseLi.vue +36 -0
  58. package/dist/runtime/prose/ProseOl.vue +36 -0
  59. package/dist/runtime/prose/ProseP.vue +36 -0
  60. package/dist/runtime/prose/ProseUl.vue +36 -0
  61. package/dist/runtime/types/index.d.ts +9 -2
  62. package/dist/runtime/types/index.js +9 -2
  63. package/dist/runtime/utils/index.js +1 -1
  64. package/dist/runtime/vue/components/Link.vue +8 -4
  65. package/dist/shared/{b24ui-nuxt.CBO0gAWn.mjs → b24ui-nuxt.BGGwh89R.mjs} +198 -83
  66. package/dist/shared/{b24ui-nuxt.BT9wxrhm.cjs → b24ui-nuxt.CnMGpwQb.cjs} +198 -83
  67. package/dist/unplugin.cjs +4 -4
  68. package/dist/unplugin.mjs +4 -4
  69. package/dist/vite.cjs +1 -1
  70. package/dist/vite.mjs +1 -1
  71. package/package.json +4 -3
  72. /package/.nuxt/b24ui/{prose → content}/table-wrapper.ts +0 -0
  73. /package/.nuxt/b24ui/{content/description-list.ts → description-list.ts} +0 -0
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.BT9wxrhm.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.CnMGpwQb.cjs');
9
9
  const tinyglobby = require('tinyglobby');
10
10
  const knitwork = require('knitwork');
11
11
  const MagicString = require('magic-string');
@@ -117,8 +117,8 @@ function ComponentImportPlugin(options, meta) {
117
117
  const componentNames = new Set(components.map((c) => `B24${c.replace(/\.vue$/, "")}`));
118
118
  const componentsContent = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "components/content") });
119
119
  const componentContentNames = new Set(componentsContent.map((c) => `B24${c.replace(/\.vue$/, "")}`));
120
- const componentsProse = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "components/prose") });
121
- const componentProseNames = new Set(componentsProse.map((c) => `B24${c.replace(/\.vue$/, "")}`));
120
+ const componentsProse = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "prose") });
121
+ const componentProseNames = new Set(componentsProse.map((c) => `${c.replace(/\.vue$/, "")}`));
122
122
  const overrides = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "vue/components") });
123
123
  const overrideNames = new Set(overrides.map((c) => `B24${c.replace(/\.vue$/, "")}`));
124
124
  const pluginOptions = defu.defu(options.components, {
@@ -129,7 +129,7 @@ function ComponentImportPlugin(options, meta) {
129
129
  if (overrideNames.has(componentName))
130
130
  return { name: "default", from: pathe.join(runtimeDir, "vue/components", `${componentName.slice("B24".length)}.vue`) };
131
131
  if (componentProseNames.has(componentName))
132
- return { name: "default", from: pathe.join(runtimeDir, "components/prose", `${componentName.slice("B24".length)}.vue`) };
132
+ return { name: "default", from: pathe.join(runtimeDir, "prose", `${componentName.slice(0)}.vue`) };
133
133
  if (componentContentNames.has(componentName))
134
134
  return { name: "default", from: pathe.join(runtimeDir, "components/content", `${componentName.slice("B24".length)}.vue`) };
135
135
  if (componentNames.has(componentName))
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.CBO0gAWn.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.BGGwh89R.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
@@ -107,8 +107,8 @@ function ComponentImportPlugin(options, meta) {
107
107
  const componentNames = new Set(components.map((c) => `B24${c.replace(/\.vue$/, "")}`));
108
108
  const componentsContent = globSync("**/*.vue", { cwd: join(runtimeDir, "components/content") });
109
109
  const componentContentNames = new Set(componentsContent.map((c) => `B24${c.replace(/\.vue$/, "")}`));
110
- const componentsProse = globSync("**/*.vue", { cwd: join(runtimeDir, "components/prose") });
111
- const componentProseNames = new Set(componentsProse.map((c) => `B24${c.replace(/\.vue$/, "")}`));
110
+ const componentsProse = globSync("**/*.vue", { cwd: join(runtimeDir, "prose") });
111
+ const componentProseNames = new Set(componentsProse.map((c) => `${c.replace(/\.vue$/, "")}`));
112
112
  const overrides = globSync("**/*.vue", { cwd: join(runtimeDir, "vue/components") });
113
113
  const overrideNames = new Set(overrides.map((c) => `B24${c.replace(/\.vue$/, "")}`));
114
114
  const pluginOptions = defu(options.components, {
@@ -119,7 +119,7 @@ function ComponentImportPlugin(options, meta) {
119
119
  if (overrideNames.has(componentName))
120
120
  return { name: "default", from: join(runtimeDir, "vue/components", `${componentName.slice("B24".length)}.vue`) };
121
121
  if (componentProseNames.has(componentName))
122
- return { name: "default", from: join(runtimeDir, "components/prose", `${componentName.slice("B24".length)}.vue`) };
122
+ return { name: "default", from: join(runtimeDir, "prose", `${componentName.slice(0)}.vue`) };
123
123
  if (componentContentNames.has(componentName))
124
124
  return { name: "default", from: join(runtimeDir, "components/content", `${componentName.slice("B24".length)}.vue`) };
125
125
  if (componentNames.has(componentName))
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.BT9wxrhm.cjs');
9
+ require('./shared/b24ui-nuxt.CnMGpwQb.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.CBO0gAWn.mjs';
7
+ import './shared/b24ui-nuxt.BGGwh89R.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.0",
4
+ "version": "0.4.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -35,6 +35,7 @@
35
35
  "types": "./vue-plugin.d.ts"
36
36
  },
37
37
  "./runtime/*": "./dist/runtime/*",
38
+ "./prose/*": "./dist/runtime/prose/*",
38
39
  "./components/*": "./dist/runtime/components/*",
39
40
  "./composables/*": "./dist/runtime/composables/*",
40
41
  "./types/*": "./dist/runtime/types/*",
@@ -95,7 +96,7 @@
95
96
  "knitwork": "^1.2.0",
96
97
  "magic-string": "^0.30.17",
97
98
  "mlly": "^1.7.4",
98
- "ohash": "^1.1.4",
99
+ "ohash": "^2.0.10",
99
100
  "pathe": "^2.0.3",
100
101
  "reka-ui": "^2.0.2",
101
102
  "scule": "^1.3.0",
@@ -111,7 +112,7 @@
111
112
  "@types/canvas-confetti": "^1.9.0",
112
113
  "@nuxt/eslint-config": "^1.1.0",
113
114
  "@nuxt/module-builder": "^0.8.4",
114
- "@nuxt/test-utils": "^3.17.0",
115
+ "@nuxt/test-utils": "^3.17.1",
115
116
  "@standard-schema/spec": "^1.0.0",
116
117
  "@vue/test-utils": "^2.4.6",
117
118
  "embla-carousel": "^8.5.2",
File without changes