@constructive-io/sheets 0.11.0 → 0.13.0

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/index.cjs CHANGED
@@ -247,7 +247,6 @@ var init_overlay_presets = __esm({
247
247
  var date_editor_exports = {};
248
248
  __export(date_editor_exports, {
249
249
  DateEditor: () => DateEditor,
250
- dateOnlyStringFromCalendarValue: () => dateOnlyStringFromCalendarValue,
251
250
  extractDateOnly: () => extractDateOnly,
252
251
  formatDate: () => formatDate,
253
252
  formatForInput: () => formatForInput,
@@ -291,10 +290,6 @@ function resolveDateType(value, explicitType) {
291
290
  }
292
291
  return getDateType(value);
293
292
  }
294
- function dateOnlyStringFromCalendarValue(dateValue) {
295
- const date = dateValueToDate(dateValue);
296
- return date ? toLocalDateString(date) : "";
297
- }
298
293
  var import_react44, import_date, import_button7, import_calendar_rac, import_jsx_runtime29, TIME_RE, MAC_UA_RE2, DATE_ONLY_RE, getDateType, formatDate, formatForInput, dateToDateValue, dateValueToDate, DateEditor;
299
294
  var init_date_editor = __esm({
300
295
  "src/grid/editors/date-editor.tsx"() {
@@ -558,7 +553,7 @@ var init_date_editor = __esm({
558
553
  step: "1",
559
554
  value: formatForInput(dateValue, "time"),
560
555
  onChange: (e) => handleTimeChange(e.target.value),
561
- className: "bg-muted/40 border-border/40 text-foreground w-full rounded-md border px-3 py-2 text-sm outline-none focus:border-primary/60 focus:ring-2 focus:ring-primary/20",
556
+ className: "bg-muted/40 border-border/40 text-foreground w-full rounded-md border px-3 py-2 text-sm outline-none focus-visible:border-ring/60 focus-visible:ring-[3px] focus-visible:ring-ring/35",
562
557
  autoFocus: true
563
558
  }
564
559
  ) })
@@ -581,7 +576,7 @@ var init_date_editor = __esm({
581
576
  step: "1",
582
577
  value: dateValue ? new Date(dateValue).toTimeString().split(" ")[0].slice(0, 8) : "",
583
578
  onChange: (e) => handleTimeChange(e.target.value),
584
- className: "bg-muted/40 border-border/40 text-foreground w-full rounded-md border px-2.5 py-1.5 text-sm outline-none focus:border-primary/60 focus:ring-2 focus:ring-primary/20"
579
+ className: "bg-muted/40 border-border/40 text-foreground w-full rounded-md border px-2.5 py-1.5 text-sm outline-none focus-visible:border-ring/60 focus-visible:ring-[3px] focus-visible:ring-ring/35"
585
580
  }
586
581
  ) })
587
582
  ] })
