@trackunit/react-form-components 1.0.62 → 1.0.63

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/index.cjs.js CHANGED
@@ -401,7 +401,7 @@ const PrefixRenderer = React.forwardRef(({ prefix, type, dataTestId, disabled },
401
401
  url: jsxRuntime.jsx(reactComponents.Icon, { name: "Link", size: "small" }),
402
402
  };
403
403
  // Decide what to show as prefix
404
- const resolvedPrefix = prefix || (type && type !== "text" ? (defaultPrefixMap[type] ?? type) : null);
404
+ const resolvedPrefix = prefix || (type && type !== "text" ? (defaultPrefixMap[type] ?? null) : null);
405
405
  if (!resolvedPrefix) {
406
406
  return null;
407
407
  }
package/index.esm.js CHANGED
@@ -382,7 +382,7 @@ const PrefixRenderer = forwardRef(({ prefix, type, dataTestId, disabled }, ref)
382
382
  url: jsx(Icon, { name: "Link", size: "small" }),
383
383
  };
384
384
  // Decide what to show as prefix
385
- const resolvedPrefix = prefix || (type && type !== "text" ? (defaultPrefixMap[type] ?? type) : null);
385
+ const resolvedPrefix = prefix || (type && type !== "text" ? (defaultPrefixMap[type] ?? null) : null);
386
386
  if (!resolvedPrefix) {
387
387
  return null;
388
388
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -18,11 +18,11 @@
18
18
  "react-hook-form": "7.53.1",
19
19
  "tailwind-merge": "^2.0.0",
20
20
  "@trackunit/css-class-variance-utilities": "1.0.37",
21
- "@trackunit/react-components": "1.1.43",
22
- "@trackunit/ui-icons": "1.0.40",
21
+ "@trackunit/react-components": "1.1.44",
22
+ "@trackunit/ui-icons": "1.0.41",
23
23
  "@trackunit/shared-utils": "1.2.34",
24
24
  "@trackunit/ui-design-tokens": "1.0.38",
25
- "@trackunit/i18n-library-translation": "1.0.46",
25
+ "@trackunit/i18n-library-translation": "1.0.47",
26
26
  "string-ts": "^2.0.0"
27
27
  },
28
28
  "module": "./index.esm.js",