@drdex0101/water-design-system 2.0.0 → 3.0.2
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 +136 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Poker/PokerCard.d.ts +21 -22
- 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 +10 -1
- package/dist/logo.png +0 -0
- package/dist/pages/IconTokens.d.ts +2 -0
- package/dist/pages/Showcase.d.ts +1 -0
- package/dist/tokens/semantic.d.ts +66 -24
- package/dist/water-design-system.es.js +3869 -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
|
@@ -8,5 +8,14 @@ export * from './components/Switch';
|
|
|
8
8
|
export * from './components/Tabs';
|
|
9
9
|
export * from './components/Toast';
|
|
10
10
|
export * from './components/Toggle';
|
|
11
|
-
export * from './components/
|
|
11
|
+
export * from './components/Card';
|
|
12
|
+
export * from './components/BottomNav';
|
|
13
|
+
export * from './components/BottomSheet';
|
|
14
|
+
export * from './components/DropdownMenu';
|
|
15
|
+
export * from './components/Popup';
|
|
16
|
+
export * from './components/SideMenu';
|
|
17
|
+
export * from './components/Icon';
|
|
18
|
+
export * from './components/DatePicker';
|
|
19
|
+
export type { Suit, RotatedCardsProps, PokerCardProps } from './components/Poker';
|
|
20
|
+
export { PokerCard, SuitIcon, PokerCardComponent, SingleCard, RotatedCards } from './components/Poker';
|
|
12
21
|
export * from './tokens';
|
package/dist/logo.png
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Showcase: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,11 +10,12 @@ export declare const background: {
|
|
|
10
10
|
readonly secondary: "#f7f8f9";
|
|
11
11
|
readonly tertiary: "#eeeff2";
|
|
12
12
|
readonly overlay: "#2a2d3380";
|
|
13
|
-
readonly disabled: "#
|
|
13
|
+
readonly disabled: "#eff0f2";
|
|
14
14
|
readonly success: "#e7f7ed";
|
|
15
15
|
readonly error: "#fdecec";
|
|
16
16
|
readonly warning: "#fef7e6";
|
|
17
17
|
readonly brand: "#2e9dff";
|
|
18
|
+
readonly brandCompliment: "#73bdff";
|
|
18
19
|
readonly brandSubtle: "#eaf5ff";
|
|
19
20
|
readonly accent: "#01bda7";
|
|
20
21
|
readonly accent2: "#e77300";
|
|
@@ -26,11 +27,12 @@ export declare const background: {
|
|
|
26
27
|
readonly secondary: "#101d30";
|
|
27
28
|
readonly tertiary: "#1a3050";
|
|
28
29
|
readonly overlay: "#2a2d33cc";
|
|
29
|
-
readonly disabled: "#
|
|
30
|
+
readonly disabled: "#969ba5";
|
|
30
31
|
readonly success: "#e7f7ed";
|
|
31
32
|
readonly error: "#fdecec";
|
|
32
33
|
readonly warning: "#fef7e6";
|
|
33
34
|
readonly brand: "#2e9dff";
|
|
35
|
+
readonly brandCompliment: "#216fb5";
|
|
34
36
|
readonly brandSubtle: "#eaf5ff";
|
|
35
37
|
readonly accent: "#01a3af";
|
|
36
38
|
readonly accent2: "#e77300";
|
|
@@ -60,7 +62,7 @@ export declare const text: {
|
|
|
60
62
|
readonly secondary: "#eaecef";
|
|
61
63
|
readonly tertiary: "#d0d2d6";
|
|
62
64
|
readonly disabled: "#5a606e";
|
|
63
|
-
readonly placeholder: "#
|
|
65
|
+
readonly placeholder: "#b7bac1";
|
|
64
66
|
readonly success: "#0bad47";
|
|
65
67
|
readonly error: "#ef4444";
|
|
66
68
|
readonly warning: "#f0b100";
|
|
@@ -80,6 +82,7 @@ export declare const border: {
|
|
|
80
82
|
readonly success: "#0bad47";
|
|
81
83
|
readonly error: "#ef4444";
|
|
82
84
|
readonly warning: "#f0b100";
|
|
85
|
+
readonly onBrand: "#ffffff";
|
|
83
86
|
readonly brandSubtle: "#bee1ff";
|
|
84
87
|
};
|
|
85
88
|
readonly dark: {
|
|
@@ -89,6 +92,7 @@ export declare const border: {
|
|
|
89
92
|
readonly success: "#0bad47";
|
|
90
93
|
readonly error: "#ef4444";
|
|
91
94
|
readonly warning: "#f0b100";
|
|
95
|
+
readonly onBrand: "#ffffff";
|
|
92
96
|
readonly brandSubtle: "#2e9dff";
|
|
93
97
|
};
|
|
94
98
|
};
|
|
@@ -102,7 +106,7 @@ export declare const components: {
|
|
|
102
106
|
readonly outlineBg: "#ffffff";
|
|
103
107
|
readonly outlineBorder: "#eaecef";
|
|
104
108
|
readonly outlineLabel: "#464b56";
|
|
105
|
-
readonly disabledBg: "#
|
|
109
|
+
readonly disabledBg: "#eff0f2";
|
|
106
110
|
readonly disabledLabel: "#b7bac1";
|
|
107
111
|
readonly pokerCallBg: "#01bda7";
|
|
108
112
|
readonly pokerCallLabel: "#ffffff";
|
|
@@ -121,7 +125,7 @@ export declare const components: {
|
|
|
121
125
|
readonly outlineBg: "#071427";
|
|
122
126
|
readonly outlineBorder: "#5a606e";
|
|
123
127
|
readonly outlineLabel: "#eaecef";
|
|
124
|
-
readonly disabledBg: "#
|
|
128
|
+
readonly disabledBg: "#969ba5";
|
|
125
129
|
readonly disabledLabel: "#5a606e";
|
|
126
130
|
readonly pokerCallBg: "#01a3af";
|
|
127
131
|
readonly pokerCallLabel: "#ffffff";
|
|
@@ -134,13 +138,30 @@ export declare const components: {
|
|
|
134
138
|
};
|
|
135
139
|
};
|
|
136
140
|
readonly pokerCard: {
|
|
137
|
-
readonly
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
readonly light: {
|
|
142
|
+
readonly bg: "#ffffff";
|
|
143
|
+
readonly bgEmpty: "#6eb3dc80";
|
|
144
|
+
readonly border: "#eaecef";
|
|
145
|
+
readonly club: "#01bda7";
|
|
146
|
+
readonly diamond: "#2e9dff";
|
|
147
|
+
readonly heart: "#ef4444";
|
|
148
|
+
readonly spade: "#464b56";
|
|
149
|
+
readonly playerBg: "#eaf5ff";
|
|
150
|
+
readonly playerBorder: "#bee1ff";
|
|
151
|
+
readonly tableBg: "#bee1ff";
|
|
152
|
+
};
|
|
153
|
+
readonly dark: {
|
|
154
|
+
readonly bg: "#ffffff";
|
|
155
|
+
readonly bgEmpty: "#1a305080";
|
|
156
|
+
readonly border: "#e6fdfe";
|
|
157
|
+
readonly club: "#01bda7";
|
|
158
|
+
readonly diamond: "#2e9dff";
|
|
159
|
+
readonly heart: "#ef4444";
|
|
160
|
+
readonly spade: "#464b56";
|
|
161
|
+
readonly playerBg: "#15263e";
|
|
162
|
+
readonly playerBorder: "#1a3050";
|
|
163
|
+
readonly tableBg: "#15263e";
|
|
164
|
+
};
|
|
144
165
|
};
|
|
145
166
|
};
|
|
146
167
|
export declare const semanticColors: {
|
|
@@ -150,11 +171,12 @@ export declare const semanticColors: {
|
|
|
150
171
|
readonly secondary: "#f7f8f9";
|
|
151
172
|
readonly tertiary: "#eeeff2";
|
|
152
173
|
readonly overlay: "#2a2d3380";
|
|
153
|
-
readonly disabled: "#
|
|
174
|
+
readonly disabled: "#eff0f2";
|
|
154
175
|
readonly success: "#e7f7ed";
|
|
155
176
|
readonly error: "#fdecec";
|
|
156
177
|
readonly warning: "#fef7e6";
|
|
157
178
|
readonly brand: "#2e9dff";
|
|
179
|
+
readonly brandCompliment: "#73bdff";
|
|
158
180
|
readonly brandSubtle: "#eaf5ff";
|
|
159
181
|
readonly accent: "#01bda7";
|
|
160
182
|
readonly accent2: "#e77300";
|
|
@@ -166,11 +188,12 @@ export declare const semanticColors: {
|
|
|
166
188
|
readonly secondary: "#101d30";
|
|
167
189
|
readonly tertiary: "#1a3050";
|
|
168
190
|
readonly overlay: "#2a2d33cc";
|
|
169
|
-
readonly disabled: "#
|
|
191
|
+
readonly disabled: "#969ba5";
|
|
170
192
|
readonly success: "#e7f7ed";
|
|
171
193
|
readonly error: "#fdecec";
|
|
172
194
|
readonly warning: "#fef7e6";
|
|
173
195
|
readonly brand: "#2e9dff";
|
|
196
|
+
readonly brandCompliment: "#216fb5";
|
|
174
197
|
readonly brandSubtle: "#eaf5ff";
|
|
175
198
|
readonly accent: "#01a3af";
|
|
176
199
|
readonly accent2: "#e77300";
|
|
@@ -200,7 +223,7 @@ export declare const semanticColors: {
|
|
|
200
223
|
readonly secondary: "#eaecef";
|
|
201
224
|
readonly tertiary: "#d0d2d6";
|
|
202
225
|
readonly disabled: "#5a606e";
|
|
203
|
-
readonly placeholder: "#
|
|
226
|
+
readonly placeholder: "#b7bac1";
|
|
204
227
|
readonly success: "#0bad47";
|
|
205
228
|
readonly error: "#ef4444";
|
|
206
229
|
readonly warning: "#f0b100";
|
|
@@ -220,6 +243,7 @@ export declare const semanticColors: {
|
|
|
220
243
|
readonly success: "#0bad47";
|
|
221
244
|
readonly error: "#ef4444";
|
|
222
245
|
readonly warning: "#f0b100";
|
|
246
|
+
readonly onBrand: "#ffffff";
|
|
223
247
|
readonly brandSubtle: "#bee1ff";
|
|
224
248
|
};
|
|
225
249
|
readonly dark: {
|
|
@@ -229,6 +253,7 @@ export declare const semanticColors: {
|
|
|
229
253
|
readonly success: "#0bad47";
|
|
230
254
|
readonly error: "#ef4444";
|
|
231
255
|
readonly warning: "#f0b100";
|
|
256
|
+
readonly onBrand: "#ffffff";
|
|
232
257
|
readonly brandSubtle: "#2e9dff";
|
|
233
258
|
};
|
|
234
259
|
};
|
|
@@ -242,7 +267,7 @@ export declare const semanticColors: {
|
|
|
242
267
|
readonly outlineBg: "#ffffff";
|
|
243
268
|
readonly outlineBorder: "#eaecef";
|
|
244
269
|
readonly outlineLabel: "#464b56";
|
|
245
|
-
readonly disabledBg: "#
|
|
270
|
+
readonly disabledBg: "#eff0f2";
|
|
246
271
|
readonly disabledLabel: "#b7bac1";
|
|
247
272
|
readonly pokerCallBg: "#01bda7";
|
|
248
273
|
readonly pokerCallLabel: "#ffffff";
|
|
@@ -261,7 +286,7 @@ export declare const semanticColors: {
|
|
|
261
286
|
readonly outlineBg: "#071427";
|
|
262
287
|
readonly outlineBorder: "#5a606e";
|
|
263
288
|
readonly outlineLabel: "#eaecef";
|
|
264
|
-
readonly disabledBg: "#
|
|
289
|
+
readonly disabledBg: "#969ba5";
|
|
265
290
|
readonly disabledLabel: "#5a606e";
|
|
266
291
|
readonly pokerCallBg: "#01a3af";
|
|
267
292
|
readonly pokerCallLabel: "#ffffff";
|
|
@@ -274,13 +299,30 @@ export declare const semanticColors: {
|
|
|
274
299
|
};
|
|
275
300
|
};
|
|
276
301
|
readonly pokerCard: {
|
|
277
|
-
readonly
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
302
|
+
readonly light: {
|
|
303
|
+
readonly bg: "#ffffff";
|
|
304
|
+
readonly bgEmpty: "#6eb3dc80";
|
|
305
|
+
readonly border: "#eaecef";
|
|
306
|
+
readonly club: "#01bda7";
|
|
307
|
+
readonly diamond: "#2e9dff";
|
|
308
|
+
readonly heart: "#ef4444";
|
|
309
|
+
readonly spade: "#464b56";
|
|
310
|
+
readonly playerBg: "#eaf5ff";
|
|
311
|
+
readonly playerBorder: "#bee1ff";
|
|
312
|
+
readonly tableBg: "#bee1ff";
|
|
313
|
+
};
|
|
314
|
+
readonly dark: {
|
|
315
|
+
readonly bg: "#ffffff";
|
|
316
|
+
readonly bgEmpty: "#1a305080";
|
|
317
|
+
readonly border: "#e6fdfe";
|
|
318
|
+
readonly club: "#01bda7";
|
|
319
|
+
readonly diamond: "#2e9dff";
|
|
320
|
+
readonly heart: "#ef4444";
|
|
321
|
+
readonly spade: "#464b56";
|
|
322
|
+
readonly playerBg: "#15263e";
|
|
323
|
+
readonly playerBorder: "#1a3050";
|
|
324
|
+
readonly tableBg: "#15263e";
|
|
325
|
+
};
|
|
284
326
|
};
|
|
285
327
|
};
|
|
286
328
|
};
|