property-practice-ui 0.1.2 → 0.1.3

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/dist/types.cjs CHANGED
@@ -1,8 +1,33 @@
1
- 'use strict';
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/types/index.ts
21
+ var types_exports = {};
22
+ __export(types_exports, {
23
+ orderTypes: () => orderTypes
24
+ });
25
+ module.exports = __toCommonJS(types_exports);
2
26
 
3
27
  // src/types/orderType.ts
4
28
  var orderTypes = ["asc", "desc"];
5
-
6
- exports.orderTypes = orderTypes;
7
- //# sourceMappingURL=types.cjs.map
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ orderTypes
32
+ });
8
33
  //# sourceMappingURL=types.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types/orderType.ts"],"names":[],"mappings":";;;AAAO,IAAM,UAAA,GAAa,CAAC,KAAA,EAAO,MAAM","file":"types.cjs","sourcesContent":["export const orderTypes = ['asc', 'desc'] as const;\nexport type OrderType = (typeof orderTypes)[number];\n"]}
1
+ {"version":3,"sources":["../src/types/index.ts","../src/types/orderType.ts"],"sourcesContent":["export * from './inputAttributes';\nexport * from './menuItem';\nexport * from './orderType';\nexport * from './tableListItem';\nexport * from './toast';\n\n","export const orderTypes = ['asc', 'desc'] as const;\nexport type OrderType = (typeof orderTypes)[number];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,aAAa,CAAC,OAAO,MAAM;","names":[]}
package/dist/types.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/types/orderType.ts
2
2
  var orderTypes = ["asc", "desc"];
3
-
4
- export { orderTypes };
5
- //# sourceMappingURL=types.js.map
3
+ export {
4
+ orderTypes
5
+ };
6
6
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types/orderType.ts"],"names":[],"mappings":";AAAO,IAAM,UAAA,GAAa,CAAC,KAAA,EAAO,MAAM","file":"types.js","sourcesContent":["export const orderTypes = ['asc', 'desc'] as const;\nexport type OrderType = (typeof orderTypes)[number];\n"]}
1
+ {"version":3,"sources":["../src/types/orderType.ts"],"sourcesContent":["export const orderTypes = ['asc', 'desc'] as const;\nexport type OrderType = (typeof orderTypes)[number];\n"],"mappings":";AAAO,IAAM,aAAa,CAAC,OAAO,MAAM;","names":[]}
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.3",
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,8 +11,8 @@ 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'],
15
- treeshake: true,
14
+ external: ['react', 'react-dom', 'react/jsx-runtime', 'next'],
15
+ // treeshake: true,
16
16
  esbuildOptions(options) {
17
17
  options.jsx = 'automatic';
18
18
  },