@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.
Files changed (31) hide show
  1. package/dist/components/BottomNav/BottomNav.d.ts +66 -0
  2. package/dist/components/BottomNav/index.d.ts +1 -0
  3. package/dist/components/BottomSheet/BottomSheet.d.ts +47 -0
  4. package/dist/components/BottomSheet/index.d.ts +1 -0
  5. package/dist/components/Card/Card.d.ts +149 -0
  6. package/dist/components/Card/index.d.ts +1 -0
  7. package/dist/components/DatePicker/Calendar.d.ts +21 -0
  8. package/dist/components/DatePicker/DatePicker.d.ts +44 -0
  9. package/dist/components/DatePicker/index.d.ts +2 -0
  10. package/dist/components/DropdownMenu/DropdownMenu.d.ts +78 -0
  11. package/dist/components/DropdownMenu/index.d.ts +1 -0
  12. package/dist/components/Icon/Icon.d.ts +136 -0
  13. package/dist/components/Icon/index.d.ts +1 -0
  14. package/dist/components/Poker/PokerCard.d.ts +21 -22
  15. package/dist/components/Poker/index.d.ts +0 -3
  16. package/dist/components/Popup/Popup.d.ts +62 -0
  17. package/dist/components/Popup/index.d.ts +1 -0
  18. package/dist/components/SideMenu/SideMenu.d.ts +43 -0
  19. package/dist/components/SideMenu/index.d.ts +1 -0
  20. package/dist/components/Tabs/Tabs.d.ts +8 -6
  21. package/dist/index.d.ts +10 -1
  22. package/dist/logo.png +0 -0
  23. package/dist/pages/IconTokens.d.ts +2 -0
  24. package/dist/pages/Showcase.d.ts +1 -0
  25. package/dist/tokens/semantic.d.ts +66 -24
  26. package/dist/water-design-system.es.js +3869 -1639
  27. package/dist/water-design-system.umd.js +34 -14
  28. package/package.json +1 -1
  29. package/dist/components/Poker/PokerPlayer.d.ts +0 -38
  30. package/dist/components/Poker/PokerStatusIndicator.d.ts +0 -28
  31. package/dist/components/Poker/PokerTable.d.ts +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drdex0101/water-design-system",
3
- "version": "2.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "A design system library for Water project",
5
5
  "main": "./dist/water-design-system.umd.js",
6
6
  "module": "./dist/water-design-system.es.js",
@@ -1,38 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export type PokerPlayerState = 'start' | 'default' | 'showRange' | 'flip' | 'fold';
4
- export interface PokerPlayerProps {
5
- /** Player state */
6
- state?: PokerPlayerState;
7
- /** Whether this is the hero (main player) */
8
- isHero?: boolean;
9
- /** Player name (optional) */
10
- playerName?: string;
11
- /** Whether the player is selected */
12
- selected?: boolean;
13
- /** Player position label (e.g., "BTN", "SB", "BB", "UTG") */
14
- position?: string;
15
- /** Player stack size */
16
- stack?: string;
17
- /** Cards to show (for flip/showRange states) */
18
- cards?: Array<{
19
- suit: string;
20
- value: string;
21
- }>;
22
- /** Click handler */
23
- onClick?: () => void;
24
- /** Custom style */
25
- style?: React.CSSProperties;
26
- }
27
- export declare const PokerPlayer: ({ state, isHero, playerName, selected, position, stack, cards, onClick, style, }: PokerPlayerProps) => import("react/jsx-runtime").JSX.Element;
28
- export interface PokerPlayerCircleProps {
29
- /** Whether this is the hero */
30
- isHero?: boolean;
31
- /** Whether selected */
32
- selected?: boolean;
33
- /** Click handler */
34
- onClick?: () => void;
35
- /** Custom style */
36
- style?: React.CSSProperties;
37
- }
38
- export declare const PokerPlayerCircle: ({ isHero, selected, onClick, style, }: PokerPlayerCircleProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,28 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export type PokerActionType = 'bet' | 'raise' | 'call' | 'fold' | 'allin' | 'waiting';
4
- export interface PokerStatusIndicatorProps {
5
- /** Action type */
6
- action: PokerActionType;
7
- /** Position label (e.g., "SB", "BB", "UTG") */
8
- position?: string;
9
- /** Bet amount in BB */
10
- amount?: string;
11
- /** Custom style */
12
- style?: React.CSSProperties;
13
- }
14
- export declare const PokerStatusIndicator: ({ action, position, amount, style, }: PokerStatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
15
- export interface PokerChipProps {
16
- /** Amount (e.g., "-30 BB") */
17
- amount: string;
18
- /** Color - positive or negative */
19
- variant?: 'positive' | 'negative';
20
- /** Custom style */
21
- style?: React.CSSProperties;
22
- }
23
- export declare const PokerChip: ({ amount, variant, style }: PokerChipProps) => import("react/jsx-runtime").JSX.Element;
24
- export interface DealerButtonProps {
25
- /** Custom style */
26
- style?: React.CSSProperties;
27
- }
28
- export declare const DealerButton: ({ style }: DealerButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,39 +0,0 @@
1
- import { default as React } from 'react';
2
- import { PokerCardProps } from './PokerCard';
3
- import { PokerPlayerProps } from './PokerPlayer';
4
-
5
- export type PokerTableOrientation = 'vertical' | 'horizontal';
6
- export interface PokerTablePlayer extends PokerPlayerProps {
7
- /** Player seat position (0-8, clockwise from bottom) */
8
- seat: number;
9
- }
10
- export interface PokerTableProps {
11
- /** Table orientation */
12
- orientation?: PokerTableOrientation;
13
- /** Players at the table */
14
- players?: PokerTablePlayer[];
15
- /** Community cards */
16
- communityCards?: PokerCardProps[];
17
- /** Pot size in BB */
18
- pot?: string;
19
- /** Blinds info (e.g., "100 / 200 / 100") */
20
- blinds?: string;
21
- /** Dealer seat position */
22
- dealerSeat?: number;
23
- /** Click handler for empty seats */
24
- onSeatClick?: (seat: number) => void;
25
- /** Click handler for cards */
26
- onCardClick?: (index: number) => void;
27
- /** Custom style */
28
- style?: React.CSSProperties;
29
- }
30
- export declare const PokerTable: ({ orientation, players, communityCards, pot, blinds, dealerSeat, onSeatClick, onCardClick, style, }: PokerTableProps) => import("react/jsx-runtime").JSX.Element;
31
- export interface PokerTablePreviewProps {
32
- /** Table orientation */
33
- orientation?: PokerTableOrientation;
34
- /** Scale factor */
35
- scale?: number;
36
- /** Custom style */
37
- style?: React.CSSProperties;
38
- }
39
- export declare const PokerTablePreview: ({ orientation, scale, style, }: PokerTablePreviewProps) => import("react/jsx-runtime").JSX.Element;