@drdex0101/water-design-system 2.0.0 → 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.
- package/dist/components/BottomNav/BottomNav.d.ts +66 -0
- package/dist/components/BottomNav/index.d.ts +1 -0
- package/dist/components/BottomSheet/BottomSheet.d.ts +47 -0
- package/dist/components/BottomSheet/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +149 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/DatePicker/Calendar.d.ts +21 -0
- package/dist/components/DatePicker/DatePicker.d.ts +44 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +78 -0
- package/dist/components/DropdownMenu/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +132 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Poker/PokerCard.d.ts +20 -23
- package/dist/components/Poker/index.d.ts +0 -3
- package/dist/components/Popup/Popup.d.ts +62 -0
- package/dist/components/Popup/index.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.d.ts +43 -0
- package/dist/components/SideMenu/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +8 -6
- package/dist/index.d.ts +8 -0
- package/dist/logo.png +0 -0
- package/dist/pages/Showcase.d.ts +1 -0
- package/dist/water-design-system.es.js +3792 -1639
- package/dist/water-design-system.umd.js +34 -14
- package/package.json +1 -1
- package/dist/components/Poker/PokerPlayer.d.ts +0 -38
- package/dist/components/Poker/PokerStatusIndicator.d.ts +0 -28
- package/dist/components/Poker/PokerTable.d.ts +0 -39
|
@@ -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';
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
export type TabsVariant = 'default' | '
|
|
3
|
+
export type TabsVariant = 'default' | 'class' | 'pill';
|
|
4
4
|
export interface TabItem {
|
|
5
5
|
/** Unique identifier for the tab */
|
|
6
6
|
id: string;
|
|
7
7
|
/** Tab label */
|
|
8
8
|
label: string;
|
|
9
|
+
/** Tab icon */
|
|
10
|
+
icon?: ReactNode;
|
|
9
11
|
/** Whether the tab is disabled */
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
}
|
|
12
14
|
export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
13
15
|
/** Array of tab items */
|
|
14
|
-
|
|
16
|
+
tabs: TabItem[];
|
|
15
17
|
/** Currently active tab ID */
|
|
16
18
|
activeTab?: string;
|
|
17
19
|
/** Default active tab ID for uncontrolled usage */
|
|
18
|
-
|
|
20
|
+
defaultTab?: string;
|
|
19
21
|
/** Callback when tab changes */
|
|
20
22
|
onChange?: (tabId: string) => void;
|
|
21
23
|
/** Tab style variant */
|
|
22
24
|
variant?: TabsVariant;
|
|
23
|
-
/** Additional tool element to display on the right */
|
|
25
|
+
/** Additional tool element to display on the right (only for non-pill variants) */
|
|
24
26
|
tool?: React.ReactNode;
|
|
25
27
|
}
|
|
26
|
-
export declare const Tabs: ({
|
|
28
|
+
export declare const Tabs: ({ tabs, activeTab: externalActiveTab, defaultTab, onChange, variant, tool, style, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,12 @@ export * from './components/Tabs';
|
|
|
9
9
|
export * from './components/Toast';
|
|
10
10
|
export * from './components/Toggle';
|
|
11
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';
|
|
12
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;
|