loyalty-protocol 1.1.15 → 1.1.17
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/config.cjs +1 -1
- package/dist/config.js +1 -1
- package/dist/ht-kstore-india/index.d.ts +17 -0
- package/dist/ht-kstore-india/index.js +17 -0
- package/dist/index.d.ts +19 -0
- package/{config/index.ts → dist/index.js} +2 -4
- package/dist/indian-express/index.d.ts +17 -0
- package/dist/indian-express/index.js +17 -0
- package/dist/theme.css +1 -1
- package/package.json +7 -3
- package/config/config.js +0 -7
- package/config/ht-kstore-india/index.js +0 -17
- package/config/indian-express/index.js +0 -6
- package/theme/theme.css +0 -228
- package/tsconfig.json +0 -17
package/dist/config.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var a=(s,o)=>()=>(s&&(o=s(s=0)),o);var c=(s,o)=>{for(var t in o)i(s,t,{get:o[t],enumerable:!0})},T=(s,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of l(o))!C.call(s,n)&&n!==t&&i(s,n,{get:()=>o[n],enumerable:!(e=h(o,n))||e.enumerable});return s};var m=s=>T(i({},"__esModule",{value:!0}),s);var r={};c(r,{HT_CONFIG:()=>N});var N,g=a(()=>{"use strict";N={currency:{"K-Cash":{name:"Coins",logo:"https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg"},"K-Points":{name:"T-Points",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png"},rKGeN:{name:"T Coin",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png"}},showHeader:!1}});var p={};c(p,{INDIAN_EXPRESS:()=>k});var k,d=a(()=>{"use strict";k={currency:{"K-Cash":{name:"T-Coins",logo:"https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg"},"K-Points":{name:"T-Points",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png"},rKGeN:{name:"T Coin",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png"}},showHeader:!1}});var{HT_CONFIG:x}=(g(),m(r)),{INDIAN_EXPRESS:I}=(d(),m(p));window.LOYALTY_PROTOCOL_CONFIG={"ht-kstore-india":x,"indian-express":I};
|
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var a=(s,o)=>()=>(s&&(o=s(s=0)),o);var c=(s,o)=>{for(var t in o)i(s,t,{get:o[t],enumerable:!0})},T=(s,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of l(o))!C.call(s,n)&&n!==t&&i(s,n,{get:()=>o[n],enumerable:!(e=h(o,n))||e.enumerable});return s};var m=s=>T(i({},"__esModule",{value:!0}),s);var r={};c(r,{HT_CONFIG:()=>N});var N,g=a(()=>{"use strict";N={currency:{"K-Cash":{name:"Coins",logo:"https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg"},"K-Points":{name:"T-Points",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png"},rKGeN:{name:"T Coin",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png"}},showHeader:!1}});var p={};c(p,{INDIAN_EXPRESS:()=>k});var k,d=a(()=>{"use strict";k={currency:{"K-Cash":{name:"T-Coins",logo:"https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg"},"K-Points":{name:"T-Points",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png"},rKGeN:{name:"T Coin",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png"}},showHeader:!1}});var{HT_CONFIG:x}=(g(),m(r)),{INDIAN_EXPRESS:I}=(d(),m(p));window.LOYALTY_PROTOCOL_CONFIG={"ht-kstore-india":x,"indian-express":I};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const HT_CONFIG = {
|
|
2
|
+
currency: {
|
|
3
|
+
"K-Cash": {
|
|
4
|
+
name: "Coins",
|
|
5
|
+
logo: "https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg",
|
|
6
|
+
},
|
|
7
|
+
"K-Points": {
|
|
8
|
+
name: "T-Points",
|
|
9
|
+
logo: "https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png",
|
|
10
|
+
},
|
|
11
|
+
rKGeN: {
|
|
12
|
+
name: "T Coin",
|
|
13
|
+
logo: "https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
showHeader: false,
|
|
17
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type Config = {
|
|
2
|
+
currency: {
|
|
3
|
+
"K-Cash": {
|
|
4
|
+
name: string;
|
|
5
|
+
logo: string;
|
|
6
|
+
};
|
|
7
|
+
"K-Points": {
|
|
8
|
+
name: string;
|
|
9
|
+
logo: string;
|
|
10
|
+
};
|
|
11
|
+
rKGeN: {
|
|
12
|
+
name: string;
|
|
13
|
+
logo: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
showHeader: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const LOYALTY_PROTOCOL_CONFIG: Record<string, Config>;
|
|
19
|
+
export default LOYALTY_PROTOCOL_CONFIG;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { HT_CONFIG } from "./ht-kstore-india";
|
|
2
2
|
import { INDIAN_EXPRESS } from "./indian-express";
|
|
3
|
-
|
|
4
3
|
const LOYALTY_PROTOCOL_CONFIG = {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
"ht-kstore-india": HT_CONFIG,
|
|
5
|
+
"indian-express": INDIAN_EXPRESS,
|
|
7
6
|
};
|
|
8
|
-
|
|
9
7
|
export default LOYALTY_PROTOCOL_CONFIG;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const INDIAN_EXPRESS = {
|
|
2
|
+
currency: {
|
|
3
|
+
"K-Cash": {
|
|
4
|
+
name: "T-Coins",
|
|
5
|
+
logo: "https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg",
|
|
6
|
+
},
|
|
7
|
+
"K-Points": {
|
|
8
|
+
name: "T-Points",
|
|
9
|
+
logo: "https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png",
|
|
10
|
+
},
|
|
11
|
+
rKGeN: {
|
|
12
|
+
name: "T Coin",
|
|
13
|
+
logo: "https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
showHeader: false,
|
|
17
|
+
};
|
package/dist/theme.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-theme=dark],[data-theme=ht-kstore-india],[data-theme=indian-express],[data-theme=kgen],[data-theme=light]{--error-color-base:255, 115, 115;--white-base:255, 255, 255;--black-base:0, 0, 0;--processing-color-base:255, 158, 44;--partial-color-base:255, 195, 44;--success-color-base:38, 216, 109;--failed-color-base:255, 115, 115;--trim:"Trim";--trim-mono:"Trim-Mono";--trim-poster:"Trim-Poster";--trim-poster-lean:"Trim-Poster-Lean"}[data-theme=dark],[data-theme=kgen],[data-theme=light]{--primary-color-base:140, 255, 5;--secondary-color-base:31, 51, 56;--background-color-base:65, 95, 102;--tertiary-color-base:134, 166, 166;--text-color-base:219, 237, 241;--accent-text-color-base:190, 220, 218}[data-theme=ht-kstore-india],[data-theme=indian-express]{--secondary-color-base:255, 255, 255;--tertiary-color-base:220, 218, 218;--text-color-base:0, 0, 0;--accent-text-color-base:68, 68, 68}[data-theme=ht-kstore-india]{--primary-color-base:0, 157, 182;--background-color-base:219, 219, 219}[data-theme=indian-express]{--primary-color-base:255, 157, 182;--background-color-base:31, 51, 56}:root{--primary-color:rgba(var(--primary-color-base));--primary-color-10:rgba(var(--primary-color-base), 0.1);--primary-color-20:rgba(var(--primary-color-base), 0.2);--primary-color-25:rgba(var(--primary-color-base), 0.25);--primary-color-30:rgba(var(--primary-color-base), 0.3);--primary-color-40:rgba(var(--primary-color-base), 0.4);--primary-color-50:rgba(var(--primary-color-base), 0.5);--primary-color-60:rgba(var(--primary-color-base), 0.6);--primary-color-70:rgba(var(--primary-color-base), 0.7);--primary-color-75:rgba(var(--primary-color-base), 0.75);--primary-color-80:rgba(var(--primary-color-base), 0.8);--primary-color-90:rgba(var(--primary-color-base), 0.9);--secondary-color:rgba(var(--secondary-color-base));--secondary-color-10:rgba(var(--secondary-color-base), 0.1);--secondary-color-15:rgba(var(--secondary-color-base), 0.15);--secondary-color-20:rgba(var(--secondary-color-base), 0.2);--secondary-color-25:rgba(var(--secondary-color-base), 0.25);--secondary-color-30:rgba(var(--secondary-color-base), 0.3);--secondary-color-40:rgba(var(--secondary-color-base), 0.4);--secondary-color-50:rgba(var(--secondary-color-base), 0.5);--secondary-color-60:rgba(var(--secondary-color-base), 0.6);--secondary-color-70:rgba(var(--secondary-color-base), 0.7);--secondary-color-75:rgba(var(--secondary-color-base), 0.75);--secondary-color-80:rgba(var(--secondary-color-base), 0.8);--secondary-color-90:rgba(var(--secondary-color-base), 0.9);--background-color:rgba(var(--background-color-base));--background-color-10:rgba(var(--background-color-base), 0.1);--background-color-15:rgba(var(--background-color-base), 0.15);--background-color-20:rgba(var(--background-color-base), 0.2);--background-color-25:rgba(var(--background-color-base), 0.25);--background-color-30:rgba(var(--background-color-base), 0.3);--background-color-40:rgba(var(--background-color-base), 0.4);--background-color-50:rgba(var(--background-color-base), 0.5);--background-color-60:rgba(var(--background-color-base), 0.6);--background-color-70:rgba(var(--background-color-base), 0.7);--background-color-75:rgba(var(--background-color-base), 0.75);--background-color-80:rgba(var(--background-color-base), 0.8);--background-color-85:rgba(var(--background-color-base), 0.85);--background-color-90:rgba(var(--background-color-base), 0.9);--tertiary-color:rgba(var(--tertiary-color-base));--tertiary-color-10:rgba(var(--tertiary-color-base), 0.1);--tertiary-color-20:rgba(var(--tertiary-color-base), 0.2);--tertiary-color-25:rgba(var(--tertiary-color-base), 0.25);--tertiary-color-30:rgba(var(--tertiary-color-base), 0.3);--tertiary-color-40:rgba(var(--tertiary-color-base), 0.4);--tertiary-color-50:rgba(var(--tertiary-color-base), 0.5);--tertiary-color-60:rgba(var(--tertiary-color-base), 0.6);--tertiary-color-70:rgba(var(--tertiary-color-base), 0.7);--tertiary-color-75:rgba(var(--tertiary-color-base), 0.75);--tertiary-color-80:rgba(var(--tertiary-color-base), 0.8);--tertiary-color-90:rgba(var(--tertiary-color-base), 0.9);--text-color:rgba(var(--text-color-base));--text-color-10:rgba(var(--text-color-base), 0.1);--text-color-20:rgba(var(--text-color-base), 0.2);--text-color-25:rgba(var(--text-color-base), 0.25);--text-color-30:rgba(var(--text-color-base), 0.3);--text-color-40:rgba(var(--text-color-base), 0.4);--text-color-50:rgba(var(--text-color-base), 0.5);--text-color-60:rgba(var(--text-color-base), 0.6);--text-color-70:rgba(var(--text-color-base), 0.7);--text-color-75:rgba(var(--text-color-base), 0.75);--text-color-80:rgba(var(--text-color-base), 0.8);--text-color-90:rgba(var(--text-color-base), 0.9);--accent-text-color:rgba(var(--accent-text-color-base));--accent-text-color-10:rgba(var(--accent-text-color-base), 0.1);--accent-text-color-20:rgba(var(--accent-text-color-base), 0.2);--accent-text-color-25:rgba(var(--accent-text-color-base), 0.25);--accent-text-color-30:rgba(var(--accent-text-color-base), 0.3);--accent-text-color-40:rgba(var(--accent-text-color-base), 0.4);--accent-text-color-50:rgba(var(--accent-text-color-base), 0.5);--accent-text-color-60:rgba(var(--accent-text-color-base), 0.6);--accent-text-color-70:rgba(var(--accent-text-color-base), 0.7);--accent-text-color-75:rgba(var(--accent-text-color-base), 0.75);--accent-text-color-80:rgba(var(--accent-text-color-base), 0.8);--accent-text-color-90:rgba(var(--accent-text-color-base), 0.9);--error-text-color:rgba(var(--error-color-base));--error-background-color:rgba(var(--error-color-base), 0.15);--black:rgba(var(--black-base));--black-10:rgba(var(--black-base), 0.1);--black-20:rgba(var(--black-base), 0.2);--black-25:rgba(var(--black-base), 0.25);--black-30:rgba(var(--black-base), 0.3);--black-40:rgba(var(--black-base), 0.4);--black-50:rgba(var(--black-base), 0.5);--black-60:rgba(var(--black-base), 0.6);--black-70:rgba(var(--black-base), 0.7);--black-75:rgba(var(--black-base), 0.75);--black-80:rgba(var(--black-base), 0.8);--black-90:rgba(var(--black-base), 0.9);--white:rgba(var(--white-base));--white-10:rgba(var(--white-base), 0.1);--white-20:rgba(var(--white-base), 0.2);--white-25:rgba(var(--white-base), 0.25);--white-30:rgba(var(--white-base), 0.3);--white-40:rgba(var(--white-base), 0.4);--white-50:rgba(var(--white-base), 0.5);--white-60:rgba(var(--white-base), 0.6);--white-70:rgba(var(--white-base), 0.7);--white-75:rgba(var(--white-base), 0.75);--white-80:rgba(var(--white-base), 0.8);--white-90:rgba(var(--white-base), 0.9);--processing-color:rgba(var(--processing-color-base));--partial-color:rgba(var(--partial-color-base));--success-color:rgba(var(--success-color-base));--failed-color:rgba(var(--failed-color-base))}
|
|
1
|
+
[data-theme=dark],[data-theme=ht-kstore-india],[data-theme=indian-express],[data-theme=kgen],[data-theme=light]{--error-color-base:255, 115, 115;--white-base:255, 255, 255;--black-base:0, 0, 0;--processing-color-base:255, 158, 44;--partial-color-base:255, 195, 44;--success-color-base:38, 216, 109;--failed-color-base:255, 115, 115;--trim:"Trim";--trim-mono:"Trim-Mono";--trim-poster:"Trim-Poster";--trim-poster-lean:"Trim-Poster-Lean"}[data-theme=dark],[data-theme=kgen],[data-theme=light]{--primary-color-base:140, 255, 5;--secondary-color-base:31, 51, 56;--background-color-base:65, 95, 102;--tertiary-color-base:134, 166, 166;--text-color-base:219, 237, 241;--accent-text-color-base:190, 220, 218}[data-theme=ht-kstore-india],[data-theme=indian-express]{--secondary-color-base:255, 255, 255;--tertiary-color-base:220, 218, 218;--text-color-base:0, 0, 0;--accent-text-color-base:68, 68, 68}[data-theme=ht-kstore-india]{--primary-color-base:0, 157, 182;--background-color-base:219, 219, 219}[data-theme=indian-express]{--primary-color-base:255, 157, 182;--background-color-base:31, 51, 56}:root{--primary-color:rgba(var(--primary-color-base));--primary-color-10:rgba(var(--primary-color-base), 0.1);--primary-color-20:rgba(var(--primary-color-base), 0.2);--primary-color-25:rgba(var(--primary-color-base), 0.25);--primary-color-30:rgba(var(--primary-color-base), 0.3);--primary-color-40:rgba(var(--primary-color-base), 0.4);--primary-color-50:rgba(var(--primary-color-base), 0.5);--primary-color-60:rgba(var(--primary-color-base), 0.6);--primary-color-70:rgba(var(--primary-color-base), 0.7);--primary-color-75:rgba(var(--primary-color-base), 0.75);--primary-color-80:rgba(var(--primary-color-base), 0.8);--primary-color-90:rgba(var(--primary-color-base), 0.9);--secondary-color:rgba(var(--secondary-color-base));--secondary-color-10:rgba(var(--secondary-color-base), 0.1);--secondary-color-15:rgba(var(--secondary-color-base), 0.15);--secondary-color-20:rgba(var(--secondary-color-base), 0.2);--secondary-color-25:rgba(var(--secondary-color-base), 0.25);--secondary-color-30:rgba(var(--secondary-color-base), 0.3);--secondary-color-40:rgba(var(--secondary-color-base), 0.4);--secondary-color-50:rgba(var(--secondary-color-base), 0.5);--secondary-color-60:rgba(var(--secondary-color-base), 0.6);--secondary-color-70:rgba(var(--secondary-color-base), 0.7);--secondary-color-75:rgba(var(--secondary-color-base), 0.75);--secondary-color-80:rgba(var(--secondary-color-base), 0.8);--secondary-color-85:rgba(var(--secondary-color-base), 0.85);--secondary-color-90:rgba(var(--secondary-color-base), 0.9);--background-color:rgba(var(--background-color-base));--background-color-10:rgba(var(--background-color-base), 0.1);--background-color-15:rgba(var(--background-color-base), 0.15);--background-color-20:rgba(var(--background-color-base), 0.2);--background-color-25:rgba(var(--background-color-base), 0.25);--background-color-30:rgba(var(--background-color-base), 0.3);--background-color-40:rgba(var(--background-color-base), 0.4);--background-color-50:rgba(var(--background-color-base), 0.5);--background-color-60:rgba(var(--background-color-base), 0.6);--background-color-70:rgba(var(--background-color-base), 0.7);--background-color-75:rgba(var(--background-color-base), 0.75);--background-color-80:rgba(var(--background-color-base), 0.8);--background-color-85:rgba(var(--background-color-base), 0.85);--background-color-90:rgba(var(--background-color-base), 0.9);--tertiary-color:rgba(var(--tertiary-color-base));--tertiary-color-10:rgba(var(--tertiary-color-base), 0.1);--tertiary-color-20:rgba(var(--tertiary-color-base), 0.2);--tertiary-color-25:rgba(var(--tertiary-color-base), 0.25);--tertiary-color-30:rgba(var(--tertiary-color-base), 0.3);--tertiary-color-40:rgba(var(--tertiary-color-base), 0.4);--tertiary-color-50:rgba(var(--tertiary-color-base), 0.5);--tertiary-color-60:rgba(var(--tertiary-color-base), 0.6);--tertiary-color-70:rgba(var(--tertiary-color-base), 0.7);--tertiary-color-75:rgba(var(--tertiary-color-base), 0.75);--tertiary-color-80:rgba(var(--tertiary-color-base), 0.8);--tertiary-color-90:rgba(var(--tertiary-color-base), 0.9);--text-color:rgba(var(--text-color-base));--text-color-10:rgba(var(--text-color-base), 0.1);--text-color-20:rgba(var(--text-color-base), 0.2);--text-color-25:rgba(var(--text-color-base), 0.25);--text-color-30:rgba(var(--text-color-base), 0.3);--text-color-40:rgba(var(--text-color-base), 0.4);--text-color-50:rgba(var(--text-color-base), 0.5);--text-color-60:rgba(var(--text-color-base), 0.6);--text-color-70:rgba(var(--text-color-base), 0.7);--text-color-75:rgba(var(--text-color-base), 0.75);--text-color-80:rgba(var(--text-color-base), 0.8);--text-color-90:rgba(var(--text-color-base), 0.9);--accent-text-color:rgba(var(--accent-text-color-base));--accent-text-color-10:rgba(var(--accent-text-color-base), 0.1);--accent-text-color-20:rgba(var(--accent-text-color-base), 0.2);--accent-text-color-25:rgba(var(--accent-text-color-base), 0.25);--accent-text-color-30:rgba(var(--accent-text-color-base), 0.3);--accent-text-color-40:rgba(var(--accent-text-color-base), 0.4);--accent-text-color-50:rgba(var(--accent-text-color-base), 0.5);--accent-text-color-60:rgba(var(--accent-text-color-base), 0.6);--accent-text-color-70:rgba(var(--accent-text-color-base), 0.7);--accent-text-color-75:rgba(var(--accent-text-color-base), 0.75);--accent-text-color-80:rgba(var(--accent-text-color-base), 0.8);--accent-text-color-90:rgba(var(--accent-text-color-base), 0.9);--error-text-color:rgba(var(--error-color-base));--error-background-color:rgba(var(--error-color-base), 0.15);--black:rgba(var(--black-base));--black-10:rgba(var(--black-base), 0.1);--black-20:rgba(var(--black-base), 0.2);--black-25:rgba(var(--black-base), 0.25);--black-30:rgba(var(--black-base), 0.3);--black-40:rgba(var(--black-base), 0.4);--black-50:rgba(var(--black-base), 0.5);--black-60:rgba(var(--black-base), 0.6);--black-70:rgba(var(--black-base), 0.7);--black-75:rgba(var(--black-base), 0.75);--black-80:rgba(var(--black-base), 0.8);--black-90:rgba(var(--black-base), 0.9);--white:rgba(var(--white-base));--white-10:rgba(var(--white-base), 0.1);--white-20:rgba(var(--white-base), 0.2);--white-25:rgba(var(--white-base), 0.25);--white-30:rgba(var(--white-base), 0.3);--white-40:rgba(var(--white-base), 0.4);--white-50:rgba(var(--white-base), 0.5);--white-60:rgba(var(--white-base), 0.6);--white-70:rgba(var(--white-base), 0.7);--white-75:rgba(var(--white-base), 0.75);--white-80:rgba(var(--white-base), 0.8);--white-90:rgba(var(--white-base), 0.9);--processing-color:rgba(var(--processing-color-base));--partial-color:rgba(var(--partial-color-base));--success-color:rgba(var(--success-color-base));--failed-color:rgba(var(--failed-color-base))}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loyalty-protocol",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dist",
|
|
8
|
-
"./config": "./config/index.
|
|
9
|
-
"./
|
|
8
|
+
"./config": "./dist/config/index.js",
|
|
9
|
+
"./config/*": "./dist/config/*/index.js",
|
|
10
|
+
"./theme": "./dist/theme.css"
|
|
10
11
|
},
|
|
11
12
|
"scripts": {
|
|
12
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -17,6 +18,9 @@
|
|
|
17
18
|
"license": "ISC",
|
|
18
19
|
"type": "module",
|
|
19
20
|
"private": false,
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
20
24
|
"devDependencies": {
|
|
21
25
|
"csso-cli": "^4.0.2",
|
|
22
26
|
"tsup": "^8.5.0",
|
package/config/config.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export const HT_CONFIG = {
|
|
2
|
-
currency: {
|
|
3
|
-
"K-Cash": {
|
|
4
|
-
name: "Coins",
|
|
5
|
-
logo: "https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg",
|
|
6
|
-
},
|
|
7
|
-
"K-Points": {
|
|
8
|
-
name: "T-Points",
|
|
9
|
-
logo: "https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png",
|
|
10
|
-
},
|
|
11
|
-
rKGeN: {
|
|
12
|
-
name: "T Coin",
|
|
13
|
-
logo: "https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
showHeader: false,
|
|
17
|
-
};
|
package/theme/theme.css
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
[data-theme="light"] {
|
|
2
|
-
--primary-color-base: 140, 255, 5; /* #8cff05 */
|
|
3
|
-
--secondary-color-base: 31, 51, 56; /* #1f3338 */
|
|
4
|
-
--background-color-base: 65, 95, 102; /* #415f66 */
|
|
5
|
-
--tertiary-color-base: 134, 166, 166; /* #86a6a6 */
|
|
6
|
-
--text-color-base: 219, 237, 241; /* #dbedf1 */
|
|
7
|
-
--accent-text-color-base: 190, 220, 218; /* #bedcda */
|
|
8
|
-
|
|
9
|
-
--error-color-base: 255, 115, 115; /* #ff7373 */
|
|
10
|
-
|
|
11
|
-
--white-base: 255, 255, 255; /* #ffffff */
|
|
12
|
-
--black-base: 0, 0, 0; /* #000000 */
|
|
13
|
-
--processing-color-base: 255, 158, 44; /* #ff9e2c */
|
|
14
|
-
--partial-color-base: 255, 195, 44; /* #ffc32c */
|
|
15
|
-
--success-color-base: 38, 216, 109; /* #26d86d */
|
|
16
|
-
--failed-color-base: 255, 115, 115; /* #ff7373 */
|
|
17
|
-
|
|
18
|
-
--trim: "Trim";
|
|
19
|
-
--trim-mono: "Trim-Mono";
|
|
20
|
-
--trim-poster: "Trim-Poster";
|
|
21
|
-
--trim-poster-lean: "Trim-Poster-Lean";
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[data-theme="dark"] {
|
|
25
|
-
--primary-color-base: 140, 255, 5; /* #8cff05 */
|
|
26
|
-
--secondary-color-base: 31, 51, 56; /* #1f3338 */
|
|
27
|
-
--background-color-base: 65, 95, 102; /* #415f66 */
|
|
28
|
-
--tertiary-color-base: 134, 166, 166; /* #86a6a6 */
|
|
29
|
-
--text-color-base: 219, 237, 241; /* #dbedf1 */
|
|
30
|
-
--accent-text-color-base: 190, 220, 218; /* #bedcda */
|
|
31
|
-
|
|
32
|
-
--error-color-base: 255, 115, 115; /* #ff7373 */
|
|
33
|
-
--white-base: 255, 255, 255; /* #ffffff */
|
|
34
|
-
--black-base: 0, 0, 0; /* #000000 */
|
|
35
|
-
--processing-color-base: 255, 158, 44; /* #ff9e2c */
|
|
36
|
-
--partial-color-base: 255, 195, 44; /* #ffc32c */
|
|
37
|
-
--success-color-base: 38, 216, 109; /* #26d86d */
|
|
38
|
-
--failed-color-base: 255, 115, 115; /* #ff7373 */
|
|
39
|
-
|
|
40
|
-
--trim: "Trim";
|
|
41
|
-
--trim-mono: "Trim-Mono";
|
|
42
|
-
--trim-poster: "Trim-Poster";
|
|
43
|
-
--trim-poster-lean: "Trim-Poster-Lean";
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
[data-theme="kgen"] {
|
|
47
|
-
--primary-color-base: 140, 255, 5; /* #8cff05 */
|
|
48
|
-
--secondary-color-base: 31, 51, 56; /* #1f3338 */
|
|
49
|
-
--background-color-base: 65, 95, 102; /* #415f66 */
|
|
50
|
-
--tertiary-color-base: 134, 166, 166; /* #86a6a6 */
|
|
51
|
-
--text-color-base: 219, 237, 241; /* #dbedf1 */
|
|
52
|
-
--accent-text-color-base: 190, 220, 218; /* #bedcda */
|
|
53
|
-
|
|
54
|
-
--error-color-base: 255, 115, 115; /* #ff7373 */
|
|
55
|
-
--white-base: 255, 255, 255; /* #ffffff */
|
|
56
|
-
--black-base: 0, 0, 0; /* #000000 */
|
|
57
|
-
--processing-color-base: 255, 158, 44; /* #ff9e2c */
|
|
58
|
-
--partial-color-base: 255, 195, 44; /* #ffc32c */
|
|
59
|
-
--success-color-base: 38, 216, 109; /* #26d86d */
|
|
60
|
-
--failed-color-base: 255, 115, 115; /* #ff7373 */
|
|
61
|
-
|
|
62
|
-
--trim: "Trim";
|
|
63
|
-
--trim-mono: "Trim-Mono";
|
|
64
|
-
--trim-poster: "Trim-Poster";
|
|
65
|
-
--trim-poster-lean: "Trim-Poster-Lean";
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[data-theme="ht-kstore-india"] {
|
|
69
|
-
--primary-color-base: 0, 157, 182; /* #009db6 */
|
|
70
|
-
--secondary-color-base: 255, 255, 255; /* #ffffff */
|
|
71
|
-
--background-color-base: 219, 219, 219; /* #1f3338 */
|
|
72
|
-
--tertiary-color-base: 220, 218, 218; /* #dcdada */
|
|
73
|
-
--text-color-base: 0, 0, 0; /* #000000 */
|
|
74
|
-
--accent-text-color-base: 68, 68, 68; /* #444444 */
|
|
75
|
-
|
|
76
|
-
--error-color-base: 255, 115, 115; /* #ff7373 */
|
|
77
|
-
--white-base: 255, 255, 255; /* #ffffff */
|
|
78
|
-
--black-base: 0, 0, 0; /* #000000 */
|
|
79
|
-
--processing-color-base: 255, 158, 44; /* #ff9e2c */
|
|
80
|
-
--partial-color-base: 255, 195, 44; /* #ffc32c */
|
|
81
|
-
--success-color-base: 38, 216, 109; /* #26d86d */
|
|
82
|
-
--failed-color-base: 255, 115, 115; /* #ff7373 */
|
|
83
|
-
|
|
84
|
-
--trim: "Trim";
|
|
85
|
-
--trim-mono: "Trim-Mono";
|
|
86
|
-
--trim-poster: "Trim-Poster";
|
|
87
|
-
--trim-poster-lean: "Trim-Poster-Lean";
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
[data-theme="indian-express"] {
|
|
91
|
-
--primary-color-base: 255, 157, 182; /* #ff9db6 */
|
|
92
|
-
--secondary-color-base: 255, 255, 255; /* #ffffff */
|
|
93
|
-
--background-color-base: 31, 51, 56; /* #1f3338 */
|
|
94
|
-
--tertiary-color-base: 220, 218, 218; /* #dcdada */
|
|
95
|
-
--text-color-base: 0, 0, 0; /* #000000 */
|
|
96
|
-
--accent-text-color-base: 68, 68, 68; /* #444444 */
|
|
97
|
-
|
|
98
|
-
--error-color-base: 255, 115, 115; /* #ff7373 */
|
|
99
|
-
--white-base: 255, 255, 255; /* #ffffff */
|
|
100
|
-
--black-base: 0, 0, 0; /* #000000 */
|
|
101
|
-
--processing-color-base: 255, 158, 44; /* #ff9e2c */
|
|
102
|
-
--partial-color-base: 255, 195, 44; /* #ffc32c */
|
|
103
|
-
--success-color-base: 38, 216, 109; /* #26d86d */
|
|
104
|
-
--failed-color-base: 255, 115, 115; /* #ff7373 */
|
|
105
|
-
|
|
106
|
-
--trim: "Trim";
|
|
107
|
-
--trim-mono: "Trim-Mono";
|
|
108
|
-
--trim-poster: "Trim-Poster";
|
|
109
|
-
--trim-poster-lean: "Trim-Poster-Lean";
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:root {
|
|
113
|
-
--primary-color: rgba(var(--primary-color-base));
|
|
114
|
-
--primary-color-10: rgba(var(--primary-color-base), 0.1);
|
|
115
|
-
--primary-color-20: rgba(var(--primary-color-base), 0.2);
|
|
116
|
-
--primary-color-25: rgba(var(--primary-color-base), 0.25);
|
|
117
|
-
--primary-color-30: rgba(var(--primary-color-base), 0.3);
|
|
118
|
-
--primary-color-40: rgba(var(--primary-color-base), 0.4);
|
|
119
|
-
--primary-color-50: rgba(var(--primary-color-base), 0.5);
|
|
120
|
-
--primary-color-60: rgba(var(--primary-color-base), 0.6);
|
|
121
|
-
--primary-color-70: rgba(var(--primary-color-base), 0.7);
|
|
122
|
-
--primary-color-75: rgba(var(--primary-color-base), 0.75);
|
|
123
|
-
--primary-color-80: rgba(var(--primary-color-base), 0.8);
|
|
124
|
-
--primary-color-90: rgba(var(--primary-color-base), 0.9);
|
|
125
|
-
|
|
126
|
-
--secondary-color: rgba(var(--secondary-color-base));
|
|
127
|
-
--secondary-color-10: rgba(var(--secondary-color-base), 0.1);
|
|
128
|
-
--secondary-color-15: rgba(var(--secondary-color-base), 0.15);
|
|
129
|
-
--secondary-color-20: rgba(var(--secondary-color-base), 0.2);
|
|
130
|
-
--secondary-color-25: rgba(var(--secondary-color-base), 0.25);
|
|
131
|
-
--secondary-color-30: rgba(var(--secondary-color-base), 0.3);
|
|
132
|
-
--secondary-color-40: rgba(var(--secondary-color-base), 0.4);
|
|
133
|
-
--secondary-color-50: rgba(var(--secondary-color-base), 0.5);
|
|
134
|
-
--secondary-color-60: rgba(var(--secondary-color-base), 0.6);
|
|
135
|
-
--secondary-color-70: rgba(var(--secondary-color-base), 0.7);
|
|
136
|
-
--secondary-color-75: rgba(var(--secondary-color-base), 0.75);
|
|
137
|
-
--secondary-color-80: rgba(var(--secondary-color-base), 0.8);
|
|
138
|
-
--secondary-color-90: rgba(var(--secondary-color-base), 0.9);
|
|
139
|
-
|
|
140
|
-
--background-color: rgba(var(--background-color-base));
|
|
141
|
-
--background-color-10: rgba(var(--background-color-base), 0.1);
|
|
142
|
-
--background-color-15: rgba(var(--background-color-base), 0.15);
|
|
143
|
-
--background-color-20: rgba(var(--background-color-base), 0.2);
|
|
144
|
-
--background-color-25: rgba(var(--background-color-base), 0.25);
|
|
145
|
-
--background-color-30: rgba(var(--background-color-base), 0.3);
|
|
146
|
-
--background-color-40: rgba(var(--background-color-base), 0.4);
|
|
147
|
-
--background-color-50: rgba(var(--background-color-base), 0.5);
|
|
148
|
-
--background-color-60: rgba(var(--background-color-base), 0.6);
|
|
149
|
-
--background-color-70: rgba(var(--background-color-base), 0.7);
|
|
150
|
-
--background-color-75: rgba(var(--background-color-base), 0.75);
|
|
151
|
-
--background-color-80: rgba(var(--background-color-base), 0.8);
|
|
152
|
-
--background-color-85: rgba(var(--background-color-base), 0.85);
|
|
153
|
-
--background-color-90: rgba(var(--background-color-base), 0.9);
|
|
154
|
-
|
|
155
|
-
--tertiary-color: rgba(var(--tertiary-color-base));
|
|
156
|
-
--tertiary-color-10: rgba(var(--tertiary-color-base), 0.1);
|
|
157
|
-
--tertiary-color-20: rgba(var(--tertiary-color-base), 0.2);
|
|
158
|
-
--tertiary-color-25: rgba(var(--tertiary-color-base), 0.25);
|
|
159
|
-
--tertiary-color-30: rgba(var(--tertiary-color-base), 0.3);
|
|
160
|
-
--tertiary-color-40: rgba(var(--tertiary-color-base), 0.4);
|
|
161
|
-
--tertiary-color-50: rgba(var(--tertiary-color-base), 0.5);
|
|
162
|
-
--tertiary-color-60: rgba(var(--tertiary-color-base), 0.6);
|
|
163
|
-
--tertiary-color-70: rgba(var(--tertiary-color-base), 0.7);
|
|
164
|
-
--tertiary-color-75: rgba(var(--tertiary-color-base), 0.75);
|
|
165
|
-
--tertiary-color-80: rgba(var(--tertiary-color-base), 0.8);
|
|
166
|
-
--tertiary-color-90: rgba(var(--tertiary-color-base), 0.9);
|
|
167
|
-
|
|
168
|
-
--text-color: rgba(var(--text-color-base));
|
|
169
|
-
--text-color-10: rgba(var(--text-color-base), 0.1);
|
|
170
|
-
--text-color-20: rgba(var(--text-color-base), 0.2);
|
|
171
|
-
--text-color-25: rgba(var(--text-color-base), 0.25);
|
|
172
|
-
--text-color-30: rgba(var(--text-color-base), 0.3);
|
|
173
|
-
--text-color-40: rgba(var(--text-color-base), 0.4);
|
|
174
|
-
--text-color-50: rgba(var(--text-color-base), 0.5);
|
|
175
|
-
--text-color-60: rgba(var(--text-color-base), 0.6);
|
|
176
|
-
--text-color-70: rgba(var(--text-color-base), 0.7);
|
|
177
|
-
--text-color-75: rgba(var(--text-color-base), 0.75);
|
|
178
|
-
--text-color-80: rgba(var(--text-color-base), 0.8);
|
|
179
|
-
--text-color-90: rgba(var(--text-color-base), 0.9);
|
|
180
|
-
|
|
181
|
-
--accent-text-color: rgba(var(--accent-text-color-base));
|
|
182
|
-
--accent-text-color-10: rgba(var(--accent-text-color-base), 0.1);
|
|
183
|
-
--accent-text-color-20: rgba(var(--accent-text-color-base), 0.2);
|
|
184
|
-
--accent-text-color-25: rgba(var(--accent-text-color-base), 0.25);
|
|
185
|
-
--accent-text-color-30: rgba(var(--accent-text-color-base), 0.3);
|
|
186
|
-
--accent-text-color-40: rgba(var(--accent-text-color-base), 0.4);
|
|
187
|
-
--accent-text-color-50: rgba(var(--accent-text-color-base), 0.5);
|
|
188
|
-
--accent-text-color-60: rgba(var(--accent-text-color-base), 0.6);
|
|
189
|
-
--accent-text-color-70: rgba(var(--accent-text-color-base), 0.7);
|
|
190
|
-
--accent-text-color-75: rgba(var(--accent-text-color-base), 0.75);
|
|
191
|
-
--accent-text-color-80: rgba(var(--accent-text-color-base), 0.8);
|
|
192
|
-
--accent-text-color-90: rgba(var(--accent-text-color-base), 0.9);
|
|
193
|
-
|
|
194
|
-
--error-text-color: rgba(var(--error-color-base));
|
|
195
|
-
|
|
196
|
-
--error-background-color: rgba(var(--error-color-base), 0.15);
|
|
197
|
-
|
|
198
|
-
--black: rgba(var(--black-base));
|
|
199
|
-
--black-10: rgba(var(--black-base), 0.1);
|
|
200
|
-
--black-20: rgba(var(--black-base), 0.2);
|
|
201
|
-
--black-25: rgba(var(--black-base), 0.25);
|
|
202
|
-
--black-30: rgba(var(--black-base), 0.3);
|
|
203
|
-
--black-40: rgba(var(--black-base), 0.4);
|
|
204
|
-
--black-50: rgba(var(--black-base), 0.5);
|
|
205
|
-
--black-60: rgba(var(--black-base), 0.6);
|
|
206
|
-
--black-70: rgba(var(--black-base), 0.7);
|
|
207
|
-
--black-75: rgba(var(--black-base), 0.75);
|
|
208
|
-
--black-80: rgba(var(--black-base), 0.8);
|
|
209
|
-
--black-90: rgba(var(--black-base), 0.9);
|
|
210
|
-
|
|
211
|
-
--white: rgba(var(--white-base));
|
|
212
|
-
--white-10: rgba(var(--white-base), 0.1);
|
|
213
|
-
--white-20: rgba(var(--white-base), 0.2);
|
|
214
|
-
--white-25: rgba(var(--white-base), 0.25);
|
|
215
|
-
--white-30: rgba(var(--white-base), 0.3);
|
|
216
|
-
--white-40: rgba(var(--white-base), 0.4);
|
|
217
|
-
--white-50: rgba(var(--white-base), 0.5);
|
|
218
|
-
--white-60: rgba(var(--white-base), 0.6);
|
|
219
|
-
--white-70: rgba(var(--white-base), 0.7);
|
|
220
|
-
--white-75: rgba(var(--white-base), 0.75);
|
|
221
|
-
--white-80: rgba(var(--white-base), 0.8);
|
|
222
|
-
--white-90: rgba(var(--white-base), 0.9);
|
|
223
|
-
|
|
224
|
-
--processing-color: rgba(var(--processing-color-base));
|
|
225
|
-
--partial-color: rgba(var(--partial-color-base));
|
|
226
|
-
--success-color: rgba(var(--success-color-base));
|
|
227
|
-
--failed-color: rgba(var(--failed-color-base));
|
|
228
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"outDir": "dist",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"allowSyntheticDefaultImports": true,
|
|
9
|
-
"moduleResolution": "Node",
|
|
10
|
-
"jsx": "react-jsx",
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"strict": true,
|
|
13
|
-
"skipLibCheck": true
|
|
14
|
-
},
|
|
15
|
-
"include": ["src/**.*", "index.ts"],
|
|
16
|
-
"exclude": ["node_modules", "dist"]
|
|
17
|
-
}
|