@knovator/pagecreator 0.3.0 → 0.4.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/index.js +699 -0
- package/package.json +4 -3
- package/style.css +1 -1
- package/index.d.ts +0 -4
- package/lib/components/common/Card/banner/banner.d.ts +0 -3
- package/lib/components/common/Card/simple-card/simple-card.d.ts +0 -3
- package/lib/components/common/collection-item/collection-item.d.ts +0 -3
- package/lib/components/page/page.d.ts +0 -3
- package/lib/components/widget/carousel-widget/carousel-widget.d.ts +0 -3
- package/lib/components/widget/fixed-widget/fixed-widget.d.ts +0 -3
- package/lib/components/widget/widget.d.ts +0 -3
- package/lib/icons/Next.d.ts +0 -2
- package/lib/icons/Previous.d.ts +0 -2
- package/lib/types/api.d.ts +0 -66
- package/lib/types/common.d.ts +0 -3
- package/lib/types/components.d.ts +0 -60
- package/lib/types/index.d.ts +0 -3
- package/lib/utils/helper.d.ts +0 -11
package/index.js
ADDED
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import Slider from 'react-slick';
|
|
3
|
+
|
|
4
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
5
|
+
|
|
6
|
+
var _typeof = {exports: {}};
|
|
7
|
+
|
|
8
|
+
(function (module) {
|
|
9
|
+
function _typeof(obj) {
|
|
10
|
+
"@babel/helpers - typeof";
|
|
11
|
+
|
|
12
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
13
|
+
return typeof obj;
|
|
14
|
+
} : function (obj) {
|
|
15
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
16
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
17
|
+
}
|
|
18
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19
|
+
}(_typeof));
|
|
20
|
+
|
|
21
|
+
(function (module) {
|
|
22
|
+
var _typeof$1 = _typeof.exports["default"];
|
|
23
|
+
function _regeneratorRuntime() {
|
|
24
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
25
|
+
return exports;
|
|
26
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
27
|
+
var exports = {},
|
|
28
|
+
Op = Object.prototype,
|
|
29
|
+
hasOwn = Op.hasOwnProperty,
|
|
30
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
31
|
+
obj[key] = desc.value;
|
|
32
|
+
},
|
|
33
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
34
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
35
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
36
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
37
|
+
function define(obj, key, value) {
|
|
38
|
+
return Object.defineProperty(obj, key, {
|
|
39
|
+
value: value,
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
configurable: !0,
|
|
42
|
+
writable: !0
|
|
43
|
+
}), obj[key];
|
|
44
|
+
}
|
|
45
|
+
try {
|
|
46
|
+
define({}, "");
|
|
47
|
+
} catch (err) {
|
|
48
|
+
define = function define(obj, key, value) {
|
|
49
|
+
return obj[key] = value;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
53
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
54
|
+
generator = Object.create(protoGenerator.prototype),
|
|
55
|
+
context = new Context(tryLocsList || []);
|
|
56
|
+
return defineProperty(generator, "_invoke", {
|
|
57
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
58
|
+
}), generator;
|
|
59
|
+
}
|
|
60
|
+
function tryCatch(fn, obj, arg) {
|
|
61
|
+
try {
|
|
62
|
+
return {
|
|
63
|
+
type: "normal",
|
|
64
|
+
arg: fn.call(obj, arg)
|
|
65
|
+
};
|
|
66
|
+
} catch (err) {
|
|
67
|
+
return {
|
|
68
|
+
type: "throw",
|
|
69
|
+
arg: err
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.wrap = wrap;
|
|
74
|
+
var ContinueSentinel = {};
|
|
75
|
+
function Generator() {}
|
|
76
|
+
function GeneratorFunction() {}
|
|
77
|
+
function GeneratorFunctionPrototype() {}
|
|
78
|
+
var IteratorPrototype = {};
|
|
79
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
80
|
+
return this;
|
|
81
|
+
});
|
|
82
|
+
var getProto = Object.getPrototypeOf,
|
|
83
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
84
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
85
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
86
|
+
function defineIteratorMethods(prototype) {
|
|
87
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
88
|
+
define(prototype, method, function (arg) {
|
|
89
|
+
return this._invoke(method, arg);
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
94
|
+
function invoke(method, arg, resolve, reject) {
|
|
95
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
96
|
+
if ("throw" !== record.type) {
|
|
97
|
+
var result = record.arg,
|
|
98
|
+
value = result.value;
|
|
99
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
100
|
+
invoke("next", value, resolve, reject);
|
|
101
|
+
}, function (err) {
|
|
102
|
+
invoke("throw", err, resolve, reject);
|
|
103
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
104
|
+
result.value = unwrapped, resolve(result);
|
|
105
|
+
}, function (error) {
|
|
106
|
+
return invoke("throw", error, resolve, reject);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
reject(record.arg);
|
|
110
|
+
}
|
|
111
|
+
var previousPromise;
|
|
112
|
+
defineProperty(this, "_invoke", {
|
|
113
|
+
value: function value(method, arg) {
|
|
114
|
+
function callInvokeWithMethodAndArg() {
|
|
115
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
116
|
+
invoke(method, arg, resolve, reject);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
124
|
+
var state = "suspendedStart";
|
|
125
|
+
return function (method, arg) {
|
|
126
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
127
|
+
if ("completed" === state) {
|
|
128
|
+
if ("throw" === method) throw arg;
|
|
129
|
+
return doneResult();
|
|
130
|
+
}
|
|
131
|
+
for (context.method = method, context.arg = arg;;) {
|
|
132
|
+
var delegate = context.delegate;
|
|
133
|
+
if (delegate) {
|
|
134
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
135
|
+
if (delegateResult) {
|
|
136
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
137
|
+
return delegateResult;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
141
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
142
|
+
context.dispatchException(context.arg);
|
|
143
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
144
|
+
state = "executing";
|
|
145
|
+
var record = tryCatch(innerFn, self, context);
|
|
146
|
+
if ("normal" === record.type) {
|
|
147
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
148
|
+
return {
|
|
149
|
+
value: record.arg,
|
|
150
|
+
done: context.done
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
158
|
+
var methodName = context.method,
|
|
159
|
+
method = delegate.iterator[methodName];
|
|
160
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
161
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
162
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
163
|
+
var info = record.arg;
|
|
164
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
165
|
+
}
|
|
166
|
+
function pushTryEntry(locs) {
|
|
167
|
+
var entry = {
|
|
168
|
+
tryLoc: locs[0]
|
|
169
|
+
};
|
|
170
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
171
|
+
}
|
|
172
|
+
function resetTryEntry(entry) {
|
|
173
|
+
var record = entry.completion || {};
|
|
174
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
175
|
+
}
|
|
176
|
+
function Context(tryLocsList) {
|
|
177
|
+
this.tryEntries = [{
|
|
178
|
+
tryLoc: "root"
|
|
179
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
180
|
+
}
|
|
181
|
+
function values(iterable) {
|
|
182
|
+
if (iterable) {
|
|
183
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
184
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
185
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
186
|
+
if (!isNaN(iterable.length)) {
|
|
187
|
+
var i = -1,
|
|
188
|
+
next = function next() {
|
|
189
|
+
for (; ++i < iterable.length;) {
|
|
190
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
191
|
+
}
|
|
192
|
+
return next.value = undefined, next.done = !0, next;
|
|
193
|
+
};
|
|
194
|
+
return next.next = next;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return {
|
|
198
|
+
next: doneResult
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function doneResult() {
|
|
202
|
+
return {
|
|
203
|
+
value: undefined,
|
|
204
|
+
done: !0
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
208
|
+
value: GeneratorFunctionPrototype,
|
|
209
|
+
configurable: !0
|
|
210
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
211
|
+
value: GeneratorFunction,
|
|
212
|
+
configurable: !0
|
|
213
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
214
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
215
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
216
|
+
}, exports.mark = function (genFun) {
|
|
217
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
218
|
+
}, exports.awrap = function (arg) {
|
|
219
|
+
return {
|
|
220
|
+
__await: arg
|
|
221
|
+
};
|
|
222
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
223
|
+
return this;
|
|
224
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
225
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
226
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
227
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
228
|
+
return result.done ? result.value : iter.next();
|
|
229
|
+
});
|
|
230
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
231
|
+
return this;
|
|
232
|
+
}), define(Gp, "toString", function () {
|
|
233
|
+
return "[object Generator]";
|
|
234
|
+
}), exports.keys = function (val) {
|
|
235
|
+
var object = Object(val),
|
|
236
|
+
keys = [];
|
|
237
|
+
for (var key in object) {
|
|
238
|
+
keys.push(key);
|
|
239
|
+
}
|
|
240
|
+
return keys.reverse(), function next() {
|
|
241
|
+
for (; keys.length;) {
|
|
242
|
+
var key = keys.pop();
|
|
243
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
244
|
+
}
|
|
245
|
+
return next.done = !0, next;
|
|
246
|
+
};
|
|
247
|
+
}, exports.values = values, Context.prototype = {
|
|
248
|
+
constructor: Context,
|
|
249
|
+
reset: function reset(skipTempReset) {
|
|
250
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
|
251
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
stop: function stop() {
|
|
255
|
+
this.done = !0;
|
|
256
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
257
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
258
|
+
return this.rval;
|
|
259
|
+
},
|
|
260
|
+
dispatchException: function dispatchException(exception) {
|
|
261
|
+
if (this.done) throw exception;
|
|
262
|
+
var context = this;
|
|
263
|
+
function handle(loc, caught) {
|
|
264
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
265
|
+
}
|
|
266
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
267
|
+
var entry = this.tryEntries[i],
|
|
268
|
+
record = entry.completion;
|
|
269
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
270
|
+
if (entry.tryLoc <= this.prev) {
|
|
271
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
272
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
273
|
+
if (hasCatch && hasFinally) {
|
|
274
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
275
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
276
|
+
} else if (hasCatch) {
|
|
277
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
278
|
+
} else {
|
|
279
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
280
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
abrupt: function abrupt(type, arg) {
|
|
286
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
287
|
+
var entry = this.tryEntries[i];
|
|
288
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
289
|
+
var finallyEntry = entry;
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
294
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
295
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
296
|
+
},
|
|
297
|
+
complete: function complete(record, afterLoc) {
|
|
298
|
+
if ("throw" === record.type) throw record.arg;
|
|
299
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
300
|
+
},
|
|
301
|
+
finish: function finish(finallyLoc) {
|
|
302
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
303
|
+
var entry = this.tryEntries[i];
|
|
304
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"catch": function _catch(tryLoc) {
|
|
308
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
309
|
+
var entry = this.tryEntries[i];
|
|
310
|
+
if (entry.tryLoc === tryLoc) {
|
|
311
|
+
var record = entry.completion;
|
|
312
|
+
if ("throw" === record.type) {
|
|
313
|
+
var thrown = record.arg;
|
|
314
|
+
resetTryEntry(entry);
|
|
315
|
+
}
|
|
316
|
+
return thrown;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
throw new Error("illegal catch attempt");
|
|
320
|
+
},
|
|
321
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
322
|
+
return this.delegate = {
|
|
323
|
+
iterator: values(iterable),
|
|
324
|
+
resultName: resultName,
|
|
325
|
+
nextLoc: nextLoc
|
|
326
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
327
|
+
}
|
|
328
|
+
}, exports;
|
|
329
|
+
}
|
|
330
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
331
|
+
}(regeneratorRuntime$1));
|
|
332
|
+
|
|
333
|
+
// TODO(Babel 8): Remove this file.
|
|
334
|
+
|
|
335
|
+
var runtime = regeneratorRuntime$1.exports();
|
|
336
|
+
var regenerator = runtime;
|
|
337
|
+
|
|
338
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
339
|
+
try {
|
|
340
|
+
regeneratorRuntime = runtime;
|
|
341
|
+
} catch (accidentalStrictMode) {
|
|
342
|
+
if (typeof globalThis === "object") {
|
|
343
|
+
globalThis.regeneratorRuntime = runtime;
|
|
344
|
+
} else {
|
|
345
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/******************************************************************************
|
|
350
|
+
Copyright (c) Microsoft Corporation.
|
|
351
|
+
|
|
352
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
353
|
+
purpose with or without fee is hereby granted.
|
|
354
|
+
|
|
355
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
356
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
357
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
358
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
359
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
360
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
361
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
362
|
+
***************************************************************************** */
|
|
363
|
+
|
|
364
|
+
function __rest(s, e) {
|
|
365
|
+
var t = {};
|
|
366
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
367
|
+
t[p] = s[p];
|
|
368
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
369
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
370
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
371
|
+
t[p[i]] = s[p[i]];
|
|
372
|
+
}
|
|
373
|
+
return t;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
377
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
378
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
379
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
380
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
381
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
382
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
var _a;
|
|
387
|
+
function getData(_ref) {
|
|
388
|
+
var url = _ref.url,
|
|
389
|
+
code = _ref.code,
|
|
390
|
+
token = _ref.token;
|
|
391
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator.mark(function _callee() {
|
|
392
|
+
var response, data;
|
|
393
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
394
|
+
while (1) {
|
|
395
|
+
switch (_context.prev = _context.next) {
|
|
396
|
+
case 0:
|
|
397
|
+
_context.next = 2;
|
|
398
|
+
return fetch(url, {
|
|
399
|
+
method: 'POST',
|
|
400
|
+
headers: {
|
|
401
|
+
'Content-Type': 'application/json',
|
|
402
|
+
Authorization: token ? "Bearer ".concat(token) : ''
|
|
403
|
+
},
|
|
404
|
+
body: JSON.stringify({
|
|
405
|
+
code: code
|
|
406
|
+
})
|
|
407
|
+
});
|
|
408
|
+
case 2:
|
|
409
|
+
response = _context.sent;
|
|
410
|
+
if (response.ok) {
|
|
411
|
+
_context.next = 5;
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
throw new Error(response.statusText);
|
|
415
|
+
case 5:
|
|
416
|
+
_context.next = 7;
|
|
417
|
+
return response.json();
|
|
418
|
+
case 7:
|
|
419
|
+
data = _context.sent;
|
|
420
|
+
return _context.abrupt("return", data['data']);
|
|
421
|
+
case 9:
|
|
422
|
+
case "end":
|
|
423
|
+
return _context.stop();
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}, _callee);
|
|
427
|
+
}));
|
|
428
|
+
}
|
|
429
|
+
function buildSrcSets(imageBaseUrl, srcSets) {
|
|
430
|
+
if (!srcSets) return '';
|
|
431
|
+
if (!imageBaseUrl) return srcSets;
|
|
432
|
+
return srcSets.split(', ').map(function (srcSetItem) {
|
|
433
|
+
return "".concat(imageBaseUrl).concat(srcSetItem);
|
|
434
|
+
}).join(', ');
|
|
435
|
+
}
|
|
436
|
+
var isMobileDevice = typeof window !== 'undefined' && /Mobi/i.test((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent);
|
|
437
|
+
var filterItemData = function filterItemData(data) {
|
|
438
|
+
return isMobileDevice ? data.itemType === 'Mobile' : data.itemType === 'Web';
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
function FixedWidget(_ref) {
|
|
442
|
+
var widgetData = _ref.widgetData,
|
|
443
|
+
formatItem = _ref.formatItem,
|
|
444
|
+
className = _ref.className;
|
|
445
|
+
var gridClasses = "grid grid-cols-".concat(widgetData.mobilePerRow, " md:grid-cols-").concat(widgetData.tabletPerRow, " lg:grid-cols-").concat(widgetData.webPerRow);
|
|
446
|
+
return jsx("div", Object.assign({
|
|
447
|
+
className: className || gridClasses
|
|
448
|
+
}, {
|
|
449
|
+
children: widgetData.itemsType === 'Image' ? widgetData.items.filter(filterItemData).map(function (item) {
|
|
450
|
+
return formatItem(item);
|
|
451
|
+
}) : widgetData.collectionItems.map(function (item) {
|
|
452
|
+
return formatItem(item);
|
|
453
|
+
})
|
|
454
|
+
}));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
var Next = function Next() {
|
|
458
|
+
return jsx("svg", Object.assign({
|
|
459
|
+
width: "12",
|
|
460
|
+
height: "12",
|
|
461
|
+
viewBox: "0 0 12 12",
|
|
462
|
+
fill: "none",
|
|
463
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
464
|
+
}, {
|
|
465
|
+
children: jsx("path", {
|
|
466
|
+
d: "M9.129 5.25L5.106 1.227L6.1665 0.166504L12 6L6.1665 11.8335L5.106 10.773L9.129 6.75H0V5.25H9.129Z",
|
|
467
|
+
fill: "#40B5E8"
|
|
468
|
+
})
|
|
469
|
+
}));
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
var Previous = function Previous() {
|
|
473
|
+
return jsx("svg", Object.assign({
|
|
474
|
+
width: "12",
|
|
475
|
+
height: "12",
|
|
476
|
+
viewBox: "0 0 12 12",
|
|
477
|
+
fill: "none",
|
|
478
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
479
|
+
}, {
|
|
480
|
+
children: jsx("path", {
|
|
481
|
+
d: "M2.871 5.25L6.894 1.227L5.8335 0.166504L0 6L5.8335 11.8335L6.894 10.773L2.871 6.75H12V5.25H2.871Z",
|
|
482
|
+
fill: "#40B5E8"
|
|
483
|
+
})
|
|
484
|
+
}));
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
var SlickArrowLeft = function SlickArrowLeft(_a) {
|
|
488
|
+
var currentSlide = _a.currentSlide;
|
|
489
|
+
_a.slideCount;
|
|
490
|
+
var props = __rest(_a, ["currentSlide", "slideCount"]);
|
|
491
|
+
return jsx("button", Object.assign({}, props, {
|
|
492
|
+
className: 'slick-prev slick-arrow' + (currentSlide === 0 ? ' slick-disabled' : ''),
|
|
493
|
+
"aria-hidden": "true",
|
|
494
|
+
"aria-disabled": currentSlide === 0 ? true : false,
|
|
495
|
+
type: "button"
|
|
496
|
+
}, {
|
|
497
|
+
children: jsx(Previous, {})
|
|
498
|
+
}));
|
|
499
|
+
};
|
|
500
|
+
var SlickArrowRight = function SlickArrowRight(_a) {
|
|
501
|
+
var currentSlide = _a.currentSlide,
|
|
502
|
+
slideCount = _a.slideCount,
|
|
503
|
+
props = __rest(_a, ["currentSlide", "slideCount"]);
|
|
504
|
+
return jsx("button", Object.assign({}, props, {
|
|
505
|
+
className: 'slick-next slick-arrow' + (slideCount && currentSlide === slideCount - 1 ? ' slick-disabled' : ''),
|
|
506
|
+
"aria-hidden": "true",
|
|
507
|
+
"aria-disabled": slideCount && currentSlide === slideCount - 1 ? true : false,
|
|
508
|
+
type: "button"
|
|
509
|
+
}, {
|
|
510
|
+
children: jsx(Next, {})
|
|
511
|
+
}));
|
|
512
|
+
};
|
|
513
|
+
function CarouselWidget(_ref) {
|
|
514
|
+
var widgetData = _ref.widgetData,
|
|
515
|
+
formatItem = _ref.formatItem,
|
|
516
|
+
settings = _ref.settings,
|
|
517
|
+
className = _ref.className;
|
|
518
|
+
var defaultSettings = {
|
|
519
|
+
dots: false,
|
|
520
|
+
infinite: true,
|
|
521
|
+
slidesToShow: widgetData.mobilePerRow,
|
|
522
|
+
slidesToScroll: 1,
|
|
523
|
+
autoplay: widgetData.autoPlay,
|
|
524
|
+
autoplaySpeed: 1500,
|
|
525
|
+
pauseOnHover: true,
|
|
526
|
+
nextArrow: jsx(SlickArrowRight, {}),
|
|
527
|
+
prevArrow: jsx(SlickArrowLeft, {}),
|
|
528
|
+
responsive: [{
|
|
529
|
+
breakpoint: 768,
|
|
530
|
+
settings: {
|
|
531
|
+
slidesToShow: widgetData.tabletPerRow
|
|
532
|
+
}
|
|
533
|
+
}, {
|
|
534
|
+
breakpoint: 1024,
|
|
535
|
+
settings: {
|
|
536
|
+
arrows: false,
|
|
537
|
+
slidesToShow: widgetData.webPerRow
|
|
538
|
+
}
|
|
539
|
+
}]
|
|
540
|
+
};
|
|
541
|
+
if (!widgetData) return null;
|
|
542
|
+
return jsx(Slider, Object.assign({}, settings ? settings : defaultSettings, {
|
|
543
|
+
className: className
|
|
544
|
+
}, {
|
|
545
|
+
children: widgetData.itemsType === 'Image' ? widgetData.items.filter(filterItemData).map(function (item, index) {
|
|
546
|
+
return jsx("div", {
|
|
547
|
+
children: formatItem(item)
|
|
548
|
+
}, index);
|
|
549
|
+
}) : widgetData.collectionItems.map(function (item, index) {
|
|
550
|
+
return jsx("div", {
|
|
551
|
+
children: formatItem(item)
|
|
552
|
+
}, index);
|
|
553
|
+
})
|
|
554
|
+
}));
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
function Banner(_ref) {
|
|
558
|
+
var imageAltText = _ref.imageAltText,
|
|
559
|
+
imageUrl = _ref.imageUrl,
|
|
560
|
+
_onClick = _ref.onClick,
|
|
561
|
+
srcSets = _ref.srcSets,
|
|
562
|
+
title = _ref.title,
|
|
563
|
+
subtitle = _ref.subtitle;
|
|
564
|
+
return jsxs("div", Object.assign({
|
|
565
|
+
className: "kpc_banner"
|
|
566
|
+
}, {
|
|
567
|
+
children: [jsx("b", {
|
|
568
|
+
children: title
|
|
569
|
+
}), subtitle ? jsx("p", {
|
|
570
|
+
children: subtitle
|
|
571
|
+
}) : null, jsx("img", {
|
|
572
|
+
src: imageUrl,
|
|
573
|
+
alt: imageAltText,
|
|
574
|
+
className: "kpc_banner-image",
|
|
575
|
+
srcSet: srcSets,
|
|
576
|
+
loading: "lazy",
|
|
577
|
+
onClick: function onClick() {
|
|
578
|
+
return _onClick && _onClick();
|
|
579
|
+
}
|
|
580
|
+
})]
|
|
581
|
+
}));
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
function CollectionItem(_ref) {
|
|
585
|
+
var name = _ref.name,
|
|
586
|
+
_onClick = _ref.onClick;
|
|
587
|
+
return jsx("div", Object.assign({
|
|
588
|
+
className: "kpc_item",
|
|
589
|
+
onClick: function onClick() {
|
|
590
|
+
return _onClick && _onClick();
|
|
591
|
+
}
|
|
592
|
+
}, {
|
|
593
|
+
children: jsx("p", Object.assign({
|
|
594
|
+
className: "kpc_item-text"
|
|
595
|
+
}, {
|
|
596
|
+
children: name || 'Laurem Ipsum'
|
|
597
|
+
}))
|
|
598
|
+
}));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
function Widget(_ref) {
|
|
602
|
+
var widgetData = _ref.widgetData,
|
|
603
|
+
imageBaseUrl = _ref.imageBaseUrl,
|
|
604
|
+
formatItem = _ref.formatItem,
|
|
605
|
+
_onClick = _ref.onClick,
|
|
606
|
+
settings = _ref.settings,
|
|
607
|
+
hideTitle = _ref.hideTitle,
|
|
608
|
+
className = _ref.className,
|
|
609
|
+
formatFooter = _ref.formatFooter,
|
|
610
|
+
formatHeader = _ref.formatHeader;
|
|
611
|
+
var formatItems = function formatItems(item) {
|
|
612
|
+
var _a;
|
|
613
|
+
if (typeof formatItem === 'function' && formatItem) return formatItem(item);else if (widgetData.itemsType === 'Image') return jsx(Banner, {
|
|
614
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
615
|
+
// @ts-ignore
|
|
616
|
+
imageUrl: "".concat(imageBaseUrl || '').concat((_a = item.image) === null || _a === void 0 ? void 0 : _a.uri),
|
|
617
|
+
imageAltText: item._id,
|
|
618
|
+
onClick: function onClick() {
|
|
619
|
+
return _onClick && _onClick(item);
|
|
620
|
+
},
|
|
621
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
622
|
+
// @ts-ignore
|
|
623
|
+
srcSets: buildSrcSets(imageBaseUrl, item.srcSets),
|
|
624
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
625
|
+
// @ts-ignore
|
|
626
|
+
title: item.title,
|
|
627
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
628
|
+
// @ts-ignore
|
|
629
|
+
subtitle: item.subtitle
|
|
630
|
+
}, item._id);else return jsx(CollectionItem, Object.assign({
|
|
631
|
+
onClick: function onClick() {
|
|
632
|
+
return _onClick && _onClick(item);
|
|
633
|
+
}
|
|
634
|
+
}, item), item._id);
|
|
635
|
+
};
|
|
636
|
+
if (!widgetData) return null;
|
|
637
|
+
return jsxs("div", Object.assign({
|
|
638
|
+
className: "kpc_widget",
|
|
639
|
+
style: {
|
|
640
|
+
backgroundColor: widgetData.backgroundColor
|
|
641
|
+
}
|
|
642
|
+
}, {
|
|
643
|
+
children: [hideTitle === true ? null : typeof formatHeader === 'function' ? formatHeader(widgetData.widgetTitle, widgetData) : jsx("h2", Object.assign({
|
|
644
|
+
className: "kpc_widget-title"
|
|
645
|
+
}, {
|
|
646
|
+
children: widgetData.widgetTitle
|
|
647
|
+
})), jsx("div", Object.assign({
|
|
648
|
+
className: "kpc_widget-body"
|
|
649
|
+
}, {
|
|
650
|
+
children: widgetData.widgetType === 'Carousel' ? jsx(CarouselWidget, {
|
|
651
|
+
settings: settings,
|
|
652
|
+
widgetData: widgetData,
|
|
653
|
+
formatItem: formatItems,
|
|
654
|
+
className: className
|
|
655
|
+
}) : jsx(FixedWidget, {
|
|
656
|
+
widgetData: widgetData,
|
|
657
|
+
formatItem: formatItems,
|
|
658
|
+
className: className
|
|
659
|
+
})
|
|
660
|
+
})), typeof formatFooter === 'function' ? formatFooter(widgetData) : null]
|
|
661
|
+
}));
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
function Page(_ref) {
|
|
665
|
+
var title = _ref.title,
|
|
666
|
+
imageBaseUrl = _ref.imageBaseUrl,
|
|
667
|
+
pageData = _ref.pageData,
|
|
668
|
+
formatItem = _ref.formatItem,
|
|
669
|
+
onClick = _ref.onClick,
|
|
670
|
+
hideWidgetTitles = _ref.hideWidgetTitles;
|
|
671
|
+
if (!pageData) return null;
|
|
672
|
+
return jsxs("div", Object.assign({
|
|
673
|
+
className: "kpc_page"
|
|
674
|
+
}, {
|
|
675
|
+
children: [title && jsx("h1", Object.assign({
|
|
676
|
+
className: "kpc_page-title"
|
|
677
|
+
}, {
|
|
678
|
+
children: title
|
|
679
|
+
})), jsx("div", Object.assign({
|
|
680
|
+
className: "kpc_page-widgets"
|
|
681
|
+
}, {
|
|
682
|
+
children: pageData.widgets.map(function (widgetData, index) {
|
|
683
|
+
return jsx(Widget, {
|
|
684
|
+
widgetData: widgetData,
|
|
685
|
+
imageBaseUrl: imageBaseUrl,
|
|
686
|
+
hideTitle: hideWidgetTitles === true,
|
|
687
|
+
formatItem: formatItem && function (itemData) {
|
|
688
|
+
return formatItem(widgetData.code, itemData);
|
|
689
|
+
},
|
|
690
|
+
onClick: onClick && function (itemData) {
|
|
691
|
+
return onClick(widgetData.code, itemData);
|
|
692
|
+
}
|
|
693
|
+
}, index);
|
|
694
|
+
})
|
|
695
|
+
}))]
|
|
696
|
+
}));
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export { Page, Widget, getData };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knovator/pagecreator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git@github.com:knovator/pagecreator.git"
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"index.d.ts",
|
|
24
24
|
"index.js"
|
|
25
25
|
],
|
|
26
|
+
"module": "./index.js",
|
|
26
27
|
"main": "./index.cjs",
|
|
27
|
-
"type": "
|
|
28
|
-
"types": "./index.d.ts"
|
|
28
|
+
"type": "module",
|
|
29
|
+
"types": "./src/index.d.ts"
|
|
29
30
|
}
|
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.slick-slider{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none}.slick-list,.slick-slider{display:block;position:relative}.slick-list{margin:0;overflow:hidden;padding:0}.slick-list:focus{outline:none}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-list,.slick-slider .slick-track{transform:translateZ(0)}.slick-track{display:block;left:0;margin-left:auto;margin-right:auto;position:relative;top:0}.slick-track:after,.slick-track:before{content:"";display:table}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{display:none;float:left;height:100%;min-height:1px}[dir=rtl] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{border:1px solid transparent;display:block;height:auto}.slick-arrow.slick-hidden{display:none}.slick-loading .slick-list{background:#fff url(ajax-loader.gif) 50% no-repeat}@font-face{font-family:slick;font-style:normal;font-weight:400;src:url(fonts/slick.eot);src:url(fonts/slick.eot?#iefix) format("embedded-opentype"),url(fonts/slick.woff) format("woff"),url(fonts/slick.ttf) format("truetype"),url(fonts/slick.svg#slick) format("svg")}.slick-next,.slick-prev{border:none;cursor:pointer;display:block;font-size:0;height:20px;line-height:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:20px}.slick-next,.slick-next:focus,.slick-next:hover,.slick-prev,.slick-prev:focus,.slick-prev:hover{background:transparent;color:transparent;outline:none}.slick-next:focus:before,.slick-next:hover:before,.slick-prev:focus:before,.slick-prev:hover:before{opacity:1}.slick-next.slick-disabled:before,.slick-prev.slick-disabled:before{opacity:.25}.slick-next:before,.slick-prev:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;font-family:slick;font-size:20px;line-height:1;opacity:.75}.slick-prev{left:-25px}[dir=rtl] .slick-prev{left:auto;right:-25px}.slick-prev:before{content:"←"}[dir=rtl] .slick-prev:before{content:"→"}.slick-next{right:-25px}[dir=rtl] .slick-next{left:-25px;right:auto}.slick-next:before{content:"→"}[dir=rtl] .slick-next:before{content:"←"}.slick-dotted.slick-slider{margin-bottom:30px}.slick-dots{bottom:-25px;display:block;list-style:none;margin:0;padding:0;position:absolute;text-align:center;width:100%}.slick-dots li{display:inline-block;margin:0 5px;padding:0;position:relative}.slick-dots li,.slick-dots li button{cursor:pointer;height:20px;width:20px}.slick-dots li button{background:transparent;border:0;color:transparent;display:block;font-size:0;line-height:0;outline:none;padding:5px}.slick-dots li button:focus,.slick-dots li button:hover{outline:none}.slick-dots li button:focus:before,.slick-dots li button:hover:before{opacity:1}.slick-dots li button:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#000;content:"•";font-family:slick;font-size:6px;height:20px;left:0;line-height:20px;opacity:.25;position:absolute;text-align:center;top:0;width:20px}.slick-dots li.slick-active button:before{color:#000;opacity:.75}/*! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-none{grid-template-columns:none}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.kpc_widget{margin-top:2.5rem}@media (min-width:1024px){.kpc_widget{margin-top:4rem}}.kpc_widget-title{font-size:1.5rem;font-weight:700;line-height:2rem;margin-bottom:.5rem}.kpc_simple-card{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity));border-radius:.5rem;border-width:1px;display:flex;flex-direction:column;gap:.5rem;overflow:hidden;padding:.75rem}.kpc_simple-card-heading{flex-shrink:0}.kpc_simple-card-image{aspect-ratio:1/1;border-radius:.375rem;-o-object-fit:cover;object-fit:cover}.kpc_simple-card-body{display:contents;width:100%}.kpc_simple-card-label{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kpc_simple-card-content{align-items:center;justify-content:space-between;width:100%}.kpc_simple-card-title{font-size:1.125rem;font-weight:600;line-height:1.75rem;text-align:center}.kpc_simple-card-subtitle{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity));font-size:.75rem;line-height:1rem}.kpc_banner{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity));border-radius:.375rem;border-width:1px;padding:.25rem}.kpc_banner-image{aspect-ratio:1/1;height:100%;width:100%}.kpc_page-title{font-size:1.5rem;font-weight:700;line-height:2rem;margin-bottom:.5rem}.kpc_page-widgets>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.kpc_item{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity));border-radius:.375rem;border-width:2px;padding:.5rem}.kpc_item-text{font-size:1rem;font-weight:500;line-height:1.5rem;text-align:center}@media (min-width:640px){.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.sm\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.sm\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.sm\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\:grid-cols-none{grid-template-columns:none}}@media (min-width:768px){.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.md\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.md\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.md\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-none{grid-template-columns:none}}@media (min-width:1024px){.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.lg\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.lg\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-none{grid-template-columns:none}}@media (min-width:1280px){.xl\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.xl\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.xl\:grid-cols-none{grid-template-columns:none}}@media (min-width:1536px){.\32xl\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.\32xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\32xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\32xl\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.\32xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.\32xl\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.\32xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\32xl\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.\32xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\32xl\:grid-cols-none{grid-template-columns:none}}
|
|
1
|
+
@charset "UTF-8";.slick-slider{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none}.slick-list,.slick-slider{display:block;position:relative}.slick-list{margin:0;overflow:hidden;padding:0}.slick-list:focus{outline:none}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-list,.slick-slider .slick-track{transform:translateZ(0)}.slick-track{display:block;left:0;margin-left:auto;margin-right:auto;position:relative;top:0}.slick-track:after,.slick-track:before{content:"";display:table}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{display:none;float:left;height:100%;min-height:1px}[dir=rtl] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{border:1px solid transparent;display:block;height:auto}.slick-arrow.slick-hidden{display:none}.slick-loading .slick-list{background:#fff url(ajax-loader.gif) 50% no-repeat}@font-face{font-family:slick;font-style:normal;font-weight:400;src:url(fonts/slick.eot);src:url(fonts/slick.eot?#iefix) format("embedded-opentype"),url(fonts/slick.woff) format("woff"),url(fonts/slick.ttf) format("truetype"),url(fonts/slick.svg#slick) format("svg")}.slick-next,.slick-prev{border:none;cursor:pointer;display:block;font-size:0;height:20px;line-height:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:20px}.slick-next,.slick-next:focus,.slick-next:hover,.slick-prev,.slick-prev:focus,.slick-prev:hover{background:transparent;color:transparent;outline:none}.slick-next:focus:before,.slick-next:hover:before,.slick-prev:focus:before,.slick-prev:hover:before{opacity:1}.slick-next.slick-disabled:before,.slick-prev.slick-disabled:before{opacity:.25}.slick-next:before,.slick-prev:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;font-family:slick;font-size:20px;line-height:1;opacity:.75}.slick-prev{left:-25px}[dir=rtl] .slick-prev{left:auto;right:-25px}.slick-prev:before{content:"←"}[dir=rtl] .slick-prev:before{content:"→"}.slick-next{right:-25px}[dir=rtl] .slick-next{left:-25px;right:auto}.slick-next:before{content:"→"}[dir=rtl] .slick-next:before{content:"←"}.slick-dotted.slick-slider{margin-bottom:30px}.slick-dots{bottom:-25px;display:block;list-style:none;margin:0;padding:0;position:absolute;text-align:center;width:100%}.slick-dots li{display:inline-block;margin:0 5px;padding:0;position:relative}.slick-dots li,.slick-dots li button{cursor:pointer;height:20px;width:20px}.slick-dots li button{background:transparent;border:0;color:transparent;display:block;font-size:0;line-height:0;outline:none;padding:5px}.slick-dots li button:focus,.slick-dots li button:hover{outline:none}.slick-dots li button:focus:before,.slick-dots li button:hover:before{opacity:1}.slick-dots li button:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#000;content:"•";font-family:slick;font-size:6px;height:20px;left:0;line-height:20px;opacity:.25;position:absolute;text-align:center;top:0;width:20px}.slick-dots li.slick-active button:before{color:#000;opacity:.75}/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-none{grid-template-columns:none}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.kpc_widget{margin-top:2.5rem}@media (min-width:1024px){.kpc_widget{margin-top:4rem}}.kpc_widget-title{font-size:1.5rem;font-weight:700;line-height:2rem;margin-bottom:.5rem}.kpc_simple-card{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity));border-radius:.5rem;border-width:1px;display:flex;flex-direction:column;gap:.5rem;overflow:hidden;padding:.75rem}.kpc_simple-card-heading{flex-shrink:0}.kpc_simple-card-image{aspect-ratio:1/1;border-radius:.375rem;-o-object-fit:cover;object-fit:cover}.kpc_simple-card-body{display:contents;width:100%}.kpc_simple-card-label{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kpc_simple-card-content{align-items:center;justify-content:space-between;width:100%}.kpc_simple-card-title{font-size:1.125rem;font-weight:600;line-height:1.75rem;text-align:center}.kpc_simple-card-subtitle{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity));font-size:.75rem;line-height:1rem}.kpc_banner{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity));border-radius:.375rem;border-width:1px;padding:.25rem}.kpc_banner-image{aspect-ratio:1/1;height:100%;width:100%}.kpc_page-title{font-size:1.5rem;font-weight:700;line-height:2rem;margin-bottom:.5rem}.kpc_page-widgets>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.kpc_item{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity));border-radius:.375rem;border-width:2px;padding:.5rem}.kpc_item-text{font-size:1rem;font-weight:500;line-height:1.5rem;text-align:center}@media (min-width:640px){.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.sm\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.sm\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.sm\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\:grid-cols-none{grid-template-columns:none}}@media (min-width:768px){.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.md\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.md\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.md\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-none{grid-template-columns:none}}@media (min-width:1024px){.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.lg\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.lg\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-none{grid-template-columns:none}}@media (min-width:1280px){.xl\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.xl\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.xl\:grid-cols-none{grid-template-columns:none}}@media (min-width:1536px){.\32xl\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.\32xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\32xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\32xl\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.\32xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.\32xl\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.\32xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\32xl\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.\32xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\32xl\:grid-cols-none{grid-template-columns:none}}
|
package/index.d.ts
DELETED
package/lib/icons/Next.d.ts
DELETED
package/lib/icons/Previous.d.ts
DELETED
package/lib/types/api.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ObjectType } from '.';
|
|
2
|
-
export declare type API_INPUT_TYPE = {
|
|
3
|
-
prefix: string;
|
|
4
|
-
id?: string;
|
|
5
|
-
};
|
|
6
|
-
export interface BaseAPIProps {
|
|
7
|
-
config?: ObjectType;
|
|
8
|
-
baseUrl: string;
|
|
9
|
-
token: string | (() => Promise<string>);
|
|
10
|
-
data?: ObjectType;
|
|
11
|
-
url: string;
|
|
12
|
-
method: string;
|
|
13
|
-
onError?: (error: Error) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare type ACTION_TYPES = 'GET_WIDGET_DATA' | 'GET_PAGE_DATA';
|
|
16
|
-
export declare type API_TYPE = {
|
|
17
|
-
url: string;
|
|
18
|
-
method: string;
|
|
19
|
-
};
|
|
20
|
-
export declare type Routes_Input = {
|
|
21
|
-
[K in ACTION_TYPES]?: (data: API_INPUT_TYPE) => API_TYPE;
|
|
22
|
-
};
|
|
23
|
-
export interface PageData {
|
|
24
|
-
_id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
code: string;
|
|
27
|
-
widgets: WidgetData[];
|
|
28
|
-
}
|
|
29
|
-
export interface WidgetData {
|
|
30
|
-
_id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
code: string;
|
|
33
|
-
autoPlay: boolean;
|
|
34
|
-
isActive: boolean;
|
|
35
|
-
widgetTitle: string;
|
|
36
|
-
webPerRow: number;
|
|
37
|
-
mobilePerRow: number;
|
|
38
|
-
tabletPerRow: number;
|
|
39
|
-
itemsType: 'Image' | string;
|
|
40
|
-
widgetType: 'FixedCard' | 'Carousel';
|
|
41
|
-
items: ItemData[];
|
|
42
|
-
collectionItems: CollectionItemType[];
|
|
43
|
-
}
|
|
44
|
-
export interface ItemData {
|
|
45
|
-
_id: string;
|
|
46
|
-
title: string;
|
|
47
|
-
altText: string;
|
|
48
|
-
link: string;
|
|
49
|
-
itemType: 'Web' | 'Mobile';
|
|
50
|
-
img: ImgData;
|
|
51
|
-
srcSets?: string;
|
|
52
|
-
srcset?: SrcSetItem[];
|
|
53
|
-
}
|
|
54
|
-
export interface ImgData {
|
|
55
|
-
_id: string;
|
|
56
|
-
uri: string;
|
|
57
|
-
}
|
|
58
|
-
export interface CollectionItemType {
|
|
59
|
-
_id: string;
|
|
60
|
-
name?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface SrcSetItem {
|
|
63
|
-
screenSize: number;
|
|
64
|
-
width: number;
|
|
65
|
-
height: number;
|
|
66
|
-
}
|
package/lib/types/common.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Settings } from 'react-slick';
|
|
2
|
-
import { ItemData, WidgetData, ObjectType, PageData, CollectionItemType } from './';
|
|
3
|
-
interface SlideProps {
|
|
4
|
-
onClick?: (data?: ObjectType) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface BannerProps extends SlideProps {
|
|
7
|
-
imageUrl: string;
|
|
8
|
-
imageAltText: string;
|
|
9
|
-
}
|
|
10
|
-
export interface CardProps {
|
|
11
|
-
imageUrl: string;
|
|
12
|
-
imageAltText: string;
|
|
13
|
-
onClick?: (data?: ObjectType) => void;
|
|
14
|
-
srcSets?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ProductCardProps extends CardProps {
|
|
17
|
-
title: string;
|
|
18
|
-
subTitle?: string;
|
|
19
|
-
label?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface SimpleCardProps extends ProductCardProps {
|
|
22
|
-
}
|
|
23
|
-
export interface HighlightCardProps extends ProductCardProps {
|
|
24
|
-
highlightedText: string;
|
|
25
|
-
dimmedText: string;
|
|
26
|
-
}
|
|
27
|
-
export interface UserCardProps extends CardProps {
|
|
28
|
-
name: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ReviewCardProps extends UserCardProps {
|
|
31
|
-
stars: number;
|
|
32
|
-
review: string;
|
|
33
|
-
}
|
|
34
|
-
export interface WidgetProps {
|
|
35
|
-
widgetData: WidgetData;
|
|
36
|
-
imageBaseUrl?: string;
|
|
37
|
-
hideTitle?: boolean;
|
|
38
|
-
formatItem?: (item: ItemData | CollectionItemType) => JSX.Element;
|
|
39
|
-
onClick?: (item: ItemData | CollectionItemType) => void;
|
|
40
|
-
settings?: Settings;
|
|
41
|
-
className?: string;
|
|
42
|
-
formatHeader?: (title: string, data: WidgetData) => string | JSX.Element;
|
|
43
|
-
formatFooter?: (data: WidgetData) => string | JSX.Element;
|
|
44
|
-
}
|
|
45
|
-
export interface ItemsTypeProps extends WidgetProps {
|
|
46
|
-
formatItem: (item: CollectionItemType | ItemData) => JSX.Element;
|
|
47
|
-
}
|
|
48
|
-
export interface PageProps {
|
|
49
|
-
title?: string;
|
|
50
|
-
imageBaseUrl?: string;
|
|
51
|
-
pageData: PageData;
|
|
52
|
-
hideWidgetTitles?: boolean;
|
|
53
|
-
formatItem?: (CODE: string, item: ItemData | CollectionItemType) => JSX.Element;
|
|
54
|
-
onClick?: (CODE: string, item: ItemData | CollectionItemType) => JSX.Element;
|
|
55
|
-
}
|
|
56
|
-
export interface CollectionItemProps {
|
|
57
|
-
name?: string;
|
|
58
|
-
onClick?: () => void;
|
|
59
|
-
}
|
|
60
|
-
export {};
|
package/lib/types/index.d.ts
DELETED
package/lib/utils/helper.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WidgetData, PageData, ItemData } from '../types';
|
|
2
|
-
interface GetDataParams {
|
|
3
|
-
url: string;
|
|
4
|
-
code: string;
|
|
5
|
-
token?: string | (() => Promise<string>);
|
|
6
|
-
}
|
|
7
|
-
export declare function getData({ url, code, token, }: GetDataParams): Promise<WidgetData | PageData>;
|
|
8
|
-
export declare function buildSrcSets(imageBaseUrl?: string, srcSets?: string): string;
|
|
9
|
-
export declare const isMobileDevice: boolean;
|
|
10
|
-
export declare const filterItemData: (data: ItemData) => boolean;
|
|
11
|
-
export {};
|