@bitrix24/b24ui-nuxt 0.6.7 → 0.7.0

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 (198) 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 +2 -10
  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 +38368 -18666
  58. package/dist/meta.mjs +38368 -18666
  59. package/dist/module.json +1 -1
  60. package/dist/module.mjs +11 -3
  61. package/dist/runtime/components/Accordion.vue +96 -0
  62. package/dist/runtime/components/Accordion.vue.d.ts +78 -0
  63. package/dist/runtime/components/Advice.vue +1 -1
  64. package/dist/runtime/components/Alert.vue +1 -1
  65. package/dist/runtime/components/Avatar.vue +11 -3
  66. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  67. package/dist/runtime/components/AvatarGroup.vue +1 -1
  68. package/dist/runtime/components/Badge.vue +5 -3
  69. package/dist/runtime/components/Badge.vue.d.ts +2 -0
  70. package/dist/runtime/components/Button.vue +2 -3
  71. package/dist/runtime/components/Button.vue.d.ts +1 -1
  72. package/dist/runtime/components/Calendar.vue +6 -2
  73. package/dist/runtime/components/Checkbox.vue +14 -5
  74. package/dist/runtime/components/Checkbox.vue.d.ts +9 -0
  75. package/dist/runtime/components/Chip.vue +1 -1
  76. package/dist/runtime/components/Collapsible.vue +1 -1
  77. package/dist/runtime/components/Countdown.vue +1 -1
  78. package/dist/runtime/components/Countdown.vue.d.ts +2 -2
  79. package/dist/runtime/components/DescriptionList.vue +3 -2
  80. package/dist/runtime/components/DescriptionList.vue.d.ts +1 -1
  81. package/dist/runtime/components/DropdownMenu.vue +1 -1
  82. package/dist/runtime/components/DropdownMenu.vue.d.ts +2 -0
  83. package/dist/runtime/components/DropdownMenuContent.vue +74 -72
  84. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +4 -20
  85. package/dist/runtime/components/Form.vue +6 -6
  86. package/dist/runtime/components/Form.vue.d.ts +12 -11
  87. package/dist/runtime/components/FormField.vue +4 -4
  88. package/dist/runtime/components/Input.vue +12 -8
  89. package/dist/runtime/components/Input.vue.d.ts +31 -30
  90. package/dist/runtime/components/InputMenu.vue +23 -20
  91. package/dist/runtime/components/InputMenu.vue.d.ts +214 -4
  92. package/dist/runtime/components/InputNumber.vue +17 -10
  93. package/dist/runtime/components/InputNumber.vue.d.ts +80 -3
  94. package/dist/runtime/components/Link.vue +5 -13
  95. package/dist/runtime/components/Modal.vue +22 -14
  96. package/dist/runtime/components/Modal.vue.d.ts +18 -5
  97. package/dist/runtime/components/Navbar.vue +1 -1
  98. package/dist/runtime/components/NavbarDivider.vue +1 -1
  99. package/dist/runtime/components/NavbarSection.vue +1 -1
  100. package/dist/runtime/components/NavbarSpacer.vue +1 -1
  101. package/dist/runtime/components/NavigationMenu.vue +186 -44
  102. package/dist/runtime/components/NavigationMenu.vue.d.ts +39 -8
  103. package/dist/runtime/components/OverlayProvider.vue +2 -2
  104. package/dist/runtime/components/Popover.vue +4 -0
  105. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  106. package/dist/runtime/components/Progress.vue +3 -2
  107. package/dist/runtime/components/Progress.vue.d.ts +2 -2
  108. package/dist/runtime/components/RadioGroup.vue +26 -10
  109. package/dist/runtime/components/RadioGroup.vue.d.ts +3 -1
  110. package/dist/runtime/components/Range.vue +2 -2
  111. package/dist/runtime/components/Range.vue.d.ts +19 -20
  112. package/dist/runtime/components/Select.vue +57 -31
  113. package/dist/runtime/components/Select.vue.d.ts +110 -2
  114. package/dist/runtime/components/SelectMenu.vue +77 -23
  115. package/dist/runtime/components/SelectMenu.vue.d.ts +111 -5
  116. package/dist/runtime/components/Separator.vue +3 -3
  117. package/dist/runtime/components/Sidebar.vue +1 -1
  118. package/dist/runtime/components/SidebarBody.vue +1 -1
  119. package/dist/runtime/components/SidebarFooter.vue +1 -1
  120. package/dist/runtime/components/SidebarHeader.vue +1 -1
  121. package/dist/runtime/components/SidebarHeading.vue +1 -1
  122. package/dist/runtime/components/SidebarLayout.vue +1 -1
  123. package/dist/runtime/components/SidebarSection.vue +1 -1
  124. package/dist/runtime/components/SidebarSpacer.vue +1 -1
  125. package/dist/runtime/components/Slideover.vue +23 -15
  126. package/dist/runtime/components/Slideover.vue.d.ts +18 -5
  127. package/dist/runtime/components/StackedLayout.vue +1 -1
  128. package/dist/runtime/components/Switch.vue +1 -1
  129. package/dist/runtime/components/Tabs.vue +28 -7
  130. package/dist/runtime/components/Tabs.vue.d.ts +6 -1
  131. package/dist/runtime/components/Textarea.vue +13 -9
  132. package/dist/runtime/components/Textarea.vue.d.ts +31 -30
  133. package/dist/runtime/components/Toast.vue +7 -6
  134. package/dist/runtime/components/Toast.vue.d.ts +6 -0
  135. package/dist/runtime/components/Toaster.vue +4 -4
  136. package/dist/runtime/components/Toaster.vue.d.ts +6 -0
  137. package/dist/runtime/components/Tooltip.vue +9 -2
  138. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  139. package/dist/runtime/components/content/TableWrapper.vue +1 -1
  140. package/dist/runtime/composables/defineLocale.d.ts +2 -0
  141. package/dist/runtime/composables/defineLocale.js +4 -0
  142. package/dist/runtime/composables/defineShortcuts.js +8 -2
  143. package/dist/runtime/composables/useFormField.d.ts +1 -1
  144. package/dist/runtime/composables/useFormField.js +2 -1
  145. package/dist/runtime/composables/useKbd.d.ts +1 -0
  146. package/dist/runtime/composables/useKbd.js +4 -3
  147. package/dist/runtime/composables/useOverlay.d.ts +11 -11
  148. package/dist/runtime/composables/useOverlay.js +17 -11
  149. package/dist/runtime/inertia/components/Link.vue +45 -60
  150. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  151. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  152. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  153. package/dist/runtime/inertia/stubs.d.ts +1 -1
  154. package/dist/runtime/inertia/stubs.js +1 -1
  155. package/dist/runtime/prose/A.vue +1 -1
  156. package/dist/runtime/prose/Blockquote.vue +1 -1
  157. package/dist/runtime/prose/Code.vue +1 -1
  158. package/dist/runtime/prose/Em.vue +1 -1
  159. package/dist/runtime/prose/H1.vue +1 -1
  160. package/dist/runtime/prose/H2.vue +1 -1
  161. package/dist/runtime/prose/H3.vue +1 -1
  162. package/dist/runtime/prose/H4.vue +1 -1
  163. package/dist/runtime/prose/H5.vue +1 -1
  164. package/dist/runtime/prose/H6.vue +1 -1
  165. package/dist/runtime/prose/Hr.vue +1 -1
  166. package/dist/runtime/prose/Img.vue +1 -1
  167. package/dist/runtime/prose/Li.vue +1 -1
  168. package/dist/runtime/prose/Ol.vue +1 -1
  169. package/dist/runtime/prose/P.vue +1 -1
  170. package/dist/runtime/prose/Pre.vue +1 -1
  171. package/dist/runtime/prose/Strong.vue +1 -1
  172. package/dist/runtime/prose/Table.vue +1 -1
  173. package/dist/runtime/prose/Tbody.vue +1 -1
  174. package/dist/runtime/prose/Td.vue +1 -1
  175. package/dist/runtime/prose/Th.vue +1 -1
  176. package/dist/runtime/prose/Thead.vue +1 -1
  177. package/dist/runtime/prose/Tr.vue +1 -1
  178. package/dist/runtime/prose/Ul.vue +1 -1
  179. package/dist/runtime/types/form.d.ts +11 -10
  180. package/dist/runtime/types/index.d.ts +1 -0
  181. package/dist/runtime/types/index.js +1 -0
  182. package/dist/runtime/types/locale.d.ts +1 -0
  183. package/dist/runtime/types/tv.d.ts +53 -0
  184. package/dist/runtime/types/tv.js +0 -0
  185. package/dist/runtime/types/utils.d.ts +4 -51
  186. package/dist/runtime/types/utils.js +1 -0
  187. package/dist/runtime/utils/link.d.ts +1 -0
  188. package/dist/runtime/utils/link.js +12 -0
  189. package/dist/runtime/vue/components/Link.vue +26 -40
  190. package/dist/runtime/vue/composables/useAppConfig.js +3 -1
  191. package/dist/runtime/vue/stubs.d.ts +1 -1
  192. package/dist/runtime/vue/stubs.js +1 -1
  193. package/dist/shared/{b24ui-nuxt.jU270f-Q.mjs → b24ui-nuxt.C-kZb5Ac.mjs} +267 -121
  194. package/dist/unplugin.d.mts +2 -2
  195. package/dist/unplugin.mjs +6 -3
  196. package/dist/vite.d.mts +1 -1
  197. package/dist/vite.mjs +2 -2
  198. package/package.json +41 -40
