@yuno-payments/dashboard-design-system 2.7.9 → 2.7.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/dashboard-design-system",
3
- "version": "2.7.9",
3
+ "version": "2.7.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "2.7.8",
3
- "generatedAt": "2026-04-16T13:50:01.415Z",
2
+ "version": "2.7.9",
3
+ "generatedAt": "2026-04-16T14:56:48.105Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "AccessDeniedAlert",
@@ -1443,6 +1443,91 @@
1443
1443
  ],
1444
1444
  "figmaComponent": "https://www.figma.com/design/fcHm3yuz9KiqdRHM7oWneG/shadcn-ui-kit-for-Figma---Pro-Blocks---August-2025--Yuno-?node-id=473-1978&m=dev"
1445
1445
  },
1446
+ {
1447
+ "name": "AnimatedEmpty",
1448
+ "category": "molecules",
1449
+ "importPath": "@yuno-payments/dashboard-design-system",
1450
+ "description": "Onboarding empty-state for tables. Shows an animated illustration on the left and marketing-style text plus a primary CTA on the right. Meant to be rendered the first time a user lands on an empty table; once the user interacts with the CTA (or a `Not now` secondary action), consumers persist dismissal in `userSettings.viewedTutorials` and stop rendering this component.",
1451
+ "whenToUse": [
1452
+ "The table has zero data and no filters applied",
1453
+ "The user has not dismissed the onboarding for this table+account",
1454
+ "Each table is independent; dismissing one doesn't affect the others"
1455
+ ],
1456
+ "whenNotToUse": [],
1457
+ "props": [
1458
+ {
1459
+ "name": "variant",
1460
+ "type": "\"payments\" | \"chargebacks\" | \"installments\" | \"paymentLinks\" | \"recipients\" | \"subscriptions\" | \"rules\" | \"blocklists\" | \"allowlists\"",
1461
+ "required": true,
1462
+ "description": "Illustration variant (9 available bundled SVGs)"
1463
+ },
1464
+ {
1465
+ "name": "tagline",
1466
+ "type": "unknown",
1467
+ "required": true,
1468
+ "description": "Optional small uppercase label above the title"
1469
+ },
1470
+ {
1471
+ "name": "title",
1472
+ "type": "unknown",
1473
+ "required": true,
1474
+ "description": ""
1475
+ },
1476
+ {
1477
+ "name": "description",
1478
+ "type": "unknown",
1479
+ "required": true,
1480
+ "description": ""
1481
+ },
1482
+ {
1483
+ "name": "cta",
1484
+ "type": "unknown",
1485
+ "required": true,
1486
+ "description": ""
1487
+ },
1488
+ {
1489
+ "name": "onDismiss",
1490
+ "type": "unknown",
1491
+ "required": true,
1492
+ "description": ""
1493
+ },
1494
+ {
1495
+ "name": "dismissLabel",
1496
+ "type": "unknown",
1497
+ "required": true,
1498
+ "description": ""
1499
+ },
1500
+ {
1501
+ "name": "illustration",
1502
+ "type": "unknown",
1503
+ "required": true,
1504
+ "description": ""
1505
+ }
1506
+ ],
1507
+ "examples": [
1508
+ {
1509
+ "name": "Allowlists",
1510
+ "code": "<AnimatedEmpty variant=\"allowlists\" tagline=\"Welcome\" title=\"Your allowlist is empty\" description=\"Add values to automatically approve matching transactions.\" cta={{\"label\":\"Add entry\"}} dismissLabel=\"Maybe later\" />"
1511
+ },
1512
+ {
1513
+ "name": "Blocklists",
1514
+ "code": "<AnimatedEmpty variant=\"blocklists\" tagline=\"Welcome\" title=\"Your blocklist is empty\" description=\"Add values to automatically decline matching transactions.\" cta={{\"label\":\"Add entry\"}} dismissLabel=\"Maybe later\" />"
1515
+ },
1516
+ {
1517
+ "name": "Chargebacks",
1518
+ "code": "<AnimatedEmpty variant=\"chargebacks\" tagline=\"Welcome\" title=\"No chargebacks yet\" description=\"When a customer disputes a payment, you will see it here so you can respond in one click.\" cta={{\"label\":\"Learn more\"}} dismissLabel=\"Maybe later\" />"
1519
+ },
1520
+ {
1521
+ "name": "Installments",
1522
+ "code": "<AnimatedEmpty variant=\"installments\" tagline=\"Welcome\" title=\"Offer installment plans\" description=\"Grow conversion by letting customers split their payments.\" cta={{\"label\":\"Configure\"}} dismissLabel=\"Maybe later\" />"
1523
+ },
1524
+ {
1525
+ "name": "PaymentLinks",
1526
+ "code": "<AnimatedEmpty variant=\"paymentLinks\" tagline=\"Welcome\" title=\"Share a payment link in seconds\" description=\"Generate shareable links and get paid without building a checkout.\" cta={{\"label\":\"Create link\"}} dismissLabel=\"Maybe later\" />"
1527
+ }
1528
+ ],
1529
+ "figmaComponent": "https://www.figma.com/design/"
1530
+ },
1446
1531
  {
1447
1532
  "name": "Breadcrumb",
1448
1533
  "category": "molecules",
@@ -1889,91 +1974,6 @@
1889
1974
  }
1890
1975
  ]
1891
1976
  },
