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/CHANGELOG.md +6 -0
- package/dist/atoms.cjs +264 -114
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +202 -83
- package/dist/atoms.js.map +1 -1
- package/dist/index.cjs +1089 -653
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +988 -572
- package/dist/index.js.map +1 -1
- package/dist/types.cjs +29 -4
- package/dist/types.cjs.map +1 -1
- package/dist/types.js +3 -3
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/molecules/Dropdown/Dropdown.tsx +1 -1
- package/tsup.config.ts +2 -2
package/dist/types.cjs
CHANGED
|
@@ -1,8 +1,33 @@
|
|
|
1
|
-
|
|
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
|
|
7
|
-
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
orderTypes
|
|
32
|
+
});
|
|
8
33
|
//# sourceMappingURL=types.cjs.map
|
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/
|
|
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
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/orderType.ts"],"
|
|
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
|
@@ -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
|
},
|