@e-burgos/tucu-ui 1.0.0
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/README.md +1113 -0
- package/components/auth/forget-password-form.d.ts +16 -0
- package/components/auth/index.d.ts +4 -0
- package/components/auth/reset-pin-form.d.ts +18 -0
- package/components/auth/sign-in-form.d.ts +18 -0
- package/components/auth/sign-up-form.d.ts +21 -0
- package/components/blockchain/coin-card.d.ts +17 -0
- package/components/blockchain/coin-info-card.d.ts +15 -0
- package/components/blockchain/coin-listbox.d.ts +14 -0
- package/components/blockchain/collection-card.d.ts +19 -0
- package/components/blockchain/collection-select-list.d.ts +11 -0
- package/components/blockchain/currency-swap-icons.d.ts +7 -0
- package/components/blockchain/index.d.ts +9 -0
- package/components/blockchain/live-price-feed.d.ts +24 -0
- package/components/blockchain/nft-grid.d.ts +11 -0
- package/components/blockchain/transaction-info.d.ts +7 -0
- package/components/buttons/button/button-drip.d.ts +12 -0
- package/components/buttons/button/button-loader.d.ts +9 -0
- package/components/buttons/button/index.d.ts +23 -0
- package/components/buttons/hamburger.d.ts +6 -0
- package/components/buttons/index.d.ts +6 -0
- package/components/buttons/topup-button.d.ts +8 -0
- package/components/cards/author-card.d.ts +7 -0
- package/components/cards/card-container.d.ts +7 -0
- package/components/cards/card-title.d.ts +9 -0
- package/components/cards/index.d.ts +5 -0
- package/components/cards/panel-action-card.d.ts +16 -0
- package/components/cards/panel-card.d.ts +8 -0
- package/components/carousel/carousel-cards.d.ts +19 -0
- package/components/carousel/carousel-component.d.ts +41 -0
- package/components/carousel/carousel-image.d.ts +18 -0
- package/components/carousel/index.d.ts +3 -0
- package/components/common/avatar.d.ts +12 -0
- package/components/common/badge.d.ts +8 -0
- package/components/common/collapse.d.ts +7 -0
- package/components/common/index.d.ts +7 -0
- package/components/common/menu-item.d.ts +21 -0
- package/components/common/scrollbar-native.d.ts +14 -0
- package/components/common/scrollbar.d.ts +14 -0
- package/components/common/skeleton.d.ts +6 -0
- package/components/dialog/drawer-container.d.ts +8 -0
- package/components/dialog/drawer.d.ts +19 -0
- package/components/dialog/index.d.ts +5 -0
- package/components/dialog/modal.d.ts +21 -0
- package/components/dialog/sidebar-menu.d.ts +13 -0
- package/components/dialog/sidebar.d.ts +12 -0
- package/components/forms/checkbox.d.ts +38 -0
- package/components/forms/field-error-text.d.ts +19 -0
- package/components/forms/field-helper-text.d.ts +18 -0
- package/components/forms/file-input.d.ts +8 -0
- package/components/forms/form-system/example/error-container-example.d.ts +3 -0
- package/components/forms/form-system/example/form-example.d.ts +3 -0
- package/components/forms/form-system/example/form-methods-example.d.ts +3 -0
- package/components/forms/form-system/example/validations.d.ts +14 -0
- package/components/forms/form-system/form-field.d.ts +14 -0
- package/components/forms/form-system/form.d.ts +13 -0
- package/components/forms/form-system/hook-form.d.ts +3 -0
- package/components/forms/form-system/index.d.ts +10 -0
- package/components/forms/form-system/types/dependencies.type.d.ts +11 -0
- package/components/forms/form-system/types/extend-react-hook-form.type.d.ts +16 -0
- package/components/forms/form-system/types/index.d.ts +3 -0
- package/components/forms/form-system/types/validations.type.d.ts +9 -0
- package/components/forms/index.d.ts +17 -0
- package/components/forms/input-label.d.ts +9 -0
- package/components/forms/input-searcher.d.ts +7 -0
- package/components/forms/input-select.d.ts +24 -0
- package/components/forms/input-switch.d.ts +13 -0
- package/components/forms/input.d.ts +14 -0
- package/components/forms/pin-code.d.ts +97 -0
- package/components/forms/radio-group.d.ts +56 -0
- package/components/forms/radio.d.ts +87 -0
- package/components/forms/textarea.d.ts +10 -0
- package/components/forms/toggle-bar.d.ts +9 -0
- package/components/forms/uploader-two.d.ts +44 -0
- package/components/forms/uploader.d.ts +2 -0
- package/components/icons/arrow-link-icon.d.ts +1 -0
- package/components/icons/arrow-right.d.ts +1 -0
- package/components/icons/arrow-up.d.ts +1 -0
- package/components/icons/bitcoin.d.ts +1 -0
- package/components/icons/bnb.d.ts +1 -0
- package/components/icons/book.d.ts +1 -0
- package/components/icons/brands/facebook.d.ts +1 -0
- package/components/icons/brands/github.d.ts +1 -0
- package/components/icons/brands/instagram.d.ts +1 -0
- package/components/icons/brands/telegram.d.ts +1 -0
- package/components/icons/brands/twitter.d.ts +1 -0
- package/components/icons/calendar-icon.d.ts +1 -0
- package/components/icons/cardano.d.ts +1 -0
- package/components/icons/check.d.ts +1 -0
- package/components/icons/checkmark.d.ts +1 -0
- package/components/icons/chevron-down.d.ts +1 -0
- package/components/icons/chevron-forward.d.ts +1 -0
- package/components/icons/chevron-right.d.ts +1 -0
- package/components/icons/classic-layout-icon.d.ts +1 -0
- package/components/icons/close.d.ts +1 -0
- package/components/icons/compact-grid.d.ts +1 -0
- package/components/icons/compass.d.ts +1 -0
- package/components/icons/copy.d.ts +1 -0
- package/components/icons/disk.d.ts +1 -0
- package/components/icons/document.d.ts +1 -0
- package/components/icons/doge.d.ts +1 -0
- package/components/icons/dots-icon.d.ts +1 -0
- package/components/icons/ethereum-dark.d.ts +1 -0
- package/components/icons/ethereum.d.ts +1 -0
- package/components/icons/exchange.d.ts +1 -0
- package/components/icons/export-icon.d.ts +1 -0
- package/components/icons/external-link.d.ts +1 -0
- package/components/icons/eye.d.ts +1 -0
- package/components/icons/eyeslash.d.ts +1 -0
- package/components/icons/farm.d.ts +1 -0
- package/components/icons/flash.d.ts +1 -0
- package/components/icons/flow.d.ts +1 -0
- package/components/icons/gas-icon.d.ts +1 -0
- package/components/icons/guide-icon.d.ts +1 -0
- package/components/icons/history.d.ts +1 -0
- package/components/icons/home.d.ts +1 -0
- package/components/icons/horizontal-three-dots.d.ts +1 -0
- package/components/icons/icon-us-flag.d.ts +1 -0
- package/components/icons/index.d.ts +97 -0
- package/components/icons/info-circle.d.ts +1 -0
- package/components/icons/info-icon.d.ts +1 -0
- package/components/icons/left-align.d.ts +1 -0
- package/components/icons/level-icon.d.ts +1 -0
- package/components/icons/link-icon.d.ts +1 -0
- package/components/icons/live-pricing.d.ts +1 -0
- package/components/icons/lock-icon.d.ts +1 -0
- package/components/icons/long-arrow-left.d.ts +1 -0
- package/components/icons/long-arrow-right.d.ts +1 -0
- package/components/icons/long-arrow-up.d.ts +1 -0
- package/components/icons/loop-icon.d.ts +1 -0
- package/components/icons/lucide-react/index.d.ts +1 -0
- package/components/icons/media-play-icon.d.ts +1 -0
- package/components/icons/menu-icon.d.ts +2 -0
- package/components/icons/minimal-layout-icon.d.ts +1 -0
- package/components/icons/modern-layout-icon.d.ts +1 -0
- package/components/icons/moon.d.ts +1 -0
- package/components/icons/more-icon.d.ts +1 -0
- package/components/icons/normal-grid.d.ts +1 -0
- package/components/icons/option.d.ts +1 -0
- package/components/icons/play-icon.d.ts +1 -0
- package/components/icons/plus-circle.d.ts +1 -0
- package/components/icons/plus.d.ts +1 -0
- package/components/icons/pool.d.ts +1 -0
- package/components/icons/power.d.ts +1 -0
- package/components/icons/profile.d.ts +1 -0
- package/components/icons/question-icon.d.ts +1 -0
- package/components/icons/question-solid-icon.d.ts +1 -0
- package/components/icons/range-icon.d.ts +1 -0
- package/components/icons/refresh.d.ts +1 -0
- package/components/icons/retro-layout-icon.d.ts +1 -0
- package/components/icons/right-align.d.ts +1 -0
- package/components/icons/sand-clock.d.ts +1 -0
- package/components/icons/search.d.ts +1 -0
- package/components/icons/shut-down-icon.d.ts +1 -0
- package/components/icons/spike-bar.d.ts +1 -0
- package/components/icons/star-fill.d.ts +1 -0
- package/components/icons/star.d.ts +1 -0
- package/components/icons/sun.d.ts +1 -0
- package/components/icons/swap-icon.d.ts +1 -0
- package/components/icons/tag-icon.d.ts +1 -0
- package/components/icons/tag.d.ts +1 -0
- package/components/icons/tether.d.ts +1 -0
- package/components/icons/trading-bot-icon.d.ts +1 -0
- package/components/icons/trend-arrow-down-icon.d.ts +1 -0
- package/components/icons/trend-arrow-up-icon.d.ts +1 -0
- package/components/icons/tucu.d.ts +1 -0
- package/components/icons/unlocked.d.ts +1 -0
- package/components/icons/upload.d.ts +1 -0
- package/components/icons/usdc.d.ts +1 -0
- package/components/icons/verified-icon.d.ts +1 -0
- package/components/icons/verified.d.ts +1 -0
- package/components/icons/vertical-three-dots.d.ts +1 -0
- package/components/icons/vote-icon.d.ts +1 -0
- package/components/icons/warning.d.ts +1 -0
- package/components/index.d.ts +16 -0
- package/components/layouts/authentication/layout.d.ts +5 -0
- package/components/layouts/classic/layout.d.ts +16 -0
- package/components/layouts/header/header.d.ts +16 -0
- package/components/layouts/menus/collapsible-menu.d.ts +3 -0
- package/components/layouts/menus/expandable-sidebar.d.ts +8 -0
- package/components/layouts/menus/minimal-nav-menu.d.ts +5 -0
- package/components/layouts/minimal/layout.d.ts +24 -0
- package/components/layouts/root-layout.d.ts +18 -0
- package/components/links/active-link.d.ts +7 -0
- package/components/links/anchor-link.d.ts +3 -0
- package/components/links/index.d.ts +2 -0
- package/components/loaders/index.d.ts +3 -0
- package/components/loaders/loader.d.ts +20 -0
- package/components/loaders/progressbar.d.ts +64 -0
- package/components/loaders/spinner.d.ts +15 -0
- package/components/logos/index.d.ts +2 -0
- package/components/logos/logo-theme.d.ts +5 -0
- package/components/logos/logo.d.ts +13 -0
- package/components/notifications/alert.d.ts +12 -0
- package/components/notifications/index.d.ts +3 -0
- package/components/notifications/notification-card.d.ts +14 -0
- package/components/notifications/toast.d.ts +3 -0
- package/components/tabs/index.d.ts +3 -0
- package/components/tabs/param-tab.d.ts +13 -0
- package/components/tabs/tab-select.d.ts +10 -0
- package/components/tabs/tab.d.ts +20 -0
- package/components/typography/index.d.ts +39 -0
- package/components/utils/code-block.d.ts +8 -0
- package/components/utils/image.d.ts +16 -0
- package/components/utils/index.d.ts +5 -0
- package/components/utils/reveal-content.d.ts +6 -0
- package/components/utils/scroll-to-top.d.ts +5 -0
- package/components/utils/test-brand-classes.d.ts +1 -0
- package/hooks/index.d.ts +13 -0
- package/hooks/use-breakpoint.d.ts +1 -0
- package/hooks/use-click-away.d.ts +1 -0
- package/hooks/use-copy-to-clipboard.d.ts +1 -0
- package/hooks/use-element-size.d.ts +9 -0
- package/hooks/use-event-listener.d.ts +7 -0
- package/hooks/use-grid-switcher.d.ts +6 -0
- package/hooks/use-is-mobile.d.ts +4 -0
- package/hooks/use-is-mounted.d.ts +1 -0
- package/hooks/use-lock-body-scroll.d.ts +1 -0
- package/hooks/use-measure.d.ts +1 -0
- package/hooks/use-scrollable-slider.d.ts +7 -0
- package/hooks/use-toast-store.d.ts +17 -0
- package/hooks/use-window-scroll.d.ts +1 -0
- package/index.css +1 -0
- package/index.d.ts +10 -0
- package/index.js +133 -0
- package/index.mjs +44201 -0
- package/libs/framer-motion/fade-in-bottom.d.ts +18 -0
- package/libs/index.d.ts +3 -0
- package/libs/local-storage/index.d.ts +7 -0
- package/libs/range-map.d.ts +1 -0
- package/lucide-react/index.d.ts +1 -0
- package/package.json +76 -0
- package/react-router-dom/index.d.ts +1 -0
- package/storybook/components/StoryContainer.d.ts +6 -0
- package/storybook/components/pages/Accessibility.d.ts +1 -0
- package/storybook/components/pages/Introduction.d.ts +1 -0
- package/storybook/hooks/useDummy.d.ts +34 -0
- package/swiper-react/index.d.ts +2 -0
- package/themes/components/pages/not-found.d.ts +2 -0
- package/themes/components/theme-provider/app-routes.d.ts +17 -0
- package/themes/components/theme-provider/index.d.ts +26 -0
- package/themes/components/theme-provider/settings-button.d.ts +2 -0
- package/themes/components/theme-provider/settings-drawer.d.ts +3 -0
- package/themes/config.d.ts +106 -0
- package/themes/index.d.ts +9 -0
- package/themes/use-direction.d.ts +1 -0
- package/themes/use-theme-color.d.ts +10 -0
- package/themes/use-theme.d.ts +83 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const classes: {
|
|
2
|
+
base: string;
|
|
3
|
+
size: {
|
|
4
|
+
sm: string;
|
|
5
|
+
DEFAULT: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
};
|
|
9
|
+
rounded: {
|
|
10
|
+
none: string;
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
DEFAULT: string;
|
|
15
|
+
};
|
|
16
|
+
variant: {
|
|
17
|
+
solid: {
|
|
18
|
+
base: string;
|
|
19
|
+
color: {
|
|
20
|
+
DEFAULT: string;
|
|
21
|
+
primary: string;
|
|
22
|
+
secondary: string;
|
|
23
|
+
danger: string;
|
|
24
|
+
info: string;
|
|
25
|
+
success: string;
|
|
26
|
+
warning: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
flat: {
|
|
30
|
+
base: string;
|
|
31
|
+
color: {
|
|
32
|
+
DEFAULT: string;
|
|
33
|
+
primary: string;
|
|
34
|
+
secondary: string;
|
|
35
|
+
danger: string;
|
|
36
|
+
info: string;
|
|
37
|
+
success: string;
|
|
38
|
+
warning: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export interface ProgressbarProps {
|
|
44
|
+
/** Percentage of filled bar */
|
|
45
|
+
value?: number;
|
|
46
|
+
/** Pass label to show percentage inside bar */
|
|
47
|
+
label?: React.ReactNode;
|
|
48
|
+
/** Size of the compoents are: */
|
|
49
|
+
size?: keyof typeof classes.size;
|
|
50
|
+
/** The rounded variants are: */
|
|
51
|
+
rounded?: keyof typeof classes.rounded;
|
|
52
|
+
/** Pass color variations */
|
|
53
|
+
color?: keyof typeof classes.variant.flat.color;
|
|
54
|
+
/** The variants of the components are: */
|
|
55
|
+
variant?: keyof typeof classes.variant;
|
|
56
|
+
/** To style entire progressbar component */
|
|
57
|
+
className?: string;
|
|
58
|
+
/** To style bar of the component */
|
|
59
|
+
barClassName?: string;
|
|
60
|
+
/** To style label */
|
|
61
|
+
labelClassName?: string;
|
|
62
|
+
}
|
|
63
|
+
export declare const Progressbar: ({ value, label, size, rounded, color, variant, className, barClassName, labelClassName, }: ProgressbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export default Progressbar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const colors: {
|
|
3
|
+
primary: string;
|
|
4
|
+
gray: string;
|
|
5
|
+
success: string;
|
|
6
|
+
danger: string;
|
|
7
|
+
info: string;
|
|
8
|
+
warning: string;
|
|
9
|
+
};
|
|
10
|
+
interface SpinnerProps {
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
color?: keyof typeof colors;
|
|
13
|
+
}
|
|
14
|
+
export declare const Spinner: React.FC<SpinnerProps>;
|
|
15
|
+
export default Spinner;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PRESET_LABEL_COLORS } from '../../themes/config';
|
|
2
|
+
export interface LogoPropTypes {
|
|
3
|
+
name: string;
|
|
4
|
+
secondName?: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
preset?: PRESET_LABEL_COLORS;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
9
|
+
logo?: React.ReactNode | null;
|
|
10
|
+
isoType?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Logo({ name, secondName, path, preset, className, size, logo, isoType, }: LogoPropTypes): false | import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Logo;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface AlertProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
variant?: 'info' | 'warning' | 'error' | 'success';
|
|
4
|
+
dismissible?: boolean;
|
|
5
|
+
onDismiss?: () => void;
|
|
6
|
+
'aria-label'?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function Alert({ children, variant, dismissible, onDismiss, 'aria-label': ariaLabel, }: React.PropsWithChildren<AlertProps>): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export declare namespace Alert {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
export default Alert;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type NotificationType = 'followed' | 'liked' | 'purchased';
|
|
2
|
+
export type Actor = {
|
|
3
|
+
name: string;
|
|
4
|
+
avatar: string;
|
|
5
|
+
};
|
|
6
|
+
export interface NotificationCardProps {
|
|
7
|
+
type: NotificationType;
|
|
8
|
+
actor: Actor;
|
|
9
|
+
time: string;
|
|
10
|
+
url: string;
|
|
11
|
+
notifier: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function NotificationCard({ type, actor, time, url, notifier, }: NotificationCardProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default NotificationCard;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TabPanel } from './tab';
|
|
2
|
+
export interface TabMenuItem {
|
|
3
|
+
title: React.ReactNode;
|
|
4
|
+
path: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ParamTabTypes {
|
|
7
|
+
tabMenu: TabMenuItem[];
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
tabListClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
export { TabPanel };
|
|
12
|
+
export declare function ParamTab({ tabMenu, children, tabListClassName, }: ParamTabTypes): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default ParamTab;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface TabSelectMenuItem {
|
|
2
|
+
title: React.ReactNode;
|
|
3
|
+
path: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const TabSelect: import('react').ForwardRefExoticComponent<{
|
|
6
|
+
tabMenu: TabSelectMenuItem[];
|
|
7
|
+
selectedTabIndex: number;
|
|
8
|
+
onChange: (index: number) => void;
|
|
9
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
10
|
+
export default TabSelect;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Tab, TabGroupProps, TabPanelsProps, TabPanelProps, TabListProps, TabProps } from '@headlessui/react';
|
|
3
|
+
export { Tab };
|
|
4
|
+
export declare const TabGroup: FC<React.PropsWithChildren<{
|
|
5
|
+
className?: string;
|
|
6
|
+
}> & TabGroupProps>;
|
|
7
|
+
export declare const TabList: FC<React.PropsWithChildren<{
|
|
8
|
+
className?: string;
|
|
9
|
+
}> & TabListProps>;
|
|
10
|
+
export declare function TabItem({ children, className, disabled, showMobileIndicator, }: React.PropsWithChildren<{
|
|
11
|
+
className?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
showMobileIndicator?: boolean;
|
|
14
|
+
}> & TabProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function TabPanels({ children, className, }: React.PropsWithChildren<{
|
|
16
|
+
className?: string;
|
|
17
|
+
}> & TabPanelsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function TabPanel({ children, className, }: React.PropsWithChildren<{
|
|
19
|
+
className?: string;
|
|
20
|
+
}> & TabPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const classes: {
|
|
2
|
+
h1: string;
|
|
3
|
+
h2: string;
|
|
4
|
+
h3: string;
|
|
5
|
+
h4: string;
|
|
6
|
+
h5: string;
|
|
7
|
+
h6: string;
|
|
8
|
+
p: string;
|
|
9
|
+
i: string;
|
|
10
|
+
b: string;
|
|
11
|
+
q: string;
|
|
12
|
+
em: string;
|
|
13
|
+
strong: string;
|
|
14
|
+
small: string;
|
|
15
|
+
span: string;
|
|
16
|
+
del: string;
|
|
17
|
+
mark: string;
|
|
18
|
+
abbr: string;
|
|
19
|
+
pre: string;
|
|
20
|
+
code: string;
|
|
21
|
+
kbd: string;
|
|
22
|
+
blockquote: string;
|
|
23
|
+
sub: string;
|
|
24
|
+
sup: string;
|
|
25
|
+
};
|
|
26
|
+
export interface TypographyProps {
|
|
27
|
+
/** */
|
|
28
|
+
tag?: keyof typeof classes;
|
|
29
|
+
/** title attribute only appear when tag is `abbr` */
|
|
30
|
+
title?: string;
|
|
31
|
+
/** Add custom classes for extra style */
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Text component is the used to render text and paragraphs within an interface using well-defined typographic styles.
|
|
36
|
+
* It renders a `<p>` tag by default.
|
|
37
|
+
*/
|
|
38
|
+
export declare function Typography({ tag, title, children, className, }: React.PropsWithChildren<TypographyProps>): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export default Typography;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const CodeBlock: ({ code, language, expanded, noExpand, className, }: {
|
|
2
|
+
code: string;
|
|
3
|
+
language?: string;
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
noExpand?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CodeBlock;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
src: string;
|
|
4
|
+
height?: number | string;
|
|
5
|
+
width?: number | string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
blurDataURL?: string;
|
|
8
|
+
blurWidth?: number | string;
|
|
9
|
+
blurHeight?: number | string;
|
|
10
|
+
priority?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
objectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
14
|
+
}
|
|
15
|
+
export declare const Image: React.FC<ImageProps>;
|
|
16
|
+
export default Image;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface RevealContentTypes {
|
|
2
|
+
defaultHeight: number;
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function RevealContent({ children, defaultHeight, className, }: React.PropsWithChildren<RevealContentTypes>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default RevealContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TestBrandClasses(): import("react/jsx-runtime").JSX.Element;
|
package/hooks/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './use-breakpoint';
|
|
2
|
+
export * from './use-click-away';
|
|
3
|
+
export * from './use-copy-to-clipboard';
|
|
4
|
+
export * from './use-element-size';
|
|
5
|
+
export * from './use-event-listener';
|
|
6
|
+
export * from './use-grid-switcher';
|
|
7
|
+
export * from './use-is-mobile';
|
|
8
|
+
export * from './use-is-mounted';
|
|
9
|
+
export * from './use-lock-body-scroll';
|
|
10
|
+
export * from './use-measure';
|
|
11
|
+
export * from './use-scrollable-slider';
|
|
12
|
+
export * from './use-toast-store';
|
|
13
|
+
export * from './use-window-scroll';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useBreakpoint: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useClickAway } from 'react-use/lib/useClickAway';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useCopyToClipboard } from 'react-use/lib/useCopyToClipboard';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RefObject, useEffect } from 'react';
|
|
2
|
+
export declare const useIsomorphicLayoutEffect: typeof useEffect;
|
|
3
|
+
declare function useEventListener<K extends keyof MediaQueryListEventMap>(eventName: K, handler: (event: MediaQueryListEventMap[K]) => void, element: RefObject<MediaQueryList>, options?: boolean | AddEventListenerOptions): void;
|
|
4
|
+
declare function useEventListener<K extends keyof WindowEventMap>(eventName: K, handler: (event: WindowEventMap[K]) => void, element?: undefined, options?: boolean | AddEventListenerOptions): void;
|
|
5
|
+
declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = HTMLDivElement>(eventName: K, handler: (event: HTMLElementEventMap[K]) => void, element: RefObject<T>, options?: boolean | AddEventListenerOptions): void;
|
|
6
|
+
declare function useEventListener<K extends keyof DocumentEventMap>(eventName: K, handler: (event: DocumentEventMap[K]) => void, element: RefObject<Document>, options?: boolean | AddEventListenerOptions): void;
|
|
7
|
+
export { useEventListener };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsMounted(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLockBodyScroll(freezeBodyScroll: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useMeasure } from 'react-use/lib/useMeasure';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function useScrollableSlider(defaultActivePath?: string): {
|
|
2
|
+
sliderEl: import('react').MutableRefObject<HTMLDivElement>;
|
|
3
|
+
sliderPrevBtn: import('react').MutableRefObject<HTMLButtonElement>;
|
|
4
|
+
sliderNextBtn: import('react').MutableRefObject<HTMLButtonElement>;
|
|
5
|
+
scrollToTheRight: () => void;
|
|
6
|
+
scrollToTheLeft: () => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IToast {
|
|
2
|
+
id: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
message: string;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
variant?: 'default' | 'destructive' | 'success' | 'warning' | 'info';
|
|
7
|
+
timeout?: number;
|
|
8
|
+
dismissing?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface ToastState {
|
|
11
|
+
toasts: IToast[];
|
|
12
|
+
setToasts: (toasts: IToast[]) => void;
|
|
13
|
+
addToast: (toast: IToast) => void;
|
|
14
|
+
dismissToast: (toastId?: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const useToastStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ToastState>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useWindowScroll } from 'react-use/lib/useWindowScroll';
|