@pushwoosh/dumb-components 0.0.9 → 0.0.11
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/EmailTemplatePreview/components/NoEmailTemplatePreview/NoEmailTemplatePreview.d.ts +2 -0
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/NoEmailTemplatePreview.js +20 -0
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/assets/PW_logo.svg +5 -0
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/index.d.ts +1 -0
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/index.js +1 -0
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/styled.d.ts +26 -0
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/styled.js +11 -0
- package/EmailTemplatePreview/index.d.ts +1 -0
- package/EmailTemplatePreview/index.js +2 -1
- package/PushPreview/PushPreview.d.ts +3 -0
- package/PushPreview/PushPreview.js +34 -0
- package/PushPreview/constants/urls.d.ts +2 -0
- package/PushPreview/constants/urls.js +2 -0
- package/PushPreview/helpers/helpers.d.ts +2 -0
- package/PushPreview/helpers/helpers.js +10 -0
- package/PushPreview/index.d.ts +1 -0
- package/PushPreview/index.js +1 -0
- package/PushPreview/styled.d.ts +24 -0
- package/PushPreview/styled.js +39 -0
- package/PushPreview/types.d.ts +14 -0
- package/PushPreview/types.js +1 -0
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/package.json +4 -3
- package/styles.d.ts +8 -0
- package/styles.js +17 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Spacing } from '@pushwoosh/kit-constants';
|
|
3
|
+
import { Vertical } from '@pushwoosh/kit-helpers';
|
|
4
|
+
import pwLogo from './assets/PW_logo.svg';
|
|
5
|
+
import { Container, PreviewMock } from './styled';
|
|
6
|
+
import { LockedText, LockedTitle } from '../../../styles';
|
|
7
|
+
export const NoEmailTemplatePreview = () => {
|
|
8
|
+
return React.createElement(Container, {
|
|
9
|
+
"$gap": Spacing.S4,
|
|
10
|
+
"$padding": `${Spacing.S4} ${Spacing.S4} ${Spacing.S7}`
|
|
11
|
+
}, React.createElement(PreviewMock, {
|
|
12
|
+
"$alignItems": "center",
|
|
13
|
+
"$justifyContent": "center"
|
|
14
|
+
}, React.createElement("img", {
|
|
15
|
+
src: pwLogo,
|
|
16
|
+
alt: "Application logo"
|
|
17
|
+
})), React.createElement(Vertical, null, React.createElement(LockedTitle, null, "Content missed..."), React.createElement(LockedText, {
|
|
18
|
+
"$small": true
|
|
19
|
+
}, "Might be old data or deleted presets")));
|
|
20
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="40" height="41" viewBox="0 0 40 41" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="logo - for light bg - outlines" opacity="0.5">
|
|
3
|
+
<path id="shape" fill-rule="evenodd" clip-rule="evenodd" d="M10.81 7.48828C9.39825 7.48828 7.64091 8.185 7.10251 10.4363C6.49888 12.9604 5.82997 15.8607 5.34255 17.974L5.34253 17.9741L5.17486 18.701C4.98276 19.5333 5.1452 20.186 5.45998 20.6098C5.76745 21.0238 6.30462 21.335 7.11527 21.335H7.98878C8.18083 21.335 8.32342 21.5129 8.28158 21.7003L8.09124 22.5529L7.83603 23.6959C7.77636 23.9632 8.0766 24.1641 8.30092 24.007L11.858 21.5159L12.0388 21.3892C12.0892 21.3539 12.1493 21.335 12.2109 21.335H12.4316H14.2329C14.3521 21.335 14.4594 21.2639 14.5108 21.1564C15.6034 18.8715 17.9658 17.7247 19.7813 17.7246L24.0602 17.7246C24.1843 17.7246 24.2911 17.6368 24.3151 17.515C24.4377 16.8934 24.6059 16.0428 24.7882 15.1273C25.152 13.3003 25.5747 11.2022 25.8028 10.1552C25.9755 9.3618 25.8122 8.70347 25.4714 8.26022C25.1388 7.82773 24.5519 7.48828 23.6393 7.48828H23.6253H23.6113H23.5971H23.5828H23.5683H23.5537H23.5389H23.524H23.5089H23.4937H23.4784H23.4629H23.4473H23.4316H23.4157H23.3997H23.3835H23.3672H23.3508H23.3342H23.3175H23.3007H23.2837H23.2666H23.2494H23.232H23.2145H23.1969H23.1791H23.1612H23.1432H23.1251H23.1068H23.0884H23.0699H23.0513H23.0325H23.0136H22.9946H22.9755H22.9562H22.9368H22.9173H22.8977H22.878H22.8581H22.8381H22.818H22.7978H22.7775H22.7571H22.7365H22.7158H22.695H22.6741H22.6531H22.632H22.6107H22.5894H22.5679H22.5463H22.5247H22.5029H22.481H22.4589H22.4368H22.4146H22.3923H22.3698H22.3473H22.3247H22.3019H22.2791H22.2561H22.2331H22.2099H22.1866H22.1633H22.1398H22.1163H22.0926H22.0689H22.045H22.0211H21.997H21.9729H21.9487H21.9244H21.8999H21.8754H21.8508H21.8261H21.8014H21.7765H21.7515H21.7265H21.7013H21.6761H21.6508H21.6254H21.5999H21.5743H21.5486H21.5229H21.4971H21.4712H21.4452H21.4191H21.3929H21.3667H21.3404H21.314H21.2875H21.2609H21.2343H21.2076H21.1808H21.1539H21.127H21.1H21.0729H21.0457H21.0185H20.9912H20.9638H20.9364H20.9089H20.8813H20.8536H20.8259H20.7981H20.7702H20.7423H20.7143H20.6862H20.6581H20.6299H20.6016H20.5733H20.5449H20.5165H20.488H20.4594H20.4308H20.4021H20.3733H20.3445H20.3157H20.2867H20.2578H20.2287H20.1996H20.1705H20.1413H20.112H20.0827H20.0534H20.024H19.9945H19.965H19.9354H19.9058H19.8761H19.8464H19.8167H19.7869H19.757H19.7271H19.6972H19.6672H19.6371H19.6071H19.5769H19.5468H19.5166H19.4863H19.456H19.4257H19.3953H19.3649H19.3345H19.304H19.2735H19.2429H19.2123H19.1817H19.151H19.1204H19.0896H19.0589H19.0281H18.9972H18.9664H18.9355H18.9046H18.8736H18.8427H18.8117H18.7806H18.7496H18.7185H18.6874H18.6562H18.6251H18.5939H18.5627H18.5315H18.5002H18.469H18.4377H18.4063H18.375H18.3437H18.3123H18.2809H18.2495H18.2181H18.1866H18.1552H18.1237H18.0922H18.0607H18.0292H17.9977H17.9662H17.9346H17.9031H17.8715H17.8399H17.8083H17.7767H17.7451H17.7135H17.6819H17.6503H17.6187H17.587H17.5554H17.5238H17.4921H17.4605H17.4288H17.3972H17.3656H17.3339H17.3023H17.2706H17.239H17.2073H17.1757H17.1441H17.1124H17.0808H17.0492H17.0176H16.986H16.9544H16.9228H16.8912H16.8596H16.8281H16.7965H16.765H16.7334H16.7019H16.6704H16.6389H16.6075H16.576H16.5445H16.5131H16.4817H16.4503H16.4189H16.3875H16.3562H16.3249H16.2936H16.2623H16.231H16.1998H16.1685H16.1373H16.1062H16.075H16.0439H16.0128H15.9817H15.9507H15.9196H15.8887H15.8577H15.8268H15.7958H15.765H15.7341H15.7033H15.6725H15.6418H15.6111H15.5804H15.5497H15.5191H15.4885H15.458H15.4275H15.397H15.3666H15.3362H15.3058H15.2755H15.2452H15.215H15.1848H15.1547H15.1245H15.0945H15.0645H15.0345H15.0045H14.9747H14.9448H14.915H14.8853H14.8556H14.8259H14.7963H14.7668H14.7373H14.7078H14.6784H14.6491H14.6198H14.5906H14.5614H14.5323H14.5032H14.4742H14.4452H14.4163H14.3875H14.3587H14.3299H14.3013H14.2727H14.2441H14.2156H14.1872H14.1588H14.1305H14.1023H14.0741H14.046H14.018H13.99H13.9621H13.9342H13.9064H13.8787H13.8511H13.8235H13.796H13.7686H13.7412H13.714H13.6868H13.6596H13.6325H13.6056H13.5786H13.5518H13.525H13.4983H13.4717H13.4452H13.4188H13.3924H13.3661H13.3399H13.3137H13.2877H13.2617H13.2358H13.21H13.1843H13.1587H13.1331H13.1077H13.0823H13.057H13.0318H13.0067H12.9817H12.9567H12.9319H12.9071H12.8825H12.8579H12.8334H12.809H12.7847H12.7605H12.7364H12.7124H12.6885H12.6647H12.641H12.6173H12.5938H12.5704H12.5471H12.5238H12.5007H12.4777H12.4548H12.4319H12.4092H12.3866H12.3641H12.3417H12.3194H12.2972H12.2751H12.2532H12.2313H12.2095H12.1879H12.1663H12.1449H12.1236H12.1024H12.0813H12.0603H12.0394H12.0187H11.998H11.9775H11.9571H11.9368H11.9166H11.8966H11.8766H11.8568H11.8371H11.8175H11.7981H11.7787H11.7595H11.7404H11.7214H11.7026H11.6838H11.6652H11.6468H11.6284H11.6102H11.5921H11.5741H11.5563H11.5386H11.521H11.5035H11.4862H11.469H11.452H11.435H11.4182H11.4016H11.3851H11.3687H11.3524H11.3363H11.3203H11.3045H11.2888H11.2732H11.2578H11.2425H11.2273H11.2123H11.1974H11.1827H11.1681H11.1537H11.1394H11.1253H11.1113H11.0974H11.0837H11.0701H11.0567H11.0434H11.0303H11.0173H11.0045H10.9918H10.9793H10.9669H10.9547H10.9427H10.9307H10.919H10.9074H10.8959H10.8847H10.8735H10.8625H10.8517H10.8411H10.8306H10.8202H10.81ZM13.4802 23.335C13.6735 23.335 13.8164 23.5152 13.7722 23.7034C13.6588 24.1863 13.5422 24.6822 13.425 25.1808L13.4234 25.1876C12.979 27.0776 12.5258 29.0051 12.2077 30.4076C11.583 33.1623 13.7475 35.5065 16.0636 35.5065H16.0735H16.0837H16.094H16.1046H16.1153H16.1262H16.1372H16.1485H16.1599H16.1715H16.1833H16.1953H16.2074H16.2197H16.2322H16.2449H16.2577H16.2707H16.2839H16.2973H16.3108H16.3245H16.3384H16.3524H16.3666H16.381H16.3955H16.4102H16.4251H16.4401H16.4553H16.4707H16.4862H16.5019H16.5177H16.5337H16.5499H16.5662H16.5826H16.5993H16.6161H16.633H16.6501H16.6674H16.6848H16.7023H16.72H16.7379H16.7559H16.7741H16.7924H16.8108H16.8294H16.8482H16.8671H16.8861H16.9053H16.9246H16.9441H16.9637H16.9835H17.0034H17.0234H17.0436H17.0639H17.0844H17.105H17.1257H17.1466H17.1676H17.1887H17.21H17.2314H17.2529H17.2746H17.2964H17.3183H17.3404H17.3625H17.3849H17.4073H17.4299H17.4526H17.4754H17.4983H17.5214H17.5446H17.5679H17.5913H17.6149H17.6385H17.6623H17.6862H17.7103H17.7344H17.7587H17.783H17.8075H17.8321H17.8569H17.8817H17.9066H17.9317H17.9569H17.9821H18.0075H18.033H18.0586H18.0843H18.1101H18.136H18.1621H18.1882H18.2144H18.2407H18.2672H18.2937H18.3204H18.3471H18.3739H18.4009H18.4279H18.455H18.4822H18.5095H18.537H18.5645H18.5921H18.6198H18.6475H18.6754H18.7034H18.7314H18.7596H18.7878H18.8161H18.8445H18.873H18.9016H18.9302H18.959H18.9878H19.0167H19.0457H19.0748H19.1039H19.1332H19.1625H19.1919H19.2213H19.2509H19.2805H19.3102H19.3399H19.3698H19.3997H19.4297H19.4597H19.4898H19.52H19.5503H19.5806H19.611H19.6415H19.672H19.7026H19.7333H19.764H19.7948H19.8257H19.8566H19.8876H19.9186H19.9497H19.9809H20.0121H20.0433H20.0747H20.1061H20.1375H20.169H20.2005H20.2321H20.2638H20.2955H20.3273H20.3591H20.3909H20.4228H20.4548H20.4868H20.5188H20.5509H20.5831H20.6153H20.6475H20.6798H20.7121H20.7444H20.7768H20.8092H20.8417H20.8742H20.9068H20.9394H20.972H21.0047H21.0374H21.0701H21.1029H21.1357H21.1685H21.2013H21.2342H21.2672H21.3001H21.3331H21.3661H21.3991H21.4322H21.4653H21.4984H21.5315H21.5647H21.5979H21.6311H21.6643H21.6975H21.7308H21.7641H21.7974H21.8307H21.8641H21.8974H21.9308H21.9642H21.9976H22.031H22.0644H22.0978H22.1313H22.1647H22.1982H22.2317H22.2652H22.2987H22.3322H22.3657H22.3992H22.4327H22.4662H22.4997H22.5332H22.5668H22.6003H22.6338H22.6674H22.7009H22.7344H22.7679H22.8014H22.835H22.8685H22.902H22.9355H22.969H23.0024H23.0359H23.0694H23.1028H23.1363H23.1697H23.2031H23.2365H23.2699H23.3033H23.3367H23.37H23.4034H23.4367H23.47H23.5033H23.5365H23.5698H23.603H23.6362H23.6694H23.7025H23.7356H23.7687H23.8018H23.8349H23.8679H23.9009H23.9339H23.9668H23.9997H24.0326H24.0655H24.0983H24.1311H24.1638H24.1966H24.2292H24.2619H24.2945H24.3271H24.3596H24.3921H24.4246H24.457H24.4894H24.5218H24.5541H24.5863H24.6185H24.6507H24.6828H24.7149H24.747H24.7789H24.8109H24.8428H24.8746H24.9064H24.9382H24.9699H25.0015H25.0331H25.0646H25.0961H25.1275H25.1589H25.1902H25.2215H25.2527H25.2838H25.3149H25.3459H25.3769H25.4078H25.4386H25.4694H25.5001H25.5307H25.5613H25.5918H25.6223H25.6527H25.683H25.7132H25.7434H25.7735H25.8036H25.8335H25.8634H25.8932H25.923H25.9526H25.9822H26.0118H26.0412H26.0706H26.0999H26.1291H26.1582H26.1872H26.2162H26.2451H26.2739H26.3026H26.3313H26.3598H26.3883H26.4167H26.445H26.4732H26.5013H26.5293H26.5573H26.5851H26.6129H26.6405H26.6681H26.6956H26.723H26.7503H26.7775H26.8046H26.8316H26.8585H26.8853H26.912H26.9386H26.9651H26.9915H27.0178H27.044H27.0701H27.0961H27.122H27.1478H27.1735H27.1991H27.2245H27.2499H27.2751H27.3003H27.3253H27.3502H27.375H27.3997H27.4243H27.4487H27.4731H27.4973H27.5214H27.5454H27.5693H27.5931H27.6167H27.6402H27.6636H27.6869H27.71H27.7331H27.756H27.7788H27.8014H27.824H27.8464H27.8687H27.8908H27.9128H27.9347H27.9565H27.9781H27.9996H28.021H28.0422H28.0633H28.0843H28.1051H28.1258H28.1464H28.1668H28.1871H28.2072H28.2272H28.2471H28.2668H28.2864H28.3058H28.3251H28.3443H28.3633H28.3821H28.4008H28.4194H28.4378H28.4561H28.4742H28.4922H28.51H28.5277H28.5452H28.5626H28.5798H28.5968H28.6137H28.6305H28.6471H28.6635H28.6798H28.6959H28.7119H28.7277H28.7433H28.7588H28.7741H28.7892H28.8042H28.8191H28.8337H28.8482H28.8625H28.8767H28.8907H28.9045H28.9182H28.9316H28.9449H28.9581H28.9711H28.9838H28.9965H29.0089H29.0212H29.0333H29.0452H29.0569H29.0685H29.0799H29.0911H29.1021H29.113H29.1236H29.1341H29.1444H29.1545H29.1644H29.1742C31.22 35.5065 34.1146 33.9197 34.8381 30.8323C35.053 29.9154 35.2848 28.9235 35.518 27.9251L35.519 27.9211L35.5193 27.9195C35.9414 26.113 36.3684 24.2859 36.7089 22.8445C37.0307 21.4825 36.8027 20.192 36.0671 19.2243C35.6259 18.6437 35.0329 18.2206 34.348 17.9745C34.1982 17.9208 34.105 17.7666 34.1395 17.6113L34.6133 15.482C34.8924 14.2278 33.4761 13.2916 32.4315 14.0397L27.3654 17.6685C27.3144 17.705 27.2534 17.7246 27.1907 17.7246L26.6277 17.7246C26.4643 17.7246 26.3417 17.5755 26.3733 17.4152C26.4815 16.8677 26.6115 16.2114 26.7497 15.5179C27.1145 13.686 27.5335 11.6069 27.7569 10.5808C28.0357 9.30091 27.8091 8.01941 27.0569 7.04112C26.2964 6.05207 25.0872 5.48828 23.6393 5.48828H23.6253H23.6113H23.5971H23.5828H23.5683H23.5537H23.5389H23.524H23.5089H23.4937H23.4784H23.4629H23.4473H23.4316H23.4157H23.3997H23.3835H23.3672H23.3508H23.3342H23.3175H23.3007H23.2837H23.2666H23.2494H23.232H23.2145H23.1969H23.1791H23.1612H23.1432H23.1251H23.1068H23.0884H23.0699H23.0513H23.0325H23.0136H22.9946H22.9755H22.9562H22.9368H22.9173H22.8977H22.878H22.8581H22.8381H22.818H22.7978H22.7775H22.7571H22.7365H22.7158H22.695H22.6741H22.6531H22.632H22.6107H22.5894H22.5679H22.5463H22.5247H22.5029H22.481H22.4589H22.4368H22.4146H22.3923H22.3698H22.3473H22.3247H22.3019H22.2791H22.2561H22.2331H22.2099H22.1866H22.1633H22.1398H22.1163H22.0926H22.0689H22.045H22.0211H21.997H21.9729H21.9487H21.9244H21.8999H21.8754H21.8508H21.8261H21.8014H21.7765H21.7515H21.7265H21.7013H21.6761H21.6508H21.6254H21.5999H21.5743H21.5486H21.5229H21.4971H21.4712H21.4452H21.4191H21.3929H21.3667H21.3404H21.314H21.2875H21.2609H21.2343H21.2076H21.1808H21.1539H21.127H21.1H21.0729H21.0457H21.0185H20.9912H20.9638H20.9364H20.9089H20.8813H20.8536H20.8259H20.7981H20.7702H20.7423H20.7143H20.6862H20.6581H20.6299H20.6016H20.5733H20.5449H20.5165H20.488H20.4594H20.4308H20.4021H20.3733H20.3445H20.3157H20.2867H20.2578H20.2287H20.1996H20.1705H20.1413H20.112H20.0827H20.0534H20.024H19.9945H19.965H19.9354H19.9058H19.8761H19.8464H19.8167H19.7869H19.757H19.7271H19.6972H19.6672H19.6371H19.6071H19.5769H19.5468H19.5166H19.4863H19.456H19.4257H19.3953H19.3649H19.3345H19.304H19.2735H19.2429H19.2123H19.1817H19.151H19.1204H19.0896H19.0589H19.0281H18.9972H18.9664H18.9355H18.9046H18.8736H18.8427H18.8117H18.7806H18.7496H18.7185H18.6874H18.6562H18.6251H18.5939H18.5627H18.5315H18.5002H18.469H18.4377H18.4063H18.375H18.3437H18.3123H18.2809H18.2495H18.2181H18.1866H18.1552H18.1237H18.0922H18.0607H18.0292H17.9977H17.9662H17.9346H17.9031H17.8715H17.8399H17.8083H17.7767H17.7451H17.7135H17.6819H17.6503H17.6187H17.587H17.5554H17.5238H17.4921H17.4605H17.4288H17.3972H17.3656H17.3339H17.3023H17.2706H17.239H17.2073H17.1757H17.1441H17.1124H17.0808H17.0492H17.0176H16.986H16.9544H16.9228H16.8912H16.8596H16.8281H16.7965H16.765H16.7334H16.7019H16.6704H16.6389H16.6075H16.576H16.5445H16.5131H16.4817H16.4503H16.4189H16.3875H16.3562H16.3249H16.2936H16.2623H16.231H16.1998H16.1685H16.1373H16.1062H16.075H16.0439H16.0128H15.9817H15.9507H15.9196H15.8887H15.8577H15.8268H15.7958H15.765H15.7341H15.7033H15.6725H15.6418H15.6111H15.5804H15.5497H15.5191H15.4885H15.458H15.4275H15.397H15.3666H15.3362H15.3058H15.2755H15.2452H15.215H15.1848H15.1547H15.1245H15.0945H15.0645H15.0345H15.0045H14.9747H14.9448H14.915H14.8853H14.8556H14.8259H14.7963H14.7668H14.7373H14.7078H14.6784H14.6491H14.6198H14.5906H14.5614H14.5323H14.5032H14.4742H14.4452H14.4163H14.3875H14.3587H14.3299H14.3013H14.2727H14.2441H14.2156H14.1872H14.1588H14.1305H14.1023H14.0741H14.046H14.018H13.99H13.9621H13.9342H13.9064H13.8787H13.8511H13.8235H13.796H13.7686H13.7412H13.714H13.6868H13.6596H13.6325H13.6056H13.5786H13.5518H13.525H13.4983H13.4717H13.4452H13.4188H13.3924H13.3661H13.3399H13.3137H13.2877H13.2617H13.2358H13.21H13.1843H13.1587H13.1331H13.1077H13.0823H13.057H13.0318H13.0067H12.9817H12.9567H12.9319H12.9071H12.8825H12.8579H12.8334H12.809H12.7847H12.7605H12.7364H12.7124H12.6885H12.6647H12.641H12.6173H12.5938H12.5704H12.5471H12.5238H12.5007H12.4777H12.4548H12.4319H12.4092H12.3866H12.3641H12.3417H12.3194H12.2972H12.2751H12.2532H12.2313H12.2095H12.1879H12.1663H12.1449H12.1236H12.1024H12.0813H12.0603H12.0394H12.0187H11.998H11.9775H11.9571H11.9368H11.9166H11.8966H11.8766H11.8568H11.8371H11.8175H11.7981H11.7787H11.7595H11.7404H11.7214H11.7026H11.6838H11.6652H11.6468H11.6284H11.6102H11.5921H11.5741H11.5563H11.5386H11.521H11.5035H11.4862H11.469H11.452H11.435H11.4182H11.4016H11.3851H11.3687H11.3524H11.3363H11.3203H11.3045H11.2888H11.2732H11.2578H11.2425H11.2273H11.2123H11.1974H11.1827H11.1681H11.1537H11.1394H11.1253H11.1113H11.0974H11.0837H11.0701H11.0567H11.0434H11.0303H11.0173H11.0045H10.9918H10.9793H10.9669H10.9547H10.9427H10.9307H10.919H10.9074H10.8959H10.8847H10.8735H10.8625H10.8517H10.8411H10.8306H10.8202H10.81C8.77342 5.48828 5.97382 6.55711 5.15736 9.97114C4.5517 12.5037 3.88086 15.4124 3.39366 17.5248L3.39366 17.5248L3.22609 18.2512C2.92549 19.5536 3.13253 20.8304 3.85436 21.8023C4.30043 22.4029 4.91021 22.8422 5.62901 23.0929C5.78034 23.1456 5.87503 23.3007 5.84011 23.4571L5.37862 25.5242C5.10014 26.7715 6.50126 27.7091 7.54809 26.976L12.6695 23.3892C12.7199 23.3539 12.78 23.335 12.8416 23.335H13.4802ZM27.6082 19.7244L27.6079 19.7246H27.6071H27.6038H27.5907L27.5393 19.7246L27.3426 19.7246L26.6276 19.7246L24.3411 19.7246L19.7814 19.7246C18.4511 19.7247 16.5101 20.7755 16.0279 22.8419C15.8222 23.7236 15.5957 24.6871 15.3674 25.6579L15.3672 25.6585C14.9241 27.543 14.4745 29.455 14.1582 30.8499C13.8226 32.33 15.0065 33.5065 16.0636 33.5065H16.0735H16.0837H16.094H16.1046H16.1153H16.1262H16.1372H16.1485H16.1599H16.1715H16.1833H16.1953H16.2074H16.2197H16.2322H16.2449H16.2577H16.2707H16.2839H16.2973H16.3108H16.3245H16.3384H16.3524H16.3666H16.381H16.3955H16.4102H16.4251H16.4401H16.4553H16.4707H16.4862H16.5019H16.5177H16.5337H16.5499H16.5662H16.5826H16.5993H16.6161H16.633H16.6501H16.6674H16.6848H16.7023H16.72H16.7379H16.7559H16.7741H16.7924H16.8108H16.8294H16.8482H16.8671H16.8861H16.9053H16.9246H16.9441H16.9637H16.9835H17.0034H17.0234H17.0436H17.0639H17.0844H17.105H17.1257H17.1466H17.1676H17.1887H17.21H17.2314H17.2529H17.2746H17.2964H17.3183H17.3404H17.3625H17.3849H17.4073H17.4299H17.4526H17.4754H17.4983H17.5214H17.5446H17.5679H17.5913H17.6149H17.6385H17.6623H17.6862H17.7103H17.7344H17.7587H17.783H17.8075H17.8321H17.8569H17.8817H17.9066H17.9317H17.9569H17.9821H18.0075H18.033H18.0586H18.0843H18.1101H18.136H18.1621H18.1882H18.2144H18.2407H18.2672H18.2937H18.3204H18.3471H18.3739H18.4009H18.4279H18.455H18.4822H18.5095H18.537H18.5645H18.5921H18.6198H18.6475H18.6754H18.7034H18.7314H18.7596H18.7878H18.8161H18.8445H18.873H18.9016H18.9302H18.959H18.9878H19.0167H19.0457H19.0748H19.1039H19.1332H19.1625H19.1919H19.2213H19.2509H19.2805H19.3102H19.3399H19.3698H19.3997H19.4297H19.4597H19.4898H19.52H19.5503H19.5806H19.611H19.6415H19.672H19.7026H19.7333H19.764H19.7948H19.8257H19.8566H19.8876H19.9186H19.9497H19.9809H20.0121H20.0433H20.0747H20.1061H20.1375H20.169H20.2005H20.2321H20.2638H20.2955H20.3273H20.3591H20.3909H20.4228H20.4548H20.4868H20.5188H20.5509H20.5831H20.6153H20.6475H20.6798H20.7121H20.7444H20.7768H20.8092H20.8417H20.8742H20.9068H20.9394H20.972H21.0047H21.0374H21.0701H21.1029H21.1357H21.1685H21.2013H21.2342H21.2672H21.3001H21.3331H21.3661H21.3991H21.4322H21.4653H21.4984H21.5315H21.5647H21.5979H21.6311H21.6643H21.6975H21.7308H21.7641H21.7974H21.8307H21.8641H21.8974H21.9308H21.9642H21.9976H22.031H22.0644H22.0978H22.1313H22.1647H22.1982H22.2317H22.2652H22.2987H22.3322H22.3657H22.3992H22.4327H22.4662H22.4997H22.5332H22.5668H22.6003H22.6338H22.6674H22.7009H22.7344H22.7679H22.8014H22.835H22.8685H22.902H22.9355H22.969H23.0024H23.0359H23.0694H23.1028H23.1363H23.1697H23.2031H23.2365H23.2699H23.3033H23.3367H23.37H23.4034H23.4367H23.47H23.5033H23.5365H23.5698H23.603H23.6362H23.6694H23.7025H23.7356H23.7687H23.8018H23.8349H23.8679H23.9009H23.9339H23.9668H23.9997H24.0326H24.0655H24.0983H24.1311H24.1638H24.1966H24.2292H24.2619H24.2945H24.3271H24.3596H24.3921H24.4246H24.457H24.4894H24.5218H24.5541H24.5863H24.6185H24.6507H24.6828H24.7149H24.747H24.7789H24.8109H24.8428H24.8746H24.9064H24.9382H24.9699H25.0015H25.0331H25.0646H25.0961H25.1275H25.1589H25.1902H25.2215H25.2527H25.2838H25.3149H25.3459H25.3769H25.4078H25.4386H25.4694H25.5001H25.5307H25.5613H25.5918H25.6223H25.6527H25.683H25.7132H25.7434H25.7735H25.8036H25.8335H25.8634H25.8932H25.923H25.9526H25.9822H26.0118H26.0412H26.0706H26.0999H26.1291H26.1582H26.1872H26.2162H26.2451H26.2739H26.3026H26.3313H26.3598H26.3883H26.4167H26.445H26.4732H26.5013H26.5293H26.5573H26.5851H26.6129H26.6405H26.6681H26.6956H26.723H26.7503H26.7775H26.8046H26.8316H26.8585H26.8853H26.912H26.9386H26.9651H26.9915H27.0178H27.044H27.0701H27.0961H27.122H27.1478H27.1735H27.1991H27.2245H27.2499H27.2751H27.3003H27.3253H27.3502H27.375H27.3997H27.4243H27.4487H27.4731H27.4973H27.5214H27.5454H27.5693H27.5931H27.6167H27.6402H27.6636H27.6869H27.71H27.7331H27.756H27.7788H27.8014H27.824H27.8464H27.8687H27.8908H27.9128H27.9347H27.9565H27.9781H27.9996H28.021H28.0422H28.0633H28.0843H28.1051H28.1258H28.1464H28.1668H28.1871H28.2072H28.2272H28.2471H28.2668H28.2864H28.3058H28.3251H28.3443H28.3633H28.3821H28.4008H28.4194H28.4378H28.4561H28.4742H28.4922H28.51H28.5277H28.5452H28.5626H28.5798H28.5968H28.6137H28.6305H28.6471H28.6635H28.6798H28.6959H28.7119H28.7277H28.7433H28.7588H28.7741H28.7892H28.8042H28.8191H28.8337H28.8482H28.8625H28.8767H28.8907H28.9045H28.9182H28.9316H28.9449H28.9581H28.9711H28.9838H28.9965H29.0089H29.0212H29.0333H29.0452H29.0569H29.0685H29.0799H29.0911H29.1021H29.113H29.1236H29.1341H29.1444H29.1545H29.1644H29.1742C30.4217 33.5065 32.4077 32.4379 32.8909 30.3759C33.1038 29.4674 33.3338 28.4831 33.5655 27.4912L33.567 27.485L33.5696 27.4739C33.9925 25.6638 34.4211 23.8296 34.7625 22.3846C34.97 21.5061 34.7918 20.8516 34.4748 20.4345C34.1588 20.0187 33.6194 19.7246 32.8673 19.7246H31.9945C31.8025 19.7246 31.6599 19.5468 31.7016 19.3594L31.8912 18.5074L32.1497 17.3456C32.2095 17.0769 31.906 16.8763 31.6822 17.0366L28.1905 19.5376L27.9929 19.6791C27.9516 19.7087 27.9021 19.7246 27.8513 19.7246C27.7171 19.7246 27.6082 19.6158 27.6082 19.4815L27.6082 18.7246L27.6082 19.7244ZM19.5245 9.77828C19.1684 9.6289 18.7837 9.55986 18.3979 9.57604H12.6407H12.6406C12.3871 9.57591 12.1411 9.66162 11.9426 9.81922C11.7441 9.97685 11.6049 10.1971 11.5479 10.444L11.5478 10.4441L9.71185 18.3995L9.71172 18.4C9.67811 18.5433 9.67307 18.6918 9.69692 18.837C9.72079 18.9824 9.77314 19.1217 9.85097 19.2469C9.92879 19.372 10.0306 19.4806 10.1504 19.5663C10.2703 19.6521 10.4059 19.7134 10.5495 19.7467L10.552 19.7473C10.6347 19.7656 10.719 19.7748 10.8036 19.775L10.8031 19.775L10.8044 19.525L10.8042 19.775H10.8036C11.0576 19.7761 11.3043 19.6907 11.5032 19.5328C11.702 19.375 11.841 19.1541 11.8972 18.9066L11.8974 18.9059L12.5052 16.2947H17.4767C18.5631 16.2947 19.4763 15.7614 20.1119 15.0076C20.7445 14.2573 21.115 13.2746 21.1161 12.3362C21.1366 11.6504 20.9063 10.9805 20.4682 10.452L20.4684 10.4518L20.4617 10.4444C20.2024 10.1559 19.8823 9.92838 19.5245 9.77828ZM18.4262 11.6337C18.5169 11.6254 18.6083 11.6369 18.6941 11.6673C18.7737 11.6956 18.8467 11.7396 18.9088 11.7966C19.0159 11.9487 19.0688 12.1325 19.0586 12.3184L19.0582 12.3184V12.3322C19.0582 12.725 18.9032 13.2116 18.6172 13.5971C18.3334 13.9797 17.9429 14.2356 17.4768 14.2356H12.777L13.3857 11.6347H18.4034H18.4148L18.4262 11.6337ZM31.22 23.9207H31.1474C31.1564 23.8497 31.1589 23.7779 31.1547 23.706C31.1432 23.5084 31.0817 23.317 30.9758 23.1498C30.8699 22.9826 30.7233 22.8451 30.5496 22.7501C30.3761 22.6552 30.1813 22.6059 29.9835 22.6068H29.984L29.9843 22.8568L29.983 22.6068L29.9835 22.6068C29.7611 22.6072 29.5434 22.671 29.356 22.7908C29.1685 22.9108 29.0192 23.0818 28.9257 23.2837L26.8251 27.8088L25.44 25.3382L25.4399 25.3379C25.3548 25.1856 25.2363 25.0544 25.0933 24.9543C24.9504 24.8543 24.7868 24.7878 24.6146 24.7599C24.443 24.7312 24.2672 24.7412 24.1 24.7892C23.9326 24.8372 23.778 24.9221 23.6476 25.0376L23.6474 25.0377L20.9538 27.4286L21.3913 23.9192C21.4155 23.7669 21.4092 23.6112 21.3728 23.4613C21.336 23.3097 21.2692 23.1671 21.1763 23.0418C21.0834 22.9165 20.9664 22.8111 20.832 22.7318C20.6977 22.6525 20.5488 22.6009 20.3942 22.5801C20.2396 22.5592 20.0824 22.5695 19.9318 22.6104C19.7813 22.6513 19.6404 22.7219 19.5177 22.8181C19.3949 22.9143 19.2926 23.0341 19.2169 23.1705C19.1417 23.3061 19.0942 23.4553 19.0774 23.6094L18.2287 30.2253L18.2285 30.2267C18.1995 30.4635 18.2438 30.7035 18.3555 30.9144C18.4671 31.1253 18.6408 31.2968 18.853 31.406L18.8539 31.4064C19.064 31.5135 19.3012 31.5556 19.5353 31.5274C19.7694 31.4992 19.9898 31.402 20.1685 31.2481L20.1685 31.2481L20.1712 31.2457L24.1112 27.7495L25.9145 30.9366C26.0161 31.1163 26.1635 31.2657 26.3418 31.3698C26.52 31.4739 26.7227 31.5289 26.9291 31.5293H26.9295H26.9688V31.5293L26.9744 31.5292C27.1883 31.5244 27.3968 31.4606 27.5767 31.3448C27.7566 31.2291 27.901 31.0658 27.9939 30.873L27.9954 30.8697L31.0552 24.2759L31.22 23.9207Z" fill="#7694B8" fill-opacity="0.2"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NoEmailTemplatePreview } from './NoEmailTemplatePreview';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NoEmailTemplatePreview } from './NoEmailTemplatePreview';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const PreviewMock: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
$alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
3
|
+
$alignItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
4
|
+
$gap?: string | number | undefined;
|
|
5
|
+
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
6
|
+
$justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
7
|
+
$justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
8
|
+
$margin?: string | number | undefined;
|
|
9
|
+
$padding?: string | number | undefined;
|
|
10
|
+
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
$gridAutoFlow: string;
|
|
13
|
+
}, "$gridAutoFlow">;
|
|
14
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
15
|
+
$alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
16
|
+
$alignItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
17
|
+
$gap?: string | number | undefined;
|
|
18
|
+
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
19
|
+
$justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
20
|
+
$justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
21
|
+
$margin?: string | number | undefined;
|
|
22
|
+
$padding?: string | number | undefined;
|
|
23
|
+
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
$gridAutoFlow: string;
|
|
26
|
+
}, "$gridAutoFlow">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Color, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
|
+
import { Horizontal, Vertical } from '@pushwoosh/kit-helpers';
|
|
4
|
+
export const PreviewMock = styled(Horizontal).withConfig({
|
|
5
|
+
displayName: "PreviewMock",
|
|
6
|
+
componentId: "sc-1ax0nqs-0"
|
|
7
|
+
})(["border-radius:", ";border:1px dashed ", ";background:", ";min-height:85px;"], ShapeRadius.SECTION, Color.SOFT_LIGHT_HOVER, Color.BRIGHT_LIGHT);
|
|
8
|
+
export const Container = styled(Vertical).withConfig({
|
|
9
|
+
displayName: "Container",
|
|
10
|
+
componentId: "sc-1ax0nqs-1"
|
|
11
|
+
})(["background:", ";"], Color.CLEAR);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { EmailTemplatePreview } from './EmailTemplatePreview';
|
|
1
|
+
export { EmailTemplatePreview } from './EmailTemplatePreview';
|
|
2
|
+
export { NoEmailTemplatePreview } from './components/NoEmailTemplatePreview';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Columns } from '@pushwoosh/kit-helpers';
|
|
3
|
+
import { Spinner } from '@pushwoosh/kit-spinner';
|
|
4
|
+
import { PREVIEW_ICON_URL } from './constants/urls';
|
|
5
|
+
import { getLocalizedContent } from './helpers/helpers';
|
|
6
|
+
import { LoadingBox, PushBox, AppIcon, PushContent, PushTitleBox, PushTitleText, PushDate, PushDescription } from './styled';
|
|
7
|
+
export function PushPreview(props) {
|
|
8
|
+
const {
|
|
9
|
+
pushPreset,
|
|
10
|
+
language,
|
|
11
|
+
isLoading,
|
|
12
|
+
appTitle,
|
|
13
|
+
appIcon,
|
|
14
|
+
width
|
|
15
|
+
} = props;
|
|
16
|
+
const title = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.title, language) || appTitle;
|
|
17
|
+
const subTitle = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.subTitle, language);
|
|
18
|
+
const content = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.content, language);
|
|
19
|
+
const renderIcon = content ? (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.icon) || appIcon || PREVIEW_ICON_URL : PREVIEW_ICON_URL;
|
|
20
|
+
return React.createElement(PushBox, {
|
|
21
|
+
"$width": width
|
|
22
|
+
}, isLoading && React.createElement(LoadingBox, null, React.createElement(Spinner, {
|
|
23
|
+
size: "medium"
|
|
24
|
+
})), !isLoading && React.createElement(Columns, {
|
|
25
|
+
"$sizes": "30px 1fr",
|
|
26
|
+
"$alignItems": "center",
|
|
27
|
+
"$gap": 10
|
|
28
|
+
}, React.createElement(AppIcon, {
|
|
29
|
+
alt: appTitle,
|
|
30
|
+
src: renderIcon
|
|
31
|
+
}), React.createElement(PushContent, null, React.createElement(PushTitleBox, null, React.createElement(PushTitleText, null, title), React.createElement(PushDate, null, "5m\u00A0ago")), subTitle && React.createElement(PushTitleText, null, subTitle), React.createElement(PushDescription, {
|
|
32
|
+
"$isLocked": !content
|
|
33
|
+
}, content || 'Please, create or select push content'))));
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const getDefaultLanguage = properties => {
|
|
2
|
+
if (properties.default) {
|
|
3
|
+
return 'default';
|
|
4
|
+
}
|
|
5
|
+
if (properties.en) {
|
|
6
|
+
return 'en';
|
|
7
|
+
}
|
|
8
|
+
return Object.keys(properties)[0];
|
|
9
|
+
};
|
|
10
|
+
export const getLocalizedContent = (value, language) => (value === null || value === void 0 ? void 0 : value[language || getDefaultLanguage(value)]) || '';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PushPreview';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PushPreview';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const PushBox: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
$width?: string;
|
|
3
|
+
}, never>;
|
|
4
|
+
export declare const AppIcon: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
5
|
+
export declare const PushContent: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
$alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
7
|
+
$alignItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
8
|
+
$gap?: string | number | undefined;
|
|
9
|
+
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
10
|
+
$justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
11
|
+
$justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
12
|
+
$margin?: string | number | undefined;
|
|
13
|
+
$padding?: string | number | undefined;
|
|
14
|
+
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
$gridAutoFlow: string;
|
|
17
|
+
}, "$gridAutoFlow">;
|
|
18
|
+
export declare const PushTitleBox: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
19
|
+
export declare const PushTitleText: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
20
|
+
export declare const PushDate: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
21
|
+
export declare const PushDescription: import("styled-components").StyledComponent<"div", any, {
|
|
22
|
+
$isLocked: boolean;
|
|
23
|
+
}, never>;
|
|
24
|
+
export declare const LoadingBox: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Color, FontWeight, FontSize, Shadow, ShapeRadius, Spacing } from '@pushwoosh/kit-constants';
|
|
3
|
+
import { Vertical } from '@pushwoosh/kit-helpers';
|
|
4
|
+
export const PushBox = styled.div.withConfig({
|
|
5
|
+
displayName: "PushBox",
|
|
6
|
+
componentId: "sc-13jvrn7-0"
|
|
7
|
+
})(["display:grid;width:", ";min-height:50px;padding:10px;background:", ";box-shadow:", ";border-radius:10px;"], ({
|
|
8
|
+
$width
|
|
9
|
+
}) => $width || '100%', Color.CLEAR, Shadow.LARGE);
|
|
10
|
+
export const AppIcon = styled.img.withConfig({
|
|
11
|
+
displayName: "AppIcon",
|
|
12
|
+
componentId: "sc-13jvrn7-1"
|
|
13
|
+
})(["width:30px;height:30px;border-radius:", ";"], ShapeRadius.CONTROL);
|
|
14
|
+
export const PushContent = styled(Vertical).withConfig({
|
|
15
|
+
displayName: "PushContent",
|
|
16
|
+
componentId: "sc-13jvrn7-2"
|
|
17
|
+
})(["max-width:240px;"]);
|
|
18
|
+
export const PushTitleBox = styled.span.withConfig({
|
|
19
|
+
displayName: "PushTitleBox",
|
|
20
|
+
componentId: "sc-13jvrn7-3"
|
|
21
|
+
})(["display:grid;grid-template-columns:1fr min-content;grid-gap:", ";"], Spacing.S3);
|
|
22
|
+
export const PushTitleText = styled.span.withConfig({
|
|
23
|
+
displayName: "PushTitleText",
|
|
24
|
+
componentId: "sc-13jvrn7-4"
|
|
25
|
+
})(["font-weight:", ";font-size:13px;line-height:140%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"], FontWeight.MEDIUM);
|
|
26
|
+
export const PushDate = styled.span.withConfig({
|
|
27
|
+
displayName: "PushDate",
|
|
28
|
+
componentId: "sc-13jvrn7-5"
|
|
29
|
+
})(["color:#555;font-weight:", ";font-size:", ";letter-spacing:0;"], FontWeight.REGULAR, FontSize.SMALL);
|
|
30
|
+
export const PushDescription = styled.div.withConfig({
|
|
31
|
+
displayName: "PushDescription",
|
|
32
|
+
componentId: "sc-13jvrn7-6"
|
|
33
|
+
})(["color:", ";font-weight:", ";font-size:13px;line-height:140%;"], ({
|
|
34
|
+
$isLocked
|
|
35
|
+
}) => $isLocked ? Color.LOCKED : Color.MAIN, FontWeight.REGULAR);
|
|
36
|
+
export const LoadingBox = styled.div.withConfig({
|
|
37
|
+
displayName: "LoadingBox",
|
|
38
|
+
componentId: "sc-13jvrn7-7"
|
|
39
|
+
})(["display:flex;align-items:center;justify-content:center;flex:1;"]);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PushBasicData {
|
|
2
|
+
title?: Record<string, string>;
|
|
3
|
+
subTitle?: Record<string, string>;
|
|
4
|
+
content?: Record<string, string>;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PushPreviewProps<T> {
|
|
8
|
+
pushPreset?: T | null;
|
|
9
|
+
language?: string;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
appTitle: string;
|
|
12
|
+
appIcon?: string;
|
|
13
|
+
width?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { ProgressBar } from './ProgressBar';
|
|
2
2
|
export * from './Tabs';
|
|
3
|
-
export { EmailTemplatePreview } from './EmailTemplatePreview
|
|
3
|
+
export { EmailTemplatePreview, NoEmailTemplatePreview } from './EmailTemplatePreview';
|
|
4
|
+
export { PushPreview } from './PushPreview';
|
package/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { ProgressBar } from './ProgressBar';
|
|
2
2
|
export * from './Tabs';
|
|
3
|
-
export { EmailTemplatePreview } from './EmailTemplatePreview
|
|
3
|
+
export { EmailTemplatePreview, NoEmailTemplatePreview } from './EmailTemplatePreview';
|
|
4
|
+
export { PushPreview } from './PushPreview';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/dumb-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "React components to build Pushwoosh products",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"pre-commit": "check",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@pushwoosh/frontend-builder-engine": "^1.0.
|
|
20
|
-
"@pushwoosh/kit-constants": "^1.6.
|
|
19
|
+
"@pushwoosh/frontend-builder-engine": "^1.0.8",
|
|
20
|
+
"@pushwoosh/kit-constants": "^1.6.7",
|
|
21
21
|
"@types/lodash": "^4.17.13",
|
|
22
22
|
"@types/react": "^18.2.69",
|
|
23
23
|
"@types/react-dom": "^18.2.22",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"npm": ">= 7"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@pushwoosh/kit-helpers": "^4.6.2",
|
|
41
42
|
"@pushwoosh/kit-icons": "^2.0.25",
|
|
42
43
|
"@pushwoosh/kit-spinner": "^1.5.1",
|
|
43
44
|
"@pushwoosh/kit-typography": "^1.7.1",
|
package/styles.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { H5 } from '@pushwoosh/kit-typography';
|
|
2
|
+
export declare const LockedTitle: import("styled-components").StyledComponent<typeof H5, any, {
|
|
3
|
+
$uppercase?: boolean;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const LockedText: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
$uppercase?: boolean;
|
|
7
|
+
$small?: boolean;
|
|
8
|
+
}, never>;
|
package/styles.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Color, FontSize } from '@pushwoosh/kit-constants';
|
|
3
|
+
import { H5 } from '@pushwoosh/kit-typography';
|
|
4
|
+
export const LockedTitle = styled(H5).withConfig({
|
|
5
|
+
displayName: "LockedTitle",
|
|
6
|
+
componentId: "sc-86bd6t-0"
|
|
7
|
+
})(["text-transform:", ";color:", ";text-overflow:ellipsis;"], ({
|
|
8
|
+
$uppercase
|
|
9
|
+
}) => $uppercase ? 'uppercase' : 'initial', Color.LOCKED);
|
|
10
|
+
export const LockedText = styled.div.withConfig({
|
|
11
|
+
displayName: "LockedText",
|
|
12
|
+
componentId: "sc-86bd6t-1"
|
|
13
|
+
})(["text-transform:", ";font-size:", ";color:", ";"], ({
|
|
14
|
+
$uppercase
|
|
15
|
+
}) => $uppercase ? 'uppercase' : 'initial', ({
|
|
16
|
+
$small
|
|
17
|
+
}) => $small ? FontSize.SMALL : 'initial', Color.LOCKED);
|