@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,8 +1,7 @@
|
|
|
1
1
|
import { memo as j, useState as T } from "react";
|
|
2
|
-
import { an as k,
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const S = [{
|
|
2
|
+
import { an as k, aG as g, aq as t, aH as U, aI as N, aJ as C, au as b, ar as n, aC as v } from "./index-s72r9oDm.js";
|
|
3
|
+
import { C as A } from "./Card-y1TAfpoG.js";
|
|
4
|
+
const I = [{
|
|
6
5
|
id: 13,
|
|
7
6
|
thumbnailUrl: "https://img.youtube.com/vi/ihE8OYTdklg/0.jpg",
|
|
8
7
|
mediaLink: "https://go.cal.com/ooo",
|
|
@@ -93,8 +92,8 @@ const S = [{
|
|
|
93
92
|
title: "Dynamic booking links",
|
|
94
93
|
description: "Booking link that allows people to quickly schedule meetings.",
|
|
95
94
|
href: "https://cal.com/blog/cal-v-1-9"
|
|
96
|
-
}], d =
|
|
97
|
-
function
|
|
95
|
+
}], d = I.slice(0).reverse();
|
|
96
|
+
function S() {
|
|
98
97
|
const {
|
|
99
98
|
t: r
|
|
100
99
|
} = k(), [c, p] = T(() => {
|
|
@@ -115,7 +114,7 @@ function I() {
|
|
|
115
114
|
const s = g.getItem("removedTipsIds") || "", o = i.findIndex((l) => l.id === e);
|
|
116
115
|
return g.setItem("removedTipsIds", `${i[o].id.toString()}${s.length > 0 ? `,${s.split(",")}` : ""}`), i.splice(o, 1), [...i];
|
|
117
116
|
});
|
|
118
|
-
},
|
|
117
|
+
}, a = c.slice(0).reverse();
|
|
119
118
|
return /* @__PURE__ */ t("div", {
|
|
120
119
|
className: "hidden pb-4 pt-8 lg:grid",
|
|
121
120
|
style: {
|
|
@@ -130,9 +129,9 @@ function I() {
|
|
|
130
129
|
children: /* @__PURE__ */ t("div", {
|
|
131
130
|
className: "relative",
|
|
132
131
|
style: {
|
|
133
|
-
transform: `scale(${1 -
|
|
134
|
-
top: -
|
|
135
|
-
opacity: `${1 -
|
|
132
|
+
transform: `scale(${1 - a.indexOf(e) / 20})`,
|
|
133
|
+
top: -a.indexOf(e) * 10,
|
|
134
|
+
opacity: `${1 - a.indexOf(e) / 7}`
|
|
136
135
|
},
|
|
137
136
|
children: /* @__PURE__ */ t(A, {
|
|
138
137
|
variant: "SidebarCard",
|
|
@@ -153,13 +152,13 @@ function I() {
|
|
|
153
152
|
}, e.id))
|
|
154
153
|
});
|
|
155
154
|
}
|
|
156
|
-
const
|
|
157
|
-
function
|
|
155
|
+
const q = j(S);
|
|
156
|
+
function F({
|
|
158
157
|
title: r,
|
|
159
158
|
description: c,
|
|
160
159
|
background: p,
|
|
161
160
|
features: h,
|
|
162
|
-
buttons:
|
|
161
|
+
buttons: a,
|
|
163
162
|
isParentLoading: e,
|
|
164
163
|
children: i,
|
|
165
164
|
plan: s
|
|
@@ -174,12 +173,12 @@ function E({
|
|
|
174
173
|
} = N(), {
|
|
175
174
|
data: u
|
|
176
175
|
} = C.viewer.teams.getUpgradeable.useQuery(), f = `${p}${o === "dark" ? "-dark" : ""}.jpg`, x = !1, L = !!(u != null && u[0]);
|
|
177
|
-
return s === "team" && (w || L) || s === "enterprise" && x ? i : y ? /* @__PURE__ */ t(
|
|
176
|
+
return s === "team" && (w || L) || s === "enterprise" && x ? i : y ? /* @__PURE__ */ t(b, {
|
|
178
177
|
children: e
|
|
179
|
-
}) : /* @__PURE__ */
|
|
180
|
-
children: [/* @__PURE__ */
|
|
178
|
+
}) : /* @__PURE__ */ n(b, {
|
|
179
|
+
children: [/* @__PURE__ */ n("div", {
|
|
181
180
|
className: "relative flex min-h-[295px] w-full items-center justify-between overflow-hidden rounded-lg pb-10",
|
|
182
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ n("picture", {
|
|
183
182
|
className: "absolute min-h-[295px] w-full rounded-lg object-cover",
|
|
184
183
|
children: [/* @__PURE__ */ t("source", {
|
|
185
184
|
srcSet: f,
|
|
@@ -190,19 +189,19 @@ function E({
|
|
|
190
189
|
loading: "lazy",
|
|
191
190
|
alt: r
|
|
192
191
|
})]
|
|
193
|
-
}), /* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ n("div", {
|
|
194
193
|
className: "relative my-4 px-8 sm:px-14",
|
|
195
194
|
children: [/* @__PURE__ */ t("h1", {
|
|
196
|
-
className:
|
|
195
|
+
className: v("font-cal text-3xl"),
|
|
197
196
|
children: l(r)
|
|
198
197
|
}), /* @__PURE__ */ t("p", {
|
|
199
|
-
className:
|
|
198
|
+
className: v("mb-8 mt-4 max-w-sm"),
|
|
200
199
|
children: l(c)
|
|
201
|
-
}),
|
|
200
|
+
}), a]
|
|
202
201
|
})]
|
|
203
202
|
}), /* @__PURE__ */ t("div", {
|
|
204
203
|
className: "mt-4 grid-cols-3 md:grid md:gap-4",
|
|
205
|
-
children: h.map((m) => /* @__PURE__ */
|
|
204
|
+
children: h.map((m) => /* @__PURE__ */ n("div", {
|
|
206
205
|
className: "bg-muted mb-4 min-h-[180px] w-full rounded-md p-8 md:mb-0",
|
|
207
206
|
children: [m.icon, /* @__PURE__ */ t("h2", {
|
|
208
207
|
className: "font-cal text-emphasis mt-4 text-lg",
|
|
@@ -216,6 +215,6 @@ function E({
|
|
|
216
215
|
});
|
|
217
216
|
}
|
|
218
217
|
export {
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
q as Tips,
|
|
219
|
+
F as UpgradeTip
|
|
221
220
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAMA,
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAMA,wBA4BG"}
|
package/package.json
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Customizable UI components to integrate scheduling into your product.",
|
|
6
6
|
"authors": "Cal.com, Inc.",
|
|
7
|
-
"
|
|
8
|
-
"version": "1.0.20",
|
|
7
|
+
"version": "1.0.21",
|
|
9
8
|
"scripts": {
|
|
10
9
|
"dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify --watch",
|
|
11
10
|
"build": "yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify",
|
|
@@ -31,6 +30,8 @@
|
|
|
31
30
|
"dist",
|
|
32
31
|
"globals.min.css"
|
|
33
32
|
],
|
|
33
|
+
"main": "./dist/cal-atoms.umd.cjs",
|
|
34
|
+
"module": "./dist/cal-atoms.js",
|
|
34
35
|
"exports": {
|
|
35
36
|
".": {
|
|
36
37
|
"require": "./dist/cal-atoms.umd.cjs",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { an as c, ao as m, ap as d, aq as p, ar as x, as as s } from "./index-6PQ0n_zn.js";
|
|
2
|
-
import { jsx as a, jsxs as t, Fragment as o } from "react/jsx-runtime";
|
|
3
|
-
const b = ({
|
|
4
|
-
logoOnly: i
|
|
5
|
-
}) => {
|
|
6
|
-
const {
|
|
7
|
-
t: l
|
|
8
|
-
} = c(), e = m.useSession(), n = d(), r = e.data ? e.data.hasValidLicense : null;
|
|
9
|
-
return /* @__PURE__ */ a("div", {
|
|
10
|
-
className: `p-2 text-center text-xs sm:text-right${n ? " max-w-3xl" : ""}`,
|
|
11
|
-
children: /* @__PURE__ */ t(p, {
|
|
12
|
-
href: x,
|
|
13
|
-
target: "_blank",
|
|
14
|
-
className: "text-subtle",
|
|
15
|
-
children: [!i && /* @__PURE__ */ t(o, {
|
|
16
|
-
children: [l("powered_by"), " "]
|
|
17
|
-
}), s === "Cal.com" || !r ? /* @__PURE__ */ a(o, {
|
|
18
|
-
children: /* @__PURE__ */ a("img", {
|
|
19
|
-
className: "relative -mt-px inline h-[10px] w-auto dark:invert",
|
|
20
|
-
src: "/api/logo",
|
|
21
|
-
alt: "Cal.com Logo"
|
|
22
|
-
})
|
|
23
|
-
}) : /* @__PURE__ */ a("span", {
|
|
24
|
-
className: "text-emphasis font-semibold opacity-50 hover:opacity-100",
|
|
25
|
-
children: s
|
|
26
|
-
})]
|
|
27
|
-
})
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
b as default
|
|
32
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { an as n, Z as r, A as s } from "./index-6PQ0n_zn.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
function g(e) {
|
|
4
|
-
const {
|
|
5
|
-
t: i
|
|
6
|
-
} = n(), a = e.orgSlug || e.teamSlug;
|
|
7
|
-
return /* @__PURE__ */ t("div", {
|
|
8
|
-
className: "m-8 flex items-center justify-center",
|
|
9
|
-
children: /* @__PURE__ */ t(r, {
|
|
10
|
-
avatar: /* @__PURE__ */ t(s, {
|
|
11
|
-
alt: a ?? "",
|
|
12
|
-
imageSrc: e.orgSlug ? `/org/${a}/avatar.png` : `/team/${a}/avatar.png`,
|
|
13
|
-
size: "lg"
|
|
14
|
-
}),
|
|
15
|
-
headline: i("team_is_unpublished", {
|
|
16
|
-
team: e.name
|
|
17
|
-
}),
|
|
18
|
-
description: i(`${e.orgSlug ? "org" : "team"}_is_unpublished_description`)
|
|
19
|
-
})
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
g as U
|
|
24
|
-
};
|
package/dist/index-2xQ1nwjF.js
DELETED