@drdex0101/water-design-system 1.0.1 → 2.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 (34) 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/Button/Button.d.ts +20 -2
  5. package/dist/components/Checkbox/Checkbox.d.ts +13 -0
  6. package/dist/components/Checkbox/index.d.ts +1 -0
  7. package/dist/components/Divider/Divider.d.ts +9 -0
  8. package/dist/components/Divider/index.d.ts +1 -0
  9. package/dist/components/Input/Input.d.ts +20 -0
  10. package/dist/components/Input/index.d.ts +1 -0
  11. package/dist/components/Poker/PokerCard.d.ts +28 -0
  12. package/dist/components/Poker/PokerPlayer.d.ts +38 -0
  13. package/dist/components/Poker/PokerStatusIndicator.d.ts +28 -0
  14. package/dist/components/Poker/PokerTable.d.ts +39 -0
  15. package/dist/components/Poker/index.d.ts +4 -0
  16. package/dist/components/Slider/Slider.d.ts +23 -0
  17. package/dist/components/Slider/index.d.ts +1 -0
  18. package/dist/components/Switch/Switch.d.ts +17 -0
  19. package/dist/components/Switch/index.d.ts +1 -0
  20. package/dist/components/Tabs/Tabs.d.ts +26 -0
  21. package/dist/components/Tabs/index.d.ts +1 -0
  22. package/dist/components/Toast/Toast.d.ts +18 -0
  23. package/dist/components/Toast/index.d.ts +1 -0
  24. package/dist/components/Toggle/Toggle.d.ts +34 -0
  25. package/dist/components/Toggle/index.d.ts +1 -0
  26. package/dist/index.d.ts +10 -0
  27. package/dist/pages/SpacingTokens.d.ts +2 -0
  28. package/dist/tokens/colors.d.ts +38 -204
  29. package/dist/tokens/index.d.ts +1 -5
  30. package/dist/tokens/semantic.d.ts +201 -114
  31. package/dist/tokens/spacing.d.ts +54 -0
  32. package/dist/water-design-system.es.js +2336 -582
  33. package/dist/water-design-system.umd.js +15 -4
  34. package/package.json +3 -2
@@ -3,92 +3,144 @@
3
3
  *
4
4
  * Extracted from Figma Water Design System
5
5
  * Semantic colors map primitive colors to their functional use.
6
- *
7
- * Usage Rules:
8
- * 1. Semantic colors describe the color itself (e.g., Blue), not its function (e.g., Action)
9
- * 2. When creating standalone components or designing calculated targets, choose Gray-900 or Blue-500 as base (Primitive Color)
10
- * 3. Semantic colors must match human visual cognition and brand requirements
11
- * 4. Semantic colors do not exist in isolation, they must work within the system. For example,
12
- * on bg-secondary background, prioritize text-secondary pairing to maintain hierarchy
13
6
  */
