@caratlogic/design-system 0.1.30 → 0.1.32
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/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/atoms/NumberInput/NumberInput.types.d.ts +4 -0
- package/dist/components/atoms/NumberInput/NumberInput.types.d.ts.map +1 -1
- package/dist/components/molecules/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/molecules/ConfirmDialog/ConfirmDialog.parts.d.ts +1 -0
- package/dist/components/molecules/ConfirmDialog/ConfirmDialog.parts.d.ts.map +1 -1
- package/dist/components/molecules/ConfirmDialog/ConfirmDialog.types.d.ts +5 -11
- package/dist/components/molecules/ConfirmDialog/ConfirmDialog.types.d.ts.map +1 -1
- package/dist/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.d.ts +1 -1
- package/dist/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.d.ts.map +1 -1
- package/dist/components/molecules/DocumentHero/DocumentHero.d.ts +4 -4
- package/dist/components/molecules/DocumentHero/DocumentHero.d.ts.map +1 -1
- package/dist/components/molecules/DocumentHero/DocumentHero.types.d.ts +48 -41
- package/dist/components/molecules/DocumentHero/DocumentHero.types.d.ts.map +1 -1
- package/dist/components/molecules/DocumentHero/DocumentHero.utils.d.ts +7 -16
- package/dist/components/molecules/DocumentHero/DocumentHero.utils.d.ts.map +1 -1
- package/dist/components/molecules/DocumentHero/index.d.ts +1 -1
- package/dist/components/molecules/DocumentHero/index.d.ts.map +1 -1
- package/dist/components/molecules/Modal/Modal.d.ts +1 -1
- package/dist/components/molecules/Modal/Modal.d.ts.map +1 -1
- package/dist/components/molecules/Modal/Modal.types.d.ts +9 -3
- package/dist/components/molecules/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/molecules/Skeletons/Skeletons.d.ts +1 -1
- package/dist/components/molecules/Skeletons/Skeletons.d.ts.map +1 -1
- package/dist/components/organisms/FileUploader/ImageCropModal.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts +23 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/index.cjs.js +310 -251
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +311 -252
- package/dist/index.esm.js.map +1 -1
- package/dist/ui.cjs.js +60 -14
- package/dist/ui.cjs.js.map +1 -1
- package/dist/ui.esm.js +59 -15
- package/dist/ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/molecules/ConfirmDialog/ConfirmDialog.hooks.d.ts +0 -3
- package/dist/components/molecules/ConfirmDialog/ConfirmDialog.hooks.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,eAAO,MAAM,WAAW,2FA4GvB,CAAC"}
|
|
@@ -13,6 +13,10 @@ export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInp
|
|
|
13
13
|
emitUndefinedOnEmpty?: boolean;
|
|
14
14
|
/** With `precision` set, trims trailing zeros on display (e.g. 0.8400 → 0.84). */
|
|
15
15
|
trimTrailingZeros?: boolean;
|
|
16
|
+
/** Unit shown inside the field on the right, e.g. "ct". */
|
|
17
|
+
suffix?: React.ReactNode;
|
|
18
|
+
/** Adds −/+ buttons that step the value by `step` (default 1) within `min`/`max`. */
|
|
19
|
+
stepper?: boolean;
|
|
16
20
|
}
|
|
17
21
|
export interface UseNumberInputArgs {
|
|
18
22
|
value?: number | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.types.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/NumberInput/NumberInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,MAAM,GAAG,OAAO,GAAG,UAAU,CAC9B;IACC;;uCAEmC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberInput.types.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/NumberInput/NumberInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,MAAM,GAAG,OAAO,GAAG,UAAU,CAC9B;IACC;;uCAEmC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CA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BAAgB,CAAC,KAAK,IAAI,CAAC;CAC7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ConfirmDialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ConfirmDialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4D/C,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { InfoCardProps } from './ConfirmDialog.types';
|
|
3
|
+
/** The document the dialog acts on: number, customer, total and date, plus paid / outstanding when known. */
|
|
3
4
|
export declare const InfoCard: React.FC<InfoCardProps>;
|
|
4
5
|
//# sourceMappingURL=ConfirmDialog.parts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.parts.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ConfirmDialog/ConfirmDialog.parts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE9E,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.parts.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ConfirmDialog/ConfirmDialog.parts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE9E,6GAA6G;AAC7G,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuD5C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
import type { LucideIcon } from 'lucide-react';
|
|
3
3
|
export interface ConfirmDialogInfo {
|
|
4
4
|
invoiceNumber?: string;
|
|
@@ -19,21 +19,15 @@ export interface ConfirmDialogProps {
|
|
|
19
19
|
confirmLabel?: string;
|
|
20
20
|
cancelLabel?: string;
|
|
21
21
|
confirmVariant?: 'default' | 'destructive' | 'secondary' | 'outline';
|
|
22
|
-
/**
|
|
22
|
+
/** Names the action in the header tile (and on a destructive confirm button). Destructive dialogs default to `Trash2`. */
|
|
23
23
|
icon?: LucideIcon;
|
|
24
24
|
disabled?: boolean;
|
|
25
|
-
|
|
26
|
-
onConfirm: (refundToWallet?: boolean) => Promise<void> | void;
|
|
25
|
+
onConfirm: () => Promise<void> | void;
|
|
27
26
|
onCancel?: () => void;
|
|
27
|
+
/** Extra content under the summary, e.g. a feature's own option for this action. */
|
|
28
|
+
children?: ReactNode;
|
|
28
29
|
}
|
|
29
30
|
export interface InfoCardProps {
|
|
30
31
|
info: ConfirmDialogInfo | ReactNode;
|
|
31
|
-
title?: string;
|
|
32
|
-
refundToWallet?: boolean;
|
|
33
|
-
onRefundChange?: (v: boolean) => void;
|
|
34
|
-
}
|
|
35
|
-
export interface UseRefundToWalletResult {
|
|
36
|
-
refundToWallet: boolean;
|
|
37
|
-
setRefundToWallet: Dispatch<SetStateAction<boolean>>;
|
|
38
32
|
}
|
|
39
33
|
//# sourceMappingURL=ConfirmDialog.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ConfirmDialog/ConfirmDialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ConfirmDialog/ConfirmDialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,CAAC;IACrE,0HAA0H;IAC1H,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACrC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
2
|
import type { DocumentDeleteDialogProps } from './DocumentDeleteDialog.types';
|
|
3
3
|
export type { DocumentDeleteDialogProps } from './DocumentDeleteDialog.types';
|
|
4
4
|
/** The permanent-delete confirmation for a document (quotation, memo, proforma…). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentDeleteDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DocumentDeleteDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,SAAS,GACV,EAAE,yBAAyB,GAAG,YAAY,CAoB1C"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { DocumentHeroProps } from './DocumentHero.types';
|
|
3
|
-
export type {
|
|
3
|
+
export type { DocumentHeroBreakdown, DocumentHeroDetail, DocumentHeroFact, DocumentHeroFactTone, DocumentHeroProgress, DocumentHeroProps, DocumentHeroSegment, DocumentHeroSegmentTone, DocumentHeroTone, } from './DocumentHero.types';
|
|
4
4
|
/**
|
|
5
|
-
* The top of a document detail page:
|
|
6
|
-
*
|
|
5
|
+
* The top of a document detail page: the headline amount (balance, total, value),
|
|
6
|
+
* how much of it is settled, and the key dates and facts beside it. Data-only.
|
|
7
7
|
*/
|
|
8
|
-
export declare function DocumentHero({ label,
|
|
8
|
+
export declare function DocumentHero({ label, labelIcon, tone, amount, amountNote, progress, breakdown, facts, details, detailsLabel, detailsIcon, className, }: DocumentHeroProps): ReactElement;
|
|
9
9
|
//# sourceMappingURL=DocumentHero.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentHero.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentHero/DocumentHero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DocumentHero.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentHero/DocumentHero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAIV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAa9B,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAqK9B;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,SAAS,EACT,IAAgB,EAChB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,SAAS,EACT,KAAU,EACV,OAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,GACV,EAAE,iBAAiB,GAAG,YAAY,CAmGlC"}
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The document's state: colours the heading, the bar's track and the facts panel to match its status pill.
|
|
4
|
+
* The amount itself stays neutral.
|
|
5
|
+
*/
|
|
6
|
+
export type DocumentHeroTone = 'default' | 'success' | 'info' | 'warning' | 'destructive' | 'muted';
|
|
7
|
+
/** Colours a fact's icon tile and note; `success` also colours its value. */
|
|
8
|
+
export type DocumentHeroFactTone = 'default' | 'success' | 'warning' | 'destructive';
|
|
9
|
+
export interface DocumentHeroProgress {
|
|
9
10
|
/** 0–100; clamped. */
|
|
10
11
|
percent: number;
|
|
11
|
-
/** e.g. "
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
label: string;
|
|
18
|
-
/** Shown at the right of the bar, e.g. "5.20 ct". */
|
|
19
|
-
value: ReactNode;
|
|
20
|
-
/** 0–100; clamped. */
|
|
21
|
-
percent: number;
|
|
22
|
-
tone?: DocumentHeroBarTone;
|
|
12
|
+
/** Highlighted at the start of the line under the bar, e.g. "$2,000.00". */
|
|
13
|
+
value?: ReactNode;
|
|
14
|
+
/** Follows `value`, e.g. "paid". */
|
|
15
|
+
label?: ReactNode;
|
|
16
|
+
/** End of the line under the bar, e.g. "39%" or "4 days before due date". */
|
|
17
|
+
trailing?: ReactNode;
|
|
23
18
|
}
|
|
24
|
-
|
|
19
|
+
/** `primary-soft` is a lighter tint of the brand colour, for pairing with `primary` in one bar. */
|
|
20
|
+
export type DocumentHeroSegmentTone = 'success' | 'info' | 'primary' | 'primary-soft' | 'warning' | 'remaining';
|
|
25
21
|
export interface DocumentHeroSegment {
|
|
26
22
|
label: string;
|
|
27
23
|
/** Shown under the label, e.g. "4.38 ct". */
|
|
@@ -39,34 +35,45 @@ export interface DocumentHeroBreakdown {
|
|
|
39
35
|
/** e.g. "100% settled · 4.38 ct on memo". */
|
|
40
36
|
caption?: ReactNode;
|
|
41
37
|
}
|
|
42
|
-
export interface
|
|
38
|
+
export interface DocumentHeroFact {
|
|
43
39
|
label: string;
|
|
44
40
|
value: ReactNode;
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
/**
|
|
41
|
+
/** Icon element or a short glyph such as a currency symbol. */
|
|
42
|
+
icon: ReactNode;
|
|
43
|
+
/** Small text after the value, e.g. "in 7 days" or "6 days overdue". */
|
|
44
|
+
note?: ReactNode;
|
|
45
|
+
tone?: DocumentHeroFactTone;
|
|
46
|
+
/** Shown muted when there's no value. Defaults to "Not provided". */
|
|
47
|
+
emptyLabel?: string;
|
|
48
|
+
/** Adds a small link after the value, e.g. "View" scrolling to the payments. */
|
|
49
|
+
onAction?: () => void;
|
|
50
|
+
actionLabel?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface DocumentHeroDetail {
|
|
53
|
+
label: string;
|
|
54
|
+
value: ReactNode;
|
|
55
|
+
/** Shown muted when there's no value. Defaults to "Not provided". */
|
|
48
56
|
emptyLabel?: string;
|
|
49
57
|
}
|
|
50
58
|
export interface DocumentHeroProps {
|
|
51
|
-
/** e.g. "
|
|
59
|
+
/** Small heading above the amount, e.g. "Balance due". */
|
|
52
60
|
label: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
statusTone?: DocumentHeroStatusTone;
|
|
62
|
-
/** Paid vs outstanding with a progress bar. */
|
|
63
|
-
payment?: DocumentHeroPayment;
|
|
64
|
-
/** Carat (or any quantity) bars, e.g. on memo / returned / sold. Used when there's no `payment`. */
|
|
65
|
-
bars?: DocumentHeroBar[];
|
|
66
|
-
/** A whole split into parts on one stacked bar. Used when there's no `payment`; wins over `bars`. */
|
|
61
|
+
labelIcon?: ReactNode;
|
|
62
|
+
tone?: DocumentHeroTone;
|
|
63
|
+
amount: ReactNode;
|
|
64
|
+
/** Beside the amount, e.g. "of $5,176.50 total". */
|
|
65
|
+
amountNote?: ReactNode;
|
|
66
|
+
/** Bar under the amount, e.g. how much is paid. */
|
|
67
|
+
progress?: DocumentHeroProgress;
|
|
68
|
+
/** A whole split into parts on one stacked bar. Used instead of `progress`. */
|
|
67
69
|
breakdown?: DocumentHeroBreakdown;
|
|
68
|
-
/** Key dates and facts
|
|
69
|
-
|
|
70
|
+
/** Key dates and facts, listed on the right (below on narrow screens). Keep to about four. */
|
|
71
|
+
facts?: DocumentHeroFact[];
|
|
72
|
+
/** Secondary facts (tax registration, references…) in a slim strip along the bottom. */
|
|
73
|
+
details?: DocumentHeroDetail[];
|
|
74
|
+
/** Names the details strip, e.g. "GST". */
|
|
75
|
+
detailsLabel?: string;
|
|
76
|
+
detailsIcon?: ReactNode;
|
|
70
77
|
className?: string;
|
|
71
78
|
}
|
|
72
79
|
//# sourceMappingURL=DocumentHero.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentHero.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentHero/DocumentHero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"DocumentHero.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentHero/DocumentHero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,aAAa,GACb,OAAO,CAAC;AAEZ,6EAA6E;AAC7E,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,SAAS,GACT,SAAS,GACT,aAAa,CAAC;AAElB,MAAM,WAAW,oBAAoB;IACnC,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oCAAoC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E,gBAAgB,CAAC;IACxB,MAAM,EAAE,SAAS,CAAC;IAClB,oDAAoD;IACpD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,+EAA+E;IAC/E,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,8FAA8F;IAC9F,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC3B,wFAAwF;IACxF,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DocumentHeroFactTone, DocumentHeroSegment, DocumentHeroSegmentTone, DocumentHeroTone } from './DocumentHero.types';
|
|
2
2
|
export declare function clampPercent(value: number): number;
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function getLabelClassName(tone: DocumentHeroTone): string;
|
|
4
|
+
export declare function getFactsPanelClassName(tone: DocumentHeroTone): string;
|
|
5
|
+
export declare function getProgressTrackClassName(tone: DocumentHeroTone): string;
|
|
6
|
+
export declare function getFactIconClassName(tone: DocumentHeroFactTone): string;
|
|
7
|
+
export declare function getFactNoteClassName(tone: DocumentHeroFactTone): string;
|
|
5
8
|
export declare function getSegmentClassName(tone: DocumentHeroSegmentTone): string;
|
|
6
9
|
/** Each segment's width in percent of the segments' sum; all 0 when there's nothing to split. */
|
|
7
10
|
export declare function getSegmentPercents(segments: DocumentHeroSegment[]): number[];
|
|
8
|
-
/** A complete payment uses the brand green; a partial one the "paid" green. */
|
|
9
|
-
export declare function getProgressFillClassName(percent: number): string;
|
|
10
|
-
/** Background tint for the status area (the side panel, or the whole card without one). */
|
|
11
|
-
export declare function getStatusTintClassName(tone: DocumentHeroStatusTone): string;
|
|
12
|
-
/** The panel beside the total only takes a colour when the status has one. */
|
|
13
|
-
export declare function getAsidePanelClassName(tone: DocumentHeroStatusTone): string;
|
|
14
11
|
/** No value to show: blank, or the "—" placeholder apps pass. */
|
|
15
|
-
export declare function
|
|
16
|
-
export declare function getProgressTrackClassName(tone: DocumentHeroStatusTone): string;
|
|
17
|
-
/** Up to four meta cells per row from `md`, two on phones. */
|
|
18
|
-
export declare function getMetaColumns(count: number): number;
|
|
19
|
-
export declare function getMetaGridClassName(count: number): string;
|
|
20
|
-
/** Hairlines by position, so they're right whether two or `cols` cells share a row. */
|
|
21
|
-
export declare function getMetaCellClassName(index: number, count: number): string;
|
|
12
|
+
export declare function isEmptyFactValue(value: unknown): boolean;
|
|
22
13
|
//# sourceMappingURL=DocumentHero.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentHero.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentHero/DocumentHero.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"DocumentHero.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentHero/DocumentHero.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAE9B,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGlD;AAWD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAEhE;AAYD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAErE;AAWD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAExE;AASD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAEvE;AASD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAEvE;AAWD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,uBAAuB,GAAG,MAAM,CAEzE;AAED,iGAAiG;AACjG,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,GAAG,MAAM,EAAE,CAM5E;AAED,iEAAiE;AACjE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAKxD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { DocumentHero } from './DocumentHero';
|
|
2
|
-
export type {
|
|
2
|
+
export type { DocumentHeroBreakdown, DocumentHeroDetail, DocumentHeroFact, DocumentHeroFactTone, DocumentHeroProgress, DocumentHeroProps, DocumentHeroSegment, DocumentHeroSegmentTone, DocumentHeroTone, } from './DocumentHero';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentHero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentHero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC"}
|
|
@@ -5,5 +5,5 @@ export type { ModalProps, ModalSize } from './Modal.types';
|
|
|
5
5
|
* Built on top of shadcn DialogContent, so it inherits viewport-centered
|
|
6
6
|
* positioning, focus trapping, portal rendering, and overlay handling.
|
|
7
7
|
*/
|
|
8
|
-
export declare function Modal({ open, onClose, title, icon, children, footer, size, hideCloseButton, className, bodyClassName, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Modal({ open, onClose, title, description, icon, children, footer, size, hideCloseButton, className, bodyClassName, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/Modal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/Modal.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,EACpB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAgB,EAChB,eAAuB,EACvB,SAAS,EACT,aAAa,GACd,EAAE,UAAU,2CAmDZ"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* `default` (32rem) for every modal; `wide` (50rem) only for content that needs it.
|
|
4
|
+
* @deprecated 'sm' | 'md' | 'lg' | 'xl' — kept for old callers, all render at the default width.
|
|
5
|
+
*/
|
|
6
|
+
export type ModalSize = 'default' | 'wide' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
7
|
export interface ModalProps {
|
|
4
8
|
open: boolean;
|
|
5
9
|
onClose: () => void;
|
|
6
10
|
/** Title shown in the header. Use a string, or pass a node (icon + text). */
|
|
7
11
|
title: ReactNode;
|
|
8
|
-
/**
|
|
12
|
+
/** Under the title, e.g. what happens on confirm. */
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
/** Names the action in a tinted tile beside the title. */
|
|
9
15
|
icon?: ReactNode;
|
|
10
16
|
/** Body content. Scrolls internally when content exceeds the available height. */
|
|
11
17
|
children: ReactNode;
|
|
12
18
|
/** Footer content (typically Cancel / primary action buttons). Hidden when omitted. */
|
|
13
19
|
footer?: ReactNode;
|
|
14
|
-
/**
|
|
20
|
+
/** Width preset. @default 'default' */
|
|
15
21
|
size?: ModalSize;
|
|
16
22
|
/** Hide the close (X) button in the header. @default false */
|
|
17
23
|
hideCloseButton?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/Modal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/Modal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,6EAA6E;IAC7E,KAAK,EAAE,SAAS,CAAC;IACjB,qDAAqD;IACrD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,kFAAkF;IAClF,QAAQ,EAAE,SAAS,CAAC;IACpB,uFAAuF;IACvF,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,uCAAuC;IACvC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -31,7 +31,7 @@ export declare function DetailPageSkeleton({ sections, }: {
|
|
|
31
31
|
sections?: number;
|
|
32
32
|
}): ReactElement;
|
|
33
33
|
export interface DocumentDetailSkeletonProps {
|
|
34
|
-
/**
|
|
34
|
+
/** Bar under the hero amount: a payment/progress bar, quantity bars, or none. */
|
|
35
35
|
aside?: 'payment' | 'bars' | 'none';
|
|
36
36
|
/** Section cards below the hero (customer, items, notes…). */
|
|
37
37
|
sections?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeletons.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Skeletons/Skeletons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,oDAAoD;AACpD,wBAAgB,aAAa,IAAI,YAAY,CAO5C;AAED,MAAM,WAAW,4BAA4B;IAC3C,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAU,EACV,OAAW,EACX,MAAc,EACd,WAAkB,GACnB,EAAE,4BAA4B,GAAG,YAAY,CAwC7C;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAa3E;AAED,2GAA2G;AAC3G,wBAAgB,iBAAiB,CAAC,EAAE,IAAS,EAAE,SAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAS/G;AAED,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,EACjC,QAAY,GACb,EAAE;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,YAAY,CAkCf;AAED,MAAM,WAAW,2BAA2B;IAC1C,iFAAiF;IACjF,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,sGAAsG;AACtG,wBAAgB,sBAAsB,CAAC,EACrC,KAAiB,EACjB,QAAY,EACZ,KAA0B,GAC3B,EAAE,2BAA2B,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"Skeletons.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Skeletons/Skeletons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,oDAAoD;AACpD,wBAAgB,aAAa,IAAI,YAAY,CAO5C;AAED,MAAM,WAAW,4BAA4B;IAC3C,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAU,EACV,OAAW,EACX,MAAc,EACd,WAAkB,GACnB,EAAE,4BAA4B,GAAG,YAAY,CAwC7C;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAa3E;AAED,2GAA2G;AAC3G,wBAAgB,iBAAiB,CAAC,EAAE,IAAS,EAAE,SAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAS/G;AAED,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,EACjC,QAAY,GACb,EAAE;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,YAAY,CAkCf;AAED,MAAM,WAAW,2BAA2B;IAC1C,iFAAiF;IACjF,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,sGAAsG;AACtG,wBAAgB,sBAAsB,CAAC,EACrC,KAAiB,EACjB,QAAY,EACZ,KAA0B,GAC3B,EAAE,2BAA2B,GAAG,YAAY,CA8D5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCropModal.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/FileUploader/ImageCropModal.tsx"],"names":[],"mappings":"AAOA,OAAO,qCAAqC,CAAC;AAkD7C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,CAAC,WAAW,EAAE,IAAI,KAAK,IAAI,CAAC;CACxC;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ImageCropModal.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/FileUploader/ImageCropModal.tsx"],"names":[],"mappings":"AAOA,OAAO,qCAAqC,CAAC;AAkD7C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,CAAC,WAAW,EAAE,IAAI,KAAK,IAAI,CAAC;CACxC;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,2CAuJrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;mFAgCnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;mFAgCnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAWF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -5,14 +5,35 @@ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogP
|
|
|
5
5
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
/** Every dialog is one of two widths, so modals look the same across the apps. */
|
|
9
|
+
export type DialogSize = 'default' | 'wide';
|
|
8
10
|
interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
9
11
|
/** Skip the built-in absolute close button (for callers rendering their own). */
|
|
10
12
|
hideCloseButton?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* `wide` only for content that genuinely needs it (large tables, image viewers).
|
|
15
|
+
* Width is set here alone; width classes passed in `className` have no effect.
|
|
16
|
+
*/
|
|
17
|
+
size?: DialogSize;
|
|
11
18
|
}
|
|
12
19
|
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
|
|
20
|
+
export type DialogIconTone = 'primary' | 'neutral' | 'warning' | 'destructive';
|
|
21
|
+
/** The tinted tile that names a dialog's action; shared by every dialog header. */
|
|
22
|
+
declare function DialogIcon({ tone, className, children, }: {
|
|
23
|
+
tone?: DialogIconTone;
|
|
24
|
+
className?: string;
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
}): React.ReactElement;
|
|
27
|
+
interface DialogHeaderProps extends React.ComponentProps<'div'> {
|
|
28
|
+
/** Shown in a tinted tile beside the title, naming the action (trash for delete, send for send…). */
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
iconTone?: DialogIconTone;
|
|
31
|
+
}
|
|
32
|
+
declare function DialogHeader({ className, icon, iconTone, children, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
/** Neutral footer buttons get the card surface so they stand out from the tinted footer band. */
|
|
34
|
+
export declare const DIALOG_FOOTER_BUTTONS: string;
|
|
14
35
|
declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
15
36
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
16
37
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
17
|
-
export { Dialog, DialogTrigger, DialogPortal, DialogOverlay, DialogContent, DialogClose, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
38
|
+
export { Dialog, DialogTrigger, DialogPortal, DialogOverlay, DialogContent, DialogClose, DialogHeader, DialogIcon, DialogFooter, DialogTitle, DialogDescription, };
|
|
18
39
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MA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