@@ -737,7 +732,7 @@ function MapPicker({
737
732
  {
738
733
  onClick: () => handleResultSelect(result),
739
734
  disabled,
740
- className: "hover:bg-accent hover:text-accent-foreground w-full px-3 py-2 text-left text-sm\n disabled:cursor-not-allowed disabled:opacity-50",
735
+ className: "hover:bg-accent hover:text-accent-foreground w-full px-3 py-2 text-left text-sm\n disabled:cursor-not-allowed disabled:opacity-64",
741
736
  children: result.display_name
742
737
  },
743
738
  result.place_id
@@ -875,7 +870,7 @@ var init_map_picker = __esm({
875
870
  center: position || defaultCenter,
876
871
  zoom: position ? 15 : 10,
877
872
  style: { height: "100%", width: "100%" },
878
- className: cn("z-0", disabled && "pointer-events-none opacity-50"),
873
+ className: cn("z-0", disabled && "pointer-events-none opacity-64"),
879
874
  children: [
880
875
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
881
876
  TileLayer,
@@ -9229,7 +9224,9 @@ function ImageCellView(props) {
9229
9224
  decoding: "async",
9230
9225
  alt: "",
9231
9226
  onLoad: () => warmImage(url),
9232
- className: cn("absolute inset-0 h-full w-full rounded-sm object-cover")
9227
+ className: cn(
9228
+ "absolute inset-0 h-full w-full rounded-sm object-cover outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10"
9229
+ )
9233
9230
  }
9234
9231
  ) : null })
9235
9232
  }
@@ -9791,7 +9788,7 @@ function OverlayManager({ anchorRect, open, presetClass, onCancel, dismissMode =
9791
9788
  // Origin-aware entrance (DESIGN_SPEC §10 / Emil standards): subtle scale + fade from the
9792
9789
  // cell corner, reusing the UI popover's tw-animate utilities for a consistent feel. Gated
9793
9790
  // on `positioned` so the overlay animates only after its measured position is applied.
9794
- positioned && "animate-in fade-in-0 zoom-in-95 duration-150 ease-out motion-reduce:animate-none",
9791
+ positioned && "animate-[fade-scale-in_var(--duration-moderate)_ease-out] motion-reduce:animate-none",
9795
9792
  shouldFlip ? "origin-bottom-left" : "origin-top-left"
9796
9793
  ),
9797
9794
  children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(OverlayMeasureContext.Provider, { value: overlayMeasure, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(EditorErrorGuard, { onClose: onCancel, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(EditorFocusTrap, { onEscape: onCancel, className: cn("overflow-visible", presetClass), children }) }) })
@@ -10637,7 +10634,18 @@ function ImageWithFallback({
10637
10634
  return maybeJSX ?? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "bg-muted h-full w-full animate-pulse rounded-md" });
10638
10635
  }
10639
10636
  case "loaded": {
10640
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: currentSrc, alt, className: cn("object-cover", className), ...imgProps });
10637
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10638
+ "img",
10639
+ {
10640
+ src: currentSrc,
10641
+ alt,
10642
+ className: cn(
10643
+ "object-cover outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10",
10644
+ className
10645
+ ),
10646
+ ...imgProps
10647
+ }
10648
+ );
10641
10649
  }
10642
10650
  case "error": {
10643
10651
  const jsxFallback = fallbacks.find((f) => typeof f !== "string");
@@ -10661,7 +10669,7 @@ function RemoveButton({ onClick, label }) {
10661
10669
  "button",
10662
10670
  {
10663
10671
  type: "button",
10664
- className: "flex size-7 cursor-pointer items-center justify-center rounded-full\n border border-black/10 bg-white/70 text-black/50 shadow-xs backdrop-blur-sm\n transition-all outline-hidden hover:bg-white/90 hover:text-black/70\n dark:border-white/10 dark:bg-black/50 dark:text-white/70\n dark:hover:bg-black/70 dark:hover:text-white/90\n focus-visible:ring-ring/50 focus-visible:ring-[3px]",
10672
+ className: "flex size-7 cursor-pointer items-center justify-center rounded-full\n border border-black/10 bg-white/70 text-black/50 shadow-xs backdrop-blur-sm\n transition-[color,background-color,border-color,box-shadow] outline-hidden hover:bg-white/90 hover:text-black/70\n dark:border-white/10 dark:bg-black/50 dark:text-white/70\n dark:hover:bg-black/70 dark:hover:text-white/90\n focus-visible:ring-ring/50 focus-visible:ring-[3px]",
10665
10673
  onClick: (e) => {
10666
10674
  e.stopPropagation();
10667
10675
  onClick();
@@ -10923,7 +10931,7 @@ var ImageEditor = ({
10923
10931
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "bg-muted h-1.5 overflow-hidden rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10924
10932
  "div",
10925
10933
  {
10926
- className: "bg-primary h-1.5 rounded-full transition-all duration-300",
10934
+ className: "bg-primary h-1.5 rounded-full transition-[width] duration-(--duration-slow)",
10927
10935
  style: { width: `${uploadProgress.percentage}%` }
10928
10936
  }
10929
10937
  ) }),
@@ -11287,7 +11295,7 @@ var InetEditor = ({ value, onFinishedEditing }) => {
11287
11295
  value: editingValue,
11288
11296
  onChange: handleInputChange,
11289
11297
  placeholder: "192.168.1.1 or 10.0.0.0/24",
11290
- className: "bg-muted/40 border-border/40 text-foreground w-full rounded-md border px-3 py-2 font-mono text-sm outline-none focus:border-primary/60 focus:ring-2 focus:ring-primary/20",
11298
+ className: "bg-muted/40 border-border/40 text-foreground w-full rounded-md border px-3 py-2 font-mono text-sm outline-none focus-visible:border-ring/60 focus-visible:ring-[3px] focus-visible:ring-ring/35",
11291
11299
  autoFocus: true
11292
11300
  }
11293
11301
  ) }),
