@drdex0101/water-design-system 1.0.1 → 3.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.
Files changed (50) hide show
  1. package/README.md +4 -4
  2. package/dist/components/Badge/Badge.d.ts +16 -0
  3. package/dist/components/Badge/index.d.ts +1 -0
  4. package/dist/components/BottomNav/BottomNav.d.ts +66 -0
  5. package/dist/components/BottomNav/index.d.ts +1 -0
  6. package/dist/components/BottomSheet/BottomSheet.d.ts +47 -0
  7. package/dist/components/BottomSheet/index.d.ts +1 -0
  8. package/dist/components/Button/Button.d.ts +20 -2
  9. package/dist/components/Card/Card.d.ts +149 -0
  10. package/dist/components/Card/index.d.ts +1 -0
  11. package/dist/components/Checkbox/Checkbox.d.ts +13 -0
  12. package/dist/components/Checkbox/index.d.ts +1 -0
  13. package/dist/components/DatePicker/Calendar.d.ts +21 -0
  14. package/dist/components/DatePicker/DatePicker.d.ts +44 -0
  15. package/dist/components/DatePicker/index.d.ts +2 -0
  16. package/dist/components/Divider/Divider.d.ts +9 -0
  17. package/dist/components/Divider/index.d.ts +1 -0
  18. package/dist/components/DropdownMenu/DropdownMenu.d.ts +78 -0
  19. package/dist/components/DropdownMenu/index.d.ts +1 -0
  20. package/dist/components/Icon/Icon.d.ts +132 -0
  21. package/dist/components/Icon/index.d.ts +1 -0
  22. package/dist/components/Input/Input.d.ts +20 -0
  23. package/dist/components/Input/index.d.ts +1 -0
  24. package/dist/components/Poker/PokerCard.d.ts +25 -0
  25. package/dist/components/Poker/index.d.ts +1 -0
  26. package/dist/components/Popup/Popup.d.ts +62 -0
  27. package/dist/components/Popup/index.d.ts +1 -0
  28. package/dist/components/SideMenu/SideMenu.d.ts +43 -0
  29. package/dist/components/SideMenu/index.d.ts +1 -0
  30. package/dist/components/Slider/Slider.d.ts +23 -0
  31. package/dist/components/Slider/index.d.ts +1 -0
  32. package/dist/components/Switch/Switch.d.ts +17 -0
  33. package/dist/components/Switch/index.d.ts +1 -0
  34. package/dist/components/Tabs/Tabs.d.ts +28 -0
  35. package/dist/components/Tabs/index.d.ts +1 -0
  36. package/dist/components/Toast/Toast.d.ts +18 -0
  37. package/dist/components/Toast/index.d.ts +1 -0
  38. package/dist/components/Toggle/Toggle.d.ts +34 -0
  39. package/dist/components/Toggle/index.d.ts +1 -0
  40. package/dist/index.d.ts +18 -0
  41. package/dist/logo.png +0 -0
  42. package/dist/pages/Showcase.d.ts +1 -0
  43. package/dist/pages/SpacingTokens.d.ts +2 -0
  44. package/dist/tokens/colors.d.ts +38 -204
  45. package/dist/tokens/index.d.ts +1 -5
  46. package/dist/tokens/semantic.d.ts +201 -114
  47. package/dist/tokens/spacing.d.ts +54 -0
  48. package/dist/water-design-system.es.js +4493 -586
  49. package/dist/water-design-system.umd.js +35 -4
  50. package/package.json +3 -2
