@bitrix24/b24ui-nuxt 0.2.1 → 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.
@@ -1599,6 +1599,359 @@ const countdown = {
1599
1599
  }
1600
1600
  };
1601
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
+
1602
1955
  const form = {
1603
1956
  base: ""
1604
1957
  };
@@ -4147,6 +4500,7 @@ const theme = {
4147
4500
  chip: chip,
4148
4501
  container: container,
4149
4502
  countdown: countdown,
4503
+ dropdownMenu: dropdownMenu,
4150
4504
  form: form,
4151
4505
  formField: formField,
4152
4506
  input: input,
@@ -4334,6 +4688,13 @@ function getTemplates(options) {
4334
4688
  }
4335
4689
  });
4336
4690
  }
4691
+ templates.push({
4692
+ filename: "b24ui.css",
4693
+ write: true,
4694
+ getContents: () => `@theme default {
4695
+ }
4696
+ `
4697
+ });
4337
4698
  templates.push({
4338
4699
  filename: "b24ui/index.ts",
4339
4700
  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.DgnM0VWe.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.CYvh5VlN.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.DgnM0VWe.cjs');
10
10
  require('scule');
11
11
  require('@nuxt/kit');
12
12
  require('tinyglobby');
package/dist/vite.mjs CHANGED
@@ -4,7 +4,7 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/b24ui-nuxt.CrjojW8t.mjs';
7
+ import './shared/b24ui-nuxt.CYvh5VlN.mjs';
8
8
  import 'scule';
9
9
  import '@nuxt/kit';
10
10
  import 'tinyglobby';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrix24/b24ui-nuxt",
3
3
  "description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -45,7 +45,8 @@
45
45
  }
46
46
  },
47
47
  "imports": {
48
- "#build/b24ui/*": "./.nuxt/b24ui/*.ts"
48
+ "#build/b24ui/*": "./.nuxt/b24ui/*.ts",
49
+ "#build/b24ui.css": "./.nuxt/b24ui.css"
49
50
  },
50
51
  "bin": {
51
52
  "bitrix24-ui": "./cli/index.mjs"
@@ -57,6 +58,7 @@
57
58
  "README.md",
58
59
  "LICENSE",
59
60
  ".nuxt/b24ui",
61
+ ".nuxt/b24ui.css",
60
62
  "dist",
61
63
  "cli",
62
64
  "vue-plugin.d.ts"
@@ -69,8 +71,8 @@
69
71
  "@nuxt/kit": "^3.15.4",
70
72
  "@nuxt/schema": "^3.15.4",
71
73
  "@nuxtjs/color-mode": "^3.5.2",
72
- "@tailwindcss/postcss": "^4.0.3",
73
- "@tailwindcss/vite": "^4.0.3",
74
+ "@tailwindcss/postcss": "^4.0.4",
75
+ "@tailwindcss/vite": "^4.0.4",
74
76
  "@tanstack/vue-table": "^8.20.5",
75
77
  "@unhead/vue": "^1.11.18",
76
78
  "@vueuse/core": "^12.5.0",
@@ -94,7 +96,7 @@
94
96
  "reka-ui": "1.0.0-alpha.9",
95
97
  "scule": "^1.3.0",
96
98
  "tailwind-variants": "^0.3.1",
97
- "tailwindcss": "^4.0.3",
99
+ "tailwindcss": "^4.0.4",
98
100
  "tinyglobby": "^0.2.10",
99
101
  "unplugin": "^2.1.2",
100
102
  "unplugin-auto-import": "^19.0.0",