14
7
  export declare const background: {
15
8
  readonly light: {
16
9
  readonly default: "#ffffff";
17
10
  readonly secondary: "#f7f8f9";
18
- readonly tertiary: "#f3f4f6";
19
- readonly overlay: "#2a2d33";
20
- readonly disabled: "#eeeff2";
11
+ readonly tertiary: "#eeeff2";
12
+ readonly overlay: "#2a2d3380";
13
+ readonly disabled: "#cfd1d5";
21
14
  readonly success: "#e7f7ed";
22
15
  readonly error: "#fdecec";
23
16
  readonly warning: "#fef7e6";
24
17
  readonly brand: "#2e9dff";
25
18
  readonly brandSubtle: "#eaf5ff";
26
- readonly accent: "#e77300";
19
+ readonly accent: "#01bda7";
27
20
  readonly accent2: "#e77300";
21
+ readonly accent3: "#ef4444";
22
+ readonly inputfield: "#ffffff";
28
23
  };
29
24
  readonly dark: {
30
- readonly default: "#2a2d33";
31
- readonly secondary: "#363a43";
32
- readonly tertiary: "#464b56";
33
- readonly overlay: "#000000";
34
- readonly disabled: "#464b56";
35
- readonly success: "#05491e";
36
- readonly error: "#641d1d";
37
- readonly warning: "#654a00";
25
+ readonly default: "#071427";
26
+ readonly secondary: "#101d30";
27
+ readonly tertiary: "#1a3050";
28
+ readonly overlay: "#2a2d33cc";
29
+ readonly disabled: "#828894";
30
+ readonly success: "#e7f7ed";
31
+ readonly error: "#fdecec";
32
+ readonly warning: "#fef7e6";
38
33
  readonly brand: "#2e9dff";
39
- readonly brandSubtle: "#13426b";
40
- readonly accent: "#e77300";
34
+ readonly brandSubtle: "#eaf5ff";
35
+ readonly accent: "#01a3af";
41
36
  readonly accent2: "#e77300";
37
+ readonly accent3: "#ef4444";
38
+ readonly inputfield: "#071427";
42
39
  };
43
40
  };
44
41
  export declare const text: {
45
42
  readonly light: {
46
- readonly primary: "#2a2d33";
47
- readonly secondary: "#5a606e";
48
- readonly tertiary: "#636a79";
49
- readonly disabled: "#828894";
50
- readonly placeholder: "#828894";
43
+ readonly primary: "#0f0f0f";
44
+ readonly secondary: "#464b56";
45
+ readonly tertiary: "#828894";
46
+ readonly disabled: "#b7bac1";
47
+ readonly placeholder: "#969ba5";
51
48
  readonly success: "#0a9d41";
52
- readonly error: "#d93e3e";
53
- readonly warning: "#aa7e00";
54
- readonly link: "#2e9dff";
49
+ readonly error: "#ef4444";
50
+ readonly warning: "#f0b100";
51
+ readonly link: "#2a8fe8";
55
52
  readonly brand: "#2e9dff";
56
53
  readonly onBrand: "#ffffff";
57
- readonly pokerCall: "#0bad47";
54
+ readonly accent: "#f8db8a";
55
+ readonly pokerCall: "#01bda7";
58
56
  readonly pokerRaise: "#e77300";
59
57
  };
60
58
  readonly dark: {
61
59
  readonly primary: "#ffffff";
62
- readonly secondary: "#969ba5";
63
- readonly tertiary: "#828894";
64
- readonly disabled: "#636a79";
65
- readonly placeholder: "#636a79";
66
- readonly success: "#3cbd6c";
67
- readonly error: "#f26969";
68
- readonly warning: "#f3c133";
69
- readonly link: "#58b1ff";
70
- readonly brand: "#58b1ff";
60
+ readonly secondary: "#eaecef";
61
+ readonly tertiary: "#d0d2d6";
62
+ readonly disabled: "#5a606e";
63
+ readonly placeholder: "#cfd1d5";
64
+ readonly success: "#0bad47";
65
+ readonly error: "#ef4444";
66
+ readonly warning: "#f0b100";
67
+ readonly link: "#2a8fe8";
68
+ readonly brand: "#2e9dff";
71
69
  readonly onBrand: "#ffffff";
72
- readonly pokerCall: "#3cbd6c";
70
+ readonly accent: "#f8db8a";
71
+ readonly pokerCall: "#34cab9";
73
72
  readonly pokerRaise: "#ec8f33";
74
73
  };
75
74
  };
