@e-burgos/tucu-ui 1.0.0 → 1.1.1

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 (133) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/README.md +2 -2
  3. package/components/common/index.d.ts +0 -1
  4. package/components/dialog/drawer.d.ts +1 -1
  5. package/components/dialog/modal.d.ts +2 -0
  6. package/components/dialog/sidebar-menu.d.ts +1 -1
  7. package/components/forms/example/index.d.ts +4 -0
  8. package/components/forms/index.d.ts +5 -17
  9. package/components/forms/types/extend-react-hook-form.type.d.ts +19 -0
  10. package/components/forms/types/validations.type.d.ts +8 -0
  11. package/components/icons/chevron-left.d.ts +1 -0
  12. package/components/icons/index.d.ts +1 -0
  13. package/components/index.d.ts +2 -1
  14. package/components/inputs/checkbox.d.ts +42 -0
  15. package/components/inputs/helpers/field-error-text.d.ts +19 -0
  16. package/components/inputs/helpers/field-helper-text.d.ts +18 -0
  17. package/components/inputs/index.d.ts +15 -0
  18. package/components/inputs/input-searcher.d.ts +13 -0
  19. package/components/inputs/input.d.ts +22 -0
  20. package/components/inputs/pin-code.d.ts +97 -0
  21. package/components/inputs/radio.d.ts +84 -0
  22. package/components/inputs/select.d.ts +26 -0
  23. package/components/inputs/switch.d.ts +15 -0
  24. package/components/inputs/textarea.d.ts +16 -0
  25. package/components/layouts/{classic/layout.d.ts → admin-layout/index.d.ts} +4 -4
  26. package/components/layouts/{authentication/layout.d.ts → clean-layout/index.d.ts} +2 -2
  27. package/components/layouts/header/admin-header.d.ts +8 -0
  28. package/components/layouts/header/admin-right-area.d.ts +3 -0
  29. package/components/layouts/header/header.d.ts +1 -8
  30. package/components/layouts/header/horizontal-header.d.ts +10 -0
  31. package/components/layouts/header/horizontal-right-area.d.ts +9 -0
  32. package/components/layouts/horizontal/index.d.ts +16 -0
  33. package/components/layouts/menus/collapsible-menu.d.ts +2 -2
  34. package/components/layouts/menus/expandable-sidebar.d.ts +1 -1
  35. package/components/layouts/menus/horizontal-nav-menu.d.ts +5 -0
  36. package/components/{common → layouts/menus}/menu-item.d.ts +5 -3
  37. package/components/layouts/root-layout.d.ts +2 -2
  38. package/components/legacy/forms/form-system/example/error-container-example.d.ts +3 -0
  39. package/components/legacy/forms/form-system/example/form-example.d.ts +3 -0
  40. package/components/legacy/forms/form-system/example/form-methods-example.d.ts +3 -0
  41. package/components/legacy/forms/form-system/example/validations.d.ts +14 -0
  42. package/components/legacy/forms/form-system/form-field.d.ts +14 -0
  43. package/components/legacy/forms/form-system/form.d.ts +13 -0
  44. package/components/legacy/forms/form-system/hook-form.d.ts +3 -0
  45. package/components/legacy/forms/form-system/types/dependencies.type.d.ts +11 -0
  46. package/components/legacy/forms/form-system/types/index.d.ts +3 -0
  47. package/components/legacy/forms/input-label.d.ts +9 -0
  48. package/components/legacy/forms/input-searcher.d.ts +11 -0
  49. package/components/{forms → legacy/forms}/input.d.ts +2 -0
  50. package/components/{forms → legacy/forms}/pin-code.d.ts +3 -5
  51. package/components/legacy/forms/radio-group.d.ts +56 -0
  52. package/components/{forms → legacy/forms}/radio.d.ts +2 -5
  53. package/components/links/active-link.d.ts +2 -1
  54. package/components/logos/AppLogo.d.ts +1 -0
  55. package/components/logos/index.d.ts +5 -1
  56. package/components/logos/logo-dark.d.ts +1 -0
  57. package/components/logos/logo-icon.d.ts +5 -0
  58. package/components/logos/logo-iso-dark.d.ts +1 -0
  59. package/components/logos/logo-iso-light.d.ts +1 -0
  60. package/components/logos/logo-light.d.ts +1 -0
  61. package/components/logos/logo.d.ts +3 -2
  62. package/components/typography/index.d.ts +26 -1
  63. package/demo/components/hero-card.d.ts +20 -0
  64. package/demo/components/index.d.ts +1 -0
  65. package/demo/index.d.ts +2 -0
  66. package/demo/utils/constants.d.ts +12 -0
  67. package/demo/utils/index.d.ts +1 -0
  68. package/index.css +1 -1
  69. package/index.d.ts +2 -1
  70. package/index.js +99 -53
  71. package/index.mjs +39377 -37968
  72. package/package.json +6 -5
  73. package/themes/auth/components/auth-provider.d.ts +5 -0
  74. package/themes/auth/components/index.d.ts +1 -0
  75. package/themes/auth/index.d.ts +1 -0
  76. package/themes/components/index.d.ts +2 -0
  77. package/themes/components/settings/index.d.ts +4 -0
  78. package/themes/components/settings/lang-selector.d.ts +6 -0
  79. package/themes/components/settings/switch-mode.d.ts +6 -0
  80. package/themes/components/theme-provider/index.d.ts +4 -23
  81. package/themes/components/theme-provider/mfe-app-theme-provider.d.ts +8 -0
  82. package/themes/components/theme-provider/single-app-theme-provider.d.ts +8 -0
  83. package/themes/components/theme-provider/theme-wrapper.d.ts +30 -0
  84. package/themes/config/index.d.ts +109 -0
  85. package/themes/hooks/index.d.ts +3 -0
  86. package/themes/hooks/use-theme-color.d.ts +17 -0
  87. package/themes/{use-theme.d.ts → hooks/use-theme.d.ts} +51 -21
  88. package/themes/index.d.ts +6 -8
  89. package/themes/pages/fallback-page.d.ts +8 -0
  90. package/themes/pages/index.d.ts +2 -0
  91. package/themes/pages/not-found.d.ts +5 -0
  92. package/themes/router/components/index.d.ts +2 -0
  93. package/themes/router/components/mfe-app-routes-provider.d.ts +14 -0
  94. package/themes/router/components/single-app-routes-provider.d.ts +17 -0
  95. package/themes/router/hooks/index.d.ts +1 -0
  96. package/themes/router/hooks/use-public-error-routes-config.d.ts +6 -0
  97. package/themes/router/index.d.ts +2 -0
  98. package/themes/types/index.d.ts +15 -0
  99. package/components/forms/input-searcher.d.ts +0 -7
  100. package/components/layouts/menus/minimal-nav-menu.d.ts +0 -5
  101. package/components/layouts/minimal/layout.d.ts +0 -24
  102. package/components/logos/logo-theme.d.ts +0 -5
  103. package/themes/components/pages/not-found.d.ts +0 -2
  104. package/themes/components/theme-provider/app-routes.d.ts +0 -17
  105. package/themes/config.d.ts +0 -106
  106. package/themes/use-theme-color.d.ts +0 -10
  107. /package/components/forms/{form-system/example → example}/error-container-example.d.ts +0 -0
  108. /package/components/forms/{form-system/example → example}/form-example.d.ts +0 -0
  109. /package/components/forms/{form-system/example → example}/form-methods-example.d.ts +0 -0
  110. /package/components/forms/{form-system/example → example}/validations.d.ts +0 -0
  111. /package/components/forms/{form-system/form-field.d.ts → form-field.d.ts} +0 -0
  112. /package/components/forms/{form-system/form.d.ts → form.d.ts} +0 -0
  113. /package/components/forms/{form-system/hook-form.d.ts → hook-form.d.ts} +0 -0
  114. /package/components/forms/{form-system/types → types}/dependencies.type.d.ts +0 -0
  115. /package/components/forms/{form-system/types → types}/index.d.ts +0 -0
  116. /package/components/{forms → inputs/helpers}/input-label.d.ts +0 -0
  117. /package/components/{forms → inputs}/radio-group.d.ts +0 -0
  118. /package/components/{forms → inputs}/toggle-bar.d.ts +0 -0
  119. /package/components/{forms → inputs}/uploader-two.d.ts +0 -0
  120. /package/components/{forms → inputs}/uploader.d.ts +0 -0
  121. /package/components/{forms → legacy/forms}/checkbox.d.ts +0 -0
  122. /package/components/{forms → legacy/forms}/field-error-text.d.ts +0 -0
  123. /package/components/{forms → legacy/forms}/field-helper-text.d.ts +0 -0
  124. /package/components/{forms → legacy/forms}/file-input.d.ts +0 -0
  125. /package/components/{forms → legacy/forms}/form-system/index.d.ts +0 -0
  126. /package/components/{forms → legacy/forms}/form-system/types/extend-react-hook-form.type.d.ts +0 -0
  127. /package/components/{forms → legacy/forms}/form-system/types/validations.type.d.ts +0 -0
  128. /package/components/{forms → legacy/forms}/input-select.d.ts +0 -0
  129. /package/components/{forms → legacy/forms}/input-switch.d.ts +0 -0
  130. /package/components/{forms → legacy/forms}/textarea.d.ts +0 -0
  131. /package/themes/components/{theme-provider → settings}/settings-button.d.ts +0 -0
  132. /package/themes/components/{theme-provider → settings}/settings-drawer.d.ts +0 -0
  133. /package/themes/{use-direction.d.ts → hooks/use-direction.d.ts} +0 -0
