@sikka/hawa 0.2.45-next → 0.2.47-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 CHANGED
@@ -405,7 +405,7 @@ video {
405
405
  --border: 240 5.9% 90%;
406
406
  --input: 240 5.9% 90%;
407
407
  --ring: 240 5.9% 10%;
408
- --radius: 0.1rem;
408
+ --radius: 0.5rem;
409
409
  --radius-inner: calc(var(--radius) - calc(var(--radius) / 3));
410
410
  }
411
411
 
@@ -645,6 +645,12 @@ input[type="number"]::-webkit-inner-spin-button,
645
645
  .hawa-pointer-events-auto {
646
646
  pointer-events: auto;
647
647
  }
648
+ .hawa-visible {
649
+ visibility: visible;
650
+ }
651
+ .hawa-invisible {
652
+ visibility: hidden;
653
+ }
648
654
  .hawa-fixed {
649
655
  position: fixed;
650
656
  }
@@ -657,9 +663,15 @@ input[type="number"]::-webkit-inner-spin-button,
657
663
  .hawa-inset-0 {
658
664
  inset: 0px;
659
665
  }
666
+ .hawa-bottom-0 {
667
+ bottom: 0px;
668
+ }
660
669
  .hawa-bottom-2 {
661
670
  bottom: 0.5rem;
662
671
  }
672
+ .hawa-bottom-4 {
673
+ bottom: 1rem;
674
+ }
663
675
  .hawa-left-0 {
664
676
  left: 0px;
665
677
  }
@@ -738,6 +750,10 @@ input[type="number"]::-webkit-inner-spin-button,
738
750
  margin-top: 0.25rem;
739
751
  margin-bottom: 0.25rem;
740
752
  }
753
+ .hawa-my-4 {
754
+ margin-top: 1rem;
755
+ margin-bottom: 1rem;
756
+ }
741
757
  .hawa--mt-1 {
742
758
  margin-top: -0.25rem;
743
759
  }
@@ -795,6 +811,9 @@ input[type="number"]::-webkit-inner-spin-button,
795
811
  .hawa-mt-4 {
796
812
  margin-top: 1rem;
797
813
  }
814
+ .hawa-mt-8 {
815
+ margin-top: 2rem;
816
+ }
798
817
  .hawa-block {
799
818
  display: block;
800
819
  }
@@ -870,8 +889,11 @@ input[type="number"]::-webkit-inner-spin-button,
870
889
  .hawa-h-\[16px\] {
871
890
  height: 16px;
872
891
  }
