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