@@ -1,13 +1,35 @@
1
- import { fileURLToPath } from 'node:url';
1
+ import 'node:url';
2
2
  import { kebabCase } from 'scule';
3
3
  import { addTypeTemplate, addTemplate } from '@nuxt/kit';
4
4
  import { defuFn } from 'defu';
5
+ import { genExport } from 'knitwork';
5
6
 
6
7
  const getDefaultUiConfig = () => ({});
7
8
  const defaultOptions = {
8
9
  colorMode: true
9
10
  };
10
11
 
12
+ const accordion = {
13
+ slots: {
14
+ root: "w-full",
15
+ item: "border-b border-default last:border-b-0",
16
+ header: "flex",
17
+ trigger: "group flex-1 flex items-center gap-1.5 font-medium text-sm py-3 focus-visible:outline-primary min-w-0 cursor-pointer",
18
+ content: "motion-safe:data-[state=open]:animate-[accordion-down_200ms_ease-out] motion-safe:data-[state=closed]:animate-[accordion-up_200ms_ease-out] overflow-hidden focus:outline-none",
19
+ body: "text-sm pb-3",
20
+ leadingIcon: "shrink-0 size-5",
21
+ trailingIcon: "shrink-0 size-5 ms-auto group-data-[state=open]:rotate-180 transition-transform duration-200",
22
+ label: "text-start break-words"
23
+ },
24
+ variants: {
25
+ disabled: {
26
+ true: {
27
+ trigger: "cursor-not-allowed opacity-75"
28
+ }
29
+ }
30
+ }
31
+ };
32
+
11
33
  const advice = {
12
34
  slots: {
13
35
  root: "flex items-end",
@@ -174,7 +196,7 @@ const alert = {
174
196
 
175
197
  const avatar = {
176
198
  slots: {
177
- root: "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-base-100 dark:bg-base-900",
199
+ root: "inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-base-100 dark:bg-base-900",
178
200
  image: "h-full w-full rounded-[inherit] object-cover",
179
201
  fallback: "font-medium text-base-500 dark:text-base-600 truncate",
180
202
  icon: "text-base-500 shrink-0 dark:text-base-600"
@@ -271,12 +293,14 @@ const buttonGroupVariant = {
271
293
  "focus-visible:outline-none",
272
294
  "ring ring-inset ring-0 focus-visible:ring-2",
273
295
  "group-[.is-button-group]/items:not-only:first:rounded-e-none group-[.is-button-group]/items:not-only:last:rounded-s-none group-[.is-button-group]/items:not-last:not-first:rounded-none",
274
- "group-[.is-button-group]/items:not-only:first:border-e-0 group-[.is-button-group]/items:not-only:not-first:border-s-0"
296
+ "group-[.is-button-group]/items:not-only:first:border-e-0 group-[.is-button-group]/items:not-only:not-first:border-s-0",
297
+ "focus-visible:z-[1]"
275
298
  ].join(" "),
276
299
  vertical: [
277
300
  "focus-visible:outline-none",
278
301
  "ring ring-inset ring-0 focus-visible:ring-2",
279
- "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
302
+ "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none",
303
+ "focus-visible:z-[1]"
280
304
  ].join(" ")
281
305
  },
282
306
  noSplit: {
@@ -290,7 +314,7 @@ const buttonGroupVariant = {
290
314
  const buttonGroupVariantWithRoot = {
291
315
  buttonGroup: {
292
316
  horizontal: {
293
- root: "group leading-none",
317
+ root: "group leading-none has-focus-visible:z-[1]",
294
318
  base: [
295
319
  "focus-visible:outline-none",
296
320
  "ring ring-inset ring-1 focus-visible:ring-2",
@@ -300,7 +324,7 @@ const buttonGroupVariantWithRoot = {
300
324
  ].join(" ")
301
325
  },
302
326
  vertical: {
303
- root: "group",
327
+ root: "group has-focus-visible:z-[1]",
304
328
  base: [
305
329
  "focus-visible:outline-none",
306
330
  "ring ring-inset ring-1 focus-visible:ring-2",
@@ -364,7 +388,7 @@ const badge = {
364
388
  false: "bg-transparent"
365
389
  },
366
390
  leading: {
367
- true: "ps-2xs"
391
+ true: "ps-1"
368
392
  },
369
393
  color: {
370
394
  default: "",
@@ -420,6 +444,9 @@ const badge = {
420
444
  leadingAvatarSize: "xs",
421
445
  trailingIcon: "size-[26px]"
422
446
  }
447
+ },
448
+ square: {
449
+ true: ""
423
450
  }
424
451
  },
425
452
  compoundVariants: [
@@ -679,6 +706,48 @@ const badge = {
679
706
  ].join(" ")
680
707
  },
681
708
  // endregion ////
709
+ // region square ////
710
+ {
711
+ size: "xs",
712
+ square: true,
713
+ class: {
714
+ base: "p-0 ps-0 pe-0",
715
+ wrapper: "p-0.5 gap-0"
716
+ }
717
+ },
718
+ {
719
+ size: "sm",
720
+ square: true,
721
+ class: {
722
+ base: "p-0 ps-0 pe-0",
723
+ wrapper: "p-1 gap-0"
724
+ }
725
+ },
726
+ {
727
+ size: "md",
728
+ square: true,
729
+ class: {
730
+ base: "p-0 ps-0 pe-0",
731
+ wrapper: "p-1 gap-0"
732
+ }
733
+ },
734
+ {
735
+ size: "lg",
736
+ square: true,
737
+ class: {
738
+ base: "p-0 ps-0 pe-0",
739
+ wrapper: "p-1 gap-0"
740
+ }
741
+ },
742
+ {
743
+ size: "xl",
744
+ square: true,
745
+ class: {
746
+ base: "p-0 ps-0 pe-0",
747
+ wrapper: "p-1 gap-0"
748
+ }
749
+ },
750
+ // endregion ////
682
751
  // region useLink & useFill ////
683
752
  {
684
753
  useLink: true,
@@ -1287,7 +1356,7 @@ const calendar = {
1287
1356
  body: "flex flex-col space-y-4 pt-4 sm:flex-row sm:space-x-4 sm:space-y-0",
1288
1357
  heading: "text-center font-semibold truncate mx-auto",
1289
1358
  grid: "w-full border-collapse select-none space-y-1 focus:outline-none",
1290
- gridRow: "grid grid-cols-7",
1359
+ gridRow: "grid grid-cols-7 place-items-center",
1291
1360
  gridWeekDaysRow: "mb-1 grid w-full grid-cols-7",
1292
1361
  gridBody: "grid",
1293
1362
  headCell: "font-normal text-base-500 dark:text-base-500",
@@ -1400,6 +1469,7 @@ const checkbox = {
1400
1469
  "ring ring-inset ring-base-300 dark:ring-base-700",
1401
1470
  "outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2"
1402
1471
  ].join(" "),
1472
+ indicator: "flex items-center justify-center size-full text-base-master dark:text-base-400",
1403
1473
  container: "flex items-center",
1404
1474
  wrapper: "font-b24-primary ms-2",
1405
1475
  icon: "shrink-0 size-full",
@@ -1417,6 +1487,28 @@ const checkbox = {
1417
1487
  collab: "focus-visible:outline-collab-500 dark:focus-visible:outline-collab-600",
1418
1488
  ai: "focus-visible:outline-ai-500 dark:focus-visible:outline-ai-600"
1419
1489
  },
1490
+ variant: {
1491
+ list: {
1492
+ root: ""
1493
+ },
1494
+ card: {
1495
+ root: "border border-muted rounded-lg"
1496
+ }
1497
+ },
1498
+ indicator: {
1499
+ start: {
1500
+ root: "flex-row",
1501
+ wrapper: "ms-2"
1502
+ },
1503
+ end: {
1504
+ root: "flex-row-reverse",
1505
+ wrapper: "me-2"
1506
+ },
1507
+ hidden: {
1508
+ base: "sr-only",
1509
+ wrapper: "text-center"
1510
+ }
1511
+ },
1420
1512
  size: {
1421
1513
  xs: {
1422
1514
  base: "size-3",
@@ -1460,50 +1552,68 @@ const checkbox = {
1460
1552
  }
1461
1553
  },
1462
1554
  compoundVariants: [
1555
+ // region card ////
1556
+ { size: "xs", variant: "card", class: { root: "p-2.5" } },
1557
+ { size: "sm", variant: "card", class: { root: "p-3" } },
1558
+ { size: "md", variant: "card", class: { root: "p-3.5" } },
1559
+ { size: "lg", variant: "card", class: { root: "p-4" } },
1560
+ // endregion ////
1561
+ // region list ////
1463
1562
  {
1464
1563
  color: "default",
1564
+ variant: "list",
1465
1565
  checked: true,
1466
1566
  class: "ring-2 ring-base-900 bg-base-900 dark:ring-base-350 dark:bg-base-350 dark:text-base-800"
1467
1567
  },
1468
1568
  {
1469
1569
  color: "danger",
1570
+ variant: "list",
1470
1571
  checked: true,
1471
1572
  class: "ring-2 ring-red-500 bg-red-500 dark:ring-red-600 dark:bg-red-600 dark:text-red-250"
1472
1573
  },
1473
1574
  {
1474
1575
  color: "success",
1576
+ variant: "list",
1475
1577
  checked: true,
1476
1578
  class: "ring-2 ring-green-500 bg-green-500 dark:ring-green-600 dark:bg-green-600 dark:text-green-250"
1477
1579
  },
1478
1580
  {
1479
1581
  color: "warning",
1582
+ variant: "list",
1480
1583
  checked: true,
1481
1584
  class: "ring-2 ring-orange-500 bg-orange-500 dark:ring-orange-600 dark:bg-orange-600 dark:text-orange-250"
1482
1585
  },
1483
1586
  {
1484
1587
  color: "primary",
1588
+ variant: "list",
1485
1589
  checked: true,
1486
1590
  class: "ring-2 ring-blue-500 bg-blue-500 dark:ring-blue-600 dark:bg-blue-600 dark:text-blue-250"
1487
1591
  },
1488
1592
  {
1489
1593
  color: "secondary",
1594
+ variant: "list",
1490
1595
  checked: true,
1491
1596
  class: "ring-2 ring-cyan-350 bg-cyan-350 dark:ring-cyan-500 dark:bg-cyan-500"
1492
1597
  },
1493
1598
  {
1494
1599
  color: "collab",
1600
+ variant: "list",
1495
1601
  checked: true,
1496
1602
  class: "ring-2 ring-collab-500 bg-collab-500 dark:ring-collab-600 dark:bg-collab-600 dark:text-collab-250"
1497
1603
  },
1498
1604
  {
1499
1605
  color: "ai",
1606
+ variant: "list",
1500
1607
  checked: true,
1501
1608
  class: "ring-2 ring-ai-500 bg-ai-500 dark:ring-ai-600 dark:bg-ai-600 dark:text-ai-250"
1502
1609
  }
1610
+ // endregion ////
1503
1611
  ],
1504
1612
  defaultVariants: {
1505
1613
  size: "md",
1506
- color: "primary"
1614
+ color: "primary",
1615
+ variant: "list",
1616
+ indicator: "start"
1507
1617
  }
1508
1618
  };
1509
1619
 
@@ -1820,12 +1930,19 @@ const dropdownMenu = {
1820
1930
  "min-w-32",
1821
1931
  "bg-white dark:bg-base-dark",
1822
1932
  "shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800",
1823
- "overflow-y-auto",
1933
+ "overflow-hidden",
1824
1934
  "motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in]",
1825
1935
  "origin-(--reka-dropdown-menu-content-transform-origin)",
1826
- "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
1936
+ "flex flex-col",
1827
1937
  "pointer-events-auto"
1828
1938
  ].join(" "),
1939
+ viewport: [
1940
+ "relative",
1941
+ "divide-y divide-base-master/10 dark:divide-base-100/20",
1942
+ "scroll-py-1",
1943
+ "overflow-y-auto",
1944
+ "flex-1"
1945
+ ].join(" "),
1829
1946
  arrow: "fill-base-master/10 dark:fill-base-100/20",
1830
1947
  group: "p-1 isolate",
1831
1948
  label: [
@@ -2182,6 +2299,7 @@ const formField = {
2182
2299
  container: "relative",
2183
2300
  description: "mt-0.5 leading-tight text-base-500 dark:text-base-600",
2184
2301
  error: "mt-1 text-red-500 dark:text-red-600",
2302
+ errorWrapper: "flex flex-row flex-nowrap gap-0.5",
2185
2303
  errorIcon: "size-lg",
2186
2304
  help: "mt-1.5 leading-tight italic text-base-500 dark:text-base-600"
2187
2305
  },
@@ -2795,9 +2913,16 @@ const inputMenu = () => {
2795
2913
  "overflow-hidden",
2796
2914
  "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
2797
2915
  "origin-(--reka-combobox-content-transform-origin)",
2916
+ "flex flex-col",
2798
2917
  "pointer-events-auto"
2799
2918
  ].join(" "),
2800
- viewport: "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
2919
+ viewport: [
2920
+ "relative",
2921
+ "divide-y divide-base-master/10 dark:divide-base-100/20",
2922
+ "scroll-py-1",
2923
+ "overflow-y-auto",
2924
+ "flex-1"
2925
+ ].join(" "),
2801
2926
  group: "p-1 isolate",
2802
2927
  empty: "py-2 text-center text-sm text-base-500 dark:text-base-600",
2803
2928
  label: [
@@ -3025,6 +3150,7 @@ const inputNumber = () => {
3025
3150
  tag: input$1.slots.tag
3026
3151
  },
3027
3152
  variants: {
3153
+ ...buttonGroupVariantWithRoot,
3028
3154
  size: {
3029
3155
  xs: "px-2 h-xl2 gap-1",
3030
3156
  sm: "px-2.5 h-8 gap-1.5",
@@ -3437,11 +3563,10 @@ const link = (options) => ({
3437
3563
  active: {
3438
3564
  true: "text-blue-700 dark:text-blue-300 hover:not-disabled:not-aria-disabled:underline underline-offset-2",
3439
3565
  false: [
3440
- "text-base-900 hover:not-disabled:not-aria-disabled:text-blue-700",
3441
- "dark:text-base-300 dark:hover:not-disabled:not-aria-disabled:text-blue-300",
3442
- "hover:not-disabled:not-aria-disabled:underline underline-offset-2",
3443
- "transition-colors"
3444
- ]
3566
+ "text-base-900",
3567
+ "dark:text-base-300",
3568
+ "underline-offset-2"
3569
+ ].join(" ")
3445
3570
  },
3446
3571
  disabled: {
3447
3572
  true: "cursor-not-allowed opacity-75"
@@ -3459,7 +3584,19 @@ const link = (options) => ({
3459
3584
  "focus-visible:outline-base-700"
3460
3585
  ].join(" ")
3461
3586
  }
3462
- }
3587
+ },
3588
+ compoundVariants: [
3589
+ {
3590
+ active: false,
3591
+ disabled: false,
3592
+ class: [
3593
+ "hover:text-blue-700",
3594
+ "dark:hover:text-blue-300",
3595
+ "hover:underline",
3596
+ "transition-colors"
3597
+ ].join(" ")
3598
+ }
3599
+ ]
3463
3600
  });
3464
3601
 
3465
3602
  const modal = {
@@ -3505,7 +3642,8 @@ const modal = {
3505
3642
  "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
3506
3643
  "w-[calc(100vw-2rem)] max-w-[32rem] max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)]",
3507
3644
  "rounded-md shadow-lg",
3508
- "ring ring-base-300 dark:ring-base-800"
3645
+ "ring ring-base-300 dark:ring-base-800",
3646
+ "overflow-hidden"
3509
3647
  ].join(" ")
3510
3648
  }
3511
3649
  },
@@ -3545,28 +3683,34 @@ const navigationMenu = {
3545
3683
  linkLeadingIcon: "shrink-0 size-4 -ms-1 rtl:-ms-0 rtl:-me-1",
3546
3684
  linkLeadingAvatar: "shrink-0 -ms-1 rtl:-ms-0 rtl:-me-1",
3547
3685
  linkLeadingAvatarSize: "2xs",
3548
- linkTrailing: "inline-flex gap-1.5 items-center",
3686
+ linkTrailing: "group inline-flex gap-1.5 items-center",
3549
3687
  linkTrailingBadge: "shrink-0",
3550
3688
  linkTrailingBadgeSize: "sm",
3551
3689
  linkTrailingIcon: "text-base-600 size-4 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
3552
3690
  linkLabel: "truncate",
3553
3691
  linkLabelWrapper: "flex items-center items-center justify-between rtl:flex-row-reverse gap-1.5",
3554
3692
  linkLabelExternalIcon: "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
3555
- childList: "",
3693
+ childList: "isolate",
3694
+ childLabel: [
3695
+ "text-xs text-highlighted",
3696
+ "text-base-500 dark:text-base-400"
3697
+ ].join(" "),
3556
3698
  childItem: "",
3557
3699
  childLink: [
3558
- "group",
3700
+ "group relative",
3559
3701
  "size-full",
3560
- "px-3 py-2",
3561
- "rounded-2xs",
3562
- "flex items-start gap-2",
3563
- "text-start"
3702
+ // 'rounded-2xs',
3703
+ "flex items-start",
3704
+ "text-start",
3705
+ "text-sm",
3706
+ "before:absolute before:z-[-1] before:rounded-2xs",
3707
+ "focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2"
3564
3708
  ].join(" "),
3565
- childLinkWrapper: "flex flex-col items-start",
3709
+ childLinkWrapper: "min-w-0",
3566
3710
  childLinkIcon: "size-5 shrink-0",
3567
- childLinkLabel: "font-semibold text-sm relative inline-flex",
3711
+ childLinkLabel: "truncate",
3568
3712
  childLinkLabelExternalIcon: "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
3569
- childLinkDescription: "text-sm text-base-500 dark:text-base-700",
3713
+ childLinkDescription: "text-base-500 dark:text-base-700",
3570
3714
  separator: "px-2 h-px bg-base-950/10 dark:bg-base-100/20",
3571
3715
  viewportWrapper: "absolute top-full left-0 flex w-full",
3572
3716
  viewport: [
@@ -3580,8 +3724,7 @@ const navigationMenu = {
3580
3724
  // 'motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in]'
3581
3725
  "z-[1]"
3582
3726
  ].join(" "),
3583
- content: "absolute top-0 left-0 w-full",
3584
- // sm:w-auto
3727
+ content: "",
3585
3728
  indicator: [
3586
3729
  "absolute",
3587
3730
  "motion-safe:data-[state=visible]:animate-[fade-in_100ms_ease-out] motion-safe:data-[state=hidden]:animate-[fade-out_100ms_ease-in]",
@@ -3606,35 +3749,35 @@ const navigationMenu = {
3606
3749
  color: {
3607
3750
  default: {
3608
3751
  link: "focus-visible:before:ring-base-300 dark:focus-visible:before:ring-base-800",
3609
- childLink: "focus-visible:outline-base-300 dark:focus-visible:outline-base-800"
3752
+ childLink: "focus-visible:before:ring-base-300 dark:focus-visible:before:ring-base-800"
3610
3753
  },
3611
3754
  danger: {
3612
3755
  link: "focus-visible:before:ring-red-300 dark:focus-visible:before:ring-red-800",
3613
- childLink: "focus-visible:outline-red-300 dark:focus-visible:outline-red-800"
3756
+ childLink: "focus-visible:before:ring-red-300 dark:focus-visible:before:ring-red-800"
3614
3757
  },
3615
3758
  success: {
3616
3759
  link: "focus-visible:before:ring-green-300 dark:focus-visible:before:ring-green-800",
3617
- childLink: "focus-visible:outline-green-300 dark:focus-visible:outline-green-800"
3760
+ childLink: "focus-visible:before:ring-green-300 dark:focus-visible:before:ring-green-800"
3618
3761
  },
3619
3762
  warning: {
3620
3763
  link: "focus-visible:before:ring-orange-300 dark:focus-visible:before:ring-orange-800",
3621
- childLink: "focus-visible:outline-orange-300 dark:focus-visible:outline-orange-800"
3764
+ childLink: "focus-visible:before:ring-orange-300 dark:focus-visible:before:ring-orange-800"
3622
3765
  },
3623
3766
  primary: {
3624
3767
  link: "focus-visible:before:ring-blue-300 dark:focus-visible:before:ring-blue-800",
3625
- childLink: "focus-visible:outline-blue-300 dark:focus-visible:outline-blue-800"
3768
+ childLink: "focus-visible:before:ring-blue-300 dark:focus-visible:before:ring-blue-800"
3626
3769
  },
3627
3770
  secondary: {
3628
3771
  link: "focus-visible:before:ring-cyan-300 dark:focus-visible:before:ring-cyan-800",
3629
- childLink: "focus-visible:outline-cyan-300 dark:focus-visible:outline-cyan-800"
3772
+ childLink: "focus-visible:before:ring-cyan-300 dark:focus-visible:before:ring-cyan-800"
3630
3773
  },
3631
3774
  collab: {
3632
3775
  link: "focus-visible:before:ring-collab-300 dark:focus-visible:before:ring-collab-800",
3633
- childLink: "focus-visible:outline-collab-300 dark:focus-visible:outline-collab-800"
3776
+ childLink: "focus-visible:before:ring-collab-300 dark:focus-visible:before:ring-collab-800"
3634
3777
  },
3635
3778
  ai: {
3636
3779
  link: "focus-visible:before:ring-ai-300 dark:focus-visible:before:ring-ai-800",
3637
- childLink: "focus-visible:outline-ai-300 dark:focus-visible:outline-ai-800"
3780
+ childLink: "focus-visible:before:ring-ai-300 dark:focus-visible:before:ring-ai-800"
3638
3781
  }
3639
3782
  },
3640
3783
  highlightColor: {
@@ -3665,7 +3808,10 @@ const navigationMenu = {
3665
3808
  list: "flex items-center gap-x-1",
3666
3809
  item: "py-2 empty:hidden",
3667
3810
  link: "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
3668
- childList: "grid p-2"
3811
+ childList: "grid p-2",
3812
+ childLink: "px-3 py-2 gap-2 before:inset-x-px before:inset-y-0",
3813
+ childLinkLabel: "font-medium",
3814
+ content: "absolute top-0 left-0 w-full max-h-[70vh] overflow-y-auto"
3669
3815
  },
3670
3816
  vertical: {
3671
3817
  root: "flex-col w-full",
@@ -3673,7 +3819,9 @@ const navigationMenu = {
3673
3819
  "ps-2xl pe-xs rtl:ps-xs rtl:pe-2xl",
3674
3820
  "flex-row rtl:flex-row-reverse",
3675
3821
  "before:inset-y-px before:inset-x-0"
3676
- ].join(" ")
3822
+ ].join(" "),
3823
+ childLabel: "px-1.5 py-0.5",
3824
+ childLink: "p-1.5 gap-1.5 before:inset-y-px before:inset-x-0"
3677
3825
  }
3678
3826
  },
3679
3827
  contentOrientation: {
@@ -3703,7 +3851,7 @@ const navigationMenu = {
3703
3851
  active: {
3704
3852
  true: {
3705
3853
  childLink: [
3706
- "bg-base-20 dark:bg-base-900",
3854
+ "before:bg-base-20 dark:before:bg-base-900",
3707
3855
  "text-base-950 dark:text-base-50",
3708
3856
  "font-semibold"
3709
3857
  ].join(" "),
@@ -3713,10 +3861,10 @@ const navigationMenu = {
3713
3861
  link: "text-base-900 dark:text-base-200",
3714
3862
  linkLeadingIcon: "text-base-500 dark:text-base-700",
3715
3863
  childLink: [
3716
- "hover:bg-base-20 dark:hover:bg-base-900",
3864
+ "hover:before:bg-base-20 dark:hover:before:bg-base-900",
3717
3865
  "text-base-500 dark:text-base-700",
3718
- "hover:text-base-950 dark:hover:dark:text-base-200",
3719
- "transition-colors"
3866
+ "hover:text-base-950 dark:hover:text-base-200",
3867
+ "transition-colors before:transition-colors"
3720
3868
  ].join(" "),
3721
3869
  childLinkIcon: [
3722
3870
  "text-base-500 dark:text-base-700",
@@ -3757,6 +3905,23 @@ const navigationMenu = {
3757
3905
  content: "w-60"
3758
3906
  }
3759
3907
  },
3908
+ {
3909
+ orientation: "vertical",
3910
+ collapsed: false,
3911
+ class: {
3912
+ childList: "",
3913
+ childItem: "[&>*]:ps-[44px] rtl:[&>*]:pe-[44px]",
3914
+ content: "motion-safe:data-[state=open]:animate-[collapsible-down_200ms_ease-out] motion-safe:data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden"
3915
+ }
3916
+ },
3917
+ {
3918
+ orientation: "vertical",
3919
+ collapsed: true,
3920
+ class: {
3921
+ link: "px-1.5",
3922
+ content: "rounded-sm min-h-6 p-1"
3923
+ }
3924
+ },
3760
3925
  {
3761
3926
  orientation: "horizontal",
3762
3927
  highlight: true,
@@ -3858,7 +4023,7 @@ const navigationMenu = {
3858
4023
  "min-h-9",
3859
4024
  "before:rounded-md",
3860
4025
  "before:bg-base-800 dark:before:bg-white/35",
3861
- "hover:before:bg-base-800 hover:dark:before:bg-white/35",
4026
+ "hover:before:bg-base-800 dark:hover:before:bg-white/35",
3862
4027
  "data-[state=open]:before:bg-base-800 dark:data-[state=open]:before:bg-white/35"
3863
4028
  ].join(" "),
3864
4029
  linkLabelWrapper: [
@@ -3897,7 +4062,7 @@ const navigationMenu = {
3897
4062
  "min-h-9",
3898
4063
  "before:rounded-md",
3899
4064
  "before:bg-red-800 dark:before:bg-red-800",
3900
- "hover:before:bg-red-800 hover:dark:before:bg-red-800",
4065
+ "hover:before:bg-red-800 dark:hover:before:bg-red-800",
3901
4066
  "data-[state=open]:before:bg-red-800 dark:data-[state=open]:before:bg-red-800"
3902
4067
  ].join(" "),
3903
4068
  linkLabelWrapper: [
@@ -3936,7 +4101,7 @@ const navigationMenu = {
3936
4101
  "min-h-9",
3937
4102
  "before:rounded-md",
3938
4103
  "before:bg-green-800 dark:before:bg-green-800",
3939
- "hover:before:bg-green-800 hover:dark:before:bg-green-800",
4104
+ "hover:before:bg-green-800 dark:hover:before:bg-green-800",
3940
4105
  "data-[state=open]:before:bg-green-800 dark:data-[state=open]:before:bg-green-800"
3941
4106
  ].join(" "),
3942
4107
  linkLabelWrapper: [
@@ -3975,7 +4140,7 @@ const navigationMenu = {
3975
4140
  "min-h-9",
3976
4141
  "before:rounded-md",
3977
4142
  "before:bg-orange-800 dark:before:bg-orange-800",
3978
- "hover:before:bg-orange-800 hover:dark:before:bg-orange-800",
4143
+ "hover:before:bg-orange-800 dark:hover:before:bg-orange-800",
3979
4144
  "data-[state=open]:before:bg-orange-800 dark:data-[state=open]:before:bg-orange-800"
3980
4145
  ].join(" "),
3981
4146
  linkLabelWrapper: [
@@ -4014,7 +4179,7 @@ const navigationMenu = {
4014
4179
  "min-h-9",
4015
4180
  "before:rounded-md",
4016
4181
  "before:bg-blue-800 dark:before:bg-blue-800",
4017
- "hover:before:bg-blue-800 hover:dark:before:bg-blue-800",
4182
+ "hover:before:bg-blue-800 dark:hover:before:bg-blue-800",
4018
4183
  "data-[state=open]:before:bg-blue-800 dark:data-[state=open]:before:bg-blue-800"
4019
4184
  ].join(" "),
4020
4185
  linkLabelWrapper: [
@@ -4053,7 +4218,7 @@ const navigationMenu = {
4053
4218
  "min-h-9",
4054
4219
  "before:rounded-md",
4055
4220
  "before:bg-cyan-800 dark:before:bg-cyan-800",
4056
- "hover:before:bg-cyan-800 hover:dark:before:bg-cyan-800",
4221
+ "hover:before:bg-cyan-800 dark:hover:before:bg-cyan-800",
4057
4222
  "data-[state=open]:before:bg-cyan-800 dark:data-[state=open]:before:bg-cyan-800"
4058
4223
  ].join(" "),
4059
4224
  linkLabelWrapper: [
@@ -4092,7 +4257,7 @@ const navigationMenu = {
4092
4257
  "min-h-9",
4093
4258
  "before:rounded-md",
4094
4259
  "before:bg-collab-800 dark:before:bg-collab-800",
4095
- "hover:before:bg-collab-800 hover:dark:before:bg-collab-800",
4260
+ "hover:before:bg-collab-800 dark:hover:before:bg-collab-800",
4096
4261
  "data-[state=open]:before:bg-collab-800 dark:data-[state=open]:before:bg-collab-800"
4097
4262
  ].join(" "),
4098
4263
  linkLabelWrapper: [
@@ -4131,7 +4296,7 @@ const navigationMenu = {
4131
4296
  "min-h-9",
4132
4297
  "before:rounded-md",
4133
4298
  "before:bg-ai-800 dark:before:bg-ai-800",
4134
- "hover:before:bg-ai-800 hover:dark:before:bg-ai-800",
4299
+ "hover:before:bg-ai-800 dark:hover:before:bg-ai-800",
4135
4300
  "data-[state=open]:before:bg-ai-800 dark:data-[state=open]:before:bg-ai-800"
4136
4301
  ].join(" "),
4137
4302
  linkLabelWrapper: [
@@ -4177,6 +4342,7 @@ const navigationMenu = {
4177
4342
  variant: "pill",
4178
4343
  active: true,
4179
4344
  highlight: true,
4345
+ disabled: false,
4180
4346
  class: {
4181
4347
  link: [
4182
4348
  "hover:before:bg-base-250/80 dark:hover:before:bg-white/10",
@@ -4190,9 +4356,10 @@ const navigationMenu = {
4190
4356
  variant: "pill",
4191
4357
  active: true,
4192
4358
  highlight: true,
4359
+ disabled: false,
4193
4360
  class: {
4194
4361
  link: [
4195
- "hover:before:bg-base-800 hover:dark:before:bg-white/35",
4362
+ "hover:before:bg-base-800 dark:hover:before:bg-white/35",
4196
4363
  "before:transition-colors"
4197
4364
  ].join(" ")
4198
4365
  }
@@ -4203,9 +4370,10 @@ const navigationMenu = {
4203
4370
  variant: "pill",
4204
4371
  active: true,
4205
4372
  highlight: true,
4373
+ disabled: false,
4206
4374
  class: {
4207
4375
  link: [
4208
- "hover:before:bg-red-800 hover:dark:before:bg-red-800",
4376
+ "hover:before:bg-red-800 dark:hover:before:bg-red-800",
4209
4377
  "before:transition-colors"
4210
4378
  ].join(" ")
4211
4379
  }
@@ -4216,9 +4384,10 @@ const navigationMenu = {
4216
4384
  variant: "pill",
4217
4385
  active: true,
4218
4386
  highlight: true,
4387
+ disabled: false,
4219
4388
  class: {
4220
4389
  link: [
4221
- "hover:before:bg-green-800 hover:dark:before:bg-green-800",
4390
+ "hover:before:bg-green-800 dark:hover:before:bg-green-800",
4222
4391
  "before:transition-colors"
4223
4392
  ].join(" ")
4224
4393
  }
@@ -4229,9 +4398,10 @@ const navigationMenu = {
4229
4398
  variant: "pill",
4230
4399
  active: true,
4231
4400
  highlight: true,
4401
+ disabled: false,
4232
4402
  class: {
4233
4403
  link: [
4234
- "hover:before:bg-orange-800 hover:dark:before:bg-orange-800",
4404
+ "hover:before:bg-orange-800 dark:hover:before:bg-orange-800",
4235
4405
  "before:transition-colors"
4236
4406
  ].join(" ")
4237
4407
  }
@@ -4242,9 +4412,10 @@ const navigationMenu = {
4242
4412
  variant: "pill",
4243
4413
  active: true,
4244
4414
  highlight: true,
4415
+ disabled: false,
4245
4416
  class: {
4246
4417
  link: [
4247
- "hover:before:bg-blue-800 hover:dark:before:bg-blue-800",
4418
+ "hover:before:bg-blue-800 dark:hover:before:bg-blue-800",
4248
4419
  "before:transition-colors"
4249
4420
  ].join(" ")
4250
4421
  }
@@ -4255,9 +4426,10 @@ const navigationMenu = {
4255
4426
  variant: "pill",
4256
4427
  active: true,
4257
4428
  highlight: true,
4429
+ disabled: false,
4258
4430
  class: {
4259
4431
  link: [
4260
- "hover:before:bg-cyan-800 hover:dark:before:bg-cyan-800",
4432
+ "hover:before:bg-cyan-800 dark:hover:before:bg-cyan-800",
4261
4433
  "before:transition-colors"
4262
4434
  ].join(" ")
4263
4435
  }
@@ -4268,9 +4440,10 @@ const navigationMenu = {
4268
4440
  variant: "pill",
4269
4441
  active: true,
4270
4442
  highlight: true,
4443
+ disabled: false,
4271
4444
  class: {
4272
4445
  link: [
4273
- "hover:before:bg-collab-800 hover:dark:before:bg-collab-800",
4446
+ "hover:before:bg-collab-800 dark:hover:before:bg-collab-800",
4274
4447
  "before:transition-colors"
4275
4448
  ].join(" ")
4276
4449
  }
@@ -4281,9 +4454,10 @@ const navigationMenu = {
4281
4454
  variant: "pill",
4282
4455
  active: true,
4283
4456
  highlight: true,
4457
+ disabled: false,
4284
4458
  class: {
4285
4459
  link: [
4286
- "hover:before:bg-ai-800 hover:dark:before:bg-ai-800",
4460
+ "hover:before:bg-ai-800 dark:hover:before:bg-ai-800",
4287
4461
  "before:transition-colors"
4288
4462
  ].join(" ")
4289
4463
  }
@@ -4584,23 +4758,6 @@ const navigationMenu = {
4584
4758
  class: {
4585
4759
  link: "after:bg-ai-500 dark:after:bg-ai-600"
4586
4760
  }
4587
- },
4588
- // endregion ////
4589
- // region collapsed ////
4590
- {
4591
- orientation: "vertical",
4592
- collapsed: false,
4593
- class: {
4594
- childList: "",
4595
- childItem: "[&>*]:ps-[44px] rtl:[&>*]:pe-[44px]"
4596
- }
4597
- },
4598
- {
4599
- orientation: "vertical",
4600
- collapsed: true,
4601
- class: {
4602
- link: "px-1.5"
4603
- }
4604
4761
  }
4605
4762
  // endregion ////
4606
4763
  ],
@@ -5045,7 +5202,7 @@ const radioGroup = {
5045
5202
  orientation: "horizontal",
5046
5203
  variant: "table",
5047
5204
  class: {
5048
- item: "first-of-type:rounded-l-lg last-of-type:rounded-r-lg",
5205
+ item: "first-of-type:rounded-s-lg last-of-type:rounded-e-lg",
5049
5206
  fieldset: "gap-0 -space-x-px"
5050
5207
  }
5051
5208
  },
@@ -5382,7 +5539,7 @@ const defSize = {
5382
5539
  itemLeadingChip: "size-3 not-group-data-reka-collection-item:ps-2.5",
5383
5540
  itemLeadingChipSize: "sm",
5384
5541
  itemTrailingIcon: "size-3",
5385
- scrollUpDownButtonIcon: "size-4",
5542
+ // scrollUpDownButtonIcon: 'size-4',
5386
5543
  trailingIcon: "size-lg2"
5387
5544
  };
5388
5545
  const select = () => {
@@ -5420,15 +5577,22 @@ const select = () => {
5420
5577
  "overflow-hidden",
5421
5578
  "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
5422
5579
  "origin-(--reka-select-content-transform-origin)",
5580
+ "flex flex-col",
5423
5581
  "pointer-events-auto"
5424
5582
  ].join(" "),
5425
- scrollUpDownButton: [
5426
- "flex items-center justify-center h-[25px] cursor-default backdrop-blur",
5427
- "text-base-800 bg-white",
5428
- "dark:text-base-100 dark:bg-base-dark"
5583
+ // scrollUpDownButton: [
5584
+ // 'flex items-center justify-center h-[25px] cursor-default backdrop-blur',
5585
+ // 'text-base-800 bg-white',
5586
+ // 'dark:text-base-100 dark:bg-base-dark'
5587
+ // ].join(' '),
5588
+ // scrollUpDownButtonIcon: '',
5589
+ viewport: [
5590
+ "relative",
5591
+ "divide-y divide-base-master/10 dark:divide-base-100/20",
5592
+ "scroll-py-1",
5593
+ "overflow-y-auto",
5594
+ "flex-1"
5429
5595
  ].join(" "),
5430
- scrollUpDownButtonIcon: "",
5431
- viewport: "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
5432
5596
  group: "p-1 isolate",
5433
5597
  empty: "py-2 text-center text-sm text-base-500 dark:text-base-600",
5434
5598
  label: [
@@ -5882,7 +6046,7 @@ const tabs = {
5882
6046
  list: "relative flex p-1 group",
5883
6047
  indicator: "absolute transition-[translate,width] duration-200",
5884
6048
  trigger: [
5885
- "group relative inline-flex items-center shrink-0 min-w-0",
6049
+ "group relative inline-flex items-center min-w-0",
5886
6050
  "data-[state=inactive]:text-base-600 dark:data-[state=inactive]:text-base-600",
5887
6051
  "hover:data-[state=inactive]:not-disabled:text-base-master dark:hover:data-[state=inactive]:not-disabled:text-base-150",
5888
6052
  "font-medium rounded-xl",
@@ -5909,12 +6073,13 @@ const tabs = {
5909
6073
  variant: {
5910
6074
  pill: {
5911
6075
  list: "bg-base-100 dark:bg-transparent rounded-md",
5912
- trigger: "flex-1 w-full",
6076
+ trigger: "grow",
5913
6077
  indicator: "rounded-xl shadow-xs"
5914
6078
  },
5915
6079
  link: {
5916
6080
  list: "border-base-300 dark:border-base-800",
5917
- indicator: "rounded-full"
6081
+ indicator: "rounded-full",
6082
+ trigger: "focus:outline-none"
5918
6083
  }
5919
6084
  },
5920
6085
  orientation: {
@@ -6666,7 +6831,7 @@ const toast = {
6666
6831
  const toaster = {
6667
6832
  slots: {
6668
6833
  viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none mr-(--scrollbar-width)",
6669
- base: "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
6834
+ base: "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
6670
6835
  },
6671
6836
  variants: {
6672
6837
  position: {
@@ -6743,7 +6908,7 @@ const tooltip = {
6743
6908
  slots: {
6744
6909
  content: [
6745
6910
  "flex items-center gap-1 shadow-sm rounded-2xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
6746
- "min-h-6 px-2 py-1 text-xs",
6911
+ "min-h-6 px-2.5 py-1 text-xs",
6747
6912
  "bg-base-dark text-white",
6748
6913
  "dark:bg-base-dark dark:text-base-150 dark:ring dark:ring-base-100/20",
6749
6914
  "origin-(--reka-tooltip-content-transform-origin)",
@@ -7055,6 +7220,7 @@ const navbarSpacer = {
7055
7220
 
7056
7221
  const theme = {
7057
7222
  __proto__: null,
7223
+ accordion: accordion,
7058
7224
  advice: advice,
7059
7225
  alert: alert,
7060
7226
  avatar: avatar,
@@ -7583,8 +7749,8 @@ function replaceBrackets(value) {
7583
7749
  }
7584
7750
  function getTemplates(options) {
7585
7751
  const templates = [];
7586
- function generateVariantDeclarations(variants, result) {
7587
- return variants.map((variant) => {
7752
+ function generateVariantDeclarations(variants, result, json) {
7753
+ return variants.filter((variant) => json.includes(`as typeof ${variant}`)).map((variant) => {
7588
7754
  const keys = Object.keys(result.variants[variant]);
7589
7755
  return `const ${variant} = ${JSON.stringify(keys, null, 2)} as const`;
7590
7756
  });
@@ -7609,7 +7775,7 @@ function getTemplates(options) {
7609
7775
  });
7610
7776
  }
7611
7777
  return [
7612
- ...generateVariantDeclarations(variants, result),
7778
+ ...generateVariantDeclarations(variants, result, json),
7613
7779
  `export default ${json}`
7614
7780
  ].join("\n\n");
7615
7781
  }
@@ -7634,18 +7800,8 @@ function getTemplates(options) {
7634
7800
  return `${before}${replaced}${after}`;
7635
7801
  });
7636
7802
  }
7637
- if (process.env.DEV) {
7638
- const templatePath = fileURLToPath(new URL(`./theme/prose/${kebabCase(component)}`, import.meta.url));
7639
- return [
7640
- `import template from ${JSON.stringify(templatePath)}`,
7641
- ...generateVariantDeclarations(variants, result),
7642
- `const result = typeof template === 'function' ? template(${JSON.stringify(options, null, 2)}) : template`,
7643
- `const theme = ${json}`,
7644
- `export default result as typeof theme`
7645
- ].join("\n\n");
7646
- }
7647
7803
  return [
7648
- ...generateVariantDeclarations(variants, result),
7804
+ ...generateVariantDeclarations(variants, result, json),
7649
7805
  `export default ${json}`
7650
7806
  ].join("\n\n");
7651
7807
  }
@@ -7670,18 +7826,8 @@ function getTemplates(options) {
7670
7826
  return `${before}${replaced}${after}`;
7671
7827
  });
7672
7828
  }
7673
- if (process.env.DEV) {
7674
- const templatePath = fileURLToPath(new URL(`./theme/content/${kebabCase(component)}`, import.meta.url));
7675
- return [
7676
- `import template from ${JSON.stringify(templatePath)}`,
7677
- ...generateVariantDeclarations(variants, result),
7678
- `const result = typeof template === 'function' ? template(${JSON.stringify(options, null, 2)}) : template`,
7679
- `const theme = ${json}`,
7680
- `export default result as typeof theme`
7681
- ].join("\n\n");
7682
- }
7683
7829
  return [
7684
- ...generateVariantDeclarations(variants, result),
7830
+ ...generateVariantDeclarations(variants, result, json),
7685
7831
  `export default ${json}`
7686
7832
  ].join("\n\n");
7687
7833
  }
@@ -7692,7 +7838,7 @@ function getTemplates(options) {
7692
7838
  write: true,
7693
7839
  getContents: () => `@source "./b24ui";
7694
7840
 
7695
- @theme default {}
7841
+ @theme default inline {}
7696
7842
  `
7697
7843
  });
7698
7844
  templates.push({
@@ -7703,12 +7849,12 @@ function getTemplates(options) {
7703
7849
  templates.push({
7704
7850
  filename: "types/b24ui.d.ts",
7705
7851
  getContents: () => replaceBrackets(`import * as b24ui from '#build/b24ui'
7706
- import type { DeepPartial } from '@bitrix24/b24ui-nuxt'
7852
+ import type { TVConfig } from '@bitrix24/b24ui-nuxt'
7707
7853
  import type { defaultConfig } from 'tailwind-variants'
7708
7854
 
7709
7855
  type AppConfigUI = {
7710
7856
  tv?: typeof defaultConfig
7711
- } & DeepPartial[[typeof b24ui]]
7857
+ } & TVConfig<typeof b24ui>
7712
7858
 
7713
7859
  declare module '@nuxt/schema' {
7714
7860
  interface AppConfigInput {
@@ -7726,8 +7872,8 @@ export {}
7726
7872
  filename: "b24ui-image-component.ts",
7727
7873
  write: true,
7728
7874
  getContents: ({ app }) => {
7729
- const image = app?.components?.find((c) => c.pascalName === "NuxtImg" && !c.filePath.includes("nuxt/dist/app"));
7730
- return image ? `export { default } from "${image.filePath}"` : 'export default "img"';
7875
+ const image = app?.components?.find((c) => c.pascalName === "NuxtImg" && !/nuxt(?:-nightly)?\/dist\/app/.test(c.filePath));
7876
+ return image ? genExport(image.filePath, [{ name: image.export, as: "default" }]) : 'export default "img"';
7731
7877
  }
7732
7878
  });
7733
7879
  return templates;