tw-react-components 0.0.187 → 0.0.191

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tw-react-components",
3
3
  "description": "A set of React components build with TailwindCSS to make a nice dashboard.",
4
- "version": "0.0.187",
4
+ "version": "0.0.191",
5
5
  "license": "MIT",
6
6
  "homepage": "https://bacali95.github.io/tw-react-components",
7
7
  "type": "module",
@@ -1,3 +1,30 @@
1
- import { type FC } from 'react';
2
- import type { BlockProps } from '../Block';
3
- export declare const Card: FC<BlockProps>;
1
+ import * as React from 'react';
2
+ export type CardProps = React.ComponentProps<'div'> & {
3
+ dataTestId?: string;
4
+ };
5
+ export type CardHeaderProps = React.ComponentProps<'div'> & {
6
+ dataTestId?: string;
7
+ };
8
+ export type CardTitleProps = React.ComponentProps<'div'> & {
9
+ dataTestId?: string;
10
+ };
11
+ export type CardDescriptionProps = React.ComponentProps<'div'> & {
12
+ dataTestId?: string;
13
+ };
14
+ export type CardActionProps = React.ComponentProps<'div'> & {
15
+ dataTestId?: string;
16
+ };
17
+ export type CardContentProps = React.ComponentProps<'div'> & {
18
+ dataTestId?: string;
19
+ };
20
+ export type CardFooterProps = React.ComponentProps<'div'> & {
21
+ dataTestId?: string;
22
+ };
23
+ export declare const Card: (({ className, dataTestId, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element) & {
24
+ Header: ({ className, dataTestId, ...props }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
25
+ Footer: ({ className, dataTestId, ...props }: CardFooterProps) => import("react/jsx-runtime").JSX.Element;
26
+ Title: ({ className, dataTestId, ...props }: CardTitleProps) => import("react/jsx-runtime").JSX.Element;
27
+ Action: ({ className, dataTestId, ...props }: CardActionProps) => import("react/jsx-runtime").JSX.Element;
28
+ Description: ({ className, dataTestId, ...props }: CardDescriptionProps) => import("react/jsx-runtime").JSX.Element;
29
+ Content: ({ className, dataTestId, ...props }: CardContentProps) => import("react/jsx-runtime").JSX.Element;
30
+ };
@@ -19,7 +19,6 @@ export declare const BasicInput: <Type extends InputType>({ className, inputClas
19
19
  export declare const BasicInputExtension: FC<PropsWithChildren<{
20
20
  className?: string;
21
21
  size: Size;
22
- hasErrors?: boolean;
23
22
  disabled?: boolean;
24
23
  dataTestId?: string;
25
24
  onClick?: (event: MouseEvent<HTMLDivElement>) => void;
@@ -8,6 +8,7 @@ export type WithFormProps<Type extends InputType | SelectInputType, Props = Type
8
8
  validate?: Type extends 'number' ? Validate<number, any> : Type extends DateTimeInputType ? Validate<Date, any> : Type extends SelectInputType ? Validate<any, any> : Validate<string, any>;
9
9
  } & Omit<Props, 'pattern' | keyof Omit<ControllerRenderProps, 'disabled' | 'ref'>>;
10
10
  export declare const FormInputs: {
11
+ BasicInput: FC<WithFormProps<InputType, BasicInputProps<InputType>>>;
11
12
  Text: FC<WithFormProps<"text", TextInputProps>>;
12
13
  Email: FC<WithFormProps<"email", EmailInputProps>>;
13
14
  Password: FC<WithFormProps<"password", PasswordInputProps>>;
@@ -1,6 +1,7 @@
1
1
  import type { FC } from 'react';
2
2
  type Props = {
3
3
  className?: string;
4
+ spinnerClassName?: string;
4
5
  fullScreen?: boolean;
5
6
  dataTestId?: string;
6
7
  };
@@ -1,5 +1,5 @@
1
1
  export type Size = 'small' | 'medium';
2
- export type Color = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'fuchsia' | 'purple' | 'pink' | 'rose';
2
+ export type Color = 'primary' | 'secondary' | 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'fuchsia' | 'purple' | 'pink' | 'rose';
3
3
  type NextDepth = {
4
4
  '1': never;
5
5
  '2': '1';