@bitrix24/b24ui-nuxt 0.6.8 → 0.7.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 (201) hide show
  1. package/.nuxt/b24ui/accordion.ts +20 -0
  2. package/.nuxt/b24ui/advice.ts +2 -10
  3. package/.nuxt/b24ui/alert.ts +2 -15
  4. package/.nuxt/b24ui/avatar-group.ts +2 -10
  5. package/.nuxt/b24ui/avatar.ts +3 -11
  6. package/.nuxt/b24ui/badge.ts +48 -13
  7. package/.nuxt/b24ui/button-group.ts +2 -22
  8. package/.nuxt/b24ui/button.ts +4 -17
  9. package/.nuxt/b24ui/calendar.ts +3 -11
  10. package/.nuxt/b24ui/checkbox.ts +75 -11
  11. package/.nuxt/b24ui/chip.ts +2 -10
  12. package/.nuxt/b24ui/collapsible.ts +2 -10
  13. package/.nuxt/b24ui/container.ts +2 -10
  14. package/.nuxt/b24ui/countdown.ts +2 -10
  15. package/.nuxt/b24ui/description-list.ts +2 -15
  16. package/.nuxt/b24ui/dropdown-menu.ts +4 -11
  17. package/.nuxt/b24ui/form-field.ts +3 -10
  18. package/.nuxt/b24ui/form.ts +2 -10
  19. package/.nuxt/b24ui/index.ts +1 -0
  20. package/.nuxt/b24ui/input-menu.ts +6 -30
  21. package/.nuxt/b24ui/input-number.ts +15 -10
  22. package/.nuxt/b24ui/input.ts +4 -17
  23. package/.nuxt/b24ui/kbd.ts +2 -10
  24. package/.nuxt/b24ui/link.ts +11 -17
  25. package/.nuxt/b24ui/modal.ts +3 -11
  26. package/.nuxt/b24ui/navbar-divider.ts +2 -10
  27. package/.nuxt/b24ui/navbar-section.ts +2 -10
  28. package/.nuxt/b24ui/navbar-spacer.ts +2 -10
  29. package/.nuxt/b24ui/navbar.ts +2 -10
  30. package/.nuxt/b24ui/navigation-menu.ts +69 -60
  31. package/.nuxt/b24ui/popover.ts +2 -10
  32. package/.nuxt/b24ui/progress.ts +2 -10
  33. package/.nuxt/b24ui/radio-group.ts +3 -11
  34. package/.nuxt/b24ui/range.ts +2 -10
  35. package/.nuxt/b24ui/select-menu.ts +10 -40
  36. package/.nuxt/b24ui/select.ts +10 -40
  37. package/.nuxt/b24ui/separator.ts +2 -10
  38. package/.nuxt/b24ui/sidebar-body.ts +2 -10
  39. package/.nuxt/b24ui/sidebar-footer.ts +2 -10
  40. package/.nuxt/b24ui/sidebar-header.ts +2 -10
  41. package/.nuxt/b24ui/sidebar-heading.ts +2 -10
  42. package/.nuxt/b24ui/sidebar-layout.ts +3 -11
  43. package/.nuxt/b24ui/sidebar-section.ts +2 -10
  44. package/.nuxt/b24ui/sidebar-spacer.ts +2 -10
  45. package/.nuxt/b24ui/sidebar.ts +2 -10
  46. package/.nuxt/b24ui/skeleton.ts +2 -10
  47. package/.nuxt/b24ui/slideover.ts +2 -10
  48. package/.nuxt/b24ui/stacked-layout.ts +2 -10
  49. package/.nuxt/b24ui/switch.ts +2 -10
  50. package/.nuxt/b24ui/tabs.ts +6 -13
  51. package/.nuxt/b24ui/textarea.ts +4 -17
  52. package/.nuxt/b24ui/toast.ts +2 -15
  53. package/.nuxt/b24ui/toaster.ts +3 -11
  54. package/.nuxt/b24ui/tooltip.ts +3 -11
  55. package/.nuxt/b24ui.css +1 -1
  56. package/cli/templates.mjs +2 -2
  57. package/dist/meta.d.mts +35333 -15836
  58. package/dist/meta.mjs +35333 -15836
  59. package/dist/module.json +1 -1
  60. package/dist/module.mjs +11 -3
  61. package/dist/runtime/air-design-tokens.css +1 -0
  62. package/dist/runtime/components/Accordion.vue +96 -0
  63. package/dist/runtime/components/Accordion.vue.d.ts +78 -0
  64. package/dist/runtime/components/Advice.vue +1 -1
  65. package/dist/runtime/components/Alert.vue +1 -1
  66. package/dist/runtime/components/App.vue +1 -1
  67. package/dist/runtime/components/Avatar.vue +11 -3
  68. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  69. package/dist/runtime/components/AvatarGroup.vue +1 -1
  70. package/dist/runtime/components/Badge.vue +5 -3
  71. package/dist/runtime/components/Badge.vue.d.ts +2 -0
  72. package/dist/runtime/components/Button.vue +2 -3
  73. package/dist/runtime/components/Button.vue.d.ts +1 -1
  74. package/dist/runtime/components/Calendar.vue +1 -1
  75. package/dist/runtime/components/Checkbox.vue +13 -4
  76. package/dist/runtime/components/Checkbox.vue.d.ts +9 -0
  77. package/dist/runtime/components/Chip.vue +1 -1
  78. package/dist/runtime/components/Collapsible.vue +1 -1
  79. package/dist/runtime/components/Countdown.vue +1 -1
  80. package/dist/runtime/components/Countdown.vue.d.ts +2 -2
  81. package/dist/runtime/components/DescriptionList.vue +3 -2
  82. package/dist/runtime/components/DescriptionList.vue.d.ts +1 -1
  83. package/dist/runtime/components/DropdownMenu.vue +1 -1
  84. package/dist/runtime/components/DropdownMenu.vue.d.ts +2 -0
  85. package/dist/runtime/components/DropdownMenuContent.vue +74 -72
  86. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +4 -20
  87. package/dist/runtime/components/Form.vue +6 -6
  88. package/dist/runtime/components/Form.vue.d.ts +12 -11
  89. package/dist/runtime/components/FormField.vue +4 -4
  90. package/dist/runtime/components/Input.vue +12 -8
  91. package/dist/runtime/components/Input.vue.d.ts +31 -30
  92. package/dist/runtime/components/InputMenu.vue +23 -20
  93. package/dist/runtime/components/InputMenu.vue.d.ts +6 -4
  94. package/dist/runtime/components/InputNumber.vue +17 -10
  95. package/dist/runtime/components/InputNumber.vue.d.ts +6 -3
  96. package/dist/runtime/components/Link.vue +5 -13
  97. package/dist/runtime/components/Modal.vue +22 -14
  98. package/dist/runtime/components/Modal.vue.d.ts +18 -5
  99. package/dist/runtime/components/Navbar.vue +1 -1
  100. package/dist/runtime/components/NavbarDivider.vue +1 -1
  101. package/dist/runtime/components/NavbarSection.vue +1 -1
  102. package/dist/runtime/components/NavbarSpacer.vue +1 -1
  103. package/dist/runtime/components/NavigationMenu.vue +186 -44
  104. package/dist/runtime/components/NavigationMenu.vue.d.ts +39 -8
  105. package/dist/runtime/components/OverlayProvider.vue +2 -2
  106. package/dist/runtime/components/Popover.vue +4 -0
  107. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  108. package/dist/runtime/components/Progress.vue +3 -2
  109. package/dist/runtime/components/Progress.vue.d.ts +2 -2
  110. package/dist/runtime/components/RadioGroup.vue +24 -8
  111. package/dist/runtime/components/RadioGroup.vue.d.ts +3 -1
  112. package/dist/runtime/components/Range.vue +2 -2
  113. package/dist/runtime/components/Range.vue.d.ts +19 -20
  114. package/dist/runtime/components/Select.vue +57 -31
  115. package/dist/runtime/components/Select.vue.d.ts +110 -2
  116. package/dist/runtime/components/SelectMenu.vue +77 -23
  117. package/dist/runtime/components/SelectMenu.vue.d.ts +111 -5
  118. package/dist/runtime/components/Separator.vue +3 -3
  119. package/dist/runtime/components/Sidebar.vue +1 -1
  120. package/dist/runtime/components/SidebarBody.vue +1 -1
  121. package/dist/runtime/components/SidebarFooter.vue +1 -1
  122. package/dist/runtime/components/SidebarHeader.vue +1 -1
  123. package/dist/runtime/components/SidebarHeading.vue +1 -1
  124. package/dist/runtime/components/SidebarLayout.vue +1 -1
  125. package/dist/runtime/components/SidebarSection.vue +1 -1
  126. package/dist/runtime/components/SidebarSpacer.vue +1 -1
  127. package/dist/runtime/components/Slideover.vue +23 -15
  128. package/dist/runtime/components/Slideover.vue.d.ts +18 -5
  129. package/dist/runtime/components/StackedLayout.vue +1 -1
  130. package/dist/runtime/components/Switch.vue +1 -1
  131. package/dist/runtime/components/Tabs.vue +28 -7
  132. package/dist/runtime/components/Tabs.vue.d.ts +6 -1
  133. package/dist/runtime/components/Textarea.vue +13 -9
  134. package/dist/runtime/components/Textarea.vue.d.ts +31 -30
  135. package/dist/runtime/components/Toast.vue +7 -6
  136. package/dist/runtime/components/Toast.vue.d.ts +6 -0
  137. package/dist/runtime/components/Toaster.vue +4 -4
  138. package/dist/runtime/components/Toaster.vue.d.ts +6 -0
  139. package/dist/runtime/components/Tooltip.vue +9 -2
  140. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  141. package/dist/runtime/components/content/TableWrapper.vue +1 -1
  142. package/dist/runtime/composables/defineLocale.d.ts +2 -0
  143. package/dist/runtime/composables/defineLocale.js +4 -0
  144. package/dist/runtime/composables/defineShortcuts.js +8 -2
  145. package/dist/runtime/composables/useFormField.d.ts +1 -1
  146. package/dist/runtime/composables/useFormField.js +2 -1
  147. package/dist/runtime/composables/useKbd.d.ts +1 -0
  148. package/dist/runtime/composables/useKbd.js +4 -3
  149. package/dist/runtime/composables/useOverlay.d.ts +11 -11
  150. package/dist/runtime/composables/useOverlay.js +17 -11
  151. package/dist/runtime/index.css +1 -1
  152. package/dist/runtime/inertia/components/Link.vue +45 -60
  153. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  154. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  155. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  156. package/dist/runtime/inertia/stubs.d.ts +1 -1
  157. package/dist/runtime/inertia/stubs.js +1 -1
  158. package/dist/runtime/prose/A.vue +1 -1
  159. package/dist/runtime/prose/Blockquote.vue +1 -1
  160. package/dist/runtime/prose/Code.vue +1 -1
  161. package/dist/runtime/prose/Em.vue +1 -1
  162. package/dist/runtime/prose/H1.vue +1 -1
  163. package/dist/runtime/prose/H2.vue +1 -1
  164. package/dist/runtime/prose/H3.vue +1 -1
  165. package/dist/runtime/prose/H4.vue +1 -1
  166. package/dist/runtime/prose/H5.vue +1 -1
  167. package/dist/runtime/prose/H6.vue +1 -1
  168. package/dist/runtime/prose/Hr.vue +1 -1
  169. package/dist/runtime/prose/Img.vue +1 -1
  170. package/dist/runtime/prose/Li.vue +1 -1
  171. package/dist/runtime/prose/Ol.vue +1 -1
  172. package/dist/runtime/prose/P.vue +1 -1
  173. package/dist/runtime/prose/Pre.vue +1 -1
  174. package/dist/runtime/prose/Strong.vue +1 -1
  175. package/dist/runtime/prose/Table.vue +1 -1
  176. package/dist/runtime/prose/Tbody.vue +1 -1
  177. package/dist/runtime/prose/Td.vue +1 -1
  178. package/dist/runtime/prose/Th.vue +1 -1
  179. package/dist/runtime/prose/Thead.vue +1 -1
  180. package/dist/runtime/prose/Tr.vue +1 -1
  181. package/dist/runtime/prose/Ul.vue +1 -1
  182. package/dist/runtime/types/form.d.ts +11 -10
  183. package/dist/runtime/types/index.d.ts +1 -0
  184. package/dist/runtime/types/index.js +1 -0
  185. package/dist/runtime/types/locale.d.ts +1 -0
  186. package/dist/runtime/types/tv.d.ts +53 -0
  187. package/dist/runtime/types/tv.js +0 -0
  188. package/dist/runtime/types/utils.d.ts +4 -51
  189. package/dist/runtime/types/utils.js +1 -0
  190. package/dist/runtime/utils/link.d.ts +1 -0
  191. package/dist/runtime/utils/link.js +12 -0
  192. package/dist/runtime/vue/components/Link.vue +26 -40
  193. package/dist/runtime/vue/composables/useAppConfig.js +3 -1
  194. package/dist/runtime/vue/stubs.d.ts +1 -1
  195. package/dist/runtime/vue/stubs.js +1 -1
  196. package/dist/shared/{b24ui-nuxt.jU270f-Q.mjs → b24ui-nuxt.CxsFEY3M.mjs} +268 -122
  197. package/dist/unplugin.d.mts +2 -2
  198. package/dist/unplugin.mjs +6 -3
  199. package/dist/vite.d.mts +1 -1
  200. package/dist/vite.mjs +2 -2
  201. package/package.json +30 -29
