@ews-admin/global-design-system 1.9.0 → 1.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ews-admin/global-design-system",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "EWS Global Design System - Reusable components for EWS applications",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,5 +1,5 @@
1
1
  import { ChevronDown } from "lucide-react";
2
- import React, { useEffect, useRef, useState } from "react";
2
+ import React, { useEffect, useId, useRef, useState } from "react";
3
3
  import { Eye, EyeOff } from "../../icons";
4
4
  import { cn } from "../../utils";
5
5
 
@@ -104,7 +104,8 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
104
104
  },
105
105
  ref
106
106
  ) => {
107
- const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`;
107
+ const generatedId = useId();
108
+ const inputId = id || `input-${generatedId.replace(/:/g, "")}`;
108
109
  const hasError = Boolean(error);
109
110
  const actualVariant = hasError ? "error" : variant;
110
111
 
@@ -23,7 +23,7 @@ const LOCAL_PORTS = {
23
23
  bff: 8082,
24
24
  loginBff: 8080,
25
25
  app: 3000,
26
- login: 4001,
26
+ login: 3001,
27
27
  dashboard: 3002,
28
28
  admin: 3008,
29
29
  } as const;