dash-ui-kit 1.0.2 → 1.0.5

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.
@@ -24,5 +24,5 @@ export { Dialog, type DialogProps } from './components/dialog';
24
24
  export { Tabs, type TabsProps, type TabItem } from './components/tabs';
25
25
  export type { TimeDeltaFormat } from './utils/datetime';
26
26
  export { ThemeProvider, useTheme, type Theme, type ThemeContextValue, type ThemeProviderProps } from './contexts/ThemeContext';
27
- export { ArrowIcon, CopyIcon, SuccessIcon, ErrorIcon, QueuedIcon, PooledIcon, BroadcastedIcon, CalendarIcon, EyeOpenIcon, EyeClosedIcon, CheckIcon, KeyIcon, ProtectedMessageIcon, SmartphoneIcon, CrossIcon, WalletIcon, PlusIcon, FilterIcon, EditIcon, DeleteIcon, ChevronIcon, BurgerMenuIcon, KebabMenuIcon, CircleProcessIcon, CreditsIcon, WebIcon, ChainSmallIcon, SettingsIcon, ShieldSmallIcon, QuestionMessageIcon } from './components/icons';
27
+ export { ArrowIcon, CopyIcon, SuccessIcon, ErrorIcon, QueuedIcon, PooledIcon, BroadcastedIcon, CalendarIcon, EyeOpenIcon, EyeClosedIcon, CheckIcon, KeyIcon, ProtectedMessageIcon, SmartphoneIcon, CrossIcon, WalletIcon, PlusIcon, FilterIcon, EditIcon, DeleteIcon, ChevronIcon, BurgerMenuIcon, KebabMenuIcon, CircleProcessIcon, CreditsIcon, WebIcon, ChainSmallIcon, SettingsIcon, ShieldSmallIcon, QuestionMessageIcon, CheckmarkIcon } from './components/icons';
28
28
  export type { IconProps } from './components/icons';
@@ -1761,6 +1761,25 @@ const QuestionMessageIcon = ({
1761
1761
  fill: 'currentColor'
1762
1762
  })
1763
1763
  });
1764
+ const CheckmarkIcon = ({
1765
+ color = '#1CC400',
1766
+ size = 27,
1767
+ className = '',
1768
+ onClick
1769
+ }) => jsx("svg", {
1770
+ width: size,
1771
+ height: size * 21 / 27,
1772
+ viewBox: '0 0 27 21',
1773
+ fill: 'none',
1774
+ xmlns: 'http://www.w3.org/2000/svg',
1775
+ className: className,
1776
+ onClick: onClick,
1777
+ color: color,
1778
+ children: jsx("path", {
1779
+ d: 'M25.235 0.341283C25.5909 -0.0640896 26.2219 -0.115686 26.6442 0.225963C27.0664 0.567654 27.1201 1.17343 26.7643 1.57886L10.0094 20.6667L0.253533 10.1585C-0.11396 9.76268 -0.0776687 9.15652 0.334587 8.8037C0.746855 8.45088 1.37822 8.48572 1.74572 8.88152L9.96642 17.7358L25.235 0.341283Z',
1780
+ fill: 'currentColor'
1781
+ })
1782
+ });
1764
1783
 
