@pickaxeproject/react 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/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # Pickaxe - React
2
+
3
+ > Client utility library for Pickaxe
4
+
5
+ ## Development
6
+
7
+ - Build the library:
8
+
9
+ ```sh
10
+ pnpm build
11
+ ```
12
+
13
+ - Create changeset:
14
+
15
+ ```sh
16
+ pnpm changeset
17
+ ```
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),"function"==typeof SuppressedError&&SuppressedError,exports.__rest=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var p=0;for(o=Object.getOwnPropertySymbols(e);p<o.length;p++)r.indexOf(o[p])<0&&Object.prototype.propertyIsEnumerable.call(e,o[p])&&(t[o[p]]=e[o[p]])}return t};
@@ -0,0 +1,5 @@
1
+ import { type ButtonHTMLAttributes } from "react";
2
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ test: string;
4
+ }
5
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime");const t=require("react").forwardRef(((t,s)=>{var{children:i}=t,u=e.__rest(t,["children"]);return r.jsx("button",Object.assign({ref:s},u,{children:i}))}));t.displayName="Button",exports.Button=t;
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
3
+ test: string;
4
+ }
5
+ export declare const Container: ({ children, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime");exports.Container=t=>{var{children:i}=t,s=e.__rest(t,["children"]);return r.jsx("div",Object.assign({},s,{children:i}))};
@@ -0,0 +1 @@
1
+ export * from './Container';
@@ -0,0 +1,2 @@
1
+ export declare const BLACK = "#000000";
2
+ export declare const WHITE = "#ffffff";
@@ -0,0 +1,2 @@
1
+ export * from './components/button';
2
+ export * from './components/container';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/button/Button.js"),t=require("./components/container/Container.js");exports.Button=e.Button,exports.Container=t.Container;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Conditionally joining classNames together.
3
+ *
4
+ * @param names list names that need to be concat.
5
+ * @returns a concat classNames string.
6
+ */
7
+ export declare const classNames: (...names: (string | undefined)[]) => string;
@@ -0,0 +1 @@
1
+ function r(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t}"function"==typeof SuppressedError&&SuppressedError;export{r as __rest};
@@ -0,0 +1,5 @@
1
+ import { type ButtonHTMLAttributes } from "react";
2
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ test: string;
4
+ }
5
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ import{__rest as r}from"../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";const i=e(((e,i)=>{var{children:o}=e,n=r(e,["children"]);return t("button",Object.assign({ref:i},n,{children:o}))}));i.displayName="Button";export{i as Button};
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
3
+ test: string;
4
+ }
5
+ export declare const Container: ({ children, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ import{__rest as r}from"../../_virtual/_tslib.js";import{jsx as i}from"react/jsx-runtime";const t=t=>{var{children:e}=t,n=r(t,["children"]);return i("div",Object.assign({},n,{children:e}))};export{t as Container};
@@ -0,0 +1 @@
1
+ export * from './Container';
@@ -0,0 +1,2 @@
1
+ export declare const BLACK = "#000000";
2
+ export declare const WHITE = "#ffffff";
@@ -0,0 +1,2 @@
1
+ export * from './components/button';
2
+ export * from './components/container';
@@ -0,0 +1 @@
1
+ export{Button}from"./components/button/Button.js";export{Container}from"./components/container/Container.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Conditionally joining classNames together.
3
+ *
4
+ * @param names list names that need to be concat.
5
+ * @returns a concat classNames string.
6
+ */
7
+ export declare const classNames: (...names: (string | undefined)[]) => string;
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@pickaxeproject/react",
3
+ "version": "0.0.0",
4
+ "description": "Client utility library for Pickaxe",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/pickaxeproject/v2-pickaxe-react.git"
8
+ },
9
+ "sideEffects": false,
10
+ "exports": {
11
+ "import": "./dist/esm/index.js",
12
+ "require": "./dist/cjs/index.js"
13
+ },
14
+ "main": "dist/cjs/index.js",
15
+ "module": "dist/esm/index.js",
16
+ "types": "dist/esm/index.d.ts",
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "lint-staged": {
21
+ "*.{js,jsx,ts,tsx}": [
22
+ "eslint --fix",
23
+ "prettier --write"
24
+ ],
25
+ "*.{md,mdx,yml,json}": [
26
+ "prettier --write"
27
+ ]
28
+ },
29
+ "browserslist": [
30
+ "> 1%",
31
+ "not dead",
32
+ "not edge <= 18",
33
+ "not ie 11",
34
+ "not op_mini all"
35
+ ],
36
+ "dependencies": {
37
+ "@babel/runtime": "^7.20.7"
38
+ },
39
+ "devDependencies": {
40
+ "@babel/core": "^7.20.12",
41
+ "@babel/plugin-transform-runtime": "^7.19.6",
42
+ "@babel/preset-env": "^7.20.2",
43
+ "@babel/preset-react": "^7.18.6",
44
+ "@changesets/cli": "^2.26.0",
45
+ "@mdx-js/react": "^1.6.22",
46
+ "@rollup/plugin-babel": "^6.0.3",
47
+ "@rollup/plugin-commonjs": "^24.0.0",
48
+ "@rollup/plugin-node-resolve": "^15.0.1",
49
+ "@rollup/plugin-terser": "^0.3.0",
50
+ "@types/node": "^18.11.18",
51
+ "@types/react": "^18.0.26",
52
+ "@types/react-dom": "^18.0.10",
53
+ "@typescript-eslint/eslint-plugin": "^5.48.1",
54
+ "@typescript-eslint/parser": "^5.48.1",
55
+ "@zerollup/ts-transform-paths": "^1.7.18",
56
+ "babel-loader": "^9.1.2",
57
+ "eslint": "8.31.0",
58
+ "eslint-config-prettier": "^8.6.0",
59
+ "eslint-plugin-jsx-a11y": "^6.7.1",
60
+ "eslint-plugin-prettier": "^4.2.1",
61
+ "eslint-plugin-react": "^7.32.0",
62
+ "eslint-plugin-react-hooks": "^4.6.0",
63
+ "husky": "^8.0.3",
64
+ "lint-staged": "^13.1.0",
65
+ "prettier": "^2.8.2",
66
+ "react": "^18.2.0",
67
+ "react-dom": "^18.2.0",
68
+ "rollup": "^2.79.1",
69
+ "rollup-plugin-delete": "^2.0.0",
70
+ "rollup-plugin-peer-deps-external": "^2.2.4",
71
+ "rollup-plugin-typescript2": "^0.34.1",
72
+ "tslib": "^2.4.1",
73
+ "ttypescript": "^1.5.15",
74
+ "typescript": "^4.9.4",
75
+ "typescript-transform-paths": "^3.4.6",
76
+ "webpack": "^5.75.0",
77
+ "webpack-cli": "^5.0.1"
78
+ },
79
+ "peerDependencies": {
80
+ "react": "^16.8.0 || ^17 || ^18",
81
+ "react-dom": "^16.8.0 || ^17 || ^18"
82
+ },
83
+ "engines": {
84
+ "node": ">=18"
85
+ },
86
+ "scripts": {
87
+ "build": "NODE_ENV=production rollup -c",
88
+ "lint": "eslint . --ext .ts,.tsx,.js,.jsx",
89
+ "changeset": "changeset",
90
+ "release": "changeset publish"
91
+ }
92
+ }