@opexa/portal-components 0.0.17 → 0.0.18
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/client/hooks/index.d.ts +3 -0
- package/dist/client/hooks/useGlobalStore.d.ts +11 -1
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +81 -35
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +6 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
- package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
- package/dist/client/hooks/useMessagesQuery.js +1 -0
- package/dist/client/hooks/useMessagesQuery.mjs +47 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +38 -32
- package/dist/components/Account/Account.d.ts +3 -1
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +163 -96
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +6 -6
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +357 -325
- package/dist/components/Bonus/Bonus.client.d.ts +2 -0
- package/dist/components/Bonus/Bonus.d.ts +10 -0
- package/dist/components/Bonus/index.d.ts +1 -0
- package/dist/components/Bonuses/Bonuses.d.ts +15 -0
- package/dist/components/Bonuses/Bonuses.js +1 -0
- package/dist/components/Bonuses/Bonuses.mjs +125 -0
- package/dist/components/Bonuses/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +11 -8
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +16 -13
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +18 -15
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +9 -6
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +46 -46
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +26 -23
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -76
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +118 -108
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +75 -65
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -86
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +11 -8
- package/dist/components/Empty/Empty.js +1 -1
- package/dist/components/Empty/Empty.mjs +14 -10
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +42 -39
- package/dist/components/Games/Games.client.js +1 -1
- package/dist/components/Games/Games.client.mjs +47 -44
- package/dist/components/Games/Games.d.ts +7 -2
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +4 -2
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +38 -34
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +3 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +282 -124
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +11 -8
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
- package/dist/components/Jackpots/Jackpots.d.ts +8 -0
- package/dist/components/Jackpots/index.d.ts +1 -0
- package/dist/components/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +7 -7
- package/dist/components/Messages/MessageItem.d.ts +4 -0
- package/dist/components/Messages/MessageItem.js +1 -0
- package/dist/components/Messages/MessageItem.mjs +66 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -0
- package/dist/components/Messages/MessagePopup.js +1 -0
- package/dist/components/Messages/MessagePopup.mjs +89 -0
- package/dist/components/Messages/Messages.d.ts +1 -0
- package/dist/components/Messages/Messages.js +1 -0
- package/dist/components/Messages/Messages.mjs +147 -0
- package/dist/components/Messages/index.d.ts +1 -0
- package/dist/components/Messages/utils.d.ts +3 -0
- package/dist/components/Messages/utils.js +1 -0
- package/dist/components/Messages/utils.mjs +16 -0
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +27 -24
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +7 -7
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +10 -7
- package/dist/components/Promos/Promos.d.ts +4 -2
- package/dist/components/SignIn/SignIn.d.ts +0 -1
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +32 -41
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +167 -160
- package/dist/components/SignUp/SignUp.d.ts +0 -1
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +32 -41
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +123 -116
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +14 -14
- package/dist/components/TopWins/TopWins.d.ts +2 -1
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +4 -2
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +27 -24
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +113 -99
- package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +193 -132
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +21 -17
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +89 -77
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +105 -96
- package/dist/components/index.d.ts +2 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +36 -32
- package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
- package/dist/icons/Bell01Icon.d.ts +2 -0
- package/dist/icons/Bell01Icon.js +1 -0
- package/dist/icons/Bell01Icon.mjs +27 -0
- package/dist/icons/BellRingIcon.d.ts +2 -0
- package/dist/icons/BellRingIcon.js +1 -0
- package/dist/icons/BellRingIcon.mjs +27 -0
- package/dist/icons/EyeIcon.d.ts +2 -0
- package/dist/icons/EyeIcon.js +1 -0
- package/dist/icons/EyeIcon.mjs +25 -0
- package/dist/icons/EyeOffIcon.d.ts +2 -0
- package/dist/icons/EyeOffIcon.js +1 -0
- package/dist/icons/EyeOffIcon.mjs +22 -0
- package/dist/icons/StarIcon.d.ts +2 -0
- package/dist/icons/StarIcon.js +1 -0
- package/dist/icons/StarIcon.mjs +19 -0
- package/dist/icons/StopWatchIcon.d.ts +2 -0
- package/dist/icons/StopWatchIcon.js +1 -0
- package/dist/icons/StopWatchIcon.mjs +22 -0
- package/dist/icons/Trophy01Icon.d.ts +2 -0
- package/dist/icons/Trophy01Icon.js +1 -0
- package/dist/icons/Trophy01Icon.mjs +22 -0
- package/dist/icons/index.d.ts +6 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +62 -0
- package/dist/images/first-place.png.js +1 -0
- package/dist/images/first-place.png.mjs +4 -0
- package/dist/images/leaderboard.png.js +1 -0
- package/dist/images/leaderboard.png.mjs +4 -0
- package/dist/images/placeholder-avatar.png.js +1 -0
- package/dist/images/placeholder-avatar.png.mjs +4 -0
- package/dist/images/responsible-gaming.png.js +1 -1
- package/dist/images/responsible-gaming.png.mjs +2 -2
- package/dist/portal-components.css +1 -1
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
- package/dist/theme.css +123 -4
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
- package/dist/ui/Badge/Badge.d.ts +274 -27
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +14 -10
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.anatomy.js +1 -1
- package/dist/ui/Badge/badge.anatomy.mjs +1 -0
- package/dist/ui/Badge/badge.recipe.d.ts +57 -9
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +57 -21
- package/dist/ui/Button/button.recipe.d.ts +2 -2
- package/dist/ui/Button/button.recipe.js +1 -1
- package/dist/ui/Button/button.recipe.mjs +17 -7
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +6 -6
- package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
- package/dist/ui/Collapsible/Collapsible.js +1 -0
- package/dist/ui/Collapsible/Collapsible.mjs +13 -0
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
- package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
- package/dist/ui/Collapsible/index.d.ts +1 -0
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +10 -12
- package/dist/ui/IconButton/iconButton.recipe.d.ts +2 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +6 -6
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
- package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
- package/dist/ui/PasswordInput/PasswordInput.js +1 -0
- package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +1 -1
- package/dist/ui/Progress/Progress.d.ts +335 -1
- package/dist/ui/Progress/Progress.js +1 -1
- package/dist/ui/Progress/Progress.mjs +15 -2
- package/dist/ui/Progress/progress.recipe.d.ts +37 -1
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/Progress/progress.recipe.mjs +41 -0
- package/dist/ui/Prose.d.ts +2 -0
- package/dist/ui/Prose.js +1 -0
- package/dist/ui/Prose.mjs +47 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +6 -6
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +4 -4
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +36 -30
- package/dist/utils/queryKeys.d.ts +4 -1
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +34 -26
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +35 -32
- package/package.json +11 -4
- package/dist/components/Promos/PromosContent.d.ts +0 -2
package/dist/ui/Badge/Badge.d.ts
CHANGED
|
@@ -7,53 +7,101 @@ export declare const Root: import('react').ComponentType<import('@ark-ui/react')
|
|
|
7
7
|
md: {
|
|
8
8
|
root: string;
|
|
9
9
|
label: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
indicator: string;
|
|
12
|
+
};
|
|
13
|
+
lg: {
|
|
14
|
+
root: string;
|
|
15
|
+
label: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
indicator: string;
|
|
10
18
|
};
|
|
11
19
|
};
|
|
12
20
|
variant: {
|
|
13
21
|
subtle: {};
|
|
14
22
|
};
|
|
15
23
|
colorScheme: {
|
|
16
|
-
|
|
24
|
+
brand: {};
|
|
17
25
|
danger: {};
|
|
18
26
|
success: {};
|
|
19
27
|
warning: {};
|
|
20
|
-
|
|
28
|
+
blue: {};
|
|
21
29
|
};
|
|
22
|
-
|
|
30
|
+
round: {
|
|
31
|
+
true: {
|
|
32
|
+
root: string;
|
|
33
|
+
};
|
|
34
|
+
false: {
|
|
35
|
+
root: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
|
|
23
39
|
size: {
|
|
24
40
|
md: {
|
|
25
41
|
root: string;
|
|
26
42
|
label: string;
|
|
43
|
+
icon: string;
|
|
44
|
+
indicator: string;
|
|
45
|
+
};
|
|
46
|
+
lg: {
|
|
47
|
+
root: string;
|
|
48
|
+
label: string;
|
|
49
|
+
icon: string;
|
|
50
|
+
indicator: string;
|
|
27
51
|
};
|
|
28
52
|
};
|
|
29
53
|
variant: {
|
|
30
54
|
subtle: {};
|
|
31
55
|
};
|
|
32
56
|
colorScheme: {
|
|
33
|
-
|
|
57
|
+
brand: {};
|
|
34
58
|
danger: {};
|
|
35
59
|
success: {};
|
|
36
60
|
warning: {};
|
|
37
|
-
|
|
61
|
+
blue: {};
|
|
38
62
|
};
|
|
39
|
-
|
|
63
|
+
round: {
|
|
64
|
+
true: {
|
|
65
|
+
root: string;
|
|
66
|
+
};
|
|
67
|
+
false: {
|
|
68
|
+
root: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import('tailwind-variants').TVReturnType<{
|
|
40
72
|
size: {
|
|
41
73
|
md: {
|
|
42
74
|
root: string;
|
|
43
75
|
label: string;
|
|
76
|
+
icon: string;
|
|
77
|
+
indicator: string;
|
|
78
|
+
};
|
|
79
|
+
lg: {
|
|
80
|
+
root: string;
|
|
81
|
+
label: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
indicator: string;
|
|
44
84
|
};
|
|
45
85
|
};
|
|
46
86
|
variant: {
|
|
47
87
|
subtle: {};
|
|
48
88
|
};
|
|
49
89
|
colorScheme: {
|
|
50
|
-
|
|
90
|
+
brand: {};
|
|
51
91
|
danger: {};
|
|
52
92
|
success: {};
|
|
53
93
|
warning: {};
|
|
54
|
-
|
|
94
|
+
blue: {};
|
|
55
95
|
};
|
|
56
|
-
|
|
96
|
+
round: {
|
|
97
|
+
true: {
|
|
98
|
+
root: string;
|
|
99
|
+
};
|
|
100
|
+
false: {
|
|
101
|
+
root: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
57
105
|
interface BadgeLabelProps extends ComponentPropsWithRef<'span'> {
|
|
58
106
|
asChild?: boolean;
|
|
59
107
|
}
|
|
@@ -62,53 +110,101 @@ export declare const Label: import('react').ComponentType<import('@ark-ui/react'
|
|
|
62
110
|
md: {
|
|
63
111
|
root: string;
|
|
64
112
|
label: string;
|
|
113
|
+
icon: string;
|
|
114
|
+
indicator: string;
|
|
115
|
+
};
|
|
116
|
+
lg: {
|
|
117
|
+
root: string;
|
|
118
|
+
label: string;
|
|
119
|
+
icon: string;
|
|
120
|
+
indicator: string;
|
|
65
121
|
};
|
|
66
122
|
};
|
|
67
123
|
variant: {
|
|
68
124
|
subtle: {};
|
|
69
125
|
};
|
|
70
126
|
colorScheme: {
|
|
71
|
-
|
|
127
|
+
brand: {};
|
|
72
128
|
danger: {};
|
|
73
129
|
success: {};
|
|
74
130
|
warning: {};
|
|
75
|
-
|
|
131
|
+
blue: {};
|
|
76
132
|
};
|
|
77
|
-
|
|
133
|
+
round: {
|
|
134
|
+
true: {
|
|
135
|
+
root: string;
|
|
136
|
+
};
|
|
137
|
+
false: {
|
|
138
|
+
root: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
|
|
78
142
|
size: {
|
|
79
143
|
md: {
|
|
80
144
|
root: string;
|
|
81
145
|
label: string;
|
|
146
|
+
icon: string;
|
|
147
|
+
indicator: string;
|
|
148
|
+
};
|
|
149
|
+
lg: {
|
|
150
|
+
root: string;
|
|
151
|
+
label: string;
|
|
152
|
+
icon: string;
|
|
153
|
+
indicator: string;
|
|
82
154
|
};
|
|
83
155
|
};
|
|
84
156
|
variant: {
|
|
85
157
|
subtle: {};
|
|
86
158
|
};
|
|
87
159
|
colorScheme: {
|
|
88
|
-
|
|
160
|
+
brand: {};
|
|
89
161
|
danger: {};
|
|
90
162
|
success: {};
|
|
91
163
|
warning: {};
|
|
92
|
-
|
|
164
|
+
blue: {};
|
|
93
165
|
};
|
|
94
|
-
|
|
166
|
+
round: {
|
|
167
|
+
true: {
|
|
168
|
+
root: string;
|
|
169
|
+
};
|
|
170
|
+
false: {
|
|
171
|
+
root: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import('tailwind-variants').TVReturnType<{
|
|
95
175
|
size: {
|
|
96
176
|
md: {
|
|
97
177
|
root: string;
|
|
98
178
|
label: string;
|
|
179
|
+
icon: string;
|
|
180
|
+
indicator: string;
|
|
181
|
+
};
|
|
182
|
+
lg: {
|
|
183
|
+
root: string;
|
|
184
|
+
label: string;
|
|
185
|
+
icon: string;
|
|
186
|
+
indicator: string;
|
|
99
187
|
};
|
|
100
188
|
};
|
|
101
189
|
variant: {
|
|
102
190
|
subtle: {};
|
|
103
191
|
};
|
|
104
192
|
colorScheme: {
|
|
105
|
-
|
|
193
|
+
brand: {};
|
|
106
194
|
danger: {};
|
|
107
195
|
success: {};
|
|
108
196
|
warning: {};
|
|
109
|
-
|
|
197
|
+
blue: {};
|
|
198
|
+
};
|
|
199
|
+
round: {
|
|
200
|
+
true: {
|
|
201
|
+
root: string;
|
|
202
|
+
};
|
|
203
|
+
false: {
|
|
204
|
+
root: string;
|
|
205
|
+
};
|
|
110
206
|
};
|
|
111
|
-
}, Record<"label" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
207
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
112
208
|
interface BadgeIndicatorProps extends ComponentPropsWithRef<'svg'> {
|
|
113
209
|
asChild?: boolean;
|
|
114
210
|
}
|
|
@@ -117,51 +213,202 @@ export declare const Indicator: import('react').ComponentType<import('@ark-ui/re
|
|
|
117
213
|
md: {
|
|
118
214
|
root: string;
|
|
119
215
|
label: string;
|
|
216
|
+
icon: string;
|
|
217
|
+
indicator: string;
|
|
218
|
+
};
|
|
219
|
+
lg: {
|
|
220
|
+
root: string;
|
|
221
|
+
label: string;
|
|
222
|
+
icon: string;
|
|
223
|
+
indicator: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
variant: {
|
|
227
|
+
subtle: {};
|
|
228
|
+
};
|
|
229
|
+
colorScheme: {
|
|
230
|
+
brand: {};
|
|
231
|
+
danger: {};
|
|
232
|
+
success: {};
|
|
233
|
+
warning: {};
|
|
234
|
+
blue: {};
|
|
235
|
+
};
|
|
236
|
+
round: {
|
|
237
|
+
true: {
|
|
238
|
+
root: string;
|
|
239
|
+
};
|
|
240
|
+
false: {
|
|
241
|
+
root: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
|
|
245
|
+
size: {
|
|
246
|
+
md: {
|
|
247
|
+
root: string;
|
|
248
|
+
label: string;
|
|
249
|
+
icon: string;
|
|
250
|
+
indicator: string;
|
|
251
|
+
};
|
|
252
|
+
lg: {
|
|
253
|
+
root: string;
|
|
254
|
+
label: string;
|
|
255
|
+
icon: string;
|
|
256
|
+
indicator: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
variant: {
|
|
260
|
+
subtle: {};
|
|
261
|
+
};
|
|
262
|
+
colorScheme: {
|
|
263
|
+
brand: {};
|
|
264
|
+
danger: {};
|
|
265
|
+
success: {};
|
|
266
|
+
warning: {};
|
|
267
|
+
blue: {};
|
|
268
|
+
};
|
|
269
|
+
round: {
|
|
270
|
+
true: {
|
|
271
|
+
root: string;
|
|
272
|
+
};
|
|
273
|
+
false: {
|
|
274
|
+
root: string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import('tailwind-variants').TVReturnType<{
|
|
278
|
+
size: {
|
|
279
|
+
md: {
|
|
280
|
+
root: string;
|
|
281
|
+
label: string;
|
|
282
|
+
icon: string;
|
|
283
|
+
indicator: string;
|
|
284
|
+
};
|
|
285
|
+
lg: {
|
|
286
|
+
root: string;
|
|
287
|
+
label: string;
|
|
288
|
+
icon: string;
|
|
289
|
+
indicator: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
variant: {
|
|
293
|
+
subtle: {};
|
|
294
|
+
};
|
|
295
|
+
colorScheme: {
|
|
296
|
+
brand: {};
|
|
297
|
+
danger: {};
|
|
298
|
+
success: {};
|
|
299
|
+
warning: {};
|
|
300
|
+
blue: {};
|
|
301
|
+
};
|
|
302
|
+
round: {
|
|
303
|
+
true: {
|
|
304
|
+
root: string;
|
|
305
|
+
};
|
|
306
|
+
false: {
|
|
307
|
+
root: string;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
311
|
+
interface BadgeIconProps extends ComponentPropsWithRef<'svg'> {
|
|
312
|
+
asChild?: boolean;
|
|
313
|
+
}
|
|
314
|
+
export declare const Icon: import('react').ComponentType<import('@ark-ui/react').Assign<BadgeIconProps, import('tailwind-variants').VariantProps<import('tailwind-variants').TVReturnType<{
|
|
315
|
+
size: {
|
|
316
|
+
md: {
|
|
317
|
+
root: string;
|
|
318
|
+
label: string;
|
|
319
|
+
icon: string;
|
|
320
|
+
indicator: string;
|
|
321
|
+
};
|
|
322
|
+
lg: {
|
|
323
|
+
root: string;
|
|
324
|
+
label: string;
|
|
325
|
+
icon: string;
|
|
326
|
+
indicator: string;
|
|
120
327
|
};
|
|
121
328
|
};
|
|
122
329
|
variant: {
|
|
123
330
|
subtle: {};
|
|
124
331
|
};
|
|
125
332
|
colorScheme: {
|
|
126
|
-
|
|
333
|
+
brand: {};
|
|
127
334
|
danger: {};
|
|
128
335
|
success: {};
|
|
129
336
|
warning: {};
|
|
130
|
-
|
|
337
|
+
blue: {};
|
|
131
338
|
};
|
|
132
|
-
|
|
339
|
+
round: {
|
|
340
|
+
true: {
|
|
341
|
+
root: string;
|
|
342
|
+
};
|
|
343
|
+
false: {
|
|
344
|
+
root: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
|
|
133
348
|
size: {
|
|
134
349
|
md: {
|
|
135
350
|
root: string;
|
|
136
351
|
label: string;
|
|
352
|
+
icon: string;
|
|
353
|
+
indicator: string;
|
|
354
|
+
};
|
|
355
|
+
lg: {
|
|
356
|
+
root: string;
|
|
357
|
+
label: string;
|
|
358
|
+
icon: string;
|
|
359
|
+
indicator: string;
|
|
137
360
|
};
|
|
138
361
|
};
|
|
139
362
|
variant: {
|
|
140
363
|
subtle: {};
|
|
141
364
|
};
|
|
142
365
|
colorScheme: {
|
|
143
|
-
|
|
366
|
+
brand: {};
|
|
144
367
|
danger: {};
|
|
145
368
|
success: {};
|
|
146
369
|
warning: {};
|
|
147
|
-
|
|
370
|
+
blue: {};
|
|
371
|
+
};
|
|
372
|
+
round: {
|
|
373
|
+
true: {
|
|
374
|
+
root: string;
|
|
375
|
+
};
|
|
376
|
+
false: {
|
|
377
|
+
root: string;
|
|
378
|
+
};
|
|
148
379
|
};
|
|
149
|
-
}, Record<"label" | "root" | "indicator", string | string[]>, import('tailwind-variants').TVReturnType<{
|
|
380
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import('tailwind-variants').TVReturnType<{
|
|
150
381
|
size: {
|
|
151
382
|
md: {
|
|
152
383
|
root: string;
|
|
153
384
|
label: string;
|
|
385
|
+
icon: string;
|
|
386
|
+
indicator: string;
|
|
387
|
+
};
|
|
388
|
+
lg: {
|
|
389
|
+
root: string;
|
|
390
|
+
label: string;
|
|
391
|
+
icon: string;
|
|
392
|
+
indicator: string;
|
|
154
393
|
};
|
|
155
394
|
};
|
|
156
395
|
variant: {
|
|
157
396
|
subtle: {};
|
|
158
397
|
};
|
|
159
398
|
colorScheme: {
|
|
160
|
-
|
|
399
|
+
brand: {};
|
|
161
400
|
danger: {};
|
|
162
401
|
success: {};
|
|
163
402
|
warning: {};
|
|
164
|
-
|
|
403
|
+
blue: {};
|
|
404
|
+
};
|
|
405
|
+
round: {
|
|
406
|
+
true: {
|
|
407
|
+
root: string;
|
|
408
|
+
};
|
|
409
|
+
false: {
|
|
410
|
+
root: string;
|
|
411
|
+
};
|
|
165
412
|
};
|
|
166
|
-
}, Record<"label" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
413
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
167
414
|
export {};
|
package/dist/ui/Badge/Badge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@ark-ui/react"),c=require("../../client/utils/createRecipeContext.js");require("../../client/utils/toaster.js");const i=require("./badge.anatomy.js"),n=require("./badge.recipe.js"),{withProvider:s,withContext:a}=c.createRecipeContext(n.badgeRecipe),o=i.badgeAnatomy.build(),d=s(t=>e.jsx(r.ark.div,{...o.root.attrs,...t}),"root"),u=a(t=>e.jsx(r.ark.span,{...o.label.attrs,...t}),"label"),l=a(t=>e.jsx(r.ark.svg,{...o.indicator.attrs,...t}),"indicator"),b=a(t=>e.jsx(r.ark.svg,{...o.icon.attrs,asChild:!0,...t}),"icon");exports.Icon=b;exports.Indicator=l;exports.Label=u;exports.Root=d;
|
package/dist/ui/Badge/Badge.mjs
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { ark as r } from "@ark-ui/react";
|
|
4
|
-
import { createRecipeContext as
|
|
4
|
+
import { createRecipeContext as e } from "../../client/utils/createRecipeContext.mjs";
|
|
5
5
|
import "../../client/utils/toaster.mjs";
|
|
6
|
-
import { badgeAnatomy as
|
|
7
|
-
import { badgeRecipe as
|
|
8
|
-
const { withProvider: c, withContext:
|
|
6
|
+
import { badgeAnatomy as n } from "./badge.anatomy.mjs";
|
|
7
|
+
import { badgeRecipe as s } from "./badge.recipe.mjs";
|
|
8
|
+
const { withProvider: c, withContext: a } = e(s), i = n.build(), g = c(
|
|
9
9
|
(t) => /* @__PURE__ */ o(r.div, { ...i.root.attrs, ...t }),
|
|
10
10
|
"root"
|
|
11
|
-
),
|
|
11
|
+
), v = a(
|
|
12
12
|
(t) => /* @__PURE__ */ o(r.span, { ...i.label.attrs, ...t }),
|
|
13
13
|
"label"
|
|
14
|
-
),
|
|
15
|
-
(t) => /* @__PURE__ */ o(r.svg, { ...i.indicator.attrs,
|
|
14
|
+
), x = a(
|
|
15
|
+
(t) => /* @__PURE__ */ o(r.svg, { ...i.indicator.attrs, ...t }),
|
|
16
16
|
"indicator"
|
|
17
|
+
), h = a(
|
|
18
|
+
(t) => /* @__PURE__ */ o(r.svg, { ...i.icon.attrs, asChild: !0, ...t }),
|
|
19
|
+
"icon"
|
|
17
20
|
);
|
|
18
21
|
export {
|
|
19
|
-
h as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
h as Icon,
|
|
23
|
+
x as Indicator,
|
|
24
|
+
v as Label,
|
|
25
|
+
g as Root
|
|
22
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const badgeAnatomy: import('@ark-ui/anatomy').AnatomyInstance<"label" | "root" | "indicator">;
|
|
1
|
+
export declare const badgeAnatomy: import('@ark-ui/anatomy').AnatomyInstance<"label" | "root" | "icon" | "indicator">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@ark-ui/anatomy"),e=t.createAnatomy("badge").parts("root","label","indicator");exports.badgeAnatomy=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@ark-ui/anatomy"),e=t.createAnatomy("badge").parts("root","label","icon","indicator");exports.badgeAnatomy=e;
|
|
@@ -3,50 +3,98 @@ export declare const badgeRecipe: import('tailwind-variants').TVReturnType<{
|
|
|
3
3
|
md: {
|
|
4
4
|
root: string;
|
|
5
5
|
label: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
indicator: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
root: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
indicator: string;
|
|
6
14
|
};
|
|
7
15
|
};
|
|
8
16
|
variant: {
|
|
9
17
|
subtle: {};
|
|
10
18
|
};
|
|
11
19
|
colorScheme: {
|
|
12
|
-
|
|
20
|
+
brand: {};
|
|
13
21
|
danger: {};
|
|
14
22
|
success: {};
|
|
15
23
|
warning: {};
|
|
16
|
-
|
|
24
|
+
blue: {};
|
|
25
|
+
};
|
|
26
|
+
round: {
|
|
27
|
+
true: {
|
|
28
|
+
root: string;
|
|
29
|
+
};
|
|
30
|
+
false: {
|
|
31
|
+
root: string;
|
|
32
|
+
};
|
|
17
33
|
};
|
|
18
|
-
}, Record<"label" | "root" | "indicator", string | string[]>, undefined, {
|
|
34
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
|
|
19
35
|
size: {
|
|
20
36
|
md: {
|
|
21
37
|
root: string;
|
|
22
38
|
label: string;
|
|
39
|
+
icon: string;
|
|
40
|
+
indicator: string;
|
|
41
|
+
};
|
|
42
|
+
lg: {
|
|
43
|
+
root: string;
|
|
44
|
+
label: string;
|
|
45
|
+
icon: string;
|
|
46
|
+
indicator: string;
|
|
23
47
|
};
|
|
24
48
|
};
|
|
25
49
|
variant: {
|
|
26
50
|
subtle: {};
|
|
27
51
|
};
|
|
28
52
|
colorScheme: {
|
|
29
|
-
|
|
53
|
+
brand: {};
|
|
30
54
|
danger: {};
|
|
31
55
|
success: {};
|
|
32
56
|
warning: {};
|
|
33
|
-
|
|
57
|
+
blue: {};
|
|
58
|
+
};
|
|
59
|
+
round: {
|
|
60
|
+
true: {
|
|
61
|
+
root: string;
|
|
62
|
+
};
|
|
63
|
+
false: {
|
|
64
|
+
root: string;
|
|
65
|
+
};
|
|
34
66
|
};
|
|
35
|
-
}, Record<"label" | "root" | "indicator", string | string[]>, import('tailwind-variants').TVReturnType<{
|
|
67
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import('tailwind-variants').TVReturnType<{
|
|
36
68
|
size: {
|
|
37
69
|
md: {
|
|
38
70
|
root: string;
|
|
39
71
|
label: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
indicator: string;
|
|
74
|
+
};
|
|
75
|
+
lg: {
|
|
76
|
+
root: string;
|
|
77
|
+
label: string;
|
|
78
|
+
icon: string;
|
|
79
|
+
indicator: string;
|
|
40
80
|
};
|
|
41
81
|
};
|
|
42
82
|
variant: {
|
|
43
83
|
subtle: {};
|
|
44
84
|
};
|
|
45
85
|
colorScheme: {
|
|
46
|
-
|
|
86
|
+
brand: {};
|
|
47
87
|
danger: {};
|
|
48
88
|
success: {};
|
|
49
89
|
warning: {};
|
|
50
|
-
|
|
90
|
+
blue: {};
|
|
91
|
+
};
|
|
92
|
+
round: {
|
|
93
|
+
true: {
|
|
94
|
+
root: string;
|
|
95
|
+
};
|
|
96
|
+
false: {
|
|
97
|
+
root: string;
|
|
98
|
+
};
|
|
51
99
|
};
|
|
52
|
-
}, Record<"label" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>;
|
|
100
|
+
}, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("tailwind-variants"),e=require("../../utils/anatomyToRecipeSlots.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const i=require("./badge.anatomy.js"),r=t.tv({slots:e.anatomyToRecipeSlots(i.badgeAnatomy,{root:"inline-flex items-center",icon:"shrink-0",label:"font-medium leading-tight",indicator:"shrink-0 rounded-full"}),variants:{size:{md:{root:"gap-1 px-2 py-0.5",label:"text-xs",icon:"size-3",indicator:"size-2"},lg:{root:"gap-1 px-2 py-1",label:"text-sm",icon:"size-3",indicator:"size-2"}},variant:{subtle:{}},colorScheme:{brand:{},danger:{},success:{},warning:{},blue:{}},round:{true:{root:"rounded-full"},false:{root:"rounded-md"}}},compoundVariants:[{variant:"subtle",colorScheme:"brand",className:{root:"bg-utility-brand-50 border-utility-brand-200 border",label:"text-utility-brand-700",indicator:"bg-utility-brand-500",icon:"text-utility-brand-600"}},{variant:"subtle",colorScheme:"success",className:{root:"bg-utility-success-50 border-utility-success-200 border",label:"text-utility-success-700",indicator:"bg-utility-success-500",icon:"text-utility-success-700"}},{variant:"subtle",colorScheme:"warning",className:{root:"bg-utility-warning-50 border-utility-warning-200 border",label:"text-utility-warning-700",indicator:"bg-utility-warning-500",icon:"text-utility-warning-700"}},{variant:"subtle",colorScheme:"danger",className:{root:"bg-utility-error-50 border-utility-error-200 border",label:"text-utility-error-700",indicator:"bg-utility-error-500",icon:"text-utility-error-700"}},{variant:"subtle",colorScheme:"blue",className:{root:"bg-utility-blue-50 border-utility-blue-200 border",label:"text-utility-blue-700",indicator:"bg-utility-blue-500",icon:"text-utility-blue-700"}}],defaultVariants:{size:"md",variant:"subtle",colorScheme:"success",round:!0}});exports.badgeRecipe=r;
|