@caratlogic/design-system 0.1.29 → 0.1.31

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.
Files changed (54) hide show
  1. package/dist/components/molecules/CompanyCard/CompanyCard.d.ts +1 -1
  2. package/dist/components/molecules/CompanyCard/CompanyCard.d.ts.map +1 -1
  3. package/dist/components/molecules/CompanyCard/CompanyCard.types.d.ts +4 -0
  4. package/dist/components/molecules/CompanyCard/CompanyCard.types.d.ts.map +1 -1
  5. package/dist/components/molecules/DataEditableTable/DataEditableTable.d.ts +1 -1
  6. package/dist/components/molecules/DataEditableTable/DataEditableTable.d.ts.map +1 -1
  7. package/dist/components/molecules/DataEditableTable/DataEditableTable.types.d.ts +2 -0
  8. package/dist/components/molecules/DataEditableTable/DataEditableTable.types.d.ts.map +1 -1
  9. package/dist/components/molecules/DetailSection/DetailSection.d.ts +6 -0
  10. package/dist/components/molecules/DetailSection/DetailSection.d.ts.map +1 -0
  11. package/dist/components/molecules/DetailSection/DetailSection.types.d.ts +14 -0
  12. package/dist/components/molecules/DetailSection/DetailSection.types.d.ts.map +1 -0
  13. package/dist/components/molecules/DetailSection/index.d.ts +3 -0
  14. package/dist/components/molecules/DetailSection/index.d.ts.map +1 -0
  15. package/dist/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.d.ts +6 -0
  16. package/dist/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.d.ts.map +1 -0
  17. package/dist/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.types.d.ts +13 -0
  18. package/dist/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.types.d.ts.map +1 -0
  19. package/dist/components/molecules/DocumentDeleteDialog/index.d.ts +3 -0
  20. package/dist/components/molecules/DocumentDeleteDialog/index.d.ts.map +1 -0
  21. package/dist/components/molecules/DocumentHero/DocumentHero.d.ts +9 -0
  22. package/dist/components/molecules/DocumentHero/DocumentHero.d.ts.map +1 -0
  23. package/dist/components/molecules/DocumentHero/DocumentHero.types.d.ts +79 -0
  24. package/dist/components/molecules/DocumentHero/DocumentHero.types.d.ts.map +1 -0
  25. package/dist/components/molecules/DocumentHero/DocumentHero.utils.d.ts +13 -0
  26. package/dist/components/molecules/DocumentHero/DocumentHero.utils.d.ts.map +1 -0
  27. package/dist/components/molecules/DocumentHero/index.d.ts +3 -0
  28. package/dist/components/molecules/DocumentHero/index.d.ts.map +1 -0
  29. package/dist/components/molecules/LineItems/LineItems.d.ts +14 -0
  30. package/dist/components/molecules/LineItems/LineItems.d.ts.map +1 -0
  31. package/dist/components/molecules/LineItems/LineItems.types.d.ts +48 -0
  32. package/dist/components/molecules/LineItems/LineItems.types.d.ts.map +1 -0
  33. package/dist/components/molecules/LineItems/index.d.ts +3 -0
  34. package/dist/components/molecules/LineItems/index.d.ts.map +1 -0
  35. package/dist/components/molecules/SegmentedControl/SegmentedControl.utils.d.ts +1 -1
  36. package/dist/components/molecules/SegmentedControl/SegmentedControl.utils.d.ts.map +1 -1
  37. package/dist/components/molecules/Skeletons/Skeletons.d.ts +15 -0
  38. package/dist/components/molecules/Skeletons/Skeletons.d.ts.map +1 -1
  39. package/dist/components/molecules/Skeletons/index.d.ts +2 -2
  40. package/dist/components/molecules/Skeletons/index.d.ts.map +1 -1
  41. package/dist/components/molecules/TagsInput/TagsInput.d.ts +2 -1
  42. package/dist/components/molecules/TagsInput/TagsInput.d.ts.map +1 -1
  43. package/dist/components/molecules/TagsInput/TagsInput.hooks.d.ts.map +1 -1
  44. package/dist/components/molecules/TagsInput/TagsInput.types.d.ts +16 -1
  45. package/dist/components/molecules/TagsInput/TagsInput.types.d.ts.map +1 -1
  46. package/dist/components/molecules/TagsInput/index.d.ts +1 -1
  47. package/dist/components/molecules/TagsInput/index.d.ts.map +1 -1
  48. package/dist/index.cjs.js +463 -186
  49. package/dist/index.cjs.js.map +1 -1
  50. package/dist/index.d.ts +4 -0
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.esm.js +452 -187
  53. package/dist/index.esm.js.map +1 -1
  54. package/package.json +1 -1
