@empreint/ui 1.0.1 → 1.0.3

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 (80) hide show
  1. package/dist/empreint.css +2 -0
  2. package/dist/{ui.js → empreint.js} +50 -52
  3. package/dist/index.d.ts +662 -0
  4. package/package.json +4 -4
  5. package/dist/src/components/breadcrumb/breadcrumb.d.ts +0 -15
  6. package/dist/src/components/breadcrumb/index.d.ts +0 -1
  7. package/dist/src/components/button/button.d.ts +0 -8
  8. package/dist/src/components/button/index.d.ts +0 -1
  9. package/dist/src/components/card/card.d.ts +0 -7
  10. package/dist/src/components/card/index.d.ts +0 -1
  11. package/dist/src/components/checkbox/checkbox.d.ts +0 -8
  12. package/dist/src/components/checkbox/index.d.ts +0 -1
  13. package/dist/src/components/chip/chip.d.ts +0 -8
  14. package/dist/src/components/chip/index.d.ts +0 -1
  15. package/dist/src/components/collapsible/collapsible.d.ts +0 -25
  16. package/dist/src/components/collapsible/index.d.ts +0 -1
  17. package/dist/src/components/dropdown-menu/dropdown-menu.d.ts +0 -25
  18. package/dist/src/components/dropdown-menu/index.d.ts +0 -1
  19. package/dist/src/components/dropzone/dropzone.d.ts +0 -33
  20. package/dist/src/components/dropzone/index.d.ts +0 -1
  21. package/dist/src/components/flex/flex.d.ts +0 -10
  22. package/dist/src/components/flex/index.d.ts +0 -1
  23. package/dist/src/components/index.d.ts +0 -24
  24. package/dist/src/components/input/index.d.ts +0 -1
  25. package/dist/src/components/input/input.d.ts +0 -21
  26. package/dist/src/components/language-selector/index.d.ts +0 -1
  27. package/dist/src/components/language-selector/language-selector.d.ts +0 -5
  28. package/dist/src/components/list/index.d.ts +0 -1
  29. package/dist/src/components/list/list.d.ts +0 -13
  30. package/dist/src/components/loader/index.d.ts +0 -1
  31. package/dist/src/components/loader/loader.d.ts +0 -8
  32. package/dist/src/components/modal/index.d.ts +0 -1
  33. package/dist/src/components/modal/modal.d.ts +0 -43
  34. package/dist/src/components/pagination/index.d.ts +0 -1
  35. package/dist/src/components/pagination/pagination.d.ts +0 -20
  36. package/dist/src/components/popover/index.d.ts +0 -1
  37. package/dist/src/components/popover/popover.d.ts +0 -17
  38. package/dist/src/components/radio-group/index.d.ts +0 -1
  39. package/dist/src/components/radio-group/radio-group.d.ts +0 -18
  40. package/dist/src/components/select/index.d.ts +0 -1
  41. package/dist/src/components/select/select.d.ts +0 -30
  42. package/dist/src/components/sidebar/index.d.ts +0 -1
  43. package/dist/src/components/sidebar/sidebar.d.ts +0 -30
  44. package/dist/src/components/slot/index.d.ts +0 -1
  45. package/dist/src/components/slot/slot.d.ts +0 -8
  46. package/dist/src/components/table/index.d.ts +0 -2
  47. package/dist/src/components/table/table.d.ts +0 -20
  48. package/dist/src/components/table/table.types.d.ts +0 -8
  49. package/dist/src/components/text/index.d.ts +0 -1
  50. package/dist/src/components/text/text.d.ts +0 -8
  51. package/dist/src/components/title/index.d.ts +0 -1
  52. package/dist/src/components/title/title.d.ts +0 -8
  53. package/dist/src/components/wizard/index.d.ts +0 -1
  54. package/dist/src/components/wizard/wizard.d.ts +0 -46
  55. package/dist/src/hooks/index.d.ts +0 -9
  56. package/dist/src/hooks/use-breadcrumb/index.d.ts +0 -2
  57. package/dist/src/hooks/use-breadcrumb/use-breadcrumb.d.ts +0 -9
  58. package/dist/src/hooks/use-breadcrumb/use-breadcrumb.types.d.ts +0 -4
  59. package/dist/src/hooks/use-disclosure/index.d.ts +0 -1
  60. package/dist/src/hooks/use-disclosure/use-disclosure.d.ts +0 -9
  61. package/dist/src/hooks/use-match-device/index.d.ts +0 -2
  62. package/dist/src/hooks/use-match-device/use-match-device.d.ts +0 -2
  63. package/dist/src/hooks/use-match-device/use-match-device.types.d.ts +0 -6
  64. package/dist/src/hooks/use-match-resolution/index.d.ts +0 -2
  65. package/dist/src/hooks/use-match-resolution/use-match-resolution.d.ts +0 -3
  66. package/dist/src/hooks/use-match-resolution/use-match-resolution.types.d.ts +0 -35
  67. package/dist/src/hooks/use-outside-alerter/index.d.ts +0 -1
  68. package/dist/src/hooks/use-outside-alerter/use-outside-alerter.d.ts +0 -6
  69. package/dist/src/hooks/use-pagination/index.d.ts +0 -2
  70. package/dist/src/hooks/use-pagination/use-pagination.d.ts +0 -19
  71. package/dist/src/hooks/use-pagination/use-pagination.types.d.ts +0 -11
  72. package/dist/src/hooks/use-scroll-to/index.d.ts +0 -2
  73. package/dist/src/hooks/use-scroll-to/use-scroll-to.d.ts +0 -3
  74. package/dist/src/hooks/use-scroll-to/use-scroll-to.types.d.ts +0 -3
  75. package/dist/src/hooks/use-visible/index.d.ts +0 -1
  76. package/dist/src/hooks/use-visible/use-visible.d.ts +0 -2
  77. package/dist/src/hooks/use-wizard/index.d.ts +0 -1
  78. package/dist/src/hooks/use-wizard/use-wizard.d.ts +0 -11
  79. package/dist/src/index.d.ts +0 -2
  80. package/dist/ui.css +0 -2
