@calcom/atoms 1.0.3

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 (134) hide show
  1. package/README.md +5 -0
  2. package/dist/AddressInput-Ci02wr5C.js +33 -0
  3. package/dist/AlbyPriceComponent-NqN1MEov.js +967 -0
  4. package/dist/Card-6fRR5Hwj.js +185 -0
  5. package/dist/DatePicker-9pbCidOU.js +27 -0
  6. package/dist/PhoneInput-ysQbrvjy.js +1405 -0
  7. package/dist/PoweredBy-AY0Afi6V.js +31 -0
  8. package/dist/UnpublishedEntity-epeaNFkK.js +23 -0
  9. package/dist/availability/AvailabilitySettings.d.ts +58 -0
  10. package/dist/availability/AvailabilitySettings.d.ts.map +1 -0
  11. package/dist/availability/index.d.ts +4 -0
  12. package/dist/availability/index.d.ts.map +1 -0
  13. package/dist/availability/types.d.ts +22 -0
  14. package/dist/availability/types.d.ts.map +1 -0
  15. package/dist/availability/wrappers/PlatformAvailabilitySettingsWrapper.d.ts +18 -0
  16. package/dist/availability/wrappers/PlatformAvailabilitySettingsWrapper.d.ts.map +1 -0
  17. package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts +2 -0
  18. package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts.map +1 -0
  19. package/dist/booker/Booker.stories.d.ts +7 -0
  20. package/dist/booker/Booker.stories.d.ts.map +1 -0
  21. package/dist/booker/BookerPlatformWrapper.d.ts +24 -0
  22. package/dist/booker/BookerPlatformWrapper.d.ts.map +1 -0
  23. package/dist/booker/BookerWebWrapper.d.ts +5 -0
  24. package/dist/booker/BookerWebWrapper.d.ts.map +1 -0
  25. package/dist/booker/export.d.ts +4 -0
  26. package/dist/booker/export.d.ts.map +1 -0
  27. package/dist/booker/index.d.ts +3 -0
  28. package/dist/booker/index.d.ts.map +1 -0
  29. package/dist/cal-atoms.js +9 -0
  30. package/dist/cal-atoms.umd.cjs +577 -0
  31. package/dist/cal-provider/BaseCalProvider.d.ts +4 -0
  32. package/dist/cal-provider/BaseCalProvider.d.ts.map +1 -0
  33. package/dist/cal-provider/CalProvider.d.ts +14 -0
  34. package/dist/cal-provider/CalProvider.d.ts.map +1 -0
  35. package/dist/cal-provider/index.d.ts +2 -0
  36. package/dist/cal-provider/index.d.ts.map +1 -0
  37. package/dist/framer-features-Zr_i_7k0.js +443 -0
  38. package/dist/gcal-connect/GcalConnect.d.ts +9 -0
  39. package/dist/gcal-connect/GcalConnect.d.ts.map +1 -0
  40. package/dist/gcal-connect/index.d.ts +2 -0
  41. package/dist/gcal-connect/index.d.ts.map +1 -0
  42. package/dist/globals.min.css +1 -0
  43. package/dist/hooks/useApiKeys.d.ts +10 -0
  44. package/dist/hooks/useApiKeys.d.ts.map +1 -0
  45. package/dist/hooks/useAtomsContext.d.ts +31 -0
  46. package/dist/hooks/useAtomsContext.d.ts.map +1 -0
  47. package/dist/hooks/useAvailableSlots.d.ts +6 -0
  48. package/dist/hooks/useAvailableSlots.d.ts.map +1 -0
  49. package/dist/hooks/useBookings.d.ts +3 -0
  50. package/dist/hooks/useBookings.d.ts.map +1 -0
  51. package/dist/hooks/useCalendarsBusyTimes.d.ts +10 -0
  52. package/dist/hooks/useCalendarsBusyTimes.d.ts.map +1 -0
  53. package/dist/hooks/useClientSchedule.d.ts +8 -0
  54. package/dist/hooks/useClientSchedule.d.ts.map +1 -0
  55. package/dist/hooks/useConnectedCalendars.d.ts +3 -0
  56. package/dist/hooks/useConnectedCalendars.d.ts.map +1 -0
  57. package/dist/hooks/useCreateBooking.d.ts +169 -0
  58. package/dist/hooks/useCreateBooking.d.ts.map +1 -0
  59. package/dist/hooks/useCreateInstantBooking.d.ts +169 -0
  60. package/dist/hooks/useCreateInstantBooking.d.ts.map +1 -0
  61. package/dist/hooks/useCreateRecurringBooking.d.ts +154 -0
  62. package/dist/hooks/useCreateRecurringBooking.d.ts.map +1 -0
  63. package/dist/hooks/useDeleteSchedule.d.ts +11 -0
  64. package/dist/hooks/useDeleteSchedule.d.ts.map +1 -0
  65. package/dist/hooks/useDeleteSelectedSlot.d.ts +8 -0
  66. package/dist/hooks/useDeleteSelectedSlot.d.ts.map +1 -0
  67. package/dist/hooks/useGcal.d.ts +9 -0
  68. package/dist/hooks/useGcal.d.ts.map +1 -0
  69. package/dist/hooks/useGetCityTimezones.d.ts +6 -0
  70. package/dist/hooks/useGetCityTimezones.d.ts.map +1 -0
  71. package/dist/hooks/useHandleBookEvent.d.ts +15 -0
  72. package/dist/hooks/useHandleBookEvent.d.ts.map +1 -0
  73. package/dist/hooks/useIsPlatform.d.ts +2 -0
  74. package/dist/hooks/useIsPlatform.d.ts.map +1 -0
  75. package/dist/hooks/useMe.d.ts +12 -0
  76. package/dist/hooks/useMe.d.ts.map +1 -0
  77. package/dist/hooks/useOAuthClient.d.ts +11 -0
  78. package/dist/hooks/useOAuthClient.d.ts.map +1 -0
  79. package/dist/hooks/useOAuthFlow.d.ts +12 -0
  80. package/dist/hooks/useOAuthFlow.d.ts.map +1 -0
  81. package/dist/hooks/usePublicEvent.d.ts +958 -0
  82. package/dist/hooks/usePublicEvent.d.ts.map +1 -0
  83. package/dist/hooks/useReserveSlot.d.ts +8 -0
  84. package/dist/hooks/useReserveSlot.d.ts.map +1 -0
  85. package/dist/hooks/useSlots.d.ts +11 -0
  86. package/dist/hooks/useSlots.d.ts.map +1 -0
  87. package/dist/hooks/useTimezone.d.ts +2 -0
  88. package/dist/hooks/useTimezone.d.ts.map +1 -0
  89. package/dist/hooks/useUpdateSchedule.d.ts +9 -0
  90. package/dist/hooks/useUpdateSchedule.d.ts.map +1 -0
  91. package/dist/hooks/useUpdateUserTimezone.d.ts +15 -0
  92. package/dist/hooks/useUpdateUserTimezone.d.ts.map +1 -0
  93. package/dist/index--Pb54wx_.js +4 -0
  94. package/dist/index-3sgDY24S.js +5 -0
  95. package/dist/index-GttMIx74.js +65366 -0
  96. package/dist/index-RcPlEXh-.js +220 -0
  97. package/dist/index-rUbdQ7Zu.js +1256 -0
  98. package/dist/index-uuiJumv6.js +76 -0
  99. package/dist/index.d.ts +7 -0
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/isSupportedCountry-WVb-DZDd.js +487 -0
  102. package/dist/lib/getQueryParam.d.ts +3 -0
  103. package/dist/lib/getQueryParam.d.ts.map +1 -0
  104. package/dist/lib/http.d.ts +18 -0
  105. package/dist/lib/http.d.ts.map +1 -0
  106. package/dist/lib/setQueryParam.d.ts +3 -0
  107. package/dist/lib/setQueryParam.d.ts.map +1 -0
  108. package/dist/monorepo.d.ts +9 -0
  109. package/dist/monorepo.d.ts.map +1 -0
  110. package/dist/server.browser-yA5s9iMO.js +9859 -0
  111. package/dist/src/components/ui/button.d.ts +12 -0
  112. package/dist/src/components/ui/button.d.ts.map +1 -0
  113. package/dist/src/components/ui/confirmation-dialog-content.d.ts +4 -0
  114. package/dist/src/components/ui/confirmation-dialog-content.d.ts.map +1 -0
  115. package/dist/src/components/ui/dialog.d.ts +20 -0
  116. package/dist/src/components/ui/dialog.d.ts.map +1 -0
  117. package/dist/src/components/ui/shell.d.ts +3 -0
  118. package/dist/src/components/ui/shell.d.ts.map +1 -0
  119. package/dist/src/components/ui/toast.d.ts +16 -0
  120. package/dist/src/components/ui/toast.d.ts.map +1 -0
  121. package/dist/src/components/ui/toaster.d.ts +3 -0
  122. package/dist/src/components/ui/toaster.d.ts.map +1 -0
  123. package/dist/src/components/ui/use-toast.d.ts +45 -0
  124. package/dist/src/components/ui/use-toast.d.ts.map +1 -0
  125. package/dist/src/lib/utils.d.ts +3 -0
  126. package/dist/src/lib/utils.d.ts.map +1 -0
  127. package/dist/style.css +1 -0
  128. package/dist/timezone/index.d.ts +4 -0
  129. package/dist/timezone/index.d.ts.map +1 -0
  130. package/dist/types.d.ts +8 -0
  131. package/dist/types.d.ts.map +1 -0
  132. package/dist/vite.config.d.ts +3 -0
  133. package/dist/vite.config.d.ts.map +1 -0
  134. package/package.json +56 -0
