@rpcbase/auth 0.64.0 → 0.66.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -54
  2. package/package.json +4 -2
package/dist/index.js CHANGED
@@ -3,9 +3,9 @@ import { useLocation, Link, useNavigate, useSearchParams } from "@rpcbase/router
3
3
  import clsx from "clsx";
4
4
  import { useFormContext, useForm, zodResolver, FormProvider } from "@rpcbase/form";
5
5
  import { r as requestSchema } from "./index-Bdcryyvv.js";
6
- import * as React from "react";
7
6
  import { useState, useEffect, useCallback, useMemo } from "react";
8
7
  import { r as requestSchema$1 } from "./index-DwX0Y2YV.js";
8
+ import { EyeOff, Eye } from "lucide-react";
9
9
  import { b, a, r } from "./middleware-BiMXO6Dq.js";
10
10
  const LINKS_REDIRECTION_MAP = {
11
11
  "/auth/sign-in": {
@@ -254,58 +254,6 @@ const RememberMeCheckbox = ({
254
254
  )
255
255
  ] });
256
256
  };
257
- function EyeSlashIcon({
258
- title,
259
- titleId,
260
- ...props
261
- }, svgRef) {
262
- return /* @__PURE__ */ React.createElement("svg", Object.assign({
263
- xmlns: "http://www.w3.org/2000/svg",
264
- fill: "none",
265
- viewBox: "0 0 24 24",
266
- strokeWidth: 1.5,
267
- stroke: "currentColor",
268
- "aria-hidden": "true",
269
- "data-slot": "icon",
270
- ref: svgRef,
271
- "aria-labelledby": titleId
272
- }, props), title ? /* @__PURE__ */ React.createElement("title", {
273
- id: titleId
274
- }, title) : null, /* @__PURE__ */ React.createElement("path", {
275
- strokeLinecap: "round",
276
- strokeLinejoin: "round",
277
- d: "M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"
278
- }));
279
- }
280
- const ForwardRef$1 = /* @__PURE__ */ React.forwardRef(EyeSlashIcon);
281
- function EyeIcon({
282
- title,
283
- titleId,
284
- ...props
285
- }, svgRef) {
286
- return /* @__PURE__ */ React.createElement("svg", Object.assign({
287
- xmlns: "http://www.w3.org/2000/svg",
288
- fill: "none",
289
- viewBox: "0 0 24 24",
290
- strokeWidth: 1.5,
291
- stroke: "currentColor",
292
- "aria-hidden": "true",
293
- "data-slot": "icon",
294
- ref: svgRef,
295
- "aria-labelledby": titleId
296
- }, props), title ? /* @__PURE__ */ React.createElement("title", {
297
- id: titleId
298
- }, title) : null, /* @__PURE__ */ React.createElement("path", {
299
- strokeLinecap: "round",
300
- strokeLinejoin: "round",
301
- d: "M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"
302
- }), /* @__PURE__ */ React.createElement("path", {
303
- strokeLinecap: "round",
304
- strokeLinejoin: "round",
305
- d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
306
- }));
307
- }
308
- const ForwardRef = /* @__PURE__ */ React.forwardRef(EyeIcon);
309
257
  const PasswordInput = ({
310
258
  id,
311
259
  name = "password",
@@ -338,7 +286,7 @@ const PasswordInput = ({
338
286
  className: "absolute inset-y-0 right-0 flex items-center pr-3 text-gray-500",
339
287
  onClick: () => setShowPassword((prev) => !prev),
340
288
  "aria-label": showPassword ? "Hide characters" : "Show characters",
341
- children: showPassword ? /* @__PURE__ */ jsx(ForwardRef$1, { className: "h-5 w-5", "aria-hidden": true }) : /* @__PURE__ */ jsx(ForwardRef, { className: "h-5 w-5", "aria-hidden": true })
289
+ children: showPassword ? /* @__PURE__ */ jsx(EyeOff, { className: "h-5 w-5", "aria-hidden": true }) : /* @__PURE__ */ jsx(Eye, { className: "h-5 w-5", "aria-hidden": true })
342
290
  }
343
291
  )
344
292
  ] }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/auth",
3
- "version": "0.64.0",
3
+ "version": "0.66.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -67,6 +67,8 @@
67
67
  "peerDependencies": {
68
68
  "clsx": "*"
69
69
  },
70
- "dependencies": {},
70
+ "dependencies": {
71
+ "lucide-react": "0.560.0"
72
+ },
71
73
  "devDependencies": {}
72
74
  }