@@ -1,8 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- export type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
3
- export type ButtonSize = "sm" | "md" | "lg";
4
- export type ButtonProps = ComponentProps<"button"> & {
5
- variant?: ButtonVariant;
6
- size?: ButtonSize;
7
- };
8
- export declare const Button: ({ children, type, variant, size, className, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './button';
@@ -1,7 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- export declare const Card: {
3
- ({ children, className, ...rest }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
- Header: ({ children, className, ...rest }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
5
- Body: ({ children, className, ...rest }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
6
- Footer: ({ children, className, ...rest }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
7
- };
@@ -1 +0,0 @@
1
- export * from './card';
@@ -1,8 +0,0 @@
1
- import { ComponentProps, ReactNode } from 'react';
2
- export type CheckboxSize = "sm" | "md" | "lg";
3
- export type CheckboxProps = Omit<ComponentProps<"input">, "type" | "size"> & {
4
- children: ReactNode;
5
- size?: CheckboxSize;
6
- className?: string;
7
- };
8
- export declare const Checkbox: ({ children, size, className, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './checkbox';
@@ -1,8 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- export type ChipSize = "sm" | "md" | "lg";
3
- export type ChipProps = ComponentProps<"div"> & {
4
- size?: ChipSize;
5
- onRemove?: () => void;
6
- closeAriaLabel?: string;
7
- };
8
- export declare const Chip: ({ children, size, onRemove, closeAriaLabel, className, ...rest }: ChipProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './chip';
@@ -1,25 +0,0 @@
1
- import { ElementType, ReactNode } from 'react';
2
- type CollapsibleProps = {
3
- children: ReactNode;
4
- className?: string;
5
- };
6
- export declare const Collapsible: {
7
- ({ children, className }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
8
- Trigger: ({ children, icon: Icon, className, }: CollapsibleTriggerProps) => import("react/jsx-runtime").JSX.Element;
9
- Content: ({ children, className }: CollapsibleContentProps) => false | import("react/jsx-runtime").JSX.Element | undefined;
10
- Item: ({ children, className }: CollapsibleItemProps) => import("react/jsx-runtime").JSX.Element;
11
- };
12
- export type CollapsibleTriggerProps = {
13
- children: ReactNode;
14
- icon?: ElementType;
15
- className?: string;
16
- };
17
- export type CollapsibleContentProps = {
18
- children: ReactNode;
19
- className?: string;
20
- };
21
- export type CollapsibleItemProps = {
22
- children: ReactNode;
23
- className?: string;
24
- };
25
- export {};
@@ -1 +0,0 @@
1
- export * from './collapsible';
@@ -1,25 +0,0 @@
1
- import { ElementType, ReactNode } from 'react';
2
- export type DropdownMenuProps = {
3
- children: ReactNode;
4
- className?: string;
5
- };
6
- export declare const DropdownMenu: {
7
- ({ children, className }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
8
- Trigger: ({ children, icon: Icon, className, }: DropdownMenuTrigger) => import("react/jsx-runtime").JSX.Element;
9
- Content: ({ children, className }: DropdownMenuContent) => false | import("react/jsx-runtime").JSX.Element | undefined;
10
- Item: ({ children, onClick, className }: DropdownMenuItemProps) => import("react/jsx-runtime").JSX.Element;
11
- };
12
- export type DropdownMenuTrigger = {
13
- children: ReactNode;
14
- icon?: ElementType;
15
- className?: string;
16
- };
17
- export type DropdownMenuContent = {
18
- children: ReactNode;
19
- className?: string;
20
- };
21
- export type DropdownMenuItemProps = {
22
- children: ReactNode;
23
- onClick: () => void;
24
- className?: string;
25
- };
@@ -1 +0,0 @@
1
- export * from './dropdown-menu';
@@ -1,33 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- export type DropzoneProps = {
3
- children: ReactNode;
4
- onChange: (file: File | undefined) => void;
5
- className?: string;
6
- };
7
- export declare const Dropzone: {
8
- ({ children, onChange, className }: DropzoneProps): import("react/jsx-runtime").JSX.Element;
9
- Label: ({ children, className }: DropzoneLabelProps) => import("react/jsx-runtime").JSX.Element;
10
- Area: ({ children, className }: DropzoneAreaProps) => import("react/jsx-runtime").JSX.Element;
11
- Empty: ({ children, className }: DropzoneEmptyProps) => import("react/jsx-runtime").JSX.Element | null;
12
- Preview: ({ className }: DropzonePreviewProps) => import("react/jsx-runtime").JSX.Element | null;
13
- Remove: ({ children, className }: DropzoneRemoveProps) => import("react/jsx-runtime").JSX.Element | null;
14
- };
15
- export type DropzoneLabelProps = {
16
- children: ReactNode;
17
- className?: string;
18
- };
19
- export type DropzoneAreaProps = {
20
- children: ReactNode;
21
- className?: string;
22
- };
23
- export type DropzonePreviewProps = {
24
- className?: string;
25
- };
26
- export type DropzoneEmptyProps = {
27
- children: ReactNode;
28
- className?: string;
29
- };
30
- export type DropzoneRemoveProps = {
31
- children: ReactElement;
32
- className?: string;
33
- };
@@ -1 +0,0 @@
1
- export * from './dropzone';
@@ -1,10 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- export type FlexProps = ComponentProps<"div"> & {
3
- direction?: "row" | "column" | "row-reverse" | "column-reverse";
4
- justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | "stretch";
5
- align?: "start" | "center" | "end" | "stretch" | "baseline";
6
- wrap?: "nowrap" | "wrap" | "wrap-reverse";
7
- gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
8
- inline?: boolean;
9
- };
10
- export declare const Flex: ({ children, direction, justify, align, wrap, gap, inline, className, ...rest }: FlexProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './flex';
@@ -1,24 +0,0 @@
1
- export * from './breadcrumb';
2
- export * from './button';
3
- export * from './card';
4
- export * from './checkbox';
5
- export * from './chip';
6
- export * from './collapsible';
7
- export * from './dropdown-menu';
8
- export * from './dropzone';
9
- export * from './flex';
10
- export * from './input';
11
- export * from './language-selector';
12
- export * from './list';
13
- export * from './loader';
14
- export * from './modal';
15
- export * from './pagination';
16
- export * from './popover';
17
- export * from './radio-group';
18
- export * from './select';
19
- export * from './sidebar';
20
- export * from './slot';
21
- export * from './table';
22
- export * from './text';
23
- export * from './title';
24
- export * from './wizard';
@@ -1 +0,0 @@
1
- export * from './input';
@@ -1,21 +0,0 @@
1
- import { ComponentProps, ReactNode } from 'react';
2
- export type InputStatus = "default" | "success" | "warning" | "error";
3
- export type InputProps = {
4
- children: ReactNode;
5
- status?: InputStatus;
6
- className?: string;
7
- };
8
- export declare const Input: {
9
- ({ children, status, className }: InputProps): import("react/jsx-runtime").JSX.Element;
10
- Field: ({ className, ...rest }: ComponentProps<"input">) => import("react/jsx-runtime").JSX.Element;
11
- Label: ({ children, className }: InputLabelProps) => import("react/jsx-runtime").JSX.Element;
12
- Message: ({ children, className }: InputMessageProps) => import("react/jsx-runtime").JSX.Element;
13
- };
14
- export type InputLabelProps = {
15
- children: ReactNode;
16
- className?: string;
17
- };
18
- export type InputMessageProps = {
19
- children: ReactNode;
20
- className?: string;
21
- };
@@ -1 +0,0 @@
1
- export * from './language-selector';
@@ -1,5 +0,0 @@
1
- import { SelectProps } from '..';
2
- export type LanguageSelectorProps = {
3
- languages: string[];
4
- };
5
- export declare const LanguageSelector: ({ languages, ...rest }: LanguageSelectorProps & Omit<SelectProps, "children">) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './list';
@@ -1,13 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type ListProps = {
3
- children: ReactNode;
4
- className?: string;
5
- };
6
- export declare const List: {
7
- ({ className, children }: ListProps): import("react/jsx-runtime").JSX.Element;
8
- Item: ({ children, className }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
9
- };
10
- export type ListItemProps = {
11
- children: ReactNode;
12
- className?: string;
13
- };
@@ -1 +0,0 @@
1
- export * from './loader';
@@ -1,8 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- export declare const Loader: {
3
- ({ children, className, ...rest }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
- Spinner: ({ size, className, ...rest }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
5
- };
6
- export type SpinnerProps = ComponentProps<"svg"> & {
7
- size?: "sm" | "md" | "lg";
8
- };
@@ -1 +0,0 @@
1
- export * from './modal';
@@ -1,43 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- export type ModalProps = {
3
- children: ReactNode;
4
- className?: string;
5
- };
6
- export declare const Modal: {
7
- ({ children, className }: ModalProps): import("react/jsx-runtime").JSX.Element;
8
- Trigger: ({ children, className }: ModalTriggerProps) => import("react/jsx-runtime").JSX.Element;
9
- Content: ({ children, className }: ModalContentProps) => import("react/jsx-runtime").JSX.Element | null;
10
- Overlay: ({ className }: ModalOverlayProps) => false | import("react/jsx-runtime").JSX.Element | undefined;
11
- Close: ({ children, className }: ModalCloseProps) => import("react/jsx-runtime").JSX.Element;
12
- Body: ({ children, className }: ModalBodyProps) => import("react/jsx-runtime").JSX.Element;
13
- Header: ({ children, className }: ModalHeaderProps) => import("react/jsx-runtime").JSX.Element;
14
- Footer: ({ children, className }: ModalFooterProps) => import("react/jsx-runtime").JSX.Element;
15
- };
16
- export type ModalTriggerProps = {
17
- children: ReactElement;
18
- className?: string;
19
- };
20
- export declare const ModalTrigger: ({ children, className }: ModalTriggerProps) => import("react/jsx-runtime").JSX.Element;
21
- export type ModalContentProps = {
22
- children: ReactNode;
23
- className?: string;
24
- };
25
- export type ModalOverlayProps = {
26
- className?: string;
27
- };
28
- export type ModalCloseProps = {
29
- children: ReactElement;
30
- className?: string;
31
- };
32
- export type ModalBodyProps = {
33
- children: ReactNode;
34
- className?: string;
35
- };
36
- export type ModalHeaderProps = {
37
- children: ReactNode;
38
- className?: string;
39
- };
40
- export type ModalFooterProps = {
41
- children: ReactNode;
42
- className?: string;
43
- };
@@ -1 +0,0 @@
1
- export * from './pagination';
@@ -1,20 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- import { usePaginationProps } from '../..';
3
- export type PaginationProps = usePaginationProps & {
4
- children: ReactNode;
5
- className?: string;
6
- };
7
- export declare const Pagination: {
8
- ({ children, className, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element;
9
- First: ({ children, className }: PaginationButtonProps) => import("react/jsx-runtime").JSX.Element | null;
10
- Previous: ({ children, className }: PaginationButtonProps) => import("react/jsx-runtime").JSX.Element | null;
11
- Items: ({ className }: {
12
- className?: string;
13
- }) => import("react/jsx-runtime").JSX.Element[] | undefined;
14
- Next: ({ children, className }: PaginationButtonProps) => import("react/jsx-runtime").JSX.Element | null;
15
- Last: ({ children, className }: PaginationButtonProps) => import("react/jsx-runtime").JSX.Element | null;
16
- };
17
- export type PaginationButtonProps = {
18
- children: ReactElement;
19
- className?: string;
20
- };
@@ -1 +0,0 @@
1
- export * from './popover';
@@ -1,17 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- export type PopoverProps = {
3
- children: ReactNode;
4
- };
5
- export declare const Popover: {
6
- ({ children }: PopoverProps): import("react/jsx-runtime").JSX.Element;
7
- Trigger: ({ children }: PopoverTriggerProps) => import("react/jsx-runtime").JSX.Element;
8
- Content: ({ children, className }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element | null;
9
- };
10
- type PopoverTriggerProps = {
11
- children: ReactElement;
12
- };
13
- type PopoverContentProps = {
14
- children: ReactNode;
15
- className?: string;
16
- };
17
- export {};
@@ -1 +0,0 @@
1
- export * from './radio-group';
@@ -1,18 +0,0 @@
1
- import { ComponentProps, ReactNode } from 'react';
2
- type RadioGroupProps = {
3
- children: ReactNode;
4
- defaultValue: string;
5
- value?: string;
6
- onChange?: (value: string) => void;
7
- className?: string;
8
- };
9
- export declare const RadioGroup: {
10
- ({ children, onChange, defaultValue, className }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
11
- Item: ({ children, value, className, ...rest }: RadioItemProps) => import("react/jsx-runtime").JSX.Element;
12
- };
13
- export type RadioItemProps = Omit<ComponentProps<"input">, "type" | "name" | "checked" | "onChange"> & {
14
- children: ReactNode;
15
- value: string;
16
- className?: string;
17
- };
18
- export {};
@@ -1 +0,0 @@
1
- export * from './select';
@@ -1,30 +0,0 @@
1
- import { ElementType, ReactNode } from 'react';
2
- export type Option = {
3
- label: ReactNode;
4
- value: string;
5
- };
6
- export type SelectProps = {
7
- children: ReactNode;
8
- defaultValue: string;
9
- onChange?: (option: Option) => void;
10
- className?: string;
11
- };
12
- export declare const Select: {
13
- ({ children, defaultValue, onChange, className }: SelectProps): import("react/jsx-runtime").JSX.Element;
14
- Trigger: ({ icon: Icon, className }: SelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
15
- Content: ({ children, className }: SelectContentProps) => import("react/jsx-runtime").JSX.Element;
16
- Option: ({ children, value, className }: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
17
- };
18
- export type SelectTriggerProps = {
19
- icon?: ElementType;
20
- className?: string;
21
- };
22
- export type SelectContentProps = {
23
- children: ReactNode;
24
- className?: string;
25
- };
26
- export type SelectOptionProps = {
27
- children: ReactNode;
28
- value: string;
29
- className?: string;
30
- };
@@ -1 +0,0 @@
1
- export * from './sidebar';
@@ -1,30 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- export type SidebarProps = {
3
- children: ReactNode;
4
- className?: string;
5
- };
6
- export declare const Sidebar: {
7
- ({ children, className }: SidebarProps): import("react/jsx-runtime").JSX.Element;
8
- Header: ({ children, className }: SidebarHeaderProps) => import("react/jsx-runtime").JSX.Element;
9
- Group: ({ children, className }: SidebarGroupProps) => import("react/jsx-runtime").JSX.Element;
10
- Link: ({ children, isActive, className }: SidebarLinkProps) => import("react/jsx-runtime").JSX.Element;
11
- Item: ({ children, onClick, className }: SidebarItemProps) => import("react/jsx-runtime").JSX.Element;
12
- };
13
- export type SidebarHeaderProps = {
14
- children: ReactNode;
15
- className?: string;
16
- };
17
- export type SidebarGroupProps = {
18
- children: ReactNode;
19
- className?: string;
20
- };
21
- export type SidebarItemProps = {
22
- children: ReactNode;
23
- onClick?: () => void;
24
- className?: string;
25
- };
26
- export type SidebarLinkProps = {
27
- children: ReactElement;
28
- isActive?: boolean;
29
- className?: string;
30
- };
@@ -1 +0,0 @@
1
- export * from './slot';
@@ -1,8 +0,0 @@
1
- import { HTMLAttributes, ReactElement, Ref } from 'react';
2
- type AnyProps = Record<string, unknown>;
3
- export type SlotProps = HTMLAttributes<HTMLElement> & {
4
- children: ReactElement;
5
- ref?: Ref<HTMLElement>;
6
- };
7
- export declare const Slot: ({ children, ref, ...slotProps }: SlotProps) => ReactElement<AnyProps, string | import('react').JSXElementConstructor<any>> | null;
8
- export {};
@@ -1,2 +0,0 @@
1
- export * from './table';
2
- export * from './table.types';
@@ -1,20 +0,0 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
2
- import { Column, ObjectLiteral, Primitive } from './table.types';
3
- export type TableProps<T extends ObjectLiteral> = {
4
- columns: Column[];
5
- records: T[];
6
- uniqueKey?: string;
7
- renderHeader?: () => ReactNode;
8
- renderFooter?: () => ReactNode;
9
- renderColumnsCell?: (column: Column, key: string) => ReactNode;
10
- renderRecordsCell?: (cell: Primitive, key: string) => ReactNode;
11
- renderRecordsEmptyCell?: (key: string) => ReactNode;
12
- renderNoRecords?: () => ReactNode;
13
- className?: string;
14
- };
15
- export declare const Table: {
16
- <T extends ObjectLiteral>({ className, columns, records, uniqueKey, renderHeader, renderFooter, renderColumnsCell, renderRecordsCell, renderRecordsEmptyCell, renderNoRecords, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
17
- Th: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
18
- Tr: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
19
- Td: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
20
- };
@@ -1,8 +0,0 @@
1
- export type Column = {
2
- name: string;
3
- label: string;
4
- };
5
- export type Primitive = string | number | boolean | undefined | null;
6
- export type ObjectLiteral<T = Primitive> = {
7
- [field: string]: T;
8
- };
@@ -1 +0,0 @@
1
- export * from './text';
@@ -1,8 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export type TextProps = HTMLAttributes<HTMLElement> & {
3
- as?: "span" | "p";
4
- size?: "sm" | "md" | "lg";
5
- align?: "start" | "center" | "end" | "justify";
6
- weight?: "normal" | "medium" | "semibold" | "bold";
7
- };
8
- export declare const Text: ({ children, as: TextAs, size, align, weight, className, ...rest }: TextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './title';
@@ -1,8 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export type TitleProps = HTMLAttributes<HTMLHeadingElement> & {
3
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
4
- size?: "sm" | "md" | "lg" | "xl";
5
- align?: "start" | "center" | "end";
6
- weight?: "normal" | "medium" | "semibold" | "bold";
7
- };
8
- export declare const Title: ({ children, as: TitleAs, size, align, weight, className, ...rest }: TitleProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './wizard';
@@ -1,46 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- export type Step = {
3
- name: string;
4
- title: string;
5
- };
6
- export type WizardProps = {
7
- children: ReactNode;
8
- initialStep?: number;
9
- className?: string;
10
- };
11
- export declare const Wizard: {
12
- ({ children, initialStep, className }: WizardProps): import("react/jsx-runtime").JSX.Element;
13
- Header: ({ children, className }: WizardHeaderProps) => import("react/jsx-runtime").JSX.Element;
14
- Title: ({ className }: WizardTitleProps) => import("react/jsx-runtime").JSX.Element;
15
- Indicator: () => import("react/jsx-runtime").JSX.Element | null;
16
- Step: ({ children, name, title, className }: WizardStepProps) => import("react/jsx-runtime").JSX.Element | null;
17
- Footer: ({ children, className }: WizardFooterProps) => import("react/jsx-runtime").JSX.Element;
18
- Next: ({ children, onClick, className }: WizardButtonProps) => import("react/jsx-runtime").JSX.Element | null;
19
- Previous: ({ children, onClick, className }: WizardButtonProps) => import("react/jsx-runtime").JSX.Element | null;
20
- Finalize: ({ children, onClick, className }: WizardButtonProps) => import("react/jsx-runtime").JSX.Element | null;
21
- };
22
- export type WizardHeaderProps = {
23
- children: ReactNode;
24
- className?: string;
25
- };
26
- export type WizardTitleProps = {
27
- className?: string;
28
- };
29
- export type WizardIndicatorProps = {
30
- className?: string;
31
- };
32
- export type WizardStepProps = {
33
- children: ReactNode;
34
- name: string;
35
- title: string;
36
- className?: string;
37
- };
38
- export type WizardFooterProps = {
39
- children: ReactNode;
40
- className?: string;
41
- };
42
- export type WizardButtonProps = {
43
- children: ReactElement;
44
- onClick?: () => void;
45
- className?: string;
46
- };
@@ -1,9 +0,0 @@
1
- export * from './use-breadcrumb';
2
- export * from './use-disclosure';
3
- export * from './use-match-device';
4
- export * from './use-match-resolution';
5
- export * from './use-outside-alerter';
6
- export * from './use-pagination';
7
- export * from './use-scroll-to';
8
- export * from './use-visible';
9
- export * from './use-wizard';
@@ -1,2 +0,0 @@
1
- export * from './use-breadcrumb';
2
- export * from './use-breadcrumb.types';
@@ -1,9 +0,0 @@
1
- import { BreadcrumbItem } from './use-breadcrumb.types';
2
- export type useBreadcrumbProps = {
3
- url?: URL;
4
- mapping?: {
5
- path: string;
6
- label: string;
7
- }[];
8
- };
9
- export declare const useBreadcrumb: ({ url, mapping, }: useBreadcrumbProps) => BreadcrumbItem[];
@@ -1,4 +0,0 @@
1
- export type BreadcrumbItem = {
2
- label: string;
3
- url: string;
4
- };
@@ -1 +0,0 @@
1
- export * from './use-disclosure';
@@ -1,9 +0,0 @@
1
- export type useDisclosureOptions = {
2
- closeOnOutsideClick?: boolean;
3
- };
4
- export declare const useDisclosure: ({ closeOnOutsideClick }?: useDisclosureOptions) => {
5
- isOpen: boolean;
6
- onClose: () => void;
7
- onToggle: () => void;
8
- ref: import('react').RefObject<HTMLDivElement | null>;
9
- };
@@ -1,2 +0,0 @@
1
- export * from './use-match-device';
2
- export * from './use-match-device.types';
@@ -1,2 +0,0 @@
1
- import { Device } from './use-match-device.types';
2
- export declare const useMatchDevice: (UA: string) => Device;
@@ -1,6 +0,0 @@
1
- export type Device = {
2
- isMobile: boolean;
3
- isTablet: boolean;
4
- isMobileOrTablet: boolean;
5
- isDesktop: boolean;
6
- };
@@ -1,2 +0,0 @@
1
- export * from './use-match-resolution';
2
- export * from './use-match-resolution.types';