asterui 0.12.1 → 0.12.2
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/components/Calendar.d.ts +23 -0
- package/dist/components/Checkbox.d.ts +10 -0
- package/dist/components/Dock.d.ts +38 -0
- package/dist/components/Mask.d.ts +14 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.js +203 -194
- package/dist/index.js.map +1 -1
- package/dist/index10.js +85 -59
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +45 -7
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +11 -11
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +12 -28
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +7 -17
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +12 -10792
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +31 -5
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +16 -40
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +174 -2
- package/dist/index107.js.map +1 -1
- package/dist/index109.js +10788 -147
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +5 -30
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +39 -27
- package/dist/index111.js.map +1 -1
- package/dist/index113.js +6 -71
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +147 -34
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +28 -24
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +28 -19
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +2 -24
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +71 -19
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +33 -94
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +24 -358
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +19 -23
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +22 -71
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +18 -14
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +92 -58
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +357 -141
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +25 -2
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +70 -53
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +16 -2
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +66 -2
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +35 -95
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +144 -2
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index132.js +56 -2
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -2
- package/dist/index136.js +2 -32
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -8
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +2 -2
- package/dist/index14.js +90 -153
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index141.js +31 -20
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +2 -2
- package/dist/index143.js +7 -23
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +2 -71
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +2 -21
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +20 -33
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +2 -70
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +24 -2
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +70 -21
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +154 -146
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +21 -2
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +34 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +70 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +2 -2
- package/dist/index154.js +21 -3
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +5 -0
- package/dist/index155.js.map +1 -0
- package/dist/index156.js +5 -0
- package/dist/index156.js.map +1 -0
- package/dist/index157.js +5 -0
- package/dist/index157.js.map +1 -0
- package/dist/index158.js +5 -0
- package/dist/index158.js.map +1 -0
- package/dist/index159.js +7 -0
- package/dist/index159.js.map +1 -0
- package/dist/index16.js +150 -5
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +5 -71
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +71 -17
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +15 -96
- package/dist/index19.js.map +1 -1
- package/dist/index20.js +89 -105
- package/dist/index20.js.map +1 -1
- package/dist/index21.js +107 -177
- package/dist/index21.js.map +1 -1
- package/dist/index22.js +181 -107
- package/dist/index22.js.map +1 -1
- package/dist/index23.js +110 -19
- package/dist/index23.js.map +1 -1
- package/dist/index24.js +19 -32
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +42 -40
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +31 -11
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +41 -33
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +12 -63
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +33 -80
- package/dist/index29.js.map +1 -1
- package/dist/index30.js +63 -18
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +79 -219
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +16 -1080
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +218 -16
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +1081 -121
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +17 -39
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +121 -190
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +37 -94
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +186 -157
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +89 -138
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +161 -14
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +146 -18
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +14 -20
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +15 -116
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +18 -10
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +119 -35
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +12 -115
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +33 -174
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +10 -147
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +116 -12
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +176 -22
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +147 -14
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +10 -5
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +21 -265
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +10 -13
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +7 -122
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +262 -106
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +14 -167
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +121 -31
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +107 -119
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +161 -77
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +31 -19
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +117 -69
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +82 -53
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +19 -44
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +70 -48
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +55 -60
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +39 -101
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +52 -41
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +58 -64
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +105 -19
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +41 -46
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +63 -129
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +19 -50
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +46 -22
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +132 -29
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +52 -22
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +19 -326
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +31 -56
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +22 -40
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +328 -22
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +55 -94
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +38 -128
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +20 -158
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +93 -63
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +128 -33
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +152 -225
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +63 -32
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +35 -210
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +229 -208
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +34 -295
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +200 -168
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +198 -243
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +293 -12
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +174 -29
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +258 -6
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +13 -13
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +32 -45
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +5 -12
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +13 -14
- package/dist/index99.js.map +1 -1
- package/package.json +2 -1
- package/dist/index108.js +0 -10
- package/dist/index108.js.map +0 -1
package/dist/index127.js
CHANGED
|
@@ -1,59 +1,76 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return {
|
|
16
|
-
r: r >> 24 & 255,
|
|
17
|
-
g: r >> 16 & 255,
|
|
18
|
-
b: r >> 8 & 255,
|
|
19
|
-
a: r & 255,
|
|
20
|
-
hex: "#" + e.slice(0, 6).join("")
|
|
21
|
-
};
|
|
1
|
+
import { __exports as f } from "./index142.js";
|
|
2
|
+
import { __require as M } from "./index118.js";
|
|
3
|
+
import { __require as w } from "./index125.js";
|
|
4
|
+
import { __require as D } from "./index119.js";
|
|
5
|
+
import { __require as p } from "./index129.js";
|
|
6
|
+
import { __require as y } from "./index143.js";
|
|
7
|
+
var B;
|
|
8
|
+
function H() {
|
|
9
|
+
return B ? f : (B = 1, (function(i) {
|
|
10
|
+
const u = M(), m = w(), l = D(), n = p(), a = y(), d = 7973, g = u.getBCHDigit(d);
|
|
11
|
+
function E(o, e, r) {
|
|
12
|
+
for (let t = 1; t <= 40; t++)
|
|
13
|
+
if (e <= i.getCapacity(t, r, o))
|
|
14
|
+
return t;
|
|
22
15
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
16
|
+
function C(o, e) {
|
|
17
|
+
return n.getCharCountIndicator(o, e) + 4;
|
|
18
|
+
}
|
|
19
|
+
function _(o, e) {
|
|
20
|
+
let r = 0;
|
|
21
|
+
return o.forEach(function(t) {
|
|
22
|
+
const s = C(t.mode, e);
|
|
23
|
+
r += s + t.getBitsLength();
|
|
24
|
+
}), r;
|
|
25
|
+
}
|
|
26
|
+
function q(o, e) {
|
|
27
|
+
for (let r = 1; r <= 40; r++)
|
|
28
|
+
if (_(o, r) <= i.getCapacity(r, e, n.MIXED))
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
i.from = function(e, r) {
|
|
32
|
+
return a.isValid(e) ? parseInt(e, 10) : r;
|
|
33
|
+
}, i.getCapacity = function(e, r, t) {
|
|
34
|
+
if (!a.isValid(e))
|
|
35
|
+
throw new Error("Invalid QR Code version");
|
|
36
|
+
typeof t > "u" && (t = n.BYTE);
|
|
37
|
+
const s = u.getSymbolTotalCodewords(e), V = m.getTotalCodewordsCount(e, r), h = (s - V) * 8;
|
|
38
|
+
if (t === n.MIXED) return h;
|
|
39
|
+
const c = h - C(t, e);
|
|
40
|
+
switch (t) {
|
|
41
|
+
case n.NUMERIC:
|
|
42
|
+
return Math.floor(c / 10 * 3);
|
|
43
|
+
case n.ALPHANUMERIC:
|
|
44
|
+
return Math.floor(c / 11 * 2);
|
|
45
|
+
case n.KANJI:
|
|
46
|
+
return Math.floor(c / 13);
|
|
47
|
+
case n.BYTE:
|
|
48
|
+
default:
|
|
49
|
+
return Math.floor(c / 8);
|
|
50
|
+
}
|
|
51
|
+
}, i.getBestVersionForData = function(e, r) {
|
|
52
|
+
let t;
|
|
53
|
+
const s = l.from(r, l.M);
|
|
54
|
+
if (Array.isArray(e)) {
|
|
55
|
+
if (e.length > 1)
|
|
56
|
+
return q(e, s);
|
|
57
|
+
if (e.length === 0)
|
|
58
|
+
return 1;
|
|
59
|
+
t = e[0];
|
|
60
|
+
} else
|
|
61
|
+
t = e;
|
|
62
|
+
return E(t.mode, t.getLength(), s);
|
|
63
|
+
}, i.getEncodedBits = function(e) {
|
|
64
|
+
if (!a.isValid(e) || e < 7)
|
|
65
|
+
throw new Error("Invalid QR Code version");
|
|
66
|
+
let r = e << 12;
|
|
67
|
+
for (; u.getBCHDigit(r) - g >= 0; )
|
|
68
|
+
r ^= d << u.getBCHDigit(r) - g;
|
|
69
|
+
return e << 12 | r;
|
|
53
70
|
};
|
|
54
|
-
})(
|
|
71
|
+
})(f), f);
|
|
55
72
|
}
|
|
56
73
|
export {
|
|
57
|
-
|
|
74
|
+
H as __require
|
|
58
75
|
};
|
|
59
76
|
//# sourceMappingURL=index127.js.map
|
package/dist/index127.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index127.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/
|
|
1
|
+
{"version":3,"file":"index127.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js"],"sourcesContent":["const Utils = require('./utils')\nconst ECCode = require('./error-correction-code')\nconst ECLevel = require('./error-correction-level')\nconst Mode = require('./mode')\nconst VersionCheck = require('./version-check')\n\n// Generator polynomial used to encode version information\nconst G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0)\nconst G18_BCH = Utils.getBCHDigit(G18)\n\nfunction getBestVersionForDataLength (mode, length, errorCorrectionLevel) {\n for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {\n if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {\n return currentVersion\n }\n }\n\n return undefined\n}\n\nfunction getReservedBitsCount (mode, version) {\n // Character count indicator + mode indicator bits\n return Mode.getCharCountIndicator(mode, version) + 4\n}\n\nfunction getTotalBitsFromDataArray (segments, version) {\n let totalBits = 0\n\n segments.forEach(function (data) {\n const reservedBits = getReservedBitsCount(data.mode, version)\n totalBits += reservedBits + data.getBitsLength()\n })\n\n return totalBits\n}\n\nfunction getBestVersionForMixedData (segments, errorCorrectionLevel) {\n for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {\n const length = getTotalBitsFromDataArray(segments, currentVersion)\n if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) {\n return currentVersion\n }\n }\n\n return undefined\n}\n\n/**\n * Returns version number from a value.\n * If value is not a valid version, returns defaultValue\n *\n * @param {Number|String} value QR Code version\n * @param {Number} defaultValue Fallback value\n * @return {Number} QR Code version number\n */\nexports.from = function from (value, defaultValue) {\n if (VersionCheck.isValid(value)) {\n return parseInt(value, 10)\n }\n\n return defaultValue\n}\n\n/**\n * Returns how much data can be stored with the specified QR code version\n * and error correction level\n *\n * @param {Number} version QR Code version (1-40)\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Mode} mode Data mode\n * @return {Number} Quantity of storable data\n */\nexports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) {\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid QR Code version')\n }\n\n // Use Byte mode as default\n if (typeof mode === 'undefined') mode = Mode.BYTE\n\n // Total codewords for this QR code version (Data + Error correction)\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n\n // Total number of error correction codewords\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n\n // Total number of data codewords\n const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8\n\n if (mode === Mode.MIXED) return dataTotalCodewordsBits\n\n const usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version)\n\n // Return max number of storable codewords\n switch (mode) {\n case Mode.NUMERIC:\n return Math.floor((usableBits / 10) * 3)\n\n case Mode.ALPHANUMERIC:\n return Math.floor((usableBits / 11) * 2)\n\n case Mode.KANJI:\n return Math.floor(usableBits / 13)\n\n case Mode.BYTE:\n default:\n return Math.floor(usableBits / 8)\n }\n}\n\n/**\n * Returns the minimum version needed to contain the amount of data\n *\n * @param {Segment} data Segment of data\n * @param {Number} [errorCorrectionLevel=H] Error correction level\n * @param {Mode} mode Data mode\n * @return {Number} QR Code version\n */\nexports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) {\n let seg\n\n const ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M)\n\n if (Array.isArray(data)) {\n if (data.length > 1) {\n return getBestVersionForMixedData(data, ecl)\n }\n\n if (data.length === 0) {\n return 1\n }\n\n seg = data[0]\n } else {\n seg = data\n }\n\n return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)\n}\n\n/**\n * Returns version information with relative error correction bits\n *\n * The version information is included in QR Code symbols of version 7 or larger.\n * It consists of an 18-bit sequence containing 6 data bits,\n * with 12 error correction bits calculated using the (18, 6) Golay code.\n *\n * @param {Number} version QR Code version\n * @return {Number} Encoded version info bits\n */\nexports.getEncodedBits = function getEncodedBits (version) {\n if (!VersionCheck.isValid(version) || version < 7) {\n throw new Error('Invalid QR Code version')\n }\n\n let d = version << 12\n\n while (Utils.getBCHDigit(d) - G18_BCH >= 0) {\n d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH))\n }\n\n return (version << 12) | d\n}\n"],"names":["Utils","require$$0","ECCode","require$$1","ECLevel","require$$2","Mode","require$$3","VersionCheck","require$$4","G18","G18_BCH","getBestVersionForDataLength","mode","length","errorCorrectionLevel","currentVersion","exports","getReservedBitsCount","version","getTotalBitsFromDataArray","segments","totalBits","data","reservedBits","getBestVersionForMixedData","value","defaultValue","totalCodewords","ecTotalCodewords","dataTotalCodewordsBits","usableBits","seg","ecl","d"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index128.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as e } from "./index144.js";
|
|
2
|
+
import { __require as f } from "./index118.js";
|
|
3
|
+
var s;
|
|
4
|
+
function m() {
|
|
5
|
+
if (s) return e;
|
|
6
|
+
s = 1;
|
|
7
|
+
const r = f(), i = 1335, a = 21522, o = r.getBCHDigit(i);
|
|
8
|
+
return e.getEncodedBits = function(u, c) {
|
|
9
|
+
const n = u.bit << 3 | c;
|
|
10
|
+
let t = n << 10;
|
|
11
|
+
for (; r.getBCHDigit(t) - o >= 0; )
|
|
12
|
+
t ^= i << r.getBCHDigit(t) - o;
|
|
13
|
+
return (n << 10 | t) ^ a;
|
|
14
|
+
}, e;
|
|
15
|
+
}
|
|
2
16
|
export {
|
|
3
|
-
|
|
17
|
+
m as __require
|
|
4
18
|
};
|
|
5
19
|
//# sourceMappingURL=index128.js.map
|
package/dist/index128.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index128.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index128.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js"],"sourcesContent":["const Utils = require('./utils')\n\nconst G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)\nconst G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)\nconst G15_BCH = Utils.getBCHDigit(G15)\n\n/**\n * Returns format information with relative error correction bits\n *\n * The format information is a 15-bit sequence containing 5 data bits,\n * with 10 error correction bits calculated using the (15, 5) BCH code.\n *\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Number} mask Mask pattern\n * @return {Number} Encoded format information bits\n */\nexports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {\n const data = ((errorCorrectionLevel.bit << 3) | mask)\n let d = data << 10\n\n while (Utils.getBCHDigit(d) - G15_BCH >= 0) {\n d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH))\n }\n\n // xor final data with mask pattern in order to ensure that\n // no combination of Error Correction Level and data mask pattern\n // will result in an all-zero data string\n return ((data << 10) | d) ^ G15_MASK\n}\n"],"names":["Utils","require$$0","G15","G15_MASK","G15_BCH","formatInfo","errorCorrectionLevel","mask","data","d"],"mappings":";;;;;;AAAA,QAAMA,IAAQC,EAAA,GAERC,IAAO,MACPC,IAAY,OACZC,IAAUJ,EAAM,YAAYE,CAAG;AAYrC,SAAAG,EAAA,iBAAyB,SAAyBC,GAAsBC,GAAM;AAC5E,UAAMC,IAASF,EAAqB,OAAO,IAAKC;AAChD,QAAIE,IAAID,KAAQ;AAEhB,WAAOR,EAAM,YAAYS,CAAC,IAAIL,KAAW;AACvC,MAAAK,KAAMP,KAAQF,EAAM,YAAYS,CAAC,IAAIL;AAMvC,YAASI,KAAQ,KAAMC,KAAKN;AAAA,EAC9B;;","x_google_ignoreList":[0]}
|
package/dist/index129.js
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as c } from "./index145.js";
|
|
2
|
+
import { __require as o } from "./index143.js";
|
|
3
|
+
import { __require as s } from "./index146.js";
|
|
4
|
+
var u;
|
|
5
|
+
function E() {
|
|
6
|
+
return u ? c : (u = 1, (function(i) {
|
|
7
|
+
const a = o(), e = s();
|
|
8
|
+
i.NUMERIC = {
|
|
9
|
+
id: "Numeric",
|
|
10
|
+
bit: 1,
|
|
11
|
+
ccBits: [10, 12, 14]
|
|
12
|
+
}, i.ALPHANUMERIC = {
|
|
13
|
+
id: "Alphanumeric",
|
|
14
|
+
bit: 2,
|
|
15
|
+
ccBits: [9, 11, 13]
|
|
16
|
+
}, i.BYTE = {
|
|
17
|
+
id: "Byte",
|
|
18
|
+
bit: 4,
|
|
19
|
+
ccBits: [8, 16, 16]
|
|
20
|
+
}, i.KANJI = {
|
|
21
|
+
id: "Kanji",
|
|
22
|
+
bit: 8,
|
|
23
|
+
ccBits: [8, 10, 12]
|
|
24
|
+
}, i.MIXED = {
|
|
25
|
+
bit: -1
|
|
26
|
+
}, i.getCharCountIndicator = function(r, n) {
|
|
27
|
+
if (!r.ccBits) throw new Error("Invalid mode: " + r);
|
|
28
|
+
if (!a.isValid(n))
|
|
29
|
+
throw new Error("Invalid version: " + n);
|
|
30
|
+
return n >= 1 && n < 10 ? r.ccBits[0] : n < 27 ? r.ccBits[1] : r.ccBits[2];
|
|
31
|
+
}, i.getBestModeForData = function(r) {
|
|
32
|
+
return e.testNumeric(r) ? i.NUMERIC : e.testAlphanumeric(r) ? i.ALPHANUMERIC : e.testKanji(r) ? i.KANJI : i.BYTE;
|
|
33
|
+
}, i.toString = function(r) {
|
|
34
|
+
if (r && r.id) return r.id;
|
|
35
|
+
throw new Error("Invalid mode");
|
|
36
|
+
}, i.isValid = function(r) {
|
|
37
|
+
return r && r.bit && r.ccBits;
|
|
38
|
+
};
|
|
39
|
+
function f(t) {
|
|
40
|
+
if (typeof t != "string")
|
|
41
|
+
throw new Error("Param is not a string");
|
|
42
|
+
switch (t.toLowerCase()) {
|
|
43
|
+
case "numeric":
|
|
44
|
+
return i.NUMERIC;
|
|
45
|
+
case "alphanumeric":
|
|
46
|
+
return i.ALPHANUMERIC;
|
|
47
|
+
case "kanji":
|
|
48
|
+
return i.KANJI;
|
|
49
|
+
case "byte":
|
|
50
|
+
return i.BYTE;
|
|
51
|
+
default:
|
|
52
|
+
throw new Error("Unknown mode: " + t);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
i.from = function(r, n) {
|
|
56
|
+
if (i.isValid(r))
|
|
57
|
+
return r;
|
|
58
|
+
try {
|
|
59
|
+
return f(r);
|
|
60
|
+
} catch {
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
})(c), c);
|
|
65
|
+
}
|
|
2
66
|
export {
|
|
3
|
-
|
|
67
|
+
E as __require
|
|
4
68
|
};
|
|
5
69
|
//# sourceMappingURL=index129.js.map
|
package/dist/index129.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index129.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index129.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js"],"sourcesContent":["const VersionCheck = require('./version-check')\nconst Regex = require('./regex')\n\n/**\n * Numeric mode encodes data from the decimal digit set (0 - 9)\n * (byte values 30HEX to 39HEX).\n * Normally, 3 data characters are represented by 10 bits.\n *\n * @type {Object}\n */\nexports.NUMERIC = {\n id: 'Numeric',\n bit: 1 << 0,\n ccBits: [10, 12, 14]\n}\n\n/**\n * Alphanumeric mode encodes data from a set of 45 characters,\n * i.e. 10 numeric digits (0 - 9),\n * 26 alphabetic characters (A - Z),\n * and 9 symbols (SP, $, %, *, +, -, ., /, :).\n * Normally, two input characters are represented by 11 bits.\n *\n * @type {Object}\n */\nexports.ALPHANUMERIC = {\n id: 'Alphanumeric',\n bit: 1 << 1,\n ccBits: [9, 11, 13]\n}\n\n/**\n * In byte mode, data is encoded at 8 bits per character.\n *\n * @type {Object}\n */\nexports.BYTE = {\n id: 'Byte',\n bit: 1 << 2,\n ccBits: [8, 16, 16]\n}\n\n/**\n * The Kanji mode efficiently encodes Kanji characters in accordance with\n * the Shift JIS system based on JIS X 0208.\n * The Shift JIS values are shifted from the JIS X 0208 values.\n * JIS X 0208 gives details of the shift coded representation.\n * Each two-byte character value is compacted to a 13-bit binary codeword.\n *\n * @type {Object}\n */\nexports.KANJI = {\n id: 'Kanji',\n bit: 1 << 3,\n ccBits: [8, 10, 12]\n}\n\n/**\n * Mixed mode will contain a sequences of data in a combination of any of\n * the modes described above\n *\n * @type {Object}\n */\nexports.MIXED = {\n bit: -1\n}\n\n/**\n * Returns the number of bits needed to store the data length\n * according to QR Code specifications.\n *\n * @param {Mode} mode Data mode\n * @param {Number} version QR Code version\n * @return {Number} Number of bits\n */\nexports.getCharCountIndicator = function getCharCountIndicator (mode, version) {\n if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)\n\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid version: ' + version)\n }\n\n if (version >= 1 && version < 10) return mode.ccBits[0]\n else if (version < 27) return mode.ccBits[1]\n return mode.ccBits[2]\n}\n\n/**\n * Returns the most efficient mode to store the specified data\n *\n * @param {String} dataStr Input data string\n * @return {Mode} Best mode\n */\nexports.getBestModeForData = function getBestModeForData (dataStr) {\n if (Regex.testNumeric(dataStr)) return exports.NUMERIC\n else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC\n else if (Regex.testKanji(dataStr)) return exports.KANJI\n else return exports.BYTE\n}\n\n/**\n * Return mode name as string\n *\n * @param {Mode} mode Mode object\n * @returns {String} Mode name\n */\nexports.toString = function toString (mode) {\n if (mode && mode.id) return mode.id\n throw new Error('Invalid mode')\n}\n\n/**\n * Check if input param is a valid mode object\n *\n * @param {Mode} mode Mode object\n * @returns {Boolean} True if valid mode, false otherwise\n */\nexports.isValid = function isValid (mode) {\n return mode && mode.bit && mode.ccBits\n}\n\n/**\n * Get mode object from its name\n *\n * @param {String} string Mode name\n * @returns {Mode} Mode object\n */\nfunction fromString (string) {\n if (typeof string !== 'string') {\n throw new Error('Param is not a string')\n }\n\n const lcStr = string.toLowerCase()\n\n switch (lcStr) {\n case 'numeric':\n return exports.NUMERIC\n case 'alphanumeric':\n return exports.ALPHANUMERIC\n case 'kanji':\n return exports.KANJI\n case 'byte':\n return exports.BYTE\n default:\n throw new Error('Unknown mode: ' + string)\n }\n}\n\n/**\n * Returns mode from a value.\n * If value is not a valid mode, returns defaultValue\n *\n * @param {Mode|String} value Encoding mode\n * @param {Mode} defaultValue Fallback value\n * @return {Mode} Encoding mode\n */\nexports.from = function from (value, defaultValue) {\n if (exports.isValid(value)) {\n return value\n }\n\n try {\n return fromString(value)\n } catch (e) {\n return defaultValue\n }\n}\n"],"names":["VersionCheck","require$$0","Regex","require$$1","exports","mode","version","dataStr","fromString","string","value","defaultValue"],"mappings":";;;;;;AAAA,UAAMA,IAAeC,EAAA,GACfC,IAAQC,EAAA;AASdC,IAAAA,EAAA,UAAkB;AAAA,MAChB,IAAI;AAAA,MACJ,KAAK;AAAA,MACL,QAAQ,CAAC,IAAI,IAAI,EAAE;AAAA,IACrB,GAWAA,EAAA,eAAuB;AAAA,MACrB,IAAI;AAAA,MACJ,KAAK;AAAA,MACL,QAAQ,CAAC,GAAG,IAAI,EAAE;AAAA,IACpB,GAOAA,EAAA,OAAe;AAAA,MACb,IAAI;AAAA,MACJ,KAAK;AAAA,MACL,QAAQ,CAAC,GAAG,IAAI,EAAE;AAAA,IACpB,GAWAA,EAAA,QAAgB;AAAA,MACd,IAAI;AAAA,MACJ,KAAK;AAAA,MACL,QAAQ,CAAC,GAAG,IAAI,EAAE;AAAA,IACpB,GAQAA,EAAA,QAAgB;AAAA,MACd,KAAK;AAAA,IACP,GAUAA,EAAA,wBAAgC,SAAgCC,GAAMC,GAAS;AAC7E,UAAI,CAACD,EAAK,OAAQ,OAAM,IAAI,MAAM,mBAAmBA,CAAI;AAEzD,UAAI,CAACL,EAAa,QAAQM,CAAO;AAC/B,cAAM,IAAI,MAAM,sBAAsBA,CAAO;AAG/C,aAAIA,KAAW,KAAKA,IAAU,KAAWD,EAAK,OAAO,CAAC,IAC7CC,IAAU,KAAWD,EAAK,OAAO,CAAC,IACpCA,EAAK,OAAO,CAAC;AAAA,IACtB,GAQAD,EAAA,qBAA6B,SAA6BG,GAAS;AACjE,aAAIL,EAAM,YAAYK,CAAO,IAAUH,EAAQ,UACtCF,EAAM,iBAAiBK,CAAO,IAAUH,EAAQ,eAChDF,EAAM,UAAUK,CAAO,IAAUH,EAAQ,QACtCA,EAAQ;AAAA,IACtB,GAQAA,EAAA,WAAmB,SAAmBC,GAAM;AAC1C,UAAIA,KAAQA,EAAK,GAAI,QAAOA,EAAK;AACjC,YAAM,IAAI,MAAM,cAAc;AAAA,IAChC,GAQAD,EAAA,UAAkB,SAAkBC,GAAM;AACxC,aAAOA,KAAQA,EAAK,OAAOA,EAAK;AAAA,IAClC;AAQA,aAASG,EAAYC,GAAQ;AAC3B,UAAI,OAAOA,KAAW;AACpB,cAAM,IAAI,MAAM,uBAAuB;AAKzC,cAFcA,EAAO,YAAW,GAEnB;AAAA,QACX,KAAK;AACH,iBAAOL,EAAQ;AAAA,QACjB,KAAK;AACH,iBAAOA,EAAQ;AAAA,QACjB,KAAK;AACH,iBAAOA,EAAQ;AAAA,QACjB,KAAK;AACH,iBAAOA,EAAQ;AAAA,QACjB;AACE,gBAAM,IAAI,MAAM,mBAAmBK,CAAM;AAAA,MAC/C;AAAA,IACA;AAUAL,IAAAA,EAAA,OAAe,SAAeM,GAAOC,GAAc;AACjD,UAAIP,EAAQ,QAAQM,CAAK;AACvB,eAAOA;AAGT,UAAI;AACF,eAAOF,EAAWE,CAAK;AAAA,MAC3B,QAAc;AACV,eAAOC;AAAA,MACX;AAAA,IACA;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index13.js
CHANGED
|
@@ -1,98 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
xs: "card-xs",
|
|
33
|
-
sm: "card-sm",
|
|
34
|
-
md: "card-md",
|
|
35
|
-
lg: "card-lg",
|
|
36
|
-
xl: "card-xl"
|
|
37
|
-
}[m],
|
|
38
|
-
v && "border border-base-content/10 shadow-sm",
|
|
39
|
-
w && "card-side",
|
|
40
|
-
x && "image-full",
|
|
41
|
-
k && "transition-shadow hover:shadow-lg cursor-pointer",
|
|
42
|
-
o
|
|
43
|
-
].filter(Boolean).join(" "), u = {
|
|
44
|
-
start: "justify-start",
|
|
45
|
-
center: "justify-center",
|
|
46
|
-
end: "justify-end"
|
|
47
|
-
};
|
|
48
|
-
return b ? /* @__PURE__ */ e("div", { className: N, style: n, ...f, children: [
|
|
49
|
-
d && /* @__PURE__ */ s("figure", { children: /* @__PURE__ */ s("div", { className: "skeleton h-48 w-full rounded-none" }) }),
|
|
50
|
-
/* @__PURE__ */ e("div", { className: "card-body", children: [
|
|
51
|
-
(l || a) && /* @__PURE__ */ e("div", { className: "flex gap-4 mb-4", children: [
|
|
52
|
-
l && /* @__PURE__ */ s("div", { className: "skeleton w-12 h-12 rounded-full flex-shrink-0" }),
|
|
53
|
-
/* @__PURE__ */ e("div", { className: "flex-1 space-y-2", children: [
|
|
54
|
-
/* @__PURE__ */ s("div", { className: "skeleton h-6 w-2/3" }),
|
|
55
|
-
i && /* @__PURE__ */ s("div", { className: "skeleton h-4 w-full" })
|
|
56
|
-
] })
|
|
57
|
-
] }),
|
|
58
|
-
!l && !a && /* @__PURE__ */ e(h, { children: [
|
|
59
|
-
/* @__PURE__ */ s("div", { className: "skeleton h-6 w-2/3 mb-4" }),
|
|
60
|
-
/* @__PURE__ */ e("div", { className: "space-y-2", children: [
|
|
61
|
-
/* @__PURE__ */ s("div", { className: "skeleton h-4 w-full" }),
|
|
62
|
-
/* @__PURE__ */ s("div", { className: "skeleton h-4 w-5/6" }),
|
|
63
|
-
/* @__PURE__ */ s("div", { className: "skeleton h-4 w-4/6" })
|
|
64
|
-
] })
|
|
65
|
-
] }),
|
|
66
|
-
c && /* @__PURE__ */ e("div", { className: `card-actions ${u[t]} mt-4`, children: [
|
|
67
|
-
/* @__PURE__ */ s("div", { className: "skeleton h-10 w-20" }),
|
|
68
|
-
/* @__PURE__ */ s("div", { className: "skeleton h-10 w-20" })
|
|
69
|
-
] })
|
|
70
|
-
] })
|
|
71
|
-
] }) : /* @__PURE__ */ e("div", { className: N, style: n, ...f, children: [
|
|
72
|
-
d && /* @__PURE__ */ s("figure", { children: d }),
|
|
73
|
-
/* @__PURE__ */ e("div", { className: "card-body", children: [
|
|
74
|
-
l || a && i ? /* @__PURE__ */ e(h, { children: [
|
|
75
|
-
/* @__PURE__ */ e("div", { className: "flex gap-4", children: [
|
|
76
|
-
l && /* @__PURE__ */ s("div", { className: "flex-shrink-0", children: l }),
|
|
77
|
-
/* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: [
|
|
78
|
-
a && /* @__PURE__ */ s("h2", { className: "card-title", children: a }),
|
|
79
|
-
i && /* @__PURE__ */ s("p", { className: "text-sm opacity-70 mt-1", children: i })
|
|
80
|
-
] })
|
|
81
|
-
] }),
|
|
82
|
-
r
|
|
83
|
-
] }) : /* @__PURE__ */ e(h, { children: [
|
|
84
|
-
a && /* @__PURE__ */ s("h2", { className: "card-title", children: a }),
|
|
85
|
-
r
|
|
86
|
-
] }),
|
|
87
|
-
c && /* @__PURE__ */ s("div", { className: `card-actions ${u[t]}`, children: c })
|
|
88
|
-
] })
|
|
89
|
-
] });
|
|
90
|
-
}
|
|
91
|
-
const B = Object.assign(j, {
|
|
92
|
-
Grid: g
|
|
93
|
-
});
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as o } from "react";
|
|
3
|
+
import { WeekCalendar as s, MonthCalendar as i } from "./index107.js";
|
|
4
|
+
import { en as k, fr as u } from "./index107.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const n = o(
|
|
7
|
+
({ children: a, className: e = "" }, l) => /* @__PURE__ */ r(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
ref: l,
|
|
11
|
+
className: `calendar-daisyui ${e}`,
|
|
12
|
+
"data-testid": "calendar",
|
|
13
|
+
children: a
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
n.displayName = "CalendarWrapper";
|
|
18
|
+
const d = ({
|
|
19
|
+
className: a = "",
|
|
20
|
+
...e
|
|
21
|
+
}) => /* @__PURE__ */ r(n, { className: a, children: /* @__PURE__ */ r(i, { ...e }) });
|
|
22
|
+
d.displayName = "Calendar.Month";
|
|
23
|
+
const t = ({
|
|
24
|
+
className: a = "",
|
|
25
|
+
...e
|
|
26
|
+
}) => /* @__PURE__ */ r(n, { className: a, children: /* @__PURE__ */ r(s, { ...e }) });
|
|
27
|
+
t.displayName = "Calendar.Week";
|
|
28
|
+
const f = {
|
|
29
|
+
Month: d,
|
|
30
|
+
Week: t
|
|
31
|
+
};
|
|
94
32
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
33
|
+
f as Calendar,
|
|
34
|
+
f as default,
|
|
35
|
+
k as en,
|
|
36
|
+
u as fr
|
|
97
37
|
};
|
|
98
38
|
//# sourceMappingURL=index13.js.map
|
package/dist/index13.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index13.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index13.js","sources":["../src/components/Calendar.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport {\n MonthCalendar as BaseMonthCalendar,\n WeekCalendar as BaseWeekCalendar,\n en,\n fr,\n} from '@vinctus/calendar'\nimport type {\n MonthCalendarProps as BaseMonthCalendarProps,\n WeekCalendarProps as BaseWeekCalendarProps,\n CalendarEvent,\n CalendarLocale,\n} from '@vinctus/calendar'\nimport '@vinctus/calendar/dist/index.css'\n\n// Re-export types and locales\nexport type { CalendarEvent, CalendarLocale }\nexport { en, fr }\n\nexport interface MonthCalendarProps<T extends CalendarEvent = CalendarEvent>\n extends Omit<BaseMonthCalendarProps<T>, 'theme'> {\n className?: string\n}\n\nexport interface WeekCalendarProps<T extends CalendarEvent = CalendarEvent>\n extends Omit<BaseWeekCalendarProps<T>, 'theme'> {\n className?: string\n}\n\ninterface CalendarWrapperProps {\n children: React.ReactNode\n className?: string\n}\n\nconst CalendarWrapper = forwardRef<HTMLDivElement, CalendarWrapperProps>(\n ({ children, className = '' }, ref) => {\n return (\n <div\n ref={ref}\n className={`calendar-daisyui ${className}`}\n data-testid=\"calendar\"\n >\n {children}\n </div>\n )\n }\n)\nCalendarWrapper.displayName = 'CalendarWrapper'\n\nconst MonthCalendar = <T extends CalendarEvent = CalendarEvent>({\n className = '',\n ...props\n}: MonthCalendarProps<T>) => {\n return (\n <CalendarWrapper className={className}>\n <BaseMonthCalendar {...props} />\n </CalendarWrapper>\n )\n}\nMonthCalendar.displayName = 'Calendar.Month'\n\nconst WeekCalendar = <T extends CalendarEvent = CalendarEvent>({\n className = '',\n ...props\n}: WeekCalendarProps<T>) => {\n return (\n <CalendarWrapper className={className}>\n <BaseWeekCalendar {...props} />\n </CalendarWrapper>\n )\n}\nWeekCalendar.displayName = 'Calendar.Week'\n\ninterface CalendarComponent {\n Month: typeof MonthCalendar\n Week: typeof WeekCalendar\n}\n\nexport const Calendar: CalendarComponent = {\n Month: MonthCalendar,\n Week: WeekCalendar,\n}\n\nexport default Calendar\n"],"names":["CalendarWrapper","forwardRef","children","className","ref","jsx","MonthCalendar","props","BaseMonthCalendar","WeekCalendar","BaseWeekCalendar","Calendar"],"mappings":";;;;;AAkCA,MAAMA,IAAkBC;AAAA,EACtB,CAAC,EAAE,UAAAC,GAAU,WAAAC,IAAY,GAAA,GAAMC,MAE3B,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAW,oBAAoBD,CAAS;AAAA,MACxC,eAAY;AAAA,MAEX,UAAAD;AAAA,IAAA;AAAA,EAAA;AAIT;AACAF,EAAgB,cAAc;AAE9B,MAAMM,IAAgB,CAA0C;AAAA,EAC9D,WAAAH,IAAY;AAAA,EACZ,GAAGI;AACL,wBAEKP,GAAA,EAAgB,WAAAG,GACf,4BAACK,GAAA,EAAmB,GAAGD,GAAO,GAChC;AAGJD,EAAc,cAAc;AAE5B,MAAMG,IAAe,CAA0C;AAAA,EAC7D,WAAAN,IAAY;AAAA,EACZ,GAAGI;AACL,wBAEKP,GAAA,EAAgB,WAAAG,GACf,4BAACO,GAAA,EAAkB,GAAGH,GAAO,GAC/B;AAGJE,EAAa,cAAc;AAOpB,MAAME,IAA8B;AAAA,EACzC,OAAOL;AAAA,EACP,MAAMG;AACR;"}
|