@@ -3,11 +3,11 @@ import { Options } from 'unplugin-auto-import/types';
3
3
  import { Options as Options$1 } from 'unplugin-vue-components/types';
4
4
  import * as b24ui from '#build/b24ui';
5
5
  import { ModuleOptions } from './module.mjs';
6
- import { DeepPartial } from '../dist/runtime/types/utils.js';
6
+ import { TVConfig } from '../dist/runtime/types/tv.js';
7
7
  import '@nuxt/schema';
8
8
  import '../dist/runtime/types/index.js';
9
9
 
10
- type AppConfigB24UI = {} & DeepPartial<typeof b24ui>;
10
+ type AppConfigB24UI = {} & TVConfig<typeof b24ui>;
11
11
  interface Bitrix24UIOptions extends Omit<ModuleOptions, 'colorMode'> {
12
12
  /** Whether to generate declaration files for auto-imported components. */
13
13
  dts?: boolean;
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.jU270f-Q.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.CxsFEY3M.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
@@ -158,10 +158,13 @@ function ComponentImportPlugin(options, meta) {
158
158
  name: "bitrix24:b24ui:components",
159
159
  enforce: "pre",
160
160
  resolveId(id, importer) {
161
- if (!importer || !normalize(importer).includes(runtimeDir)) {
161
+ if (!importer) {
162
162
  return;
163
163
  }
164
- if (!RELATIVE_IMPORT_RE.test(id)) {
164
+ if (!normalize(importer).includes(runtimeDir) && (!options.extraRuntimeDir || !normalize(importer).includes(options.extraRuntimeDir))) {
165
+ return;
166
+ }
167
+ if (!RELATIVE_IMPORT_RE.test(id) && !id.startsWith("@bitrix24/b24ui-nuxt/components/")) {
165
168
  return;
166
169
  }
167
170
  const filename = id.match(/([^/]+)\.vue$/)?.[1];
package/dist/vite.d.mts CHANGED
@@ -7,7 +7,7 @@ import '#build/b24ui';
7
7
  import './module.mjs';
8
8
  import '@nuxt/schema';
9
9
  import '../dist/runtime/types/index.js';
10
- import '../dist/runtime/types/utils.js';
10
+ import '../dist/runtime/types/tv.js';
11
11
 
12
12
  declare const _default: (options?: Bitrix24UIOptions | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
13
13
 
package/dist/vite.mjs CHANGED
@@ -4,11 +4,11 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/b24ui-nuxt.jU270f-Q.mjs';
7
+ import './shared/b24ui-nuxt.CxsFEY3M.mjs';
8
8
  import 'scule';
9
9
  import '@nuxt/kit';
10
- import 'tinyglobby';
11
10
  import 'knitwork';
11
+ import 'tinyglobby';
12
12
  import 'magic-string';
13
13
  import 'mlly';
14
14
  import 'unplugin-vue-components';
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.6.8",
4
+ "version": "0.7.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -102,20 +102,20 @@
102
102
  "dependencies": {
103
103
  "@bitrix24/b24icons-vue": "^2.0.2",
104
104
  "@bitrix24/b24style": "^1.0.1",
105
- "@internationalized/date": "^3.8.1",
106
- "@internationalized/number": "^3.6.2",
107
- "@nuxt/kit": "^3.17.4",
108
- "@nuxt/schema": "^3.17.4",
105
+ "@internationalized/date": "^3.8.2",
106
+ "@internationalized/number": "^3.6.3",
107
+ "@nuxt/kit": "^3.17.5",
108
+ "@nuxt/schema": "^3.17.5",
109
109
  "@nuxtjs/color-mode": "^3.5.2",
110
110
  "@standard-schema/spec": "^1.0.0",
111
- "@tailwindcss/postcss": "^4.1.8",
112
- "@tailwindcss/vite": "^4.1.8",
111
+ "@tailwindcss/postcss": "^4.1.11",
112
+ "@tailwindcss/vite": "^4.1.11",
113
113
  "@tanstack/vue-table": "^8.21.3",
114
- "@unhead/vue": "^2.0.10",
115
- "@vueuse/core": "^13.3.0",
116
- "@vueuse/integrations": "^13.3.0",
114
+ "@unhead/vue": "^2.0.11",
115
+ "@vueuse/core": "^13.4.0",
116
+ "@vueuse/integrations": "^13.4.0",
117
117
  "canvas-confetti": "^1.9.3",
118
- "colortranslator": "^4.1.0",
118
+ "colortranslator": "^5.0.0",
119
119
  "consola": "^3.4.2",
120
120
  "defu": "^6.1.4",
121
121
  "embla-carousel-auto-height": "^8.6.0",
@@ -132,15 +132,16 @@
132
132
  "mlly": "^1.7.4",
133
133
  "ohash": "^2.0.11",
134
134
  "pathe": "^2.0.3",
135
- "reka-ui": "^2.2.0",
135
+ "reka-ui": "2.3.1",
136
136
  "scule": "^1.3.0",
137
137
  "tailwind-variants": "^1.0.0",
138
- "tailwindcss": "^4.1.8",
138
+ "tailwindcss": "^4.1.11",
139
139
  "tinyglobby": "^0.2.14",
140
140
  "unplugin": "^2.3.5",
141
141
  "unplugin-auto-import": "^19.3.0",
142
- "unplugin-vue-components": "^28.7.0",
143
- "vaul-vue": "^0.4.1"
142
+ "unplugin-vue-components": "^28.8.0",
143
+ "vaul-vue": "0.4.1",
144
+ "vue-component-type-helpers": "^2.2.10"
144
145
  },
145
146
  "devDependencies": {
146
147
  "@nuxt/eslint-config": "^1.4.1",
@@ -149,11 +150,11 @@
149
150
  "@types/canvas-confetti": "^1.9.0",
150
151
  "@vue/test-utils": "^2.4.6",
151
152
  "embla-carousel": "^8.6.0",
152
- "eslint": "^9.28.0",
153
- "happy-dom": "^17.6.1",
154
- "nuxt": "^3.17.4",
153
+ "eslint": "^9.30.0",
154
+ "happy-dom": "^18.0.1",
155
+ "nuxt": "^3.17.5",
155
156
  "nuxt-component-meta": "^0.11.0",
156
- "vitest": "^3.2.0",
157
+ "vitest": "^3.2.4",
157
158
  "vitest-environment-nuxt": "^1.0.1",
158
159
  "vue-tsc": "^2.2.10"
159
160
  },
@@ -195,8 +196,8 @@
195
196
  "chokidar": "3.6.0",
196
197
  "debug": "4.3.7",
197
198
  "rollup": "4.34.9",
198
- "unplugin": "^2.3.2",
199
- "vue-tsc": "^2.2.10"
199
+ "unimport": "4.1.1",
200
+ "unplugin": "^2.3.5"
200
201
  },
201
202
  "keywords": [
202
203
  "bitrix24-ui",
@@ -216,16 +217,16 @@
216
217
  "ui-framework"
217
218
  ],
218
219
  "scripts": {
219
- "dev:prepare-short": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue && nuxi prepare demo",
220
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue && nuxi prepare demo && nuxt-component-meta playground --outputDir ../src/.component-meta/",
220
+ "dev:prepare-short": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground && pnpm dev:vue:build && nuxt prepare demo",
221
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground && pnpm dev:vue:build && nuxt prepare demo && nuxt-component-meta playground --outputDir ../src/.component-meta/",
221
222
  "build": "nuxt-module-build build",
222
- "dev": "nuxi dev playground",
223
- "dev:build": "nuxi build playground",
223
+ "dev": "nuxt dev playground --uiDev",
224
+ "dev:build": "nuxt build playground",
224
225
  "dev:generate": "nuxt generate playground",
225
226
  "dev:preview": "nuxt preview playground",
226
- "dev:vue": "vite playground-vue",
227
- "dev:vue:build": "vite build playground-vue",
228
- "demo:dev": "nuxi dev demo",
227
+ "dev:vue": "pnpm --filter @bitrix24/b24ui-vue-playground dev -- --uiDev",
228
+ "dev:vue:build": "pnpm --filter @bitrix24/b24ui-vue-playground build",
229
+ "demo:dev": "nuxt dev demo",
229
230
  "demo:generate": "nuxt generate demo",
230
231
  "demo:preview": "nuxt preview demo",
231
232
  "docs:full:dev": "pnpm build && vitepress dev docs",
@@ -235,7 +236,7 @@
235
236
  "docs:preview": "vitepress preview docs",
236
237
  "lint": "eslint .",
237
238
  "lint:fix": "eslint . --fix",
238
- "typecheck": "vue-tsc --noEmit && nuxi typecheck playground && cd playground-vue && vue-tsc --noEmit",
239
+ "typecheck": "vue-tsc --noEmit && nuxt typecheck playground && cd playground-vue && vue-tsc --noEmit",
239
240
  "test": "vitest",
240
241
  "test:vue": "vitest -c vitest.vue.config.ts"
241
242
  }