1892
- {
1893
- "name": "EmptyStateOnboarding",
1894
- "category": "molecules",
1895
- "importPath": "@yuno-payments/dashboard-design-system",
1896
- "description": "Onboarding empty-state for tables. Shows an animated illustration on the left and marketing-style text plus a primary CTA on the right. Meant to be rendered the first time a user lands on an empty table; once the user interacts with the CTA (or a `Not now` secondary action), consumers persist dismissal in `userSettings.viewedTutorials` and stop rendering this component.",
1897
- "whenToUse": [
1898
- "The table has zero data and no filters applied",
1899
- "The user has not dismissed the onboarding for this table+account",
1900
- "Each table is independent; dismissing one doesn't affect the others"
1901
- ],
1902
- "whenNotToUse": [],
1903
- "props": [
1904
- {
1905
- "name": "variant",
1906
- "type": "\"payments\" | \"chargebacks\" | \"installments\" | \"paymentLinks\" | \"recipients\" | \"subscriptions\" | \"rules\" | \"blocklists\" | \"allowlists\"",
1907
- "required": true,
1908
- "description": "Illustration variant (9 available bundled SVGs)"
1909
- },
1910
- {
1911
- "name": "tagline",
1912
- "type": "unknown",
1913
- "required": true,
1914
- "description": "Optional small uppercase label above the title"
1915
- },
1916
- {
1917
- "name": "title",
1918
- "type": "unknown",
1919
- "required": true,
1920
- "description": ""
1921
- },
1922
- {
1923
- "name": "description",
1924
- "type": "unknown",
1925
- "required": true,
1926
- "description": ""
1927
- },
1928
- {
1929
- "name": "cta",
1930
- "type": "unknown",
1931
- "required": true,
1932
- "description": ""
1933
- },
1934
- {
1935
- "name": "onDismiss",
1936
- "type": "unknown",
1937
- "required": true,
1938
- "description": ""
1939
- },
1940
- {
1941
- "name": "dismissLabel",
1942
- "type": "unknown",
1943
- "required": true,
1944
- "description": ""
1945
- },
1946
- {
1947
- "name": "illustration",
1948
- "type": "unknown",
1949
- "required": true,
1950
- "description": ""
1951
- }
1952
- ],
1953
- "examples": [
1954
- {
1955
- "name": "Allowlists",
1956
- "code": "<EmptyStateOnboarding variant=\"allowlists\" tagline=\"Welcome\" title=\"Your allowlist is empty\" description=\"Add values to automatically approve matching transactions.\" cta={{\"label\":\"Add entry\"}} dismissLabel=\"Maybe later\" />"
1957
- },
1958
- {
1959
- "name": "Blocklists",
1960
- "code": "<EmptyStateOnboarding variant=\"blocklists\" tagline=\"Welcome\" title=\"Your blocklist is empty\" description=\"Add values to automatically decline matching transactions.\" cta={{\"label\":\"Add entry\"}} dismissLabel=\"Maybe later\" />"
1961
- },
1962
- {
1963
- "name": "Chargebacks",
1964
- "code": "<EmptyStateOnboarding variant=\"chargebacks\" tagline=\"Welcome\" title=\"No chargebacks yet\" description=\"When a customer disputes a payment, you will see it here so you can respond in one click.\" cta={{\"label\":\"Learn more\"}} dismissLabel=\"Maybe later\" />"
1965
- },
1966
- {
1967
- "name": "Installments",
1968
- "code": "<EmptyStateOnboarding variant=\"installments\" tagline=\"Welcome\" title=\"Offer installment plans\" description=\"Grow conversion by letting customers split their payments.\" cta={{\"label\":\"Configure\"}} dismissLabel=\"Maybe later\" />"
1969
- },
1970
- {
1971
- "name": "PaymentLinks",
1972
- "code": "<EmptyStateOnboarding variant=\"paymentLinks\" tagline=\"Welcome\" title=\"Share a payment link in seconds\" description=\"Generate shareable links and get paid without building a checkout.\" cta={{\"label\":\"Create link\"}} dismissLabel=\"Maybe later\" />"
1973
- }
1974
- ],
1975
- "figmaComponent": "https://www.figma.com/design/"
1976
- },
1977
1977
  {
1978
1978
  "name": "Field",
1979
1979
  "category": "molecules",
@@ -1,4 +0,0 @@
1
- export { EmptyStateOnboarding } from './empty-state-onboarding';
2
- export { AnimatedEmpty, type AnimatedEmptyProps } from './animated-empty';
3
- export { ILLUSTRATIONS, ASSETS_BASE_URL } from './illustrations';
4
- export type { EmptyStateOnboardingProps, EmptyStateVariant, EmptyStateAction, } from './types';
@@ -1,18 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type EmptyStateVariant = "payments" | "chargebacks" | "installments" | "paymentLinks" | "recipients" | "subscriptions" | "rules" | "blocklists" | "allowlists";
3
- export interface EmptyStateAction {
4
- label: string;
5
- onClick: () => void;
6
- disabled?: boolean;
7
- }
8
- export interface EmptyStateOnboardingProps {
9
- variant: EmptyStateVariant;
10
- tagline?: string;
11
- title: string;
12
- description: string;
13
- cta: EmptyStateAction;
14
- onDismiss?: () => void;
15
- dismissLabel?: string;
16
- illustration?: ReactNode;
17
- className?: string;
18
- }