@bitrix24/b24ui-nuxt 0.4.1 → 0.4.2

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 (56) hide show
  1. package/.nuxt/b24ui/button.ts +8 -0
  2. package/.nuxt/b24ui/modal.ts +22 -4
  3. package/.nuxt/b24ui/prose/blockquote.ts +5 -0
  4. package/.nuxt/b24ui/prose/em.ts +5 -0
  5. package/.nuxt/b24ui/prose/h1.ts +6 -0
  6. package/.nuxt/b24ui/prose/{prose-h2.ts → h2.ts} +1 -1
  7. package/.nuxt/b24ui/prose/{prose-h3.ts → h3.ts} +1 -1
  8. package/.nuxt/b24ui/prose/h4.ts +16 -0
  9. package/.nuxt/b24ui/prose/h5.ts +16 -0
  10. package/.nuxt/b24ui/prose/h6.ts +16 -0
  11. package/.nuxt/b24ui/prose/hr.ts +5 -0
  12. package/.nuxt/b24ui/prose/ol.ts +5 -0
  13. package/.nuxt/b24ui/prose/strong.ts +5 -0
  14. package/.nuxt/b24ui/prose/ul.ts +5 -0
  15. package/.nuxt/b24ui/slideover.ts +25 -7
  16. package/dist/meta.cjs +854 -195
  17. package/dist/meta.d.cts +854 -195
  18. package/dist/meta.d.mts +854 -195
  19. package/dist/meta.d.ts +854 -195
  20. package/dist/meta.mjs +854 -195
  21. package/dist/module.cjs +2 -2
  22. package/dist/module.json +1 -1
  23. package/dist/module.mjs +2 -2
  24. package/dist/runtime/components/Button.vue +83 -45
  25. package/dist/runtime/components/Modal.vue +13 -2
  26. package/dist/runtime/components/Slideover.vue +10 -2
  27. package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
  28. package/dist/runtime/prose/Blockquote.vue +36 -0
  29. package/dist/runtime/prose/Em.vue +36 -0
  30. package/dist/runtime/prose/{ProseH1.vue → H1.vue} +1 -1
  31. package/dist/runtime/prose/{ProseH2.vue → H2.vue} +1 -1
  32. package/dist/runtime/prose/{ProseH3.vue → H3.vue} +1 -1
  33. package/dist/runtime/prose/H4.vue +36 -0
  34. package/dist/runtime/prose/H5.vue +36 -0
  35. package/dist/runtime/prose/H6.vue +36 -0
  36. package/dist/runtime/prose/Hr.vue +30 -0
  37. package/dist/runtime/prose/{ProseLi.vue → Li.vue} +1 -1
  38. package/dist/runtime/prose/{ProseOl.vue → Ol.vue} +1 -1
  39. package/dist/runtime/prose/{ProseP.vue → P.vue} +1 -1
  40. package/dist/runtime/prose/Strong.vue +36 -0
  41. package/dist/runtime/prose/{ProseUl.vue → Ul.vue} +1 -1
  42. package/dist/runtime/types/index.d.ts +14 -7
  43. package/dist/runtime/types/index.js +14 -7
  44. package/dist/runtime/vue/components/Link.vue +2 -2
  45. package/dist/shared/{b24ui-nuxt.CnMGpwQb.cjs → b24ui-nuxt.Bt28CeAD.cjs} +185 -40
  46. package/dist/shared/{b24ui-nuxt.BGGwh89R.mjs → b24ui-nuxt.Bx_-_mhu.mjs} +185 -40
  47. package/dist/unplugin.cjs +3 -3
  48. package/dist/unplugin.mjs +3 -3
  49. package/dist/vite.cjs +1 -1
  50. package/dist/vite.mjs +1 -1
  51. package/package.json +4 -4
  52. package/.nuxt/b24ui/prose/prose-h1.ts +0 -6
  53. package/.nuxt/b24ui/prose/prose-ol.ts +0 -5
  54. package/.nuxt/b24ui/prose/prose-ul.ts +0 -5
  55. /package/.nuxt/b24ui/prose/{prose-li.ts → li.ts} +0 -0
  56. /package/.nuxt/b24ui/prose/{prose-p.ts → p.ts} +0 -0
