@bitrix24/b24ui-nuxt 0.1.7 → 0.2.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 (42) hide show
  1. package/.nuxt/b24ui/alert.ts +18 -8
  2. package/.nuxt/b24ui/badge.ts +1 -1
  3. package/.nuxt/b24ui/content/description-list.ts +17 -7
  4. package/.nuxt/b24ui/dropdown-menu.ts +235 -0
  5. package/.nuxt/b24ui/index.ts +2 -0
  6. package/.nuxt/b24ui/input-menu.ts +591 -0
  7. package/.nuxt/b24ui/input.ts +5 -5
  8. package/.nuxt/b24ui/select-menu.ts +6 -6
  9. package/.nuxt/b24ui/select.ts +6 -6
  10. package/.nuxt/b24ui/toast.ts +18 -8
  11. package/.nuxt/b24ui.css +2 -0
  12. package/README.md +8 -8
  13. package/dist/meta.cjs +13508 -1751
  14. package/dist/meta.d.cts +13508 -1751
  15. package/dist/meta.d.mts +13508 -1751
  16. package/dist/meta.d.ts +13508 -1751
  17. package/dist/meta.mjs +13508 -1751
  18. package/dist/module.cjs +1 -1
  19. package/dist/module.json +1 -1
  20. package/dist/module.mjs +1 -1
  21. package/dist/runtime/components/Alert.vue +13 -10
  22. package/dist/runtime/components/DropdownMenu.vue +135 -0
  23. package/dist/runtime/components/DropdownMenuContent.vue +182 -0
  24. package/dist/runtime/components/InputMenu.vue +507 -0
  25. package/dist/runtime/components/Toast.vue +26 -14
  26. package/dist/runtime/components/Toaster.vue +2 -2
  27. package/dist/runtime/components/content/DescriptionList.vue +9 -7
  28. package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
  29. package/dist/runtime/composables/useToast.d.ts +5 -4
  30. package/dist/runtime/composables/useToast.js +2 -2
  31. package/dist/runtime/index.css +1 -1
  32. package/dist/runtime/types/index.d.ts +2 -0
  33. package/dist/runtime/types/index.js +2 -0
  34. package/dist/runtime/types/utils.d.ts +5 -0
  35. package/dist/runtime/vue/components/Link.vue +1 -0
  36. package/dist/shared/{b24ui-nuxt.vQRZieQw.mjs → b24ui-nuxt.CYvh5VlN.mjs} +653 -31
  37. package/dist/shared/{b24ui-nuxt.ZUYaG6CJ.cjs → b24ui-nuxt.DgnM0VWe.cjs} +653 -31
  38. package/dist/unplugin.cjs +1 -1
  39. package/dist/unplugin.mjs +1 -1
  40. package/dist/vite.cjs +1 -1
  41. package/dist/vite.mjs +1 -1
  42. package/package.json +24 -5