@@ -0,0 +1,132 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface IconProps {
4
+ /** Icon size (width and height) */
5
+ size?: number;
6
+ /** Icon color */
7
+ color?: string;
8
+ /** Custom className */
9
+ className?: string;
10
+ /** Custom style */
11
+ style?: React.CSSProperties;
12
+ }
13
+ /** 活動 (Activity/Event) */
14
+ export declare const ActivityIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
15
+ /** 訂閱交易 (Subscribe/Trade) */
16
+ export declare const SubscribeIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
17
+ /** AI 解決 (AI Solution) */
18
+ export declare const AISolutionIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
19
+ /** 玩人解析 (Player Analysis) */
20
+ export declare const PlayerAnalysisIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
21
+ /** 我的錦標 (My Tournament) */
22
+ export declare const TournamentIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
23
+ /** Daily Training */
24
+ export declare const DailyTrainingIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
25
+ /** 牌譜筆記 (Hand Record Notes) */
26
+ export declare const HandNotesIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
27
+ /** 對手下注 (Opponent Bet) */
28
+ export declare const BetIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
29
+ /** Drop 存取 */
30
+ export declare const DropIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
31
+ /** 錦標賽統 (Tournament Stats) */
32
+ export declare const StatsIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
33
+ /** 報名記錄 (Registration) */
34
+ export declare const RegistrationIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
35
+ /** 記錄牌譜 (Record Hands) */
36
+ export declare const RecordIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
37
+ /** Search */
38
+ export declare const SearchIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
39
+ /** Chevron Down */
40
+ export declare const ChevronDownIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
41
+ /** Chevron Up */
42
+ export declare const ChevronUpIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
43
+ /** Chevron Left */
44
+ export declare const ChevronLeftIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
45
+ /** Chevron Right */
46
+ export declare const ChevronRightIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
47
+ /** Arrow Up */
48
+ export declare const ArrowUpIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
49
+ /** Arrow Down */
50
+ export declare const ArrowDownIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
51
+ /** Arrow Left */
52
+ export declare const ArrowLeftIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
53
+ /** Arrow Right */
54
+ export declare const ArrowRightIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
55
+ /** Plus */
56
+ export declare const PlusIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
57
+ /** Minus */
58
+ export declare const MinusIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
59
+ /** Close / X */
60
+ export declare const CloseIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
61
+ /** Check */
62
+ export declare const CheckIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
63
+ /** Menu (Hamburger) */
64
+ export declare const MenuIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
65
+ /** More Vertical (Dots) */
66
+ export declare const MoreVerticalIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
67
+ /** More Horizontal (Dots) */
68
+ export declare const MoreHorizontalIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
69
+ /** User */
70
+ export declare const UserIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
71
+ /** Share */
72
+ export declare const ShareIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
73
+ /** Edit / Pencil */
74
+ export declare const EditIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
75
+ /** Delete / Trash */
76
+ export declare const DeleteIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
77
+ /** Copy */
78
+ export declare const CopyIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
79
+ /** Settings / Gear */
80
+ export declare const SettingsIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
81
+ /** Light Mode / Sun */
82
+ export declare const LightModeIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
83
+ /** Dark Mode / Moon */
84
+ export declare const DarkModeIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
85
+ /** Loading / Spinner */
86
+ export declare const LoadingIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
87
+ /** Spade */
88
+ export declare const SpadeIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
89
+ /** Heart */
90
+ export declare const HeartIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
91
+ /** Diamond */
92
+ export declare const DiamondIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
93
+ /** Club */
94
+ export declare const ClubIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
95
+ /** Chip / Token */
96
+ export declare const ChipIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
97
+ /** Eye / View */
98
+ export declare const EyeIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
99
+ /** Eye Off / Hide */
100
+ export declare const EyeOffIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
101
+ /** AI */
102
+ export declare const AIIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
103
+ /** Fingerprint */
104
+ export declare const FingerprintIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
105
+ /** Upload Image */
106
+ export declare const UploadImageIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
107
+ /** Upload File */
108
+ export declare const UploadFileIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
109
+ /** Shopping Cart */
110
+ export declare const CartIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
111
+ /** Discord */
112
+ export declare const DiscordIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
113
+ /** Google */
114
+ export declare const GoogleIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
115
+ /** Instagram */
116
+ export declare const InstagramIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
117
+ /** TWD (Taiwan Dollar) */
118
+ export declare const TWDIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
119
+ /** USD (US Dollar) */
120
+ export declare const USDIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
121
+ /** XRP */
122
+ export declare const XRPIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
123
+ /** Firewall / Security */
124
+ export declare const FirewallIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
125
+ /** Home */
126
+ export declare const HomeIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
127
+ /** Event */
128
+ export declare const EventIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
129
+ /** Hand Record */
130
+ export declare const HandRecordIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
131
+ /** More */
132
+ export declare const MoreIcon: ({ size, color, style, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Icon';
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type InputState = 'default' | 'focus' | 'error' | 'disabled' | 'typing' | 'typed';
4
+ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
5
+ /** Label text above the input */
6
+ label?: string;
7
+ /** Helper text below the input */
8
+ helperText?: string;
9
+ /** Error message (overrides helperText when present) */
10
+ error?: string;
11
+ /** Left icon element */
12
+ leftIcon?: React.ReactNode;
13
+ /** Right icon element */
14
+ rightIcon?: React.ReactNode;
15
+ /** Input shape */
16
+ shape?: 'rounded' | 'pill';
17
+ /** Full width input */
18
+ fullWidth?: boolean;
19
+ }
20
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from './Input';
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Suit = 'spades' | 'clubs' | 'hearts' | 'diamonds';
4
+ export interface PokerCard {
5
+ suit: Suit;
6
+ rank: string;
7
+ }
8
+ export interface RotatedCardsProps {
9
+ cards: (PokerCard | null)[];
10
+ style?: React.CSSProperties;
11
+ }
12
+ export declare const SuitIcon: ({ suit }: {
13
+ suit: Suit;
14
+ }) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const PokerCard: ({ card, style }: {
16
+ card: PokerCard | null;
17
+ style?: React.CSSProperties;
18
+ }) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const SingleCard: ({ card, style }: {
20
+ card: PokerCard | null;
21
+ style?: React.CSSProperties;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const RotatedCards: ({ cards, style }: RotatedCardsProps & {
24
+ style?: React.CSSProperties;
25
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './PokerCard';
@@ -0,0 +1,62 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface PopupProps {
4
+ /** Whether the popup is open */
5
+ open: boolean;
6
+ /** Callback when popup should close */
7
+ onClose?: () => void;
8
+ /** Popup title */
9
+ title?: string;
10
+ /** Show close button */
11
+ showCloseButton?: boolean;
12
+ /** Popup content */
13
+ children?: React.ReactNode;
14
+ /** Primary action */
15
+ primaryAction?: {
16
+ label: string;
17
+ onClick: () => void;
18
+ variant?: 'primary' | 'danger';
19
+ };
20
+ /** Secondary action */
21
+ secondaryAction?: {
22
+ label: string;
23
+ onClick: () => void;
24
+ };
25
+ /** Close on overlay click */
26
+ closeOnOverlayClick?: boolean;
27
+ /** Custom width */
28
+ width?: number;
29
+ /** Custom style */
30
+ style?: React.CSSProperties;
31
+ }
32
+ export declare const Popup: ({ open, onClose, title, showCloseButton, children, primaryAction, secondaryAction, closeOnOverlayClick, width, style, }: PopupProps) => import("react/jsx-runtime").JSX.Element | null;
33
+ export interface PopupAutocloseProps {
34
+ /** Whether the popup is open */
35
+ open: boolean;
36
+ /** Callback when popup closes */
37
+ onClose?: () => void;
38
+ /** Icon element */
39
+ icon?: React.ReactNode;
40
+ /** Title text */
41
+ title: string;
42
+ /** Title color */
43
+ titleColor?: 'success' | 'error' | 'warning' | 'default';
44
+ /** Description text */
45
+ description?: string;
46
+ /** Auto-close delay in seconds */
47
+ autoCloseDelay?: number;
48
+ /** Show auto-close countdown */
49
+ showCountdown?: boolean;
50
+ /** Custom style */
51
+ style?: React.CSSProperties;
52
+ }
53
+ export declare const PopupAutoclose: ({ open, onClose, icon, title, titleColor, description, autoCloseDelay, showCountdown, style, }: PopupAutocloseProps) => import("react/jsx-runtime").JSX.Element | null;
54
+ export declare const SuccessIcon: ({ size }: {
55
+ size?: number;
56
+ }) => import("react/jsx-runtime").JSX.Element;
57
+ export declare const ErrorIcon: ({ size }: {
58
+ size?: number;
59
+ }) => import("react/jsx-runtime").JSX.Element;
60
+ export declare const WarningIcon: ({ size }: {
61
+ size?: number;
62
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Popup';
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface SideMenuItem {
4
+ /** Unique identifier */
5
+ id: string;
6
+ /** Item label */
7
+ label: string;
8
+ /** Left icon */
9
+ icon?: React.ReactNode;
10
+ /** Right icon */
11
+ rightIcon?: React.ReactNode;
12
+ /** Whether item is selected */
13
+ selected?: boolean;
14
+ /** Disabled state */
15
+ disabled?: boolean;
16
+ /** Item type */
17
+ type?: 'default' | 'rename' | 'selected';
18
+ }
19
+ export interface SideMenuProps {
20
+ /** Search placeholder */
21
+ searchPlaceholder?: string;
22
+ /** Search value */
23
+ searchValue?: string;
24
+ /** Search change handler */
25
+ onSearchChange?: (value: string) => void;
26
+ /** Primary actions (top menu items) */
27
+ primaryActions?: SideMenuItem[];
28
+ /** Conversation records */
29
+ conversations?: SideMenuItem[];
30
+ /** Callback when item is clicked */
31
+ onItemClick?: (id: string) => void;
32
+ /** Callback when conversation options is clicked */
33
+ onConversationOptions?: (id: string) => void;
34
+ /** Custom style */
35
+ style?: React.CSSProperties;
36
+ }
37
+ export declare const SideMenu: ({ searchPlaceholder, searchValue, onSearchChange, primaryActions, conversations, onItemClick, onConversationOptions, style, }: SideMenuProps) => import("react/jsx-runtime").JSX.Element;
38
+ export declare const SideMenuAddIcon: ({ color }: {
39
+ color?: string;
40
+ }) => import("react/jsx-runtime").JSX.Element;
41
+ export declare const SideMenuShareIcon: ({ color }: {
42
+ color?: string;
43
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './SideMenu';
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface SliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> {
4
+ /** Minimum value */
5
+ min?: number;
6
+ /** Maximum value */
7
+ max?: number;
8
+ /** Step increment */
9
+ step?: number;
10
+ /** Current value */
11
+ value?: number;
12
+ /** Default value for uncontrolled usage */
13
+ defaultValue?: number;
14
+ /** Callback when value changes */
15
+ onChange?: (value: number) => void;
16
+ /** Show min/max labels */
17
+ showLabels?: boolean;
18
+ /** Format function for labels */
19
+ formatLabel?: (value: number) => string;
20
+ /** Show value input fields */
21
+ showInputs?: boolean;
22
+ }
23
+ export declare const Slider: ({ min, max, step, value, defaultValue, onChange, showLabels, formatLabel, showInputs, disabled, style, ...props }: SliderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Slider';
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'size'> {
4
+ /** Whether the switch is checked */
5
+ checked?: boolean;
6
+ /** Default checked state for uncontrolled usage */
7
+ defaultChecked?: boolean;
8
+ /** Callback when switch value changes */
9
+ onChange?: (checked: boolean) => void;
10
+ /** Label for the left/off state */
11
+ leftLabel?: string;
12
+ /** Label for the right/on state */
13
+ rightLabel?: string;
14
+ /** Size of the switch */
15
+ size?: 'sm' | 'md';
16
+ }
17
+ export declare const Switch: ({ checked, defaultChecked, onChange, leftLabel, rightLabel, size, disabled, style, id, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Switch';
@@ -0,0 +1,28 @@
1
+ import { default as React, ReactNode } from 'react';
2
+
3
+ export type TabsVariant = 'default' | 'class' | 'pill';
4
+ export interface TabItem {
5
+ /** Unique identifier for the tab */
6
+ id: string;
7
+ /** Tab label */
8
+ label: string;
9
+ /** Tab icon */
10
+ icon?: ReactNode;
11
+ /** Whether the tab is disabled */
12
+ disabled?: boolean;
13
+ }
14
+ export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
15
+ /** Array of tab items */
16
+ tabs: TabItem[];
17
+ /** Currently active tab ID */
18
+ activeTab?: string;
19
+ /** Default active tab ID for uncontrolled usage */
20
+ defaultTab?: string;
21
+ /** Callback when tab changes */
22
+ onChange?: (tabId: string) => void;
23
+ /** Tab style variant */
24
+ variant?: TabsVariant;
25
+ /** Additional tool element to display on the right (only for non-pill variants) */
26
+ tool?: React.ReactNode;
27
+ }
28
+ export declare const Tabs: ({ tabs, activeTab: externalActiveTab, defaultTab, onChange, variant, tool, style, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Tabs';
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type ToastType = 'neutral' | 'info' | 'success' | 'alert';
4
+ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ /** Toast title */
6
+ title: string;
7
+ /** Toast description/message */
8
+ description?: string;
9
+ /** Toast type/variant */
10
+ type?: ToastType;
11
+ /** Action button label */
12
+ actionLabel?: string;
13
+ /** Action button click handler */
14
+ onAction?: () => void;
15
+ /** Close handler */
16
+ onClose?: () => void;
17
+ }
18
+ export declare const Toast: ({ title, description, type, actionLabel, onAction, onClose, style, ...props }: ToastProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Toast';
@@ -0,0 +1,34 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
4
+ /** Toggle label */
5
+ label: string;
6
+ /** Whether the toggle is selected */
7
+ selected?: boolean;
8
+ /** Default selected state for uncontrolled usage */
9
+ defaultSelected?: boolean;
10
+ /** Callback when toggle state changes */
11
+ onChange?: (selected: boolean) => void;
12
+ /** Right icon element */
13
+ rightIcon?: React.ReactNode;
14
+ }
15
+ export declare const Toggle: ({ label, selected, defaultSelected, onChange, rightIcon, disabled, style, ...props }: ToggleProps) => import("react/jsx-runtime").JSX.Element;
16
+ export interface ToggleGroupItem {
17
+ id: string;
18
+ label: string;
19
+ rightIcon?: React.ReactNode;
20
+ disabled?: boolean;
21
+ }
22
+ export interface ToggleGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
23
+ /** Array of toggle items */
24
+ items: ToggleGroupItem[];
25
+ /** Currently selected item ID */
26
+ value?: string;
27
+ /** Default selected item ID for uncontrolled usage */
28
+ defaultValue?: string;
29
+ /** Callback when selection changes */
30
+ onChange?: (value: string) => void;
31
+ /** Allow deselecting (toggle off) */
32
+ allowDeselect?: boolean;
33
+ }
34
+ export declare const ToggleGroup: ({ items, value, defaultValue, onChange, allowDeselect, style, ...props }: ToggleGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Toggle';
package/dist/index.d.ts CHANGED
@@ -1,2 +1,20 @@
1
+ export * from './components/Badge';
1
2
  export * from './components/Button';
3
+ export * from './components/Checkbox';
4
+ export * from './components/Divider';
5
+ export * from './components/Input';
6
+ export * from './components/Slider';
7
+ export * from './components/Switch';
8
+ export * from './components/Tabs';
9
+ export * from './components/Toast';
10
+ export * from './components/Toggle';
11
+ export * from './components/Poker';
12
+ export * from './components/Card';
13
+ export * from './components/BottomNav';
14
+ export * from './components/BottomSheet';
15
+ export * from './components/DropdownMenu';
16
+ export * from './components/Popup';
17
+ export * from './components/SideMenu';
18
+ export * from './components/Icon';
19
+ export * from './components/DatePicker';
2
20
  export * from './tokens';
package/dist/logo.png ADDED
Binary file
@@ -0,0 +1 @@
1
+ export declare const Showcase: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const SpacingTokens: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SpacingTokens;