@cleartrip/talos-document-card 1.0.0
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/DocumentDownloadCard.d.ts +5 -0
- package/dist/DocumentDownloadCard.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/style.d.ts +39 -0
- package/dist/style.d.ts.map +1 -0
- package/dist/talos-document-card.browser.cjs.js +2 -0
- package/dist/talos-document-card.browser.cjs.js.map +1 -0
- package/dist/talos-document-card.browser.esm.js +2 -0
- package/dist/talos-document-card.browser.esm.js.map +1 -0
- package/dist/talos-document-card.cjs.js +75 -0
- package/dist/talos-document-card.cjs.js.map +1 -0
- package/dist/talos-document-card.esm.js +73 -0
- package/dist/talos-document-card.esm.js.map +1 -0
- package/dist/talos-document-card.umd.js +30674 -0
- package/dist/talos-document-card.umd.js.map +1 -0
- package/dist/type.d.ts +8 -0
- package/dist/type.d.ts.map +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDocumentDownloadCardProps } from "./type";
|
|
2
|
+
import type { IWidgetProps } from "@cleartrip/talos-widget-types";
|
|
3
|
+
declare const DocumentDownloadCard: ({ data, }: IWidgetProps<IDocumentDownloadCardProps>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default DocumentDownloadCard;
|
|
5
|
+
//# sourceMappingURL=DocumentDownloadCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentDownloadCard.d.ts","sourceRoot":"","sources":["../packages/components/document-download-card/src/DocumentDownloadCard.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAIlE,QAAA,MAAM,oBAAoB,cAEvB,aAAa,0BAA0B,CAAC,4CAsD1C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/document-download-card/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,cAAc,QAAQ,CAAC"}
|
package/dist/style.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Theme } from "@cleartrip/ct-design-components";
|
|
2
|
+
export declare const getDocumentDownloadCardStyle: (theme: Theme) => {
|
|
3
|
+
root: {
|
|
4
|
+
display: string;
|
|
5
|
+
flexDirection: string;
|
|
6
|
+
alignItems: string;
|
|
7
|
+
gap: "8px";
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
borderWidth: "1px";
|
|
10
|
+
borderStyle: "solid";
|
|
11
|
+
borderColor: string;
|
|
12
|
+
borderRadius: "12px";
|
|
13
|
+
padding: "12px";
|
|
14
|
+
width: string;
|
|
15
|
+
userSelect: string;
|
|
16
|
+
};
|
|
17
|
+
iconContainer: {
|
|
18
|
+
width: "40px";
|
|
19
|
+
height: "40px";
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
display: string;
|
|
22
|
+
alignItems: string;
|
|
23
|
+
justifyContent: string;
|
|
24
|
+
borderRadius: "8px";
|
|
25
|
+
borderColor: string;
|
|
26
|
+
borderWidth: "1px";
|
|
27
|
+
borderStyle: "solid";
|
|
28
|
+
};
|
|
29
|
+
contentContainer: {
|
|
30
|
+
display: string;
|
|
31
|
+
justifyContent: string;
|
|
32
|
+
flexDirection: string;
|
|
33
|
+
flex: number;
|
|
34
|
+
};
|
|
35
|
+
suffixIconContainer: {
|
|
36
|
+
cursor: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/document-download-card/src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAExD,eAAO,MAAM,4BAA4B,UAAW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCxD,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=require("tslib"),e=require("react/jsx-runtime"),o=require("react"),n=require("@cleartrip/ct-design-components"),i=require("@cleartrip/talos-icon"),t=require("@cleartrip/talos-use-native-actions"),s=require("@cleartrip/talos-general-utils");exports.DocumentDownloadCard=function(a){var l=a.data,c=n.useTheme(),d=t.useNativeActions().handleDocumentDownload,u=l||{},p=u.title,b=void 0===p?"":p,g=u.description,f=void 0===g?"":g,h=u.fileType,C=void 0===h?"":h,y=u.suffixIcon,x=void 0===y?"":y,v=u.resourceUrl,_=void 0===v?"":v,m=o.useRef(!1),j=o.useMemo(function(){return function(r){return{root:{display:"flex",flexDirection:"row",alignItems:"center",gap:r.spacing[2],backgroundColor:r.color.background.neutral,borderWidth:r.border.width.sm,borderStyle:r.border.style.solid,borderColor:r.color.border.default,borderRadius:r.border.radius[12],padding:r.spacing[3],width:"100%",userSelect:"none"},iconContainer:{width:r.size[10],height:r.size[10],backgroundColor:r.color.background.darkRed500,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:r.border.radius[8],borderColor:r.color.border.disabledDark,borderWidth:r.border.width.sm,borderStyle:r.border.style.solid},contentContainer:{display:"flex",justifyContent:"space-between",flexDirection:"column",flex:1},suffixIconContainer:{cursor:"pointer"}}}(c)},[c]),w=o.useCallback(function(){var r;if(_&&!m.current){if(m.current=!0,setTimeout(function(){m.current=!1},600),null===(r=s.isApp())||void 0===r?void 0:r.isMobileApp)return d(_);window.open(_,"_blank","noopener,noreferrer")}},[_,d]);return e.jsxs(n.Container,r.__assign({css:j.root},{children:[e.jsx(n.Container,r.__assign({css:j.iconContainer},{children:e.jsx(n.Typography,r.__assign({variant:"B4",color:n.TypographyColor.NEUTRAL},{children:C}))})),e.jsxs(n.Container,r.__assign({css:j.contentContainer},{children:[e.jsx(n.Typography,r.__assign({variant:"L2",color:n.TypographyColor.PRIMARY,lineClamp:1},{children:b})),e.jsx(n.Typography,r.__assign({variant:"B2",color:n.TypographyColor.SUBHEADING},{children:f}))]})),e.jsx(n.Container,r.__assign({css:j.suffixIconContainer,role:"button",onClick:w},{children:e.jsx(i.Icon,{icon:x})}))]}))};
|
|
2
|
+
//# sourceMappingURL=talos-document-card.browser.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"talos-document-card.browser.cjs.js","sources":["../packages/components/document-download-card/src/DocumentDownloadCard.tsx","../packages/components/document-download-card/src/style.ts"],"sourcesContent":[null,null],"names":["_a","data","theme","useTheme","handleDocumentDownload","useNativeActions","_b","_c","title","_d","description","_e","fileType","_f","suffixIcon","_g","resourceUrl","isClickingRef","useRef","staticStyles","useMemo","root","display","flexDirection","alignItems","gap","spacing","backgroundColor","color","background","neutral","borderWidth","border","width","sm","borderStyle","style","solid","borderColor","default","borderRadius","radius","padding","userSelect","iconContainer","size","height","darkRed500","justifyContent","disabledDark","contentContainer","flex","suffixIconContainer","cursor","getDocumentDownloadCardStyle","handleClick","useCallback","current","setTimeout","isApp","isMobileApp","window","open","_jsxs","jsxs","Container","__assign","css","children","_jsx","jsx","Typography","variant","TypographyColor","NEUTRAL","PRIMARY","lineClamp","SUBHEADING","role","onClick","Icon","icon"],"mappings":"gSAgB6B,SAACA,GAC5B,IAAAC,EAAID,EAAAC,KAEEC,EAAQC,EAAAA,WACNC,EAA2BC,4CAC7BC,EAMFL,GAAQ,CAAA,EALVM,UAAAC,OAAQ,IAAAD,EAAA,KACRE,EAAAH,EAAAI,YAAAA,OAAW,IAAAD,EAAG,GAAEA,EAChBE,EAAaL,EAAAM,SAAbA,OAAW,IAAAD,EAAA,KACXE,EAAAP,EAAAQ,WAAAA,OAAU,IAA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ACE2D,EAACC,KAAAC,YAAUC,EAAAA,SAAA,CAAAC,IAAKhD,EAAaE,MAAI,CAAA+C,SAAA,CAC/BC,EAACC,IAAAL,wBAAUE,IAAKhD,EAAayB,eAAa,CAAAwB,SACxCC,MAACE,EAAAA,WAAUL,EAAAA,SAAA,CAACM,QAAQ,KAAK5C,MAAO6C,EAAAA,gBAAgBC,SAC7C,CAAAN,SAAAxD,QAGLmD,OAACE,EAAAA,UAAUC,EAAAA,SAAA,CAAAC,IAAKhD,EAAa+B,kBAAgB,CAAAkB,SAAA,CAC3CC,MAACE,EAAAA,uBAAWC,QAAQ,KAAK5C,MAAO6C,EAAAA,gBAAgBE,QAASC,UAAW,aACjEpE,KAGH6D,EAAAC,IAACC,aAAUL,EAAAA,SAAA,CAACM,QAAQ,KAAK5C,MAAO6C,EAAAA,gBAAgBI,YAAU,CAAAT,SACvD1D,SAGL2D,MAACJ,YAASC,EAAAA,SAAA,CACRC,IAAKhD,EAAaiC,oBAClB0B,KAAK,SACLC,QAASxB,GAAW,CAAAa,SAEpBC,EAAAA,IAACW,EAAIA,KAAC,CAAAC,KAAMnE,UAIpB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as r}from"tslib";import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useRef as i,useMemo as n,useCallback as t}from"react";import{useTheme as c,Container as l,Typography as d,TypographyColor as a}from"@cleartrip/ct-design-components";import{Icon as s}from"@cleartrip/talos-icon";import{useNativeActions as u}from"@cleartrip/talos-use-native-actions";import{isApp as f}from"@cleartrip/talos-general-utils";var p=function(p){var b=p.data,m=c(),h=u().handleDocumentDownload,v=b||{},C=v.title,g=void 0===C?"":C,x=v.description,y=void 0===x?"":x,w=v.fileType,k=void 0===w?"":w,I=v.suffixIcon,D=void 0===I?"":I,R=v.resourceUrl,A=void 0===R?"":R,S=i(!1),j=n(function(){return function(r){return{root:{display:"flex",flexDirection:"row",alignItems:"center",gap:r.spacing[2],backgroundColor:r.color.background.neutral,borderWidth:r.border.width.sm,borderStyle:r.border.style.solid,borderColor:r.color.border.default,borderRadius:r.border.radius[12],padding:r.spacing[3],width:"100%",userSelect:"none"},iconContainer:{width:r.size[10],height:r.size[10],backgroundColor:r.color.background.darkRed500,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:r.border.radius[8],borderColor:r.color.border.disabledDark,borderWidth:r.border.width.sm,borderStyle:r.border.style.solid},contentContainer:{display:"flex",justifyContent:"space-between",flexDirection:"column",flex:1},suffixIconContainer:{cursor:"pointer"}}}(m)},[m]),B=t(function(){var r;if(A&&!S.current){if(S.current=!0,setTimeout(function(){S.current=!1},600),null===(r=f())||void 0===r?void 0:r.isMobileApp)return h(A);window.open(A,"_blank","noopener,noreferrer")}},[A,h]);return o(l,r({css:j.root},{children:[e(l,r({css:j.iconContainer},{children:e(d,r({variant:"B4",color:a.NEUTRAL},{children:k}))})),o(l,r({css:j.contentContainer},{children:[e(d,r({variant:"L2",color:a.PRIMARY,lineClamp:1},{children:g})),e(d,r({variant:"B2",color:a.SUBHEADING},{children:y}))]})),e(l,r({css:j.suffixIconContainer,role:"button",onClick:B},{children:e(s,{icon:D})}))]}))};export{p as DocumentDownloadCard};
|
|
2
|
+
//# sourceMappingURL=talos-document-card.browser.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"talos-document-card.browser.esm.js","sources":["../packages/components/document-download-card/src/style.ts","../packages/components/document-download-card/src/DocumentDownloadCard.tsx"],"sourcesContent":[null,null],"names":["DocumentDownloadCard","_a","data","theme","useTheme","handleDocumentDownload","useNativeActions","_b","_c","title","_d","description","_e","fileType","_f","suffixIcon","_g","resourceUrl","isClickingRef","useRef","staticStyles","useMemo","root","display","flexDirection","alignItems","gap","spacing","backgroundColor","color","background","neutral","borderWidth","border","width","sm","borderStyle","style","solid","borderColor","default","borderRadius","radius","padding","userSelect","iconContainer","size","height","darkRed500","justifyContent","disabledDark","contentContainer","flex","suffixIconContainer","cursor","getDocumentDownloadCardStyle","handleClick","useCallback","current","setTimeout","isApp","isMobileApp","window","open","_jsxs","Container","__assign","css","children","_jsx","Typography","variant","TypographyColor","NEUTRAL","PRIMARY","lineClamp","SUBHEADING","role","onClick","Icon","icon"],"mappings":"0aAEO,ICcDA,EAAuB,SAACC,GAC5B,IAAAC,EAAID,EAAAC,KAEEC,EAAQC,IACNC,EAA2BC,2BAC7BC,EAMFL,GAAQ,CAAA,EALVM,UAAAC,OAAQ,IAAAD,EAAA,KACRE,EAAAH,EAAAI,YAAAA,OAAW,IAAAD,EAAG,GAAEA,EAChBE,EAAaL,EAAAM,SAAbA,OAAW,IAAAD,EAAA,KACXE,EAAAP,EAAAQ,WAAAA,OAAU,IAAAD,EAAG,GAAEA,EACfE,EAAgBT,EAAAU,YAAhBA,OAAc,IAAAD,EAAA,KAGVE,EAAgBC,GAAO,GACvBC,EAAeC,EACnB,WAAM,OD7BkC,SAAClB,GAC3C,MAAO,CACLmB,KAAM,CACJC,QAAS,OACTC,cAAe,MACfC,WAAY,SACZC,IAAKvB,EAAMwB,QAAQ,GACnBC,gBAAiBzB,EAAM0B,MAAMC,WAAWC,QACxCC,YAAa7B,EAAM8B,OAAOC,MAAMC,GAChCC,YAAajC,EAAM8B,OAAOI,MAAMC,MAChCC,YAAapC,EAAM0B,MAAMI,OAAOO,QAChCC,aAActC,EAAM8B,OAAOS,OAAO,IAClCC,QAASxC,EAAMwB,QAAQ,GACvBO,MAAO,OACPU,WAAY,QAEdC,cAAe,CACbX,MAAO/B,EAAM2C,KAAK,IAClBC,OAAQ5C,EAAM2C,KAAK,IACnBlB,gBAAkBzB,EAAM0B,MAAMC,WAAWkB,WACzCzB,QAAS,OACTE,WAAY,SACZwB,eAAgB,SAChBR,aAActC,EAAM8B,OAAOS,OAAO,GAClCH,YAAapC,EAAM0B,MAAMI,OAAOiB,aAChClB,YAAa7B,EAAM8B,OAAOC,MAAMC,GAChCC,YAAajC,EAAM8B,OAAOI,MAAMC,OAElCa,iBAAkB,CAChB5B,QAAS,OACT0B,eAAgB,gBAChBzB,cAAe,SACf4B,KAAM,GAGRC,oBAAqB,CACnBC,OAAQ,WAGd,CCVUC,CAA6BpD,EAAM,EACzC,CAACA,IAEGqD,EAAcC,EAAY,iBAC9B,GAAKxC,IAAeC,EAAcwC,QAAlC,CAOA,GALAxC,EAAcwC,SAAU,EACxBC,WAAW,WACTzC,EAAcwC,SAAU,CACzB,EA1BkB,KA4BR,QAAPzD,EAAA2D,WAAO,IAAA3D,OAAA,EAAAA,EAAE4D,YAAa,OAAOxD,EAAuBY,GAExD6C,OAAOC,KAAK9C,EAAa,SAAU,sBATe,CAUpD,EAAG,CAACA,EAAaZ,IAEjB,OACE2D,EAACC,EAAUC,EAAA,CAAAC,IAAK/C,EAAaE,MAAI,CAAA8C,SAAA,CAC/BC,EAACJ,KAAUE,IAAK/C,EAAayB,eAAa,CAAAuB,SACxCC,EAACC,EAAUJ,EAAA,CAACK,QAAQ,KAAK1C,MAAO2C,EAAgBC,SAC7C,CAAAL,SAAAvD,QAGLmD,EAACC,EAAUC,EAAA,CAAAC,IAAK/C,EAAa+B,kBAAgB,CAAAiB,SAAA,CAC3CC,EAACC,KAAWC,QAAQ,KAAK1C,MAAO2C,EAAgBE,QAASC,UAAW,aACjElE,KAGH4D,EAACC,EAAUJ,EAAA,CAACK,QAAQ,KAAK1C,MAAO2C,EAAgBI,YAAU,CAAAR,SACvDzD,SAGL0D,EAACJ,EAASC,EAAA,CACRC,IAAK/C,EAAaiC,oBAClBwB,KAAK,SACLC,QAAStB,GAAW,CAAAY,SAEpBC,EAACU,EAAK,CAAAC,KAAMjE,UAIpB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var ctDesignComponents = require('@cleartrip/ct-design-components');
|
|
7
|
+
var talosIcon = require('@cleartrip/talos-icon');
|
|
8
|
+
var talosUseNativeActions = require('@cleartrip/talos-use-native-actions');
|
|
9
|
+
var talosGeneralUtils = require('@cleartrip/talos-general-utils');
|
|
10
|
+
|
|
11
|
+
var getDocumentDownloadCardStyle = function (theme) {
|
|
12
|
+
return {
|
|
13
|
+
root: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "row",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
gap: theme.spacing[2],
|
|
18
|
+
backgroundColor: theme.color.background.neutral,
|
|
19
|
+
borderWidth: theme.border.width.sm,
|
|
20
|
+
borderStyle: theme.border.style.solid,
|
|
21
|
+
borderColor: theme.color.border.default,
|
|
22
|
+
borderRadius: theme.border.radius[12],
|
|
23
|
+
padding: theme.spacing[3],
|
|
24
|
+
width: "100%",
|
|
25
|
+
userSelect: "none",
|
|
26
|
+
},
|
|
27
|
+
iconContainer: {
|
|
28
|
+
width: theme.size[10],
|
|
29
|
+
height: theme.size[10],
|
|
30
|
+
backgroundColor: theme.color.background.darkRed500,
|
|
31
|
+
display: "flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
borderRadius: theme.border.radius[8],
|
|
35
|
+
borderColor: theme.color.border.disabledDark,
|
|
36
|
+
borderWidth: theme.border.width.sm,
|
|
37
|
+
borderStyle: theme.border.style.solid,
|
|
38
|
+
},
|
|
39
|
+
contentContainer: {
|
|
40
|
+
display: "flex",
|
|
41
|
+
justifyContent: "space-between",
|
|
42
|
+
flexDirection: "column",
|
|
43
|
+
flex: 1,
|
|
44
|
+
},
|
|
45
|
+
suffixIconContainer: {
|
|
46
|
+
cursor: "pointer",
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var CLICK_GUARD_MS = 600;
|
|
52
|
+
var DocumentDownloadCard = function (_a) {
|
|
53
|
+
var data = _a.data;
|
|
54
|
+
var theme = ctDesignComponents.useTheme();
|
|
55
|
+
var handleDocumentDownload = talosUseNativeActions.useNativeActions().handleDocumentDownload;
|
|
56
|
+
var _b = data || {}, _c = _b.title, title = _c === void 0 ? "" : _c, _d = _b.description, description = _d === void 0 ? "" : _d, _e = _b.fileType, fileType = _e === void 0 ? "" : _e, _f = _b.suffixIcon, suffixIcon = _f === void 0 ? "" : _f, _g = _b.resourceUrl, resourceUrl = _g === void 0 ? "" : _g;
|
|
57
|
+
var isClickingRef = react.useRef(false);
|
|
58
|
+
var staticStyles = react.useMemo(function () { return getDocumentDownloadCardStyle(theme); }, [theme]);
|
|
59
|
+
var handleClick = react.useCallback(function () {
|
|
60
|
+
var _a;
|
|
61
|
+
if (!resourceUrl || isClickingRef.current)
|
|
62
|
+
return;
|
|
63
|
+
isClickingRef.current = true;
|
|
64
|
+
setTimeout(function () {
|
|
65
|
+
isClickingRef.current = false;
|
|
66
|
+
}, CLICK_GUARD_MS);
|
|
67
|
+
if ((_a = talosGeneralUtils.isApp()) === null || _a === void 0 ? void 0 : _a.isMobileApp)
|
|
68
|
+
return handleDocumentDownload(resourceUrl);
|
|
69
|
+
window.open(resourceUrl, "_blank", "noopener,noreferrer");
|
|
70
|
+
}, [resourceUrl, handleDocumentDownload]);
|
|
71
|
+
return (jsxRuntime.jsxs(ctDesignComponents.Container, tslib.__assign({ css: staticStyles.root }, { children: [jsxRuntime.jsx(ctDesignComponents.Container, tslib.__assign({ css: staticStyles.iconContainer }, { children: jsxRuntime.jsx(ctDesignComponents.Typography, tslib.__assign({ variant: "B4", color: ctDesignComponents.TypographyColor.NEUTRAL }, { children: fileType })) })), jsxRuntime.jsxs(ctDesignComponents.Container, tslib.__assign({ css: staticStyles.contentContainer }, { children: [jsxRuntime.jsx(ctDesignComponents.Typography, tslib.__assign({ variant: "L2", color: ctDesignComponents.TypographyColor.PRIMARY, lineClamp: 1 }, { children: title })), jsxRuntime.jsx(ctDesignComponents.Typography, tslib.__assign({ variant: "B2", color: ctDesignComponents.TypographyColor.SUBHEADING }, { children: description }))] })), jsxRuntime.jsx(ctDesignComponents.Container, tslib.__assign({ css: staticStyles.suffixIconContainer, role: "button", onClick: handleClick }, { children: jsxRuntime.jsx(talosIcon.Icon, { icon: suffixIcon }) }))] })));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.DocumentDownloadCard = DocumentDownloadCard;
|
|
75
|
+
//# sourceMappingURL=talos-document-card.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"talos-document-card.cjs.js","sources":["../packages/components/document-download-card/src/style.ts","../packages/components/document-download-card/src/DocumentDownloadCard.tsx"],"sourcesContent":[null,null],"names":["useTheme","useNativeActions","useRef","useMemo","useCallback","isApp","_jsxs","Container","__assign","_jsx","Typography","TypographyColor","Icon"],"mappings":";;;;;;;;;;AAEO,IAAM,4BAA4B,GAAG,UAAC,KAAY,EAAA;IACvD,OAAO;AACL,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,aAAa,EAAE,KAAK;AACpB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACrB,YAAA,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO;AAC/C,YAAA,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;AAClC,YAAA,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;AACrC,YAAA,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;YACvC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;AACrC,YAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACzB,YAAA,KAAK,EAAE,MAAM;AACb,YAAA,UAAU,EAAE,MAAM;AACnB,SAAA;AACD,QAAA,aAAa,EAAE;AACb,YAAA,KAAK,EAAE,KAAK,CAAC,IAAI,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AAS,mBAAC,GAAG,EAAE,YAAY,CAAC,aAAa,EAAA,EAAA,EAAA,QAAA,EACxCE,eAACC,6BAAU,EAAAF,cAAA,CAAA,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAEG,kCAAe,CAAC,OAAO,EACpD,EAAA,EAAA,QAAA,EAAA,QAAQ,IACE,EACH,CAAA,CAAA,EACZL,eAAC,CAAAC,4BAAS,EAACC,cAAA,CAAA,EAAA,GAAG,EAAE,YAAY,CAAC,gBAAgB,EAAA,EAAA,EAAA,QAAA,EAAA,CAC3CC,cAAC,CAAAC,6BAAU,mBAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAEC,kCAAe,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,gBAClE,KAAK,EAAA,CAAA,CACK,EAEbF,cAAA,CAACC,6BAAU,EAAAF,cAAA,CAAA,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAEG,kCAAe,CAAC,UAAU,EAAA,EAAA,EAAA,QAAA,EACvD,WAAW,EAAA,CAAA,CACD,CACH,EAAA,CAAA,CAAA,EACZF,eAACF,4BAAS,EAAAC,cAAA,CAAA,EACR,GAAG,EAAE,YAAY,CAAC,mBAAmB,EACrC,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,WAAW,EAAA,EAAA,EAAA,QAAA,EAEpBC,cAAC,CAAAG,cAAI,EAAC,EAAA,IAAI,EAAE,UAAU,EAAI,CAAA,EAAA,CAAA,CAChB,CACF,EAAA,CAAA,CAAA,EACZ;AACJ;;;;"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useRef, useMemo, useCallback } from 'react';
|
|
4
|
+
import { useTheme, Container, Typography, TypographyColor } from '@cleartrip/ct-design-components';
|
|
5
|
+
import { Icon } from '@cleartrip/talos-icon';
|
|
6
|
+
import { useNativeActions } from '@cleartrip/talos-use-native-actions';
|
|
7
|
+
import { isApp } from '@cleartrip/talos-general-utils';
|
|
8
|
+
|
|
9
|
+
var getDocumentDownloadCardStyle = function (theme) {
|
|
10
|
+
return {
|
|
11
|
+
root: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "row",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
gap: theme.spacing[2],
|
|
16
|
+
backgroundColor: theme.color.background.neutral,
|
|
17
|
+
borderWidth: theme.border.width.sm,
|
|
18
|
+
borderStyle: theme.border.style.solid,
|
|
19
|
+
borderColor: theme.color.border.default,
|
|
20
|
+
borderRadius: theme.border.radius[12],
|
|
21
|
+
padding: theme.spacing[3],
|
|
22
|
+
width: "100%",
|
|
23
|
+
userSelect: "none",
|
|
24
|
+
},
|
|
25
|
+
iconContainer: {
|
|
26
|
+
width: theme.size[10],
|
|
27
|
+
height: theme.size[10],
|
|
28
|
+
backgroundColor: theme.color.background.darkRed500,
|
|
29
|
+
display: "flex",
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
justifyContent: "center",
|
|
32
|
+
borderRadius: theme.border.radius[8],
|
|
33
|
+
borderColor: theme.color.border.disabledDark,
|
|
34
|
+
borderWidth: theme.border.width.sm,
|
|
35
|
+
borderStyle: theme.border.style.solid,
|
|
36
|
+
},
|
|
37
|
+
contentContainer: {
|
|
38
|
+
display: "flex",
|
|
39
|
+
justifyContent: "space-between",
|
|
40
|
+
flexDirection: "column",
|
|
41
|
+
flex: 1,
|
|
42
|
+
},
|
|
43
|
+
suffixIconContainer: {
|
|
44
|
+
cursor: "pointer",
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var CLICK_GUARD_MS = 600;
|
|
50
|
+
var DocumentDownloadCard = function (_a) {
|
|
51
|
+
var data = _a.data;
|
|
52
|
+
var theme = useTheme();
|
|
53
|
+
var handleDocumentDownload = useNativeActions().handleDocumentDownload;
|
|
54
|
+
var _b = data || {}, _c = _b.title, title = _c === void 0 ? "" : _c, _d = _b.description, description = _d === void 0 ? "" : _d, _e = _b.fileType, fileType = _e === void 0 ? "" : _e, _f = _b.suffixIcon, suffixIcon = _f === void 0 ? "" : _f, _g = _b.resourceUrl, resourceUrl = _g === void 0 ? "" : _g;
|
|
55
|
+
var isClickingRef = useRef(false);
|
|
56
|
+
var staticStyles = useMemo(function () { return getDocumentDownloadCardStyle(theme); }, [theme]);
|
|
57
|
+
var handleClick = useCallback(function () {
|
|
58
|
+
var _a;
|
|
59
|
+
if (!resourceUrl || isClickingRef.current)
|
|
60
|
+
return;
|
|
61
|
+
isClickingRef.current = true;
|
|
62
|
+
setTimeout(function () {
|
|
63
|
+
isClickingRef.current = false;
|
|
64
|
+
}, CLICK_GUARD_MS);
|
|
65
|
+
if ((_a = isApp()) === null || _a === void 0 ? void 0 : _a.isMobileApp)
|
|
66
|
+
return handleDocumentDownload(resourceUrl);
|
|
67
|
+
window.open(resourceUrl, "_blank", "noopener,noreferrer");
|
|
68
|
+
}, [resourceUrl, handleDocumentDownload]);
|
|
69
|
+
return (jsxs(Container, __assign({ css: staticStyles.root }, { children: [jsx(Container, __assign({ css: staticStyles.iconContainer }, { children: jsx(Typography, __assign({ variant: "B4", color: TypographyColor.NEUTRAL }, { children: fileType })) })), jsxs(Container, __assign({ css: staticStyles.contentContainer }, { children: [jsx(Typography, __assign({ variant: "L2", color: TypographyColor.PRIMARY, lineClamp: 1 }, { children: title })), jsx(Typography, __assign({ variant: "B2", color: TypographyColor.SUBHEADING }, { children: description }))] })), jsx(Container, __assign({ css: staticStyles.suffixIconContainer, role: "button", onClick: handleClick }, { children: jsx(Icon, { icon: suffixIcon }) }))] })));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export { DocumentDownloadCard };
|
|
73
|
+
//# sourceMappingURL=talos-document-card.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"talos-document-card.esm.js","sources":["../packages/components/document-download-card/src/style.ts","../packages/components/document-download-card/src/DocumentDownlo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