@calcom/atoms 1.0.20 → 1.0.22

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.
@@ -1,28 +1,27 @@
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({
1
+ import { ar as m, aq as e, am as n, m as c, aC as o } from "./index-qesbduIG.js";
2
+ function u({
4
3
  value: s,
5
- onChange: t,
4
+ onChange: l,
6
5
  ...a
7
6
  }) {
8
- return /* @__PURE__ */ c("div", {
7
+ return /* @__PURE__ */ m("div", {
9
8
  className: "relative flex items-center",
10
- children: [/* @__PURE__ */ e(m, {
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(n, {
15
+ }), /* @__PURE__ */ e(c, {
17
16
  ...a,
18
17
  value: s,
19
- onChange: (l) => {
20
- t(l.target.value);
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
- r as default
26
+ u as default
28
27
  };
@@ -1,6 +1,5 @@
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";
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-qesbduIG.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 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 };
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 we({
941
+ function ye({
943
942
  displaySymbol: o,
944
943
  price: v,
945
944
  formattedPrice: l
946
945
  }) {
947
- const [w, m] = K.useState("loading...");
948
- return K.useEffect(() => {
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__ */ J(ne, {
955
+ }, [v]), /* @__PURE__ */ K(ne, {
957
956
  content: w,
958
- children: /* @__PURE__ */ oe("div", {
957
+ children: /* @__PURE__ */ te("div", {
959
958
  className: "inline-flex items-center justify-center",
960
- children: [o && /* @__PURE__ */ J(te, {
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
- we as AlbyPriceComponent
966
+ ye as AlbyPriceComponent
968
967
  };
@@ -1,6 +1,5 @@
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("", {
1
+ import { as as N, ar as d, aC as m, aq as r, h as u, aD as p } from "./index-qesbduIG.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 g({
84
+ function k({
86
85
  image: f,
87
86
  title: h,
88
87
  icon: b,
89
- description: c,
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, i({
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, i({
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(i({
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
- }), c && /* @__PURE__ */ r("p", {
123
- title: c.toString(),
124
- className: m(i({
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: c
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
- g as C
187
+ k as C
189
188
  };
@@ -1,6 +1,5 @@
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 = ({
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-qesbduIG.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
- } = 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, {
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
- p(o.format("YYYY-MM")), i(o.format("YYYY-MM-DD")), w(null);
25
+ a(o.format("YYYY-MM")), i(o.format("YYYY-MM-DD")), w(null);
27
26
  },
28
- includedDates: f,
27
+ includedDates: p,
29
28
  locale: C.language,
30
29
  browsingDate: r ? M(r) : void 0,
31
30
  selected: M(S),
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),
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
- b as DatePicker
36
+ B as DatePicker
38
37
  };