@calcom/atoms 1.0.20 → 1.0.21
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/{AddressInput-pyyFW0cs.js → AddressInput-JoQaGbRT.js} +9 -10
- package/dist/{AlbyPriceComponent-wC_n8bJa.js → AlbyPriceComponent-EPbQ6-Ch.js} +13 -14
- package/dist/{Card-AX0eZjOC.js → Card-y1TAfpoG.js} +12 -13
- package/dist/{DatePicker-pErY4gNZ.js → DatePicker-JD_V3fz2.js} +8 -9
- package/dist/{PhoneInput-6AZAVvaQ.js → PhoneInput-Am-blD_t.js} +120 -121
- package/dist/PoweredBy-KQOqSIbh.js +31 -0
- package/dist/UnpublishedEntity-3phZLMux.js +23 -0
- package/dist/cal-atoms.js +4 -4
- package/dist/cal-atoms.umd.cjs +7837 -0
- package/dist/{framer-features-eR2CxD7D.js → framer-features-QYUZb8Rn.js} +29 -29
- package/dist/{index-qlzlYQfG.js → index-SNl3aeux.js} +2 -2
- package/dist/index-_WKFJWoU.js +4 -0
- package/dist/{index-93QOtKl6.js → index-aQmnJ9l7.js} +3 -3
- package/dist/{index-Zmk7j2SL.js → index-jQVrN-br.js} +1 -1
- package/dist/{index-6PQ0n_zn.js → index-s72r9oDm.js} +23044 -22408
- package/dist/{index-Aw_S8xCP.js → index-x4lkDi7r.js} +23 -24
- package/dist/{isSupportedCountry-l4nZ7iA1.js → isSupportedCountry-CHPHKvcC.js} +1 -1
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/PoweredBy-LfOhjGas.js +0 -32
- package/dist/UnpublishedEntity-YVejQGGf.js +0 -24
- package/dist/index-2xQ1nwjF.js +0 -4
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
function r({
|
|
1
|
+
import { ar as m, aq as e, am as n, m as c, aC as o } from "./index-s72r9oDm.js";
|
|
2
|
+
function u({
|
|
4
3
|
value: s,
|
|
5
|
-
onChange:
|
|
4
|
+
onChange: l,
|
|
6
5
|
...a
|
|
7
6
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ m("div", {
|
|
9
8
|
className: "relative flex items-center",
|
|
10
|
-
children: [/* @__PURE__ */ e(
|
|
9
|
+
children: [/* @__PURE__ */ e(n, {
|
|
11
10
|
name: "map-pin",
|
|
12
11
|
className: "text-muted absolute left-0.5 ml-3 h-4 w-4 -translate-y-1/2",
|
|
13
12
|
style: {
|
|
14
13
|
top: "44%"
|
|
15
14
|
}
|
|
16
|
-
}), /* @__PURE__ */ e(
|
|
15
|
+
}), /* @__PURE__ */ e(c, {
|
|
17
16
|
...a,
|
|
18
17
|
value: s,
|
|
19
|
-
onChange: (
|
|
20
|
-
t
|
|
18
|
+
onChange: (t) => {
|
|
19
|
+
l(t.target.value);
|
|
21
20
|
},
|
|
22
21
|
className: o("pl-10", a == null ? void 0 : a.className)
|
|
23
22
|
})]
|
|
24
23
|
});
|
|
25
24
|
}
|
|
26
25
|
export {
|
|
27
|
-
|
|
26
|
+
u as default
|
|
28
27
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { jsx as J, jsxs as oe } from "react/jsx-runtime";
|
|
1
|
+
import { aL as ee, aM as F, aN as re, aq as K, a6 as ne, ar as te, aO as oe } from "./index-s72r9oDm.js";
|
|
2
|
+
import J from "react";
|
|
4
3
|
var ie = { exports: {} }, D = { exports: {} };
|
|
5
4
|
const ae = {}, se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
5
|
__proto__: null,
|
|
@@ -860,10 +859,10 @@ var ue = {};
|
|
|
860
859
|
const q = y.slice(0, j), z = y.slice(j + 1);
|
|
861
860
|
if (z.length < 6)
|
|
862
861
|
throw new Error("Data must be at least 6 characters long");
|
|
863
|
-
const
|
|
864
|
-
if (!z.endsWith(
|
|
865
|
-
throw new Error(`Invalid checksum in ${y}: expected "${
|
|
866
|
-
return { prefix: q, words:
|
|
862
|
+
const M = t.decode(z).slice(0, -6), G = d(q, M, r);
|
|
863
|
+
if (!z.endsWith(G))
|
|
864
|
+
throw new Error(`Invalid checksum in ${y}: expected "${G}"`);
|
|
865
|
+
return { prefix: q, words: M };
|
|
867
866
|
}
|
|
868
867
|
const x = C(T);
|
|
869
868
|
function P(y) {
|
|
@@ -939,13 +938,13 @@ var he = { __proto__: null, getFiatBtcRate: V, getFiatValue: Y, getSatoshiValue:
|
|
|
939
938
|
const l = await V(v);
|
|
940
939
|
return Math.floor(Number(o) / l);
|
|
941
940
|
}, getFormattedFiatValue: async ({ satoshi: o, currency: v, locale: l }) => (l || (l = "en"), (await Y({ satoshi: o, currency: v })).toLocaleString(l, { style: "currency", currency: v })) };
|
|
942
|
-
function
|
|
941
|
+
function ye({
|
|
943
942
|
displaySymbol: o,
|
|
944
943
|
price: v,
|
|
945
944
|
formattedPrice: l
|
|
946
945
|
}) {
|
|
947
|
-
const [w, m] =
|
|
948
|
-
return
|
|
946
|
+
const [w, m] = J.useState("loading...");
|
|
947
|
+
return J.useEffect(() => {
|
|
949
948
|
(async () => {
|
|
950
949
|
const b = await he.getFiatValue({
|
|
951
950
|
satoshi: v,
|
|
@@ -953,16 +952,16 @@ function we({
|
|
|
953
952
|
});
|
|
954
953
|
m(`$${b.toFixed(2)}`);
|
|
955
954
|
})();
|
|
956
|
-
}, [v]), /* @__PURE__ */
|
|
955
|
+
}, [v]), /* @__PURE__ */ K(ne, {
|
|
957
956
|
content: w,
|
|
958
|
-
children: /* @__PURE__ */
|
|
957
|
+
children: /* @__PURE__ */ te("div", {
|
|
959
958
|
className: "inline-flex items-center justify-center",
|
|
960
|
-
children: [o && /* @__PURE__ */
|
|
959
|
+
children: [o && /* @__PURE__ */ K(oe, {
|
|
961
960
|
className: "h-4 w-4"
|
|
962
961
|
}), l]
|
|
963
962
|
})
|
|
964
963
|
});
|
|
965
964
|
}
|
|
966
965
|
export {
|
|
967
|
-
|
|
966
|
+
ye as AlbyPriceComponent
|
|
968
967
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const i = p("", {
|
|
1
|
+
import { as as N, ar as d, aC as m, aq as r, h as u, aD as p } from "./index-s72r9oDm.js";
|
|
2
|
+
const c = p("", {
|
|
4
3
|
// Variants won't have any style by default. Style will only be applied if the variants are combined.
|
|
5
4
|
// So, style is defined in compoundVariants.
|
|
6
5
|
variants: {
|
|
@@ -82,11 +81,11 @@ const i = p("", {
|
|
|
82
81
|
}
|
|
83
82
|
]
|
|
84
83
|
});
|
|
85
|
-
function
|
|
84
|
+
function k({
|
|
86
85
|
image: f,
|
|
87
86
|
title: h,
|
|
88
87
|
icon: b,
|
|
89
|
-
description:
|
|
88
|
+
description: i,
|
|
90
89
|
variant: s,
|
|
91
90
|
actionButton: e,
|
|
92
91
|
containerProps: t,
|
|
@@ -97,7 +96,7 @@ function g({
|
|
|
97
96
|
}) {
|
|
98
97
|
const C = l && l.href.startsWith("https") ? "a" : N;
|
|
99
98
|
return /* @__PURE__ */ d("div", {
|
|
100
|
-
className: m(t == null ? void 0 : t.className,
|
|
99
|
+
className: m(t == null ? void 0 : t.className, c({
|
|
101
100
|
variant: s,
|
|
102
101
|
structure: "card"
|
|
103
102
|
}), "bg-default border-subtle text-default flex flex-col justify-between rounded-md border"),
|
|
@@ -107,25 +106,25 @@ function g({
|
|
|
107
106
|
children: [b && b, f && /* @__PURE__ */ r("img", {
|
|
108
107
|
src: f,
|
|
109
108
|
alt: a == null ? void 0 : a.alt,
|
|
110
|
-
className: m(a == null ? void 0 : a.className,
|
|
109
|
+
className: m(a == null ? void 0 : a.className, c({
|
|
111
110
|
variant: s,
|
|
112
111
|
structure: "image"
|
|
113
112
|
})),
|
|
114
113
|
...a
|
|
115
114
|
}), /* @__PURE__ */ r("h5", {
|
|
116
115
|
title: h,
|
|
117
|
-
className: m(
|
|
116
|
+
className: m(c({
|
|
118
117
|
variant: s,
|
|
119
118
|
structure: "title"
|
|
120
119
|
}), "text-emphasis line-clamp-1 font-bold leading-5"),
|
|
121
120
|
children: h
|
|
122
|
-
}),
|
|
123
|
-
title:
|
|
124
|
-
className: m(
|
|
121
|
+
}), i && /* @__PURE__ */ r("p", {
|
|
122
|
+
title: i.toString(),
|
|
123
|
+
className: m(c({
|
|
125
124
|
variant: s,
|
|
126
125
|
structure: "description"
|
|
127
126
|
}), "pt-1"),
|
|
128
|
-
children:
|
|
127
|
+
children: i
|
|
129
128
|
})]
|
|
130
129
|
}), s === "SidebarCard" && /* @__PURE__ */ d("a", {
|
|
131
130
|
onClick: e == null ? void 0 : e.onClick,
|
|
@@ -185,5 +184,5 @@ function g({
|
|
|
185
184
|
});
|
|
186
185
|
}
|
|
187
186
|
export {
|
|
188
|
-
|
|
187
|
+
k as C
|
|
189
188
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { an as
|
|
2
|
-
|
|
3
|
-
const b = ({
|
|
1
|
+
import { an as T, aw as g, ax as y, ay as f, aq as u, az as x, aA as M, aB as A } from "./index-s72r9oDm.js";
|
|
2
|
+
const B = ({
|
|
4
3
|
event: n,
|
|
5
4
|
schedule: e,
|
|
6
5
|
classNames: t
|
|
@@ -8,8 +7,8 @@ const b = ({
|
|
|
8
7
|
var D, k, d, P, Y;
|
|
9
8
|
const {
|
|
10
9
|
i18n: C
|
|
11
|
-
} =
|
|
12
|
-
return /* @__PURE__ */
|
|
10
|
+
} = T(), [r, S] = g((o) => [o.month, o.selectedDate], y), [i, a, w] = g((o) => [o.setSelectedDate, o.setMonth, o.setDayCount], y), p = f((D = e == null ? void 0 : e.data) == null ? void 0 : D.slots);
|
|
11
|
+
return /* @__PURE__ */ u(x, {
|
|
13
12
|
customClassNames: {
|
|
14
13
|
datePickerTitle: t == null ? void 0 : t.datePickerTitle,
|
|
15
14
|
datePickerDays: t == null ? void 0 : t.datePickerDays,
|
|
@@ -23,16 +22,16 @@ const b = ({
|
|
|
23
22
|
i(o === null ? o : o.format("YYYY-MM-DD"));
|
|
24
23
|
},
|
|
25
24
|
onMonthChange: (o) => {
|
|
26
|
-
|
|
25
|
+
a(o.format("YYYY-MM")), i(o.format("YYYY-MM-DD")), w(null);
|
|
27
26
|
},
|
|
28
|
-
includedDates:
|
|
27
|
+
includedDates: p,
|
|
29
28
|
locale: C.language,
|
|
30
29
|
browsingDate: r ? M(r) : void 0,
|
|
31
30
|
selected: M(S),
|
|
32
|
-
weekStart:
|
|
31
|
+
weekStart: A((P = (d = (k = n == null ? void 0 : n.data) == null ? void 0 : k.users) == null ? void 0 : d[0]) == null ? void 0 : P.weekStart),
|
|
33
32
|
slots: (Y = e == null ? void 0 : e.data) == null ? void 0 : Y.slots
|
|
34
33
|
});
|
|
35
34
|
};
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
B as DatePicker
|
|
38
37
|
};
|