property-practice-ui 0.1.2 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "property-practice-ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "type": "module",
@@ -31,7 +31,7 @@ export const Tabs = <T extends string | number>({
31
31
  : 'border-transparent text-gray-400 dark:text-[#033c89]'
32
32
  }`}
33
33
  >
34
- {label.charAt(0).toUpperCase() + label.slice(1).toLowerCase()}
34
+ {label}
35
35
  </button>
36
36
  ))}
37
37
  </div>
@@ -55,7 +55,7 @@ export const Dropdown = <T extends string | number>({
55
55
  disabled,
56
56
  }: DropdownProps<T>) => {
57
57
  const isInvalid = useMemo(
58
- () => typeof error === 'string' && error?.length > 0,
58
+ () => error ? typeof error === 'string' && error?.length > 0 : false,
59
59
  [error],
60
60
  );
61
61
 
package/tsup.config.ts CHANGED
@@ -11,7 +11,7 @@ export default defineConfig({
11
11
  tsconfig: './tsconfig.json',
12
12
  dts: true,
13
13
  format: ['esm', 'cjs'],
14
- external: ['react', 'react-dom', 'react/jsx-runtime'],
14
+ external: ['react', 'react-dom', 'react/jsx-runtime', 'next'],
15
15
  treeshake: true,
16
16
  esbuildOptions(options) {
17
17
  options.jsx = 'automatic';