@sikka/hawa 0.7.13-next → 0.7.15-next
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/index.css +55 -44
- package/dist/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +94 -45
- package/dist/index.mjs +91 -46
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1872,9 +1872,20 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1872
1872
|
.hawa-bg-opacity-80 {
|
|
1873
1873
|
--tw-bg-opacity: 0.8;
|
|
1874
1874
|
}
|
|
1875
|
+
.hawa-bg-gradient-to-r {
|
|
1876
|
+
background-image: linear-gradient(to right, var(--tw-gradient-stops));
|
|
1877
|
+
}
|
|
1875
1878
|
.hawa-bg-none {
|
|
1876
1879
|
background-image: none;
|
|
1877
1880
|
}
|
|
1881
|
+
.hawa-from-green-400 {
|
|
1882
|
+
--tw-gradient-from: #4ade80 var(--tw-gradient-from-position);
|
|
1883
|
+
--tw-gradient-to: rgb(74 222 128 / 0) var(--tw-gradient-to-position);
|
|
1884
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1885
|
+
}
|
|
1886
|
+
.hawa-to-red-500 {
|
|
1887
|
+
--tw-gradient-to: #ef4444 var(--tw-gradient-to-position);
|
|
1888
|
+
}
|
|
1878
1889
|
.hawa-bg-cover {
|
|
1879
1890
|
background-size: cover;
|
|
1880
1891
|
}
|
|
@@ -2501,11 +2512,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2501
2512
|
body {
|
|
2502
2513
|
font-family: "IBM Plex Sans Arabic", sans-serif;
|
|
2503
2514
|
}
|
|
2504
|
-
:is(
|
|
2515
|
+
:is([data-mode="dark"] .dark\:dark-shadow) {
|
|
2505
2516
|
box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
|
|
2506
2517
|
0 4px 6px -2px rgba(255, 255, 255, 0.05);
|
|
2507
2518
|
}
|
|
2508
|
-
:is(
|
|
2519
|
+
:is([data-mode="dark"] .dark\:hover\:dark-shadow:hover) {
|
|
2509
2520
|
box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
|
|
2510
2521
|
0 4px 6px -2px rgba(255, 255, 255, 0.05);
|
|
2511
2522
|
}
|
|
@@ -3127,163 +3138,163 @@ body {
|
|
|
3127
3138
|
--tw-rotate: 180deg;
|
|
3128
3139
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
3129
3140
|
}
|
|
3130
|
-
:is(
|
|
3141
|
+
:is([data-mode="dark"] .dark\:hawa--rotate-90) {
|
|
3131
3142
|
--tw-rotate: -90deg;
|
|
3132
3143
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
3133
3144
|
}
|
|
3134
|
-
:is(
|
|
3145
|
+
:is([data-mode="dark"] .dark\:hawa-rotate-0) {
|
|
3135
3146
|
--tw-rotate: 0deg;
|
|
3136
3147
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
3137
3148
|
}
|
|
3138
|
-
:is(
|
|
3149
|
+
:is([data-mode="dark"] .dark\:hawa-scale-100) {
|
|
3139
3150
|
--tw-scale-x: 1;
|
|
3140
3151
|
--tw-scale-y: 1;
|
|
3141
3152
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
3142
3153
|
}
|
|
3143
|
-
:is(
|
|
3154
|
+
:is([data-mode="dark"] .dark\:hawa-border-gray-700) {
|
|
3144
3155
|
--tw-border-opacity: 1;
|
|
3145
3156
|
border-color: rgb(55 65 81 / var(--tw-border-opacity));
|
|
3146
3157
|
}
|
|
3147
|
-
:is(
|
|
3158
|
+
:is([data-mode="dark"] .dark\:hawa-border-primary\/10) {
|
|
3148
3159
|
border-color: hsl(var(--primary) / 0.1);
|
|
3149
3160
|
}
|
|
3150
|
-
:is(
|
|
3161
|
+
:is([data-mode="dark"] .dark\:hawa-border-primary\/70) {
|
|
3151
3162
|
border-color: hsl(var(--primary) / 0.7);
|
|
3152
3163
|
}
|
|
3153
|
-
:is(
|
|
3164
|
+
:is([data-mode="dark"] .dark\:hawa-bg-background) {
|
|
3154
3165
|
background-color: hsl(var(--background));
|
|
3155
3166
|
}
|
|
3156
|
-
:is(
|
|
3167
|
+
:is([data-mode="dark"] .dark\:hawa-bg-black) {
|
|
3157
3168
|
--tw-bg-opacity: 1;
|
|
3158
3169
|
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
3159
3170
|
}
|
|
3160
|
-
:is(
|
|
3171
|
+
:is([data-mode="dark"] .dark\:hawa-bg-blue-200) {
|
|
3161
3172
|
--tw-bg-opacity: 1;
|
|
3162
3173
|
background-color: rgb(191 219 254 / var(--tw-bg-opacity));
|
|
3163
3174
|
}
|
|
3164
|
-
:is(
|
|
3175
|
+
:is([data-mode="dark"] .dark\:hawa-bg-gray-200) {
|
|
3165
3176
|
--tw-bg-opacity: 1;
|
|
3166
3177
|
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
3167
3178
|
}
|
|
3168
|
-
:is(
|
|
3179
|
+
:is([data-mode="dark"] .dark\:hawa-bg-gray-600) {
|
|
3169
3180
|
--tw-bg-opacity: 1;
|
|
3170
3181
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
|
3171
3182
|
}
|
|
3172
|
-
:is(
|
|
3183
|
+
:is([data-mode="dark"] .dark\:hawa-bg-gray-700) {
|
|
3173
3184
|
--tw-bg-opacity: 1;
|
|
3174
3185
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
3175
3186
|
}
|
|
3176
|
-
:is(
|
|
3187
|
+
:is([data-mode="dark"] .dark\:hawa-bg-gray-800) {
|
|
3177
3188
|
--tw-bg-opacity: 1;
|
|
3178
3189
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
|
3179
3190
|
}
|
|
3180
|
-
:is(
|
|
3191
|
+
:is([data-mode="dark"] .dark\:hawa-bg-green-200) {
|
|
3181
3192
|
--tw-bg-opacity: 1;
|
|
3182
3193
|
background-color: rgb(187 247 208 / var(--tw-bg-opacity));
|
|
3183
3194
|
}
|
|
3184
|
-
:is(
|
|
3195
|
+
:is([data-mode="dark"] .dark\:hawa-bg-muted) {
|
|
3185
3196
|
background-color: hsl(var(--muted));
|
|
3186
3197
|
}
|
|
3187
|
-
:is(
|
|
3198
|
+
:is([data-mode="dark"] .dark\:hawa-bg-muted\/40) {
|
|
3188
3199
|
background-color: hsl(var(--muted) / 0.4);
|
|
3189
3200
|
}
|
|
3190
|
-
:is(
|
|
3201
|
+
:is([data-mode="dark"] .dark\:hawa-bg-muted\/50) {
|
|
3191
3202
|
background-color: hsl(var(--muted) / 0.5);
|
|
3192
3203
|
}
|
|
3193
|
-
:is(
|
|
3204
|
+
:is([data-mode="dark"] .dark\:hawa-bg-primary) {
|
|
3194
3205
|
background-color: hsl(var(--primary));
|
|
3195
3206
|
}
|
|
3196
|
-
:is(
|
|
3207
|
+
:is([data-mode="dark"] .dark\:hawa-bg-primary\/5) {
|
|
3197
3208
|
background-color: hsl(var(--primary) / 0.05);
|
|
3198
3209
|
}
|
|
3199
|
-
:is(
|
|
3210
|
+
:is([data-mode="dark"] .dark\:hawa-bg-red-200) {
|
|
3200
3211
|
--tw-bg-opacity: 1;
|
|
3201
3212
|
background-color: rgb(254 202 202 / var(--tw-bg-opacity));
|
|
3202
3213
|
}
|
|
3203
|
-
:is(
|
|
3214
|
+
:is([data-mode="dark"] .dark\:hawa-bg-yellow-200) {
|
|
3204
3215
|
--tw-bg-opacity: 1;
|
|
3205
3216
|
background-color: rgb(254 240 138 / var(--tw-bg-opacity));
|
|
3206
3217
|
}
|
|
3207
|
-
:is(
|
|
3218
|
+
:is([data-mode="dark"] .dark\:hawa-text-blue-800) {
|
|
3208
3219
|
--tw-text-opacity: 1;
|
|
3209
3220
|
color: rgb(30 64 175 / var(--tw-text-opacity));
|
|
3210
3221
|
}
|
|
3211
|
-
:is(
|
|
3222
|
+
:is([data-mode="dark"] .dark\:hawa-text-gray-100) {
|
|
3212
3223
|
--tw-text-opacity: 1;
|
|
3213
3224
|
color: rgb(243 244 246 / var(--tw-text-opacity));
|
|
3214
3225
|
}
|
|
3215
|
-
:is(
|
|
3226
|
+
:is([data-mode="dark"] .dark\:hawa-text-gray-300) {
|
|
3216
3227
|
--tw-text-opacity: 1;
|
|
3217
3228
|
color: rgb(209 213 219 / var(--tw-text-opacity));
|
|
3218
3229
|
}
|
|
3219
|
-
:is(
|
|
3230
|
+
:is([data-mode="dark"] .dark\:hawa-text-gray-400) {
|
|
3220
3231
|
--tw-text-opacity: 1;
|
|
3221
3232
|
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
3222
3233
|
}
|
|
3223
|
-
:is(
|
|
3234
|
+
:is([data-mode="dark"] .dark\:hawa-text-gray-500) {
|
|
3224
3235
|
--tw-text-opacity: 1;
|
|
3225
3236
|
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
3226
3237
|
}
|
|
3227
|
-
:is(
|
|
3238
|
+
:is([data-mode="dark"] .dark\:hawa-text-gray-800) {
|
|
3228
3239
|
--tw-text-opacity: 1;
|
|
3229
3240
|
color: rgb(31 41 55 / var(--tw-text-opacity));
|
|
3230
3241
|
}
|
|
3231
|
-
:is(
|
|
3242
|
+
:is([data-mode="dark"] .dark\:hawa-text-green-800) {
|
|
3232
3243
|
--tw-text-opacity: 1;
|
|
3233
3244
|
color: rgb(22 101 52 / var(--tw-text-opacity));
|
|
3234
3245
|
}
|
|
3235
|
-
:is(
|
|
3246
|
+
:is([data-mode="dark"] .dark\:hawa-text-muted-foreground) {
|
|
3236
3247
|
color: hsl(var(--muted-foreground));
|
|
3237
3248
|
}
|
|
3238
|
-
:is(
|
|
3249
|
+
:is([data-mode="dark"] .dark\:hawa-text-red-500) {
|
|
3239
3250
|
--tw-text-opacity: 1;
|
|
3240
3251
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
3241
3252
|
}
|
|
3242
|
-
:is(
|
|
3253
|
+
:is([data-mode="dark"] .dark\:hawa-text-red-800) {
|
|
3243
3254
|
--tw-text-opacity: 1;
|
|
3244
3255
|
color: rgb(153 27 27 / var(--tw-text-opacity));
|
|
3245
3256
|
}
|
|
3246
|
-
:is(
|
|
3257
|
+
:is([data-mode="dark"] .dark\:hawa-text-white) {
|
|
3247
3258
|
--tw-text-opacity: 1;
|
|
3248
3259
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
3249
3260
|
}
|
|
3250
|
-
:is(
|
|
3261
|
+
:is([data-mode="dark"] .dark\:hawa-text-yellow-800) {
|
|
3251
3262
|
--tw-text-opacity: 1;
|
|
3252
3263
|
color: rgb(133 77 14 / var(--tw-text-opacity));
|
|
3253
3264
|
}
|
|
3254
|
-
:is(
|
|
3265
|
+
:is([data-mode="dark"] .dark\:before\:hawa-via-white\/10)::before {
|
|
3255
3266
|
content: var(--tw-content);
|
|
3256
3267
|
--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
|
|
3257
3268
|
--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.1) var(--tw-gradient-via-position), var(--tw-gradient-to);
|
|
3258
3269
|
}
|
|
3259
|
-
:is(
|
|
3270
|
+
:is([data-mode="dark"] .dark\:hover\:hawa-bg-gray-600:hover) {
|
|
3260
3271
|
--tw-bg-opacity: 1;
|
|
3261
3272
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
|
3262
3273
|
}
|
|
3263
|
-
:is(
|
|
3274
|
+
:is([data-mode="dark"] .dark\:hover\:hawa-bg-gray-700:hover) {
|
|
3264
3275
|
--tw-bg-opacity: 1;
|
|
3265
3276
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
3266
3277
|
}
|
|
3267
|
-
:is(
|
|
3278
|
+
:is([data-mode="dark"] .dark\:hover\:hawa-bg-gray-800:hover) {
|
|
3268
3279
|
--tw-bg-opacity: 1;
|
|
3269
3280
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
|
3270
3281
|
}
|
|
3271
|
-
:is(
|
|
3282
|
+
:is([data-mode="dark"] .dark\:hover\:hawa-bg-primary\/10:hover) {
|
|
3272
3283
|
background-color: hsl(var(--primary) / 0.1);
|
|
3273
3284
|
}
|
|
3274
|
-
:is(
|
|
3285
|
+
:is([data-mode="dark"] .dark\:hover\:hawa-text-gray-300:hover) {
|
|
3275
3286
|
--tw-text-opacity: 1;
|
|
3276
3287
|
color: rgb(209 213 219 / var(--tw-text-opacity));
|
|
3277
3288
|
}
|
|
3278
|
-
:is(
|
|
3289
|
+
:is([data-mode="dark"] .dark\:hover\:hawa-text-white:hover) {
|
|
3279
3290
|
--tw-text-opacity: 1;
|
|
3280
3291
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
3281
3292
|
}
|
|
3282
|
-
:is(
|
|
3293
|
+
:is([data-mode="dark"] .dark\:focus\:hawa-ring-blue-500:focus) {
|
|
3283
3294
|
--tw-ring-opacity: 1;
|
|
3284
3295
|
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
3285
3296
|
}
|
|
3286
|
-
:is(
|
|
3297
|
+
:is([data-mode="dark"] .hawa-peer:checked ~ .dark\:peer-checked\:hawa-text-primary) {
|
|
3287
3298
|
color: hsl(var(--primary));
|
|
3288
3299
|
}
|
|
3289
3300
|
@media (min-width: 440px) {
|
package/dist/index.d.mts
CHANGED
|
@@ -542,12 +542,13 @@ declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimit
|
|
|
542
542
|
|
|
543
543
|
type IconProps = React__default.HTMLAttributes<SVGElement>;
|
|
544
544
|
declare const Logos: {
|
|
545
|
-
|
|
545
|
+
hawa: (props: IconProps) => React__default.JSX.Element;
|
|
546
|
+
sikka: (props: IconProps) => React__default.JSX.Element;
|
|
546
547
|
mail: (props: IconProps) => React__default.JSX.Element;
|
|
547
548
|
phone: (props: IconProps) => React__default.JSX.Element;
|
|
548
549
|
twitter: (props: IconProps) => React__default.JSX.Element;
|
|
549
550
|
microsoft: (props: IconProps) => React__default.JSX.Element;
|
|
550
|
-
|
|
551
|
+
github: (props: IconProps) => React__default.JSX.Element;
|
|
551
552
|
radix: (props: IconProps) => React__default.JSX.Element;
|
|
552
553
|
aria: (props: IconProps) => React__default.JSX.Element;
|
|
553
554
|
npm: (props: IconProps) => React__default.JSX.Element;
|
|
@@ -559,6 +560,7 @@ declare const Logos: {
|
|
|
559
560
|
apple: (props: IconProps) => React__default.JSX.Element;
|
|
560
561
|
paypal: (props: IconProps) => React__default.JSX.Element;
|
|
561
562
|
spinner: (props: IconProps) => React__default.JSX.Element;
|
|
563
|
+
whatsapp: (props: IconProps) => React__default.JSX.Element;
|
|
562
564
|
};
|
|
563
565
|
|
|
564
566
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
@@ -1378,6 +1380,12 @@ declare function useClipboard({ timeout }?: {
|
|
|
1378
1380
|
|
|
1379
1381
|
declare const useBreakpoint: () => number;
|
|
1380
1382
|
|
|
1383
|
+
interface WindowSize {
|
|
1384
|
+
width: number | undefined;
|
|
1385
|
+
height: number | undefined;
|
|
1386
|
+
}
|
|
1387
|
+
declare const useWindowSize: () => WindowSize;
|
|
1388
|
+
|
|
1381
1389
|
interface UseFocusWithinOptions {
|
|
1382
1390
|
onFocus?(event: FocusEvent): void;
|
|
1383
1391
|
onBlur?(event: FocusEvent): void;
|
|
@@ -1397,4 +1405,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1397
1405
|
handleTabChange: (index: any) => void;
|
|
1398
1406
|
};
|
|
1399
1407
|
|
|
1400
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
|
1408
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -542,12 +542,13 @@ declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimit
|
|
|
542
542
|
|
|
543
543
|
type IconProps = React__default.HTMLAttributes<SVGElement>;
|
|
544
544
|
declare const Logos: {
|
|
545
|
-
|
|
545
|
+
hawa: (props: IconProps) => React__default.JSX.Element;
|
|
546
|
+
sikka: (props: IconProps) => React__default.JSX.Element;
|
|
546
547
|
mail: (props: IconProps) => React__default.JSX.Element;
|
|
547
548
|
phone: (props: IconProps) => React__default.JSX.Element;
|
|
548
549
|
twitter: (props: IconProps) => React__default.JSX.Element;
|
|
549
550
|
microsoft: (props: IconProps) => React__default.JSX.Element;
|
|
550
|
-
|
|
551
|
+
github: (props: IconProps) => React__default.JSX.Element;
|
|
551
552
|
radix: (props: IconProps) => React__default.JSX.Element;
|
|
552
553
|
aria: (props: IconProps) => React__default.JSX.Element;
|
|
553
554
|
npm: (props: IconProps) => React__default.JSX.Element;
|
|
@@ -559,6 +560,7 @@ declare const Logos: {
|
|
|
559
560
|
apple: (props: IconProps) => React__default.JSX.Element;
|
|
560
561
|
paypal: (props: IconProps) => React__default.JSX.Element;
|
|
561
562
|
spinner: (props: IconProps) => React__default.JSX.Element;
|
|
563
|
+
whatsapp: (props: IconProps) => React__default.JSX.Element;
|
|
562
564
|
};
|
|
563
565
|
|
|
564
566
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
@@ -1378,6 +1380,12 @@ declare function useClipboard({ timeout }?: {
|
|
|
1378
1380
|
|
|
1379
1381
|
declare const useBreakpoint: () => number;
|
|
1380
1382
|
|
|
1383
|
+
interface WindowSize {
|
|
1384
|
+
width: number | undefined;
|
|
1385
|
+
height: number | undefined;
|
|
1386
|
+
}
|
|
1387
|
+
declare const useWindowSize: () => WindowSize;
|
|
1388
|
+
|
|
1381
1389
|
interface UseFocusWithinOptions {
|
|
1382
1390
|
onFocus?(event: FocusEvent): void;
|
|
1383
1391
|
onBlur?(event: FocusEvent): void;
|
|
@@ -1397,4 +1405,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1397
1405
|
handleTabChange: (index: any) => void;
|
|
1398
1406
|
};
|
|
1399
1407
|
|
|
1400
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
|
1408
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.js
CHANGED
|
@@ -735,6 +735,9 @@ __export(components_exports, {
|
|
|
735
735
|
},
|
|
736
736
|
useToast: function() {
|
|
737
737
|
return useToast;
|
|
738
|
+
},
|
|
739
|
+
useWindowSize: function() {
|
|
740
|
+
return useWindowSize;
|
|
738
741
|
}
|
|
739
742
|
});
|
|
740
743
|
module.exports = __toCommonJS(components_exports);
|
|
@@ -5447,36 +5450,47 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
5447
5450
|
// components/elements/Logos.tsx
|
|
5448
5451
|
var import_react27 = __toESM(require("react"));
|
|
5449
5452
|
var Logos = {
|
|
5450
|
-
|
|
5453
|
+
hawa: function(props) {
|
|
5451
5454
|
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5452
5455
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
fill: "
|
|
5458
|
-
}), /* @__PURE__ */ import_react27.default.createElement("line", {
|
|
5459
|
-
x1: "208",
|
|
5460
|
-
y1: "128",
|
|
5461
|
-
x2: "128",
|
|
5462
|
-
y2: "208",
|
|
5463
|
-
fill: "none",
|
|
5464
|
-
stroke: "currentColor",
|
|
5465
|
-
strokeLinecap: "round",
|
|
5466
|
-
strokeLinejoin: "round",
|
|
5467
|
-
strokeWidth: "16"
|
|
5468
|
-
}), /* @__PURE__ */ import_react27.default.createElement("line", {
|
|
5469
|
-
x1: "192",
|
|
5470
|
-
y1: "40",
|
|
5471
|
-
x2: "40",
|
|
5472
|
-
y2: "192",
|
|
5473
|
-
fill: "none",
|
|
5474
|
-
stroke: "currentColor",
|
|
5475
|
-
strokeLinecap: "round",
|
|
5476
|
-
strokeLinejoin: "round",
|
|
5477
|
-
strokeWidth: "16"
|
|
5456
|
+
xmlSpace: "preserve",
|
|
5457
|
+
viewBox: "0 0 765 765"
|
|
5458
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5459
|
+
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
|
5460
|
+
fill: "currentColor"
|
|
5478
5461
|
}));
|
|
5479
5462
|
},
|
|
5463
|
+
sikka: function(props) {
|
|
5464
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5465
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5466
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
5467
|
+
xmlSpace: "preserve",
|
|
5468
|
+
viewBox: "0 0 916.5 765",
|
|
5469
|
+
fill: "currentColor"
|
|
5470
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("defs", null, /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5471
|
+
id: "a",
|
|
5472
|
+
d: "M0 0h916.5v765H0z"
|
|
5473
|
+
})), /* @__PURE__ */ import_react27.default.createElement("clipPath", {
|
|
5474
|
+
id: "b"
|
|
5475
|
+
}, /* @__PURE__ */ import_react27.default.createElement("use", {
|
|
5476
|
+
xlinkHref: "#a",
|
|
5477
|
+
overflow: "visible"
|
|
5478
|
+
})), /* @__PURE__ */ import_react27.default.createElement("g", {
|
|
5479
|
+
clipPath: "url(#b)"
|
|
5480
|
+
}, /* @__PURE__ */ import_react27.default.createElement("defs", null, /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5481
|
+
id: "c",
|
|
5482
|
+
d: "M0 0h916.5v765H0z"
|
|
5483
|
+
})), /* @__PURE__ */ import_react27.default.createElement("clipPath", {
|
|
5484
|
+
id: "d"
|
|
5485
|
+
}, /* @__PURE__ */ import_react27.default.createElement("use", {
|
|
5486
|
+
xlinkHref: "#c",
|
|
5487
|
+
overflow: "visible"
|
|
5488
|
+
})), /* @__PURE__ */ import_react27.default.createElement("g", {
|
|
5489
|
+
clipPath: "url(#d)"
|
|
5490
|
+
}, /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5491
|
+
d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9"
|
|
5492
|
+
}))));
|
|
5493
|
+
},
|
|
5480
5494
|
mail: function(props) {
|
|
5481
5495
|
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5482
5496
|
stroke: "currentColor",
|
|
@@ -5528,8 +5542,9 @@ var Logos = {
|
|
|
5528
5542
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
|
5529
5543
|
}));
|
|
5530
5544
|
},
|
|
5531
|
-
|
|
5545
|
+
github: function(props) {
|
|
5532
5546
|
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5547
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5533
5548
|
viewBox: "0 0 438.549 438.549"
|
|
5534
5549
|
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5535
5550
|
fill: "currentColor",
|
|
@@ -5641,6 +5656,17 @@ var Logos = {
|
|
|
5641
5656
|
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5642
5657
|
d: "M21 12a9 9 0 1 1-6.219-8.56"
|
|
5643
5658
|
}));
|
|
5659
|
+
},
|
|
5660
|
+
whatsapp: function(props) {
|
|
5661
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5662
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5663
|
+
width: "24",
|
|
5664
|
+
height: "24",
|
|
5665
|
+
viewBox: "0 0 24 24",
|
|
5666
|
+
fill: "currentColor"
|
|
5667
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5668
|
+
d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"
|
|
5669
|
+
}));
|
|
5644
5670
|
}
|
|
5645
5671
|
};
|
|
5646
5672
|
// components/elements/Command.tsx
|
|
@@ -6714,7 +6740,7 @@ var LoginForm = function(props) {
|
|
|
6714
6740
|
onClick: props.handleGithubLogin
|
|
6715
6741
|
}, props.isGithubLoading ? /* @__PURE__ */ import_react33.default.createElement(Loading, {
|
|
6716
6742
|
size: "button"
|
|
6717
|
-
}) : /* @__PURE__ */ import_react33.default.createElement(Logos.
|
|
6743
|
+
}) : /* @__PURE__ */ import_react33.default.createElement(Logos.github, {
|
|
6718
6744
|
className: "hawa-h-4 hawa-w-4"
|
|
6719
6745
|
}), !props.logosOnly && ((_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.loginViaGithubLabel)), props.viaTwitter && /* @__PURE__ */ import_react33.default.createElement(Button, {
|
|
6720
6746
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
@@ -7024,7 +7050,7 @@ var RegisterForm = function(props) {
|
|
|
7024
7050
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7025
7051
|
variant: "outline",
|
|
7026
7052
|
onClick: props.handleGithubRegister
|
|
7027
|
-
}, /* @__PURE__ */ import_react34.default.createElement(Logos.
|
|
7053
|
+
}, /* @__PURE__ */ import_react34.default.createElement(Logos.github, {
|
|
7028
7054
|
className: "hawa-h-4 hawa-w-4"
|
|
7029
7055
|
}), !props.logosOnly && props.texts.registerViaGithubLabel), props.viaTwitter && /* @__PURE__ */ import_react34.default.createElement(Button, {
|
|
7030
7056
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
@@ -7059,7 +7085,7 @@ var AppLanding = function(props) {
|
|
|
7059
7085
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7060
7086
|
variant: "outline",
|
|
7061
7087
|
onClick: props.handleGithub
|
|
7062
|
-
}, /* @__PURE__ */ import_react35.default.createElement(Logos.
|
|
7088
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.github, {
|
|
7063
7089
|
className: "hawa-h-4 hawa-w-4"
|
|
7064
7090
|
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
7065
7091
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
@@ -8354,8 +8380,30 @@ var import_react55 = require("react");
|
|
|
8354
8380
|
var import_react56 = require("react");
|
|
8355
8381
|
// components/hooks/useCarousel.ts
|
|
8356
8382
|
var import_react57 = require("react");
|
|
8357
|
-
// components/hooks/
|
|
8383
|
+
// components/hooks/useWindowSize.ts
|
|
8358
8384
|
var import_react58 = require("react");
|
|
8385
|
+
var useWindowSize = function() {
|
|
8386
|
+
var _ref = _sliced_to_array((0, import_react58.useState)({
|
|
8387
|
+
width: void 0,
|
|
8388
|
+
height: void 0
|
|
8389
|
+
}), 2), windowSize = _ref[0], setWindowSize = _ref[1];
|
|
8390
|
+
(0, import_react58.useEffect)(function() {
|
|
8391
|
+
var handleResize = function handleResize() {
|
|
8392
|
+
setWindowSize({
|
|
8393
|
+
width: window.innerWidth,
|
|
8394
|
+
height: window.innerHeight
|
|
8395
|
+
});
|
|
8396
|
+
};
|
|
8397
|
+
window.addEventListener("resize", handleResize);
|
|
8398
|
+
handleResize();
|
|
8399
|
+
return function() {
|
|
8400
|
+
return window.removeEventListener("resize", handleResize);
|
|
8401
|
+
};
|
|
8402
|
+
}, []);
|
|
8403
|
+
return windowSize;
|
|
8404
|
+
};
|
|
8405
|
+
// components/hooks/useFocusWithin.ts
|
|
8406
|
+
var import_react59 = require("react");
|
|
8359
8407
|
function containsRelatedTarget(event) {
|
|
8360
8408
|
if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
|
|
8361
8409
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -8364,9 +8412,9 @@ function containsRelatedTarget(event) {
|
|
|
8364
8412
|
}
|
|
8365
8413
|
function useFocusWithin() {
|
|
8366
8414
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
|
|
8367
|
-
var ref = (0,
|
|
8368
|
-
var _ref1 = _sliced_to_array((0,
|
|
8369
|
-
var focusedRef = (0,
|
|
8415
|
+
var ref = (0, import_react59.useRef)(null);
|
|
8416
|
+
var _ref1 = _sliced_to_array((0, import_react59.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
|
|
8417
|
+
var focusedRef = (0, import_react59.useRef)(false);
|
|
8370
8418
|
var setFocused = function(value) {
|
|
8371
8419
|
_setFocused(value);
|
|
8372
8420
|
focusedRef.current = value;
|
|
@@ -8383,7 +8431,7 @@ function useFocusWithin() {
|
|
|
8383
8431
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
8384
8432
|
}
|
|
8385
8433
|
};
|
|
8386
|
-
(0,
|
|
8434
|
+
(0, import_react59.useEffect)(function() {
|
|
8387
8435
|
if (ref.current) {
|
|
8388
8436
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
8389
8437
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -8404,7 +8452,7 @@ function useFocusWithin() {
|
|
|
8404
8452
|
};
|
|
8405
8453
|
}
|
|
8406
8454
|
// components/hooks/useMediaQuery.ts
|
|
8407
|
-
var
|
|
8455
|
+
var import_react60 = require("react");
|
|
8408
8456
|
function attachMediaListener(query, callback) {
|
|
8409
8457
|
try {
|
|
8410
8458
|
query.addEventListener("change", callback);
|
|
@@ -8431,9 +8479,9 @@ function useMediaQuery(query, initialValue) {
|
|
|
8431
8479
|
var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
8432
8480
|
getInitialValueInEffect: true
|
|
8433
8481
|
}).getInitialValueInEffect;
|
|
8434
|
-
var _ref = _sliced_to_array((0,
|
|
8435
|
-
var queryRef = (0,
|
|
8436
|
-
(0,
|
|
8482
|
+
var _ref = _sliced_to_array((0, import_react60.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
|
|
8483
|
+
var queryRef = (0, import_react60.useRef)();
|
|
8484
|
+
(0, import_react60.useEffect)(function() {
|
|
8437
8485
|
if ("matchMedia" in window) {
|
|
8438
8486
|
queryRef.current = window.matchMedia(query);
|
|
8439
8487
|
setMatches(queryRef.current.matches);
|
|
@@ -8448,15 +8496,15 @@ function useMediaQuery(query, initialValue) {
|
|
|
8448
8496
|
return matches;
|
|
8449
8497
|
}
|
|
8450
8498
|
// components/hooks/useScrollPosition.ts
|
|
8451
|
-
var import_react60 = require("react");
|
|
8452
|
-
// components/hooks/useTable.ts
|
|
8453
8499
|
var import_react61 = require("react");
|
|
8454
|
-
// components/hooks/
|
|
8500
|
+
// components/hooks/useTable.ts
|
|
8455
8501
|
var import_react62 = require("react");
|
|
8502
|
+
// components/hooks/useTabs.ts
|
|
8503
|
+
var import_react63 = require("react");
|
|
8456
8504
|
function useTabs() {
|
|
8457
8505
|
var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
8458
|
-
var _ref = _sliced_to_array((0,
|
|
8459
|
-
(0,
|
|
8506
|
+
var _ref = _sliced_to_array((0, import_react63.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
|
|
8507
|
+
(0, import_react63.useEffect)(function() {
|
|
8460
8508
|
var handleHashChange = function() {
|
|
8461
8509
|
var hash = window.location.hash.substring(1);
|
|
8462
8510
|
setActiveTab(hash || initialTab);
|
|
@@ -8609,5 +8657,6 @@ function useTabs() {
|
|
|
8609
8657
|
useFormField: useFormField,
|
|
8610
8658
|
useMediaQuery: useMediaQuery,
|
|
8611
8659
|
useTabs: useTabs,
|
|
8612
|
-
useToast: useToast
|
|
8660
|
+
useToast: useToast,
|
|
8661
|
+
useWindowSize: useWindowSize
|
|
8613
8662
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -5109,33 +5109,36 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
5109
5109
|
// components/elements/Logos.tsx
|
|
5110
5110
|
import React42 from "react";
|
|
5111
5111
|
var Logos = {
|
|
5112
|
-
|
|
5113
|
-
"
|
|
5112
|
+
hawa: (props) => /* @__PURE__ */ React42.createElement(
|
|
5113
|
+
"svg",
|
|
5114
5114
|
{
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5115
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5116
|
+
xmlSpace: "preserve",
|
|
5117
|
+
viewBox: "0 0 765 765",
|
|
5118
|
+
...props
|
|
5119
|
+
},
|
|
5120
|
+
/* @__PURE__ */ React42.createElement(
|
|
5121
|
+
"path",
|
|
5122
|
+
{
|
|
5123
|
+
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
|
5124
|
+
fill: "currentColor"
|
|
5125
|
+
}
|
|
5126
|
+
)
|
|
5127
|
+
),
|
|
5128
|
+
sikka: (props) => /* @__PURE__ */ React42.createElement(
|
|
5129
|
+
"svg",
|
|
5127
5130
|
{
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
fill: "
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
}
|
|
5138
|
-
)
|
|
5131
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5132
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
5133
|
+
xmlSpace: "preserve",
|
|
5134
|
+
viewBox: "0 0 916.5 765",
|
|
5135
|
+
fill: "currentColor",
|
|
5136
|
+
...props
|
|
5137
|
+
},
|
|
5138
|
+
/* @__PURE__ */ React42.createElement("defs", null, /* @__PURE__ */ React42.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
|
5139
|
+
/* @__PURE__ */ React42.createElement("clipPath", { id: "b" }, /* @__PURE__ */ React42.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
|
5140
|
+
/* @__PURE__ */ React42.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ React42.createElement("defs", null, /* @__PURE__ */ React42.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ React42.createElement("clipPath", { id: "d" }, /* @__PURE__ */ React42.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ React42.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ React42.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
|
|
5141
|
+
),
|
|
5139
5142
|
mail: (props) => /* @__PURE__ */ React42.createElement(
|
|
5140
5143
|
"svg",
|
|
5141
5144
|
{
|
|
@@ -5189,13 +5192,21 @@ var Logos = {
|
|
|
5189
5192
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
|
5190
5193
|
}
|
|
5191
5194
|
)),
|
|
5192
|
-
|
|
5193
|
-
"
|
|
5195
|
+
github: (props) => /* @__PURE__ */ React42.createElement(
|
|
5196
|
+
"svg",
|
|
5194
5197
|
{
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5198
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5199
|
+
viewBox: "0 0 438.549 438.549",
|
|
5200
|
+
...props
|
|
5201
|
+
},
|
|
5202
|
+
/* @__PURE__ */ React42.createElement(
|
|
5203
|
+
"path",
|
|
5204
|
+
{
|
|
5205
|
+
fill: "currentColor",
|
|
5206
|
+
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
|
5207
|
+
}
|
|
5208
|
+
)
|
|
5209
|
+
),
|
|
5199
5210
|
radix: (props) => /* @__PURE__ */ React42.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ React42.createElement(
|
|
5200
5211
|
"path",
|
|
5201
5212
|
{
|
|
@@ -5281,6 +5292,18 @@ var Logos = {
|
|
|
5281
5292
|
...props
|
|
5282
5293
|
},
|
|
5283
5294
|
/* @__PURE__ */ React42.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
5295
|
+
),
|
|
5296
|
+
whatsapp: (props) => /* @__PURE__ */ React42.createElement(
|
|
5297
|
+
"svg",
|
|
5298
|
+
{
|
|
5299
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5300
|
+
width: "24",
|
|
5301
|
+
height: "24",
|
|
5302
|
+
viewBox: "0 0 24 24",
|
|
5303
|
+
fill: "currentColor",
|
|
5304
|
+
...props
|
|
5305
|
+
},
|
|
5306
|
+
/* @__PURE__ */ React42.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
|
|
5284
5307
|
)
|
|
5285
5308
|
};
|
|
5286
5309
|
|
|
@@ -6557,7 +6580,7 @@ var LoginForm = (props) => {
|
|
|
6557
6580
|
variant: "outline",
|
|
6558
6581
|
onClick: props.handleGithubLogin
|
|
6559
6582
|
},
|
|
6560
|
-
props.isGithubLoading ? /* @__PURE__ */ React53.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React53.createElement(Logos.
|
|
6583
|
+
props.isGithubLoading ? /* @__PURE__ */ React53.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React53.createElement(Logos.github, { className: "hawa-h-4 hawa-w-4" }),
|
|
6561
6584
|
!props.logosOnly && props.texts?.loginViaGithubLabel
|
|
6562
6585
|
),
|
|
6563
6586
|
props.viaTwitter && /* @__PURE__ */ React53.createElement(
|
|
@@ -6884,7 +6907,7 @@ var RegisterForm = (props) => {
|
|
|
6884
6907
|
variant: "outline",
|
|
6885
6908
|
onClick: props.handleGithubRegister
|
|
6886
6909
|
},
|
|
6887
|
-
/* @__PURE__ */ React54.createElement(Logos.
|
|
6910
|
+
/* @__PURE__ */ React54.createElement(Logos.github, { className: "hawa-h-4 hawa-w-4" }),
|
|
6888
6911
|
!props.logosOnly && props.texts.registerViaGithubLabel
|
|
6889
6912
|
),
|
|
6890
6913
|
props.viaTwitter && /* @__PURE__ */ React54.createElement(
|
|
@@ -6927,7 +6950,7 @@ var AppLanding = (props) => {
|
|
|
6927
6950
|
variant: "outline",
|
|
6928
6951
|
onClick: props.handleGithub
|
|
6929
6952
|
},
|
|
6930
|
-
/* @__PURE__ */ React55.createElement(Logos.
|
|
6953
|
+
/* @__PURE__ */ React55.createElement(Logos.github, { className: "hawa-h-4 hawa-w-4" }),
|
|
6931
6954
|
props.texts?.continueWithGithub ?? "Continue With Github"
|
|
6932
6955
|
), props.viaTwitter && /* @__PURE__ */ React55.createElement(
|
|
6933
6956
|
Button,
|
|
@@ -8160,8 +8183,29 @@ import { useEffect as useEffect14, useRef as useRef9, useState as useState28 } f
|
|
|
8160
8183
|
// components/hooks/useCarousel.ts
|
|
8161
8184
|
import { useState as useState29, useRef as useRef10 } from "react";
|
|
8162
8185
|
|
|
8186
|
+
// components/hooks/useWindowSize.ts
|
|
8187
|
+
import { useEffect as useEffect15, useState as useState30 } from "react";
|
|
8188
|
+
var useWindowSize = () => {
|
|
8189
|
+
const [windowSize, setWindowSize] = useState30({
|
|
8190
|
+
width: void 0,
|
|
8191
|
+
height: void 0
|
|
8192
|
+
});
|
|
8193
|
+
useEffect15(() => {
|
|
8194
|
+
function handleResize() {
|
|
8195
|
+
setWindowSize({
|
|
8196
|
+
width: window.innerWidth,
|
|
8197
|
+
height: window.innerHeight
|
|
8198
|
+
});
|
|
8199
|
+
}
|
|
8200
|
+
window.addEventListener("resize", handleResize);
|
|
8201
|
+
handleResize();
|
|
8202
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
8203
|
+
}, []);
|
|
8204
|
+
return windowSize;
|
|
8205
|
+
};
|
|
8206
|
+
|
|
8163
8207
|
// components/hooks/useFocusWithin.ts
|
|
8164
|
-
import { useRef as useRef11, useState as
|
|
8208
|
+
import { useRef as useRef11, useState as useState31, useEffect as useEffect16 } from "react";
|
|
8165
8209
|
function containsRelatedTarget(event) {
|
|
8166
8210
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
|
8167
8211
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -8173,7 +8217,7 @@ function useFocusWithin({
|
|
|
8173
8217
|
onFocus
|
|
8174
8218
|
} = {}) {
|
|
8175
8219
|
const ref = useRef11(null);
|
|
8176
|
-
const [focused, _setFocused] =
|
|
8220
|
+
const [focused, _setFocused] = useState31(false);
|
|
8177
8221
|
const focusedRef = useRef11(false);
|
|
8178
8222
|
const setFocused = (value) => {
|
|
8179
8223
|
_setFocused(value);
|
|
@@ -8191,7 +8235,7 @@ function useFocusWithin({
|
|
|
8191
8235
|
onBlur?.(event);
|
|
8192
8236
|
}
|
|
8193
8237
|
};
|
|
8194
|
-
|
|
8238
|
+
useEffect16(() => {
|
|
8195
8239
|
if (ref.current) {
|
|
8196
8240
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
8197
8241
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -8206,7 +8250,7 @@ function useFocusWithin({
|
|
|
8206
8250
|
}
|
|
8207
8251
|
|
|
8208
8252
|
// components/hooks/useMediaQuery.ts
|
|
8209
|
-
import { useState as
|
|
8253
|
+
import { useState as useState32, useEffect as useEffect17, useRef as useRef12 } from "react";
|
|
8210
8254
|
function attachMediaListener(query, callback) {
|
|
8211
8255
|
try {
|
|
8212
8256
|
query.addEventListener("change", callback);
|
|
@@ -8228,11 +8272,11 @@ function getInitialValue(query, initialValue) {
|
|
|
8228
8272
|
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
8229
8273
|
getInitialValueInEffect: true
|
|
8230
8274
|
}) {
|
|
8231
|
-
const [matches, setMatches] =
|
|
8275
|
+
const [matches, setMatches] = useState32(
|
|
8232
8276
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
|
8233
8277
|
);
|
|
8234
8278
|
const queryRef = useRef12();
|
|
8235
|
-
|
|
8279
|
+
useEffect17(() => {
|
|
8236
8280
|
if ("matchMedia" in window) {
|
|
8237
8281
|
queryRef.current = window.matchMedia(query);
|
|
8238
8282
|
setMatches(queryRef.current.matches);
|
|
@@ -8247,16 +8291,16 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
|
8247
8291
|
}
|
|
8248
8292
|
|
|
8249
8293
|
// components/hooks/useScrollPosition.ts
|
|
8250
|
-
import { useState as
|
|
8294
|
+
import { useState as useState33, useEffect as useEffect18 } from "react";
|
|
8251
8295
|
|
|
8252
8296
|
// components/hooks/useTable.ts
|
|
8253
|
-
import { useState as
|
|
8297
|
+
import { useState as useState34, useEffect as useEffect19 } from "react";
|
|
8254
8298
|
|
|
8255
8299
|
// components/hooks/useTabs.ts
|
|
8256
|
-
import { useEffect as
|
|
8300
|
+
import { useEffect as useEffect20, useState as useState35 } from "react";
|
|
8257
8301
|
function useTabs(initialTab = "") {
|
|
8258
|
-
const [activeTab, setActiveTab] =
|
|
8259
|
-
|
|
8302
|
+
const [activeTab, setActiveTab] = useState35(initialTab);
|
|
8303
|
+
useEffect20(() => {
|
|
8260
8304
|
const handleHashChange = () => {
|
|
8261
8305
|
const hash = window.location.hash.substring(1);
|
|
8262
8306
|
setActiveTab(hash || initialTab);
|
|
@@ -8406,5 +8450,6 @@ export {
|
|
|
8406
8450
|
useFormField,
|
|
8407
8451
|
useMediaQuery,
|
|
8408
8452
|
useTabs,
|
|
8409
|
-
useToast
|
|
8453
|
+
useToast,
|
|
8454
|
+
useWindowSize
|
|
8410
8455
|
};
|