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