@sikka/hawa 0.17.1-next → 0.17.3-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
@@ -994,6 +994,9 @@ input[type="number"]::-webkit-inner-spin-button,
994
994
  .hawa-mt-8 {
995
995
  margin-top: 2rem;
996
996
  }
997
+ .hawa-box-border {
998
+ box-sizing: border-box;
999
+ }
997
1000
  .hawa-block {
998
1001
  display: block;
999
1002
  }
@@ -1726,6 +1729,11 @@ input[type="number"]::-webkit-inner-spin-button,
1726
1729
  .hawa-overflow-y-scroll {
1727
1730
  overflow-y: scroll;
1728
1731
  }
1732
+ .hawa-truncate {
1733
+ overflow: hidden;
1734
+ text-overflow: ellipsis;
1735
+ white-space: nowrap;
1736
+ }
1729
1737
  .hawa-whitespace-nowrap {
1730
1738
  white-space: nowrap;
1731
1739
  }
@@ -2953,6 +2961,11 @@ body {
2953
2961
  border-top-right-radius: var(--radius);
2954
2962
  border-bottom-right-radius: var(--radius);
2955
2963
  }
2964
+ .hover\:hawa-scale-\[1\.1\]:hover {
2965
+ --tw-scale-x: 1.1;
2966
+ --tw-scale-y: 1.1;
2967
+ 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));
2968
+ }
2956
2969
  .hover\:hawa-cursor-pointer:hover {
2957
2970
  cursor: pointer;
2958
2971
  }
@@ -3284,9 +3297,15 @@ body {
3284
3297
  .aria-selected\:hawa-text-accent-foreground[aria-selected="true"] {
3285
3298
  color: hsl(var(--accent-foreground));
3286
3299
  }
3300
+ .data-\[disabled\=true\]\:hawa-pointer-events-none[data-disabled=true] {
3301
+ pointer-events: none;
3302
+ }
3287
3303
  .data-\[disabled\]\:hawa-pointer-events-none[data-disabled] {
3288
3304
  pointer-events: none;
3289
3305
  }
3306
+ .data-\[focus-visible\=true\]\:hawa-z-10[data-focus-visible=true] {
3307
+ z-index: 10;
3308
+ }
3290
3309
  .data-\[state\=checked\]\:hawa--translate-x-\[19px\][data-state=checked] {
3291
3310
  --tw-translate-x: -19px;
3292
3311
  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));
@@ -3307,6 +3326,11 @@ body {
3307
3326
  --tw-translate-x: var(--radix-toast-swipe-move-x);
3308
3327
  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));
3309
3328
  }