@@ -36,13 +36,20 @@ export * from "../components/Toast.vue";
36
36
  export * from "../components/Toaster.vue";
37
37
  export * from "../components/Tooltip.vue";
38
38
  export * from "../components/content/TableWrapper.vue";
39
- export * from "../prose/ProseH1.vue";
40
- export * from "../prose/ProseH2.vue";
41
- export * from "../prose/ProseH3.vue";
42
- export * from "../prose/ProseLi.vue";
43
- export * from "../prose/ProseOl.vue";
44
- export * from "../prose/ProseP.vue";
45
- export * from "../prose/ProseUl.vue";
39
+ export * from "../prose/H1.vue";
40
+ export * from "../prose/H2.vue";
41
+ export * from "../prose/H3.vue";
42
+ export * from "../prose/H3.vue";
43
+ export * from "../prose/H4.vue";
44
+ export * from "../prose/H5.vue";
45
+ export * from "../prose/H6.vue";
46
+ export * from "../prose/P.vue";
47
+ export * from "../prose/Blockquote.vue";
48
+ export * from "../prose/Strong.vue";
49
+ export * from "../prose/Ol.vue";
50
+ export * from "../prose/Ul.vue";
51
+ export * from "../prose/Li.vue";
52
+ export * from "../prose/Hr.vue";
46
53
  export * from "./form.js";
47
54
  export * from "./icons.js";
48
55
  export * from "./locale.js";
@@ -250,7 +250,7 @@ function resolveLinkClass({ route, isActive, isExactActive }: any = {}) {
250
250
  disabled,
251
251
  href: to,
252
252
  target: isExternal ? '_blank' : undefined,
253
- active: false
253
+ active: props?.active || false
254
254
  }"
255
255
  />
256
256
  </template>
