@sikka/hawa 0.1.98 → 0.1.99

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/styles.css CHANGED
@@ -897,9 +897,6 @@ video {
897
897
  .m-5 {
898
898
  margin: 1.25rem;
899
899
  }
900
- .m-\[5px\] {
901
- margin: 5px;
902
- }
903
900
  .-mx-1 {
904
901
  margin-left: -0.25rem;
905
902
  margin-right: -0.25rem;
@@ -1353,9 +1350,6 @@ video {
1353
1350
  .w-\[21px\] {
1354
1351
  width: 21px;
1355
1352
  }
1356
- .w-\[25px\] {
1357
- width: 25px;
1358
- }
1359
1353
  .w-\[300px\] {
1360
1354
  width: 300px;
1361
1355
  }
@@ -1403,9 +1397,6 @@ video {
1403
1397
  .min-w-0 {
1404
1398
  min-width: 0px;
1405
1399
  }
1406
- .min-w-\[220px\] {
1407
- min-width: 220px;
1408
- }
1409
1400
  .min-w-\[24px\] {
1410
1401
  min-width: 24px;
1411
1402
  }
@@ -1862,10 +1853,6 @@ video {
1862
1853
  border-top-left-radius: var(--radius);
1863
1854
  border-top-right-radius: var(--radius);
1864
1855
  }
1865
- .rounded-t-inner {
1866
- border-top-left-radius: var(--radius-inner);
1867
- border-top-right-radius: var(--radius-inner);
1868
- }
1869
1856
  .rounded-t-lg {
1870
1857
  border-top-left-radius: var(--radius);
1871
1858
  border-top-right-radius: var(--radius);
@@ -2212,10 +2199,6 @@ video {
2212
2199
  .bg-transparent {
2213
2200
  background-color: transparent;
2214
2201
  }
2215
- .bg-violet-6 {
2216
- --tw-bg-opacity: 1;
2217
- background-color: hsl(252 77.8% 89.4% / var(--tw-bg-opacity));
2218
- }
2219
2202
  .bg-warning {
2220
2203
  --tw-bg-opacity: 1;
2221
2204
  background-color: hsl(var(--warning) / var(--tw-bg-opacity));
@@ -2260,9 +2243,6 @@ video {
2260
2243
  .fill-primary\/20 {
2261
2244
  fill: hsl(var(--primary) / 0.2);
2262
2245
  }
2263
- .fill-white {
2264
- fill: #fff;
2265
- }
2266
2246
  .object-cover {
2267
2247
  -o-object-fit: cover;
2268
2248
  object-fit: cover;
@@ -2297,9 +2277,6 @@ video {
2297
2277
  .p-6 {
2298
2278
  padding: 1.5rem;
2299
2279
  }
2300
- .p-\[5px\] {
2301
- padding: 5px;
2302
- }
2303
2280
  .px-0 {
2304
2281
  padding-left: 0px;
2305
2282
  padding-right: 0px;
@@ -2344,10 +2321,6 @@ video {
2344
2321
  padding-left: 2rem;
2345
2322
  padding-right: 2rem;
2346
2323
  }
2347
- .px-\[5px\] {
2348
- padding-left: 5px;
2349
- padding-right: 5px;
2350
- }
2351
2324
  .py-0 {
2352
2325
  padding-top: 0px;
2353
2326
  padding-bottom: 0px;
@@ -2419,12 +2392,6 @@ video {
2419
2392
  .pl-8 {
2420
2393
  padding-left: 2rem;
2421
2394
  }
2422
- .pl-\[20px\] {
2423
- padding-left: 20px;
2424
- }
2425
- .pl-\[25px\] {
2426
- padding-left: 25px;
2427
- }
2428
2395
  .pr-10 {
2429
2396
  padding-right: 2.5rem;
2430
2397
  }
@@ -2510,9 +2477,6 @@ video {
2510
2477
  .text-\[12px\] {
2511
2478
  font-size: 12px;
2512
2479
  }
2513
- .text-\[13px\] {
2514
- font-size: 13px;
2515
- }
2516
2480
  .text-\[16px\] {
2517
2481
  font-size: 16px;
2518
2482
  }
@@ -2575,9 +2539,6 @@ video {
2575
2539
  .leading-8 {
2576
2540
  line-height: 2rem;
2577
2541
  }
2578
- .leading-\[25px\] {
2579
- line-height: 25px;
2580
- }
2581
2542
  .leading-none {
2582
2543
  line-height: 1;
2583
2544
  }
@@ -2670,10 +2631,6 @@ video {
2670
2631
  --tw-text-opacity: 1;
2671
2632
  color: hsl(var(--info-foreground) / var(--tw-text-opacity));
2672
2633
  }
2673
- .text-mauve-11 {
2674
- --tw-text-opacity: 1;
2675
- color: hsl(252 5.0% 40.7% / var(--tw-text-opacity));
2676
- }
2677
2634
  .text-muted-foreground {
2678
2635
  color: hsl(var(--muted-foreground));
2679
2636
  }
@@ -2731,10 +2688,6 @@ video {
2731
2688
  --tw-text-opacity: 1;
2732
2689
  color: hsl(var(--success-foreground) / var(--tw-text-opacity));
2733
2690
  }
2734
- .text-violet-11 {
2735
- --tw-text-opacity: 1;
2736
- color: hsl(250 43.0% 48.0% / var(--tw-text-opacity));
2737
- }
2738
2691
  .text-warning-foreground {
2739
2692
  --tw-text-opacity: 1;
2740
2693
  color: hsl(var(--warning-foreground) / var(--tw-text-opacity));
@@ -2794,11 +2747,6 @@ video {
2794
2747
  --tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);
2795
2748
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2796
2749
  }
2797
- .shadow-\[0px_10px_38px_-10px_rgba\(22\2c _23\2c _24\2c _0\.35\)\2c _0px_10px_20px_-15px_rgba\(22\2c _23\2c _24\2c _0\.2\)\] {
2798
- --tw-shadow: 0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2);
2799
- --tw-shadow-colored: 0px 10px 38px -10px var(--tw-shadow-color), 0px 10px 20px -15px var(--tw-shadow-color);
2800
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2801
- }
2802
2750
  .shadow-lg {
2803
2751
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
2804
2752
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
@@ -2880,10 +2828,6 @@ video {
2880
2828
  .ring-offset-background {
2881
2829
  --tw-ring-offset-color: hsl(var(--background));
2882
2830
  }
2883
- .drop-shadow-lg {
2884
- --tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
2885
- filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2886
- }
2887
2831
  .filter {
2888
2832
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2889
2833
  }
@@ -2939,15 +2883,9 @@ video {
2939
2883
  .duration-200 {
2940
2884
  transition-duration: 200ms;
2941
2885
  }
2942
- .duration-300 {
2943
- transition-duration: 300ms;
2944
- }
2945
2886
  .duration-500 {
2946
2887
  transition-duration: 500ms;
2947
2888
  }
2948
- .will-change-\[opacity\2c transform\] {
2949
- will-change: opacity,transform;
2950
- }
2951
2889
  .will-change-transform {
2952
2890
  will-change: transform;
2953
2891
  }
@@ -2992,9 +2930,6 @@ video {
2992
2930
  .duration-200 {
2993
2931
  animation-duration: 200ms;
2994
2932
  }
2995
- .duration-300 {
2996
- animation-duration: 300ms;
2997
- }
2998
2933
  .duration-500 {
2999
2934
  animation-duration: 500ms;
3000
2935
  }
@@ -3576,66 +3511,6 @@ body {
3576
3511
  --tw-translate-x: var(--radix-toast-swipe-move-x);
3577
3512
  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));
3578
3513
  }
3579
- @keyframes slideUpAndFade {
3580
-
3581
- from {
3582
- opacity: 0;
3583
- transform: translateY(2px);
3584
- }
3585
-
3586
- to {
3587
- opacity: 1;
3588
- transform: translateY(0);
3589
- }
3590
- }
3591
- .data-\[side\=bottom\]\:animate-slideUpAndFade[data-side=bottom] {
3592
- animation: slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
3593
- }
3594
- @keyframes slideRightAndFade {
3595
-
3596
- from {
3597
- opacity: 0;
3598
- transform: translateX(-2px);
3599
- }
3600
-
3601
- to {
3602
- opacity: 1;
3603
- transform: translateX(0);
3604
- }
3605
- }
3606
- .data-\[side\=left\]\:animate-slideRightAndFade[data-side=left] {
3607
- animation: slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
3608
- }
3609
- @keyframes slideLeftAndFade {
3610
-
3611
- from {
3612
- opacity: 0;
3613
- transform: translateX(2px);
3614
- }
3615
-
3616
- to {
3617
- opacity: 1;
3618
- transform: translateX(0);
3619
- }
3620
- }
3621
- .data-\[side\=right\]\:animate-slideLeftAndFade[data-side=right] {
3622
- animation: slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
3623
- }
3624
- @keyframes slideDownAndFade {
3625
-
3626
- from {
3627
- opacity: 0;
3628
- transform: translateY(-2px);
3629
- }
3630
-
3631
- to {
3632
- opacity: 1;
3633
- transform: translateY(0);
3634
- }
3635
- }
3636
- .data-\[side\=top\]\:animate-slideDownAndFade[data-side=top] {
3637
- animation: slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
3638
- }
3639
3514
  @keyframes accordion-up {
3640
3515
 
3641
3516
  from {
@@ -3662,14 +3537,6 @@ body {
3662
3537
  .data-\[state\=open\]\:animate-accordion-down[data-state=open] {
3663
3538
  animation: accordion-down 0.2s ease-out;
3664
3539
  }
3665
- .data-\[highlighted\]\:bg-violet-9[data-highlighted] {
3666
- --tw-bg-opacity: 1;
3667
- background-color: hsl(252 56.0% 57.5% / var(--tw-bg-opacity));
3668
- }
3669
- .data-\[highlighted\]\:data-\[state\=open\]\:bg-violet-9[data-state=open][data-highlighted] {
3670
- --tw-bg-opacity: 1;
3671
- background-color: hsl(252 56.0% 57.5% / var(--tw-bg-opacity));
3672
- }
3673
3540
  .data-\[state\=active\]\:bg-primary[data-state=active] {
3674
3541
  background-color: hsl(var(--primary));
3675
3542
  }
@@ -3682,32 +3549,12 @@ body {
3682
3549
  .data-\[state\=open\]\:bg-accent[data-state=open] {
3683
3550
  background-color: hsl(var(--accent));
3684
3551
  }
3685
- .data-\[state\=open\]\:bg-violet-4[data-state=open] {
3686
- --tw-bg-opacity: 1;
3687
- background-color: hsl(252 91.5% 95.5% / var(--tw-bg-opacity));
3688
- }
3689
- .data-\[disabled\]\:text-mauve-8[data-disabled] {
3690
- --tw-text-opacity: 1;
3691
- color: hsl(249 10.4% 75.5% / var(--tw-text-opacity));
3692
- }
3693
- .data-\[highlighted\]\:data-\[state\=open\]\:text-violet-1[data-state=open][data-highlighted] {
3694
- --tw-text-opacity: 1;
3695
- color: hsl(255 65.0% 99.4% / var(--tw-text-opacity));
3696
- }
3697
- .data-\[highlighted\]\:text-violet-1[data-highlighted] {
3698
- --tw-text-opacity: 1;
3699
- color: hsl(255 65.0% 99.4% / var(--tw-text-opacity));
3700
- }
3701
3552
  .data-\[state\=active\]\:text-primary-foreground[data-state=active] {
3702
3553
  color: hsl(var(--primary-foreground));
3703
3554
  }
3704
3555
  .data-\[state\=open\]\:text-muted-foreground[data-state=open] {
3705
3556
  color: hsl(var(--muted-foreground));
3706
3557
  }
3707
- .data-\[state\=open\]\:text-violet-11[data-state=open] {
3708
- --tw-text-opacity: 1;
3709
- color: hsl(250 43.0% 48.0% / var(--tw-text-opacity));
3710
- }
3711
3558
  .data-\[disabled\]\:opacity-50[data-disabled] {
3712
3559
  opacity: 0.5;
3713
3560
  }
@@ -3794,60 +3641,15 @@ body {
3794
3641
  .data-\[state\=open\]\:slide-in-from-top-full[data-state=open] {
3795
3642
  --tw-enter-translate-y: -100%;
3796
3643
  }
3797
- .group[data-disabled] .group-data-\[disabled\]\:text-mauve-8 {
3798
- --tw-text-opacity: 1;
3799
- color: hsl(249 10.4% 75.5% / var(--tw-text-opacity));
3800
- }
3801
- .group[data-highlighted] .group-data-\[highlighted\]\:text-white {
3802
- --tw-text-opacity: 1;
3803
- color: rgb(255 255 255 / var(--tw-text-opacity));
3804
- }
3805
- :is([dir="ltr"] .ltr\:left-0) {
3806
- left: 0px;
3807
- }
3808
- :is([dir="ltr"] .ltr\:ml-auto) {
3809
- margin-left: auto;
3810
- }
3811
- :is([dir="ltr"] .ltr\:pl-\[0px\]) {
3812
- padding-left: 0px;
3813
- }
3814
- :is([dir="ltr"] .ltr\:pl-\[25px\]) {
3815
- padding-left: 25px;
3816
- }
3817
- :is([dir="ltr"] .ltr\:pr-\[25px\]) {
3818
- padding-right: 25px;
3819
- }
3820
- :is([dir="rtl"] .rtl\:right-0) {
3821
- right: 0px;
3822
- }
3823
3644
  :is([dir="rtl"] .rtl\:ml-1) {
3824
3645
  margin-left: 0.25rem;
3825
3646
  }
3826
3647
  :is([dir="rtl"] .rtl\:ml-2) {
3827
3648
  margin-left: 0.5rem;
3828
3649
  }
3829
- :is([dir="rtl"] .rtl\:mr-auto) {
3830
- margin-right: auto;
3831
- }
3832
- :is([dir="rtl"] .rtl\:rotate-180) {
3833
- --tw-rotate: 180deg;
3834
- 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));
3835
- }
3836
3650
  :is([dir="rtl"] .rtl\:flex-row-reverse) {
3837
3651
  flex-direction: row-reverse;
3838
3652
  }
3839
- :is([dir="rtl"] .rtl\:pl-\[0px\]) {
3840
- padding-left: 0px;
3841
- }
3842
- :is([dir="rtl"] .rtl\:pl-\[25px\]) {
3843
- padding-left: 25px;
3844
- }
3845
- :is([dir="rtl"] .rtl\:pr-\[25px\]) {
3846
- padding-right: 25px;
3847
- }
3848
- :is([dir="rtl"] .rtl\:pr-\[5px\]) {
3849
- padding-right: 5px;
3850
- }
3851
3653
  :is(.dark .dark\:-rotate-90) {
3852
3654
  --tw-rotate: -90deg;
3853
3655
  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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.1.98",
3
+ "version": "0.1.99",
4
4
  "description": "Modern UI Kit made with Tailwind & Radix Primitives",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,5 +1,4 @@
1
1
  import React, { FC, useState } from "react"
2
- import { Button } from "./Button"
3
2
 
4
3
  type ImageCardTypes = {
5
4
  children: any
@@ -13,7 +13,6 @@ export const AutoCompleteField: FC<TAutoCompleteFieldTypes> = (props) => {
13
13
  return (
14
14
  <>
15
15
  <Controller
16
- // className="theme_form_input"
17
16
  name={name}
18
17
  rules={rules}
19
18
  control={control}
@@ -1,4 +1,4 @@
1
- import React, { useState, useRef } from "react"
1
+ import React from "react"
2
2
  import useCarousel from "../hooks/useCarousel"
3
3
 
4
4
  interface CarouselProps {
@@ -17,7 +17,7 @@ export const Carousel: React.FC<CarouselProps> = ({ images }) => {
17
17
 
18
18
  return (
19
19
  <div
20
- className="flex cursor-pointer snap-x gap-4 overflow-x-hidden justify-center items-center"
20
+ className="flex cursor-pointer snap-x items-center justify-center gap-4 overflow-x-hidden"
21
21
  onMouseDown={handleMouseDown}
22
22
  onMouseLeave={handleMouseLeave}
23
23
  onMouseUp={handleMouseUp}
@@ -25,7 +25,7 @@ export const Carousel: React.FC<CarouselProps> = ({ images }) => {
25
25
  ref={containerRef}
26
26
  >
27
27
  {images.map((image, index) => (
28
- <div key={index} className="w-[1000px] h-96 flex-shrink-0">
28
+ <div key={index} className="h-96 w-[1000px] flex-shrink-0">
29
29
  {/* <div key={index} className="h-40 w-60 flex-shrink-0"> */}
30
30
  <img
31
31
  src={image}
@@ -38,4 +38,3 @@ export const Carousel: React.FC<CarouselProps> = ({ images }) => {
38
38
  </div>
39
39
  )
40
40
  }
41
-
@@ -2,7 +2,6 @@
2
2
 
3
3
  import * as React from "react"
4
4
  import * as DialogPrimitive from "@radix-ui/react-dialog"
5
- // import { X } from "lucide-react"
6
5
  import { cn } from "../util"
7
6
 
8
7
  const Dialog = DialogPrimitive.Root
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
3
- import { cva, type VariantProps } from "class-variance-authority"
3
+ // import { cva, type VariantProps } from "class-variance-authority"
4
4
  import { cn } from "../util"
5
5
 
6
6
  const DropdownMenuRoot = DropdownMenuPrimitive.Root
@@ -1,6 +1,5 @@
1
1
  import React, { useRef, useState, useEffect } from "react"
2
2
  import clsx from "clsx"
3
- import { HawaButton } from "./HawaButton"
4
3
  import { Button } from "./Button"
5
4
  // TODO: make handleClose to detect when the alert is closed from outside this component
6
5
 
@@ -1,7 +1,6 @@
1
1
  import React, { FC, ButtonHTMLAttributes, useState } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HawaLoading } from "./HawaLoading"
4
- import { HawaTooltip } from "./HawaTooltip"
5
4
 
6
5
  interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
7
6
  variant?: "contained" | "outlined"
@@ -130,98 +129,58 @@ export const HawaButton: FC<ButtonProps> = ({
130
129
  containerWidthStyles[width]
131
130
  )}
132
131
  >
133
- {tooltip ? (
134
- <HawaTooltip
135
- direction={tooltipDirection}
136
- position={tooltipPosition}
137
- size={tooltipSize}
138
- content={tooltip}
139
- >
140
- <button
141
- className={
142
- disabled
143
- ? clsx(
144
- className,
145
- baseStyles,
146
- edgeCorner ? "rounded-inner" : "rounded",
147
-
148
- variantStyles[variant],
149
- sizeStyles[size],
150
- widthStyles[width],
151
- disabledSyles,
152
- disabledVariantSyles[variant]
153
- )
154
- : clsx(
155
- className,
156
- baseStyles,
157
- edgeCorner ? "rounded-inner" : "rounded",
132
+ <button
133
+ className={
134
+ disabled
135
+ ? clsx(
136
+ className,
137
+ baseStyles,
138
+ edgeCorner ? "rounded-inner" : "rounded",
158
139
 
159
- variantStyles[variant],
160
- sizeStyles[size],
161
- colorStyles[variant][color],
162
- widthStyles[width]
163
- )
164
- }
165
- disabled={disabled}
166
- onClick={props.onClick}
167
- // onClick={handleClick}
140
+ variantStyles[variant],
141
+ sizeStyles[size],
142
+ widthStyles[width],
143
+ disabledSyles,
144
+ disabledVariantSyles[variant]
145
+ )
146
+ : clsx(
147
+ className,
148
+ "overflow-x-clip",
149
+ baseStyles,
150
+ edgeCorner ? "rounded-inner" : "rounded",
151
+ variantStyles[variant],
152
+ sizeStyles[size],
153
+ colorStyles[variant][color],
154
+ widthStyles[width]
155
+ )
156
+ }
157
+ disabled={disabled}
158
+ // onClick={props.onClick}
159
+ onClick={handleClick}
160
+ >
161
+ {!isLoading ? (
162
+ <div
163
+ className={clsx(
164
+ " s flex flex-col-reverse items-start justify-center gap-4 transition-all",
165
+ isClicked && feedback
166
+ ? " -translate-y-8 pb-1 pt-1"
167
+ : "translate-y-0"
168
+ )}
168
169
  >
169
- {!isLoading ? children : <HawaLoading size="button" />}
170
- </button>
171
- </HawaTooltip>
172
- ) : (
173
- <button
174
- className={
175
- disabled
176
- ? clsx(
177
- className,
178
- baseStyles,
179
- edgeCorner ? "rounded-inner" : "rounded",
180
-
181
- variantStyles[variant],
182
- sizeStyles[size],
183
- widthStyles[width],
184
- disabledSyles,
185
- disabledVariantSyles[variant]
186
- )
187
- : clsx(
188
- className,
189
- "overflow-x-clip",
190
- baseStyles,
191
- edgeCorner ? "rounded-inner" : "rounded",
192
- variantStyles[variant],
193
- sizeStyles[size],
194
- colorStyles[variant][color],
195
- widthStyles[width]
196
- )
197
- }
198
- disabled={disabled}
199
- // onClick={props.onClick}
200
- onClick={handleClick}
201
- >
202
- {!isLoading ? (
203
- <div
204
- className={clsx(
205
- " s flex flex-col-reverse items-start justify-center gap-4 transition-all",
206
- isClicked && feedback
207
- ? " -translate-y-8 pb-1 pt-1"
208
- : "translate-y-0"
209
- )}
210
- >
211
- {isClicked && feedback ? (
212
- <div className="w-full text-center">{buttonText}</div>
213
- ) : null}
214
- <div className="flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap">
215
- {props.startIcon && props.startIcon}
216
- {children}
217
- {props.endIcon && props.endIcon}
218
- </div>
170
+ {isClicked && feedback ? (
171
+ <div className="w-full text-center">{buttonText}</div>
172
+ ) : null}
173
+ <div className="flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap">
174
+ {props.startIcon && props.startIcon}
175
+ {children}
176
+ {props.endIcon && props.endIcon}
219
177
  </div>
220
- ) : (
221
- <HawaLoading design="dots-pulse" color={"bg-white"} size="button" />
222
- )}
223
- </button>
224
- )}
178
+ </div>
179
+ ) : (
180
+ <HawaLoading design="dots-pulse" color={"bg-white"} size="button" />
181
+ )}
182
+ </button>
183
+
225
184
  {badge && (
226
185
  <div
227
186
  className={clsx(
@@ -1,6 +1,5 @@
1
1
  import clsx from "clsx"
2
2
  import React, { FC } from "react"
3
- import { HawaButton } from "./HawaButton"
4
3
  import { Button } from "./Button"
5
4
 
6
5
  // TODO: if feature.excluded is false, show gray and x
@@ -2,13 +2,8 @@ import React, { useEffect, useState, FC } from "react"
2
2
  import clsx from "clsx"
3
3
  import useTable from "../hooks/useTable"
4
4
  import { cn } from "../util"
5
- import { Button } from "./Button"
6
- import { HawaTextField } from "./HawaTextField"
7
5
  import { DropdownMenu, MenuItemType } from "./DropdownMenu"
8
6
 
9
- // TODO: translate header tools and make it more customizable
10
- // TODO: pass the onSearch handler to the parent
11
-
12
7
  type RowTypes = {
13
8
  hidden: boolean
14
9
  value: any
@@ -1,5 +1,4 @@
1
1
  import * as React from "react"
2
-
3
2
  import { cn } from "../util"
4
3
 
5
4
  export interface InputProps
@@ -1,7 +1,6 @@
1
1
  import * as React from "react"
2
2
  import * as LabelPrimitive from "@radix-ui/react-label"
3
3
  import { cva, type VariantProps } from "class-variance-authority"
4
-
5
4
  import { cn } from "../util"
6
5
 
7
6
  const labelVariants = cva(
@@ -1,6 +1,5 @@
1
1
  import * as React from "react"
2
2
  import * as PopoverPrimitive from "@radix-ui/react-popover"
3
-
4
3
  import { cn } from "../util"
5
4
 
6
5
  const PopoverContent = React.forwardRef<
@@ -1,6 +1,5 @@
1
1
  import * as React from "react"
2
2
  import * as SelectPrimitive from "@radix-ui/react-select"
3
-
4
3
  import { cn } from "../util"
5
4
 
6
5
  const Select = SelectPrimitive.Root
@@ -1,6 +1,5 @@
1
1
  import * as React from "react"
2
2
  import * as SeparatorPrimitive from "@radix-ui/react-separator"
3
-
4
3
  import { cn } from "../util"
5
4
 
6
5
  const Separator = React.forwardRef<
@@ -2,7 +2,6 @@
2
2
 
3
3
  import * as React from "react"
4
4
  import * as TabsPrimitive from "@radix-ui/react-tabs"
5
-
6
5
  import { cn } from "../util"
7
6
 
8
7
  const TabsContext = React.createContext<{
@@ -1,7 +1,6 @@
1
1
  import * as React from "react"
2
2
  import * as ToastPrimitives from "@radix-ui/react-toast"
3
3
  import { cva, type VariantProps } from "class-variance-authority"
4
-
5
4
  import { cn } from "../util"
6
5
 
7
6
  const toastVariants = cva(
@@ -1,6 +1,5 @@
1
1
  import React, { FC, useEffect, useRef, useState } from "react"
2
2
  import clsx from "clsx"
3
- import { HawaButton } from "./HawaButton"
4
3
  import { Button } from "./Button"
5
4
 
6
5
  type ComponentTypes = {