@yuno-payments/dashboard-design-system 2.8.5 → 2.8.8
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-cell-wrapper.d.ts +32 -0
- package/dist/components/molecules/data-table-cells/data-table-cell-wrapper.js +7 -0
- package/dist/components/molecules/data-table-cells/index.d.ts +1 -0
- package/dist/index.esm.min.js +5260 -5195
- package/dist/index.js +189 -187
- package/dist/index.umd.min.js +15 -15
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Certificate.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Stack.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Certificate.es.js +36 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Stack.es.js +30 -0
- package/package.json +1 -1
- package/registry/components-registry.json +43 -2
|
@@ -222,6 +222,8 @@ declare const IconList: {
|
|
|
222
222
|
Tag: import('@phosphor-icons/react').Icon;
|
|
223
223
|
FilePlus: import('@phosphor-icons/react').Icon;
|
|
224
224
|
CalendarPlus: import('@phosphor-icons/react').Icon;
|
|
225
|
+
Certificate: import('@phosphor-icons/react').Icon;
|
|
226
|
+
Stack: import('@phosphor-icons/react').Icon;
|
|
225
227
|
};
|
|
226
228
|
export type IconName = Exclude<keyof typeof IconList, "Icon" | "IconProps" | "IconWeight" | "IconContext">;
|
|
227
229
|
export { IconList };
|
|
@@ -19,8 +19,8 @@ import { FileArchiveIcon as S } from "../../../node_modules/@phosphor-icons/reac
|
|
|
19
19
|
import { FilePdfIcon as w } from "../../../node_modules/@phosphor-icons/react/dist/csr/FilePdf.es.js";
|
|
20
20
|
import { BoundingBoxIcon as g } from "../../../node_modules/@phosphor-icons/react/dist/csr/BoundingBox.es.js";
|
|
21
21
|
import { TreeStructureIcon as P } from "../../../node_modules/@phosphor-icons/react/dist/csr/TreeStructure.es.js";
|
|
22
|
-
import { ShoppingCartIcon as
|
|
23
|
-
import { CodeIcon as
|
|
22
|
+
import { ShoppingCartIcon as k } from "../../../node_modules/@phosphor-icons/react/dist/csr/ShoppingCart.es.js";
|
|
23
|
+
import { CodeIcon as d } from "../../../node_modules/@phosphor-icons/react/dist/csr/Code.es.js";
|
|
24
24
|
import { FileTxtIcon as A } from "../../../node_modules/@phosphor-icons/react/dist/csr/FileTxt.es.js";
|
|
25
25
|
import { FileZipIcon as D } from "../../../node_modules/@phosphor-icons/react/dist/csr/FileZip.es.js";
|
|
26
26
|
import { TerminalWindowIcon as L } from "../../../node_modules/@phosphor-icons/react/dist/csr/TerminalWindow.es.js";
|
|
@@ -127,8 +127,8 @@ import { ShieldWarningIcon as Sr } from "../../../node_modules/@phosphor-icons/r
|
|
|
127
127
|
import { UserSwitchIcon as wr } from "../../../node_modules/@phosphor-icons/react/dist/csr/UserSwitch.es.js";
|
|
128
128
|
import { LightningIcon as gr } from "../../../node_modules/@phosphor-icons/react/dist/csr/Lightning.es.js";
|
|
129
129
|
import { MapPinIcon as Pr } from "../../../node_modules/@phosphor-icons/react/dist/csr/MapPin.es.js";
|
|
130
|
-
import { EraserIcon as
|
|
131
|
-
import { VaultIcon as
|
|
130
|
+
import { EraserIcon as kr } from "../../../node_modules/@phosphor-icons/react/dist/csr/Eraser.es.js";
|
|
131
|
+
import { VaultIcon as dr } from "../../../node_modules/@phosphor-icons/react/dist/csr/Vault.es.js";
|
|
132
132
|
import { ClockClockwiseIcon as Ar } from "../../../node_modules/@phosphor-icons/react/dist/csr/ClockClockwise.es.js";
|
|
133
133
|
import { RepeatIcon as Dr } from "../../../node_modules/@phosphor-icons/react/dist/csr/Repeat.es.js";
|
|
134
134
|
import { EyeIcon as Lr } from "../../../node_modules/@phosphor-icons/react/dist/csr/Eye.es.js";
|
|
@@ -181,8 +181,8 @@ import { SortAscendingIcon as Se } from "../../../node_modules/@phosphor-icons/r
|
|
|
181
181
|
import { SortDescendingIcon as we } from "../../../node_modules/@phosphor-icons/react/dist/csr/SortDescending.es.js";
|
|
182
182
|
import { ArrowClockwiseIcon as ge } from "../../../node_modules/@phosphor-icons/react/dist/csr/ArrowClockwise.es.js";
|
|
183
183
|
import { SparkleIcon as Pe } from "../../../node_modules/@phosphor-icons/react/dist/csr/Sparkle.es.js";
|
|
184
|
-
import { ThumbsUpIcon as
|
|
185
|
-
import { ThumbsDownIcon as
|
|
184
|
+
import { ThumbsUpIcon as ke } from "../../../node_modules/@phosphor-icons/react/dist/csr/ThumbsUp.es.js";
|
|
185
|
+
import { ThumbsDownIcon as de } from "../../../node_modules/@phosphor-icons/react/dist/csr/ThumbsDown.es.js";
|
|
186
186
|
import { DotsThreeCircleVerticalIcon as Ae } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeCircleVertical.es.js";
|
|
187
187
|
import { BugBeetleIcon as De } from "../../../node_modules/@phosphor-icons/react/dist/csr/BugBeetle.es.js";
|
|
188
188
|
import { EnvelopeIcon as Le } from "../../../node_modules/@phosphor-icons/react/dist/csr/Envelope.es.js";
|
|
@@ -220,7 +220,9 @@ import { TestTubeIcon as ii } from "../../../node_modules/@phosphor-icons/react/
|
|
|
220
220
|
import { TagIcon as mi } from "../../../node_modules/@phosphor-icons/react/dist/csr/Tag.es.js";
|
|
221
221
|
import { FilePlusIcon as ai } from "../../../node_modules/@phosphor-icons/react/dist/csr/FilePlus.es.js";
|
|
222
222
|
import { CalendarPlusIcon as ti } from "../../../node_modules/@phosphor-icons/react/dist/csr/CalendarPlus.es.js";
|
|
223
|
-
|
|
223
|
+
import { CertificateIcon as ni } from "../../../node_modules/@phosphor-icons/react/dist/csr/Certificate.es.js";
|
|
224
|
+
import { StackIcon as si } from "../../../node_modules/@phosphor-icons/react/dist/csr/Stack.es.js";
|
|
225
|
+
const Sn = {
|
|
224
226
|
AidaLogo: r,
|
|
225
227
|
Activity: We,
|
|
226
228
|
FileSearch: He,
|
|
@@ -244,8 +246,8 @@ const $n = {
|
|
|
244
246
|
FilePdf: w,
|
|
245
247
|
BoundingBox: g,
|
|
246
248
|
TreeStructure: P,
|
|
247
|
-
ShoppingCart:
|
|
248
|
-
Code:
|
|
249
|
+
ShoppingCart: k,
|
|
250
|
+
Code: d,
|
|
249
251
|
FileTxt: A,
|
|
250
252
|
FileZip: D,
|
|
251
253
|
TerminalWindow: L,
|
|
@@ -348,8 +350,8 @@ const $n = {
|
|
|
348
350
|
UserSwitch: wr,
|
|
349
351
|
Lightning: gr,
|
|
350
352
|
MapPin: Pr,
|
|
351
|
-
Eraser:
|
|
352
|
-
Vault:
|
|
353
|
+
Eraser: kr,
|
|
354
|
+
Vault: dr,
|
|
353
355
|
ClockClockwise: Ar,
|
|
354
356
|
Repeat: Dr,
|
|
355
357
|
Eye: Lr,
|
|
@@ -404,8 +406,8 @@ const $n = {
|
|
|
404
406
|
SortDescending: we,
|
|
405
407
|
ArrowClockwise: ge,
|
|
406
408
|
Sparkle: Pe,
|
|
407
|
-
ThumbsUp:
|
|
408
|
-
ThumbsDown:
|
|
409
|
+
ThumbsUp: ke,
|
|
410
|
+
ThumbsDown: de,
|
|
409
411
|
DotsThreeCircleVertical: Ae,
|
|
410
412
|
BugBeetle: De,
|
|
411
413
|
Envelope: Le,
|
|
@@ -443,8 +445,10 @@ const $n = {
|
|
|
443
445
|
TestTube: ii,
|
|
444
446
|
Tag: mi,
|
|
445
447
|
FilePlus: ai,
|
|
446
|
-
CalendarPlus: ti
|
|
448
|
+
CalendarPlus: ti,
|
|
449
|
+
Certificate: ni,
|
|
450
|
+
Stack: si
|
|
447
451
|
};
|
|
448
452
|
export {
|
|
449
|
-
|
|
453
|
+
Sn as IconList
|
|
450
454
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the DataTableCellWrapper component
|
|
4
|
+
*/
|
|
5
|
+
export interface DataTableCellWrapperProps {
|
|
6
|
+
/** The value to check for emptiness. Renders emptyState when null/undefined/'' or an empty array. */
|
|
7
|
+
value: unknown;
|
|
8
|
+
/** Content to render when value is non-empty */
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/** Content to render when value is empty @default "-" */
|
|
11
|
+
emptyState?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Wraps a custom table cell to enforce the standard empty-state ("-")
|
|
15
|
+
* across the design system. Use this for cells that render custom JSX
|
|
16
|
+
* (Badges, icon+text combos, switches, etc.) that don't fit one of the
|
|
17
|
+
* specialized DataTable*Cell components.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <DataTableCellWrapper value={method}>
|
|
22
|
+
* <MethodTag method={method} />
|
|
23
|
+
* </DataTableCellWrapper>
|
|
24
|
+
*
|
|
25
|
+
* // Custom empty state
|
|
26
|
+
* <DataTableCellWrapper value={amount} emptyState="N/A">
|
|
27
|
+
* <CustomAmount value={amount} />
|
|
28
|
+
* </DataTableCellWrapper>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const DataTableCellWrapper: import('react').ForwardRefExoticComponent<DataTableCellWrapperProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
32
|
+
export { DataTableCellWrapper };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
const s = (r) => !!(r == null || typeof r == "string" && r.trim() === "" || Array.isArray(r) && r.length === 0), p = i(({ value: r, children: e, emptyState: n = "-" }, a) => s(r) ? /* @__PURE__ */ t.jsx("span", { ref: a, children: n }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: e }));
|
|
4
|
+
p.displayName = "DataTableCellWrapper";
|
|
5
|
+
export {
|
|
6
|
+
p as DataTableCellWrapper
|
|
7
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { DataTableCellWrapper, type DataTableCellWrapperProps, } from './data-table-cell-wrapper';
|
|
1
2
|
export { DataTableTextCell, type DataTableTextCellProps, } from './data-table-text-cell';
|
|
2
3
|
export { DataTableCopyCell, type DataTableCopyCellProps, } from './data-table-copy-cell';
|
|
3
4
|
export { DataTableStatusCell, type DataTableStatusCellProps, type StatusMapEntry, } from './data-table-status-cell';
|