@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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aP as L, aQ as V, aR as D, aS as M, aT as Q, aU as Z, aV as _, aW as j, aX as re, aY as ie, aZ as oe, a_ as ae } from "./index-s72r9oDm.js";
|
|
2
2
|
function b(t, e, n, s = { passive: !0 }) {
|
|
3
3
|
return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
|
|
4
4
|
}
|
|
5
5
|
const ce = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
|
|
6
|
-
function
|
|
6
|
+
function q(t, e = "page") {
|
|
7
7
|
return {
|
|
8
8
|
point: {
|
|
9
9
|
x: t[e + "X"],
|
|
@@ -11,7 +11,7 @@ function Z(t, e = "page") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
const ue = (t) => (e) => ce(e) && t(e,
|
|
14
|
+
const ue = (t) => (e) => ce(e) && t(e, q(e));
|
|
15
15
|
function T(t, e, n, s) {
|
|
16
16
|
return b(t, e, ue(n), s);
|
|
17
17
|
}
|
|
@@ -24,15 +24,15 @@ function $(t) {
|
|
|
24
24
|
return e === null ? (e = t, n) : !1;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const X = $("dragHorizontal"), Y = $("dragVertical");
|
|
28
28
|
function le(t) {
|
|
29
29
|
let e = !1;
|
|
30
30
|
if (t === "y")
|
|
31
|
-
e =
|
|
31
|
+
e = Y();
|
|
32
32
|
else if (t === "x")
|
|
33
|
-
e =
|
|
33
|
+
e = X();
|
|
34
34
|
else {
|
|
35
|
-
const n =
|
|
35
|
+
const n = X(), s = Y();
|
|
36
36
|
n && s ? e = () => {
|
|
37
37
|
n(), s();
|
|
38
38
|
} : (n && n(), s && s());
|
|
@@ -50,7 +50,7 @@ class w {
|
|
|
50
50
|
update() {
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function J(t, e) {
|
|
54
54
|
const n = "pointer" + (e ? "enter" : "leave"), s = "onHover" + (e ? "Start" : "End"), o = (a, l) => {
|
|
55
55
|
if (a.type === "touch" || ee())
|
|
56
56
|
return;
|
|
@@ -63,7 +63,7 @@ function Q(t, e) {
|
|
|
63
63
|
}
|
|
64
64
|
class he extends w {
|
|
65
65
|
mount() {
|
|
66
|
-
this.unmount = L(
|
|
66
|
+
this.unmount = L(J(this.node, !0), J(this.node, !1));
|
|
67
67
|
}
|
|
68
68
|
unmount() {
|
|
69
69
|
}
|
|
@@ -95,7 +95,7 @@ function H(t, e) {
|
|
|
95
95
|
if (!e)
|
|
96
96
|
return;
|
|
97
97
|
const n = new PointerEvent("pointer" + t);
|
|
98
|
-
e(n,
|
|
98
|
+
e(n, q(n));
|
|
99
99
|
}
|
|
100
100
|
class fe extends w {
|
|
101
101
|
constructor() {
|
|
@@ -152,8 +152,8 @@ class fe extends w {
|
|
|
152
152
|
this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
const e =
|
|
155
|
+
const B = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), pe = (t) => {
|
|
156
|
+
const e = B.get(t.target);
|
|
157
157
|
e && e(t);
|
|
158
158
|
}, me = (t) => {
|
|
159
159
|
t.forEach(pe);
|
|
@@ -166,8 +166,8 @@ function ve({ root: t, ...e }) {
|
|
|
166
166
|
}
|
|
167
167
|
function Pe(t, e, n) {
|
|
168
168
|
const s = ve(e);
|
|
169
|
-
return
|
|
170
|
-
|
|
169
|
+
return B.set(t, n), s.observe(t), () => {
|
|
170
|
+
B.delete(t), s.unobserve(t);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
const ge = {
|
|
@@ -234,11 +234,11 @@ function ne(t, e) {
|
|
|
234
234
|
return !1;
|
|
235
235
|
return !0;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
const s =
|
|
237
|
+
function G(t, e, n = {}) {
|
|
238
|
+
const s = M(t, e, n.custom);
|
|
239
239
|
let { transition: o = t.getDefaultTransition() || {} } = s || {};
|
|
240
240
|
n.transitionOverride && (o = n.transitionOverride);
|
|
241
|
-
const a = s ? () => Promise.all(
|
|
241
|
+
const a = s ? () => Promise.all(Q(t, s, n)) : () => Promise.resolve(), l = t.variantChildren && t.variantChildren.size ? (i = 0) => {
|
|
242
242
|
const { delayChildren: r = 0, staggerChildren: u, staggerDirection: p } = o;
|
|
243
243
|
return we(t, e, r + i, u, p, n);
|
|
244
244
|
} : () => Promise.resolve(), { when: c } = o;
|
|
@@ -251,7 +251,7 @@ function B(t, e, n = {}) {
|
|
|
251
251
|
function we(t, e, n = 0, s = 0, o = 1, a) {
|
|
252
252
|
const l = [], c = (t.variantChildren.size - 1) * s, i = o === 1 ? (r = 0) => r * s : (r = 0) => c - r * s;
|
|
253
253
|
return Array.from(t.variantChildren).sort(Se).forEach((r, u) => {
|
|
254
|
-
r.notify("AnimationStart", e), l.push(
|
|
254
|
+
r.notify("AnimationStart", e), l.push(G(r, e, {
|
|
255
255
|
...a,
|
|
256
256
|
delay: n + i(u)
|
|
257
257
|
}).then(() => r.notify("AnimationComplete", e)));
|
|
@@ -264,17 +264,17 @@ function Ce(t, e, n = {}) {
|
|
|
264
264
|
t.notify("AnimationStart", e);
|
|
265
265
|
let s;
|
|
266
266
|
if (Array.isArray(e)) {
|
|
267
|
-
const o = e.map((a) =>
|
|
267
|
+
const o = e.map((a) => G(t, a, n));
|
|
268
268
|
s = Promise.all(o);
|
|
269
269
|
} else if (typeof e == "string")
|
|
270
|
-
s =
|
|
270
|
+
s = G(t, e, n);
|
|
271
271
|
else {
|
|
272
|
-
const o = typeof e == "function" ?
|
|
273
|
-
s = Promise.all(
|
|
272
|
+
const o = typeof e == "function" ? M(t, e, n.custom) : e;
|
|
273
|
+
s = Promise.all(Q(t, o, n));
|
|
274
274
|
}
|
|
275
275
|
return s.then(() => t.notify("AnimationComplete", e));
|
|
276
276
|
}
|
|
277
|
-
const Ve = [...
|
|
277
|
+
const Ve = [...j].reverse(), Le = j.length;
|
|
278
278
|
function ke(t) {
|
|
279
279
|
return (e) => Promise.all(e.map(({ animation: n, options: s }) => Ce(t, n, s)));
|
|
280
280
|
}
|
|
@@ -283,7 +283,7 @@ function Te(t) {
|
|
|
283
283
|
const n = xe();
|
|
284
284
|
let s = !0;
|
|
285
285
|
const o = (i, r) => {
|
|
286
|
-
const u =
|
|
286
|
+
const u = M(t, r);
|
|
287
287
|
if (u) {
|
|
288
288
|
const { transition: p, transitionEnd: m, ...v } = u;
|
|
289
289
|
i = { ...i, ...v, ...m };
|
|
@@ -303,7 +303,7 @@ function Te(t) {
|
|
|
303
303
|
if (k && s && t.manuallyAnimateOnMount && (k = !1), h.protectedKeys = { ...g }, // If it isn't active and hasn't *just* been set as inactive
|
|
304
304
|
!h.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
|
|
305
305
|
!P && !h.prevProp || // Or if the prop doesn't define an animation
|
|
306
|
-
|
|
306
|
+
Z(P) || typeof P == "boolean")
|
|
307
307
|
continue;
|
|
308
308
|
const N = Oe(h.prevProp, P);
|
|
309
309
|
let I = N || // If we're making this variant active, we want to always make it active
|
|
@@ -320,7 +320,7 @@ function Te(t) {
|
|
|
320
320
|
};
|
|
321
321
|
for (const d in se) {
|
|
322
322
|
const C = S[d], E = W[d];
|
|
323
|
-
g.hasOwnProperty(d) || (C !== E ?
|
|
323
|
+
g.hasOwnProperty(d) || (C !== E ? _(C) && _(E) ? !ne(C, E) || N ? F(d) : h.protectedKeys[d] = !0 : C !== void 0 ? F(d) : v.add(d) : C !== void 0 && v.has(d) ? F(d) : h.protectedKeys[d] = !0);
|
|
324
324
|
}
|
|
325
325
|
h.prevProp = P, h.prevResolvedValues = S, h.isActive && (g = { ...g, ...S }), s && t.blockInitialAnimation && (I = !1), I && !k && m.push(...U.map((d) => ({
|
|
326
326
|
animation: d,
|
|
@@ -390,7 +390,7 @@ class Ie extends w {
|
|
|
390
390
|
}
|
|
391
391
|
updateAnimationControlsSubscription() {
|
|
392
392
|
const { animate: e } = this.node.getProps();
|
|
393
|
-
this.unmount(),
|
|
393
|
+
this.unmount(), Z(e) && (this.unmount = e.subscribe(this.node));
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
396
|
* Subscribe any provided AnimationControls to the component's VisualElement
|
|
@@ -433,11 +433,11 @@ const De = {
|
|
|
433
433
|
exit: {
|
|
434
434
|
Feature: Ee
|
|
435
435
|
}
|
|
436
|
-
}, He = (t, e) => ie(t) ? new oe(e, { enableHardwareAcceleration: !1 }) : new ae(e, { enableHardwareAcceleration: !0 }),
|
|
436
|
+
}, He = (t, e) => ie(t) ? new oe(e, { enableHardwareAcceleration: !1 }) : new ae(e, { enableHardwareAcceleration: !0 }), Be = {
|
|
437
437
|
renderer: He,
|
|
438
438
|
...De,
|
|
439
439
|
...be
|
|
440
440
|
};
|
|
441
441
|
export {
|
|
442
|
-
|
|
442
|
+
Be as default
|
|
443
443
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-
|
|
2
|
-
import { i } from "./isSupportedCountry-
|
|
1
|
+
import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-s72r9oDm.js";
|
|
2
|
+
import { i } from "./isSupportedCountry-CHPHKvcC.js";
|
|
3
3
|
export {
|
|
4
4
|
a as DIGITS,
|
|
5
5
|
o as ParseError,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ag as o, W as s, A as t, c as r, B as n, h as i, j as l, K as d, C as p, k as u, ae as m, ad as g, X as c, a7 as C, a8 as D, a9 as T, aa as I, ab as S, ac as h, u as w, v as x, J as k, w as B, x as b, y as A, M as E, z as F, G as L, E as M, l as f, Z as G, R as v, F as U, aj as H, a1 as R, H as y, am as O, I as z, m as P, O as V, n as W, L as j, _ as q, $ as J, a0 as K, V as N, ah as Q, ai as X, ak as Y, S as Z, a5 as _, r as $, a2 as aa, a3 as ea, a4 as oa, N as sa, o as ta, q as ra, T as na, b as ia, s as la, a6 as da, Q as pa, e as ua, U as ma, d as ga, Y as ca, t as Ca, af as Da, al as Ta } from "./index-
|
|
2
|
-
import { U as Sa } from "./UnpublishedEntity-
|
|
3
|
-
import { C as wa } from "./Card-
|
|
1
|
+
import { ag as o, W as s, A as t, c as r, B as n, h as i, j as l, K as d, C as p, k as u, ae as m, ad as g, X as c, a7 as C, a8 as D, a9 as T, aa as I, ab as S, ac as h, u as w, v as x, J as k, w as B, x as b, y as A, M as E, z as F, G as L, E as M, l as f, Z as G, R as v, F as U, aj as H, a1 as R, H as y, am as O, I as z, m as P, O as V, n as W, L as j, _ as q, $ as J, a0 as K, V as N, ah as Q, ai as X, ak as Y, S as Z, a5 as _, r as $, a2 as aa, a3 as ea, a4 as oa, N as sa, o as ta, q as ra, T as na, b as ia, s as la, a6 as da, Q as pa, e as ua, U as ma, d as ga, Y as ca, t as Ca, af as Da, al as Ta } from "./index-s72r9oDm.js";
|
|
2
|
+
import { U as Sa } from "./UnpublishedEntity-3phZLMux.js";
|
|
3
|
+
import { C as wa } from "./Card-y1TAfpoG.js";
|
|
4
4
|
export {
|
|
5
5
|
o as AddressInput,
|
|
6
6
|
s as Alert,
|