@pickaxeproject/react 0.0.0 → 0.0.1

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 CHANGED
@@ -1,17 +1,3 @@
1
1
  # Pickaxe - React
2
2
 
3
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,4 @@
1
+ export interface PickaxeProps {
2
+ pickaxeId: string;
3
+ }
4
+ export declare const Pickaxe: ({ pickaxeId }: PickaxeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.Pickaxe=({pickaxeId:s})=>e.jsxs("div",Object.assign({className:"text-sm text-c-red text-[28px] font-semibold p-4 rounded-lg shadow-md"},{children:["This is a pickaxe ",s]}));
@@ -1,2 +1 @@
1
- export * from './components/button';
2
- export * from './components/container';
1
+ export * from "./components/Pickaxe";
package/dist/cjs/index.js CHANGED
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/Pickaxe/index.js");exports.Pickaxe=e.Pickaxe;
@@ -1,7 +1,3 @@
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;
1
+ import { type ClassValue } from "clsx";
2
+ declare const cn: (...inputs: ClassValue[]) => string;
3
+ export default cn;
@@ -0,0 +1,4 @@
1
+ export interface PickaxeProps {
2
+ pickaxeId: string;
3
+ }
4
+ export declare const Pickaxe: ({ pickaxeId }: PickaxeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ import{jsxs as e}from"react/jsx-runtime";const t=({pickaxeId:t})=>e("div",Object.assign({className:"text-sm text-c-red text-[28px] font-semibold p-4 rounded-lg shadow-md"},{children:["This is a pickaxe ",t]}));export{t as Pickaxe};
@@ -1,2 +1 @@
1
- export * from './components/button';
2
- export * from './components/container';
1
+ export * from "./components/Pickaxe";
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{Button}from"./components/button/Button.js";export{Container}from"./components/container/Container.js";
1
+ export{Pickaxe}from"./components/Pickaxe/index.js";
@@ -1,7 +1,3 @@
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;
1
+ import { type ClassValue } from "clsx";
2
+ declare const cn: (...inputs: ClassValue[]) => string;
3
+ export default cn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pickaxeproject/react",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "Client utility library for Pickaxe",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,18 +42,20 @@
42
42
  "@babel/preset-env": "^7.20.2",
43
43
  "@babel/preset-react": "^7.18.6",
44
44
  "@changesets/cli": "^2.26.0",
45
- "@mdx-js/react": "^1.6.22",
46
45
  "@rollup/plugin-babel": "^6.0.3",
47
46
  "@rollup/plugin-commonjs": "^24.0.0",
48
47
  "@rollup/plugin-node-resolve": "^15.0.1",
49
48
  "@rollup/plugin-terser": "^0.3.0",
49
+ "@tailwindcss/container-queries": "^0.1.1",
50
50
  "@types/node": "^18.11.18",
51
51
  "@types/react": "^18.0.26",
52
52
  "@types/react-dom": "^18.0.10",
53
53
  "@typescript-eslint/eslint-plugin": "^5.48.1",
54
54
  "@typescript-eslint/parser": "^5.48.1",
55
55
  "@zerollup/ts-transform-paths": "^1.7.18",
56
+ "autoprefixer": "^10.4.20",
56
57
  "babel-loader": "^9.1.2",
58
+ "clsx": "^2.1.1",
57
59
  "eslint": "8.31.0",
58
60
  "eslint-config-prettier": "^8.6.0",
59
61
  "eslint-plugin-jsx-a11y": "^6.7.1",
@@ -62,6 +64,7 @@
62
64
  "eslint-plugin-react-hooks": "^4.6.0",
63
65
  "husky": "^8.0.3",
64
66
  "lint-staged": "^13.1.0",
67
+ "postcss": "^8.4.49",
65
68
  "prettier": "^2.8.2",
66
69
  "react": "^18.2.0",
67
70
  "react-dom": "^18.2.0",
@@ -69,6 +72,9 @@
69
72
  "rollup-plugin-delete": "^2.0.0",
70
73
  "rollup-plugin-peer-deps-external": "^2.2.4",
71
74
  "rollup-plugin-typescript2": "^0.34.1",
75
+ "tailwind-merge": "^2.6.0",
76
+ "tailwind-scrollbar": "^3.1.0",
77
+ "tailwindcss": "^3.4.17",
72
78
  "tslib": "^2.4.1",
73
79
  "ttypescript": "^1.5.15",
74
80
  "typescript": "^4.9.4",
@@ -77,8 +83,12 @@
77
83
  "webpack-cli": "^5.0.1"
78
84
  },
79
85
  "peerDependencies": {
86
+ "@tailwindcss/container-queries": "^0.1.1",
87
+ "clsx": "^2.1.1",
80
88
  "react": "^16.8.0 || ^17 || ^18",
81
- "react-dom": "^16.8.0 || ^17 || ^18"
89
+ "react-dom": "^16.8.0 || ^17 || ^18",
90
+ "tailwind-merge": "^2.6.0",
91
+ "tailwind-scrollbar": "^3.1.0"
82
92
  },
83
93
  "engines": {
84
94
  "node": ">=18"
@@ -87,6 +97,7 @@
87
97
  "build": "NODE_ENV=production rollup -c",
88
98
  "lint": "eslint . --ext .ts,.tsx,.js,.jsx",
89
99
  "changeset": "changeset",
90
- "release": "changeset publish"
100
+ "release": "changeset publish",
101
+ "format": "prettier --write ."
91
102
  }
92
103
  }
@@ -1 +0,0 @@
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};
@@ -1,5 +0,0 @@
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>>;
@@ -1 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export * from './Button';
@@ -1,5 +0,0 @@
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;
@@ -1 +0,0 @@
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}))};
@@ -1 +0,0 @@
1
- export * from './Container';
@@ -1,2 +0,0 @@
1
- export declare const BLACK = "#000000";
2
- export declare const WHITE = "#ffffff";
@@ -1 +0,0 @@
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};
@@ -1,5 +0,0 @@
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>>;
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- export * from './Button';
@@ -1,5 +0,0 @@
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;
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- export * from './Container';
@@ -1,2 +0,0 @@
1
- export declare const BLACK = "#000000";
2
- export declare const WHITE = "#ffffff";