@edu-tosel/design 1.0.328 → 1.0.329

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.
@@ -7,9 +7,9 @@ function Box({ children, className, texts }) {
7
7
  className,
8
8
  };
9
9
  const alarmText = {
10
- textStyles: "text-crimson-burgundy font-medium text-xs leading-none",
10
+ textStyles: "text-red-500 font-medium text-xs leading-none",
11
11
  };
12
- return (_jsxs("div", { className: "w-full", children: [_jsx("div", { className: cn(container), children: children }), texts && (_jsx("div", { className: "mt-2", children: texts.map((text) => (_jsx("div", { className: cn(alarmText), children: text }))) }))] }));
12
+ return (_jsxs("div", { className: "w-full", children: [_jsx("div", { className: cn(container), children: children }), texts && (_jsx("div", { className: "mt-3 flex flex-col gap-1 px-2", children: texts.map((text) => (_jsx("div", { className: cn(alarmText), children: text }))) }))] }));
13
13
  }
14
14
  function Fix({ children, className }) {
15
15
  return (_jsx(Box, { className: className, sizes: "w-full max-w-112.5 h-65 xs:h-67.5 pt-8 xs:pt-10.25 px-2.5 xs:px-5 pb-2.5 xs:pb-5", children: children }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.328",
3
+ "version": "1.0.329",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.328
1
+ 1.0.329
@@ -21,7 +21,7 @@ export default function InputForm({ title, state, placeholder, isValid, type, on
21
21
  const styleByFlag = () => {
22
22
  const gray = "bg-gray-light/50 border-green-dark";
23
23
  const green = "bg-green-dark/10 text-green-dark border-green-dark";
24
- const red = "bg-red-50 text-red-400 border-red-500";
24
+ const red = "bg-red-50 text-red-500 border-red-500";
25
25
  if (typeof isValid === "undefined")
26
26
  return gray;
27
27
  if (typeof isValid === "function")
@@ -42,9 +42,7 @@ export default function InputForm({ title, state, placeholder, isValid, type, on
42
42
  fonts: "text-sm",
43
43
  boundaries: "rounded-md outline-none",
44
44
  focuses: onFocus ? "border " : "border-0",
45
- shadows: onFocus &&
46
- !(isValid === false) &&
47
- "shadow-[0px_0px_10px_0px_rgba(16,86,82,0.38)]",
45
+ shadows: onFocus && !(isValid === false) && "shadow-green",
48
46
  };
49
47
  useEffect(() => {
50
48
  if (type === "password") {