76
75
  export declare const border: {
77
76
  readonly light: {
78
- readonly primary: "#969ba5";
79
- readonly subtle: "#b7bac1";
77
+ readonly primary: "#eaecef";
78
+ readonly subtle: "#f7f8f9";
80
79
  readonly focus: "#2e9dff";
81
80
  readonly success: "#0bad47";
82
81
  readonly error: "#ef4444";
83
82
  readonly warning: "#f0b100";
83
+ readonly brandSubtle: "#bee1ff";
84
84
  };
85
85
  readonly dark: {
86
86
  readonly primary: "#5a606e";
87
- readonly subtle: "#464b56";
88
- readonly focus: "#58b1ff";
89
- readonly success: "#3cbd6c";
90
- readonly error: "#f26969";
91
- readonly warning: "#f3c133";
87
+ readonly subtle: "#363a43";
88
+ readonly focus: "#2e9dff";
89
+ readonly success: "#0bad47";
90
+ readonly error: "#ef4444";
91
+ readonly warning: "#f0b100";
92
+ readonly brandSubtle: "#2e9dff";
93
+ };
94
+ };
95
+ export declare const components: {
96
+ readonly button: {
97
+ readonly light: {
98
+ readonly primaryBg: "#2e9dff";
99
+ readonly primaryLabel: "#ffffff";
100
+ readonly secondaryBg: "#eeeff2";
101
+ readonly secondaryLabel: "#464b56";
102
+ readonly outlineBg: "#ffffff";
103
+ readonly outlineBorder: "#eaecef";
104
+ readonly outlineLabel: "#464b56";
105
+ readonly disabledBg: "#cfd1d5";
106
+ readonly disabledLabel: "#b7bac1";
107
+ readonly pokerCallBg: "#01bda7";
108
+ readonly pokerCallLabel: "#ffffff";
109
+ readonly pokerRaiseBg: "#e77300";
110
+ readonly pokerRaiseLabel: "#ffffff";
111
+ readonly warningBg: "#ef4444";
112
+ readonly warningLabel: "#ffffff";
113
+ readonly hoverOverlay: "#0000001a";
114
+ readonly pressedOverlay: "#00000033";
115
+ };
116
+ readonly dark: {
117
+ readonly primaryBg: "#2e9dff";
118
+ readonly primaryLabel: "#ffffff";
119
+ readonly secondaryBg: "#1a3050";
120
+ readonly secondaryLabel: "#eaecef";
121
+ readonly outlineBg: "#071427";
122
+ readonly outlineBorder: "#5a606e";
123
+ readonly outlineLabel: "#eaecef";
124
+ readonly disabledBg: "#828894";
125
+ readonly disabledLabel: "#5a606e";
126
+ readonly pokerCallBg: "#01a3af";
127
+ readonly pokerCallLabel: "#ffffff";
128
+ readonly pokerRaiseBg: "#e77300";
129
+ readonly pokerRaiseLabel: "#ffffff";
130
+ readonly warningBg: "#ef4444";
131
+ readonly warningLabel: "#ffffff";
132
+ readonly hoverOverlay: "#ffffff1a";
133
+ readonly pressedOverlay: "#00000033";
134
+ };
135
+ };
136
+ readonly pokerCard: {
137
+ readonly bg: "#ffffff";
138
+ readonly bgEmpty: "#6eb3dc80";
139
+ readonly border: "#eaecef";
140
+ readonly club: "#01bda7";
141
+ readonly diamond: "#2e9dff";
142
+ readonly heart: "#ef4444";
143
+ readonly spade: "#464b56";
92
144
  };
93
145
  };
