@bitrix24/b24ui-nuxt 0.2.1 → 0.2.3

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 (44) hide show
  1. package/.nuxt/b24ui/button.ts +9 -2
  2. package/.nuxt/b24ui/checkbox.ts +1 -1
  3. package/.nuxt/b24ui/dropdown-menu.ts +235 -0
  4. package/.nuxt/b24ui/index.ts +2 -0
  5. package/.nuxt/b24ui/input-menu.ts +1 -1
  6. package/.nuxt/b24ui/modal.ts +28 -0
  7. package/.nuxt/b24ui/radio-group.ts +1 -1
  8. package/.nuxt/b24ui/range.ts +1 -1
  9. package/.nuxt/b24ui/select-menu.ts +1 -1
  10. package/.nuxt/b24ui/select.ts +1 -1
  11. package/.nuxt/b24ui/switch.ts +1 -1
  12. package/.nuxt/b24ui/tabs.ts +2 -2
  13. package/.nuxt/b24ui/toaster.ts +4 -4
  14. package/.nuxt/b24ui.css +2 -0
  15. package/dist/meta.cjs +9050 -1027
  16. package/dist/meta.d.cts +9050 -1027
  17. package/dist/meta.d.mts +9050 -1027
  18. package/dist/meta.d.ts +9050 -1027
  19. package/dist/meta.mjs +9050 -1027
  20. package/dist/module.cjs +1 -1
  21. package/dist/module.json +1 -1
  22. package/dist/module.mjs +1 -1
  23. package/dist/runtime/components/App.vue +2 -2
  24. package/dist/runtime/components/DropdownMenu.vue +135 -0
  25. package/dist/runtime/components/DropdownMenuContent.vue +182 -0
  26. package/dist/runtime/components/Modal.vue +179 -0
  27. package/dist/runtime/components/ModalDialogClose.vue +17 -0
  28. package/dist/runtime/components/ModalProvider.vue +12 -0
  29. package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
  30. package/dist/runtime/composables/useModal.d.ts +17 -0
  31. package/dist/runtime/composables/useModal.js +46 -0
  32. package/dist/runtime/index.css +1 -1
  33. package/dist/runtime/plugins/modal.d.ts +2 -0
  34. package/dist/runtime/plugins/modal.js +10 -0
  35. package/dist/runtime/types/index.d.ts +3 -0
  36. package/dist/runtime/types/index.js +3 -0
  37. package/dist/runtime/vue/components/Link.vue +1 -0
  38. package/dist/shared/{b24ui-nuxt.D5cXbZSx.cjs → b24ui-nuxt.Ce3hzs_q.cjs} +440 -26
  39. package/dist/shared/{b24ui-nuxt.CrjojW8t.mjs → b24ui-nuxt.DY8ePXC7.mjs} +440 -26
  40. package/dist/unplugin.cjs +1 -1
  41. package/dist/unplugin.mjs +1 -1
  42. package/dist/vite.cjs +1 -1
  43. package/dist/vite.mjs +1 -1
  44. package/package.json +12 -8
