@bitrix24/b24ui-nuxt 0.3.5 → 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 (76) hide show
  1. package/.nuxt/b24ui/button.ts +2 -1
  2. package/.nuxt/b24ui/index.ts +1 -0
  3. package/.nuxt/b24ui/modal.ts +1 -1
  4. package/.nuxt/b24ui/prose/prose-h1.ts +6 -0
  5. package/.nuxt/b24ui/prose/prose-h2.ts +16 -0
  6. package/.nuxt/b24ui/prose/prose-h3.ts +16 -0
  7. package/.nuxt/b24ui/prose/prose-li.ts +5 -0
  8. package/.nuxt/b24ui/prose/prose-ol.ts +5 -0
  9. package/.nuxt/b24ui/prose/prose-p.ts +5 -0
  10. package/.nuxt/b24ui/prose/prose-ul.ts +5 -0
  11. package/.nuxt/b24ui/slideover.ts +3 -2
  12. package/dist/meta.cjs +32842 -29748
  13. package/dist/meta.d.cts +32842 -29748
  14. package/dist/meta.d.mts +32842 -29748
  15. package/dist/meta.d.ts +32842 -29748
  16. package/dist/meta.mjs +32842 -29748
  17. package/dist/module.cjs +6 -1
  18. package/dist/module.json +1 -1
  19. package/dist/module.mjs +6 -1
  20. package/dist/runtime/components/Advice.vue +3 -0
  21. package/dist/runtime/components/Alert.vue +17 -2
  22. package/dist/runtime/components/Avatar.vue +7 -0
  23. package/dist/runtime/components/AvatarGroup.vue +3 -0
  24. package/dist/runtime/components/Badge.vue +21 -3
  25. package/dist/runtime/components/Button.vue +37 -7
  26. package/dist/runtime/components/ButtonGroup.vue +7 -1
  27. package/dist/runtime/components/Checkbox.vue +6 -0
  28. package/dist/runtime/components/Chip.vue +18 -2
  29. package/dist/runtime/components/Countdown.vue +32 -8
  30. package/dist/runtime/components/{content/DescriptionList.vue → DescriptionList.vue} +19 -8
  31. package/dist/runtime/components/DropdownMenu.vue +14 -2
  32. package/dist/runtime/components/DropdownMenuContent.vue +6 -0
  33. package/dist/runtime/components/FormField.vue +6 -0
  34. package/dist/runtime/components/Input.vue +50 -6
  35. package/dist/runtime/components/InputMenu.vue +67 -15
  36. package/dist/runtime/components/InputNumber.vue +42 -8
  37. package/dist/runtime/components/Kbd.vue +6 -0
  38. package/dist/runtime/components/Link.vue +8 -4
  39. package/dist/runtime/components/Modal.vue +9 -3
  40. package/dist/runtime/components/OverlayProvider.vue +2 -2
  41. package/dist/runtime/components/Progress.vue +19 -3
  42. package/dist/runtime/components/RadioGroup.vue +6 -0
  43. package/dist/runtime/components/Range.vue +9 -1
  44. package/dist/runtime/components/Select.vue +47 -10
  45. package/dist/runtime/components/SelectMenu.vue +52 -12
  46. package/dist/runtime/components/Separator.vue +16 -2
  47. package/dist/runtime/components/Slideover.vue +12 -2
  48. package/dist/runtime/components/Switch.vue +19 -3
  49. package/dist/runtime/components/Tabs.vue +12 -0
  50. package/dist/runtime/components/Textarea.vue +50 -6
  51. package/dist/runtime/components/Toast.vue +13 -2
  52. package/dist/runtime/components/Toaster.vue +8 -0
  53. package/dist/runtime/components/{prose → content}/TableWrapper.vue +27 -3
  54. package/dist/runtime/composables/useComponentIcons.d.ts +11 -4
  55. package/dist/runtime/composables/useOverlay.js +1 -1
  56. package/dist/runtime/index.css +1 -1
  57. package/dist/runtime/prose/ProseH1.vue +36 -0
  58. package/dist/runtime/prose/ProseH2.vue +36 -0
  59. package/dist/runtime/prose/ProseH3.vue +36 -0
  60. package/dist/runtime/prose/ProseLi.vue +36 -0
  61. package/dist/runtime/prose/ProseOl.vue +36 -0
  62. package/dist/runtime/prose/ProseP.vue +36 -0
  63. package/dist/runtime/prose/ProseUl.vue +36 -0
  64. package/dist/runtime/types/index.d.ts +9 -2
  65. package/dist/runtime/types/index.js +9 -2
  66. package/dist/runtime/utils/index.js +1 -1
  67. package/dist/runtime/vue/components/Link.vue +8 -4
  68. package/dist/shared/{b24ui-nuxt.CeQRWQD-.mjs → b24ui-nuxt.BGGwh89R.mjs} +204 -82
  69. package/dist/shared/{b24ui-nuxt.M7bz91Io.cjs → b24ui-nuxt.CnMGpwQb.cjs} +204 -82
  70. package/dist/unplugin.cjs +5 -5
  71. package/dist/unplugin.mjs +5 -5
  72. package/dist/vite.cjs +1 -1
  73. package/dist/vite.mjs +1 -1
  74. package/package.json +10 -8
  75. /package/.nuxt/b24ui/{prose → content}/table-wrapper.ts +0 -0
  76. /package/.nuxt/b24ui/{content/description-list.ts → description-list.ts} +0 -0