@@ -0,0 +1,220 @@
1
+ import { memo as L, useState as T } from "react";
2
+ import { af as k, ax as g, ai as t, ay as U, az as N, aA as C, am as b, aj as n, au as v } from "./index-GttMIx74.js";
3
+ import { C as A } from "./Card-6fRR5Hwj.js";
4
+ const S = [{
5
+ id: 13,
6
+ thumbnailUrl: "https://img.youtube.com/vi/ihE8OYTdklg/0.jpg",
7
+ mediaLink: "https://go.cal.com/ooo",
8
+ title: "ooo.new",
9
+ description: "Easily go out-of-office",
10
+ href: "https://ooo.new"
11
+ }, {
12
+ id: 12,
13
+ thumbnailUrl: "https://cal.com/og-image-cal-ai.jpg",
14
+ mediaLink: "https://go.cal.com/cal-ai",
15
+ title: "Cal.ai",
16
+ description: "Your personal AI scheduling assistant",
17
+ href: "https://go.cal.com/cal-ai"
18
+ }, {
19
+ id: 11,
20
+ thumbnailUrl: "https://img.youtube.com/vi/KTg_qzA9NEc/0.jpg",
21
+ mediaLink: "https://go.cal.com/insights",
22
+ title: "Insights",
23
+ description: "Get a better understanding of your business",
24
+ href: "https://go.cal.com/insights"
25
+ }, {
26
+ id: 10,
27
+ thumbnailUrl: "https://img.youtube.com/vi/jvaBafzVUQc/0.jpg",
28
+ mediaLink: "https://go.cal.com/video",
29
+ title: "Cal Video",
30
+ description: "Free video conferencing with recording",
31
+ href: "https://go.cal.com/video"
32
+ }, {
33
+ id: 9,
34
+ thumbnailUrl: "https://img.youtube.com/vi/93iOmzHieCU/0.jpg",
35
+ mediaLink: "https://go.cal.com/round-robin",
36
+ title: "Round-Robin",
37
+ description: "Create advanced group meetings with round-robin",
38
+ href: "https://go.cal.com/round-robin"
39
+ }, {
40
+ id: 8,
41
+ thumbnailUrl: "https://img.youtube.com/vi/piKlAiibAFo/0.jpg",
42
+ mediaLink: "https://go.cal.com/workflows",
43
+ title: "Automate Workflows",
44
+ description: "Make time work for you and automate tasks",
45
+ href: "https://go.cal.com/workflows"
46
+ }, {
47
+ id: 7,
48
+ thumbnailUrl: "https://img.youtube.com/vi/UVXgo12cY4g/0.jpg",
49
+ mediaLink: "https://go.cal.com/routing-forms",
50
+ title: "Routing Forms",
51
+ description: "Ask questions and route to the correct person",
52
+ href: "https://go.cal.com/routing-forms"
53
+ }, {
54
+ id: 6,
55
+ thumbnailUrl: "https://img.youtube.com/vi/yGiZo1Ry5-8/0.jpg",
56
+ mediaLink: "https://go.cal.com/recurring-video",
57
+ title: "Recurring Bookings",
58
+ description: "Learn how to create a recurring schedule",
59
+ href: "https://go.cal.com/recurring-video"
60
+ }, {
61
+ id: 5,
62
+ thumbnailUrl: "https://img.youtube.com/vi/0v_nQtpxC_4/0.jpg",
63
+ mediaLink: "https://go.cal.com/payments-video",
64
+ title: "Accept Payments",
65
+ description: "Charge for your time with Cal.com's Stripe App",
66
+ href: "https://app.cal.com/apps/stripe"
67
+ }, {
68
+ id: 4,
69
+ thumbnailUrl: "https://img.youtube.com/vi/zGr_s-fG84k/0.jpg",
70
+ mediaLink: "https://go.cal.com/confirmation-video",
71
+ title: "Requires Confirmation",
72
+ description: "Learn how to be in charge of your bookings",
73
+ href: "https://cal.com/resources/feature/opt-in"
74
+ }, {
75
+ id: 3,
76
+ thumbnailUrl: "https://img.youtube.com/vi/c7ZKFuLy1fg/0.jpg",
77
+ mediaLink: "https://go.cal.com/routing-video",
78
+ title: "Routing Forms, Workflows",
79
+ description: "Ask screening questions of potential bookers to connect them with the right person",
80
+ href: "https://cal.com/blog/cal-v-1-8"
81
+ }, {
82
+ id: 2,
83
+ thumbnailUrl: "https://img.youtube.com/vi/EAc46SPL6iA/0.jpg",
84
+ mediaLink: "https://go.cal.com/teams-video",
85
+ title: "How to set up Teams",
86
+ description: "Learn how to use round-robin and collective events.",
87
+ href: "https://cal.com/docs/enterprise-features/teams"
88
+ }, {
89
+ id: 1,
90
+ thumbnailUrl: "https://img.youtube.com/vi/60HJt8DOVNo/0.jpg",
91
+ mediaLink: "https://go.cal.com/dynamic-video",
92
+ title: "Dynamic booking links",
93
+ description: "Booking link that allows people to quickly schedule meetings.",
94
+ href: "https://cal.com/blog/cal-v-1-9"
95
+ }], d = S.slice(0).reverse();
96
+ function I() {
97
+ const {
98
+ t: r
99
+ } = k(), [c, p] = T(() => {
100
+ if (typeof window > "u")
101
+ return d;
102
+ try {
103
+ const e = g.getItem("removedTipsIds");
104
+ if (e !== null) {
105
+ const i = e.split(",").map((o) => parseInt(o, 10));
106
+ return d.filter((o) => i.indexOf(o.id) === -1);
107
+ } else
108
+ return d;
109
+ } catch {
110
+ return d;
111
+ }
112
+ }), h = (e) => {
113
+ p((i) => {
114
+ const s = g.getItem("removedTipsIds") || "", o = i.findIndex((l) => l.id === e);
115
+ return g.setItem("removedTipsIds", `${i[o].id.toString()}${s.length > 0 ? `,${s.split(",")}` : ""}`), i.splice(o, 1), [...i];
116
+ });
117
+ }, a = c.slice(0).reverse();
118
+ return /* @__PURE__ */ t("div", {
119
+ className: "hidden pb-4 pt-8 lg:grid",
120
+ style: {
121
+ gridTemplateColumns: "1fr"
122
+ },
123
+ children: c.map((e) => /* @__PURE__ */ t("div", {
124
+ className: "relative",
125
+ style: {
126
+ gridRowStart: 1,
127
+ gridColumnStart: 1
128
+ },
129
+ children: /* @__PURE__ */ t("div", {
130
+ className: "relative",
131
+ style: {
132
+ transform: `scale(${1 - a.indexOf(e) / 20})`,
133
+ top: -a.indexOf(e) * 10,
134
+ opacity: `${1 - a.indexOf(e) / 7}`
135
+ },
136
+ children: /* @__PURE__ */ t(A, {
137
+ variant: "SidebarCard",
138
+ thumbnailUrl: e.thumbnailUrl,
139
+ mediaLink: e.mediaLink,
140
+ title: e.title,
141
+ description: e.description,
142
+ learnMore: {
143
+ href: e.href,
144
+ text: r("learn_more")
145
+ },
146
+ actionButton: {
147
+ onClick: () => h(e.id),
148
+ child: r("dismiss")
149
+ }
150
+ })
151
+ })
152
+ }, e.id))
153
+ });
154
+ }
155
+ const z = L(I);
156
+ function F({
157
+ title: r,
158
+ description: c,
159
+ background: p,
160
+ features: h,
161
+ buttons: a,
162
+ isParentLoading: e,
163
+ children: i,
164
+ plan: s
165
+ }) {
166
+ const {
167
+ activeTheme: o
168
+ } = U(), {
169
+ t: l
170
+ } = k(), {
171
+ isPending: y,
172
+ hasTeamPlan: w
173
+ } = N(), {
174
+ data: u
175
+ } = C.viewer.teams.getUpgradeable.useQuery(), f = `${p}${o === "dark" ? "-dark" : ""}.jpg`, x = !1, j = !!(u != null && u[0]);
176
+ return s === "team" && (w || j) || s === "enterprise" && x ? i : y ? /* @__PURE__ */ t(b, {
177
+ children: e
178
+ }) : /* @__PURE__ */ n(b, {
179
+ children: [/* @__PURE__ */ n("div", {
180
+ className: "relative flex min-h-[295px] w-full items-center justify-between overflow-hidden rounded-lg pb-10",
181
+ children: [/* @__PURE__ */ n("picture", {
182
+ className: "absolute min-h-[295px] w-full rounded-lg object-cover",
183
+ children: [/* @__PURE__ */ t("source", {
184
+ srcSet: f,
185
+ media: "(prefers-color-scheme: dark)"
186
+ }), /* @__PURE__ */ t("img", {
187
+ className: "absolute min-h-[295px] w-full select-none rounded-lg object-cover object-left md:object-center",
188
+ src: f,
189
+ loading: "lazy",
190
+ alt: r
191
+ })]
192
+ }), /* @__PURE__ */ n("div", {
193
+ className: "relative my-4 px-8 sm:px-14",
194
+ children: [/* @__PURE__ */ t("h1", {
195
+ className: v("font-cal text-3xl"),
196
+ children: l(r)
197
+ }), /* @__PURE__ */ t("p", {
198
+ className: v("mb-8 mt-4 max-w-sm"),
199
+ children: l(c)
200
+ }), a]
201
+ })]
202
+ }), /* @__PURE__ */ t("div", {
203
+ className: "mt-4 grid-cols-3 md:grid md:gap-4",
204
+ children: h.map((m) => /* @__PURE__ */ n("div", {
205
+ className: "bg-muted mb-4 min-h-[180px] w-full rounded-md p-8 md:mb-0",
206
+ children: [m.icon, /* @__PURE__ */ t("h2", {
207
+ className: "font-cal text-emphasis mt-4 text-lg",
208
+ children: m.title
209
+ }), /* @__PURE__ */ t("p", {
210
+ className: "text-default",
211
+ children: m.description
212
+ })]
213
+ }, m.title))
214
+ })]
215
+ });
216
+ }
217
+ export {
218
+ z as Tips,
219
+ F as UpgradeTip
220
+ };