@developer_tribe/react-builder 1.2.10 → 1.2.11
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 +3 -3
- package/dist/components/Checkbox.d.ts +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +39 -7
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.web.cjs.js +31 -0
- package/dist/index.web.cjs.js.map +1 -0
- package/dist/index.web.d.ts +3 -0
- package/dist/index.web.esm.js +31 -0
- package/dist/index.web.esm.js.map +1 -0
- package/package.json +7 -13
- package/src/assets/meta.json +1 -1
- package/src/index.ts +89 -9
- package/src/index.web.ts +7 -0
- package/dist/index.native.cjs.js +0 -31
- package/dist/index.native.cjs.js.map +0 -1
- package/dist/index.native.d.ts +0 -40
- package/dist/index.native.esm.js +0 -31
- package/dist/index.native.esm.js.map +0 -1
- package/src/index.native.ts +0 -92
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ A minimal TypeScript library starter using Rollup, ESLint (flat), and Prettier.
|
|
|
4
4
|
|
|
5
5
|
### React Native support (no `react-dom`)
|
|
6
6
|
|
|
7
|
-
- **Web**: import from `@developer_tribe/react-builder`
|
|
8
|
-
- **React Native**: import from `@developer_tribe/react-builder
|
|
7
|
+
- **Web**: import from `@developer_tribe/react-builder/web`
|
|
8
|
+
- **React Native**: import from `@developer_tribe/react-builder` (Metro will prefer the `react-native` export condition)
|
|
9
9
|
|
|
10
10
|
### Scripts
|
|
11
11
|
|
|
@@ -27,7 +27,7 @@ npm run build
|
|
|
27
27
|
```
|
|
28
28
|
src/
|
|
29
29
|
index.ts
|
|
30
|
-
index.
|
|
30
|
+
index.web.ts
|
|
31
31
|
rollup.config.mjs
|
|
32
32
|
eslint.config.mjs
|
|
33
33
|
tsconfig.json
|
|
@@ -7,7 +7,7 @@ export type CheckboxProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 't
|
|
|
7
7
|
inputClassName?: string;
|
|
8
8
|
onChange?: CheckboxChangeHandler;
|
|
9
9
|
};
|
|
10
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
10
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "className"> & {
|
|
11
11
|
label?: React.ReactNode;
|
|
12
12
|
helperText?: React.ReactNode;
|
|
13
13
|
className?: string;
|