3329
+ .data-\[pressed\=true\]\:hawa-scale-\[0\.97\][data-pressed=true] {
3330
+ --tw-scale-x: 0.97;
3331
+ --tw-scale-y: 0.97;
3332
+ 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));
3333
+ }
3310
3334
  @keyframes hawa-accordion-up {
3311
3335
 
3312
3336
  from {
@@ -3377,6 +3401,12 @@ body {
3377
3401
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
3378
3402
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3379
3403
  }
3404
+ .data-\[focus-visible\=true\]\:hawa-outline-2[data-focus-visible=true] {
3405
+ outline-width: 2px;
3406
+ }
3407
+ .data-\[focus-visible\=true\]\:hawa-outline-offset-2[data-focus-visible=true] {
3408
+ outline-offset: 2px;
3409
+ }
3380
3410
  .data-\[swipe\=move\]\:hawa-transition-none[data-swipe=move] {
3381
3411
  transition-property: none;
3382
3412
  }
package/dist/index.d.mts CHANGED
@@ -300,7 +300,7 @@ type ComboboxTypes<T> = {
300
300
  valueKey?: keyof T;
301
301
  data: T[];
302
302
  width?: string;
303
- texts: {
303
+ texts?: {
304
304
  noItems?: string;
305
305
  placeholder?: string;
306
306
  searchPlaceholder?: string;
@@ -321,7 +321,7 @@ type ComboboxTypes<T> = {
321
321
  isRequired?: boolean;
322
322
  onChange?: (e: any) => void;
323
323
  };
324
- declare const Combobox: React$1.FC<ComboboxTypes<any>>;
324
+ declare const Combobox: React$1.ForwardRefExoticComponent<ComboboxTypes<any> & React$1.RefAttributes<HTMLDivElement>>;
325
325
 
326
326
  type SelectOptionProps = {
327
327
  value: any;
@@ -534,7 +534,7 @@ interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
534
534
  declare function Skeleton({ className, content, animation, ...props }: SkeletonProps): React__default.JSX.Element;
535
535
 
536
536
  type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
537
- type ChipTypes = {
537
+ type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
538
538
  /** The text inside the chip */
539
539
  label: string;
540
540
  /** The small icon before the chip label */
@@ -549,7 +549,21 @@ type ChipTypes = {
549
549
  dotType?: "available" | "unavailable";
550
550
  radius?: RadiusType;
551
551
  };
552
- declare const Chip: FC<ChipTypes>;
552
+ declare const Chip: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & {
553
+ /** The text inside the chip */
554
+ label: string;
555
+ /** The small icon before the chip label */
556
+ icon?: JSX.Element | undefined;
557
+ /** The color of the chip, must be a tailwind color */
558
+ color?: ChipColors | undefined;
559
+ /** The size of the chip */
560
+ size?: "small" | "normal" | "large" | undefined;
561
+ /** Enable/Disable the dot before the label of the chip */
562
+ dot?: boolean | undefined;
563
+ /** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
564
+ dotType?: "available" | "unavailable" | undefined;
565
+ radius?: RadiusType | undefined;
566
+ } & React__default.RefAttributes<HTMLSpanElement>>;
553
567
 
554
568
  type AlertTypes = {
555
569
  severity?: SeverityType | "hyper" | "oceanic";
@@ -943,6 +957,8 @@ declare const FileUploader: ({ handleFile, className }: any) => React__default.J
943
957
 
944
958
  type PaginationProps = {
945
959
  direction?: DirectionType;
960
+ totalPages: number;
961
+ currentPage?: number;
946
962
  };
947
963
  declare const Pagination: React__default.FC<PaginationProps>;
948
964
 
package/dist/index.d.ts CHANGED
@@ -300,7 +300,7 @@ type ComboboxTypes<T> = {
300
300
  valueKey?: keyof T;
301
301
  data: T[];
302
302
  width?: string;
303
- texts: {
303
+ texts?: {
304
304
  noItems?: string;
305
305
  placeholder?: string;
306
306
  searchPlaceholder?: string;
@@ -321,7 +321,7 @@ type ComboboxTypes<T> = {
321
321
  isRequired?: boolean;
322
322
  onChange?: (e: any) => void;
323
323
  };
324
- declare const Combobox: React$1.FC<ComboboxTypes<any>>;
324
+ declare const Combobox: React$1.ForwardRefExoticComponent<ComboboxTypes<any> & React$1.RefAttributes<HTMLDivElement>>;
325
325
 
326
326
  type SelectOptionProps = {
327
327
  value: any;
@@ -534,7 +534,7 @@ interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
534
534
  declare function Skeleton({ className, content, animation, ...props }: SkeletonProps): React__default.JSX.Element;
535
535
 
536
536
  type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
537
- type ChipTypes = {
537
+ type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
538
538
  /** The text inside the chip */
539
539
  label: string;
540
540
  /** The small icon before the chip label */
@@ -549,7 +549,21 @@ type ChipTypes = {
549
549
  dotType?: "available" | "unavailable";
550
550
  radius?: RadiusType;
551
551
  };
552
- declare const Chip: FC<ChipTypes>;
552
+ declare const Chip: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & {
553
+ /** The text inside the chip */
554
+ label: string;
555
+ /** The small icon before the chip label */
556
+ icon?: JSX.Element | undefined;
557
+ /** The color of the chip, must be a tailwind color */
558
+ color?: ChipColors | undefined;
559
+ /** The size of the chip */
560
+ size?: "small" | "normal" | "large" | undefined;
561
+ /** Enable/Disable the dot before the label of the chip */
562
+ dot?: boolean | undefined;
563
+ /** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
564
+ dotType?: "available" | "unavailable" | undefined;
565
+ radius?: RadiusType | undefined;
566
+ } & React__default.RefAttributes<HTMLSpanElement>>;
553
567
 
554
568
  type AlertTypes = {
555
569
  severity?: SeverityType | "hyper" | "oceanic";
@@ -943,6 +957,8 @@ declare const FileUploader: ({ handleFile, className }: any) => React__default.J
943
957
 
944
958
  type PaginationProps = {
945
959
  direction?: DirectionType;
960
+ totalPages: number;
961
+ currentPage?: number;
946
962
  };
947
963
  declare const Pagination: React__default.FC<PaginationProps>;
948
964