@@ -69,14 +69,14 @@ const advice = {
69
69
  const alert = {
70
70
  slots: {
71
71
  root: "relative overflow-hidden w-full rounded-3xs flex",
72
- wrapper: "min-w-0 flex-1 flex flex-col gap-1 font-b24-primary font-normal",
72
+ wrapper: "min-w-0 flex-1 flex flex-col font-b24-primary font-normal",
73
73
  title: "font-bold",
74
74
  description: "",
75
75
  icon: "shrink-0 size-6",
76
76
  avatar: "shrink-0",
77
77
  avatarSize: "",
78
78
  actions: "flex flex-wrap gap-1.5 shrink-0",
79
- close: "p-0.5"
79
+ close: "p-0"
80
80
  },
81
81
  variants: {
82
82
  color: {
@@ -151,14 +151,19 @@ const alert = {
151
151
  avatarSize: "xl"
152
152
  }
153
153
  },
154
- multiline: {
155
- true: {
156
- root: "items-start",
157
- actions: "items-start mt-2"
158
- },
159
- false: {
154
+ orientation: {
155
+ horizontal: {
160
156
  root: "items-center",
161
157
  actions: "items-center"
158
+ },
159
+ vertical: {
160
+ root: "items-start",
161
+ actions: "items-start mt-2"
162
+ }
163
+ },
164
+ title: {
165
+ true: {
166
+ description: "mt-1"
162
167
  }
163
168
  }
164
169
  },
@@ -343,7 +348,7 @@ const badge = {
343
348
  leadingIcon: "shrink-0",
344
349
  leadingAvatar: "shrink-0",
345
350
  leadingAvatarSize: "",
346
- trailingIcon: "shrink-0 cursor-pointer hover:rounded-full hover:bg-current/20 dark:hover:bg-current/35"
351
+ trailingIcon: "shrink-0 cursor-pointer hover:rounded-full hover:bg-current/20 dark:hover:bg-current/35"
347
352
  },
348
353
  variants: {
349
354
  ...buttonGroupVariant,
@@ -1594,6 +1599,359 @@ const countdown = {
1594
1599
  }
1595
1600
  };
1596
1601
 
1602
+ const dropdownMenu = {
1603
+ slots: {
1604
+ content: [
1605
+ "min-w-32",
1606
+ "bg-white dark:bg-base-dark",
1607
+ "shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800",
1608
+ "overflow-y-auto",
1609
+ "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
1610
+ "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
1611
+ "pointer-events-auto"
1612
+ ].join(" "),
1613
+ arrow: "fill-base-master/10 dark:fill-base-100/20",
1614
+ group: "p-1 isolate",
1615
+ label: [
1616
+ "w-full flex items-center",
1617
+ "font-semibold text-base-900 dark:text-base-200"
1618
+ ].join(" "),
1619
+ separator: "-mx-1 my-1 h-px bg-base-master/10 dark:bg-base-100/20",
1620
+ item: [
1621
+ "group relative w-full flex items-center select-none outline-none",
1622
+ "before:absolute before:z-[-1] before:inset-px before:rounded-2xs",
1623
+ "cursor-pointer",
1624
+ "data-disabled:cursor-not-allowed data-disabled:opacity-75",
1625
+ "text-base-master dark:text-base-150",
1626
+ "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",
1627
+ // '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',
1628
+ "transition-colors before:transition-colors"
1629
+ ].join(" "),
1630
+ itemLeadingIcon: [
1631
+ "shrink-0 text-base-500 dark:text-base-700",
1632
+ "group-data-highlighted:text-base-master dark:group-data-highlighted:text-base-150",
1633
+ "group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150",
1634
+ "transition-colors"
1635
+ ].join(" "),
1636
+ itemLeadingAvatar: "shrink-0",
1637
+ itemLeadingAvatarSize: "",
1638
+ itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
1639
+ itemTrailingIcon: "shrink-0",
1640
+ itemTrailingKbds: "hidden lg:inline-flex items-center shrink-0",
1641
+ itemTrailingKbdsSize: "",
1642
+ itemLabel: "truncate",
1643
+ itemLabelExternalIcon: "inline-block size-3 align-top text-base-500 dark:text-base-700"
1644
+ },
1645
+ variants: {
1646
+ color: {
1647
+ default: "",
1648
+ danger: "",
1649
+ success: "",
1650
+ warning: "",
1651
+ primary: "",
1652
+ secondary: "",
1653
+ collab: "",
1654
+ ai: ""
1655
+ },
1656
+ active: {
1657
+ false: {
1658
+ item: [
1659
+ "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",
1660
+ "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",
1661
+ "transition-colors before:transition-colors"
1662
+ ].join(" "),
1663
+ itemLeadingIcon: [
1664
+ "text-base-500 group-data-highlighted:text-base-master group-data-[state=open]:text-base-master",
1665
+ "dark:text-base-700 dark:group-data-highlighted:text-base-150 dark:group-data-[state=open]:text-base-150",
1666
+ "transition-colors"
1667
+ ].join(" ")
1668
+ },
1669
+ true: {
1670
+ item: [
1671
+ "text-base-900 before:bg-base-100/50",
1672
+ "dark:text-base-200 dark:before:bg-base-900"
1673
+ ].join(" "),
1674
+ itemLeadingIcon: [
1675
+ "text-base-master group-data-[state=open]:text-base-master",
1676
+ "dark:text-base-700"
1677
+ ].join(" ")
1678
+ }
1679
+ },
1680
+ loading: {
1681
+ true: {
1682
+ itemLeadingIcon: "animate-spin"
1683
+ }
1684
+ },
1685
+ size: {
1686
+ xs: {
1687
+ label: "p-1 text-xs gap-1",
1688
+ item: "p-1 text-xs gap-1",
1689
+ itemLeadingIcon: "size-4",
1690
+ itemLeadingAvatarSize: "3xs",
1691
+ itemTrailingIcon: "size-4",
1692
+ itemTrailingKbds: "gap-0.5",
1693
+ itemTrailingKbdsSize: "sm"
1694
+ },
1695
+ sm: {
1696
+ label: "p-1.5 text-xs gap-1.5",
1697
+ item: "p-1.5 text-xs gap-1.5",
1698
+ itemLeadingIcon: "size-4",
1699
+ itemLeadingAvatarSize: "3xs",
1700
+ itemTrailingIcon: "size-4",
1701
+ itemTrailingKbds: "gap-0.5",
1702
+ itemTrailingKbdsSize: "sm"
1703
+ },
1704
+ md: {
1705
+ label: "h-9 ps-2 pe-3 text-sm gap-2",
1706
+ item: "h-9 ps-3 pe-3 text-sm gap-2",
1707
+ itemLeadingIcon: "size-5",
1708
+ itemLeadingAvatarSize: "2xs",
1709
+ itemTrailingIcon: "size-3",
1710
+ itemTrailingKbds: "gap-0.5",
1711
+ itemTrailingKbdsSize: "md"
1712
+ },
1713
+ lg: {
1714
+ label: "p-2 text-sm gap-2",
1715
+ item: "p-2 text-sm gap-2",
1716
+ itemLeadingIcon: "size-5",
1717
+ itemLeadingAvatarSize: "2xs",
1718
+ itemTrailingIcon: "size-5",
1719
+ itemTrailingKbds: "gap-1",
1720
+ itemTrailingKbdsSize: "md"
1721
+ }
1722
+ }
1723
+ },
1724
+ compoundVariants: [
1725
+ {
1726
+ color: "default",
1727
+ active: false,
1728
+ class: {
1729
+ item: [
1730
+ "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",
1731
+ "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"
1732
+ ].join(" "),
1733
+ itemLeadingIcon: [
1734
+ "text-base-500 group-data-highlighted:text-base-master group-data-[state=open]:text-base-master",
1735
+ "dark:text-base-700 dark:group-data-highlighted:text-base-150 dark:group-data-[state=open]:text-base-150"
1736
+ ].join(" ")
1737
+ }
1738
+ },
1739
+ {
1740
+ color: "default",
1741
+ active: true,
1742
+ class: {
1743
+ item: [
1744
+ "text-base-900 before:bg-base-100/50",
1745
+ "dark:text-base-200 dark:before:bg-base-900"
1746
+ ].join(" "),
1747
+ itemLeadingIcon: [
1748
+ "text-base-master group-data-[state=open]:text-base-master",
1749
+ "dark:text-base-700"
1750
+ ].join(" ")
1751
+ }
1752
+ },
1753
+ {
1754
+ color: "danger",
1755
+ active: false,
1756
+ class: {
1757
+ item: [
1758
+ "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",
1759
+ "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"
1760
+ ].join(" "),
1761
+ itemLeadingIcon: [
1762
+ "text-red-500 group-data-highlighted:text-red-950 group-data-[state=open]:text-red-950",
1763
+ "dark:text-red-700 dark:group-data-highlighted:text-red-150 dark:group-data-[state=open]:text-red-150"
1764
+ ].join(" ")
1765
+ }
1766
+ },
1767
+ {
1768
+ color: "danger",
1769
+ active: true,
1770
+ class: {
1771
+ item: [
1772
+ "text-red-900 before:bg-red-100",
1773
+ "dark:text-red-200 dark:before:bg-red-900"
1774
+ ].join(" "),
1775
+ itemLeadingIcon: [
1776
+ "text-red-950 group-data-[state=open]:text-red-950",
1777
+ "dark:text-red-700"
1778
+ ].join(" ")
1779
+ }
1780
+ },
1781
+ {
1782
+ color: "success",
1783
+ active: false,
1784
+ class: {
1785
+ item: [
1786
+ "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",
1787
+ "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"
1788
+ ].join(" "),
1789
+ itemLeadingIcon: [
1790
+ "text-green-500 group-data-highlighted:text-green-950 group-data-[state=open]:text-green-950",
1791
+ "dark:text-green-700 dark:group-data-highlighted:text-green-150 dark:group-data-[state=open]:text-green-150"
1792
+ ].join(" ")
1793
+ }
1794
+ },
1795
+ {
1796
+ color: "success",
1797
+ active: true,
1798
+ class: {
1799
+ item: [
1800
+ "text-green-900 before:bg-green-100",
1801
+ "dark:text-green-200 dark:before:bg-green-900"
1802
+ ].join(" "),
1803
+ itemLeadingIcon: [
1804
+ "text-green-950 group-data-[state=open]:text-green-950",
1805
+ "dark:text-green-700"
1806
+ ].join(" ")
1807
+ }
1808
+ },
1809
+ {
1810
+ color: "warning",
1811
+ active: false,
1812
+ class: {
1813
+ item: [
1814
+ "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",
1815
+ "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"
1816
+ ].join(" "),
1817
+ itemLeadingIcon: [
1818
+ "text-orange-500 group-data-highlighted:text-orange-950 group-data-[state=open]:text-orange-950",
1819
+ "dark:text-orange-700 dark:group-data-highlighted:text-orange-150 dark:group-data-[state=open]:text-orange-150"
1820
+ ].join(" ")
1821
+ }
1822
+ },
1823
+ {
1824
+ color: "warning",
1825
+ active: true,
1826
+ class: {
1827
+ item: [
1828
+ "text-orange-900 before:bg-orange-100",
1829
+ "dark:text-orange-200 dark:before:bg-orange-900"
1830
+ ].join(" "),
1831
+ itemLeadingIcon: [
1832
+ "text-orange-950 group-data-[state=open]:text-orange-950",
1833
+ "dark:text-orange-700"
1834
+ ].join(" ")
1835
+ }
1836
+ },
1837
+ {
1838
+ color: "primary",
1839
+ active: false,
1840
+ class: {
1841
+ item: [
1842
+ "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",
1843
+ "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"
1844
+ ].join(" "),
1845
+ itemLeadingIcon: [
1846
+ "text-blue-500 group-data-highlighted:text-blue-950 group-data-[state=open]:text-blue-950",
1847
+ "dark:text-blue-700 dark:group-data-highlighted:text-blue-150 dark:group-data-[state=open]:text-blue-150"
1848
+ ].join(" ")
1849
+ }
1850
+ },
1851
+ {
1852
+ color: "primary",
1853
+ active: true,
1854
+ class: {
1855
+ item: [
1856
+ "text-blue-900 before:bg-blue-100",
1857
+ "dark:text-blue-200 dark:before:bg-blue-900"
1858
+ ].join(" "),
1859
+ itemLeadingIcon: [
1860
+ "text-blue-950 group-data-[state=open]:text-blue-950",
1861
+ "dark:text-blue-700"
1862
+ ].join(" ")
1863
+ }
1864
+ },
1865
+ {
1866
+ color: "secondary",
1867
+ active: false,
1868
+ class: {
1869
+ item: [
1870
+ "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",
1871
+ "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"
1872
+ ].join(" "),
1873
+ itemLeadingIcon: [
1874
+ "text-cyan-500 group-data-highlighted:text-cyan-950 group-data-[state=open]:text-cyan-950",
1875
+ "dark:text-cyan-700 dark:group-data-highlighted:text-cyan-150 dark:group-data-[state=open]:text-cyan-150"
1876
+ ].join(" ")
1877
+ }
1878
+ },
1879
+ {
1880
+ color: "secondary",
1881
+ active: true,
1882
+ class: {
1883
+ item: [
1884
+ "text-cyan-900 before:bg-cyan-100/50",
1885
+ "dark:text-cyan-200 dark:before:bg-cyan-900"
1886
+ ].join(" "),
1887
+ itemLeadingIcon: [
1888
+ "text-cyan-950 group-data-[state=open]:text-cyan-950",
1889
+ "dark:text-cyan-700"
1890
+ ].join(" ")
1891
+ }
1892
+ },
1893
+ {
1894
+ color: "collab",
1895
+ active: false,
1896
+ class: {
1897
+ item: [
1898
+ "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",
1899
+ "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"
1900
+ ].join(" "),
1901
+ itemLeadingIcon: [
1902
+ "text-collab-500 group-data-highlighted:text-collab-950 group-data-[state=open]:text-collab-950",
1903
+ "dark:text-collab-700 dark:group-data-highlighted:text-collab-150 dark:group-data-[state=open]:text-collab-150"
1904
+ ].join(" ")
1905
+ }
1906
+ },
1907
+ {
1908
+ color: "collab",
1909
+ active: true,
1910
+ class: {
1911
+ item: [
1912
+ "text-collab-900 before:bg-collab-100",
1913
+ "dark:text-collab-200 dark:before:bg-collab-900"
1914
+ ].join(" "),
1915
+ itemLeadingIcon: [
1916
+ "text-collab-950 group-data-[state=open]:text-collab-950",
1917
+ "dark:text-collab-700"
1918
+ ].join(" ")
1919
+ }
1920
+ },
1921
+ {
1922
+ color: "ai",
1923
+ active: false,
1924
+ class: {
1925
+ item: [
1926
+ "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",
1927
+ "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"
1928
+ ].join(" "),
1929
+ itemLeadingIcon: [
1930
+ "text-ai-500 group-data-highlighted:text-ai-950 group-data-[state=open]:text-ai-950",
1931
+ "dark:text-ai-700 dark:group-data-highlighted:text-ai-150 dark:group-data-[state=open]:text-ai-150"
1932
+ ].join(" ")
1933
+ }
1934
+ },
1935
+ {
1936
+ color: "ai",
1937
+ active: true,
1938
+ class: {
1939
+ item: [
1940
+ "text-ai-900 before:bg-ai-100/50",
1941
+ "dark:text-ai-200 dark:before:bg-ai-900"
1942
+ ].join(" "),
1943
+ itemLeadingIcon: [
1944
+ "text-ai-950 group-data-[state=open]:text-ai-950",
1945
+ "dark:text-ai-700"
1946
+ ].join(" ")
1947
+ }
1948
+ }
1949
+ ],
1950
+ defaultVariants: {
1951
+ size: "md"
1952
+ }
1953
+ };
1954
+
1597
1955
  const form = {
1598
1956
  base: ""
1599
1957
  };
@@ -1638,6 +1996,7 @@ const input = {
1638
1996
  slots: {
1639
1997
  root: "relative inline-flex items-center w-full",
1640
1998
  base: [
1999
+ "px-3",
1641
2000
  "w-full py-0 border-0 focus:outline-none",
1642
2001
  "disabled:cursor-not-allowed disabled:bg-base-30/37 disabled:resize-none disabled:text-base-500",
1643
2002
  "dark:disabled:bg-base-900/37 dark:disabled:text-base-800",
@@ -1667,7 +2026,7 @@ const input = {
1667
2026
  ...buttonGroupVariantWithRoot,
1668
2027
  size: {
1669
2028
  xs: {
1670
- base: "px-3 h-xl2 gap-1",
2029
+ base: "h-xl2 gap-1",
1671
2030
  // 26px
1672
2031
  leading: "px-1",
1673
2032
  trailing: "px-1",
@@ -1676,7 +2035,7 @@ const input = {
1676
2035
  trailingIcon: "size-lg2"
1677
2036
  },
1678
2037
  sm: {
1679
- base: "px-3 h-8 gap-1.5",
2038
+ base: "h-8 gap-1.5",
1680
2039
  // 32px
1681
2040
  leading: "px-1.5",
1682
2041
  trailing: "px-1.5",
@@ -1685,7 +2044,7 @@ const input = {
1685
2044
  trailingIcon: "size-lg2"
1686
2045
  },
1687
2046
  md: {
1688
- base: "px-3 h-10 gap-1.5",
2047
+ base: "h-10 gap-1.5",
1689
2048
  // 40px
1690
2049
  leading: "px-2",
1691
2050
  trailing: "px-2",
@@ -1694,7 +2053,7 @@ const input = {
1694
2053
  trailingIcon: "size-[24px]"
1695
2054
  },
1696
2055
  lg: {
1697
- base: "px-3 h-12 gap-2",
2056
+ base: "h-12 gap-2",
1698
2057
  // 48px
1699
2058
  leading: "px-2",
1700
2059
  trailing: "px-2",
@@ -2088,6 +2447,248 @@ const input = {
2088
2447
  }
2089
2448
  };
2090
2449
 
2450
+ const defSize$1 = {
2451
+ label: "h-9 ps-2 pe-3 text-sm gap-2",
2452
+ item: "h-9 ps-3 pe-3 text-sm gap-2",
2453
+ itemLeadingIcon: "size-5",
2454
+ itemLeadingAvatarSize: "2xs",
2455
+ itemLeadingChip: "size-3 not-group-data-reka-collection-item:ps-2.5",
2456
+ itemLeadingChipSize: "sm",
2457
+ itemTrailingIcon: "size-3",
2458
+ trailingIcon: "size-lg2"
2459
+ };
2460
+ const inputMenu = () => {
2461
+ return defu.defuFn({
2462
+ slots: {
2463
+ base: [
2464
+ "py-0 w-full border-0 focus:outline-none",
2465
+ "disabled:cursor-not-allowed disabled:bg-base-30/37 disabled:resize-none disabled:text-base-500",
2466
+ "dark:disabled:bg-base-900/37 dark:disabled:text-base-800",
2467
+ "appearance-none transition duration-300 ease-linear",
2468
+ "ring ring-inset ring-base-300",
2469
+ "dark:ring-base-800",
2470
+ "text-base-master bg-white placeholder:text-base-400 hover:text-base-900 focus:text-base-900 active:text-base-900",
2471
+ "dark:text-base-150 dark:bg-transparent dark:placeholder:text-base-300 dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350",
2472
+ "font-b24-primary font-regular text-md leading-none",
2473
+ "align-middle",
2474
+ // 'text-ellipsis whitespace-nowrap',
2475
+ "transition-colors"
2476
+ ].join(" "),
2477
+ trailing: "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
2478
+ arrow: "fill-base-master/10 dark:fill-base-100/20",
2479
+ content: [
2480
+ "w-[var(--reka-popper-anchor-width)]",
2481
+ // 'max-h-60',
2482
+ // 'h-[var(--reka-popper-available-height)]',
2483
+ "bg-white dark:bg-base-dark",
2484
+ "shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
2485
+ "overflow-hidden",
2486
+ "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
2487
+ "pointer-events-auto"
2488
+ ].join(" "),
2489
+ viewport: "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
2490
+ group: "p-1 isolate",
2491
+ empty: "py-2 text-center text-sm text-base-500 dark:text-base-600",
2492
+ label: [
2493
+ "flex items-center",
2494
+ "font-semibold text-base-900 dark:text-base-200"
2495
+ ].join(" "),
2496
+ separator: "-mx-1 my-1 h-px bg-base-master/10 dark:bg-base-100/20",
2497
+ item: [
2498
+ "group relative w-full flex items-center select-none outline-none",
2499
+ "before:absolute before:z-[-1] before:inset-px before:rounded-2xs",
2500
+ "cursor-pointer",
2501
+ "data-disabled:cursor-not-allowed data-disabled:opacity-75",
2502
+ "text-base-master dark:text-base-150",
2503
+ "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",
2504
+ "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",
2505
+ "transition-colors before:transition-colors"
2506
+ ].join(" "),
2507
+ itemLeadingIcon: [
2508
+ "shrink-0 text-base-500 dark:text-base-700",
2509
+ "group-data-highlighted:text-base-master dark:group-data-highlighted:text-base-150",
2510
+ "group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150",
2511
+ "transition-colors"
2512
+ ].join(" "),
2513
+ itemLeadingAvatar: "shrink-0",
2514
+ itemLeadingAvatarSize: "",
2515
+ itemLeadingChip: "shrink-0",
2516
+ itemLeadingChipSize: "",
2517
+ itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
2518
+ itemTrailingIcon: "shrink-0",
2519
+ itemLabel: "truncate",
2520
+ tagsItem: [
2521
+ "px-2 rounded-2xs font-b24-secondary font-normal leading-normal",
2522
+ "inline-flex items-center gap-1",
2523
+ "ring ring-inset data-disabled:cursor-not-allowed data-disabled:opacity-75",
2524
+ "text-blue-700 bg-blue-250 ring-blue-250",
2525
+ "dark:text-blue-700 dark:bg-blue-300 dark:ring-blue-300"
2526
+ // 'ring-base-200 bg-red-100 text-base-master',
2527
+ // 'dark:ring-base-800 dark:bg-base-900 dark:text-base-150'
2528
+ ].join(" "),
2529
+ tagsItemText: "truncate",
2530
+ tagsItemDelete: [
2531
+ "cursor-pointer hover:rounded-full",
2532
+ "inline-flex items-center rounded-md disabled:pointer-events-none",
2533
+ "text-base-500 hover:text-base-master hover:bg-blue-300",
2534
+ "dark:text-base-500 dark:text-base-700 dark:hover:text-base-master dark:hover:bg-blue-400",
2535
+ "transition-colors"
2536
+ ].join(" "),
2537
+ tagsItemDeleteIcon: "",
2538
+ tagsInput: ""
2539
+ },
2540
+ variants: {
2541
+ addNew: {
2542
+ true: {
2543
+ group: "p-0 isolate -m-px",
2544
+ item: [
2545
+ "before:rounded-none",
2546
+ "text-base-master dark:text-base-150 before:bg-blue-200 dark:before:bg-blue-800",
2547
+ "data-highlighted:text-base-900 dark:data-highlighted:text-base-200 data-highlighted:before:bg-blue-200 dark:data-highlighted:before:bg-blue-800",
2548
+ "data-[state=checked]:text-base-900 dark:data-[state=checked]:text-base-200 data-[state=checked]:before:bg-blue-200 dark:data-[state=checked]:before:bg-blue-800"
2549
+ ].join(" "),
2550
+ itemLabel: "flex flex-row flex-nowrap items-center justify-start gap-2",
2551
+ itemLeadingIcon: [
2552
+ "size-5 rounded-full",
2553
+ "text-white dark:text-base-150 bg-blue-500 dark:bg-blue-600",
2554
+ "group-data-highlighted:text-white dark:group-data-highlighted:text-base-150 group-data-highlighted:bg-blue-500 dark:group-data-highlighted:bg-blue-600",
2555
+ "group-data-[state=checked]:text-white dark:group-data-[state=checked]:text-base-150 group-data-[state=checked]:bg-blue-500 dark:group-data-[state=checked]:bg-blue-600"
2556
+ ].join(" ")
2557
+ }
2558
+ },
2559
+ multiple: {
2560
+ true: {
2561
+ root: "flex-wrap",
2562
+ base: [
2563
+ "py-1.5 ps-1.5 pe-[39px]"
2564
+ ].join(" "),
2565
+ tagsInput: [
2566
+ "w-2/5 border-0 bg-transparent ps-1.5 pe-3 py-0",
2567
+ "placeholder:text-base-400 dark:placeholder:text-base-300",
2568
+ "focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
2569
+ "focus:ring-0 focus-visible:ring-0"
2570
+ ].join(" ")
2571
+ },
2572
+ false: {
2573
+ base: [
2574
+ "px-3",
2575
+ "placeholder:text-base-400 dark:placeholder:text-base-300",
2576
+ "focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
2577
+ ].join(" ")
2578
+ }
2579
+ },
2580
+ size: {
2581
+ xs: defu.defuFn(
2582
+ defSize$1,
2583
+ {
2584
+ tagsItem: [
2585
+ "text-5xs",
2586
+ "h-[14px] gap-0.5"
2587
+ ].join(" "),
2588
+ tagsItemDeleteIcon: "size-sm"
2589
+ }
2590
+ ),
2591
+ sm: defu.defuFn(
2592
+ defSize$1,
2593
+ {
2594
+ tagsItem: [
2595
+ "text-5xs",
2596
+ "h-[14px] gap-0.5"
2597
+ ].join(" "),
2598
+ tagsItemDeleteIcon: "size-3"
2599
+ }
2600
+ ),
2601
+ md: defu.defuFn(
2602
+ defSize$1,
2603
+ {
2604
+ tagsItem: [
2605
+ "text-md",
2606
+ "h-[31px] gap-1"
2607
+ ].join(" "),
2608
+ tagsItemDeleteIcon: "size-3.5"
2609
+ }
2610
+ ),
2611
+ lg: defu.defuFn(
2612
+ defSize$1,
2613
+ {
2614
+ tagsItem: [
2615
+ "text-md",
2616
+ "h-[31px] gap-1"
2617
+ ].join(" "),
2618
+ tagsItemDeleteIcon: "size-3.5"
2619
+ }
2620
+ )
2621
+ }
2622
+ },
2623
+ compoundVariants: [
2624
+ // region Color ////
2625
+ {
2626
+ color: "default",
2627
+ multiple: true,
2628
+ class: "has-focus-visible:ring-1 has-focus-visible:ring-base-900 dark:has-focus-visible:ring-base-700"
2629
+ },
2630
+ {
2631
+ color: "danger",
2632
+ multiple: true,
2633
+ class: "has-focus-visible:ring-1 has-focus-visible:ring-red-500 dark:has-focus-visible:ring-red-600"
2634
+ },
2635
+ {
2636
+ color: "success",
2637
+ multiple: true,
2638
+ class: "has-focus-visible:ring-1 has-focus-visible:ring-green-500 dark:has-focus-visible:ring-green-600"
2639
+ },
2640
+ {
2641
+ color: "warning",
2642
+ multiple: true,
2643
+ class: "has-focus-visible:ring-1 has-focus-visible:ring-orange-500 dark:has-focus-visible:ring-orange-600"
2644
+ },
2645
+ {
2646
+ color: "primary",
2647
+ multiple: true,
2648
+ class: "has-focus-visible:ring-1 has-focus-visible:ring-blue-500 dark:has-focus-visible:ring-blue-600"
2649
+ },
2650
+ {
2651
+ color: "secondary",
2652
+ multiple: true,
2653
+ class: "has-focus-visible:ring-1 has-focus-visible:ring-cyan-500 dark:has-focus-visible:ring-cyan-600"
2654
+ },
2655
+ {
2656
+ color: "collab",
2657
+ multiple: true,
2658
+ class: "has-focus-visible:ring-1 has-focus-visible:ring-collab-500 dark:has-focus-visible:ring-collab-600"
2659
+ },
2660
+ {
2661
+ color: "ai",
2662
+ multiple: true,
2663
+ class: "has-focus-visible:ring-1 has-focus-visible:ring-ai-500 dark:has-focus-visible:ring-ai-600"
2664
+ },
2665
+ // endregion ////
2666
+ // region Size ////
2667
+ {
2668
+ size: "xs",
2669
+ multiple: true,
2670
+ class: "min-h-xl2 h-auto"
2671
+ },
2672
+ {
2673
+ size: "sm",
2674
+ multiple: true,
2675
+ class: "min-h-8 h-auto"
2676
+ },
2677
+ {
2678
+ size: "md",
2679
+ multiple: true,
2680
+ class: "min-h-10 h-auto"
2681
+ },
2682
+ {
2683
+ size: "lg",
2684
+ multiple: true,
2685
+ class: "min-h-12 h-auto"
2686
+ }
2687
+ // endregion ////
2688
+ ]
2689
+ }, input);
2690
+ };
2691
+
2091
2692
  const kbd = {
2092
2693
  base: "inline-flex items-center justify-center px-1 rounded-2xs font-normal font-b24-system-mono",
2093
2694
  variants: {
@@ -2709,6 +3310,7 @@ const select = () => {
2709
3310
  slots: {
2710
3311
  root: () => "relative inline-flex items-center w-full",
2711
3312
  base: () => [
3313
+ "px-3",
2712
3314
  "relative inline-flex items-center group",
2713
3315
  "py-0 border-0 focus:outline-none",
2714
3316
  "cursor-pointer disabled:cursor-not-allowed",
@@ -2729,7 +3331,7 @@ const select = () => {
2729
3331
  arrow: "fill-base-master/10 dark:fill-base-100/20",
2730
3332
  content: [
2731
3333
  "w-[var(--reka-popper-anchor-width)]",
2732
- "max-h-60",
3334
+ // 'max-h-60',
2733
3335
  // 'h-[var(--reka-popper-available-height)]',
2734
3336
  "bg-white dark:bg-base-dark",
2735
3337
  "shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
@@ -3717,7 +4319,7 @@ const toast = {
3717
4319
  "text-sm font-normal",
3718
4320
  "text-white dark:text-base-150"
3719
4321
  ].join(" "),
3720
- wrapper: "w-0 flex-1 flex flex-col gap-1",
4322
+ wrapper: "w-0 flex-1 flex flex-col",
3721
4323
  title: "font-medium",
3722
4324
  description: "",
3723
4325
  icon: "shrink-0 size-6",
@@ -3725,7 +4327,7 @@ const toast = {
3725
4327
  avatarSize: "xl",
3726
4328
  actions: "flex gap-1.5 shrink-0",
3727
4329
  progress: "absolute inset-x-0 bottom-0 h-1 z-[-1]",
3728
- close: "p-0.5 text-base-350 dark:text-base-350 hover:text-base-400 dark:hover:text-base-400"
4330
+ close: "p-0 text-base-350 dark:text-base-350 hover:text-base-400 dark:hover:text-base-400"
3729
4331
  },
3730
4332
  variants: {
3731
4333
  color: {
@@ -3770,14 +4372,19 @@ const toast = {
3770
4372
  progress: "bg-ai-500 dark:bg-ai-500"
3771
4373
  }
3772
4374
  },
3773
- multiline: {
3774
- true: {
3775
- root: "items-start",
3776
- actions: "items-start mt-1"
3777
- },
3778
- false: {
4375
+ orientation: {
4376
+ horizontal: {
3779
4377
  root: "items-center",
3780
4378
  actions: "items-center"
4379
+ },
4380
+ vertical: {
4381
+ root: "items-start",
4382
+ actions: "items-start mt-1"
4383
+ }
4384
+ },
4385
+ title: {
4386
+ true: {
4387
+ description: "mt-1"
3781
4388
  }
3782
4389
  }
3783
4390
  },
@@ -3893,9 +4500,11 @@ const theme = {
3893
4500
  chip: chip,
3894
4501
  container: container,
3895
4502
  countdown: countdown,
4503
+ dropdownMenu: dropdownMenu,
3896
4504
  form: form,
3897
4505
  formField: formField,
3898
4506
  input: input,
4507
+ inputMenu: inputMenu,
3899
4508
  kbd: kbd,
3900
4509
  link: link,
3901
4510
  progress: progress,
@@ -3920,13 +4529,14 @@ const themeProse = {
3920
4529
  const descriptionList = {
3921
4530
  slots: {
3922
4531
  root: "w-full shrink-0",
3923
- // ????
3924
4532
  legend: "font-semibold text-black dark:text-base-150",
3925
4533
  text: "text-base-500 dark:text-base-400",
3926
4534
  container: "grid grid-cols-1 sm:grid-cols-[min(50%,theme(spacing.80))_auto]",
3927
4535
  labelWrapper: [
3928
- "col-start-1 border-t border-base-950/5 text-base-500 first:border-none sm:border-t sm:border-base-950/5 dark:border-white/5 dark:text-base-400 sm:dark:border-white/5",
3929
- "flex flex-nowrap flex-row items-center justify-start gap-1.5"
4536
+ "col-start-1 border-t first:border-none sm:border-t",
4537
+ "flex flex-nowrap flex-row items-center justify-start gap-1.5",
4538
+ "border-base-950/5 text-base-500 sm:border-base-950/5",
4539
+ "dark:border-white/5 dark:text-base-400 sm:dark:border-white/5"
3930
4540
  ].join(" "),
3931
4541
  icon: "shrink-0 size-6 text-base-500 dark:text-base-400",
3932
4542
  avatar: "shrink-0",
@@ -3962,14 +4572,19 @@ const descriptionList = {
3962
4572
  footer: "mt-4 p-4"
3963
4573
  }
3964
4574
  },
3965
- multiline: {
3966
- true: {
3967
- descriptionWrapper: "",
3968
- actions: "items-start mt-2.5"
3969
- },
3970
- false: {
4575
+ orientation: {
4576
+ horizontal: {
3971
4577
  descriptionWrapper: "w-full flex flex-row items-center justify-between gap-4",
3972
4578
  actions: "items-center"
4579
+ },
4580
+ vertical: {
4581
+ descriptionWrapper: "",
4582
+ actions: "items-start mt-2.5"
4583
+ }
4584
+ },
4585
+ title: {
4586
+ true: {
4587
+ description: "mt-1"
3973
4588
  }
3974
4589
  }
3975
4590
  },
@@ -4073,6 +4688,13 @@ function getTemplates(options) {
4073
4688
  }
4074
4689
  });
4075
4690
  }
4691
+ templates.push({
4692
+ filename: "b24ui.css",
4693
+ write: true,
4694
+ getContents: () => `@theme default {
4695
+ }
4696
+ `
4697
+ });
4076
4698
  templates.push({
4077
4699
  filename: "b24ui/index.ts",
4078
4700
  write: true,