@@ -715,6 +715,12 @@ const badge = {
715
715
  }
716
716
  };
717
717
 
718
+ const safeList$1 = [
719
+ "h-full w-full absolute inset-0 flex flex-row flex-nowrap items-center justify-center",
720
+ "w-[28px] h-[28px]",
721
+ "size-lg animate-spin stroke-2",
722
+ "invisible"
723
+ ].join(" ");
718
724
  const button = {
719
725
  slots: {
720
726
  base: [
@@ -732,7 +738,8 @@ const button = {
732
738
  leadingIcon: "shrink-0",
733
739
  leadingAvatar: "shrink-0",
734
740
  leadingAvatarSize: "",
735
- trailingIcon: "shrink-0"
741
+ trailingIcon: "shrink-0",
742
+ safeList: safeList$1
736
743
  },
737
744
  variants: {
738
745
  ...buttonGroupVariant,
@@ -1601,6 +1608,78 @@ const countdown = {
1601
1608
  }
1602
1609
  };
1603
1610
 
1611
+ const descriptionList = {
1612
+ slots: {
1613
+ root: "w-full shrink-0",
1614
+ legend: "font-semibold text-black dark:text-base-150",
1615
+ text: "text-base-500 dark:text-base-400",
1616
+ container: "grid grid-cols-1 sm:grid-cols-[min(50%,theme(spacing.80))_auto]",
1617
+ labelWrapper: [
1618
+ "col-start-1 border-t first:border-none sm:border-t",
1619
+ "flex flex-nowrap flex-row items-center justify-start gap-1.5",
1620
+ "border-base-950/5 text-base-500 sm:border-base-950/5",
1621
+ "dark:border-white/5 dark:text-base-400 sm:dark:border-white/5"
1622
+ ].join(" "),
1623
+ icon: "shrink-0 size-6 text-base-500 dark:text-base-400",
1624
+ avatar: "shrink-0",
1625
+ avatarSize: "",
1626
+ label: "",
1627
+ descriptionWrapper: [
1628
+ "sm:border-t sm:[&:nth-child(2)]:border-none",
1629
+ "text-base-900 sm:border-base-950/5",
1630
+ "dark:text-base-150 dark:sm:border-white/5"
1631
+ ].join(" "),
1632
+ description: "",
1633
+ actions: "flex flex-wrap gap-1.5 shrink-0",
1634
+ footer: "border-t border-base-950/5 dark:border-white/5"
1635
+ },
1636
+ variants: {
1637
+ size: {
1638
+ sm: {
1639
+ legend: "text-md",
1640
+ text: "mt-1 max-w-2/3 text-sm",
1641
+ container: "mt-2.5 text-md",
1642
+ labelWrapper: "pt-3 sm:py-3",
1643
+ avatarSize: "xs",
1644
+ label: "",
1645
+ descriptionWrapper: "pb-3 pt-1 sm:py-3",
1646
+ description: "",
1647
+ footer: "mt-2 p-2"
1648
+ },
1649
+ md: {
1650
+ legend: "text-xl",
1651
+ text: "mt-2 max-w-2/3 text-lg leading-5",
1652
+ container: "mt-3 text-lg",
1653
+ labelWrapper: "pt-3 sm:py-3",
1654
+ avatarSize: "xs",
1655
+ label: "",
1656
+ descriptionWrapper: "pb-3 pt-1 sm:py-3",
1657
+ description: "",
1658
+ footer: "mt-4 p-4"
1659
+ }
1660
+ },
1661
+ orientation: {
1662
+ horizontal: {
1663
+ descriptionWrapper: "w-full flex flex-row items-center justify-between gap-4",
1664
+ actions: "items-center"
1665
+ },
1666
+ vertical: {
1667
+ descriptionWrapper: "",
1668
+ actions: "items-start mt-2.5"
1669
+ }
1670
+ },
1671
+ title: {
1672
+ true: {
1673
+ description: "mt-1"
1674
+ }
1675
+ }
1676
+ },
1677
+ compoundVariants: [],
1678
+ defaultVariants: {
1679
+ size: "md"
1680
+ }
1681
+ };
1682
+
1604
1683
  const dropdownMenu = {
1605
1684
  slots: {
1606
1685
  content: [
@@ -3248,7 +3327,7 @@ const link = (options) => ({
3248
3327
 
3249
3328
  const modal = {
3250
3329
  slots: {
3251
- overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
3330
+ overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30 backdrop-blur-sm",
3252
3331
  content: [
3253
3332
  "py-md2 px-5",
3254
3333
  "fixed bg-white dark:bg-base-950",
@@ -4089,9 +4168,12 @@ const skeleton = {
4089
4168
  base: "animate-pulse rounded-md bg-gray-200 dark:bg-gray-800"
4090
4169
  };
4091
4170
 
4171
+ const safeList = [
4172
+ "group-hover:rounded-full group-hover:border-1 group-hover:border-current"
4173
+ ].join(" ");
4092
4174
  const slideover = {
4093
4175
  slots: {
4094
- overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
4176
+ overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30 backdrop-blur-xs",
4095
4177
  content: [
4096
4178
  "fixed",
4097
4179
  "bg-base-50 dark:bg-base-950",
@@ -4111,7 +4193,8 @@ const slideover = {
4111
4193
  footer: "bg-white dark:bg-base-950 flex items-center justify-center gap-3 py-4 border-t border-t-1 border-t-base-900/10 dark:border-t-white/20 shadow-top-md p-2 pr-(--scrollbar-width)",
4112
4194
  title: "font-b24-system font-light text-4.5xl leading-none text-base-900 dark:text-base-150",
4113
4195
  description: "mt-2 mb-1 text-base-500 dark:text-base-400 text-sm",
4114
- close: "absolute"
4196
+ close: "absolute",
4197
+ safeList
4115
4198
  },
4116
4199
  variants: {
4117
4200
  side: {
@@ -5170,6 +5253,7 @@ const theme = {
5170
5253
  chip: chip,
5171
5254
  container: container,
5172
5255
  countdown: countdown,
5256
+ descriptionList: descriptionList,
5173
5257
  dropdownMenu: dropdownMenu,
5174
5258
  form: form,
5175
5259
  formField: formField,
@@ -5195,6 +5279,121 @@ const theme = {
5195
5279
  tooltip: tooltip
5196
5280
  };
5197
5281
 
5282
+ const proseH1 = {
5283
+ slots: {
5284
+ base: [
5285
+ "mb-2",
5286
+ "text-5xl leading-3xs font-light",
5287
+ "text-base-master dark:text-base-150",
5288
+ "scroll-mt-[calc(45px+var(--b24ui-header-height))] lg:scroll-mt-(--b24ui-header-height)"
5289
+ ].join(" "),
5290
+ link: "inline-flex items-center gap-2"
5291
+ }
5292
+ };
5293
+
5294
+ const proseH2 = {
5295
+ slots: {
5296
+ base: [
5297
+ "relative mb-2",
5298
+ "text-4xl leading-2xs font-light",
5299
+ "[&>a>code]:text-xl/7 [&>a>code]:font-bold",
5300
+ "text-base-master dark:text-base-150",
5301
+ "scroll-mt-[calc(48px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(48px+var(--b24ui-header-height))]",
5302
+ "[&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text",
5303
+ "hover:[&>a>code]:text-info-text",
5304
+ "[&>a>code]:border-dashed [&>a>code]:transition-colors"
5305
+ ].join(" "),
5306
+ leading: [
5307
+ "absolute -ms-8 top-1 p-1",
5308
+ "rounded-md hidden lg:flex",
5309
+ "opacity-0 group-hover:opacity-100 group-focus:opacity-100",
5310
+ "bg-base-100 dark:bg-base-900",
5311
+ "text-base-500 dark:text-base-600",
5312
+ "hover:text-outline-info-text",
5313
+ "transition"
5314
+ ],
5315
+ leadingIcon: "size-4 shrink-0",
5316
+ link: "group lg:ps-2 lg:-ms-2"
5317
+ }
5318
+ };
5319
+
5320
+ const proseH3 = {
5321
+ slots: {
5322
+ base: [
5323
+ "relative mb-2",
5324
+ "text-3xl leading-2xs font-light",
5325
+ "[&>a>code]:text-lg/7 [&>a>code]:font-bold",
5326
+ "text-base-master dark:text-base-150",
5327
+ "scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))]",
5328
+ "[&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text",
5329
+ "hover:[&>a>code]:text-info-text",
5330
+ "[&>a>code]:border-dashed [&>a>code]:transition-colors"
5331
+ ].join(" "),
5332
+ leading: [
5333
+ "absolute -ms-8 top-0.5 p-1",
5334
+ "rounded-md hidden lg:flex",
5335
+ "opacity-0 group-hover:opacity-100 group-focus:opacity-100",
5336
+ "bg-base-100 dark:bg-base-900",
5337
+ "text-base-500 dark:text-base-600",
5338
+ "hover:text-outline-info-text",
5339
+ "transition"
5340
+ ],
5341
+ leadingIcon: "size-4 shrink-0",
5342
+ link: "group lg:ps-2 lg:-ms-2"
5343
+ }
5344
+ };
5345
+
5346
+ const proseLi = {
5347
+ slots: {
5348
+ base: [
5349
+ "my-1.5 ps-1.5",
5350
+ "leading-relaxed",
5351
+ "[&>ul]:my-0 [&>ol]:my-0"
5352
+ ].join(" ")
5353
+ }
5354
+ };
5355
+
5356
+ const proseOl = {
5357
+ slots: {
5358
+ base: [
5359
+ "list-decimal",
5360
+ "ps-6 mb-2",
5361
+ "marker:text-base-300 dark:marker:text-base-800"
5362
+ ].join(" ")
5363
+ }
5364
+ };
5365
+
5366
+ const proseP = {
5367
+ slots: {
5368
+ base: [
5369
+ "mb-2",
5370
+ "leading-relaxed",
5371
+ "text-pretty"
5372
+ ].join(" ")
5373
+ }
5374
+ };
5375
+
5376
+ const proseUl = {
5377
+ slots: {
5378
+ base: [
5379
+ "list-disc",
5380
+ "ps-6 mb-2",
5381
+ "marker:text-base-300 dark:marker:text-base-800"
5382
+ ].join(" ")
5383
+ }
5384
+ };
5385
+
5386
+ const themeProse = {
5387
+ __proto__: null,
5388
+ proseH1: proseH1,
5389
+ proseH2: proseH2,
5390
+ proseH3: proseH3,
5391
+ proseLi: proseLi,
5392
+ proseOl: proseOl,
5393
+ proseP: proseP,
5394
+ proseUl: proseUl
5395
+ };
5396
+
5198
5397
  const variantTable = "[&>table]";
5199
5398
  const variantHeadTr = "[&>table>thead>tr]";
5200
5399
  const variantBodyTr = "[&>table>tbody>tr]";
@@ -5280,86 +5479,9 @@ const tableWrapper = {
5280
5479
  }
5281
5480
  };
5282
5481
 
5283
- const themeProse = {
5284
- __proto__: null,
5285
- tableWrapper: tableWrapper
5286
- };
5287
-
5288
- const descriptionList = {
5289
- slots: {
5290
- root: "w-full shrink-0",
5291
- legend: "font-semibold text-black dark:text-base-150",
5292
- text: "text-base-500 dark:text-base-400",
5293
- container: "grid grid-cols-1 sm:grid-cols-[min(50%,theme(spacing.80))_auto]",
5294
- labelWrapper: [
5295
- "col-start-1 border-t first:border-none sm:border-t",
5296
- "flex flex-nowrap flex-row items-center justify-start gap-1.5",
5297
- "border-base-950/5 text-base-500 sm:border-base-950/5",
5298
- "dark:border-white/5 dark:text-base-400 sm:dark:border-white/5"
5299
- ].join(" "),
5300
- icon: "shrink-0 size-6 text-base-500 dark:text-base-400",
5301
- avatar: "shrink-0",
5302
- avatarSize: "",
5303
- label: "",
5304
- descriptionWrapper: [
5305
- "sm:border-t sm:[&:nth-child(2)]:border-none",
5306
- "text-base-900 sm:border-base-950/5",
5307
- "dark:text-base-150 dark:sm:border-white/5"
5308
- ].join(" "),
5309
- description: "",
5310
- actions: "flex flex-wrap gap-1.5 shrink-0",
5311
- footer: "border-t border-base-950/5 dark:border-white/5"
5312
- },
5313
- variants: {
5314
- size: {
5315
- sm: {
5316
- legend: "text-md",
5317
- text: "mt-1 max-w-2/3 text-sm",
5318
- container: "mt-2.5 text-md",
5319
- labelWrapper: "pt-3 sm:py-3",
5320
- avatarSize: "xs",
5321
- label: "",
5322
- descriptionWrapper: "pb-3 pt-1 sm:py-3",
5323
- description: "",
5324
- footer: "mt-2 p-2"
5325
- },
5326
- md: {
5327
- legend: "text-xl",
5328
- text: "mt-2 max-w-2/3 text-lg leading-5",
5329
- container: "mt-3 text-lg",
5330
- labelWrapper: "pt-3 sm:py-3",
5331
- avatarSize: "xs",
5332
- label: "",
5333
- descriptionWrapper: "pb-3 pt-1 sm:py-3",
5334
- description: "",
5335
- footer: "mt-4 p-4"
5336
- }
5337
- },
5338
- orientation: {
5339
- horizontal: {
5340
- descriptionWrapper: "w-full flex flex-row items-center justify-between gap-4",
5341
- actions: "items-center"
5342
- },
5343
- vertical: {
5344
- descriptionWrapper: "",
5345
- actions: "items-start mt-2.5"
5346
- }
5347
- },
5348
- title: {
5349
- true: {
5350
- description: "mt-1"
5351
- }
5352
- }
5353
- },
5354
- compoundVariants: [],
5355
- defaultVariants: {
5356
- size: "md"
5357
- }
5358
- };
5359
-
5360
5482
  const themeContent = {
5361
5483
  __proto__: null,
5362
- descriptionList: descriptionList
5484
+ tableWrapper: tableWrapper
5363
5485
  };
5364
5486
 
5365
5487
  function replaceBrackets(value) {
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.M7bz91Io.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))
@@ -201,7 +201,7 @@ function AutoImportPlugin(options, meta) {
201
201
 
202
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)))));
203
203
  const Bitrix24UIPlugin = unplugin.createUnplugin((_options = {}, meta) => {
204
- const options = defu.defu(_options, { devtools: { enabled: false } }, templates.defaultOptions);
204
+ const options = defu.defu(_options, {}, templates.defaultOptions);
205
205
  const appConfig = defu.defu({ b24ui: options.b24ui, colorMode: options.colorMode }, { b24ui: templates.getDefaultUiConfig() });
206
206
  return [
207
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.CeQRWQD-.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))
@@ -191,7 +191,7 @@ function AutoImportPlugin(options, meta) {
191
191
 
192
192
  const runtimeDir = normalize(fileURLToPath(new URL("./runtime", import.meta.url)));
193
193
  const Bitrix24UIPlugin = createUnplugin((_options = {}, meta) => {
194
- const options = defu(_options, { devtools: { enabled: false } }, defaultOptions);
194
+ const options = defu(_options, {}, defaultOptions);
195
195
  const appConfig = defu({ b24ui: options.b24ui, colorMode: options.colorMode }, { b24ui: getDefaultUiConfig() });
196
196
  return [
197
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.M7bz91Io.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.CeQRWQD-.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.3.5",
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,10 @@
35
35
  "types": "./vue-plugin.d.ts"
36
36
  },
37
37
  "./runtime/*": "./dist/runtime/*",
38
+ "./prose/*": "./dist/runtime/prose/*",
39
+ "./components/*": "./dist/runtime/components/*",
40
+ "./composables/*": "./dist/runtime/composables/*",
41
+ "./types/*": "./dist/runtime/types/*",
38
42
  "./utils/*": {
39
43
  "types": "./dist/runtime/utils/*.d.ts",
40
44
  "import": "./dist/runtime/utils/*.js"
@@ -92,31 +96,29 @@
92
96
  "knitwork": "^1.2.0",
93
97
  "magic-string": "^0.30.17",
94
98
  "mlly": "^1.7.4",
95
- "ohash": "^1.1.4",
99
+ "ohash": "^2.0.10",
96
100
  "pathe": "^2.0.3",
97
- "reka-ui": "^2.0.0",
101
+ "reka-ui": "^2.0.2",
98
102
  "scule": "^1.3.0",
99
- "sirv": "^3.0.1",
100
103
  "tailwind-variants": "^0.3.1",
101
104
  "tailwindcss": "^4.0.9",
102
105
  "tinyglobby": "^0.2.12",
103
106
  "unplugin": "^2.2.0",
104
- "unplugin-auto-import": "^19.1.0",
105
- "unplugin-vue-components": "^28.4.0",
107
+ "unplugin-auto-import": "^19.1.1",
108
+ "unplugin-vue-components": "^28.4.1",
106
109
  "vaul-vue": "^0.3.0"
107
110
  },
108
111
  "devDependencies": {
109
112
  "@types/canvas-confetti": "^1.9.0",
110
113
  "@nuxt/eslint-config": "^1.1.0",
111
114
  "@nuxt/module-builder": "^0.8.4",
112
- "@nuxt/test-utils": "^3.17.0",
115
+ "@nuxt/test-utils": "^3.17.1",
113
116
  "@standard-schema/spec": "^1.0.0",
114
117
  "@vue/test-utils": "^2.4.6",
115
118
  "embla-carousel": "^8.5.2",
116
119
  "eslint": "^9.21.0",
117
120
  "happy-dom": "^17.1.2",
118
121
  "joi": "^17.13.3",
119
- "knitwork": "^1.2.0",
120
122
  "nuxt": "^3.15.4",
121
123
  "nuxt-component-meta": "^0.10.0",
122
124
  "superstruct": "^2.0.2",
File without changes