@iqworksai/common-components 0.1.7 → 0.1.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/CHANGELOG.md +27 -27
- package/README.md +513 -398
- package/dist/.gitkeep +3 -3
- package/dist/components/Logos/index.d.ts +30 -0
- package/dist/components/Logos/index.d.ts.map +1 -0
- package/dist/index-CTcT_r8P.cjs +159 -0
- package/dist/{index-BT9NbQL6.mjs → index-D5bh8vfG.js} +1 -1
- package/dist/{index-DP52KpOS.mjs → index-Wp7zHdHm.js} +10042 -9973
- package/dist/{index-DozkkyY_.js → index-z3URHOIw.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +78 -75
- package/dist/{jquery-PS7a9kWs.mjs → jquery-B3k-KdWY.js} +1 -1
- package/dist/{jquery-Cg-ZYQCq.js → jquery-DkYZhXT6.cjs} +1 -1
- package/dist/{jstree-KNvGgmMd.js → jstree-B3NPxTf-.cjs} +1 -1
- package/dist/{jstree-C7qSDVkF.mjs → jstree-Be7CGFxz.js} +1 -1
- package/package.json +130 -129
- package/dist/index-6n5-C3qh.js +0 -159
- /package/dist/{style.css → assets/style-C92vHVlQ.css} +0 -0
package/dist/.gitkeep
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# This directory is for static assets used by Storybook
|
|
2
|
-
# Add any static files (images, fonts, etc.) here
|
|
3
|
-
|
|
1
|
+
# This directory is for static assets used by Storybook
|
|
2
|
+
# Add any static files (images, fonts, etc.) here
|
|
3
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type ProductKey = 'discover-iq' | 'classify-iq' | 'retain-iq' | 'protect-iq' | 'search-iq' | 'consent-iq' | 'iqworks';
|
|
2
|
+
interface LogoUrls {
|
|
3
|
+
dark: string;
|
|
4
|
+
light: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ProductLogoProps {
|
|
7
|
+
/** The product to display the logo for */
|
|
8
|
+
product: ProductKey;
|
|
9
|
+
/** Optional CSS class name */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Width of the logo (default: 120) */
|
|
12
|
+
width?: number;
|
|
13
|
+
/** Height of the logo (default: 30) */
|
|
14
|
+
height?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* ProductLogo component displays the appropriate logo for an IQWorks product.
|
|
18
|
+
* Automatically switches between dark and light logos based on the current theme.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ProductLogo({ product, className, width, height, }: ProductLogoProps): import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
+
/**
|
|
22
|
+
* Get the logo URLs for a product (for custom implementations)
|
|
23
|
+
*/
|
|
24
|
+
export declare function getProductLogoUrls(product: ProductKey): LogoUrls | null;
|
|
25
|
+
/**
|
|
26
|
+
* Get the display name for a product
|
|
27
|
+
*/
|
|
28
|
+
export declare function getProductName(product: ProductKey): string;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Logos/index.tsx"],"names":[],"mappings":"AAmBA,MAAM,MAAM,UAAU,GAClB,aAAa,GACb,aAAa,GACb,WAAW,GACX,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,SAAS,CAAC;AAEd,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AA2CD,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,OAAO,EAAE,UAAU,CAAC;IACpB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,SAAc,EACd,KAAW,EACX,MAAW,GACZ,EAAE,gBAAgB,kDAyBlB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAEvE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAE1D"}
|