1765
1784
  const accordionRootStyles = cva(`
1766
1785
  w-full
@@ -1769,12 +1788,17 @@ const accordionRootStyles = cva(`
1769
1788
  `, {
1770
1789
  variants: {
1771
1790
  theme: {
1772
- light: ' bg-dash-primary-dark-blue/[0.03]',
1791
+ light: 'bg-dash-primary-dark-blue/[0.05]',
1773
1792
  dark: 'bg-gray-800/20'
1793
+ },
1794
+ border: {
1795
+ true: 'ring-1 ring-dash-primary-dark-blue/10',
1796
+ false: ''
1774
1797
  }
1775
1798
  },
1776
1799
  defaultVariants: {
1777
- theme: 'light'
1800
+ theme: 'light',
1801
+ border: false
1778
1802
  }
1779
1803
  });
1780
1804
  const accordionItemStyles = cva(`
@@ -1783,14 +1807,13 @@ const accordionItemStyles = cva(`
1783
1807
  `);
1784
1808
  const accordionTriggerStyles = cva(`
1785
1809
  w-full
1786
- px-8
1787
- py-6
1810
+ p-[0.875rem]
1788
1811
  flex
1789
1812
  items-center
1790
1813
  justify-between
1791
- font-manrope
1814
+ font-dash-main
1792
1815
  font-medium
1793
- text-1
1816
+ text-[0.875rem]
1794
1817
  leading-[1.366]
1795
1818
  text-dash-primary-dark-blue
1796
1819
  bg-transparent
@@ -1819,10 +1842,27 @@ const accordionContentStyles = cva(`
1819
1842
  data-[state=closed]:h-0
1820
1843
  `);
1821
1844
  const accordionContentInnerStyles = cva(`
1822
- px-8
1823
- pb-6
1845
+ p-[0.875rem]
1824
1846
  space-y-[0.625rem]
1825
1847
  `);
1848
+ const separatorStyles = cva(`
1849
+ mx-[0.875rem]
1850
+ h-px
1851
+ bg-dash-primary-dark-blue/10
1852
+ transition-opacity
1853
+ duration-300
1854
+ ease-in-out
1855
+ `, {
1856
+ variants: {
1857
+ theme: {
1858
+ light: 'bg-dash-primary-dark-blue/10',
1859
+ dark: 'bg-white/10'
1860
+ }
1861
+ },
1862
+ defaultVariants: {
1863
+ theme: 'light'
1864
+ }
1865
+ });
1826
1866
  const chevronStyles = cva(`
1827
1867
  w-4
1828
1868
  h-4
@@ -1842,14 +1882,18 @@ const Accordion = ({
1842
1882
  defaultOpen = false,
1843
1883
  open,
1844
1884
  onOpenChange,
1845
- className = ''
1885
+ className = '',
1886
+ rightElement,
1887
+ showSeparator = false,
1888
+ border = false
1846
1889
  }) => {
1847
1890
  const {
1848
1891
  theme
1849
1892
  } = useTheme();
1850
1893
  const isControlled = open !== undefined;
1851
1894
  const rootClasses = accordionRootStyles({
1852
- theme
1895
+ theme,
1896
+ border
1853
1897
  }) + (className ? ` ${className}` : '');
1854
1898
  return jsx(Root2$3, {
1855
1899
  type: 'single',
@@ -1864,17 +1908,26 @@ const Accordion = ({
1864
1908
  },
1865
1909
  children: jsxs(Item$2, {
1866
1910
  value: 'item-1',
1867
- className: `AccordionItem ${accordionItemStyles()}`,
1911
+ className: `AccordionItem ${accordionItemStyles()} group`,
1868
1912
  children: [jsxs(Trigger2, {
1869
1913
  className: `${accordionTriggerStyles({
1870
1914
  theme
1871
- })} group`,
1915
+ })}`,
1872
1916
  children: [jsx("div", {
1873
1917
  className: 'w-full text-left',
1874
1918
  children: title
1875
- }), jsx(ChevronIcon, {
1876
- className: chevronStyles()
1919
+ }), jsxs("div", {
1920
+ className: 'flex items-center gap-3',
1921
+ children: [rightElement && jsx("div", {
1922
+ children: rightElement
1923
+ }), jsx(ChevronIcon, {
1924
+ className: chevronStyles()
1925
+ })]
1877
1926
  })]
1927
+ }), showSeparator && jsx("div", {
1928
+ className: `${separatorStyles({
1929
+ theme
1930
+ })} group-data-[state=closed]:opacity-0 group-data-[state=open]:opacity-100`
1878
1931
  }), jsx(Content2$1, {
1879
1932
  forceMount: true,
1880
1933
  className: accordionContentStyles(),
@@ -11096,5 +11149,5 @@ const Tabs = ({
11096
11149
  });
11097
11150
  };
11098
11151
 
11099
- export { Accordion, ArrowIcon, Avatar, BigNumber, BroadcastedIcon, BurgerMenuIcon, Button, CalendarIcon, ChainSmallIcon, CheckIcon, ChevronIcon, CircleProcessIcon, CopyButton, CopyIcon, CreditsIcon, CrossIcon, DashLogo, DateBlock, DeleteIcon, DashDialog as Dialog, EditIcon, ErrorIcon, EyeClosedIcon, EyeOpenIcon, FilterIcon, Heading, Identifier, Input, KebabMenuIcon, KeyIcon, List$1 as List, NotActive, OverlayMenu, OverlaySelect, PlusIcon, PooledIcon, ProgressStepBar, ProtectedMessageIcon, QuestionMessageIcon, QueuedIcon, Select, SettingsIcon, ShieldSmallIcon, SmartphoneIcon, SuccessIcon, Switch, Tabs, Text, Textarea, ThemeProvider, TimeDelta, TransactionStatusIcon, ValueCard, WalletIcon, WebIcon, useTheme };
11152
+ export { Accordion, ArrowIcon, Avatar, BigNumber, BroadcastedIcon, BurgerMenuIcon, Button, CalendarIcon, ChainSmallIcon, CheckIcon, CheckmarkIcon, ChevronIcon, CircleProcessIcon, CopyButton, CopyIcon, CreditsIcon, CrossIcon, DashLogo, DateBlock, DeleteIcon, DashDialog as Dialog, EditIcon, ErrorIcon, EyeClosedIcon, EyeOpenIcon, FilterIcon, Heading, Identifier, Input, KebabMenuIcon, KeyIcon, List$1 as List, NotActive, OverlayMenu, OverlaySelect, PlusIcon, PooledIcon, ProgressStepBar, ProtectedMessageIcon, QuestionMessageIcon, QueuedIcon, Select, SettingsIcon, ShieldSmallIcon, SmartphoneIcon, SuccessIcon, Switch, Tabs, Text, Textarea, ThemeProvider, TimeDelta, TransactionStatusIcon, ValueCard, WalletIcon, WebIcon, useTheme };
11100
11153
  //# sourceMappingURL=index.esm.js.map