@korsolutions/ui 0.0.31 → 0.0.33

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.
Files changed (37) hide show
  1. package/dist/typescript/src/components/avatar/variants/default.d.ts +1 -1
  2. package/dist/typescript/src/components/badge/variants/default.d.ts +1 -1
  3. package/dist/typescript/src/components/badge/variants/secondary.d.ts +1 -1
  4. package/dist/typescript/src/components/button/button.d.ts +1 -1
  5. package/dist/typescript/src/components/button/variants/default.d.ts +1 -1
  6. package/dist/typescript/src/components/button/variants/secondary.d.ts +1 -1
  7. package/dist/typescript/src/components/calendar/calendar.d.ts +1 -1
  8. package/dist/typescript/src/components/calendar/variants/default.d.ts +1 -1
  9. package/dist/typescript/src/components/card/variants/default.d.ts +1 -1
  10. package/dist/typescript/src/components/dropdown-menu/variants/default.d.ts +1 -1
  11. package/dist/typescript/src/components/empty/variants/default.d.ts +1 -1
  12. package/dist/typescript/src/components/field/variants/default.d.ts +1 -1
  13. package/dist/typescript/src/components/input/input.d.ts +2 -3
  14. package/dist/typescript/src/components/input/input.d.ts.map +1 -1
  15. package/dist/typescript/src/components/input/numeric-input.d.ts +2 -2
  16. package/dist/typescript/src/components/input/variants/default.d.ts +1 -1
  17. package/dist/typescript/src/components/popover/popover.d.ts +1 -1
  18. package/dist/typescript/src/components/popover/variants/default.d.ts +1 -1
  19. package/dist/typescript/src/components/popover/variants/unstyled.d.ts +1 -1
  20. package/dist/typescript/src/components/select/select.d.ts +1 -1
  21. package/dist/typescript/src/components/select/variants/default.d.ts +1 -1
  22. package/dist/typescript/src/components/textarea/textarea.d.ts +2 -3
  23. package/dist/typescript/src/components/textarea/textarea.d.ts.map +1 -1
  24. package/dist/typescript/src/components/textarea/variants/default.d.ts +1 -1
  25. package/dist/typescript/src/components/toast/variants/danger.d.ts +1 -1
  26. package/dist/typescript/src/components/toast/variants/default.d.ts +1 -1
  27. package/dist/typescript/src/components/toast/variants/success.d.ts +1 -1
  28. package/dist/typescript/src/primitives/dropdown-menu/context.d.ts +1 -1
  29. package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-trigger.d.ts +1 -1
  30. package/dist/typescript/src/primitives/input/input.d.ts +1 -1
  31. package/dist/typescript/src/primitives/popover/context.d.ts +1 -1
  32. package/dist/typescript/src/primitives/popover/popover-trigger.d.ts +1 -1
  33. package/dist/typescript/src/utils/use-themed-styles.d.ts +1 -1
  34. package/package.json +3 -2
  35. package/scripts/build.sh +2 -0
  36. package/src/components/input/input.tsx +1 -1
  37. package/src/components/textarea/textarea.tsx +1 -1
@@ -1,3 +1,3 @@
1
- import type { AvatarStyles } from "@/primitives";
1
+ import type { AvatarStyles } from "../../../primitives";
2
2
  export declare function useAvatarVariantDefault(): AvatarStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { BadgeStyles } from "@/primitives";
1
+ import type { BadgeStyles } from "../../../primitives";
2
2
  export declare const useBadgeVariantDefault: () => BadgeStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type BadgeStyles } from "@/primitives";
1
+ import { type BadgeStyles } from "../../../primitives";
2
2
  export declare const useBadgeVariantSecondary: () => BadgeStyles;
3
3
  //# sourceMappingURL=secondary.d.ts.map
@@ -1,4 +1,4 @@
1
- import { type ButtonPrimitiveRootProps } from "@/primitives";
1
+ import { type ButtonPrimitiveRootProps } from "../../primitives";
2
2
  import React from "react";
3
3
  import { ButtonVariants } from "./variants";
4
4
  interface ButtonProps {
@@ -1,3 +1,3 @@
1
- import { type ButtonStyles } from "@/primitives";
1
+ import { type ButtonStyles } from "../../../primitives";
2
2
  export declare const useButtonVariantDefault: () => ButtonStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type ButtonStyles } from "@/primitives";
1
+ import { type ButtonStyles } from "../../../primitives";
2
2
  export declare const useButtonVariantSecondary: () => ButtonStyles;
3
3
  //# sourceMappingURL=secondary.d.ts.map
@@ -1,4 +1,4 @@
1
- import { type CalendarRootProps } from "@/primitives";
1
+ import { type CalendarRootProps } from "../../primitives";
2
2
  import React from "react";