@@ -267,7 +267,7 @@ function resolveLinkClass({ route, isActive, isExactActive }: any = {}) {
267
267
  :is-external="isExternal"
268
268
  :class="resolveLinkClass()"
269
269
  >
270
- <slot :active="false" />
270
+ <slot :active="props?.active || false" />
271
271
  </B24LinkBase>
272
272
  </template>
273
273
  </template>
@@ -733,6 +733,7 @@ const button = {
733
733
  ],
734
734
  baseLine: [
735
735
  "inline-flex items-center"
736
+ // justify-center
736
737
  ].join(" "),
737
738
  label: "truncate",
738
739
  leadingIcon: "shrink-0",
@@ -890,6 +891,14 @@ const button = {
890
891
  normalCase: {
891
892
  true: "font-semibold normal-case",
892
893
  false: "font-bold uppercase"
894
+ },
895
+ active: {
896
+ true: {
897
+ base: ""
898
+ },
899
+ false: {
900
+ base: ""
901
+ }
893
902
  }
894
903
  },
895
904
  compoundVariants: [
@@ -3327,7 +3336,7 @@ const link = (options) => ({
3327
3336
 
3328
3337
  const modal = {
3329
3338
  slots: {
3330
- overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30 backdrop-blur-sm",
3339
+ overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
3331
3340
  content: [
3332
3341
  "py-md2 px-5",
3333
3342
  "fixed bg-white dark:bg-base-950",
@@ -3342,10 +3351,21 @@ const modal = {
3342
3351
  close: "absolute top-2 end-1.5 p-0.5"
3343
3352
  },
3344
3353
  variants: {
3354
+ overlayBlur: {
3355
+ auto: {
3356
+ overlay: "motion-safe:backdrop-blur-sm"
3357
+ },
3358
+ on: {
3359
+ overlay: "backdrop-blur-sm"
3360
+ },
3361
+ off: {
3362
+ overlay: ""
3363
+ }
3364
+ },
3345
3365
  transition: {
3346
3366
  true: {
3347
- overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
3348
- content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
3367
+ overlay: "motion-safe:data-[state=open]:animate-[fade-in_200ms_ease-out] motion-safe:data-[state=closed]:animate-[fade-out_200ms_ease-in]",
3368
+ content: "motion-safe:data-[state=open]:animate-[scale-in_200ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_200ms_ease-in]"
3349
3369
  }
3350
3370
  },
3351
3371
  fullscreen: {
@@ -3368,7 +3388,8 @@ const modal = {
3368
3388
  }
3369
3389
  },
3370
3390
  defaultVariants: {
3371
- scrollbarThin: true
3391
+ scrollbarThin: true,
3392
+ overlayBlur: "auto"
3372
3393
  }
3373
3394
  };
3374
3395
 
@@ -4173,7 +4194,7 @@ const safeList = [
4173
4194
  ].join(" ");
4174
4195
  const slideover = {
4175
4196
  slots: {
4176
- overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30 backdrop-blur-xs",
4197
+ overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
4177
4198
  content: [
4178
4199
  "fixed",
4179
4200
  "bg-base-50 dark:bg-base-950",
@@ -4197,6 +4218,17 @@ const slideover = {
4197
4218
  safeList
4198
4219
  },
4199
4220
  variants: {
4221
+ overlayBlur: {
4222
+ auto: {
4223
+ overlay: "motion-safe:backdrop-blur-sm"
4224
+ },
4225
+ on: {
4226
+ overlay: "backdrop-blur-sm"
4227
+ },
4228
+ off: {
4229
+ overlay: ""
4230
+ }
4231
+ },
4200
4232
  side: {
4201
4233
  top: {
4202
4234
  content: "inset-x-0 top-0 max-h-full"
@@ -4213,7 +4245,7 @@ const slideover = {
4213
4245
  },
4214
4246
  transition: {
4215
4247
  true: {
4216
- overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
4248
+ overlay: "motion-safe:data-[state=open]:animate-[fade-in_200ms_ease-out] motion-safe:data-[state=closed]:animate-[fade-out_200ms_ease-in]"
4217
4249
  }
4218
4250
  },
4219
4251
  scrollbarThin: {
@@ -4259,34 +4291,35 @@ const slideover = {
4259
4291
  transition: true,
4260
4292
  side: "top",
4261
4293
  class: {
4262
- content: "data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"
4294
+ content: "motion-safe:data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] motion-safe:data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"
4263
4295
  }
4264
4296
  },
4265
4297
  {
4266
4298
  transition: true,
4267
4299
  side: "right",
4268
4300
  class: {
4269
- content: "data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"
4301
+ content: "motion-safe:data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] motion-safe:data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"
4270
4302
  }
4271
4303
  },
4272
4304
  {
4273
4305
  transition: true,
4274
4306
  side: "bottom",
4275
4307
  class: {
4276
- content: "data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"
4308
+ content: "motion-safe:data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] motion-safe:data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"
4277
4309
  }
4278
4310
  },
4279
4311
  {
4280
4312
  transition: true,
4281
4313
  side: "left",
4282
4314
  class: {
4283
- content: "data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"
4315
+ content: "motion-safe:data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] motion-safe:data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"
4284
4316
  }
4285
4317
  }
4286
4318
  ],
4287
4319
  defaultVariants: {
4288
4320
  side: "right",
4289
- scrollbarThin: true
4321
+ scrollbarThin: true,
4322
+ overlayBlur: "auto"
4290
4323
  }
4291
4324
  };
4292
4325
 
@@ -5279,29 +5312,29 @@ const theme = {
5279
5312
  tooltip: tooltip
5280
5313
  };
5281
5314
 
5282
- const proseH1 = {
5315
+ const h1 = {
5283
5316
  slots: {
5284
5317
  base: [
5285
5318
  "mb-2",
5286
- "text-5xl leading-3xs font-light",
5287
5319
  "text-base-master dark:text-base-150",
5288
- "scroll-mt-[calc(45px+var(--b24ui-header-height))] lg:scroll-mt-(--b24ui-header-height)"
5320
+ "scroll-mt-[calc(45px+var(--b24ui-header-height))] lg:scroll-mt-(--b24ui-header-height)",
5321
+ "text-h1"
5289
5322
  ].join(" "),
5290
5323
  link: "inline-flex items-center gap-2"
5291
5324
  }
5292
5325
  };
5293
5326
 
5294
- const proseH2 = {
5327
+ const h2 = {
5295
5328
  slots: {
5296
5329
  base: [
5297
5330
  "relative mb-2",
5298
- "text-4xl leading-2xs font-light",
5299
5331
  "[&>a>code]:text-xl/7 [&>a>code]:font-bold",
5300
5332
  "text-base-master dark:text-base-150",
5301
5333
  "scroll-mt-[calc(48px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(48px+var(--b24ui-header-height))]",
5302
5334
  "[&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text",
5303
5335
  "hover:[&>a>code]:text-info-text",
5304
- "[&>a>code]:border-dashed [&>a>code]:transition-colors"
5336
+ "[&>a>code]:border-dashed [&>a>code]:transition-colors",
5337
+ "text-h2"
5305
5338
  ].join(" "),
5306
5339
  leading: [
5307
5340
  "absolute -ms-8 top-1 p-1",
@@ -5317,17 +5350,17 @@ const proseH2 = {
5317
5350
  }
5318
5351
  };
5319
5352
 
5320
- const proseH3 = {
5353
+ const h3 = {
5321
5354
  slots: {
5322
5355
  base: [
5323
5356
  "relative mb-2",
5324
- "text-3xl leading-2xs font-light",
5325
5357
  "[&>a>code]:text-lg/7 [&>a>code]:font-bold",
5326
5358
  "text-base-master dark:text-base-150",
5327
5359
  "scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))]",
5328
5360
  "[&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text",
5329
5361
  "hover:[&>a>code]:text-info-text",
5330
- "[&>a>code]:border-dashed [&>a>code]:transition-colors"
5362
+ "[&>a>code]:border-dashed [&>a>code]:transition-colors",
5363
+ "text-h3"
5331
5364
  ].join(" "),
5332
5365
  leading: [
5333
5366
  "absolute -ms-8 top-0.5 p-1",
@@ -5343,55 +5376,167 @@ const proseH3 = {
5343
5376
  }
5344
5377
  };
5345
5378
 
5346
- const proseLi = {
5379
+ const h4 = {
5347
5380
  slots: {
5348
5381
  base: [
5349
- "my-1.5 ps-1.5",
5382
+ "relative mb-2",
5383
+ "[&>a>code]:text-lg/7 [&>a>code]:font-bold",
5384
+ "text-base-master dark:text-base-150",
5385
+ "scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))]",
5386
+ "[&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text",
5387
+ "hover:[&>a>code]:text-info-text",
5388
+ "[&>a>code]:border-dashed [&>a>code]:transition-colors",
5389
+ "text-h4"
5390
+ ].join(" "),
5391
+ leading: [
5392
+ "absolute -ms-8 top-0.5 p-1",
5393
+ "rounded-md hidden lg:flex",
5394
+ "opacity-0 group-hover:opacity-100 group-focus:opacity-100",
5395
+ "bg-base-100 dark:bg-base-900",
5396
+ "text-base-500 dark:text-base-600",
5397
+ "hover:text-outline-info-text",
5398
+ "transition"
5399
+ ],
5400
+ leadingIcon: "size-4 shrink-0",
5401
+ link: "group lg:ps-2 lg:-ms-2"
5402
+ }
5403
+ };
5404
+
5405
+ const h5 = {
5406
+ slots: {
5407
+ base: [
5408
+ "relative mb-2",
5409
+ "[&>a>code]:text-lg/7 [&>a>code]:font-bold",
5410
+ "text-base-master dark:text-base-150",
5411
+ "scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))]",
5412
+ "[&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text",
5413
+ "hover:[&>a>code]:text-info-text",
5414
+ "[&>a>code]:border-dashed [&>a>code]:transition-colors",
5415
+ "text-h5"
5416
+ ].join(" "),
5417
+ leading: [
5418
+ "absolute -ms-8 top-0.5 p-1",
5419
+ "rounded-md hidden lg:flex",
5420
+ "opacity-0 group-hover:opacity-100 group-focus:opacity-100",
5421
+ "bg-base-100 dark:bg-base-900",
5422
+ "text-base-500 dark:text-base-600",
5423
+ "hover:text-outline-info-text",
5424
+ "transition"
5425
+ ],
5426
+ leadingIcon: "size-4 shrink-0",
5427
+ link: "group lg:ps-2 lg:-ms-2"
5428
+ }
5429
+ };
5430
+
5431
+ const h6 = {
5432
+ slots: {
5433
+ base: [
5434
+ "relative mb-2",
5435
+ "[&>a>code]:text-lg/7 [&>a>code]:font-bold",
5436
+ "text-base-master dark:text-base-150",
5437
+ "scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))]",
5438
+ "[&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text",
5439
+ "hover:[&>a>code]:text-info-text",
5440
+ "[&>a>code]:border-dashed [&>a>code]:transition-colors",
5441
+ "text-h6"
5442
+ ].join(" "),
5443
+ leading: [
5444
+ "absolute -ms-8 top-0.5 p-1",
5445
+ "rounded-md hidden lg:flex",
5446
+ "opacity-0 group-hover:opacity-100 group-focus:opacity-100",
5447
+ "bg-base-100 dark:bg-base-900",
5448
+ "text-base-500 dark:text-base-600",
5449
+ "hover:text-outline-info-text",
5450
+ "transition"
5451
+ ],
5452
+ leadingIcon: "size-4 shrink-0",
5453
+ link: "group lg:ps-2 lg:-ms-2"
5454
+ }
5455
+ };
5456
+
5457
+ const p = {
5458
+ slots: {
5459
+ base: [
5460
+ "mb-2",
5350
5461
  "leading-relaxed",
5351
- "[&>ul]:my-0 [&>ol]:my-0"
5462
+ "text-pretty"
5352
5463
  ].join(" ")
5353
5464
  }
5354
5465
  };
5355
5466
 
5356
- const proseOl = {
5467
+ const blockquote = {
5468
+ slots: {
5469
+ base: "mb-2 border-s-4 border-blue-500 dark:border-blue-600 ps-4 italic"
5470
+ }
5471
+ };
5472
+
5473
+ const strong = {
5474
+ slots: {
5475
+ base: ""
5476
+ }
5477
+ };
5478
+
5479
+ const em = {
5480
+ slots: {
5481
+ base: ""
5482
+ }
5483
+ };
5484
+
5485
+ const ol = {
5357
5486
  slots: {
5358
5487
  base: [
5359
5488
  "list-decimal",
5360
- "ps-6 mb-2",
5361
- "marker:text-base-300 dark:marker:text-base-800"
5489
+ "ps-2 mb-2 ms-3",
5490
+ "marker:text-base-master dark:marker:text-base-150"
5362
5491
  ].join(" ")
5363
5492
  }
5364
5493
  };
5365
5494
 
5366
- const proseP = {
5495
+ const ul = {
5367
5496
  slots: {
5368
5497
  base: [
5369
- "mb-2",
5498
+ "list-disc",
5499
+ "ps-2 mb-2 ms-3",
5500
+ "marker:text-base-master dark:marker:text-base-150"
5501
+ ].join(" ")
5502
+ }
5503
+ };
5504
+
5505
+ const li = {
5506
+ slots: {
5507
+ base: [
5508
+ "my-1.5 ps-1.5",
5370
5509
  "leading-relaxed",
5371
- "text-pretty"
5510
+ "[&>ul]:my-0 [&>ol]:my-0"
5372
5511
  ].join(" ")
5373
5512
  }
5374
5513
  };
5375
5514
 
5376
- const proseUl = {
5515
+ const hr = {
5377
5516
  slots: {
5378
5517
  base: [
5379
- "list-disc",
5380
- "ps-6 mb-2",
5381
- "marker:text-base-300 dark:marker:text-base-800"
5518
+ "my-4",
5519
+ "border-t border-base-master/10 dark:border-base-100/20"
5382
5520
  ].join(" ")
5383
5521
  }
5384
5522
  };
5385
5523
 
5386
5524
  const themeProse = {
5387
5525
  __proto__: null,
5388
- proseH1: proseH1,
5389
- proseH2: proseH2,
5390
- proseH3: proseH3,
5391
- proseLi: proseLi,
5392
- proseOl: proseOl,
5393
- proseP: proseP,
5394
- proseUl: proseUl
5526
+ blockquote: blockquote,
5527
+ em: em,
5528
+ h1: h1,
5529
+ h2: h2,
5530
+ h3: h3,
5531
+ h4: h4,
5532
+ h5: h5,
5533
+ h6: h6,
5534
+ hr: hr,
5535
+ li: li,
5536
+ ol: ol,
5537
+ p: p,
5538
+ strong: strong,
5539
+ ul: ul
5395
5540
  };
5396
5541
 
5397
5542
  const variantTable = "[&>table]";