boflow-components 1.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 +23 -0
- package/dist/App.d.ts +2 -0
- package/dist/App.js +411 -0
- package/dist/components/Button/Button.d.ts +3 -0
- package/dist/components/Button/Button.js +37 -0
- package/dist/components/Button/button.css +71 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +33 -0
- package/dist/components/Checkbox/checkbox.css +74 -0
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +54 -0
- package/dist/components/Input/input.css +106 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +4 -0
- package/dist/index.css +1948 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/root.d.ts +1 -0
- package/dist/root.js +12 -0
- package/dist/types/Button.d.ts +13 -0
- package/dist/types/Button.js +7 -0
- package/dist/types/Checkbox.d.ts +13 -0
- package/dist/types/Checkbox.js +0 -0
- package/dist/types/Input.d.ts +8 -0
- package/dist/types/Input.js +0 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +2 -0
- package/package.json +49 -0
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/dist/root.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.scss';
|
package/dist/root.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import react from "react";
|
|
3
|
+
import client from "react-dom/client";
|
|
4
|
+
import App from "./App.js";
|
|
5
|
+
import "./index.css";
|
|
6
|
+
const rootEl = document.getElementById('root');
|
|
7
|
+
if (rootEl) {
|
|
8
|
+
const root = client.createRoot(rootEl);
|
|
9
|
+
root.render(/*#__PURE__*/ jsx(react.StrictMode, {
|
|
10
|
+
children: /*#__PURE__*/ jsx(App, {})
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export declare enum ButtonSize {
|
|
3
|
+
Small = "small",
|
|
4
|
+
Medium = "medium",
|
|
5
|
+
Big = "big"
|
|
6
|
+
}
|
|
7
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
+
primary?: boolean;
|
|
9
|
+
size?: ButtonSize;
|
|
10
|
+
label?: string;
|
|
11
|
+
leftIcon?: ReactNode;
|
|
12
|
+
rightIcon?: ReactNode;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
export type CheckboxSize = 'small' | 'medium';
|
|
3
|
+
export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
4
|
+
/**
|
|
5
|
+
* The size of the checkbox
|
|
6
|
+
* @default 'medium'
|
|
7
|
+
*/
|
|
8
|
+
size?: CheckboxSize;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the checkbox is in an indeterminate state
|
|
11
|
+
*/
|
|
12
|
+
indeterminate?: boolean;
|
|
13
|
+
}
|
|
File without changes
|
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "boflow-components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"import": "./dist/index.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "rslib build",
|
|
17
|
+
"build:storybook": "storybook build",
|
|
18
|
+
"check": "biome check --write",
|
|
19
|
+
"dev": "rsbuild dev --open",
|
|
20
|
+
"dev:build": "rslib build --watch",
|
|
21
|
+
"format": "biome format --write",
|
|
22
|
+
"storybook": "storybook dev"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@biomejs/biome": "2.3.14",
|
|
26
|
+
"@rsbuild/core": "^1.7.3",
|
|
27
|
+
"@rsbuild/plugin-react": "^1.4.5",
|
|
28
|
+
"@rsbuild/plugin-sass": "^1.5.0",
|
|
29
|
+
"@rslib/core": "^0.19.6",
|
|
30
|
+
"@storybook/addon-docs": "^10.2.13",
|
|
31
|
+
"@storybook/addon-onboarding": "^10.2.13",
|
|
32
|
+
"@storybook/react": "^10.2.13",
|
|
33
|
+
"@types/react": "^19.2.14",
|
|
34
|
+
"@types/react-dom": "^19.2.3",
|
|
35
|
+
"react": "^19.2.4",
|
|
36
|
+
"storybook": "^10.2.13",
|
|
37
|
+
"storybook-addon-rslib": "^3.3.0",
|
|
38
|
+
"storybook-react-rsbuild": "^3.2.2",
|
|
39
|
+
"typescript": "^5.9.3"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": ">=16.9.0",
|
|
43
|
+
"react-dom": "^19.2.4"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"private": false
|
|
49
|
+
}
|