@@ -12395,14 +12403,14 @@ var RelationEditor = ({
12395
12403
  className: cn(
12396
12404
  "w-full rounded-md px-2 py-1.5 text-left",
12397
12405
  !disabled && "hover:bg-accent/50 cursor-pointer",
12398
- disabled && "cursor-not-allowed opacity-50",
12406
+ disabled && "cursor-not-allowed opacity-64",
12399
12407
  active3 && "bg-accent/60"
12400
12408
  ),
12401
12409
  children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2", children: [
12402
12410
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RelationRecordTooltip, { record: row }),
12403
12411
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "min-w-0 flex-1 truncate text-sm", children: label }),
12404
12412
  active3 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react8.Check, { className: "text-primary h-3.5 w-3.5 shrink-0" }),
12405
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_badge2.Badge, { variant: "outline", className: cn("text-2xs shrink-0", active3 && "border-primary/40 text-primary"), children: String(row?.id ?? "\u2014").slice(0, 8) })
12413
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_badge2.Badge, { variant: "outline", className: cn("text-2xs shrink-0", active3 && "border-primary/40 text-link"), children: String(row?.id ?? "\u2014").slice(0, 8) })
12406
12414
  ] })
12407
12415
  },
12408
12416
  id
@@ -12568,7 +12576,7 @@ var TsvectorEditor = ({ value, onFinishedEditing }) => {
12568
12576
  ] }),