94
146
  export declare const semanticColors: {
@@ -96,113 +148,148 @@ export declare const semanticColors: {
96
148
  readonly light: {
97
149
  readonly default: "#ffffff";
98
150
  readonly secondary: "#f7f8f9";
99
- readonly tertiary: "#f3f4f6";
100
- readonly overlay: "#2a2d33";
101
- readonly disabled: "#eeeff2";
151
+ readonly tertiary: "#eeeff2";
152
+ readonly overlay: "#2a2d3380";
153
+ readonly disabled: "#cfd1d5";
102
154
  readonly success: "#e7f7ed";
103
155
  readonly error: "#fdecec";
104
156
  readonly warning: "#fef7e6";
105
157
  readonly brand: "#2e9dff";
106
158
  readonly brandSubtle: "#eaf5ff";
107
- readonly accent: "#e77300";
159
+ readonly accent: "#01bda7";
108
160
  readonly accent2: "#e77300";
161
+ readonly accent3: "#ef4444";
162
+ readonly inputfield: "#ffffff";
109
163
  };
110
164
  readonly dark: {
111
- readonly default: "#2a2d33";
112
- readonly secondary: "#363a43";
113
- readonly tertiary: "#464b56";
114
- readonly overlay: "#000000";
115
- readonly disabled: "#464b56";
116
- readonly success: "#05491e";
117
- readonly error: "#641d1d";
118
- readonly warning: "#654a00";
165
+ readonly default: "#071427";
166
+ readonly secondary: "#101d30";
167
+ readonly tertiary: "#1a3050";
168
+ readonly overlay: "#2a2d33cc";
169
+ readonly disabled: "#828894";
170
+ readonly success: "#e7f7ed";
171
+ readonly error: "#fdecec";
172
+ readonly warning: "#fef7e6";
119
173
  readonly brand: "#2e9dff";
120
- readonly brandSubtle: "#13426b";
121
- readonly accent: "#e77300";
174
+ readonly brandSubtle: "#eaf5ff";
175
+ readonly accent: "#01a3af";
122
176
  readonly accent2: "#e77300";
177
+ readonly accent3: "#ef4444";
178
+ readonly inputfield: "#071427";
123
179
  };
124
180
  };
125
181
  readonly text: {
126
182
  readonly light: {
127
- readonly primary: "#2a2d33";
128
- readonly secondary: "#5a606e";
129
- readonly tertiary: "#636a79";
130
- readonly disabled: "#828894";
131
- readonly placeholder: "#828894";
183
+ readonly primary: "#0f0f0f";
184
+ readonly secondary: "#464b56";
185
+ readonly tertiary: "#828894";
186
+ readonly disabled: "#b7bac1";
187
+ readonly placeholder: "#969ba5";
132
188
  readonly success: "#0a9d41";
133
- readonly error: "#d93e3e";
134
- readonly warning: "#aa7e00";
135
- readonly link: "#2e9dff";
189
+ readonly error: "#ef4444";
190
+ readonly warning: "#f0b100";
191
+ readonly link: "#2a8fe8";
136
192
  readonly brand: "#2e9dff";
137
193
  readonly onBrand: "#ffffff";
138
- readonly pokerCall: "#0bad47";
194
+ readonly accent: "#f8db8a";
195
+ readonly pokerCall: "#01bda7";
139
196
  readonly pokerRaise: "#e77300";
140
197
  };
141
198
  readonly dark: {
142
199
  readonly primary: "#ffffff";
143
- readonly secondary: "#969ba5";
144
- readonly tertiary: "#828894";
145
- readonly disabled: "#636a79";
146
- readonly placeholder: "#636a79";
147
- readonly success: "#3cbd6c";
148
- readonly error: "#f26969";
149
- readonly warning: "#f3c133";
150
- readonly link: "#58b1ff";
151
- readonly brand: "#58b1ff";
200
+ readonly secondary: "#eaecef";
201
+ readonly tertiary: "#d0d2d6";
202
+ readonly disabled: "#5a606e";
203
+ readonly placeholder: "#cfd1d5";
204
+ readonly success: "#0bad47";
205
+ readonly error: "#ef4444";
206
+ readonly warning: "#f0b100";
207
+ readonly link: "#2a8fe8";
208
+ readonly brand: "#2e9dff";
152
209
  readonly onBrand: "#ffffff";
153
- readonly pokerCall: "#3cbd6c";
210
+ readonly accent: "#f8db8a";
211
+ readonly pokerCall: "#34cab9";
154
212
  readonly pokerRaise: "#ec8f33";
155
213
  };
156
214
  };
157
215
  readonly border: {
158
216
  readonly light: {
159
- readonly primary: "#969ba5";
160
- readonly subtle: "#b7bac1";
217
+ readonly primary: "#eaecef";
218
+ readonly subtle: "#f7f8f9";
161
219
  readonly focus: "#2e9dff";
162
220
  readonly success: "#0bad47";
163
221
  readonly error: "#ef4444";
164
222
  readonly warning: "#f0b100";
223
+ readonly brandSubtle: "#bee1ff";
165
224
  };
166
225
  readonly dark: {
167
226
  readonly primary: "#5a606e";
168
- readonly subtle: "#464b56";
169
- readonly focus: "#58b1ff";
170
- readonly success: "#3cbd6c";
171
- readonly error: "#f26969";
172
- readonly warning: "#f3c133";
227
+ readonly subtle: "#363a43";
228
+ readonly focus: "#2e9dff";
229
+ readonly success: "#0bad47";
230
+ readonly error: "#ef4444";
231
+ readonly warning: "#f0b100";
232
+ readonly brandSubtle: "#2e9dff";
233
+ };
234
+ };
235
+ readonly components: {
236
+ readonly button: {
237
+ readonly light: {
238
+ readonly primaryBg: "#2e9dff";
239
+ readonly primaryLabel: "#ffffff";
240
+ readonly secondaryBg: "#eeeff2";
241
+ readonly secondaryLabel: "#464b56";
242
+ readonly outlineBg: "#ffffff";
243
+ readonly outlineBorder: "#eaecef";
244
+ readonly outlineLabel: "#464b56";
245
+ readonly disabledBg: "#cfd1d5";
246
+ readonly disabledLabel: "#b7bac1";
247
+ readonly pokerCallBg: "#01bda7";
248
+ readonly pokerCallLabel: "#ffffff";
249
+ readonly pokerRaiseBg: "#e77300";
250
+ readonly pokerRaiseLabel: "#ffffff";
251
+ readonly warningBg: "#ef4444";
252
+ readonly warningLabel: "#ffffff";
253
+ readonly hoverOverlay: "#0000001a";
254
+ readonly pressedOverlay: "#00000033";
255
+ };
256
+ readonly dark: {
257
+ readonly primaryBg: "#2e9dff";
258
+ readonly primaryLabel: "#ffffff";
259
+ readonly secondaryBg: "#1a3050";
260
+ readonly secondaryLabel: "#eaecef";
261
+ readonly outlineBg: "#071427";
262
+ readonly outlineBorder: "#5a606e";
263
+ readonly outlineLabel: "#eaecef";
264
+ readonly disabledBg: "#828894";
265
+ readonly disabledLabel: "#5a606e";
266
+ readonly pokerCallBg: "#01a3af";
267
+ readonly pokerCallLabel: "#ffffff";
268
+ readonly pokerRaiseBg: "#e77300";
269
+ readonly pokerRaiseLabel: "#ffffff";
270
+ readonly warningBg: "#ef4444";
271
+ readonly warningLabel: "#ffffff";
272
+ readonly hoverOverlay: "#ffffff1a";
273
+ readonly pressedOverlay: "#00000033";
274
+ };
275
+ };
276
+ readonly pokerCard: {
277
+ readonly bg: "#ffffff";
278
+ readonly bgEmpty: "#6eb3dc80";
279
+ readonly border: "#eaecef";
280
+ readonly club: "#01bda7";
281
+ readonly diamond: "#2e9dff";
282
+ readonly heart: "#ef4444";
283
+ readonly spade: "#464b56";
173
284
  };
174
285
  };
175
286
  };
