@edu-tosel/design 1.0.73 → 1.0.74

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.
@@ -34,15 +34,11 @@ export default function SelectRoll({ item, entry, state, data, }) {
34
34
  useEffect(() => {
35
35
  setRows(rows?.map((row) => {
36
36
  if (row === item) {
37
- const temp = { ...row, [key]: keys[index] };
38
- return temp;
37
+ return { ...row, [key]: keys[index] };
39
38
  }
40
- console.log("not changed");
41
- console.log("row", row);
42
- console.log("item", item);
43
39
  return row;
44
40
  }));
45
- }, [index, setIndex]);
41
+ }, [index]);
46
42
  return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), onMouseLeave: () => setIsHover(false), onMouseEnter: () => setIsHover(true), children: [values[index], _jsx("button", { onClick: () => {
47
43
  if (index > 0) {
48
44
  setIndex(index - 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.73
1
+ 1.0.74
@@ -89,7 +89,9 @@ export default function SelectLG({ state, selectOptions, placeholder, option, })
89
89
  : !isDark
90
90
  ? "bg-green-dark"
91
91
  : "bg-[#8F7B39]",
92
- fonts: !isDark ? "text-xs text-gray-dim hover:text-white" : "text-white ",
92
+ fonts: !isDark
93
+ ? "text-xs text-gray-dim hover:text-white"
94
+ : "text-xs text-white ",
93
95
  });
94
96
  const inputTransition = useTransition(isOpen, {
95
97
  from: { top: 44 },