@@ -5,5 +5,5 @@ export type { CompanyCardProps, CompanyCardTaxNumber } from './CompanyCard.types
5
5
  * A business contact at a glance: avatar + name, email / phone / tax number,
6
6
  * then the address. Data-only — the app formats each value before passing it.
7
7
  */
8
- export declare function CompanyCard({ name, subtitle, email, phone, taxNumber, address, viewHref, viewLabel, title, icon, emptyLabel, className, }: CompanyCardProps): ReactElement;
8
+ export declare function CompanyCard({ name, subtitle, email, phone, taxNumber, additionalFields, address, viewHref, viewLabel, title, icon, variant, emptyLabel, className, }: CompanyCardProps): ReactElement;
9
9
  //# sourceMappingURL=CompanyCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompanyCard.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/CompanyCard/CompanyCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAO1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAElF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,EACT,OAAO,EACP,QAAQ,EACR,SAA0B,EAC1B,KAAiB,EACjB,IAAmD,EACnD,UAA2B,EAC3B,SAAS,GACV,EAAE,gBAAgB,GAAG,YAAY,CAyDjC"}
1
+ {"version":3,"file":"CompanyCard.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/CompanyCard/CompanyCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQ1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAElF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,EACT,gBAAqB,EACrB,OAAO,EACP,QAAQ,EACR,SAA0B,EAC1B,KAAiB,EACjB,IAAI,EACJ,OAAgB,EAChB,UAA2B,EAC3B,SAAS,GACV,EAAE,gBAAgB,GAAG,YAAY,CAqFjC"}
@@ -12,6 +12,8 @@ export interface CompanyCardProps {
12
12
  email?: string;
13
13
  phone?: string;
14
14
  taxNumber?: CompanyCardTaxNumber;
15
+ /** Extra fields in the same grid, e.g. a broker. */
16
+ additionalFields?: CompanyCardTaxNumber[];
15
17
  /** One-line formatted address. */
16
18
  address?: string;
17
19
  /** Opens the contact in a new tab from the header link. */
@@ -19,6 +21,8 @@ export interface CompanyCardProps {
19
21
  viewLabel?: string;
20
22
  title?: string;
21
23
  icon?: ReactNode;
24
+ /** `form` matches FormSectionCard pages; `detail` matches DetailSection pages. */
25
+ variant?: 'form' | 'detail';
22
26
  /** Shown for any field without a value. */
23
27
  emptyLabel?: string;
24
28
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CompanyCard.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/CompanyCard/CompanyCard.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,oBAAoB;IACnC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"CompanyCard.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/CompanyCard/CompanyCard.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,oBAAoB;IACnC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC1C,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,kFAAkF;IAClF,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,6 +1,6 @@
1
1
  import type { DataEditableTableProps } from './DataEditableTable.types';
2
2
  declare function DataEditableTable<T extends {
3
3
  id: string;
4
- }>({ data, columns, onRowClick, enableSelection, columnStyles, onEditChange, onSaveRow, sortBy, setSortBy, sortOrder, setSortOrder, saving, selectedRows, onSelectionChange, isArchiveView, selectionInArchiveView, permissionKey, columnWidths, onColumnResize, pagination, fetchBusinessContacts, showGrid, emptyState, }: DataEditableTableProps<T>): import("react/jsx-runtime").JSX.Element;
4
+ }>({ data, columns, onRowClick, enableSelection, columnStyles, onEditChange, onSaveRow, sortBy, setSortBy, sortOrder, setSortOrder, saving, selectedRows, onSelectionChange, isArchiveView, selectionInArchiveView, permissionKey, columnWidths, onColumnResize, pagination, fetchBusinessContacts, showGrid, striped, emptyState, }: DataEditableTableProps<T>): import("react/jsx-runtime").JSX.Element;
5
5
  export { DataEditableTable };
6
6
  //# sourceMappingURL=DataEditableTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataEditableTable.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DataEditableTable/DataEditableTable.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAExE,iBAAS,iBAAiB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EACnD,IAAI,EACJ,OAAO,EACP,UAAU,EACV,eAAuB,EACvB,YAAiB,EACjB,YAAY,EACZ,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,EACT,YAAY,EACZ,MAAM,EACN,YAAiB,EACjB,iBAAiB,EACjB,aAAqB,EACrB,sBAA8B,EAC9B,aAAkB,EAClB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,qBAAqB,EACrB,QAAe,EACf,UAAU,GACX,EAAE,sBAAsB,CAAC,CAAC,CAAC,2CA+R3B;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"DataEditableTable.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DataEditableTable/DataEditableTable.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAExE,iBAAS,iBAAiB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EACnD,IAAI,EACJ,OAAO,EACP,UAAU,EACV,eAAuB,EACvB,YAAiB,EACjB,YAAY,EACZ,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,EACT,YAAY,EACZ,MAAM,EACN,YAAiB,EACjB,iBAAiB,EACjB,aAAqB,EACrB,sBAA8B,EAC9B,aAAkB,EAClB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,qBAAqB,EACrB,QAAe,EACf,OAAc,EACd,UAAU,GACX,EAAE,sBAAsB,CAAC,CAAC,CAAC,2CA+R3B;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -37,6 +37,8 @@ export interface DataEditableTableProps<T extends {
37
37
  selectedRows?: string[];
38
38
  onSelectionChange?: (selectedIds: string[]) => void;
39
39
  isArchiveView?: boolean;
40
+ /** Alternate row backgrounds (default). `false` keeps every row on the card colour. */
41
+ striped?: boolean;
40
42
  /** When true with isArchiveView, still show row checkboxes (read-only lists that support bulk actions). */
41
43
  selectionInArchiveView?: boolean;
42
44
  permissionKey?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"DataEditableTable.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/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AAC,OAAO,CAAC,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9C,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B,qBAAqB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;IAChE,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,CAAC,CAAC;IAEP,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C"}
1
+ {"version":3,"file":"DataEditableTable.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DataEditableTable/DataEditableTable.types.ts"],"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.types';
3
+ export type { DetailSectionProps } from './DetailSection.types';
4
+ /** A titled card on a document detail page: payments, customer, items, notes… */
5
+ export declare function DetailSection({ icon, title, count, actions, children, className, bodyClassName, }: DetailSectionProps): ReactElement;
6
+ //# sourceMappingURL=DetailSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DetailSection.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DetailSection/DetailSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,SAAS,EACT,aAAa,GACd,EAAE,kBAAkB,GAAG,YAAY,CAuBnC"}
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface DetailSectionProps {
3
+ /** Shown in the tinted tile before the title. */
4
+ icon: ReactNode;
5
+ title: ReactNode;
6
+ /** After the title: a number or text renders as a count badge; pass a node to render it as is. */
7
+ count?: ReactNode;
8
+ /** Right side of the header: links, chips, toggles, menus. */
9
+ actions?: ReactNode;
10
+ children?: ReactNode;
11
+ className?: string;
12
+ bodyClassName?: string;
13
+ }
14
+ //# sourceMappingURL=DetailSection.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DetailSection.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DetailSection/DetailSection.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,iDAAiD;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,SAAS,CAAC;IACjB,kGAAkG;IAClG,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ export { DetailSection } from './DetailSection';
2
+ export type { DetailSectionProps } from './DetailSection';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DetailSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { DocumentDeleteDialogProps } from './DocumentDeleteDialog.types';
3
+ export type { DocumentDeleteDialogProps } from './DocumentDeleteDialog.types';
4
+ /** The permanent-delete confirmation for a document (quotation, memo, proforma…). */
5
+ export declare function DocumentDeleteDialog({ open, onOpenChange, documentLabel, documentNumber, info, busy, onConfirm, }: DocumentDeleteDialogProps): ReactElement;
6
+ //# sourceMappingURL=DocumentDeleteDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentDeleteDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,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,CA6B1C"}
@@ -0,0 +1,13 @@
1
+ import type { ConfirmDialogInfo } from '@/components/molecules/ConfirmDialog';
2
+ import type { ReactNode } from 'react';
3
+ export interface DocumentDeleteDialogProps {
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ /** e.g. "Quotation", "Memo Out". */
7
+ documentLabel: string;
8
+ documentNumber?: string;
9
+ info?: ConfirmDialogInfo | ReactNode;
10
+ busy: boolean;
11
+ onConfirm: () => void;
12
+ }
13
+ //# sourceMappingURL=DocumentDeleteDialog.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentDeleteDialog.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentDeleteDialog/DocumentDeleteDialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,oCAAoC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB"}
@@ -0,0 +1,3 @@
1
+ export { DocumentDeleteDialog } from './DocumentDeleteDialog';
2
+ export type { DocumentDeleteDialogProps } from './DocumentDeleteDialog';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DocumentDeleteDialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { DocumentHeroProps } from './DocumentHero.types';
3
+ export type { DocumentHeroBreakdown, DocumentHeroDetail, DocumentHeroFact, DocumentHeroFactTone, DocumentHeroProgress, DocumentHeroProps, DocumentHeroSegment, DocumentHeroSegmentTone, DocumentHeroTone, } from './DocumentHero.types';
4
+ /**
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
+ */
8
+ export declare function DocumentHero({ label, labelIcon, tone, amount, amountNote, progress, breakdown, facts, details, detailsLabel, detailsIcon, className, }: DocumentHeroProps): ReactElement;
9
+ //# sourceMappingURL=DocumentHero.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,79 @@
1
+ import type { ReactNode } from 'react';
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 {
10
+ /** 0–100; clamped. */
11
+ percent: number;
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;
18
+ }
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';
21
+ export interface DocumentHeroSegment {
22
+ label: string;
23
+ /** Shown under the label, e.g. "4.38 ct". */
24
+ value: ReactNode;
25
+ /** This segment's share of the whole, in the same unit as the other segments. */
26
+ amount: number;
27
+ /** `remaining` leaves the track showing, for what's still open. */
28
+ tone: DocumentHeroSegmentTone;
29
+ }
30
+ /** One stacked bar splitting a whole into parts, e.g. carats returned / sold / still out. */
31
+ export interface DocumentHeroBreakdown {
32
+ /** Names the bar for screen readers, e.g. "Carats on memo". */
33
+ label: string;
34
+ segments: DocumentHeroSegment[];
35
+ /** e.g. "100% settled · 4.38 ct on memo". */
36
+ caption?: ReactNode;
37
+ }
38
+ export interface DocumentHeroFact {
39
+ label: string;
40
+ value: ReactNode;
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". */
56
+ emptyLabel?: string;
57
+ }
58
+ export interface DocumentHeroProps {
59
+ /** Small heading above the amount, e.g. "Balance due". */
60
+ label: string;
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`. */
69
+ breakdown?: DocumentHeroBreakdown;
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;
77
+ className?: string;
78
+ }
79
+ //# sourceMappingURL=DocumentHero.types.d.ts.map
@@ -0,0 +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;;;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;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC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AAS,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"}
@@ -0,0 +1,13 @@
1
+ import type { DocumentHeroFactTone, DocumentHeroSegment, DocumentHeroSegmentTone, DocumentHeroTone } from './DocumentHero.types';
2
+ export declare function clampPercent(value: number): number;
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;
8
+ export declare function getSegmentClassName(tone: DocumentHeroSegmentTone): string;
9
+ /** Each segment's width in percent of the segments' sum; all 0 when there's nothing to split. */
10
+ export declare function getSegmentPercents(segments: DocumentHeroSegment[]): number[];
11
+ /** No value to show: blank, or the "—" placeholder apps pass. */
12
+ export declare function isEmptyFactValue(value: unknown): boolean;
13
+ //# sourceMappingURL=DocumentHero.utils.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export { DocumentHero } from './DocumentHero';
2
+ export type { DocumentHeroBreakdown, DocumentHeroDetail, DocumentHeroFact, DocumentHeroFactTone, DocumentHeroProgress, DocumentHeroProps, DocumentHeroSegment, DocumentHeroSegmentTone, DocumentHeroTone, } from './DocumentHero';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { LineItemsCardProps, LineProductCellProps, LineProductThumbProps, LineProductTypeChipProps, LineRowActionsMenuProps, LineTableEmptyProps, LineTableProps } from './LineItems.types';
3
+ export type { LineItemsCardProps, LineProductCellProps, LineProductThumbProps, LineProductType, LineProductTypeChipProps, LineRowActionsMenuProps, LineTableEmptyProps, LineTableProps, } from './LineItems.types';
4
+ /** The line-items section of a document detail page, with its "N items · X ct" count. */
5
+ export declare function LineItemsCard({ title, count, carats, actions, onEdit, footer, children, className, }: LineItemsCardProps): ReactElement;
6
+ /** Fills its container and only scrolls sideways when a row can't fit. */
7
+ export declare function LineTable({ children }: LineTableProps): ReactElement;
8
+ export declare function LineTableEmpty({ children }: LineTableEmptyProps): ReactElement;
9
+ export declare function LineProductThumb({ src, className }: LineProductThumbProps): ReactElement;
10
+ export declare function LineProductTypeChip({ type }: LineProductTypeChipProps): ReactElement;
11
+ export declare function LineProductCell({ className, name, type, image, description }: LineProductCellProps): ReactElement;
12
+ /** The ⋯ menu at the end of a line row. */
13
+ export declare function LineRowActionsMenu({ onView, disabled, label, modal, children, }: LineRowActionsMenuProps): ReactElement;
14
+ //# sourceMappingURL=LineItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineItems.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/LineItems/LineItems.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAapD,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACV,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GACV,EAAE,kBAAkB,GAAG,YAAY,CAmCnC;AAED,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,cAAc,GAAG,YAAY,CAMpE;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,YAAY,CAE9E;AAED,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,qBAAqB,GAAG,YAAY,CAoBxF;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,EAAE,wBAAwB,GAAG,YAAY,CAYpF;AAED,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,oBAAoB,GAAG,YAAY,CAajH;AAED,2CAA2C;AAC3C,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,QAAQ,EACR,KAAqB,EACrB,KAAK,EACL,QAAQ,GACT,EAAE,uBAAuB,GAAG,YAAY,CAqBxC"}
@@ -0,0 +1,48 @@
1
+ import type { ReactNode } from 'react';
2
+ export type LineProductType = 'gem' | 'diamond';
3
+ export interface LineItemsCardProps {
4
+ title: string;
5
+ /** Number of lines, shown as "N items · X ct" after the title. */
6
+ count: number;
7
+ carats: number;
8
+ /** Right side of the header: toggles, menus. */
9
+ actions?: ReactNode;
10
+ /** Adds an Edit button after `actions`, e.g. on a review screen. */
11
+ onEdit?: () => void;
12
+ /** Rendered under the table, e.g. the document summary. */
13
+ footer?: ReactNode;
14
+ children: ReactNode;
15
+ className?: string;
16
+ }
17
+ export interface LineTableProps {
18
+ children: ReactNode;
19
+ }
20
+ export interface LineTableEmptyProps {
21
+ children: ReactNode;
22
+ }
23
+ export interface LineProductThumbProps {
24
+ /** Falls back to a gem tile when missing or when it fails to load. */
25
+ src?: string | null;
26
+ className?: string;
27
+ }
28
+ export interface LineProductTypeChipProps {
29
+ type: LineProductType;
30
+ }
31
+ export interface LineProductCellProps {
32
+ /** The grid cell's classes (padding, height); the cell adds its own layout. */
33
+ className?: string;
34
+ name: ReactNode;
35
+ type?: LineProductType | null;
36
+ image?: string | null;
37
+ description?: ReactNode;
38
+ }
39
+ export interface LineRowActionsMenuProps {
40
+ /** Adds a "View details" item first. */
41
+ onView?: () => void;
42
+ disabled?: boolean;
43
+ /** Accessible name of the ⋯ trigger. */
44
+ label?: string;
45
+ modal?: boolean;
46
+ children?: ReactNode;
47
+ }
48
+ //# sourceMappingURL=LineItems.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineItems.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/LineItems/LineItems.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,SAAS,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,sEAAsE;IACtE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ export { LineItemsCard, LineProductCell, LineProductThumb, LineProductTypeChip, LineRowActionsMenu, LineTable, LineTableEmpty, } from './LineItems';
2
+ export type { LineItemsCardProps, LineProductCellProps, LineProductThumbProps, LineProductType, LineProductTypeChipProps, LineRowActionsMenuProps, LineTableEmptyProps, LineTableProps, } from './LineItems';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/LineItems/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,cAAc,GACf,MAAM,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { SegmentedControlOptionLayout, SegmentedControlVariant } from './SegmentedControl.types';
2
2
  /** Options with a description get the taller layout with an icon badge (default variant only). */
3
3
  export declare function hasDetails(variant: SegmentedControlVariant, hasDescription: boolean): boolean;
4
- export declare function getListClassName(variant: SegmentedControlVariant, detailed: boolean): string;
4
+ export declare function getListClassName(detailed: boolean): string;
5
5
  export declare function getSegmentClassName(variant: SegmentedControlVariant, isActive: boolean, isDisabled: boolean, detailed?: boolean): string;
6
6
  export declare function getIconClassName(detailed: boolean, isActive: boolean): string;
7
7
  export declare function getContentClassName(layout: SegmentedControlOptionLayout): string;
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SegmentedControl/SegmentedControl.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAElC,kGAAkG;AAClG,wBAAgB,UAAU,CAAC,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,OAAO,GAAG,OAAO,CAE7F;AAMD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAS5F;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO,EACnB,QAAQ,UAAQ,GACf,MAAM,CAqBR;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAQ7E;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,4BAA4B,GAAG,MAAM,CAIhF;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAEjE"}
1
+ {"version":3,"file":"SegmentedControl.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SegmentedControl/SegmentedControl.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAElC,kGAAkG;AAClG,wBAAgB,UAAU,CAAC,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,OAAO,GAAG,OAAO,CAE7F;AAMD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAO1D;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO,EACnB,QAAQ,UAAQ,GACf,MAAM,CAqBR;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAQ7E;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,4BAA4B,GAAG,MAAM,CAIhF;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAEjE"}
@@ -21,8 +21,23 @@ export declare function FormSectionCardSkeleton({ fields, columns, footer, descr
21
21
  export declare function TableSkeleton({ rows }: {
22
22
  rows?: number;
23
23
  }): ReactElement;
24
+ /** Listing table while it loads: one full-width bar per row, like the gem and diamond inventory tables. */
25
+ export declare function TableRowsSkeleton({ rows, className }: {
26
+ rows?: number;
27
+ className?: string;
28
+ }): ReactElement;
24
29
  /** Detail page: header row + key-value section cards. Mirrors `DetailPageLayout`. */
25
30
  export declare function DetailPageSkeleton({ sections, }: {
26
31
  sections?: number;
27
32
  }): ReactElement;
33
+ export interface DocumentDetailSkeletonProps {
34
+ /** Bar under the hero amount: a payment/progress bar, quantity bars, or none. */
35
+ aside?: 'payment' | 'bars' | 'none';
36
+ /** Section cards below the hero (customer, items, notes…). */
37
+ sections?: number;
38
+ /** Announced to screen readers while loading. */
39
+ label?: string;
40
+ }
41
+ /** Document detail page (invoice, memo…): header, `DocumentHero` and `DetailSection` placeholders. */
42
+ export declare function DocumentDetailSkeleton({ aside, sections, label, }: DocumentDetailSkeletonProps): ReactElement;
28
43
  //# sourceMappingURL=Skeletons.d.ts.map
@@ -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,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,EACjC,QAAY,GACb,EAAE;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,YAAY,CAkCf"}
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,3 +1,3 @@
1
- export { FieldSkeleton, FormSectionCardSkeleton, TableSkeleton, DetailPageSkeleton, } from './Skeletons';
2
- export type { FormSectionCardSkeletonProps } from './Skeletons';
1
+ export { FieldSkeleton, FormSectionCardSkeleton, TableRowsSkeleton, TableSkeleton, DetailPageSkeleton, DocumentDetailSkeleton, } from './Skeletons';
2
+ export type { DocumentDetailSkeletonProps, FormSectionCardSkeletonProps } from './Skeletons';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Skeletons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,aAAa,EACb,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Skeletons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { ReactElement } from 'react';
1
2
  import type { TagsInputProps } from './TagsInput.types';
2
- export declare function TagsInput({ value, onChange, placeholder, helperText, uppercase, }: TagsInputProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function TagsInput({ value, onChange, placeholder, helperText, uppercase, variant, id, invalid, disabled, }: TagsInputProps): ReactElement;
3
4
  //# sourceMappingURL=TagsInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TagsInput.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TagsInput/TagsInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAiB,GAClB,EAAE,cAAc,2CAuDhB"}
1
+ {"version":3,"file":"TagsInput.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TagsInput/TagsInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAM1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAiB,EACjB,OAAmB,EACnB,EAAE,EACF,OAAe,EACf,QAAgB,GACjB,EAAE,cAAc,GAAG,YAAY,CAyG/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"TagsInput.hooks.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TagsInput/TagsInput.hooks.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,SAAiB,GAClB,EAAE,IAAI,CACL,cAAc,EACd,OAAO,GAAG,UAAU,GAAG,WAAW,CACnC,GAAG,kBAAkB,CAkCrB"}
1
+ {"version":3,"file":"TagsInput.hooks.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TagsInput/TagsInput.hooks.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAI5E,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,SAAiB,GAClB,EAAE,IAAI,CACL,cAAc,EACd,OAAO,GAAG,UAAU,GAAG,WAAW,CACnC,GAAG,kBAAkB,CAsErB"}
@@ -1,4 +1,5 @@
1
- import type { ChangeEvent, KeyboardEvent } from 'react';
1
+ import type { ChangeEvent, ClipboardEvent, KeyboardEvent } from 'react';
2
+ export type TagsInputVariant = 'stacked' | 'inline';
2
3
  export interface TagsInputProps {
3
4
  value: string[];
4
5
  onChange: (tags: string[]) => void;
@@ -7,6 +8,16 @@ export interface TagsInputProps {
7
8
  helperText?: string;
8
9
  /** Force entered tags to upper-case. */
9
10
  uppercase?: boolean;
11
+ /**
12
+ * `stacked` (default): input + Add button, tags listed underneath.
13
+ * `inline`: tags sit inside the field, like an email "To" line; Enter, comma, Tab, blur or paste add them.
14
+ */
15
+ variant?: TagsInputVariant;
16
+ /** Links an external `<label htmlFor>`. */
17
+ id?: string;
18
+ /** Paints the error border and sets `aria-invalid`. */
19
+ invalid?: boolean;
20
+ disabled?: boolean;
10
21
  }
11
22
  export interface UseTagsInputResult {
12
23
  input: string;
@@ -15,5 +26,9 @@ export interface UseTagsInputResult {
15
26
  onInputKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
16
27
  addTag: () => void;
17
28
  removeTag: (index: number) => void;
29
+ /** Inline variant: adds every comma/space separated entry still in the input. */
30
+ commitInput: () => void;
31
+ onInlineKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
32
+ onInlinePaste: (event: ClipboardEvent<HTMLInputElement>) => void;
18
33
  }
19
34
  //# sourceMappingURL=TagsInput.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TagsInput.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TagsInput/TagsInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC9D,cAAc,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACjE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC"}
1
+ {"version":3,"file":"TagsInput.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TagsInput/TagsInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,2CAA2C;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC9D,cAAc,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACjE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iFAAiF;IACjF,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,eAAe,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAClE,aAAa,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAClE"}
@@ -1,3 +1,3 @@
1
1
  export { TagsInput } from './TagsInput';
2
- export type { TagsInputProps } from './TagsInput.types';
2
+ export type { TagsInputProps, TagsInputVariant } from './TagsInput.types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TagsInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TagsInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}