176
287
  export declare const bgDefault: "#ffffff";
177
288
  export declare const bgSecondary: "#f7f8f9";
178
- export declare const bgTertiary: "#f3f4f6";
179
- export declare const bgOverlay: "#2a2d33";
180
- export declare const bgDisabled: "#eeeff2";
181
- export declare const bgSuccess: "#e7f7ed";
182
- export declare const bgError: "#fdecec";
183
- export declare const bgWarning: "#fef7e6";
289
+ export declare const bgTertiary: "#eeeff2";
184
290
  export declare const bgBrand: "#2e9dff";
185
- export declare const bgBrandSubtle: "#eaf5ff";
186
- export declare const bgAccent: "#e77300";
187
- export declare const textPrimary: "#2a2d33";
188
- export declare const textSecondary: "#5a606e";
189
- export declare const textTertiary: "#636a79";
190
- export declare const textDisabled: "#828894";
191
- export declare const textPlaceholder: "#828894";
192
- export declare const textSuccess: "#0a9d41";
193
- export declare const textError: "#d93e3e";
194
- export declare const textWarning: "#aa7e00";
195
- export declare const textLink: "#2e9dff";
196
- export declare const textBrand: "#2e9dff";
291
+ export declare const textPrimary: "#0f0f0f";
292
+ export declare const textSecondary: "#464b56";
197
293
  export declare const textOnBrand: "#ffffff";
