@bigtablet/design-system 2.4.2 → 2.4.4

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 +9 -9
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -948,9 +948,9 @@ var Dropdown = ({
948
948
  };
949
949
  React4.useEffect(() => {
950
950
  if (!isOpen) return;
951
- const idx = options.findIndex((o) => o.value === currentValue && !o.disabled);
951
+ const matchedIndex = options.findIndex((o) => o.value === currentValue && !o.disabled);
952
952
  setActiveIndex(
953
- idx >= 0 ? idx : Math.max(
953
+ matchedIndex >= 0 ? matchedIndex : Math.max(
954
954
  0,
955
955
  options.findIndex((o) => !o.disabled)
956
956
  )
@@ -2090,9 +2090,9 @@ var OtpInput = ({
2090
2090
  if (autoFocus) inputsRef.current[0]?.focus();
2091
2091
  }, [autoFocus]);
2092
2092
  const digits = React4.useMemo(() => {
2093
- const arr = value.split("").slice(0, length);
2094
- while (arr.length < length) arr.push("");
2095
- return arr;
2093
+ const chars = value.split("").slice(0, length);
2094
+ while (chars.length < length) chars.push("");
2095
+ return chars;
2096
2096
  }, [value, length]);
2097
2097
  const focusInput = (index) => {
2098
2098
  inputsRef.current[index]?.focus();
@@ -2101,12 +2101,12 @@ var OtpInput = ({
2101
2101
  onChange?.(newDigits.join(""));
2102
2102
  };
2103
2103
  const handleChange = (index, e) => {
2104
- const val = e.target.value;
2105
- if (val && !/^\d$/.test(val)) return;
2104
+ const nextDigit = e.target.value;
2105
+ if (nextDigit && !/^\d$/.test(nextDigit)) return;
2106
2106
  const newDigits = [...digits];
2107
- newDigits[index] = val;
2107
+ newDigits[index] = nextDigit;
2108
2108
  updateValue(newDigits);
2109
- if (val && index < length - 1) {
2109
+ if (nextDigit && index < length - 1) {
2110
2110
  focusInput(index + 1);
2111
2111
  }
2112
2112
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigtablet/design-system",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "description": "Bigtablet Design System UI Components",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -80,8 +80,8 @@
80
80
  "@biomejs/biome": "^2.4.10",
81
81
  "@commitlint/cli": "^20.5.0",
82
82
  "@commitlint/core": "^20.5.3",
83
- "@material-symbols/svg-300": "^0.44.0",
84
- "@material-symbols/svg-400": "^0.44.0",
83
+ "@material-symbols/svg-300": "^0.44.5",
84
+ "@material-symbols/svg-400": "^0.44.5",
85
85
  "@semantic-release/changelog": "^6.0.3",
86
86
  "@semantic-release/git": "^10.0.1",
87
87
  "@semantic-release/github": "^12.0.1",
@@ -100,16 +100,16 @@
100
100
  "@types/react-dom": "^19.2.3",
101
101
  "@vitest/browser-playwright": "^4.1.5",
102
102
  "@vitest/coverage-v8": "^4.1.5",
103
- "chromatic": "^16.8.0",
103
+ "chromatic": "^16.9.0",
104
104
  "conventional-changelog-conventionalcommits": "^9.3.1",
105
105
  "esbuild-sass-plugin": "^3.7.0",
106
106
  "husky": "^9.1.7",
107
107
  "jsdom": "^29.1.1",
108
108
  "lucide-react": "^1.14.0",
109
- "next": "^16.2.4",
109
+ "next": "^16.2.5",
110
110
  "playwright": "^1.59.1",
111
- "react": "^19.2.5",
112
- "react-dom": "^19.2.5",
111
+ "react": "^19.2.6",
112
+ "react-dom": "^19.2.6",
113
113
  "sass-embedded": "^1.99.0",
114
114
  "semantic-release": "^25.0.1",
115
115
  "size-limit": "^12.1.0",