@yuno-payments/dashboard-design-system 2.8.8 → 2.8.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.8.8",
3
+ "version": "2.8.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.8.8",
3
- "generatedAt": "2026-05-11T14:01:44.904Z",
2
+ "version": "2.8.10",
3
+ "generatedAt": "2026-05-11T15:16:12.364Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "AccessDeniedAlert",
@@ -1986,7 +1986,7 @@
1986
1986
  "name": "items",
1987
1987
  "type": "DataTableIconTextCellItem[]",
1988
1988
  "required": true,
1989
- "description": "Array of items with name and optional icon URL"
1989
+ "description": "Array of items with name and optional icon (src URL or Phosphor iconName)"
1990
1990
  },
1991
1991
  {
1992
1992
  "name": "maxVisible",
@@ -2012,11 +2012,11 @@
2012
2012
  "examples": [
2013
2013
  {
2014
2014
  "name": "Default",
2015
- "code": "<DataTableCells items={[{\"name\":\"Stripe\",\"icon\":\"https://via.placeholder.com/16\"}]} />"
2015
+ "code": "<DataTableCells items={[{\"name\":\"Stripe\",\"src\":\"https://via.placeholder.com/16\"}]} />"
2016
2016
  },
2017
2017
  {
2018
2018
  "name": "DuplicateItems",
2019
- "code": "<DataTableCells items={[{\"name\":\"Stripe\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"Stripe\",\"icon\":\"https://via.placeholder.com/16\"},{\"name\":\"PayU\"}]} />"
2019
+ "code": "<DataTableCells items={[{\"name\":\"Stripe\",\"src\":\"https://via.placeholder.com/16\"},{\"name\":\"Stripe\",\"src\":\"https://via.placeholder.com/16\"},{\"name\":\"PayU\"}]} />"
2020
2020
  },
2021
2021
  {
2022
2022
  "name": "Empty",
@@ -2024,11 +2024,11 @@
2024
2024
  },
2025
2025
  {
2026
2026
  "name": "ManyItems",
2027
- "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} />"
2027
+ "code": "<DataTableCells items={[{\"name\":\"Visa\",\"src\":\"https://via.placeholder.com/16\"},{\"name\":\"Mastercard\",\"src\":\"https://via.placeholder.com/16\"},{\"name\":\"Amex\",\"src\":\"https://via.placeholder.com/16\"},{\"name\":\"PayPal\",\"src\":\"https://via.placeholder.com/16\"},{\"name\":\"Apple Pay\",\"src\":\"https://via.placeholder.com/16\"}]} maxVisible={2} />"
2028
2028
  },
2029
2029
  {
2030
2030
  "name": "MultipleItems",
2031
- "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\"}]} />"
2031
+ "code": "<DataTableCells items={[{\"name\":\"Stripe\",\"src\":\"https://via.placeholder.com/16\"},{\"name\":\"PayU\",\"src\":\"https://via.placeholder.com/16\"},{\"name\":\"Adyen\",\"src\":\"https://via.placeholder.com/16\"}]} />"
2032
2032
  }
2033
2033
  ]
2034
2034
  },
@@ -2297,6 +2297,73 @@
2297
2297
  }
2298
2298
  ]
2299
2299
  },
2300
+ {
2301
+ "name": "DataTableCells",
2302
+ "category": "molecules",
2303
+ "importPath": "@yuno-payments/dashboard-design-system",
2304
+ "description": "A table cell that renders a single `Badge` with a pre-computed variant. Use it when the caller already knows the visual variant — for example: ternary results, range-based status colors, or one-off labelled badges.",
2305
+ "whenToUse": [
2306
+ "Status badges with ad-hoc logic: when variant is decided by a ternary or",
2307
+ "Type badges: single labelled tag with a fixed variant."
2308
+ ],
2309
+ "whenNotToUse": [],
2310
+ "props": [
2311
+ {
2312
+ "name": "value",
2313
+ "type": "string | null | undefined",
2314
+ "required": true,
2315
+ "description": "Label rendered inside the badge"
2316
+ },
2317
+ {
2318
+ "name": "variant",
2319
+ "type": "BadgeVariant",
2320
+ "default": "\"info\"",
2321
+ "required": false,
2322
+ "description": "Badge visual variant"
2323
+ },
2324
+ {
2325
+ "name": "startIcon",
2326
+ "type": "IconName",
2327
+ "required": true,
2328
+ "description": "Optional icon at the start of the badge"
2329
+ },
2330
+ {
2331
+ "name": "emptyState",
2332
+ "type": "ReactNode",
2333
+ "default": "\"-\"",
2334
+ "required": false,
2335
+ "description": "Content to render when value is empty"
2336
+ },
2337
+ {
2338
+ "name": "className",
2339
+ "type": "string",
2340
+ "required": true,
2341
+ "description": "Additional CSS classes"
2342
+ }
2343
+ ],
2344
+ "examples": [
2345
+ {
2346
+ "name": "Default",
2347
+ "code": "<DataTableCells value=\"Active\" variant=\"success\" />"
2348
+ },
2349
+ {
2350
+ "name": "Empty",
2351
+ "code": "<DataTableCells />"
2352
+ },
2353
+ {
2354
+ "name": "Error",
2355
+ "code": "<DataTableCells value=\"Declined\" variant=\"error\" startIcon=\"XCircle\" />"
2356
+ },
2357
+ {
2358
+ "name": "Secondary",
2359
+ "code": "<DataTableCells value=\"Card\" variant=\"secondary\" />"
2360
+ },
2361
+ {
2362
+ "name": "WithIcon",
2363
+ "code": "<DataTableCells value=\"Approved\" variant=\"success\" startIcon=\"CheckCircle\" />"
2364
+ }
2365
+ ]
2366
+ },
2300
2367
  {
2301
2368
  "name": "DataTableCells",
2302
2369
  "category": "molecules",