@startupjs-ui/button 0.2.0-alpha.1 → 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 CHANGED
@@ -3,6 +3,17 @@
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
+
6
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)
7
18
 
8
19
  **Note:** Version bump only for package @startupjs-ui/button
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 ComponentType, type JSXElementConstructor, type ReactNode } from 'react';
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?: ComponentType | JSXElementConstructor<any>;
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 ComponentType, type JSXElementConstructor, type ReactNode } from 'react'
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?: ComponentType | JSXElementConstructor<any>
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.1",
3
+ "version": "0.2.0-alpha.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -19,5 +19,5 @@
19
19
  "react-native": "*",
20
20
  "startupjs": "*"
21
21
  },
22
- "gitHead": "b48004779559b16c96a2a1995dab13b998eafce9"
22
+ "gitHead": "8a6ae7871e4c82f3e24d5911a9df42338e057e7a"
23
23
  }