@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.
Files changed (30) hide show
  1. package/dist/{AddressInput-lgOl_tVT.js → AddressInput-pyyFW0cs.js} +10 -9
  2. package/dist/{AlbyPriceComponent-r4zhZs7G.js → AlbyPriceComponent-wC_n8bJa.js} +14 -13
  3. package/dist/{Card-TTw98xVy.js → Card-AX0eZjOC.js} +13 -12
  4. package/dist/{DatePicker-3L7chldg.js → DatePicker-pErY4gNZ.js} +9 -8
  5. package/dist/{PhoneInput-OC-8mHPi.js → PhoneInput-6AZAVvaQ.js} +121 -120
  6. package/dist/PoweredBy-LfOhjGas.js +32 -0
  7. package/dist/UnpublishedEntity-YVejQGGf.js +24 -0
  8. package/dist/cal-atoms.js +7 -6
  9. package/dist/cal-provider/CalProvider.d.ts +15 -1
  10. package/dist/cal-provider/CalProvider.d.ts.map +1 -1
  11. package/dist/{framer-features-9v7ztPCe.js → framer-features-eR2CxD7D.js} +29 -29
  12. package/dist/hooks/useCreateRecurringBooking.d.ts.map +1 -1
  13. package/dist/hooks/useMe.d.ts +5 -0
  14. package/dist/hooks/useMe.d.ts.map +1 -1
  15. package/dist/hooks/usePublicEvent.d.ts.map +1 -1
  16. package/dist/index-2xQ1nwjF.js +4 -0
  17. package/dist/{index-SbtNfwjH.js → index-6PQ0n_zn.js} +22421 -23057
  18. package/dist/{index-9EQ11-7o.js → index-93QOtKl6.js} +3 -3
  19. package/dist/{index-IkeP1cDY.js → index-Aw_S8xCP.js} +24 -23
  20. package/dist/{index-XvUjygA8.js → index-Zmk7j2SL.js} +1 -1
  21. package/dist/{index-_g1FZHlP.js → index-qlzlYQfG.js} +2 -2
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/{isSupportedCountry-wDuwCxBx.js → isSupportedCountry-l4nZ7iA1.js} +1 -1
  25. package/dist/vite.config.d.ts.map +1 -1
  26. package/package.json +2 -3
  27. package/dist/PoweredBy-6qXf3LP3.js +0 -31
  28. package/dist/UnpublishedEntity-tjKqVYRo.js +0 -23
  29. package/dist/cal-atoms.umd.cjs +0 -7837
  30. package/dist/index-6RbmBa-b.js +0 -4
@@ -1,27 +1,28 @@
1
- import { ar as m, aq as e, am as n, m as c, aC as o } from "./index-SbtNfwjH.js";
2
- function u({
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: l,
5
+ onChange: t,
5
6
  ...a
6
7
  }) {
7
- return /* @__PURE__ */ m("div", {
8
+ return /* @__PURE__ */ c("div", {
8
9
  className: "relative flex items-center",
9
- children: [/* @__PURE__ */ e(n, {
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(c, {
16
+ }), /* @__PURE__ */ e(n, {
16
17
  ...a,
17
18
  value: s,
18
- onChange: (t) => {
19
- l(t.target.value);
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
- u as default
27
+ r as default
27
28
  };
@@ -1,5 +1,6 @@
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-SbtNfwjH.js";
2
- import J from "react";
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 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 };
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 ye({
942
+ function we({
942
943
  displaySymbol: o,
943
944
  price: v,
944
945
  formattedPrice: l
945
946
  }) {
946
- const [w, m] = J.useState("loading...");
947
- return J.useEffect(() => {
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__ */ K(ne, {
956
+ }, [v]), /* @__PURE__ */ J(ne, {
956
957
  content: w,
957
- children: /* @__PURE__ */ te("div", {
958
+ children: /* @__PURE__ */ oe("div", {
958
959
  className: "inline-flex items-center justify-center",
959
- children: [o && /* @__PURE__ */ K(oe, {
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
- ye as AlbyPriceComponent
967
+ we as AlbyPriceComponent
967
968
  };
@@ -1,5 +1,6 @@
1
- import { as as N, ar as d, aC as m, aq as r, h as u, aD as p } from "./index-SbtNfwjH.js";
2
- const c = p("", {
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 k({
85
+ function g({
85
86
  image: f,
86
87
  title: h,
87
88
  icon: b,
88
- description: i,
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, c({
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, c({
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(c({
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
- }), i && /* @__PURE__ */ r("p", {
122
- title: i.toString(),
123
- className: m(c({
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: i
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
- k as C
188
+ g as C
188
189
  };
@@ -1,5 +1,6 @@
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-SbtNfwjH.js";
2
- const B = ({
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
- } = 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, {
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
- a(o.format("YYYY-MM")), i(o.format("YYYY-MM-DD")), w(null);
26
+ p(o.format("YYYY-MM")), i(o.format("YYYY-MM-DD")), w(null);
26
27
  },
27
- includedDates: p,
28
+ includedDates: f,
28
29
  locale: C.language,
29
30
  browsingDate: r ? M(r) : void 0,
30
31
  selected: M(S),
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),
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
- B as DatePicker
37
+ b as DatePicker
37
38
  };