12569
12577
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "bg-muted flex max-h-[120px] flex-wrap gap-1 overflow-y-auto rounded p-2 text-sm", children: parsedTokens.map((t, index) => {
12570
12578
  const weight = t.weights[0];
12571
- const color = weight === "A" ? "bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-200" : weight === "B" ? "bg-orange-100 text-orange-800 dark:bg-orange-900/40 dark:text-orange-200" : weight === "C" ? "bg-yellow-100 text-yellow-800 dark:bg-yellow-900/40 dark:text-yellow-200" : weight === "D" ? "bg-green-100 text-green-800 dark:bg-green-900/40 dark:text-green-200" : "bg-primary/10 text-primary";
12579
+ const color = weight === "A" ? "bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-200" : weight === "B" ? "bg-orange-100 text-orange-800 dark:bg-orange-900/40 dark:text-orange-200" : weight === "C" ? "bg-yellow-100 text-yellow-800 dark:bg-yellow-900/40 dark:text-yellow-200" : weight === "D" ? "bg-green-100 text-green-800 dark:bg-green-900/40 dark:text-green-200" : "bg-primary/10 text-link";
12572
12580
  return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("span", { className: cn("inline-flex items-center rounded px-2 py-1 text-xs", color), children: [
12573
12581
  t.lexeme,
12574
12582
  t.weights.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "ml-1 font-mono opacity-80", children: t.weights.join(",") })
@@ -12698,14 +12706,14 @@ var UrlEditor = ({ value, onFinishedEditing }) => {
12698
12706
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "bg-muted flex items-center gap-2 rounded p-2 text-sm", children: [
12699
12707
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react10.Link, { className: "text-muted-foreground h-3 w-3 flex-shrink-0" }),
12700
12708
  isValid ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
12701
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-primary truncate", children: displayText }),
12709
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-link truncate", children: displayText }),
12702
12710
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12703
12711
  import_button18.Button,
12704
12712
  {
12705
12713
  variant: "ghost",
12706
12714
  size: "sm",
12707
12715
  onClick: handleTestUrl,
12708
- className: "text-muted-foreground hover:text-primary h-6 w-6 p-0",
12716
+ className: "text-muted-foreground hover:text-link h-6 w-6 p-0",
12709
12717
  title: "Test URL",
12710
12718
  children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react10.ExternalLink, { className: "h-3 w-3" })
12711
12719
  }
@@ -14179,7 +14187,7 @@ var TableItem = (0, import_react68.memo)(function TableItem2({ table, activeTabl
14179
14187
  type: "button",
14180
14188
  variant: "ghost",
14181
14189
  className: cn(
14182
- "group relative my-1 flex h-8 w-full shrink items-center justify-between rounded-lg px-2 text-left text-xs font-normal transition-colors duration-150",
14190
+ "group relative my-1 flex h-8 w-full shrink items-center justify-between rounded-lg px-2 text-left text-xs font-normal transition-colors duration-(--duration-moderate)",
14183
14191
  isActive ? "bg-primary/10 text-foreground ring-primary/30 dark:bg-primary/15 dark:ring-primary/40 ring-1" : "text-muted-foreground hover:text-foreground"
14184
14192
  ),
14185
14193
  onClick: () => onTableSelect(table.value),
@@ -14375,7 +14383,7 @@ function SheetsTableListByCategory({
14375
14383
  import_collapsible.CollapsibleTrigger,
14376
14384
  {
14377
14385
  className: cn(
14378
- "group flex w-full items-center gap-2 rounded-lg py-1.5 pr-2 pl-1 transition-colors duration-150",
14386
+ "group flex w-full items-center gap-2 rounded-lg py-1.5 pr-2 pl-1 transition-colors duration-(--duration-moderate)",
14379
14387
  "bg-muted hover:bg-muted/50",
14380
14388
  isExpanded && "bg-muted/50"
14381
14389
  ),
@@ -15153,14 +15161,7 @@ var SIGN_UP_MUTATION = (
15153
15161
  `
15154
15162
  mutation SignUp($input: SignUpInput!) {
15155
15163
  signUp(input: $input) {
15156
- result {
15157
- id
15158
- userId
15159
- accessToken
15160
- accessTokenExpiresAt
15161
- isVerified
15162
- totpEnabled
15163
- }
15164
+ clientMutationId
15164
15165
  }
15165
15166
  }
15166
15167
  `
@@ -15172,27 +15173,19 @@ function useSheetsRegister() {
15172
15173
  return (0, import_react_query10.useMutation)({
15173
15174
  mutationKey: ["sheets", "auth", "signUp"],
15174
15175
  mutationFn: async (formData) => {
15175
- const result = await executeAuthMutation(
15176
+ await executeAuthMutation(
15176
15177
  config,
15177
15178
  SIGN_UP_MUTATION,
15178
15179
  {
15179
15180
  input: {
15180
15181
  email: formData.email,
15181
- password: formData.password,
15182
- rememberMe: formData.rememberMe ?? true
15182
+ password: formData.password
15183
15183
  }
15184
15184
  }
15185
15185
  );
15186
- const signUpResult = result.signUp?.result;
15187
- const token = signUpResult ? toAuthToken(signUpResult) : null;
15188
- return { token, email: formData.email, identityKey: signUpResult?.userId ?? null };
15186
+ return { email: formData.email };
15189
15187
  },
15190
- onSuccess: ({ token, identityKey }) => {
15191
- if (token) {
15192
- const databaseId = config.databaseId || "default";
15193
- setStoredToken(databaseId, token.accessToken, token.expiresAt, identityKey);
15194
- storeApi.getState().setAuthenticated(token.accessToken, token.expiresAt, identityKey);
15195
- }
15188
+ onSuccess: () => {
15196
15189
  queryClient.invalidateQueries({ queryKey: ["sheets"] });
15197
15190
  },
15198
15191
  onError: () => {
@@ -15290,8 +15283,7 @@ var loginSchema = import_zod2.z.object({
15290
15283
  var registerSchema = import_zod2.z.object({
15291
15284
  email: emailSchema,
15292
15285
  password: import_zod2.z.string().min(1, "Password is required"),
15293
- confirmPassword: import_zod2.z.string().min(1, "Please confirm your password"),
15294
- rememberMe: import_zod2.z.boolean().optional()
15286
+ confirmPassword: import_zod2.z.string().min(1, "Please confirm your password")
15295
15287
  }).refine((data) => data.password === data.confirmPassword, {
15296
15288
  message: "Passwords do not match",
15297
15289
  path: ["confirmPassword"]
@@ -15325,7 +15317,7 @@ function AuthErrorAlert({ error, className }) {
15325
15317
  "aria-live": "polite",
15326
15318
  "aria-hidden": !hasError,
15327
15319
  className: cn(
15328
- "overflow-hidden transition-all duration-300 ease-out",
15320
+ "overflow-hidden transition-[max-height,opacity] duration-(--duration-slow) ease-out",
15329
15321
  hasError ? "max-h-32" : "max-h-0",
15330
15322
  className
15331
15323
  ),
@@ -15336,7 +15328,7 @@ function AuthErrorAlert({ error, className }) {
15336
15328
  "flex items-start gap-2.5 rounded-md px-3 py-2.5",
15337
15329
  "bg-destructive/8 border border-destructive/20",
15338
15330
  "text-destructive text-sm text-left",
15339
- "transition-opacity duration-200",
15331
+ "transition-opacity duration-(--duration-slow)",
15340
15332
  hasError ? "opacity-100" : "opacity-0"
15341
15333
  ),
15342
15334
  children: [
@@ -15567,19 +15559,19 @@ function SheetsLoginForm({ onLogin, onShowForgot, onShowRegister, defaultEmail =
15567
15559
  // src/auth/ui/register-form.tsx
15568
15560
  var import_react72 = require("react");
15569
15561
  var import_react_form2 = require("@tanstack/react-form");
15562
+ var import_lucide_react14 = require("lucide-react");
15570
15563
  var import_button23 = require("@constructive-io/ui/button");
15571
- var import_checkbox4 = require("@constructive-io/ui/checkbox");
15572
15564
  var import_jsx_runtime58 = require("react/jsx-runtime");
15573
15565
  function SheetsRegisterForm({ onRegister, onShowLogin, defaultEmail = "" }) {
15574
15566
  const [error, setError] = (0, import_react72.useState)(null);
15575
15567
  const [isSubmitting, setIsSubmitting] = (0, import_react72.useState)(false);
15568
+ const [isSuccess, setIsSuccess] = (0, import_react72.useState)(false);
15576
15569
  const passwordInputRef = (0, import_react72.useRef)(null);
15577
15570
  const form = (0, import_react_form2.useForm)({
15578
15571
  defaultValues: {
15579
15572
  email: defaultEmail,
15580
15573
  password: "",
15581
- confirmPassword: "",
15582
- rememberMe: true
15574
+ confirmPassword: ""
15583
15575
  },
15584
15576
  onSubmit: async ({ value }) => {
15585
15577
  setError(null);
@@ -15587,6 +15579,7 @@ function SheetsRegisterForm({ onRegister, onShowLogin, defaultEmail = "" }) {
15587
15579
  try {
15588
15580
  const validatedData = registerSchema.parse(value);
15589
15581
  await onRegister(validatedData);
15582
+ setIsSuccess(true);
15590
15583
  } catch (err) {
15591
15584
  setError(parseGraphQLError(err).message);
15592
15585
  } finally {
@@ -15594,6 +15587,15 @@ function SheetsRegisterForm({ onRegister, onShowLogin, defaultEmail = "" }) {
15594
15587
  }
15595
15588
  }
15596
15589
  });
15590
+ if (isSuccess) {
15591
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "space-y-5 text-center", children: [
15592
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "bg-success/10 flex h-12 w-12 items-center justify-center rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react14.CheckCircleIcon, { className: "text-success h-6 w-6" }) }) }),
15593
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "space-y-1.5", children: [
15594
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("h3", { className: "text-lg font-semibold", children: "Check your email" }),
15595
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-muted-foreground text-sm", children: "We've sent a link to confirm your address. Open it, then sign in with your password." })
15596
+ ] })
15597
+ ] });
15598
+ }
15597
15599
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "space-y-5", children: [
15598
15600
  /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15599
15601
  "form",
@@ -15634,26 +15636,6 @@ function SheetsRegisterForm({ onRegister, onShowLogin, defaultEmail = "" }) {
15634
15636
  type: "password"
15635
15637
  }
15636
15638
  ) }),
15637
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(form.Field, { name: "rememberMe", children: (field) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center space-x-2", children: [
15638
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15639
- import_checkbox4.Checkbox,
15640
- {
15641
- id: "rememberMe",
15642
- checked: field.state.value,
15643
- onCheckedChange: (checked) => {
15644
- field.handleChange(checked === true);
15645
- }
15646
- }
15647
- ),
15648
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15649
- "label",
15650
- {
15651
- htmlFor: "rememberMe",
15652
- className: "text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
15653
- children: "Remember me"
15654
- }
15655
- )
15656
- ] }) }),
15657
15639
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15658
15640
  AuthLoadingButton,
15659
15641
  {
@@ -15689,7 +15671,7 @@ function SheetsRegisterForm({ onRegister, onShowLogin, defaultEmail = "" }) {
15689
15671
  // src/auth/ui/forgot-password-form.tsx
15690
15672
  var import_react73 = require("react");
15691
15673
  var import_react_form3 = require("@tanstack/react-form");
15692
- var import_lucide_react14 = require("lucide-react");
15674
+ var import_lucide_react15 = require("lucide-react");
15693
15675
  var import_button24 = require("@constructive-io/ui/button");
15694
15676
 
15695
15677
  // src/auth/ui/auth-screen-header.tsx
@@ -15754,7 +15736,7 @@ function SheetsForgotPasswordForm({ onForgotPassword, onShowLogin }) {
15754
15736
  });
15755
15737
  if (isSuccess) {
15756
15738
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "space-y-5 text-center", children: [
15757
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "bg-success/10 flex h-12 w-12 items-center justify-center rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react14.CheckCircleIcon, { className: "text-success h-6 w-6" }) }) }),
15739
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "bg-success/10 flex h-12 w-12 items-center justify-center rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react15.CheckCircleIcon, { className: "text-success h-6 w-6" }) }) }),
15758
15740
  /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "space-y-1.5", children: [
15759
15741
  /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("h3", { className: "text-lg font-semibold", children: "Check your email" }),
15760
15742
  /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "text-muted-foreground text-sm", children: "We've sent a password reset link to your email address." })
@@ -15831,7 +15813,7 @@ function SheetsForgotPasswordForm({ onForgotPassword, onShowLogin }) {
15831
15813
  // src/auth/ui/reset-password-form.tsx
15832
15814
  var React18 = __toESM(require("react"), 1);
15833
15815
  var import_react_form4 = require("@tanstack/react-form");
15834
- var import_lucide_react15 = require("lucide-react");
15816
+ var import_lucide_react16 = require("lucide-react");
15835
15817
  var import_button25 = require("@constructive-io/ui/button");
15836
15818
 
15837
15819
  // src/auth/utils/validators.ts
@@ -15930,7 +15912,7 @@ function SheetsResetPasswordForm({
15930
15912
  });
15931
15913
  if (isSuccess) {
15932
15914
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "space-y-5 text-center", children: [
15933
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-success/10 flex h-12 w-12 items-center justify-center rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react15.CheckCircleIcon, { className: "text-success h-6 w-6" }) }) }),
15915
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-success/10 flex h-12 w-12 items-center justify-center rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react16.CheckCircleIcon, { className: "text-success h-6 w-6" }) }) }),
15934
15916
  /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "space-y-1.5", children: [
15935
15917
  /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h3", { className: "text-lg font-semibold", children: "Password reset successful" }),
15936
15918
  /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-muted-foreground text-sm", children: "Your password has been reset successfully. You can now sign in with your new password." })