@@ -718,7 +718,8 @@ const button = {
718
718
  slots: {
719
719
  base: [
720
720
  "select-none cursor-pointer inline-flex items-center",
721
- "relative focus:outline-hidden",
721
+ "relative",
722
+ "outline-transparent focus:outline-hidden focus-visible:outline-2 focus-visible:outline-offset-2",
722
723
  "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50",
723
724
  "transition duration-150 ease-linear"
724
725
  // transition-colors
@@ -735,7 +736,6 @@ const button = {
735
736
  variants: {
736
737
  ...buttonGroupVariant,
737
738
  color: {
738
- // DEFAULT ////
739
739
  default: [
740
740
  "text-white dark:text-base-100 bg-base-650 border border-base-650",
741
741
  "hover:bg-base-850 hover:border-base-850 hover:focus-visible:ring-0",
@@ -752,7 +752,6 @@ const button = {
752
752
  "focus-visible:outline-red-720",
753
753
  "ring-red-800 focus-visible:ring-red-800"
754
754
  ].join(" "),
755
- // SUCCESS ////
756
755
  success: [
757
756
  "text-base-900 bg-green-450 border border-green-450",
758
757
  "hover:bg-green-370 hover:border-green-370 hover:focus-visible:ring-0",
@@ -761,7 +760,6 @@ const button = {
761
760
  "focus-visible:outline-green-450",
762
761
  "ring-green-500 focus-visible:ring-green-500"
763
762
  ].join(" "),
764
- // new WARNING ////
765
763
  warning: [
766
764
  "text-white dark:text-orange-100 bg-orange-500 border border-orange-500",
767
765
  "hover:bg-orange-500/75 hover:border-orange-500/75 hover:focus-visible:ring-0",
@@ -770,7 +768,6 @@ const button = {
770
768
  "focus-visible:outline-orange-500",
771
769
  "ring-orange-800 focus-visible:ring-orange-800"
772
770
  ].join(" "),
773
- // PRIMARY ////
774
771
  primary: [
775
772
  "text-white dark:text-blue-100 bg-blue-530 border border-blue-530",
776
773
  "hover:bg-blue-450 hover:border-blue-450 hover:focus-visible:ring-0",
@@ -779,7 +776,6 @@ const button = {
779
776
  "focus-visible:outline-blue-530",
780
777
  "ring-blue-800 focus-visible:ring-blue-800"
781
778
  ].join(" "),
782
- // SECONDARY ////
783
779
  secondary: [
784
780
  "text-base-900 bg-cyan-160 border border-cyan-230",
785
781
  "hover:bg-cyan-150 hover:border-cyan-230 hover:focus-visible:ring-0",
@@ -788,7 +784,6 @@ const button = {
788
784
  "focus-visible:outline-cyan-160",
789
785
  "ring-cyan-500 focus-visible:ring-cyan-500"
790
786
  ].join(" "),
791
- // COLLAB ////
792
787
  collab: [
793
788
  "text-white dark:text-collab-100 bg-collab-600 border border-collab-600",
794
789
  "hover:bg-collab-500 hover:border-collab-500 hover:focus-visible:ring-0",
@@ -797,7 +792,6 @@ const button = {
797
792
  "focus-visible:outline-collab-600",
798
793
  "ring-collab-900 focus-visible:ring-collab-900"
799
794
  ].join(" "),
800
- // AI ////
801
795
  ai: [
802
796
  "text-white dark:text-ai-100 bg-ai-450 border border-ai-450",
803
797
  "hover:bg-ai-370 hover:border-ai-370 hover:focus-visible:ring-0",
@@ -806,7 +800,6 @@ const button = {
806
800
  "focus-visible:outline-ai-450",
807
801
  "ring-ai-900 focus-visible:ring-ai-900"
808
802
  ].join(" "),
809
- // LINK ////
810
803
  link: [
811
804
  "no-underline decoration-solid decoration-auto",
812
805
  "text-base-900 decoration-gray-900 bg-transparent border border-transparent dark:text-base-300",
@@ -894,7 +887,6 @@ const button = {
894
887
  compoundVariants: [
895
888
  // region default ////
896
889
  {
897
- // BASE_LIGHT ////
898
890
  color: "default",
899
891
  depth: "light",
900
892
  class: [
@@ -902,7 +894,8 @@ const button = {
902
894
  "hover:bg-base-320 hover:border-base-320 hover:focus-visible:ring-0",
903
895
  "active:bg-base-250 active:border-base-250 active:focus-visible:ring-0",
904
896
  "disabled:bg-base-200 aria-disabled:bg-base-200 disabled:border-base-300 aria-disabled:border-base-300",
905
- "focus-visible:outline-base-200"
897
+ "focus-visible:outline-base-200",
898
+ "ring-base-320 focus-visible:ring-base-320"
906
899
  ].join(" ")
907
900
  },
908
901
  {
@@ -1123,12 +1116,18 @@ const button = {
1123
1116
  ].join(" ")
1124
1117
  },
1125
1118
  {
1126
- // LIGHT_BORDER ////
1119
+ // LINK ////
1127
1120
  color: "link",
1128
1121
  depth: "light",
1129
1122
  useLabel: true,
1130
1123
  class: "ps-1.5 pe-1.5"
1131
1124
  },
1125
+ {
1126
+ color: "link",
1127
+ depth: "normal",
1128
+ useLabel: true,
1129
+ class: "ps-0 pe-0"
1130
+ },
1132
1131
  {
1133
1132
  // LIGHT_BORDER ////
1134
1133
  color: "link",
@@ -1264,7 +1263,11 @@ const button = {
1264
1263
  const checkbox = {
1265
1264
  slots: {
1266
1265
  root: "relative flex items-start",
1267
- base: "cursor-pointer shrink-0 flex items-center justify-center rounded-2xs text-white dark:text-base-150 ring ring-inset ring-base-300 dark:ring-base-700 focus-visible:outline-2 focus-visible:outline-offset-2",
1266
+ base: [
1267
+ "cursor-pointer shrink-0 flex items-center justify-center rounded-2xs text-white dark:text-base-150",
1268
+ "ring ring-inset ring-base-300 dark:ring-base-700",
1269
+ "outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2"
1270
+ ].join(" "),
1268
1271
  container: "flex items-center",
1269
1272
  wrapper: "font-b24-primary ms-2",
1270
1273
  icon: "shrink-0 size-full",
@@ -1597,6 +1600,359 @@ const countdown = {
1597
1600
  }
1598
1601
  };
1599
1602
 
1603
+ const dropdownMenu = {
1604
+ slots: {
1605
+ content: [
1606
+ "min-w-32",
1607
+ "bg-white dark:bg-base-dark",
1608
+ "shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800",
1609
+ "overflow-y-auto",
1610
+ "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
1611
+ "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
1612
+ "pointer-events-auto"
1613
+ ].join(" "),
1614
+ arrow: "fill-base-master/10 dark:fill-base-100/20",
1615
+ group: "p-1 isolate",
1616
+ label: [
1617
+ "w-full flex items-center",
1618
+ "font-semibold text-base-900 dark:text-base-200"
1619
+ ].join(" "),
1620
+ separator: "-mx-1 my-1 h-px bg-base-master/10 dark:bg-base-100/20",
1621
+ item: [
1622
+ "group relative w-full flex items-center select-none outline-none",
1623
+ "before:absolute before:z-[-1] before:inset-px before:rounded-2xs",
1624
+ "cursor-pointer",
1625
+ "data-disabled:cursor-not-allowed data-disabled:opacity-75",
1626
+ "text-base-master dark:text-base-150",
1627
+ "data-highlighted:text-base-900 dark:data-highlighted:text-base-200 data-highlighted:before:bg-base-100/50 dark:data-highlighted:before:bg-base-900",
1628
+ // 'data-[state=checked]:text-base-900 dark:data-[state=checked]:text-base-200 data-[state=checked]:before:bg-base-100/50 dark:data-[state=checked]:before:bg-base-900',
1629
+ "transition-colors before:transition-colors"
1630
+ ].join(" "),
1631
+ itemLeadingIcon: [
1632
+ "shrink-0 text-base-500 dark:text-base-700",
1633
+ "group-data-highlighted:text-base-master dark:group-data-highlighted:text-base-150",
1634
+ "group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150",
1635
+ "transition-colors"
1636
+ ].join(" "),
1637
+ itemLeadingAvatar: "shrink-0",
1638
+ itemLeadingAvatarSize: "",
1639
+ itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
1640
+ itemTrailingIcon: "shrink-0",
1641
+ itemTrailingKbds: "hidden lg:inline-flex items-center shrink-0",
1642
+ itemTrailingKbdsSize: "",
1643
+ itemLabel: "truncate",
1644
+ itemLabelExternalIcon: "inline-block size-3 align-top text-base-500 dark:text-base-700"
1645
+ },
1646
+ variants: {
1647
+ color: {
1648
+ default: "",
1649
+ danger: "",
1650
+ success: "",
1651
+ warning: "",
1652
+ primary: "",
1653
+ secondary: "",
1654
+ collab: "",
1655
+ ai: ""
1656
+ },
1657
+ active: {
1658
+ false: {
1659
+ item: [
1660
+ "text-base-master data-highlighted:text-base-900 data-highlighted:before:bg-base-100/50 data-[state=open]:text-base-900 data-[state=open]:before:bg-base-100/50",
1661
+ "dark:text-base-150 dark:data-highlighted:text-base-200 dark:data-highlighted:before:bg-base-900 dark:data-[state=open]:text-base-200 dark:data-[state=open]:before:bg-base-900",
1662
+ "transition-colors before:transition-colors"
1663
+ ].join(" "),
1664
+ itemLeadingIcon: [
1665
+ "text-base-500 group-data-highlighted:text-base-master group-data-[state=open]:text-base-master",
1666
+ "dark:text-base-700 dark:group-data-highlighted:text-base-150 dark:group-data-[state=open]:text-base-150",
1667
+ "transition-colors"
1668
+ ].join(" ")
1669
+ },
1670
+ true: {
1671
+ item: [
1672
+ "text-base-900 before:bg-base-100/50",
1673
+ "dark:text-base-200 dark:before:bg-base-900"
1674
+ ].join(" "),
1675
+ itemLeadingIcon: [
1676
+ "text-base-master group-data-[state=open]:text-base-master",
1677
+ "dark:text-base-700"
1678
+ ].join(" ")
1679
+ }
1680
+ },
1681
+ loading: {
1682
+ true: {
1683
+ itemLeadingIcon: "animate-spin"
1684
+ }
1685
+ },
1686
+ size: {
1687
+ xs: {
1688
+ label: "p-1 text-xs gap-1",
1689
+ item: "p-1 text-xs gap-1",
1690
+ itemLeadingIcon: "size-4",
1691
+ itemLeadingAvatarSize: "3xs",
1692
+ itemTrailingIcon: "size-4",
1693
+ itemTrailingKbds: "gap-0.5",
1694
+ itemTrailingKbdsSize: "sm"
1695
+ },
1696
+ sm: {
1697
+ label: "p-1.5 text-xs gap-1.5",
1698
+ item: "p-1.5 text-xs gap-1.5",
1699
+ itemLeadingIcon: "size-4",
1700
+ itemLeadingAvatarSize: "3xs",
1701
+ itemTrailingIcon: "size-4",
1702
+ itemTrailingKbds: "gap-0.5",
1703
+ itemTrailingKbdsSize: "sm"
1704
+ },
1705
+ md: {
1706
+ label: "h-9 ps-2 pe-3 text-sm gap-2",
1707
+ item: "h-9 ps-3 pe-3 text-sm gap-2",
1708
+ itemLeadingIcon: "size-5",
1709
+ itemLeadingAvatarSize: "2xs",
1710
+ itemTrailingIcon: "size-3",
1711
+ itemTrailingKbds: "gap-0.5",
1712
+ itemTrailingKbdsSize: "md"
1713
+ },
1714
+ lg: {
1715
+ label: "p-2 text-sm gap-2",
1716
+ item: "p-2 text-sm gap-2",
1717
+ itemLeadingIcon: "size-5",
1718
+ itemLeadingAvatarSize: "2xs",
1719
+ itemTrailingIcon: "size-5",
1720
+ itemTrailingKbds: "gap-1",
1721
+ itemTrailingKbdsSize: "md"
1722
+ }
1723
+ }
1724
+ },
1725
+ compoundVariants: [
1726
+ {
1727
+ color: "default",
1728
+ active: false,
1729
+ class: {
1730
+ item: [
1731
+ "text-base-master data-highlighted:text-base-900 data-highlighted:before:bg-base-100/50 data-[state=open]:text-base-900 data-[state=open]:before:bg-base-100/50",
1732
+ "dark:text-base-150 dark:data-highlighted:text-base-200 dark:data-highlighted:before:bg-base-900 dark:data-[state=open]:text-base-200 dark:data-[state=open]:before:bg-base-900"
1733
+ ].join(" "),
1734
+ itemLeadingIcon: [
1735
+ "text-base-500 group-data-highlighted:text-base-master group-data-[state=open]:text-base-master",
1736
+ "dark:text-base-700 dark:group-data-highlighted:text-base-150 dark:group-data-[state=open]:text-base-150"
1737
+ ].join(" ")
1738
+ }
1739
+ },
1740
+ {
1741
+ color: "default",
1742
+ active: true,
1743
+ class: {
1744
+ item: [
1745
+ "text-base-900 before:bg-base-100/50",
1746
+ "dark:text-base-200 dark:before:bg-base-900"
1747
+ ].join(" "),
1748
+ itemLeadingIcon: [
1749
+ "text-base-master group-data-[state=open]:text-base-master",
1750
+ "dark:text-base-700"
1751
+ ].join(" ")
1752
+ }
1753
+ },
1754
+ {
1755
+ color: "danger",
1756
+ active: false,
1757
+ class: {
1758
+ item: [
1759
+ "text-red-950 data-highlighted:text-red-900 data-highlighted:before:bg-red-100 data-[state=open]:text-red-900 data-[state=open]:before:bg-red-100",
1760
+ "dark:text-red-150 dark:data-highlighted:text-red-200 dark:data-highlighted:before:bg-red-900 dark:data-[state=open]:text-red-200 dark:data-[state=open]:before:bg-red-900"
1761
+ ].join(" "),
1762
+ itemLeadingIcon: [
1763
+ "text-red-500 group-data-highlighted:text-red-950 group-data-[state=open]:text-red-950",
1764
+ "dark:text-red-700 dark:group-data-highlighted:text-red-150 dark:group-data-[state=open]:text-red-150"
1765
+ ].join(" ")
1766
+ }
1767
+ },
1768
+ {
1769
+ color: "danger",
1770
+ active: true,
1771
+ class: {
1772
+ item: [
1773
+ "text-red-900 before:bg-red-100",
1774
+ "dark:text-red-200 dark:before:bg-red-900"
1775
+ ].join(" "),
1776
+ itemLeadingIcon: [
1777
+ "text-red-950 group-data-[state=open]:text-red-950",
1778
+ "dark:text-red-700"
1779
+ ].join(" ")
1780
+ }
1781
+ },
1782
+ {
1783
+ color: "success",
1784
+ active: false,
1785
+ class: {
1786
+ item: [
1787
+ "text-green-950 data-highlighted:text-green-900 data-highlighted:before:bg-green-100 data-[state=open]:text-green-900 data-[state=open]:before:bg-green-100",
1788
+ "dark:text-green-150 dark:data-highlighted:text-green-200 dark:data-highlighted:before:bg-green-900 dark:data-[state=open]:text-green-200 dark:data-[state=open]:before:bg-green-900"
1789
+ ].join(" "),
1790
+ itemLeadingIcon: [
1791
+ "text-green-500 group-data-highlighted:text-green-950 group-data-[state=open]:text-green-950",
1792
+ "dark:text-green-700 dark:group-data-highlighted:text-green-150 dark:group-data-[state=open]:text-green-150"
1793
+ ].join(" ")
1794
+ }
1795
+ },
1796
+ {
1797
+ color: "success",
1798
+ active: true,
1799
+ class: {
1800
+ item: [
1801
+ "text-green-900 before:bg-green-100",
1802
+ "dark:text-green-200 dark:before:bg-green-900"
1803
+ ].join(" "),
1804
+ itemLeadingIcon: [
1805
+ "text-green-950 group-data-[state=open]:text-green-950",
1806
+ "dark:text-green-700"
1807
+ ].join(" ")
1808
+ }
1809
+ },
1810
+ {
1811
+ color: "warning",
1812
+ active: false,
1813
+ class: {
1814
+ item: [
1815
+ "text-orange-950 data-highlighted:text-orange-900 data-highlighted:before:bg-orange-100 data-[state=open]:text-orange-900 data-[state=open]:before:bg-orange-100",
1816
+ "dark:text-orange-150 dark:data-highlighted:text-orange-200 dark:data-highlighted:before:bg-orange-900 dark:data-[state=open]:text-orange-200 dark:data-[state=open]:before:bg-orange-900"
1817
+ ].join(" "),
1818
+ itemLeadingIcon: [
1819
+ "text-orange-500 group-data-highlighted:text-orange-950 group-data-[state=open]:text-orange-950",
1820
+ "dark:text-orange-700 dark:group-data-highlighted:text-orange-150 dark:group-data-[state=open]:text-orange-150"
1821
+ ].join(" ")
1822
+ }
1823
+ },
1824
+ {
1825
+ color: "warning",
1826
+ active: true,
1827
+ class: {
1828
+ item: [
1829
+ "text-orange-900 before:bg-orange-100",
1830
+ "dark:text-orange-200 dark:before:bg-orange-900"
1831
+ ].join(" "),
1832
+ itemLeadingIcon: [
1833
+ "text-orange-950 group-data-[state=open]:text-orange-950",
1834
+ "dark:text-orange-700"
1835
+ ].join(" ")
1836
+ }
1837
+ },
1838
+ {
1839
+ color: "primary",
1840
+ active: false,
1841
+ class: {
1842
+ item: [
1843
+ "text-blue-950 data-highlighted:text-blue-900 data-highlighted:before:bg-blue-100 data-[state=open]:text-blue-900 data-[state=open]:before:bg-blue-100",
1844
+ "dark:text-blue-150 dark:data-highlighted:text-blue-200 dark:data-highlighted:before:bg-blue-900 dark:data-[state=open]:text-blue-200 dark:data-[state=open]:before:bg-blue-900"
1845
+ ].join(" "),
1846
+ itemLeadingIcon: [
1847
+ "text-blue-500 group-data-highlighted:text-blue-950 group-data-[state=open]:text-blue-950",
1848
+ "dark:text-blue-700 dark:group-data-highlighted:text-blue-150 dark:group-data-[state=open]:text-blue-150"
1849
+ ].join(" ")
1850
+ }
1851
+ },
1852
+ {
1853
+ color: "primary",
1854
+ active: true,
1855
+ class: {
1856
+ item: [
1857
+ "text-blue-900 before:bg-blue-100",
1858
+ "dark:text-blue-200 dark:before:bg-blue-900"
1859
+ ].join(" "),
1860
+ itemLeadingIcon: [
1861
+ "text-blue-950 group-data-[state=open]:text-blue-950",
1862
+ "dark:text-blue-700"
1863
+ ].join(" ")
1864
+ }
1865
+ },
1866
+ {
1867
+ color: "secondary",
1868
+ active: false,
1869
+ class: {
1870
+ item: [
1871
+ "text-cyan-950 data-highlighted:text-cyan-900 data-highlighted:before:bg-cyan-100/50 data-[state=open]:text-cyan-900 data-[state=open]:before:bg-cyan-100/50",
1872
+ "dark:text-cyan-150 dark:data-highlighted:text-cyan-200 dark:data-highlighted:before:bg-cyan-900 dark:data-[state=open]:text-cyan-200 dark:data-[state=open]:before:bg-cyan-900"
1873
+ ].join(" "),
1874
+ itemLeadingIcon: [
1875
+ "text-cyan-500 group-data-highlighted:text-cyan-950 group-data-[state=open]:text-cyan-950",
1876
+ "dark:text-cyan-700 dark:group-data-highlighted:text-cyan-150 dark:group-data-[state=open]:text-cyan-150"
1877
+ ].join(" ")
1878
+ }
1879
+ },
1880
+ {
1881
+ color: "secondary",
1882
+ active: true,
1883
+ class: {
1884
+ item: [
1885
+ "text-cyan-900 before:bg-cyan-100/50",
1886
+ "dark:text-cyan-200 dark:before:bg-cyan-900"
1887
+ ].join(" "),
1888
+ itemLeadingIcon: [
1889
+ "text-cyan-950 group-data-[state=open]:text-cyan-950",
1890
+ "dark:text-cyan-700"
1891
+ ].join(" ")
1892
+ }
1893
+ },
1894
+ {
1895
+ color: "collab",
1896
+ active: false,
1897
+ class: {
1898
+ item: [
1899
+ "text-collab-950 data-highlighted:text-collab-900 data-highlighted:before:bg-collab-100 data-[state=open]:text-collab-900 data-[state=open]:before:bg-collab-100",
1900
+ "dark:text-collab-150 dark:data-highlighted:text-collab-200 dark:data-highlighted:before:bg-collab-900 dark:data-[state=open]:text-collab-200 dark:data-[state=open]:before:bg-collab-900"
1901
+ ].join(" "),
1902
+ itemLeadingIcon: [
1903
+ "text-collab-500 group-data-highlighted:text-collab-950 group-data-[state=open]:text-collab-950",
1904
+ "dark:text-collab-700 dark:group-data-highlighted:text-collab-150 dark:group-data-[state=open]:text-collab-150"
1905
+ ].join(" ")
1906
+ }
1907
+ },
1908
+ {
1909
+ color: "collab",
1910
+ active: true,
1911
+ class: {
1912
+ item: [
1913
+ "text-collab-900 before:bg-collab-100",
1914
+ "dark:text-collab-200 dark:before:bg-collab-900"
1915
+ ].join(" "),
1916
+ itemLeadingIcon: [
1917
+ "text-collab-950 group-data-[state=open]:text-collab-950",
1918
+ "dark:text-collab-700"
1919
+ ].join(" ")
1920
+ }
1921
+ },
1922
+ {
1923
+ color: "ai",
1924
+ active: false,
1925
+ class: {
1926
+ item: [
1927
+ "text-ai-950 data-highlighted:text-ai-900 data-highlighted:before:bg-ai-100/50 data-[state=open]:text-ai-900 data-[state=open]:before:bg-ai-100/50",
1928
+ "dark:text-ai-150 dark:data-highlighted:text-ai-200 dark:data-highlighted:before:bg-ai-900 dark:data-[state=open]:text-ai-200 dark:data-[state=open]:before:bg-ai-900"
1929
+ ].join(" "),
1930
+ itemLeadingIcon: [
1931
+ "text-ai-500 group-data-highlighted:text-ai-950 group-data-[state=open]:text-ai-950",
1932
+ "dark:text-ai-700 dark:group-data-highlighted:text-ai-150 dark:group-data-[state=open]:text-ai-150"
1933
+ ].join(" ")
1934
+ }
1935
+ },
1936
+ {
1937
+ color: "ai",
1938
+ active: true,
1939
+ class: {
1940
+ item: [
1941
+ "text-ai-900 before:bg-ai-100/50",
1942
+ "dark:text-ai-200 dark:before:bg-ai-900"
1943
+ ].join(" "),
1944
+ itemLeadingIcon: [
1945
+ "text-ai-950 group-data-[state=open]:text-ai-950",
1946
+ "dark:text-ai-700"
1947
+ ].join(" ")
1948
+ }
1949
+ }
1950
+ ],
1951
+ defaultVariants: {
1952
+ size: "md"
1953
+ }
1954
+ };
1955
+
1600
1956
  const form = {
1601
1957
  base: ""
1602
1958
  };
@@ -2122,9 +2478,9 @@ const inputMenu = () => {
2122
2478
  trailing: "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
2123
2479
  arrow: "fill-base-master/10 dark:fill-base-100/20",
2124
2480
  content: [
2125
- "w-[var(--reka-popper-anchor-width)]",
2481
+ "w-(--reka-popper-anchor-width)",
2126
2482
  // 'max-h-60',
2127
- // 'h-[var(--reka-popper-available-height)]',
2483
+ // 'h-(--reka-popper-available-height)',
2128
2484
  "bg-white dark:bg-base-dark",
2129
2485
  "shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
2130
2486
  "overflow-hidden",
@@ -2397,6 +2753,46 @@ const link = (options) => ({
2397
2753
  }
2398
2754
  });
2399
2755
 
2756
+ const modal = {
2757
+ slots: {
2758
+ overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
2759
+ content: [
2760
+ "py-md2 px-5",
2761
+ "fixed w-full h-dvh bg-white dark:bg-base-950",
2762
+ // 'divide-y divide-base-900/10 dark:divide-white/20',
2763
+ "flex flex-col focus:outline-none"
2764
+ ].join(" "),
2765
+ header: "pe-5 pt-0",
2766
+ body: "flex-1 overflow-y-auto my-2.5 text-md leading-normal",
2767
+ footer: "flex items-center justify-center gap-3 mt-2.5 pt-4 border-t border-t-1 border-t-base-900/10 dark:border-t-white/20",
2768
+ title: "font-bold text-md leading-normal text-base-900 dark:text-base-150",
2769
+ description: "mt-0.5 mb-1 text-base-500 dark:text-base-400 text-sm",
2770
+ close: "absolute top-2 end-1.5 p-0.5"
2771
+ },
2772
+ variants: {
2773
+ transition: {
2774
+ true: {
2775
+ overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
2776
+ content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
2777
+ }
2778
+ },
2779
+ fullscreen: {
2780
+ true: {
2781
+ content: "inset-0"
2782
+ },
2783
+ false: {
2784
+ content: [
2785
+ "top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%]",
2786
+ "sm:min-w-[400px]",
2787
+ "sm:max-w-[420px] sm:h-auto sm:max-h-[calc(100vh-4rem)]",
2788
+ "sm:rounded-md sm:shadow-lg",
2789
+ "sm:ring ring-base-300 dark:ring-base-800"
2790
+ ].join(" ")
2791
+ }
2792
+ }
2793
+ }
2794
+ };
2795
+
2400
2796
  const progress = {
2401
2797
  slots: {
2402
2798
  root: "gap-2",
@@ -2677,7 +3073,11 @@ const radioGroup = {
2677
3073
  fieldset: "flex",
2678
3074
  legend: "mb-1.5 block font-medium text-base-master dark:text-base-400",
2679
3075
  item: "flex items-start",
2680
- base: "cursor-pointer rounded-full ring ring-inset ring-base-300 dark:ring-base-700 focus-visible:outline-2 focus-visible:outline-offset-2",
3076
+ base: [
3077
+ "cursor-pointer rounded-full",
3078
+ "ring ring-inset ring-base-300 dark:ring-base-700",
3079
+ "outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2"
3080
+ ].join(" "),
2681
3081
  indicator: " flex items-center justify-center size-full rounded-full after:bg-white dark:after:bg-base-dark after:rounded-full",
2682
3082
  container: "flex items-center",
2683
3083
  wrapper: "font-b24-primary font-regular ms-2",
@@ -2789,7 +3189,11 @@ const range = {
2789
3189
  root: "relative flex items-center select-none touch-none",
2790
3190
  track: "relative bg-base-200 dark:bg-base-800 overflow-hidden rounded-full grow",
2791
3191
  range: "absolute rounded-full",
2792
- thumb: "rounded-full bg-white dark:bg-base-100 ring-2 focus-visible:outline-2 focus-visible:outline-offset-2"
3192
+ thumb: [
3193
+ "rounded-full bg-white dark:bg-base-100",
3194
+ "ring-2",
3195
+ "outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2"
3196
+ ].join(" ")
2793
3197
  },
2794
3198
  variants: {
2795
3199
  color: {
@@ -2975,9 +3379,9 @@ const select = () => {
2975
3379
  placeholder: "truncate text-base-400 dark:text-base-300",
2976
3380
  arrow: "fill-base-master/10 dark:fill-base-100/20",
2977
3381
  content: [
2978
- "w-[var(--reka-popper-anchor-width)]",
3382
+ "w-(--reka-popper-anchor-width)",
2979
3383
  // 'max-h-60',
2980
- // 'h-[var(--reka-popper-available-height)]',
3384
+ // 'h-(--reka-popper-available-height)',
2981
3385
  "bg-white dark:bg-base-dark",
2982
3386
  "shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
2983
3387
  "overflow-hidden",
@@ -3187,7 +3591,8 @@ const _switch = {
3187
3591
  slots: {
3188
3592
  root: "relative flex items-start",
3189
3593
  base: [
3190
- "cursor-pointer inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-base-200 dark:data-[state=unchecked]:bg-base-800",
3594
+ "cursor-pointer inline-flex items-center shrink-0 rounded-full border-2 border-transparent data-[state=unchecked]:bg-base-200 dark:data-[state=unchecked]:bg-base-800",
3595
+ "outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2",
3191
3596
  "transition-colors duration-200"
3192
3597
  ].join(" "),
3193
3598
  container: "flex items-center",
@@ -3345,12 +3750,12 @@ const tabs = {
3345
3750
  horizontal: {
3346
3751
  root: "flex-col",
3347
3752
  list: "w-full",
3348
- indicator: "left-0 w-[var(--reka-tabs-indicator-size)] translate-x-[var(--reka-tabs-indicator-position)]",
3753
+ indicator: "left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",
3349
3754
  trigger: "justify-center"
3350
3755
  },
3351
3756
  vertical: {
3352
3757
  list: "flex-col",
3353
- indicator: "top-0 h-[var(--reka-tabs-indicator-size)] translate-y-[var(--reka-tabs-indicator-position)]"
3758
+ indicator: "top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"
3354
3759
  }
3355
3760
  },
3356
3761
  size: {
@@ -4040,8 +4445,8 @@ const toast = {
4040
4445
 
4041
4446
  const toaster = {
4042
4447
  slots: {
4043
- viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-[var(--height)] focus:outline-none",
4044
- base: "pointer-events-auto absolute inset-x-0 z-[var(--index)] transform-[var(--transform)] data-[expanded=false]:data-[front=false]:h-[var(--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"
4448
+ viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
4449
+ 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"
4045
4450
  },
4046
4451
  variants: {
4047
4452
  position: {
@@ -4099,14 +4504,14 @@ const toaster = {
4099
4504
  "left",
4100
4505
  "right"
4101
4506
  ],
4102
- class: "data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)] data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=cancel]:translate-x-0"
4507
+ class: "data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0"
4103
4508
  },
4104
4509
  {
4105
4510
  swipeDirection: [
4106
4511
  "up",
4107
4512
  "down"
4108
4513
  ],
4109
- class: "data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)] data-[swipe=end]:translate-y-[var(--reka-toast-swipe-end-y)] data-[swipe=cancel]:translate-y-0"
4514
+ class: "data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0"
4110
4515
  }
4111
4516
  ],
4112
4517
  defaultVariants: {
@@ -4145,12 +4550,14 @@ const theme = {
4145
4550
  chip: chip,
4146
4551
  container: container,
4147
4552
  countdown: countdown,
4553
+ dropdownMenu: dropdownMenu,
4148
4554
  form: form,
4149
4555
  formField: formField,
4150
4556
  input: input,
4151
4557
  inputMenu: inputMenu,
4152
4558
  kbd: kbd,
4153
4559
  link: link,
4560
+ modal: modal,
4154
4561
  progress: progress,
4155
4562
  radioGroup: radioGroup,
4156
4563
  range: range,
@@ -4332,6 +4739,13 @@ function getTemplates(options) {
4332
4739
  }
4333
4740
  });
4334
4741
  }
4742
+ templates.push({
4743
+ filename: "b24ui.css",
4744
+ write: true,
4745
+ getContents: () => `@theme default {
4746
+ }
4747
+ `
4748
+ });
4335
4749
  templates.push({
4336
4750
  filename: "b24ui/index.ts",
4337
4751
  write: true,
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.D5cXbZSx.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.Ce3hzs_q.cjs');
9
9
  const tinyglobby = require('tinyglobby');
10
10
  const knitwork = require('knitwork');
11
11
  const MagicString = require('magic-string');
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.CrjojW8t.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.DY8ePXC7.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
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.D5cXbZSx.cjs');
9
+ require('./shared/b24ui-nuxt.Ce3hzs_q.cjs');
10
10
  require('scule');
11
11
  require('@nuxt/kit');
12
12
  require('tinyglobby');