@startupjs-ui/button 0.2.0-alpha.0 → 0.2.0-alpha.2
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/CHANGELOG.md +19 -0
- package/index.d.ts +3 -3
- package/index.tsx +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0-alpha.2](https://github.com/startupjs/startupjs-ui/compare/v0.2.0-alpha.1...v0.2.0-alpha.2) (2026-04-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **button:** fix 'icon' prop type ([630c472](https://github.com/startupjs/startupjs-ui/commit/630c472344cccf2c118173de496676a5ff4f5926))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.2.0-alpha.1](https://github.com/startupjs/startupjs-ui/compare/v0.2.0-alpha.0...v0.2.0-alpha.1) (2026-04-10)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @startupjs-ui/button
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [0.2.0-alpha.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.22...v0.2.0-alpha.0) (2026-03-27)
|
|
7
26
|
|
|
8
27
|
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// DO NOT MODIFY THIS FILE - IT IS AUTOMATICALLY GENERATED ON COMMITS.
|
|
3
3
|
|
|
4
|
-
import { type
|
|
4
|
+
import { type ReactNode } from 'react';
|
|
5
5
|
import { type GestureResponderEvent, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
6
|
-
declare const _default: ComponentType<ButtonProps>;
|
|
6
|
+
declare const _default: import("react").ComponentType<ButtonProps>;
|
|
7
7
|
export default _default;
|
|
8
8
|
export declare const _PropsJsonSchema: {};
|
|
9
9
|
export interface ButtonProps {
|
|
@@ -14,7 +14,7 @@ export interface ButtonProps {
|
|
|
14
14
|
/** size @default 'm' */
|
|
15
15
|
size?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
16
16
|
/** icon component */
|
|
17
|
-
icon?:
|
|
17
|
+
icon?: object | string | (() => any);
|
|
18
18
|
/** shape @default 'rounded' */
|
|
19
19
|
shape?: 'squared' | 'rounded' | 'circle';
|
|
20
20
|
/** icon position relative to label @default 'left' */
|
package/index.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Children, useState, type
|
|
1
|
+
import { Children, useState, type ReactNode } from 'react'
|
|
2
2
|
import { StyleSheet, type GestureResponderEvent, type StyleProp, type TextStyle, type ViewStyle } from 'react-native'
|
|
3
3
|
import { pug, observer, useIsMountedRef } from 'startupjs'
|
|
4
4
|
import { Colors, colorToRGBA, themed, useColors } from '@startupjs-ui/core'
|
|
@@ -25,7 +25,7 @@ export interface ButtonProps {
|
|
|
25
25
|
/** size @default 'm' */
|
|
26
26
|
size?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'
|
|
27
27
|
/** icon component */
|
|
28
|
-
icon?:
|
|
28
|
+
icon?: object | string | (() => any)
|
|
29
29
|
/** shape @default 'rounded' */
|
|
30
30
|
shape?: 'squared' | 'rounded' | 'circle'
|
|
31
31
|
/** icon position relative to label @default 'left' */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/button",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@startupjs-ui/core": "^0.2.0-alpha.
|
|
12
|
-
"@startupjs-ui/div": "^0.2.0-alpha.
|
|
13
|
-
"@startupjs-ui/icon": "^0.2.0-alpha.
|
|
14
|
-
"@startupjs-ui/loader": "^0.2.0-alpha.
|
|
15
|
-
"@startupjs-ui/span": "^0.2.0-alpha.
|
|
11
|
+
"@startupjs-ui/core": "^0.2.0-alpha.1",
|
|
12
|
+
"@startupjs-ui/div": "^0.2.0-alpha.1",
|
|
13
|
+
"@startupjs-ui/icon": "^0.2.0-alpha.1",
|
|
14
|
+
"@startupjs-ui/loader": "^0.2.0-alpha.1",
|
|
15
|
+
"@startupjs-ui/span": "^0.2.0-alpha.1"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": "*",
|
|
19
19
|
"react-native": "*",
|
|
20
20
|
"startupjs": "*"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "8a6ae7871e4c82f3e24d5911a9df42338e057e7a"
|
|
23
23
|
}
|