prom-pal-ui 1.2.6 → 1.2.8

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 (52) hide show
  1. package/build/{ui → components}/cjs/index.js +4607 -4765
  2. package/build/{ui → components}/esm/index.js +4607 -4754
  3. package/build/function/cjs/index.js +0 -14376
  4. package/build/function/esm/index.js +1 -14375
  5. package/build/types/{ui → components/form}/fields/index.d.ts +0 -1
  6. package/build/types/components/form/fields/input.d.ts +8 -0
  7. package/build/types/{ui → components/form}/fields/select-field.d.ts +2 -2
  8. package/build/types/components/form/fields/textarea.d.ts +8 -0
  9. package/build/types/{ui/fields → components/form}/form.d.ts +1 -1
  10. package/build/types/components/form/index.d.ts +3 -0
  11. package/build/types/components/index.d.ts +2 -0
  12. package/build/types/{ui → components}/types.d.ts +2 -2
  13. package/build/types/{ui → components}/ui/button.d.ts +4 -4
  14. package/build/types/components/ui.d.ts +2 -0
  15. package/build/types/function/lib/index.d.ts +0 -1
  16. package/package.json +1 -1
  17. package/build/cjs/index.js +0 -24085
  18. package/build/esm/index.js +0 -24036
  19. package/build/min/index.js +0 -29
  20. package/build/types/index.d.ts +0 -8
  21. package/build/types/lib/form/rules/index.d.ts +0 -2
  22. package/build/types/lib/form/rules/schema-msg.d.ts +0 -5
  23. package/build/types/lib/form/rules/schema.d.ts +0 -3
  24. package/build/types/lib/index.d.ts +0 -2
  25. package/build/types/lib/utils.d.ts +0 -2
  26. package/build/types/ui/button.d.ts +0 -17
  27. package/build/types/ui/fields/input.d.ts +0 -8
  28. package/build/types/ui/fields/switch.d.ts +0 -9
  29. package/build/types/ui/fields/textarea.d.ts +0 -8
  30. package/build/types/ui/form.d.ts +0 -35
  31. package/build/types/ui/index.d.ts +0 -6
  32. package/build/types/ui/input.d.ts +0 -8
  33. package/build/types/ui/label.d.ts +0 -4
  34. package/build/types/ui/lib/form/rules/index.d.ts +0 -2
  35. package/build/types/ui/lib/form/rules/schema-msg.d.ts +0 -5
  36. package/build/types/ui/lib/form/rules/schema.d.ts +0 -3
  37. package/build/types/ui/lib/index.d.ts +0 -2
  38. package/build/types/ui/lib/utils.d.ts +0 -2
  39. package/build/types/ui/textarea.d.ts +0 -8
  40. package/build/types/ui/ui/select.d.ts +0 -15
  41. package/build/types/ui/ui/skeleton.d.ts +0 -2
  42. package/build/types/ui/ui/switch.d.ts +0 -4
  43. package/build/types/ui/ui/test.d.ts +0 -1
  44. /package/build/types/{ui → components/form}/fields/label.d.ts +0 -0
  45. /package/build/types/{ui → components/form}/fields/switch-field.d.ts +0 -0
  46. /package/build/types/{function/lib → components}/form/rules/index.d.ts +0 -0
  47. /package/build/types/{function/lib → components}/form/rules/schema-msg.d.ts +0 -0
  48. /package/build/types/{function/lib → components}/form/rules/schema.d.ts +0 -0
  49. /package/build/types/{ui → components/ui}/select.d.ts +0 -0
  50. /package/build/types/{ui → components/ui}/skeleton.d.ts +0 -0
  51. /package/build/types/{ui → components/ui}/switch.d.ts +0 -0
  52. /package/build/types/{ui → components/ui}/test.d.ts +0 -0
@@ -1,4 +1,3 @@
1
- export * from "./form";
2
1
  export * from "./input";
3
2
  export * from "./label";
4
3
  export * from "./textarea";
@@ -0,0 +1,8 @@
1
+ import React, { FC } from "react";
2
+ import { PromComponentProps, PromStyle } from "../../types";
3
+ interface PromInputProps extends PromComponentProps, PromStyle, Omit<React.ComponentProps<"input">, "name"> {
4
+ name: string;
5
+ label?: string;
6
+ }
7
+ declare const PromInput: FC<PromInputProps>;
8
+ export { PromInput };
@@ -1,10 +1,10 @@
1
1
  import { FC } from "react";
2
- import { CommonPromComponentProps, CommonPromStyle } from "../types";
2
+ import { PromComponentProps, PromStyle } from "../../types";
3
3
  interface PromSelectType {
4
4
  key: string | number;
5
5
  value: string;
6
6
  }
7
- type PromSelectFieldProps = CommonPromStyle & CommonPromComponentProps & {
7
+ type PromSelectFieldProps = PromStyle & PromComponentProps & {
8
8
  name: string;
9
9
  label?: string;
10
10
  placeholder?: string;
@@ -0,0 +1,8 @@
1
+ import React, { FC } from "react";
2
+ import { PromComponentProps, PromStyle } from "../../types";
3
+ interface PromTextareaProps extends PromStyle, PromComponentProps, Omit<React.ComponentProps<"textarea">, "name"> {
4
+ name: string;
5
+ label?: string;
6
+ }
7
+ declare const PromTextarea: FC<PromTextareaProps>;
8
+ export { PromTextarea };
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { type ControllerProps, type FieldPath, type FieldValues, UseFormReturn } from "react-hook-form";
3
3
  import { z } from "zod";
4
- import { CommonPromComponentProps } from "../types";
4
+ import { CommonPromComponentProps } from "prom-pal-ui/build/types/ui/types";
5
5
  interface ExtendedFormMethods<T extends FieldValues = FieldValues> extends UseFormReturn<T> {
6
6
  setServerError: (error: string) => void;
7
7
  getServerError: () => string;
@@ -0,0 +1,3 @@
1
+ export * from "./form";
2
+ export * from "./rules";
3
+ export * from "./fields";
@@ -0,0 +1,2 @@
1
+ export * from "./form";
2
+ export { TestJopaUi, PromTest } from "./ui";
@@ -1,8 +1,8 @@
1
- export interface CommonPromStyle {
1
+ export interface PromStyle {
2
2
  styleTitle?: string;
3
3
  styleWrapper?: string;
4
4
  }
5
- export interface CommonPromComponentProps {
5
+ export interface PromComponentProps {
6
6
  isLoad?: boolean;
7
7
  skeleton?: boolean;
8
8
  }
@@ -1,15 +1,15 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
- import { CommonPromComponentProps } from "../types";
3
+ import { PromComponentProps } from "../types";
4
4
  declare const buttonVariants: (props?: {
5
- variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost";
5
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
6
6
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
7
7
  } & import("class-variance-authority/dist/types").ClassProp) => string;
8
8
  declare const skeletonVariants: (props?: {
9
- variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost";
9
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
10
10
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
11
11
  } & import("class-variance-authority/dist/types").ClassProp) => string;
12
- interface PromButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants>, CommonPromComponentProps {
12
+ interface PromButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants>, PromComponentProps {
13
13
  asChild?: boolean;
14
14
  loadingText?: string;
15
15
  }
@@ -0,0 +1,2 @@
1
+ export declare const TestJopaUi: () => import("react/jsx-runtime").JSX.Element;
2
+ export declare function PromTest(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
1
  export { cn } from "./utils";
2
- export * from "./form/rules";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prom-pal-ui",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/esm/index.js",