@@ -0,0 +1,8 @@
1
+ import { LogoPropTypes } from '../../logos/logo';
2
+ export declare function AdminHeader({ className, logo, rightButton, isOpen, setIsOpen, }: {
3
+ className?: string;
4
+ logo?: LogoPropTypes;
5
+ rightButton?: React.ReactNode;
6
+ isOpen?: boolean;
7
+ setIsOpen?: (isOpen: boolean) => void;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function AdminRightArea({ rightButton, }: {
2
+ rightButton?: React.ReactNode;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,5 @@
1
1
  import { LogoPropTypes } from '../../logos/logo';
2
- export declare function ClassicHeader({ className, logo, rightButton, isOpen, setIsOpen, }: {
3
- className?: string;
4
- logo?: LogoPropTypes;
5
- rightButton?: React.ReactNode;
6
- isOpen?: boolean;
7
- setIsOpen?: (isOpen: boolean) => void;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export default function Header({ logo, searchButton, isOpen, setIsOpen, className, rightButton, }: {
2
+ export declare function Header({ logo, searchButton, isOpen, setIsOpen, className, rightButton, }: {
10
3
  logo?: LogoPropTypes;
11
4
  searchButton?: React.ReactNode;
12
5
  isOpen?: boolean;
@@ -0,0 +1,10 @@
1
+ import { LogoPropTypes } from '../../logos/logo';
2
+ import { IMenuItem } from '../menus/menu-item';
3
+ export declare function HorizontalHeader({ className, menuItems, rightButton, logo, isOpen, setIsOpen, }: {
4
+ className?: string;
5
+ menuItems: IMenuItem[];
6
+ rightButton?: React.ReactNode;
7
+ logo?: LogoPropTypes;
8
+ isOpen: boolean;
9
+ setIsOpen: (isOpen: boolean) => void;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { LogoPropTypes } from '../../logos/logo';
2
+ import { IMenuItem } from '../menus/menu-item';
3
+ export declare function HorizontalRightArea({ rightButton, menuItems, isOpen, setIsOpen, logo, }: {
4
+ rightButton?: React.ReactNode;
5
+ menuItems: IMenuItem[];
6
+ isOpen: boolean;
7
+ setIsOpen: (isOpen: boolean) => void;
8
+ logo?: LogoPropTypes;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { LogoPropTypes } from '../../logos/logo';
2
+ import { IMenuItem } from '../menus/menu-item';
3
+ interface HorizontalLayoutProps {
4
+ children: React.ReactNode;
5
+ menuItems: IMenuItem[];
6
+ rightButton?: React.ReactNode;
7
+ logo?: LogoPropTypes;
8
+ className?: string;
9
+ isOpen: boolean;
10
+ fullWidth?: boolean;
11
+ headerClassName?: string;
12
+ contentClassName?: string;
13
+ setIsOpen: (isOpen: boolean) => void;
14
+ }
15
+ export declare function HorizontalLayout({ children, menuItems, rightButton, logo, className, isOpen, fullWidth, headerClassName, contentClassName, setIsOpen, }: HorizontalLayoutProps): import("react/jsx-runtime").JSX.Element;
16
+ export default HorizontalLayout;
@@ -1,3 +1,3 @@
1
- import { IMenuItem } from '../../common/menu-item';
2
- export declare function CollapsibleMenu({ name, icon, href, dropdownItems, isActive, onClick, }: IMenuItem): import("react/jsx-runtime").JSX.Element;
1
+ import { IMenuItem } from './menu-item';
2
+ export declare function CollapsibleMenu({ name, icon, href, path, dropdownItems, isActive, onClick, }: IMenuItem): import("react/jsx-runtime").JSX.Element;
3
3
  export default CollapsibleMenu;
@@ -1,5 +1,5 @@
1
1
  import { LogoPropTypes } from '../../logos/logo';
2
- import { IMenuItem } from '../../common/menu-item';
2
+ import { IMenuItem } from '../menus/menu-item';
3
3
  export declare function ExpandableSidebar({ logo, className, menuItems, }: {
4
4
  logo?: LogoPropTypes;
5
5
  className?: string;
@@ -0,0 +1,5 @@
1
+ import { IMenuItem } from './menu-item';
2
+ export declare function HorizontalNavMenu({ menuItems }: {
3
+ menuItems: IMenuItem[];
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default HorizontalNavMenu;
@@ -1,7 +1,8 @@
1
1
  export type DropdownItemProps = {
2
2
  name: string;
3
3
  icon?: React.ReactNode;
4
- href: string;
4
+ path: string;
5
+ href?: string;
5
6
  dropdownItems?: DropdownItemProps[];
6
7
  isActive?: boolean;
7
8
  hide?: boolean;
@@ -10,12 +11,13 @@ export type DropdownItemProps = {
10
11
  export type IMenuItem = {
11
12
  name: string;
12
13
  icon?: React.ReactNode;
13
- href: string;
14
+ path: string;
15
+ href?: string;
14
16
  dropdownItems?: DropdownItemProps[];
15
17
  isActive?: boolean;
16
18
  hide?: boolean;
17
19
  onClick?: () => void;
18
20
  };
19
21
  type MenuItemProps = IMenuItem;
20
- export declare function MenuItem({ name, icon, href, dropdownItems, isActive: isActiveProps, hide, onClick, }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function MenuItem({ name, icon, path, href, dropdownItems, isActive: isActiveProps, hide, onClick, }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
21
23
  export default MenuItem;
@@ -1,6 +1,6 @@
1
1
  import { LogoPropTypes } from '../logos/logo';
2
- import { LayoutOptionType } from '../../themes/config';
3
- import { IMenuItem } from '../common/menu-item';
2
+ import { LayoutOptionType } from '../../themes/config/index';
3
+ import { IMenuItem } from './menus/menu-item';
4
4
  export interface LayoutTypeProps {
5
5
  logo?: LogoPropTypes;
6
6
  layout?: LayoutOptionType;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const ErrorContainerExample: React.FC;
3
+ export default ErrorContainerExample;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormExample: React.FC;
3
+ export default FormExample;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormMethodsExample: React.FC;
3
+ export default FormMethodsExample;
@@ -0,0 +1,14 @@
1
+ import { FormValidations } from '../types/validations.type';
2
+ export interface FormValues {
3
+ name: string;
4
+ email: string;
5
+ password: string;
6
+ message: string;
7
+ acceptTerms: boolean;
8
+ age: number;
9
+ gender: string;
10
+ isDeveloper: boolean;
11
+ country: string;
12
+ }
13
+ export declare const defaultValues: FormValues;
14
+ export declare const formValidations: FormValidations<FormValues>;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { FieldValues, Path, RegisterOptions } from './hook-form';
3
+ export interface FormFieldProps<TFormValues extends FieldValues> {
4
+ name: Path<TFormValues>;
5
+ label?: string;
6
+ helperText?: string;
7
+ className?: string;
8
+ rules?: Omit<RegisterOptions<TFormValues, Path<TFormValues>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
9
+ children: React.ReactElement;
10
+ hideError?: boolean;
11
+ showHelper?: boolean;
12
+ }
13
+ export declare const FormField: <TFormValues extends FieldValues = FieldValues>({ name, label, helperText, className, rules, children, hideError, showHelper, }: FormFieldProps<TFormValues>) => import("react/jsx-runtime").JSX.Element;
14
+ export default FormField;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { SubmitHandler, UseFormProps, FieldValues, UseFormReturn } from './hook-form';
3
+ import { FormValidations } from './types/validations.type';
4
+ export type RenderFunction<TFormValues extends FieldValues> = (methods: UseFormReturn<TFormValues>) => React.ReactNode;
5
+ type FormProps<TFormValues extends FieldValues> = {
6
+ onSubmit: SubmitHandler<TFormValues>;
7
+ children: React.ReactNode | RenderFunction<TFormValues>;
8
+ useFormProps?: UseFormProps<TFormValues>;
9
+ validationSchema?: FormValidations<TFormValues>;
10
+ className?: string;
11
+ } & Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onSubmit'>;
12
+ export declare const Form: <TFormValues extends FieldValues = FieldValues>({ onSubmit, children, useFormProps, validationSchema, className, ...formProps }: FormProps<TFormValues>) => import("react/jsx-runtime").JSX.Element;
13
+ export default Form;
@@ -0,0 +1,3 @@
1
+ import { SubmitHandler, UseFormProps, FieldValues, UseFormReturn, Controller, useFormContext, Path, FieldError as FormFieldError, RegisterOptions, FieldErrors } from 'react-hook-form';
2
+ export type { FormFieldError, FieldErrors, RegisterOptions, Path, FieldValues, UseFormReturn, UseFormProps, SubmitHandler, };
3
+ export { Controller, useFormContext };
@@ -0,0 +1,11 @@
1
+ import { FieldValues, UseFormReturn } from '../hook-form';
2
+ import { FieldPathInternal, ArrayKey } from './extend-react-hook-form.type';
3
+ export type DependencyAction<TFieldValues extends FieldValues> = (formValues: Partial<TFieldValues>, methods: UseFormReturn<TFieldValues>, options: {
4
+ index: null | number;
5
+ name: string | null;
6
+ }) => void;
7
+ export type Dependency<TFieldValues extends FieldValues = FieldValues> = {
8
+ dependencies: FieldPathInternal<TFieldValues, ArrayKey>[];
9
+ callback: DependencyAction<TFieldValues>;
10
+ };
11
+ export type FormDependencies<TFieldValues extends FieldValues = FieldValues> = Dependency<TFieldValues>[];
@@ -0,0 +1,3 @@
1
+ export * from './dependencies.type';
2
+ export * from './extend-react-hook-form.type';
3
+ export * from './validations.type';
@@ -0,0 +1,9 @@
1
+ export interface InputLabelProps {
2
+ title: string;
3
+ subTitle?: string;
4
+ important?: boolean;
5
+ className?: string;
6
+ titleClassName?: string;
7
+ }
8
+ export declare function InputLabel({ title, subTitle, important, className, titleClassName, }: InputLabelProps): import("react/jsx-runtime").JSX.Element;
9
+ export default InputLabel;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { InputSelectOption } from './input-select';
3
+ export declare function InputSearcher({ label, onOptionSelect, options, initialValue, noMatchesMessage, multiple, ...props }: {
4
+ label?: string;
5
+ initialValue?: string | number;
6
+ onOptionSelect?: (option: InputSelectOption | InputSelectOption[]) => void;
7
+ options?: InputSelectOption[];
8
+ noMatchesMessage?: string;
9
+ multiple?: boolean;
10
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'>): import("react/jsx-runtime").JSX.Element;
11
+ export default InputSearcher;
@@ -1,3 +1,4 @@
1
+ export type DateFormat = 'DD-MM-YYYY' | 'MM-DD-YYYY' | 'YYYY-MM-DD' | 'DD/MM/YYYY' | 'MM/DD/YYYY' | 'YYYY/MM/DD';
1
2
  export type InputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
2
3
  label?: string;
3
4
  error?: string;
@@ -9,6 +10,7 @@ export type InputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLI
9
10
  suffix?: React.ReactNode;
10
11
  suffixClassName?: string;
11
12
  icon?: React.ReactNode;
13
+ dateFormat?: DateFormat;
12
14
  };
13
15
  export declare const Input: import('react').ForwardRefExoticComponent<Omit<InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
14
16
  export default Input;
@@ -1,17 +1,18 @@
1
1
  import { default as React } from 'react';
2
2
  declare const inputClasses: {
3
3
  base: string;
4
+ numberType: string;
4
5
  error: string;
5
6
  size: {
6
7
  sm: string;
7
- DEFAULT: string;
8
+ md: string;
8
9
  lg: string;
9
10
  xl: string;
10
11
  };
11
12
  rounded: {
12
13
  none: string;
13
14
  sm: string;
14
- DEFAULT: string;
15
+ md: string;
15
16
  lg: string;
16
17
  full: string;
17
18
  };
@@ -19,7 +20,6 @@ declare const inputClasses: {
19
20
  active: {
20
21
  base: string;
21
22
  color: {
22
- DEFAULT: string;
23
23
  primary: string;
24
24
  secondary: string;
25
25
  danger: string;
@@ -31,7 +31,6 @@ declare const inputClasses: {
31
31
  flat: {
32
32
  base: string;
33
33
  color: {
34
- DEFAULT: string;
35
34
  primary: string;
36
35
  secondary: string;
37
36
  danger: string;
@@ -43,7 +42,6 @@ declare const inputClasses: {
43
42
  outline: {
44
43
  base: string;
45
44
  color: {
46
- DEFAULT: string;
47
45
  primary: string;
48
46
  secondary: string;
49
47
  danger: string;
@@ -0,0 +1,56 @@
1
+ import { default as React } from 'react';
2
+ import { RadioProps } from './radio';
3
+ export interface RadioGroupProps {
4
+ /** Set field value */
5
+ value?: string | number;
6
+ /** Set default value for uncontrolled radio group */
7
+ defaultValue?: string | number;
8
+ /** The variants of the component are: */
9
+ variant?: RadioProps['variant'];
10
+ /** The size of the component. `"sm"` is equivalent to the dense input styling. */
11
+ size?: RadioProps['size'];
12
+ /** Change radio button color */
13
+ color?: RadioProps['color'];
14
+ /** Available directions of the label are: */
15
+ labelPlacement?: RadioProps['labelPlacement'];
16
+ /** Whether the radio group is disabled */
17
+ disabled?: boolean;
18
+ /** Set field label */
19
+ label?: React.ReactNode;
20
+ /** Show error message using this prop */
21
+ error?: string;
22
+ /** Add helper text. It could be string or a React component */
23
+ helperText?: React.ReactNode;
24
+ /** Use className prop to apply style for entire component */
25
+ className?: string;
26
+ /** Use containerClassName prop to apply some additional style for radio group container */
27
+ containerClassName?: string;
28
+ /** Use labelClassName prop to apply some addition style for the field label */
29
+ labelClassName?: string;
30
+ /** This prop allows you to customize the error message style */
31
+ errorClassName?: string;
32
+ /** This prop allows you to customize the helper message style */
33
+ helperClassName?: string;
34
+ /** Layout direction for radio options */
35
+ direction?: 'vertical' | 'horizontal';
36
+ /** Gap between radio options */
37
+ gap?: 'sm' | 'md' | 'lg' | 'xl';
38
+ /** Radio options */
39
+ options?: Array<{
40
+ name?: string;
41
+ label: React.ReactNode;
42
+ value: string | number;
43
+ disabled?: boolean;
44
+ [key: string]: any;
45
+ }>;
46
+ /** Children radio components */
47
+ children?: React.ReactNode;
48
+ /** onChange callback function */
49
+ onChange?: (value: string | number) => void;
50
+ }
51
+ /**
52
+ * A group of radio components that allows users to select one option from a set.
53
+ * RadioGroup can be used with either the options prop or with Radio components as children.
54
+ */
55
+ export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
56
+ export default RadioGroup;
@@ -3,7 +3,7 @@ declare const inputClasses: {
3
3
  base: string;
4
4
  size: {
5
5
  sm: string;
6
- DEFAULT: string;
6
+ md: string;
7
7
  lg: string;
8
8
  xl: string;
9
9
  };
@@ -11,7 +11,6 @@ declare const inputClasses: {
11
11
  outline: {
12
12
  base: string;
13
13
  color: {
14
- DEFAULT: string;
15
14
  primary: string;
16
15
  secondary: string;
17
16
  danger: string;
@@ -23,7 +22,6 @@ declare const inputClasses: {
23
22
  flat: {
24
23
  base: string;
25
24
  color: {
26
- DEFAULT: string;
27
25
  primary: string;
28
26
  secondary: string;
29
27
  danger: string;
@@ -35,7 +33,6 @@ declare const inputClasses: {
35
33
  active: {
36
34
  base: string;
37
35
  color: {
38
- DEFAULT: string;
39
36
  primary: string;
40
37
  secondary: string;
41
38
  danger: string;
@@ -52,7 +49,7 @@ export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
52
49
  /** The size of the component. `"sm"` is equivalent to the dense input styling. */
53
50
  size?: keyof typeof inputClasses.size;
54
51
  /** Change radio button color */
55
- color?: keyof (typeof inputClasses.variant)['outline']['color'];
52
+ color?: keyof typeof inputClasses.variant.outline.color;
56
53
  /** Available directions of the label are: */
57
54
  labelPlacement?: 'start' | 'end';
58
55
  /** Whether the input is disabled */
@@ -1,7 +1,8 @@
1
1
  import { LinkProps } from 'react-router-dom';
2
2
  export interface ActiveLinkProps extends LinkProps {
3
3
  activeClassName?: string;
4
- href: string;
4
+ path: string;
5
+ href?: string;
5
6
  }
6
7
  export declare const ActiveLink: React.FC<ActiveLinkProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>;
7
8
  export default ActiveLink;
@@ -0,0 +1 @@
1
+ export declare const AppLogo: (props: React.SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,6 @@
1
- export * from './logo-theme';
1
+ export * from './logo-dark';
2
+ export * from './logo-iso-dark';
3
+ export * from './logo-iso-light';
4
+ export * from './logo-light';
2
5
  export * from './logo';
6
+ export * from './logo-icon';
@@ -0,0 +1 @@
1
+ export declare function LogoDark(props: React.SVGAttributes<SVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface LogoIconProps extends React.SVGAttributes<SVGElement> {
2
+ width?: string | number;
3
+ height?: string | number;
4
+ }
5
+ export declare function LogoIcon({ width, height, ...props }: LogoIconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function LogoIsoDark(props: React.SVGAttributes<SVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function LogoIsoLight(props: React.SVGAttributes<SVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function LogoLight(props: React.SVGAttributes<SVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,14 @@
1
1
  import { PRESET_LABEL_COLORS } from '../../themes/config';
2
2
  export interface LogoPropTypes {
3
- name: string;
3
+ name?: string;
4
4
  secondName?: string;
5
5
  path?: string;
6
6
  preset?: PRESET_LABEL_COLORS;
7
7
  className?: string;
8
8
  size?: 'small' | 'medium' | 'large' | 'xlarge';
9
+ logoIsoType?: boolean;
9
10
  logo?: React.ReactNode | null;
10
11
  isoType?: boolean;
11
12
  }
12
- export declare function Logo({ name, secondName, path, preset, className, size, logo, isoType, }: LogoPropTypes): false | import("react/jsx-runtime").JSX.Element;
13
+ export declare function Logo({ name, secondName, path, preset, className, size, logo, logoIsoType, isoType, }: LogoPropTypes): import("react/jsx-runtime").JSX.Element;
13
14
  export default Logo;
@@ -22,12 +22,37 @@ declare const classes: {
22
22
  blockquote: string;
23
23
  sub: string;
24
24
  sup: string;
25
+ headline: string;
26
+ body: string;
27
+ 'label-1': string;
28
+ 'label-2': string;
29
+ caption: string;
30
+ legal: string;
31
+ };
32
+ declare const textColorClasses: {
33
+ default: string;
34
+ primary: string;
35
+ secondary: string;
36
+ dark: string;
37
+ light: string;
38
+ muted: string;
39
+ success: string;
40
+ warning: string;
41
+ error: string;
42
+ };
43
+ declare const fontFamilyClasses: {
44
+ default: string;
45
+ mono: string;
25
46
  };
26
47
  export interface TypographyProps {
27
48
  /** */
28
49
  tag?: keyof typeof classes;
29
50
  /** title attribute only appear when tag is `abbr` */
30
51
  title?: string;
52
+ /** Add custom color for the text */
53
+ color?: keyof typeof textColorClasses;
54
+ /** Add custom background color for the text */
55
+ fontFamily?: keyof typeof fontFamilyClasses;
31
56
  /** Add custom classes for extra style */
32
57
  className?: string;
33
58
  }
@@ -35,5 +60,5 @@ export interface TypographyProps {
35
60
  * Text component is the used to render text and paragraphs within an interface using well-defined typographic styles.
36
61
  * It renders a `<p>` tag by default.
37
62
  */
38
- export declare function Typography({ tag, title, children, className, }: React.PropsWithChildren<TypographyProps>): import("react/jsx-runtime").JSX.Element;
63
+ export declare function Typography({ tag, title, children, className, color, fontFamily, }: React.PropsWithChildren<TypographyProps>): import("react/jsx-runtime").JSX.Element;
39
64
  export default Typography;
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonProps } from '../../index';
3
+ interface HeroCardProps {
4
+ icon?: React.ReactNode;
5
+ title?: string;
6
+ description?: string;
7
+ githubButton?: boolean;
8
+ getStartedButton?: boolean;
9
+ docsButton?: 'introduction' | 'layout-system' | 'design-system' | 'theming-guide' | 'form-system' | 'icons-system' | 'hooks-utilities' | 'blockchain-components' | 'accessibility' | 'tailwind-utilities';
10
+ backgroundAnimation?: boolean;
11
+ customButton?: {
12
+ label: string;
13
+ link: string;
14
+ target: '_blank' | '_self' | '_parent' | '_top';
15
+ variant: ButtonProps['variant'];
16
+ icon?: React.ReactNode;
17
+ };
18
+ }
19
+ export declare const HeroCard: React.FC<HeroCardProps>;
20
+ export default HeroCard;
@@ -0,0 +1 @@
1
+ export * from './hero-card';
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './utils';
@@ -0,0 +1,12 @@
1
+ export declare const DOCUMENTATION_URL: any;
2
+ export declare const GITHUB_URL = "https://github.com/e-burgos/tucu-ui";
3
+ export declare const INTRODUCTION_DOCS_URL: string;
4
+ export declare const LAYOUT_SYSTEM_DOCS_URL: string;
5
+ export declare const DESIGN_SYSTEM_DOCS_URL: string;
6
+ export declare const THEMING_DOCS_URL: string;
7
+ export declare const FORM_SYSTEM_DOCS_URL: string;
8
+ export declare const ICONS_SYSTEM_DOCS_URL: string;
9
+ export declare const HOOKS_UTILITIES_DOCS_URL: string;
10
+ export declare const BLOCKCHAIN_DOCS_URL: string;
11
+ export declare const ACCESSIBILITY_DOCS_URL: string;
12
+ export declare const TAILWIND_UTILITIES_DOCS_URL = "https://tailwindcss.com/docs";
@@ -0,0 +1 @@
1
+ export * from './constants';