3
3
  import { CalendarVariants } from "./variants";
4
4
  export interface CalendarProps {
@@ -1,3 +1,3 @@
1
- import { type CalendarStyles } from "@/primitives";
1
+ import { type CalendarStyles } from "../../../primitives";
2
2
  export declare const useCalendarVariantDefault: () => CalendarStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type CardStyles } from "@/primitives";
1
+ import { type CardStyles } from "../../../primitives";
2
2
  export declare function useCardVariantDefault(): CardStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type DropdownMenuStyles } from "@/primitives";
1
+ import { type DropdownMenuStyles } from "../../../primitives";
2
2
  export declare const useDropdownMenuVariantDefault: () => DropdownMenuStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type EmptyStyles } from "@/primitives";
1
+ import { type EmptyStyles } from "../../../primitives";
2
2
  export declare function useEmptyVariantDefault(): EmptyStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type FieldStyles } from "@/primitives";
1
+ import { type FieldStyles } from "../../../primitives";
2
2
  export declare const useFieldVariantDefault: () => FieldStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,9 +1,8 @@
1
- import { type InputPrimitiveBaseProps } from "@/primitives";
1
+ import { type InputPrimitiveBaseProps } from "../../primitives";
2
2
  import React from "react";
3
3
  import { InputVariants } from "./variants";
