@korsolutions/ui 0.0.83 → 0.0.84

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.
@@ -13,7 +13,7 @@ export function useTextVariantHeadingLg() {
13
13
  fontFamily,
14
14
  letterSpacing,
15
15
  fontWeight: "600",
16
- lineHeight: fontSize * 1.2
16
+ lineHeight: fontSize * 1.75
17
17
  }));
18
18
  }
19
19
  //# sourceMappingURL=heading-lg.js.map
@@ -13,7 +13,7 @@ export function useTextVariantHeadingMd() {
13
13
  fontFamily,
14
14
  letterSpacing,
15
15
  fontWeight: "600",
16
- lineHeight: fontSize * 1.2
16
+ lineHeight: fontSize * 1.5
17
17
  }));
18
18
  }
19
19
  //# sourceMappingURL=heading-md.js.map
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { type PressableProps, type StyleProp, type ViewStyle } from "react-native";
3
3
  import { ButtonVariants } from "./variants";
4
- export interface ButtonProps extends PressableProps {
4
+ export interface ButtonProps extends Omit<PressableProps, "disabled"> {
5
5
  variant?: keyof typeof ButtonVariants;
6
6
  children?: React.ReactNode;
7
7
  isDisabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAYD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBAmDxC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACnE,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAYD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBAmDxC"}
@@ -1,7 +1,7 @@
1
1
  import { type TextInputProps } from "react-native";
2
2
  import type { TextInputRef } from "../../types/element.types";
3
3
  import { InputVariants } from "./variants";
4
- export type InputProps = Omit<TextInputProps, "onChange"> & {
4
+ export type InputProps = Omit<TextInputProps, "onChange" | "onChangeText"> & {
5
5
  variant?: keyof typeof InputVariants;
6
6
  ref?: React.Ref<TextInputRef>;
7
7
  onChange?: TextInputProps["onChangeText"];
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG;IAC1D,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;IAErC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAYF,eAAO,MAAM,KAAK,kHAoChB,CAAC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,cAAc,CAAC,GAAG;IAC3E,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;IAErC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAYF,eAAO,MAAM,KAAK,kHAoChB,CAAC"}
@@ -9,7 +9,8 @@ export type TextInputRef = HostInstance & {
9
9
  getNativeRef: () => HostInstance;
10
10
  setSelection: (start: number, end?: number) => void;
11
11
  };
12
- export type TextChildren = string | number | boolean | null | undefined | string[];
12
+ export type TextChild = string | number | bigint | boolean | null | undefined;
13
+ export type TextChildren = TextChild | TextChild[];
13
14
  export type ElementChildren = React.ReactElement | React.ReactElement[];
14
15
  export type IconComponent = (props: SvgProps) => React.ReactElement;
15
16
  //# sourceMappingURL=element.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"element.types.d.ts","sourceRoot":"","sources":["../../../../src/types/element.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,OAAO,GAAG,YAAY,CAAC;AACnC,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG;IACxC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,YAAY,CAAC;IACjC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,GACT,MAAM,EAAE,CAAC;AACb,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,KAAK,CAAC,YAAY,CAAC"}
1
+ {"version":3,"file":"element.types.d.ts","sourceRoot":"","sources":["../../../../src/types/element.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,OAAO,GAAG,YAAY,CAAC;AACnC,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG;IACxC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,YAAY,CAAC;IACjC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAC9E,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,EAAE,CAAC;AACnD,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,KAAK,CAAC,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@korsolutions/ui",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@ import { useOrganizedChildren } from "../../hooks/use-organized-children";
11
11
  import type { ButtonState } from "./types";
12
12
  import { ButtonVariants } from "./variants";
13
13
 
14
- export interface ButtonProps extends PressableProps {
14
+ export interface ButtonProps extends Omit<PressableProps, "disabled"> {
15
15
  variant?: keyof typeof ButtonVariants;
16
16
  children?: React.ReactNode;
17
17
 
@@ -5,7 +5,7 @@ import { useFieldOptional } from "../field/context";
5
5
  import type { InputState } from "./types";
6
6
  import { InputVariants } from "./variants";
7
7
 
8
- export type InputProps = Omit<TextInputProps, "onChange"> & {
8
+ export type InputProps = Omit<TextInputProps, "onChange" | "onChangeText"> & {
9
9
  variant?: keyof typeof InputVariants;
10
10
 
11
11
  ref?: React.Ref<TextInputRef>;
@@ -9,7 +9,7 @@ export function useTextVariantHeadingLg(): TextStyle {
9
9
  fontFamily,
10
10
  letterSpacing,
11
11
  fontWeight: "600",
12
- lineHeight: fontSize * 1.2,
12
+ lineHeight: fontSize * 1.75,
13
13
  }),
14
14
  );
15
15
  }
@@ -9,7 +9,7 @@ export function useTextVariantHeadingMd(): TextStyle {
9
9
  fontFamily,
10
10
  letterSpacing,
11
11
  fontWeight: "600",
12
- lineHeight: fontSize * 1.2,
12
+ lineHeight: fontSize * 1.5,
13
13
  }),
14
14
  );
15
15
  }
@@ -11,13 +11,8 @@ export type TextInputRef = HostInstance & {
11
11
  setSelection: (start: number, end?: number) => void;
12
12
  };
13
13
 
14
- export type TextChildren =
15
- | string
16
- | number
17
- | boolean
18
- | null
19
- | undefined
20
- | string[];
14
+ export type TextChild = string | number | bigint | boolean | null | undefined;
15
+ export type TextChildren = TextChild | TextChild[];
21
16
  export type ElementChildren = React.ReactElement | React.ReactElement[];
22
17
 
23
18
  export type IconComponent = (props: SvgProps) => React.ReactElement;