873
- .hawa-h-\[2\.38rem\] {
874
- height: 2.38rem;
892
+ .hawa-h-\[185px\] {
893
+ height: 185px;
894
+ }
895
+ .hawa-h-\[1px\] {
896
+ height: 1px;
875
897
  }
876
898
  .hawa-h-\[200px\] {
877
899
  height: 200px;
@@ -891,11 +913,14 @@ input[type="number"]::-webkit-inner-spin-button,
891
913
  .hawa-h-\[30px\] {
892
914
  height: 30px;
893
915
  }
916
+ .hawa-h-\[36px\] {
917
+ height: 36px;
918
+ }
894
919
  .hawa-h-\[38px\] {
895
920
  height: 38px;
896
921
  }
897
- .hawa-h-auto {
898
- height: auto;
922
+ .hawa-h-\[44px\] {
923
+ height: 44px;
899
924
  }
900
925
  .hawa-h-fit {
901
926
  height: -moz-fit-content;
@@ -992,12 +1017,18 @@ input[type="number"]::-webkit-inner-spin-button,
992
1017
  .hawa-w-9 {
993
1018
  width: 2.25rem;
994
1019
  }
1020
+ .hawa-w-\[100px\] {
1021
+ width: 100px;
1022
+ }
995
1023
  .hawa-w-\[16px\] {
996
1024
  width: 16px;
997
1025
  }
998
1026
  .hawa-w-\[190px\] {
999
1027
  width: 190px;
1000
1028
  }
1029
+ .hawa-w-\[1px\] {
1030
+ width: 1px;
1031
+ }
1001
1032
  .hawa-w-\[200px\] {
1002
1033
  width: 200px;
1003
1034
  }
@@ -1019,9 +1050,6 @@ input[type="number"]::-webkit-inner-spin-button,
1019
1050
  .hawa-w-\[47px\] {
1020
1051
  width: 47px;
1021
1052
  }
1022
- .hawa-w-\[64px\] {
1023
- width: 64px;
1024
- }
1025
1053
  .hawa-w-fit {
1026
1054
  width: -moz-fit-content;
1027
1055
  width: fit-content;
@@ -1035,6 +1063,10 @@ input[type="number"]::-webkit-inner-spin-button,
1035
1063
  .hawa-min-w-\[8rem\] {
1036
1064
  min-width: 8rem;
1037
1065
  }
1066
+ .hawa-min-w-fit {
1067
+ min-width: -moz-fit-content;
1068
+ min-width: fit-content;
1069
+ }
1038
1070
  .hawa-min-w-full {
1039
1071
  min-width: 100%;
1040
1072
  }
@@ -1160,6 +1192,9 @@ input[type="number"]::-webkit-inner-spin-button,
1160
1192
  -moz-user-select: none;
1161
1193
  user-select: none;
1162
1194
  }
1195
+ .hawa-resize-none {
1196
+ resize: none;
1197
+ }
1163
1198
  .hawa-grid-cols-1 {
1164
1199
  grid-template-columns: repeat(1, minmax(0, 1fr));
1165
1200
  }
@@ -1253,6 +1288,9 @@ input[type="number"]::-webkit-inner-spin-button,
1253
1288
  .hawa-overflow-hidden {
1254
1289
  overflow: hidden;
1255
1290
  }
1291
+ .hawa-overflow-clip {
1292
+ overflow: clip;
1293
+ }
1256
1294
  .hawa-overflow-x-auto {
1257
1295
  overflow-x: auto;
1258
1296
  }
@@ -1299,13 +1337,13 @@ input[type="number"]::-webkit-inner-spin-button,
1299
1337
  border-bottom-right-radius: var(--radius);
1300
1338
  border-bottom-left-radius: var(--radius);
1301
1339
  }
1302
- .hawa-rounded-l {
1303
- border-top-left-radius: var(--radius);
1304
- border-bottom-left-radius: var(--radius);
1340
+ .hawa-rounded-l-none {
1341
+ border-top-left-radius: 0px;
1342
+ border-bottom-left-radius: 0px;
1305
1343
  }
1306
- .hawa-rounded-r {
1307
- border-top-right-radius: var(--radius);
1308
- border-bottom-right-radius: var(--radius);
1344
+ .hawa-rounded-r-none {
1345
+ border-top-right-radius: 0px;
1346
+ border-bottom-right-radius: 0px;
1309
1347
  }
1310
1348
  .hawa-rounded-t {
1311
1349
  border-top-left-radius: var(--radius);
@@ -1446,6 +1484,10 @@ input[type="number"]::-webkit-inner-spin-button,
1446
1484
  --tw-bg-opacity: 1;
1447
1485
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1448
1486
  }
1487
+ .hawa-bg-gray-500 {
1488
+ --tw-bg-opacity: 1;
1489
+ background-color: rgb(107 114 128 / var(--tw-bg-opacity));
1490
+ }
1449
1491
  .hawa-bg-gray-900 {
1450
1492
  --tw-bg-opacity: 1;
1451
1493
  background-color: rgb(17 24 39 / var(--tw-bg-opacity));
@@ -1477,6 +1519,9 @@ input[type="number"]::-webkit-inner-spin-button,
1477
1519
  .hawa-bg-primary-foreground {
1478
1520
  background-color: hsl(var(--primary-foreground));
1479
1521
  }
1522
+ .hawa-bg-primary\/10 {
1523
+ background-color: hsl(var(--primary) / 0.1);
1524
+ }
1480
1525
  .hawa-bg-primary\/20 {
1481
1526
  background-color: hsl(var(--primary) / 0.2);
1482
1527
  }
@@ -1513,6 +1558,9 @@ input[type="number"]::-webkit-inner-spin-button,
1513
1558
  --tw-bg-opacity: 1;
1514
1559
  background-color: rgb(254 249 195 / var(--tw-bg-opacity));
1515
1560
  }
1561
+ .hawa-bg-opacity-80 {
1562
+ --tw-bg-opacity: 0.8;
1563
+ }
1516
1564
  .hawa-bg-cover {
1517
1565
  background-size: cover;
1518
1566
  }
@@ -1684,9 +1732,6 @@ input[type="number"]::-webkit-inner-spin-button,
1684
1732
  .hawa-text-center {
1685
1733
  text-align: center;
1686
1734
  }
1687
- .hawa-text-right {
1688
- text-align: right;
1689
- }
1690
1735
  .hawa-text-start {
1691
1736
  text-align: start;
1692
1737
  }
@@ -1694,9 +1739,6 @@ input[type="number"]::-webkit-inner-spin-button,
1694
1739
  font-size: 1.5rem;
1695
1740
  line-height: 2rem;
1696
1741
  }
1697
- .hawa-text-\[0\.875rem\] {
1698
- font-size: 0.875rem;
1699
- }
1700
1742
  .hawa-text-\[10px\] {
1701
1743
  font-size: 10px;
1702
1744
  }
@@ -1755,6 +1797,10 @@ input[type="number"]::-webkit-inner-spin-button,
1755
1797
  .hawa-tracking-widest {
1756
1798
  letter-spacing: 0.1em;
1757
1799
  }
1800
+ .hawa-text-\[\#666666\] {
1801
+ --tw-text-opacity: 1;
1802
+ color: rgb(102 102 102 / var(--tw-text-opacity));
1803
+ }
1758
1804
  .hawa-text-black {
1759
1805
  --tw-text-opacity: 1;
1760
1806
  color: rgb(0 0 0 / var(--tw-text-opacity));
@@ -1946,6 +1992,9 @@ input[type="number"]::-webkit-inner-spin-button,
1946
1992
  .hawa-duration-500 {
1947
1993
  transition-duration: 500ms;
1948
1994
  }
1995
+ .hawa-ease-in-out {
1996
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1997
+ }
1949
1998
  .hawa-will-change-transform {
1950
1999
  will-change: transform;
1951
2000
  }
@@ -2002,6 +2051,9 @@ input[type="number"]::-webkit-inner-spin-button,
2002
2051
  .hawa-delay-300 {
2003
2052
  animation-delay: 300ms;
2004
2053
  }
2054
+ .hawa-ease-in-out {
2055
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2056
+ }
2005
2057
  .hawa-repeat-infinite {
2006
2058
  animation-iteration-count: infinite;
2007
2059
  }
@@ -2270,6 +2322,10 @@ body {
2270
2322
  --tw-ring-opacity: 1;
2271
2323
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
2272
2324
  }
2325
+ .focus\:hawa-ring-gray-300:focus {
2326
+ --tw-ring-opacity: 1;
2327
+ --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
2328
+ }
2273
2329
  .focus\:hawa-ring-ring:focus {
2274
2330
  --tw-ring-color: hsl(var(--ring));
2275
2331
  }
@@ -2585,6 +2641,10 @@ body {
2585
2641
  --tw-bg-opacity: 1;
2586
2642
  background-color: rgb(229 231 235 / var(--tw-bg-opacity));
2587
2643
  }
2644
+ :is(.hawa-dark .dark\:hawa-bg-gray-700) {
2645
+ --tw-bg-opacity: 1;
2646
+ background-color: rgb(55 65 81 / var(--tw-bg-opacity));
2647
+ }
2588
2648
  :is(.hawa-dark .dark\:hawa-bg-gray-800) {
2589
2649
  --tw-bg-opacity: 1;
2590
2650
  background-color: rgb(31 41 55 / var(--tw-bg-opacity));
@@ -2622,6 +2682,10 @@ body {
2622
2682
  --tw-text-opacity: 1;
2623
2683
  color: rgb(156 163 175 / var(--tw-text-opacity));
2624
2684
  }
2685
+ :is(.hawa-dark .dark\:hawa-text-gray-500) {
2686
+ --tw-text-opacity: 1;
2687
+ color: rgb(107 114 128 / var(--tw-text-opacity));
2688
+ }
2625
2689
  :is(.hawa-dark .dark\:hawa-text-gray-800) {
2626
2690
  --tw-text-opacity: 1;
2627
2691
  color: rgb(31 41 55 / var(--tw-text-opacity));
package/dist/index.d.mts CHANGED
@@ -11,6 +11,8 @@ import * as LabelPrimitive from '@radix-ui/react-label';
11
11
  import * as PopoverPrimitive from '@radix-ui/react-popover';
12
12
  import * as SliderPrimitive from '@radix-ui/react-slider';
13
13
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
14
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
15
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
14
16
  import * as TabsPrimitive from '@radix-ui/react-tabs';
15
17
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
16
18
 
@@ -147,16 +149,17 @@ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimit
147
149
  }
148
150
  declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
149
151
 
152
+ type RadioOptionsTypes = {
153
+ value: any;
154
+ label: any;
155
+ disabled?: any;
156
+ sublabel?: any;
157
+ icon?: any;
158
+ };
150
159
  type RadioTypes = {
151
160
  orientation?: "vertical" | "horizontal";
152
161
  design?: "default" | "tabs" | "cards" | "bordered";
153
- options?: {
154
- value: any;
155
- label: any;
156
- disabled?: any;
157
- sublabel?: any;
158
- icon?: any;
159
- }[];
162
+ options?: RadioOptionsTypes[];
160
163
  width?: "default" | "full";
161
164
  onChangeTab?: any;
162
165
  defaultValue?: any;
@@ -354,6 +357,10 @@ type StoreButtonsTypes = {
354
357
  };
355
358
  declare const AppStores: FC<StoreButtonsTypes>;
356
359
 
360
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
361
+
362
+ declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
363
+
357
364
  type BackToTopTypes = {
358
365
  paddingX?: number;
359
366
  paddingY?: number;
@@ -365,8 +372,9 @@ declare const BackToTop: FC<BackToTopTypes>;
365
372
 
366
373
  type TextFieldTypes = {
367
374
  isLoading?: boolean;
375
+ containerClassName?: string;
368
376
  margin?: "none" | "normal" | "large";
369
- width?: "small" | "normal" | "full";
377
+ width?: "small" | "normal" | "full" | "auto";
370
378
  /** The label of the input field */
371
379
  label?: any;
372
380
  /** Disable/Enable multiple line text input field */
@@ -473,6 +481,8 @@ declare const CommandShortcut: {
473
481
  displayName: string;
474
482
  };
475
483
 
484
+ declare function Combobox(): React.JSX.Element;
485
+
476
486
  type SelectTypes = {
477
487
  label?: string;
478
488
  options?: {
@@ -483,6 +493,8 @@ type SelectTypes = {
483
493
  isClearable?: boolean;
484
494
  isMulti?: boolean;
485
495
  isSearchable?: boolean;
496
+ controlClassNames?: string;
497
+ containerClassNames?: string;
486
498
  onChange?: any;
487
499
  helperText?: any;
488
500
  onInputChange?: any;
@@ -501,4 +513,4 @@ type SelectTypes = {
501
513
  };
502
514
  declare const Select: FC<SelectTypes>;
503
515
 
504
- export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Input, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Radio, ScrollArea, ScrollBar, Select, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
516
+ export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Input, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
package/dist/index.d.ts CHANGED
@@ -11,6 +11,8 @@ import * as LabelPrimitive from '@radix-ui/react-label';
11
11
  import * as PopoverPrimitive from '@radix-ui/react-popover';
12
12
  import * as SliderPrimitive from '@radix-ui/react-slider';
13
13
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
14
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
15
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
14
16
  import * as TabsPrimitive from '@radix-ui/react-tabs';
15
17
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
16
18
 
@@ -147,16 +149,17 @@ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimit
147
149
  }
148
150
  declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
149
151
 
152
+ type RadioOptionsTypes = {
153
+ value: any;
154
+ label: any;
155
+ disabled?: any;
156
+ sublabel?: any;
157
+ icon?: any;
158
+ };
150
159
  type RadioTypes = {
151
160
  orientation?: "vertical" | "horizontal";
152
161
  design?: "default" | "tabs" | "cards" | "bordered";
153
- options?: {
154
- value: any;
155
- label: any;
156
- disabled?: any;
157
- sublabel?: any;
158
- icon?: any;
159
- }[];
162
+ options?: RadioOptionsTypes[];
160
163
  width?: "default" | "full";
161
164
  onChangeTab?: any;
162
165
  defaultValue?: any;
@@ -354,6 +357,10 @@ type StoreButtonsTypes = {
354
357
  };
355
358
  declare const AppStores: FC<StoreButtonsTypes>;
356
359
 
360
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
361
+
362
+ declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
363
+
357
364
  type BackToTopTypes = {
358
365
  paddingX?: number;
359
366
  paddingY?: number;
@@ -365,8 +372,9 @@ declare const BackToTop: FC<BackToTopTypes>;
365
372
 
366
373
  type TextFieldTypes = {
367
374
  isLoading?: boolean;
375
+ containerClassName?: string;
368
376
  margin?: "none" | "normal" | "large";
369
- width?: "small" | "normal" | "full";
377
+ width?: "small" | "normal" | "full" | "auto";
370
378
  /** The label of the input field */
371
379
  label?: any;
372
380
  /** Disable/Enable multiple line text input field */
@@ -473,6 +481,8 @@ declare const CommandShortcut: {
473
481
  displayName: string;
474
482
  };
475
483
 
484
+ declare function Combobox(): React.JSX.Element;
485
+
476
486
  type SelectTypes = {
477
487
  label?: string;
478
488
  options?: {
@@ -483,6 +493,8 @@ type SelectTypes = {
483
493
  isClearable?: boolean;
484
494
  isMulti?: boolean;
485
495
  isSearchable?: boolean;
496
+ controlClassNames?: string;
497
+ containerClassNames?: string;
486
498
  onChange?: any;
487
499
  helperText?: any;
488
500
  onInputChange?: any;
@@ -501,4 +513,4 @@ type SelectTypes = {
501
513
  };
502
514
  declare const Select: FC<SelectTypes>;
503
515
 
504
- export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Input, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Radio, ScrollArea, ScrollBar, Select, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
516
+ export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Input, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };