@caratlogic/design-system 0.1.21 → 0.1.23
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/molecules/ApiComboBox/ApiComboBox.d.ts +2 -1
- package/dist/components/molecules/ApiComboBox/ApiComboBox.d.ts.map +1 -1
- package/dist/components/molecules/ApiComboBox/ApiComboBox.parts.d.ts +7 -0
- package/dist/components/molecules/ApiComboBox/ApiComboBox.parts.d.ts.map +1 -0
- package/dist/components/molecules/ApiComboBox/ApiComboBox.utils.d.ts +10 -0
- package/dist/components/molecules/ApiComboBox/ApiComboBox.utils.d.ts.map +1 -1
- package/dist/components/molecules/MetricTile/MetricTile.types.d.ts +1 -1
- package/dist/components/molecules/SearchableSelect/SearchableSelect.d.ts.map +1 -1
- package/dist/components/organisms/PartnerShareCard/PartnerShareCard.d.ts +1 -1
- package/dist/index.cjs.js +268 -193
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +268 -193
- package/dist/index.esm.js.map +1 -1
- package/dist/interfaces/businesscontact.interface.d.ts +6 -0
- package/dist/interfaces/businesscontact.interface.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
1
2
|
import type { ApiComboBoxProps } from './ApiComboBox.types';
|
|
2
|
-
export declare function ApiComboBox({ contactType, selectedItem, onSelect, fetchBusinessContacts, searchPlaceholder, className, disabled, align, displayAttribute, separator, customerCode, hideTriggerSearchIcon, }: ApiComboBoxProps):
|
|
3
|
+
export declare function ApiComboBox({ contactType, selectedItem, onSelect, fetchBusinessContacts, searchPlaceholder, className, disabled, align, displayAttribute, separator, customerCode, hideTriggerSearchIcon, }: ApiComboBoxProps): ReactElement;
|
|
3
4
|
//# sourceMappingURL=ApiComboBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiComboBox.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ApiComboBox/ApiComboBox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiComboBox.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ApiComboBox/ApiComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,gBAAgB,EAAgB,MAAM,qBAAqB,CAAC;AAE1E,wBAAgB,WAAW,CAAC,EAC1B,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,qBAAqB,EACrB,iBAA+B,EAC/B,SAAS,EACT,QAAgB,EAChB,KAAK,EACL,gBAAgC,EAChC,SAAiB,EACjB,YAAY,EACZ,qBAA6B,GAC9B,EAAE,gBAAgB,GAAG,YAAY,CAqCjC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ComboBoxItem } from './ApiComboBox.types';
|
|
3
|
+
/** One contact in the dropdown: who, how to reach them, their tax registration, and where they are. */
|
|
4
|
+
export declare function ContactOption({ item }: {
|
|
5
|
+
item: ComboBoxItem;
|
|
6
|
+
}): ReactElement;
|
|
7
|
+
//# sourceMappingURL=ApiComboBox.parts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiComboBox.parts.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ApiComboBox/ApiComboBox.parts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAoBxD,uGAAuG;AACvG,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GAAG,YAAY,CAsD5E"}
|
|
@@ -2,4 +2,14 @@ import type { BusinessContact } from '@/interfaces/businesscontact.interface';
|
|
|
2
2
|
import type { ComboBoxItem, DisplayAttribute } from './ApiComboBox.types';
|
|
3
3
|
export declare function getDisplayValue(contact: BusinessContact, attributes: DisplayAttribute | DisplayAttribute[], separator: string): string;
|
|
4
4
|
export declare function mapContact(contact: BusinessContact, attributes: DisplayAttribute | DisplayAttribute[], separator: string): ComboBoxItem;
|
|
5
|
+
/** Street, city, state + zip, country — whichever parts the contact has. */
|
|
6
|
+
export declare function formatContactAddress(address: BusinessContact['address']): string;
|
|
7
|
+
/**
|
|
8
|
+
* GSTIN for Indian contacts, VAT number for everyone else. The backend keeps a
|
|
9
|
+
* GSTIN in `identifiers` and also aliases it into `vatNumber`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContactTaxNumber(contact?: BusinessContact): {
|
|
12
|
+
label: 'GSTIN' | 'VAT';
|
|
13
|
+
value: string;
|
|
14
|
+
};
|
|
5
15
|
//# sourceMappingURL=ApiComboBox.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiComboBox.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ApiComboBox/ApiComboBox.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE1E,wBAAgB,eAAe,CAC7B,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,EACjD,SAAS,EAAE,MAAM,GAChB,MAAM,CAaR;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,EACjD,SAAS,EAAE,MAAM,GAChB,YAAY,CAuBd"}
|
|
1
|
+
{"version":3,"file":"ApiComboBox.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ApiComboBox/ApiComboBox.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE1E,wBAAgB,eAAe,CAC7B,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,EACjD,SAAS,EAAE,MAAM,GAChB,MAAM,CAaR;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,EACjD,SAAS,EAAE,MAAM,GAChB,YAAY,CAuBd;AAED,4EAA4E;AAC5E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GAAG,MAAM,CAOhF;AAUD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG;IAC9D,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf,CAWA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* Pastel tile palettes used on the Partner
|
|
3
|
+
* Pastel tile palettes used on the Partner Detail Financial Summary.
|
|
4
4
|
* Each variant maps to a soft background + bolder icon chip in the same hue.
|
|
5
5
|
*/
|
|
6
6
|
export type MetricTileTone = 'cost' | 'contribution' | 'partnerContribution' | 'partnerExpense' | 'companyExpense' | 'profit' | 'companyProfit' | 'partnerProfit' | 'caratsSold' | 'saleAmount';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchableSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SearchableSelect/SearchableSelect.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,YAAY,EACV,qBAAqB,EACrB,aAAa,EACb,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAM7C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,EAClC,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,qBAA6B,EAC7B,SAAS,EACT,OAAO,EAAE,aAAa,EACtB,QAAQ,EACR,aAAoB,EACpB,WAAW,EACX,iBAA6B,EAC7B,YAAkC,EAClC,QAA4B,EAC5B,UAA6B,EAC7B,QAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,KAAK,EACL,KAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,GACX,EAAE,qBAAqB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"SearchableSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SearchableSelect/SearchableSelect.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,YAAY,EACV,qBAAqB,EACrB,aAAa,EACb,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAM7C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,EAClC,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,qBAA6B,EAC7B,SAAS,EACT,OAAO,EAAE,aAAa,EACtB,QAAQ,EACR,aAAoB,EACpB,WAAW,EACX,iBAA6B,EAC7B,YAAkC,EAClC,QAA4B,EAC5B,UAA6B,EAC7B,QAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,KAAK,EACL,KAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,GACX,EAAE,qBAAqB,CAAC,CAAC,CAAC,2CAoN1B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { PartnerShareCardProps } from './PartnerShareCard.types';
|
|
3
3
|
/**
|
|
4
|
-
* One card per partner on the Partner
|
|
4
|
+
* One card per partner on the Partner Detail page.
|
|
5
5
|
* - Header strip: "Partner N" badge + percentage.
|
|
6
6
|
* - Identity row: name + subtitle on the left; Contribution / Expenses pair on the right.
|
|
7
7
|
* - Optional post-sale block: Profit + share-percentage label + horizontal progress bar.
|