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.
@@ -0,0 +1,3 @@
1
+ import './index.scss';
2
+ export * from './components';
3
+ export * from './types';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import "./index.css";
2
+ export * from "./components/index.js";
3
+ export * from "./types/index.js";
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,7 @@
1
+ var Button_ButtonSize = /*#__PURE__*/ function(ButtonSize) {
2
+ ButtonSize["Small"] = "small";
3
+ ButtonSize["Medium"] = "medium";
4
+ ButtonSize["Big"] = "big";
5
+ return ButtonSize;
6
+ }({});
7
+ export { Button_ButtonSize as ButtonSize };
@@ -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
@@ -0,0 +1,8 @@
1
+ import type { InputHTMLAttributes, ReactNode } from 'react';
2
+ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
3
+ label?: string;
4
+ hint?: string;
5
+ error?: boolean;
6
+ leftIcon?: ReactNode;
7
+ rightIcon?: ReactNode;
8
+ }
File without changes
@@ -0,0 +1,4 @@
1
+ export type { ButtonProps } from './Button';
2
+ export { ButtonSize } from './Button';
3
+ export type { InputProps } from './Input';
4
+ export type { CheckboxProps, CheckboxSize } from './Checkbox';
@@ -0,0 +1,2 @@
1
+ import { ButtonSize } from "./Button.js";
2
+ export { ButtonSize };
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
+ }