198
- export declare const borderPrimary: "#969ba5";
199
- export declare const borderSubtle: "#b7bac1";
200
- export declare const borderFocus: "#2e9dff";
201
- export declare const borderSuccess: "#0bad47";
202
- export declare const borderError: "#ef4444";
203
- export declare const borderWarning: "#f0b100";
204
- export type BackgroundColor = keyof typeof background.light;
205
- export type TextColor = keyof typeof text.light;
206
- export type BorderColor = keyof typeof border.light;
207
294
  export type ThemeMode = 'light' | 'dark';
208
295
  export type SemanticColors = typeof semanticColors;
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Water Design System - Spacing & Radius Tokens
3
+ *
4
+ * Extracted from Figma Water Design System
5
+ * Units are in rem (1rem = 16px)
6
+ */
7
+ export declare const spacing: {
8
+ readonly p0: "0rem";
9
+ readonly p1: "0.25rem";
10
+ readonly p2: "0.5rem";
11
+ readonly p3: "0.75rem";
12
+ readonly p4: "1rem";
13
+ readonly p5: "1.25rem";
14
+ readonly p6: "1.5rem";
15
+ readonly p7: "1.75rem";
16
+ readonly p8: "2rem";
17
+ readonly p9: "2.25rem";
18
+ readonly p10: "2.5rem";
19
+ readonly p11: "2.75rem";
20
+ readonly p12: "3rem";
21
+ };
22
+ export declare const radius: {
23
+ readonly xs: "0.25rem";
24
+ readonly sm: "0.5rem";
25
+ readonly md: "0.75rem";
26
+ readonly lg: "1rem";
27
+ readonly xl: "1.75rem";
28
+ readonly rounded: "624.9375rem";
29
+ };
30
+ export declare const spacingTokens: {
31
+ readonly spacing: {
32
+ readonly p0: "0rem";
33
+ readonly p1: "0.25rem";
34
+ readonly p2: "0.5rem";
35
+ readonly p3: "0.75rem";
36
+ readonly p4: "1rem";
37
+ readonly p5: "1.25rem";
38
+ readonly p6: "1.5rem";
39
+ readonly p7: "1.75rem";
40
+ readonly p8: "2rem";
41
+ readonly p9: "2.25rem";
42
+ readonly p10: "2.5rem";
43
+ readonly p11: "2.75rem";
44
+ readonly p12: "3rem";
45
+ };
46
+ readonly radius: {
47
+ readonly xs: "0.25rem";
48
+ readonly sm: "0.5rem";
49
+ readonly md: "0.75rem";
50
+ readonly lg: "1rem";
51
+ readonly xl: "1.75rem";
52
+ readonly rounded: "624.9375rem";
53
+ };
54
+ };