4
- interface InputProps extends InputPrimitiveBaseProps {
4
+ export interface InputProps extends InputPrimitiveBaseProps {
5
5
  variant?: keyof typeof InputVariants;
6
6
  }
7
7
  export declare function Input(props: InputProps): React.JSX.Element;
8
- export {};
9
8
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,UAAU,UAAW,SAAQ,uBAAuB;IAClD,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;CACtC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,qBAKtC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,UAAW,SAAQ,uBAAuB;IACzD,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;CACtC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,qBAKtC"}
@@ -1,5 +1,5 @@
1
- import { type NumericMaskFormat } from "@/hooks/use-numeric-mask";
2
- import { type InputPrimitiveBaseProps } from "@/primitives";
1
+ import { type NumericMaskFormat } from "../../hooks/use-numeric-mask";
2
+ import { type InputPrimitiveBaseProps } from "../../primitives";
3
3
  import React from "react";
4
4
  export interface NumericInputProps extends Omit<InputPrimitiveBaseProps, "value" | "onChange" | "keyboardType"> {
5
5
  variant?: "default";
@@ -1,3 +1,3 @@
1
- import { type InputStyles } from "@/primitives";
1
+ import { type InputStyles } from "../../../primitives";
2
2
  export declare function useInputVariantDefault(): InputStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { PopoverTriggerRef } from "@/primitives";
1
+ import type { PopoverTriggerRef } from "../../primitives";
2
2
  import React from "react";
3
3
  import { type PressableProps } from "react-native";
4
4
  import { PopoverVariants } from "./variants";
@@ -1,3 +1,3 @@
1
- import { type PopoverStyles } from "@/primitives/popover/types";
1
+ import { type PopoverStyles } from "../../../primitives/popover/types";
2
2
  export declare const usePopoverVariantDefault: () => PopoverStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type PopoverStyles } from "@/primitives/popover/types";
1
+ import { type PopoverStyles } from "../../../primitives/popover/types";
2
2
  export declare const usePopoverVariantUnstyled: () => PopoverStyles;
3
3
  //# sourceMappingURL=unstyled.d.ts.map
@@ -1,4 +1,4 @@
1
- import { type SelectRootBaseProps } from "@/primitives";
1
+ import { type SelectRootBaseProps } from "../../primitives";
2
2
  import React from "react";
3
3
  import { SelectVariants } from "./variants";
4
4
  export interface SelectOption<T> {
@@ -1,3 +1,3 @@
1
- import { type SelectStyles } from "@/primitives";
1
+ import { type SelectStyles } from "../../../primitives";
2
2
  export declare function useSelectVariantDefault(): SelectStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,9 +1,8 @@
1
- import { type TextareaPrimitiveBaseProps } from "@/primitives";
1
+ import { type TextareaPrimitiveBaseProps } from "../../primitives";
2
2
  import React from "react";
3
3
  import { TextareaVariants } from "./variants";
4
- interface TextareaProps extends TextareaPrimitiveBaseProps {
4
+ export interface TextareaProps extends TextareaPrimitiveBaseProps {
5
5
  variant?: keyof typeof TextareaVariants;
6
6
  }
7
7
  export declare function Textarea(props: TextareaProps): React.JSX.Element;
8
- export {};
9
8
  //# sourceMappingURL=textarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../../src/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,UAAU,aAAc,SAAQ,0BAA0B;IACxD,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;CACzC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,qBAK5C"}
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../../src/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,WAAW,aAAc,SAAQ,0BAA0B;IAC/D,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;CACzC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,qBAK5C"}
@@ -1,3 +1,3 @@
1
- import { type TextareaStyles } from "@/primitives";
1
+ import { type TextareaStyles } from "../../../primitives";
2
2
  export declare function useTextareaVariantDefault(): TextareaStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type ToastStyles } from "@/primitives";
1
+ import { type ToastStyles } from "../../../primitives";
2
2
  export declare const useToastVariantDanger: () => ToastStyles;
3
3
  //# sourceMappingURL=danger.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type ToastStyles } from "@/primitives";
1
+ import { type ToastStyles } from "../../../primitives";
2
2
  export declare const useToastVariantDefault: () => ToastStyles;
3
3
  //# sourceMappingURL=default.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type ToastStyles } from "@/primitives";
1
+ import { type ToastStyles } from "../../../primitives";
2
2
  export declare const useToastVariantSuccess: () => ToastStyles;
3
3
  //# sourceMappingURL=success.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { LayoutPosition } from "@/hooks/use-relative-position";
1
+ import type { LayoutPosition } from "../../hooks/use-relative-position";
2
2
  import { type Dispatch } from "react";
3
3
  import type { LayoutRectangle } from "react-native";
4
4
  import type { DropdownMenuStyles } from "./types";
@@ -1,4 +1,4 @@
1
- import type { ViewRef } from "@/types/element.types";
1
+ import type { ViewRef } from "../../types/element.types";
2
2
  import React from "react";
3
3
  import { type PressableProps } from "react-native";
4
4
  export interface DropdownMenuTriggerProps extends PressableProps {
@@ -1,4 +1,4 @@
1
- import type { TextInputRef } from "@/types/element.types";
1
+ import type { TextInputRef } from "../../types/element.types";
2
2
  import { type TextInputProps } from "react-native";
3
3
  import type { InputStyles } from "./types";
4
4
  export type InputPrimitiveBaseProps = Omit<TextInputProps, "onChange"> & {
@@ -1,4 +1,4 @@
1
- import type { LayoutPosition } from "@/hooks/use-relative-position";
1
+ import type { LayoutPosition } from "../../hooks/use-relative-position";
2
2
  import { type Dispatch } from "react";
3
3
  import type { LayoutRectangle } from "react-native";
4
4
  import type { PopoverStyles } from "./types";
@@ -1,4 +1,4 @@
1
- import type { ViewRef } from "@/types/element.types";
1
+ import type { ViewRef } from "../../types/element.types";
2
2
  import React from "react";
3
3
  import { type PressableProps } from "react-native";
4
4
  export interface PopoverTriggerProps extends PressableProps {
@@ -1,4 +1,4 @@
1
- import type { Colors, FontFamily, FontSize, LetterSpacing, Radius } from "@/themes/types";
1
+ import type { Colors, FontFamily, FontSize, LetterSpacing, Radius } from "../themes/types";
2
2
  interface CallbackProps {
3
3
  colors: Colors;
4
4
  radius: Radius;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@korsolutions/ui",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,8 @@
39
39
  "@types/react": "^19.2.3",
40
40
  "@types/react-dom": "^19.2.3",
41
41
  "babel-plugin-module-resolver": "^5.0.2",
42
- "react-native-builder-bob": "^0.40.17"
42
+ "react-native-builder-bob": "^0.40.17",
43
+ "tsc-alias": "^1.8.16"
43
44
  },
44
45
  "peerDependencies": {
45
46
  "react": "*",
@@ -0,0 +1,2 @@
1
+ bob build
2
+ tsc-alias -p tsconfig.json --outDir dist/typescript
@@ -2,7 +2,7 @@ import { InputPrimitive, type InputPrimitiveBaseProps } from "@/primitives";
2
2
  import React from "react";
3
3
  import { InputVariants } from "./variants";
4
4
 
5
- interface InputProps extends InputPrimitiveBaseProps {
5
+ export interface InputProps extends InputPrimitiveBaseProps {
6
6
  variant?: keyof typeof InputVariants;
7
7
  }
8
8
 
@@ -2,7 +2,7 @@ import { TextareaPrimitive, type TextareaPrimitiveBaseProps } from "@/primitives
2
2
  import React from "react";
3
3
  import { TextareaVariants } from "./variants";
4
4
 
5
- interface TextareaProps extends TextareaPrimitiveBaseProps {
5
+ export interface TextareaProps extends TextareaPrimitiveBaseProps {
6
6
  variant?: keyof typeof TextareaVariants;
7
7
  }
8
8