@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.
@@ -1,8 +1,7 @@
1
1
  import { memo as j, useState as T } from "react";
2
- import { an as k, aD as g, aE as U, aF as N, aG as C, az as b } from "./index-6PQ0n_zn.js";
3
- import { jsx as t, Fragment as v, jsxs as a } from "react/jsx-runtime";
4
- import { C as A } from "./Card-AX0eZjOC.js";
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 = S.slice(0).reverse();
97
- function I() {
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
- }, n = c.slice(0).reverse();
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 - n.indexOf(e) / 20})`,
134
- top: -n.indexOf(e) * 10,
135
- opacity: `${1 - n.indexOf(e) / 7}`
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 z = j(I);
157
- function E({
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: n,
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(v, {
176
+ return s === "team" && (w || L) || s === "enterprise" && x ? i : y ? /* @__PURE__ */ t(b, {
178
177
  children: e
179
- }) : /* @__PURE__ */ a(v, {
180
- children: [/* @__PURE__ */ a("div", {
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__ */ a("picture", {
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__ */ a("div", {
192
+ }), /* @__PURE__ */ n("div", {
194
193
  className: "relative my-4 px-8 sm:px-14",
195
194
  children: [/* @__PURE__ */ t("h1", {
196
- className: b("font-cal text-3xl"),
195
+ className: v("font-cal text-3xl"),
197
196
  children: l(r)
198
197
  }), /* @__PURE__ */ t("p", {
199
- className: b("mb-8 mt-4 max-w-sm"),
198
+ className: v("mb-8 mt-4 max-w-sm"),
200
199
  children: l(c)
201
- }), n]
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__ */ a("div", {
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
- z as Tips,
220
- E as UpgradeTip
218
+ q as Tips,
219
+ F as UpgradeTip
221
220
  };
@@ -1,4 +1,4 @@
1
- import { aB as t, aC as r } from "./index-6PQ0n_zn.js";
1
+ import { aE as t, aF as r } from "./index-s72r9oDm.js";
2
2
  function o() {
3
3
  return t(r, arguments);
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAMA,wBA8BG"}
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
- "keywords": ["react", "tailwindcss", "ui", "components", "scheduling", "calendar", "cal.com"],
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
- };
@@ -1,4 +0,0 @@
1
- import { U as i } from "./UnpublishedEntity-YVejQGGf.js";
2
- export {
3
- i as UnpublishedEntity
4
- };