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,8 +0,0 @@
1
- export * from "./ui/button";
2
- export * from "./ui/select";
3
- export * from "./ui/fields";
4
- export * from "./ui/skeleton";
5
- import "./styles/tailwind.css";
6
- export * from "./lib/index";
7
- export * from "./function";
8
- export * from "./ui/test";
@@ -1,2 +0,0 @@
1
- export * from "./schema";
2
- export * from "./schema-msg";
@@ -1,5 +0,0 @@
1
- declare const PROM_MSG_ERROR: {
2
- EMPTY: string;
3
- INVALID_VALUES: string;
4
- };
5
- export { PROM_MSG_ERROR };
@@ -1,3 +0,0 @@
1
- import z from "zod";
2
- declare const promSchemaPhone: z.ZodString;
3
- export { promSchemaPhone };
@@ -1,2 +0,0 @@
1
- export { cn } from "./utils";
2
- export * from "./form/rules";
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
@@ -1,17 +0,0 @@
1
- import { type VariantProps } from "class-variance-authority";
2
- import * as React from "react";
3
- import { CommonPromComponentProps } from "./types";
4
- declare const buttonVariants: (props?: {
5
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
6
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
7
- } & import("class-variance-authority/dist/types").ClassProp) => string;
8
- declare const skeletonVariants: (props?: {
9
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
10
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
11
- } & import("class-variance-authority/dist/types").ClassProp) => string;
12
- interface PromButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants>, CommonPromComponentProps {
13
- asChild?: boolean;
14
- loadingText?: string;
15
- }
16
- declare function PromButton({ size, variant, children, disabled, className, loadingText, isLoad, asChild, skeleton, ...props }: PromButtonProps): import("react/jsx-runtime").JSX.Element;
17
- export { PromButton, buttonVariants, skeletonVariants };
@@ -1,8 +0,0 @@
1
- import React, { FC } from "react";
2
- import { CommonPromComponentProps, CommonPromStyle } from "../types";
3
- interface PromInputProps extends CommonPromComponentProps, CommonPromStyle, Omit<React.ComponentProps<"input">, "name"> {
4
- name: string;
5
- label?: string;
6
- }
7
- declare const PromInput: FC<PromInputProps>;
8
- export { PromInput };
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import * as SwitchPrimitive from "@radix-ui/react-switch";
3
- interface PromSwitchProps extends React.ComponentProps<typeof SwitchPrimitive.Root> {
4
- name: string;
5
- isLoad?: boolean;
6
- isDisable?: boolean;
7
- }
8
- declare const PromSwitch: React.FC<PromSwitchProps>;
9
- export { PromSwitch };
@@ -1,8 +0,0 @@
1
- import React, { FC } from "react";
2
- import { CommonPromComponentProps, CommonPromStyle } from "../types";
3
- interface PromTextareaProps extends CommonPromComponentProps, CommonPromStyle, Omit<React.ComponentProps<"textarea">, "name"> {
4
- name: string;
5
- label?: string;
6
- }
7
- declare const PromTextarea: FC<PromTextareaProps>;
8
- export { PromTextarea };
@@ -1,35 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { type ControllerProps, type FieldPath, type FieldValues, UseFormReturn } from "react-hook-form";
3
- import { z } from "zod";
4
- import { CommonPromComponentProps } from "./types";
5
- type PromFormRenderProps = {
6
- isValid: boolean;
7
- isSubmitting: boolean;
8
- errors: Record<string, any>;
9
- form: UseFormReturn<z.infer<any>>;
10
- };
11
- interface PromFromProps extends CommonPromComponentProps {
12
- children?: ReactNode;
13
- schema: z.ZodObject<any>;
14
- defaultValues?: z.infer<any>;
15
- onSubmit: (data: z.infer<any>) => void;
16
- render?: (props: PromFormRenderProps) => ReactNode;
17
- errorDisplay?: ReactNode;
18
- }
19
- declare const PromFrom: ({ schema, render, children, onSubmit, defaultValues, }: PromFromProps) => import("react/jsx-runtime").JSX.Element;
20
- declare const usePromForm: <T extends FieldValues>() => {
21
- form: UseFormReturn<T, any, T>;
22
- errors: import("react-hook-form").FieldErrors<T>;
23
- isValid: boolean;
24
- isSubmitting: boolean;
25
- reset: import("react-hook-form").UseFormReset<T>;
26
- watch: import("react-hook-form").UseFormWatch<T>;
27
- control: import("react-hook-form").Control<T, any, T>;
28
- setValue: import("react-hook-form").UseFormSetValue<T>;
29
- register: import("react-hook-form").UseFormRegister<T>;
30
- handleSubmit: import("react-hook-form").UseFormHandleSubmit<T, T>;
31
- };
32
- type PromFormFiledProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = ControllerProps<TFieldValues, TName>;
33
- declare const PromFormFiled: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: PromFormFiledProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
34
- declare const PromMessage: () => import("react/jsx-runtime").JSX.Element;
35
- export { PromFrom, usePromForm, PromMessage, PromFormFiled, type PromFromProps, type PromFormRenderProps, };
@@ -1,6 +0,0 @@
1
- export * from "./ui/button";
2
- export * from "./ui/select";
3
- export * from "./fields";
4
- export * from "./ui/skeleton";
5
- import "./styles/tailwind.css";
6
- export * from "./ui/test";
@@ -1,8 +0,0 @@
1
- import React, { FC } from "react";
2
- import { CommonPromComponentProps, CommonPromStyle } from "./types";
3
- interface PromInputProps extends CommonPromComponentProps, CommonPromStyle, Omit<React.ComponentProps<"input">, "name"> {
4
- name: string;
5
- label?: string;
6
- }
7
- declare const PromInput: FC<PromInputProps>;
8
- export { PromInput };
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- import * as LabelPrimitive from "@radix-ui/react-label";
3
- declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- export { Label };
@@ -1,2 +0,0 @@
1
- export * from "./schema";
2
- export * from "./schema-msg";
@@ -1,5 +0,0 @@
1
- declare const PROM_MSG_ERROR: {
2
- EMPTY: string;
3
- INVALID_VALUES: string;
4
- };
5
- export { PROM_MSG_ERROR };
@@ -1,3 +0,0 @@
1
- import z from "zod";
2
- declare const promSchemaPhone: z.ZodString;
3
- export { promSchemaPhone };
@@ -1,2 +0,0 @@
1
- export { cn } from "./utils";
2
- export * from "./form/rules";
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
@@ -1,8 +0,0 @@
1
- import React, { FC } from "react";
2
- import { CommonPromComponentProps, CommonPromStyle } from "./types";
3
- interface PromTextareaProps extends CommonPromComponentProps, CommonPromStyle, Omit<React.ComponentProps<"textarea">, "name"> {
4
- name: string;
5
- label?: string;
6
- }
7
- declare const PromTextarea: FC<PromTextareaProps>;
8
- export { PromTextarea };
@@ -1,15 +0,0 @@
1
- import * as React from "react";
2
- import * as SelectPrimitive from "@radix-ui/react-select";
3
- declare function PromSelect({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function PromSelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
- declare function PromSelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
- declare function PromSelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
- size?: "sm" | "default";
8
- }): import("react/jsx-runtime").JSX.Element;
9
- declare function PromSelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
- declare function PromSelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
11
- declare function PromSelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
- declare function PromSelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
- declare function PromSelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
- declare function PromSelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
- export { PromSelect, PromSelectContent, PromSelectGroup, PromSelectItem, PromSelectLabel, PromSelectScrollDownButton, PromSelectScrollUpButton, PromSelectSeparator, PromSelectTrigger, PromSelectValue, };
@@ -1,2 +0,0 @@
1
- declare function PromSkeleton({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
2
- export { PromSkeleton };
@@ -1,4 +0,0 @@
1
- import * as SwitchPrimitives from "@radix-ui/react-switch";
2
- import * as React from "react";
3
- declare const PromSwitch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { PromSwitch };
@@ -1 +0,0 @@
1
- export declare function PromTest(): import("react/jsx-runtime").JSX.Element;
File without changes
File without changes
File without changes
File without changes