@bbki.ng/components 0.0.0
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/index.d.ts +3 -0
- package/dist/index.js +52 -0
- package/dist/index.mjs +18 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// src/index.tsx
|
|
30
|
+
var src_exports = {};
|
|
31
|
+
__export(src_exports, {
|
|
32
|
+
Button: () => Button
|
|
33
|
+
});
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var Button = () => {
|
|
36
|
+
const [count, setCount] = React.useState(0);
|
|
37
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
38
|
+
style: {
|
|
39
|
+
background: `rgba(255,255,255,.05)`,
|
|
40
|
+
borderRadius: `8px`,
|
|
41
|
+
padding: 16
|
|
42
|
+
}
|
|
43
|
+
}, /* @__PURE__ */ React.createElement("p", null, "This is component iadasdfsdfdffsfsds from ", /* @__PURE__ */ React.createElement("code", null, "ui")), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("button", {
|
|
44
|
+
type: "button",
|
|
45
|
+
onClick: () => setCount((c) => c + 1)
|
|
46
|
+
}, "count ", count)));
|
|
47
|
+
};
|
|
48
|
+
module.exports = __toCommonJS(src_exports);
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
Button
|
|
52
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/index.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
var Button = () => {
|
|
4
|
+
const [count, setCount] = React.useState(0);
|
|
5
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
background: `rgba(255,255,255,.05)`,
|
|
8
|
+
borderRadius: `8px`,
|
|
9
|
+
padding: 16
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */ React.createElement("p", null, "This is component iadasdfsdfdffsfsds from ", /* @__PURE__ */ React.createElement("code", null, "ui")), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("button", {
|
|
12
|
+
type: "button",
|
|
13
|
+
onClick: () => setCount((c) => c + 1)
|
|
14
|
+
}, "count ", count)));
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
Button
|
|
18
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bbki.ng/components",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"module": "./dist/index.mjs",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsup src/index.tsx --format esm,cjs --dts --external react",
|
|
14
|
+
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
|
|
15
|
+
"lint": "TIMING=1 eslint src --fix",
|
|
16
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@bbki.ng/tsconfig": "*",
|
|
20
|
+
"@bbki.ng/eslint-preset": "*",
|
|
21
|
+
"@types/react": "^17.0.13",
|
|
22
|
+
"@types/react-dom": "^17.0.8",
|
|
23
|
+
"react": "^17.0.2",
|
|
24
|
+
"tsup": "^5.10.1",
|
|
25
|
+
"typescript": "^4.5.3"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
}
|
|
30
|
+
}
|