@yuno-payments/dashboard-design-system 2.7.13 → 2.8.0
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/dist/components/atoms/icon/icon-list.d.ts +2 -0
- package/dist/components/atoms/icon/icon-list.js +19 -15
- package/dist/components/molecules/data-table-cells/data-table-amount-cell.d.ts +30 -0
- package/dist/components/molecules/data-table-cells/data-table-amount-cell.js +27 -0
- package/dist/components/molecules/data-table-cells/data-table-copy-cell.d.ts +41 -0
- package/dist/components/molecules/data-table-cells/data-table-copy-cell.js +83 -0
- package/dist/components/molecules/data-table-cells/data-table-country-cell.d.ts +31 -0
- package/dist/components/molecules/data-table-cells/data-table-country-cell.js +37 -0
- package/dist/components/molecules/data-table-cells/data-table-date-cell.d.ts +29 -0
- package/dist/components/molecules/data-table-cells/data-table-date-cell.js +32 -0
- package/dist/components/molecules/data-table-cells/data-table-icon-text-cell.d.ts +21 -0
- package/dist/components/molecules/data-table-cells/data-table-icon-text-cell.js +75 -0
- package/dist/components/molecules/data-table-cells/data-table-percentage-cell.d.ts +28 -0
- package/dist/components/molecules/data-table-cells/data-table-percentage-cell.js +27 -0
- package/dist/components/molecules/data-table-cells/data-table-status-cell.d.ts +44 -0
- package/dist/components/molecules/data-table-cells/data-table-status-cell.js +24 -0
- package/dist/components/molecules/data-table-cells/data-table-tags-cell.d.ts +16 -0
- package/dist/components/molecules/data-table-cells/data-table-tags-cell.js +39 -0
- package/dist/components/molecules/data-table-cells/data-table-text-cell.d.ts +53 -0
- package/dist/components/molecules/data-table-cells/data-table-text-cell.js +18 -0
- package/dist/components/molecules/data-table-cells/index.d.ts +9 -0
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/dashboard-design-system.css +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +42 -0
- package/dist/hooks/use-copy-to-clipboard.js +26 -0
- package/dist/index.css +1 -1
- package/dist/index.esm.min.js +8056 -7668
- package/dist/index.js +210 -190
- package/dist/index.umd.min.js +32 -32
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CalendarPlus.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/FilePlus.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CalendarPlus.es.js +36 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/FilePlus.es.js +30 -0
- package/package.json +1 -1
- package/registry/components-registry.json +593 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
3
|
-
"generatedAt": "2026-
|
|
2
|
+
"version": "2.8.0",
|
|
3
|
+
"generatedAt": "2026-05-04T14:52:32.726Z",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "AccessDeniedAlert",
|
|
@@ -1697,6 +1697,597 @@
|
|
|
1697
1697
|
],
|
|
1698
1698
|
"figmaComponent": "https://www.figma.com/design/fcHm3yuz9KiqdRHM7oWneG/shadcn-ui-kit-for-Figma---Pro-Blocks---August-2025--Yuno-?node-id=302-8455&m=dev"
|
|
1699
1699
|
},
|
|
1700
|
+
{
|
|
1701
|
+
"name": "DataTableCells",
|
|
1702
|
+
"category": "molecules",
|
|
1703
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
1704
|
+
"description": "The DataTableTextCell is the foundational cell component for displaying text in a DataTable. It renders text with automatic truncation and an optional tooltip showing the full value. Other DataTable cell components (DateCell, CopyCell, etc.) compose this internally.",
|
|
1705
|
+
"whenToUse": [
|
|
1706
|
+
"Any text column: Display text values that may overflow the column width",
|
|
1707
|
+
"With transforms: Apply formatting functions like `cleanText` or `countryNameFromCode`",
|
|
1708
|
+
"As a building block: Base for more specialized cell components"
|
|
1709
|
+
],
|
|
1710
|
+
"whenNotToUse": [],
|
|
1711
|
+
"props": [
|
|
1712
|
+
{
|
|
1713
|
+
"name": "value",
|
|
1714
|
+
"type": "string | null | undefined",
|
|
1715
|
+
"required": true,
|
|
1716
|
+
"description": "The text value to display"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "formatFn",
|
|
1720
|
+
"type": "(value: string) => string",
|
|
1721
|
+
"required": true,
|
|
1722
|
+
"description": "Optional transform function applied to the value"
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"name": "tooltip",
|
|
1726
|
+
"type": "string | false",
|
|
1727
|
+
"default": "formatted value",
|
|
1728
|
+
"required": false,
|
|
1729
|
+
"description": "Custom tooltip text, or false to disable. Defaults to the formatted value."
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "emptyState",
|
|
1733
|
+
"type": "ReactNode",
|
|
1734
|
+
"default": "null",
|
|
1735
|
+
"required": false,
|
|
1736
|
+
"description": "Content to render when value is falsy"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"name": "className",
|
|
1740
|
+
"type": "string",
|
|
1741
|
+
"required": true,
|
|
1742
|
+
"description": "Additional CSS classes"
|
|
1743
|
+
}
|
|
1744
|
+
],
|
|
1745
|
+
"examples": [
|
|
1746
|
+
{
|
|
1747
|
+
"name": "Default",
|
|
1748
|
+
"code": "<DataTableCells value=\"pay_abc123def456ghi789\" />"
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
"name": "EmptyDefault",
|
|
1752
|
+
"code": "<DataTableCells />"
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"name": "EmptyWithDash",
|
|
1756
|
+
"code": "<DataTableCells emptyState=\"-\" />"
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "EmptyWithDoubleDash",
|
|
1760
|
+
"code": "<DataTableCells emptyState=\"--\" />"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"name": "LongText",
|
|
1764
|
+
"code": "<DataTableCells value=\"This is a very long text that should be truncated and show a tooltip on hover\" />"
|
|
1765
|
+
}
|
|
1766
|
+
]
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"name": "DataTableCells",
|
|
1770
|
+
"category": "molecules",
|
|
1771
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
1772
|
+
"description": "A table cell for displaying a list of tags as Badges with overflow handling. Shows the first N tags and a \"+X\" badge with tooltip for the rest.",
|
|
1773
|
+
"whenToUse": [
|
|
1774
|
+
"Webhook triggers: Display event trigger names",
|
|
1775
|
+
"Tag lists: Any column with multiple categorical values",
|
|
1776
|
+
"Conditions: Display condition rules in routing tables"
|
|
1777
|
+
],
|
|
1778
|
+
"whenNotToUse": [],
|
|
1779
|
+
"props": [
|
|
1780
|
+
{
|
|
1781
|
+
"name": "tags",
|
|
1782
|
+
"type": "string[]",
|
|
1783
|
+
"required": true,
|
|
1784
|
+
"description": "Array of tag labels"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"name": "maxVisible",
|
|
1788
|
+
"type": "number",
|
|
1789
|
+
"default": "2",
|
|
1790
|
+
"required": false,
|
|
1791
|
+
"description": "Max visible tags before overflow"
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"name": "variant",
|
|
1795
|
+
"type": "string",
|
|
1796
|
+
"default": "\"outline\"",
|
|
1797
|
+
"required": false,
|
|
1798
|
+
"description": "Badge variant"
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
"name": "className",
|
|
1802
|
+
"type": "string",
|
|
1803
|
+
"required": true,
|
|
1804
|
+
"description": "Additional CSS classes"
|
|
1805
|
+
}
|
|
1806
|
+
],
|
|
1807
|
+
"examples": [
|
|
1808
|
+
{
|
|
1809
|
+
"name": "Default",
|
|
1810
|
+
"code": "<DataTableCells tags={[\"payment.created\",\"payment.approved\"]} />"
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"name": "Empty",
|
|
1814
|
+
"code": "<DataTableCells tags={[]} />"
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"name": "InfoVariant",
|
|
1818
|
+
"code": "<DataTableCells tags={[\"Active\",\"Published\"]} variant=\"info\" />"
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"name": "ManyTags",
|
|
1822
|
+
"code": "<DataTableCells tags={[\"event.type.1\",\"event.type.2\",\"event.type.3\",\"event.type.4\",\"event.type.5\",\"event.type.6\",\"event.type.7\",\"event.type.8\",\"event.type.9\",\"event.type.10\"]} maxVisible={3} />"
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
"name": "RTL",
|
|
1826
|
+
"code": "<DataTableCells tags={[\"payment.created\",\"payment.approved\",\"payment.declined\",\"payment.refunded\",\"payment.cancelled\"]} />"
|
|
1827
|
+
}
|
|
1828
|
+
]
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"name": "DataTableCells",
|
|
1832
|
+
"category": "molecules",
|
|
1833
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
1834
|
+
"description": "A table cell that displays a status as a colored Badge with an icon. Accepts a status map for consistent status-to-visual mapping across the application.",
|
|
1835
|
+
"whenToUse": [
|
|
1836
|
+
"Payment statuses: APPROVED, DECLINED, PENDING, etc.",
|
|
1837
|
+
"Transaction states: Any enum-like status field",
|
|
1838
|
+
"Monitor/audit states: Active, inactive, error states"
|
|
1839
|
+
],
|
|
1840
|
+
"whenNotToUse": [],
|
|
1841
|
+
"props": [
|
|
1842
|
+
{
|
|
1843
|
+
"name": "status",
|
|
1844
|
+
"type": "string",
|
|
1845
|
+
"required": true,
|
|
1846
|
+
"description": "The raw status key"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"name": "statusMap",
|
|
1850
|
+
"type": "Record<string, StatusMapEntry>",
|
|
1851
|
+
"required": true,
|
|
1852
|
+
"description": "Map of status keys to display configuration"
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
"name": "formatLabel",
|
|
1856
|
+
"type": "(status: string) => string",
|
|
1857
|
+
"required": true,
|
|
1858
|
+
"description": "Fallback label formatter"
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
"name": "className",
|
|
1862
|
+
"type": "string",
|
|
1863
|
+
"required": true,
|
|
1864
|
+
"description": "Additional CSS classes"
|
|
1865
|
+
}
|
|
1866
|
+
],
|
|
1867
|
+
"examples": [
|
|
1868
|
+
{
|
|
1869
|
+
"name": "Approved",
|
|
1870
|
+
"code": "<DataTableCells status=\"APPROVED\" statusMap={{\"APPROVED\":{\"label\":\"Approved\",\"variant\":\"success\",\"icon\":\"CheckCircle\"},\"DECLINED\":{\"label\":\"Declined\",\"variant\":\"error\",\"icon\":\"XCircle\"},\"PENDING\":{\"label\":\"Pending\",\"variant\":\"warning\",\"icon\":\"Clock\"},\"CANCELLED\":{\"label\":\"Cancelled\",\"variant\":\"alert\",\"icon\":\"Prohibit\"}}} />"
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"name": "Cancelled",
|
|
1874
|
+
"code": "<DataTableCells status=\"CANCELLED\" statusMap={{\"APPROVED\":{\"label\":\"Approved\",\"variant\":\"success\",\"icon\":\"CheckCircle\"},\"DECLINED\":{\"label\":\"Declined\",\"variant\":\"error\",\"icon\":\"XCircle\"},\"PENDING\":{\"label\":\"Pending\",\"variant\":\"warning\",\"icon\":\"Clock\"},\"CANCELLED\":{\"label\":\"Cancelled\",\"variant\":\"alert\",\"icon\":\"Prohibit\"}}} />"
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
"name": "Declined",
|
|
1878
|
+
"code": "<DataTableCells status=\"DECLINED\" statusMap={{\"APPROVED\":{\"label\":\"Approved\",\"variant\":\"success\",\"icon\":\"CheckCircle\"},\"DECLINED\":{\"label\":\"Declined\",\"variant\":\"error\",\"icon\":\"XCircle\"},\"PENDING\":{\"label\":\"Pending\",\"variant\":\"warning\",\"icon\":\"Clock\"},\"CANCELLED\":{\"label\":\"Cancelled\",\"variant\":\"alert\",\"icon\":\"Prohibit\"}}} />"
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
"name": "Empty",
|
|
1882
|
+
"code": "<DataTableCells status=\"\" />"
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"name": "Pending",
|
|
1886
|
+
"code": "<DataTableCells status=\"PENDING\" statusMap={{\"APPROVED\":{\"label\":\"Approved\",\"variant\":\"success\",\"icon\":\"CheckCircle\"},\"DECLINED\":{\"label\":\"Declined\",\"variant\":\"error\",\"icon\":\"XCircle\"},\"PENDING\":{\"label\":\"Pending\",\"variant\":\"warning\",\"icon\":\"Clock\"},\"CANCELLED\":{\"label\":\"Cancelled\",\"variant\":\"alert\",\"icon\":\"Prohibit\"}}} />"
|
|
1887
|
+
}
|
|
1888
|
+
]
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"name": "DataTableCells",
|
|
1892
|
+
"category": "molecules",
|
|
1893
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
1894
|
+
"description": "A table cell for displaying percentage values with optional progress bar visualization. Accepts values in 0-1 decimal range.",
|
|
1895
|
+
"whenToUse": [
|
|
1896
|
+
"Approval rates: Display payment approval percentages",
|
|
1897
|
+
"Conversion rates: Show conversion metrics",
|
|
1898
|
+
"Any rate metric: Decline rates, retry rates, etc."
|
|
1899
|
+
],
|
|
1900
|
+
"whenNotToUse": [],
|
|
1901
|
+
"props": [
|
|
1902
|
+
{
|
|
1903
|
+
"name": "value",
|
|
1904
|
+
"type": "number | null | undefined",
|
|
1905
|
+
"required": true,
|
|
1906
|
+
"description": "Decimal value (0-1 range)"
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
"name": "decimals",
|
|
1910
|
+
"type": "number",
|
|
1911
|
+
"default": "2",
|
|
1912
|
+
"required": false,
|
|
1913
|
+
"description": "Decimal places"
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"name": "showProgressBar",
|
|
1917
|
+
"type": "boolean",
|
|
1918
|
+
"default": "false",
|
|
1919
|
+
"required": false,
|
|
1920
|
+
"description": "Show progress bar"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"name": "className",
|
|
1924
|
+
"type": "string",
|
|
1925
|
+
"required": true,
|
|
1926
|
+
"description": "Additional CSS classes"
|
|
1927
|
+
}
|
|
1928
|
+
],
|
|
1929
|
+
"examples": [
|
|
1930
|
+
{
|
|
1931
|
+
"name": "Default",
|
|
1932
|
+
"code": "<DataTableCells value={0.8534} />"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"name": "FullWidth",
|
|
1936
|
+
"code": "<DataTableCells value={1} showProgressBar />"
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"name": "HighRate",
|
|
1940
|
+
"code": "<DataTableCells value={0.95} showProgressBar />"
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"name": "LowRate",
|
|
1944
|
+
"code": "<DataTableCells value={0.12} showProgressBar />"
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"name": "NoDecimals",
|
|
1948
|
+
"code": "<DataTableCells value={0.856} decimals={0} />"
|
|
1949
|
+
}
|
|
1950
|
+
]
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
"name": "DataTableCells",
|
|
1954
|
+
"category": "molecules",
|
|
1955
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
1956
|
+
"description": "A table cell for displaying items with icons and text, such as payment providers or payment methods. Shows the first item with its icon and name, plus a \"+N\" badge for additional items. Automatically deduplicates by name.",
|
|
1957
|
+
"whenToUse": [
|
|
1958
|
+
"Provider columns: Show payment providers with their logos",
|
|
1959
|
+
"Payment methods: Display card brands, wallets, etc.",
|
|
1960
|
+
"Any icon + label list: Items with remote icons that may overflow"
|
|
1961
|
+
],
|
|
1962
|
+
"whenNotToUse": [],
|
|
1963
|
+
"props": [
|
|
1964
|
+
{
|
|
1965
|
+
"name": "items",
|
|
1966
|
+
"type": "DataTableIconTextCellItem[]",
|
|
1967
|
+
"required": true,
|
|
1968
|
+
"description": "Array of items with name and optional icon URL"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"name": "maxVisible",
|
|
1972
|
+
"type": "number",
|
|
1973
|
+
"default": "1",
|
|
1974
|
+
"required": false,
|
|
1975
|
+
"description": "Max visible items"
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"name": "className",
|
|
1979
|
+
"type": "string",
|
|
1980
|
+
"required": true,
|
|
1981
|
+
"description": "Additional CSS classes"
|
|
1982
|
+
}
|
|
1983
|
+
],
|
|
1984
|
+
"examples": [
|
|
1985
|
+
{
|
|
1986
|
+
"name": "Default",
|
|
1987
|
+
"code": "<DataTableCells items={[{\"name\":\"Stripe\",\"icon\":\"https://via.placeholder.com/16\"}]} />"
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"name": "DuplicateItems",
|
|
1991
|
+
"code": "<DataTableCells items={[{\"name\":\"Stripe\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"Stripe\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"PayU\"}]} />"
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"name": "Empty",
|
|
1995
|
+
"code": "<DataTableCells items={[]} />"
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
"name": "ManyItems",
|
|
1999
|
+
"code": "<DataTableCells items={[{\"name\":\"Visa\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"Mastercard\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"Amex\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"PayPal\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"Apple Pay\",\"icon\":\"https://via.placeholder.com/16\"}]} maxVisible={2} />"
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
"name": "MultipleItems",
|
|
2003
|
+
"code": "<DataTableCells items={[{\"name\":\"Stripe\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"PayU\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"Adyen\",\"icon\":\"https://via.placeholder.com/16\"}]} />"
|
|
2004
|
+
}
|
|
2005
|
+
]
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
"name": "DataTableCells",
|
|
2009
|
+
"category": "molecules",
|
|
2010
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
2011
|
+
"description": "A table cell for displaying formatted dates with truncation and tooltip. Accepts a custom formatting function or uses a sensible default (Intl.DateTimeFormat with date + time).",
|
|
2012
|
+
"whenToUse": [
|
|
2013
|
+
"Created/updated dates: Any timestamp column in a DataTable",
|
|
2014
|
+
"Date columns: Transaction dates, modification dates, etc."
|
|
2015
|
+
],
|
|
2016
|
+
"whenNotToUse": [],
|
|
2017
|
+
"props": [
|
|
2018
|
+
{
|
|
2019
|
+
"name": "value",
|
|
2020
|
+
"type": "string | Date | null | undefined",
|
|
2021
|
+
"required": true,
|
|
2022
|
+
"description": "ISO date string or Date object"
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
"name": "formatFn",
|
|
2026
|
+
"type": "(date: string | Date) => string",
|
|
2027
|
+
"required": true,
|
|
2028
|
+
"description": "Custom date formatter"
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"name": "emptyState",
|
|
2032
|
+
"type": "ReactNode",
|
|
2033
|
+
"default": "null",
|
|
2034
|
+
"required": false,
|
|
2035
|
+
"description": "Content when value is falsy"
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
"name": "className",
|
|
2039
|
+
"type": "string",
|
|
2040
|
+
"required": true,
|
|
2041
|
+
"description": "Additional CSS classes"
|
|
2042
|
+
}
|
|
2043
|
+
],
|
|
2044
|
+
"examples": [
|
|
2045
|
+
{
|
|
2046
|
+
"name": "Default",
|
|
2047
|
+
"code": "<DataTableCells value=\"2024-03-15T14:30:00Z\" />"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"name": "NullDefault",
|
|
2051
|
+
"code": "<DataTableCells />"
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"name": "NullWithDash",
|
|
2055
|
+
"code": "<DataTableCells emptyState=\"-\" />"
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
"name": "RTL",
|
|
2059
|
+
"code": "<DataTableCells value=\"2024-03-15T14:30:00Z\" />"
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"name": "WithCustomFormat",
|
|
2063
|
+
"code": "<DataTableCells value=\"2024-03-15T14:30:00Z\" />"
|
|
2064
|
+
}
|
|
2065
|
+
]
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"name": "DataTableCells",
|
|
2069
|
+
"category": "molecules",
|
|
2070
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
2071
|
+
"description": "A table cell for displaying country codes with flag emojis. Supports showing just the code, or the full country name via a custom resolver function.",
|
|
2072
|
+
"whenToUse": [
|
|
2073
|
+
"Country columns: Any column displaying ISO 3166-1 alpha-2 country codes",
|
|
2074
|
+
"Payment origin: Show the country of a transaction or payout"
|
|
2075
|
+
],
|
|
2076
|
+
"whenNotToUse": [],
|
|
2077
|
+
"props": [
|
|
2078
|
+
{
|
|
2079
|
+
"name": "code",
|
|
2080
|
+
"type": "string | null | undefined",
|
|
2081
|
+
"required": true,
|
|
2082
|
+
"description": "ISO 3166-1 alpha-2 country code"
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
"name": "showFlag",
|
|
2086
|
+
"type": "boolean",
|
|
2087
|
+
"default": "true",
|
|
2088
|
+
"required": false,
|
|
2089
|
+
"description": "Show flag emoji"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"name": "showName",
|
|
2093
|
+
"type": "boolean",
|
|
2094
|
+
"default": "false",
|
|
2095
|
+
"required": false,
|
|
2096
|
+
"description": "Show country name instead of code"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"name": "getCountryName",
|
|
2100
|
+
"type": "(code: string) => string",
|
|
2101
|
+
"required": true,
|
|
2102
|
+
"description": "Custom country name resolver"
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"name": "className",
|
|
2106
|
+
"type": "string",
|
|
2107
|
+
"required": true,
|
|
2108
|
+
"description": "Additional CSS classes"
|
|
2109
|
+
}
|
|
2110
|
+
],
|
|
2111
|
+
"examples": [
|
|
2112
|
+
{
|
|
2113
|
+
"name": "Default",
|
|
2114
|
+
"code": "<DataTableCells code=\"US\" />"
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
"name": "Empty",
|
|
2118
|
+
"code": "<DataTableCells />"
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"name": "Mexico",
|
|
2122
|
+
"code": "<DataTableCells code=\"MX\" />"
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
"name": "Peru",
|
|
2126
|
+
"code": "<DataTableCells code=\"PE\" showName />"
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
"name": "RTL",
|
|
2130
|
+
"code": "<DataTableCells code=\"US\" />"
|
|
2131
|
+
}
|
|
2132
|
+
]
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "DataTableCells",
|
|
2136
|
+
"category": "molecules",
|
|
2137
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
2138
|
+
"description": "A table cell that displays a text value with a copy-to-clipboard button. The copy button appears on hover. Supports optional navigation links and start icons (e.g., test credential indicators).",
|
|
2139
|
+
"whenToUse": [
|
|
2140
|
+
"ID columns: Payment IDs, order IDs, transaction IDs",
|
|
2141
|
+
"Copyable values: Any value users frequently need to copy",
|
|
2142
|
+
"Linked IDs: IDs that also navigate to a detail page"
|
|
2143
|
+
],
|
|
2144
|
+
"whenNotToUse": [],
|
|
2145
|
+
"props": [
|
|
2146
|
+
{
|
|
2147
|
+
"name": "value",
|
|
2148
|
+
"type": "string",
|
|
2149
|
+
"required": true,
|
|
2150
|
+
"description": "The text value to display and copy"
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
"name": "linkTo",
|
|
2154
|
+
"type": "string",
|
|
2155
|
+
"required": true,
|
|
2156
|
+
"description": "Optional navigation link"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"name": "startIcon",
|
|
2160
|
+
"type": "IconName",
|
|
2161
|
+
"required": true,
|
|
2162
|
+
"description": "Optional icon before the text"
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
"name": "startIconTooltip",
|
|
2166
|
+
"type": "string",
|
|
2167
|
+
"required": true,
|
|
2168
|
+
"description": "Tooltip for the start icon"
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
"name": "copyTooltip",
|
|
2172
|
+
"type": "string",
|
|
2173
|
+
"default": "\"Copy\"",
|
|
2174
|
+
"required": false,
|
|
2175
|
+
"description": "Tooltip for the copy button"
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
"name": "className",
|
|
2179
|
+
"type": "string",
|
|
2180
|
+
"required": true,
|
|
2181
|
+
"description": "Additional CSS classes"
|
|
2182
|
+
}
|
|
2183
|
+
],
|
|
2184
|
+
"examples": [
|
|
2185
|
+
{
|
|
2186
|
+
"name": "Default",
|
|
2187
|
+
"code": "<DataTableCells value=\"pay_abc123def456ghi789\" />"
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
"name": "Empty",
|
|
2191
|
+
"code": "<DataTableCells value=\"\" />"
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
"name": "RTL",
|
|
2195
|
+
"code": "<DataTableCells value=\"pay_abc123def456ghi789\" />"
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
"name": "ShortValue",
|
|
2199
|
+
"code": "<DataTableCells value=\"ABC123\" />"
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
"name": "WithLink",
|
|
2203
|
+
"code": "<DataTableCells value=\"pay_abc123def456ghi789\" linkTo=\"/payments/details/pay_abc123def456ghi789\" />"
|
|
2204
|
+
}
|
|
2205
|
+
]
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"name": "DataTableCells",
|
|
2209
|
+
"category": "molecules",
|
|
2210
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
2211
|
+
"description": "This showcase demonstrates all 9 DataTable cell components working together in a realistic payments table. Each column uses a different cell type to render its data.",
|
|
2212
|
+
"whenToUse": [],
|
|
2213
|
+
"whenNotToUse": [],
|
|
2214
|
+
"props": [],
|
|
2215
|
+
"examples": []
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
"name": "DataTableCells",
|
|
2219
|
+
"category": "molecules",
|
|
2220
|
+
"importPath": "@yuno-payments/dashboard-design-system",
|
|
2221
|
+
"description": "A table cell for displaying formatted currency amounts. Wraps the CurrencyField atom with sensible defaults for table usage.",
|
|
2222
|
+
"whenToUse": [
|
|
2223
|
+
"Payment amounts: Display transaction, payout, or refund amounts",
|
|
2224
|
+
"Financial columns: Any column showing monetary values"
|
|
2225
|
+
],
|
|
2226
|
+
"whenNotToUse": [],
|
|
2227
|
+
"props": [
|
|
2228
|
+
{
|
|
2229
|
+
"name": "value",
|
|
2230
|
+
"type": "number | null | undefined",
|
|
2231
|
+
"required": true,
|
|
2232
|
+
"description": "The numeric amount"
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
"name": "currency",
|
|
2236
|
+
"type": "string",
|
|
2237
|
+
"default": "\"USD\"",
|
|
2238
|
+
"required": false,
|
|
2239
|
+
"description": "ISO 4217 currency code"
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
"name": "locales",
|
|
2243
|
+
"type": "string | string[]",
|
|
2244
|
+
"required": true,
|
|
2245
|
+
"description": "Override locale for formatting"
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
"name": "size",
|
|
2249
|
+
"type": "\"xs\" | \"sm\" | \"base\"",
|
|
2250
|
+
"default": "\"xs\"",
|
|
2251
|
+
"required": false,
|
|
2252
|
+
"description": "Size variant"
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
"name": "showCurrencyCode",
|
|
2256
|
+
"type": "boolean",
|
|
2257
|
+
"default": "true",
|
|
2258
|
+
"required": false,
|
|
2259
|
+
"description": "Show currency code"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"name": "className",
|
|
2263
|
+
"type": "string",
|
|
2264
|
+
"required": true,
|
|
2265
|
+
"description": "Additional CSS classes"
|
|
2266
|
+
}
|
|
2267
|
+
],
|
|
2268
|
+
"examples": [
|
|
2269
|
+
{
|
|
2270
|
+
"name": "Default",
|
|
2271
|
+
"code": "<DataTableCells value={1234.56} currency=\"USD\" />"
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
"name": "LargeAmount",
|
|
2275
|
+
"code": "<DataTableCells value={1234567.89} currency=\"USD\" />"
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
"name": "NullValue",
|
|
2279
|
+
"code": "<DataTableCells currency=\"USD\" />"
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"name": "RTL",
|
|
2283
|
+
"code": "<DataTableCells value={1234.56} currency=\"USD\" />"
|
|
2284
|
+
},
|
|
2285
|
+
{
|
|
2286
|
+
"name": "WithBRL",
|
|
2287
|
+
"code": "<DataTableCells value={9999.99} currency=\"BRL\" locales=\"pt-BR\" />"
|
|
2288
|
+
}
|
|
2289
|
+
]
|
|
2290
|
+
},
|
|
1700
2291
|
{
|
|
1701
2292
|
"name": "DataTableListCell",
|
|
1702
2293
|
"category": "molecules",
|