@sikka/hawa 0.1.4 → 0.1.6

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.
@@ -45,17 +45,17 @@ export const HawaStepper: FC<THawaTimeline> = ({
45
45
  {/* Icon */}
46
46
  <div
47
47
  className={clsx(
48
- "ring-buttonPrimary-200 flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-offset-2",
48
+ "flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-primary/20 ring-offset-2",
49
49
  i + 1 <= props.currentStep
50
- ? "bg-buttonPrimary-500 text-white"
51
- : "bg-buttonPrimary-200"
50
+ ? "bg-primary text-primary-foreground "
51
+ : "bg-primary/20"
52
52
  )}
53
53
  >
54
54
  {i + 1 <= props.currentStep ? (
55
55
  <svg
56
56
  aria-label="Check Mark"
57
57
  stroke="currentColor"
58
- fill="white"
58
+ fill="currentColor"
59
59
  stroke-width="0"
60
60
  viewBox="0 0 512 512"
61
61
  height="0.60em"
@@ -24,8 +24,8 @@ export const HawaTabs: FC<TabsTypes> = ({
24
24
  const [selectedOption, setSelectedOption] = useState(props.options[0]?.value)
25
25
 
26
26
  let activeTabStyle = {
27
- vertical: "inline-block py-2 px-4 text-white bg-buttonPrimary-500 active",
28
- horizontal: "inline-block py-2 px-4 text-white bg-buttonPrimary-500 active",
27
+ vertical: "inline-block py-2 px-4 text-white bg-primary active",
28
+ horizontal: "inline-block py-2 px-4 text-white bg-primary active",
29
29
  }
30
30
  // rounded rounded-br-none rounded-bl-none
31
31
  let inactiveTabStyle = {
@@ -42,11 +42,11 @@ export const HawaTabs: FC<TabsTypes> = ({
42
42
  let orientationStyle = {
43
43
  vertical: {
44
44
  container: "flex flex-row",
45
- tabs: "flex flex-col w-fit flex-wrap rounded border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
45
+ tabs: "flex flex-col w-fit flex-wrap rounded border-b-primary bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
46
46
  },
47
47
  horizontal: {
48
48
  container: "",
49
- tabs: "flex w-fit flex-wrap rounded rounded-br-none rounded-bl-none border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
49
+ tabs: "flex w-fit flex-wrap rounded rounded-br-none rounded-bl-none border-b-primary bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
50
50
  },
51
51
  }
52
52
  let containerStyle = {
@@ -55,9 +55,9 @@ export const HawaTabs: FC<TabsTypes> = ({
55
55
  }
56
56
  let tabsStyle = {
57
57
  vertical:
58
- "sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
58
+ "sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-primary bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
59
59
  horizontal:
60
- "flex w-fit flex-wrap border-b-buttonPrimary-500 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
60
+ "flex w-fit flex-wrap border-b-primary text-center text-sm font-medium text-gray-500 dark:text-gray-400",
61
61
  }
62
62
  return (
63
63
  <div
@@ -78,7 +78,7 @@ export const HawaTabs: FC<TabsTypes> = ({
78
78
  ? "ml-" + marginBetween
79
79
  : "mr-" + marginBetween,
80
80
  tabsStyle[orientation],
81
- "border-buttonPrimary-500",
81
+ "border-primary",
82
82
 
83
83
  // orientation === "vertical"
84
84
  // ? direction === "rtl"
@@ -104,7 +104,7 @@ export const HawaTabs: FC<TabsTypes> = ({
104
104
  props?.onChangeTab(opt)
105
105
  }}
106
106
  className={clsx(
107
- "flex flex-row gap-2 items-center",
107
+ "flex flex-row items-center gap-2",
108
108
  opt.value === selectedOption
109
109
  ? // props.options[selectedOption].value === opt.value
110
110
  [
@@ -64,7 +64,7 @@ const SubsectionItem: FC<TSubsectionItem> = ({
64
64
  className={clsx(
65
65
  "flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",
66
66
  selected === value
67
- ? "bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500"
67
+ ? "bg-primary text-white hover:bg-primary"
68
68
  : "hover:bg-layoutPrimary-300"
69
69
  )}
70
70
  >
@@ -34,7 +34,7 @@ export const UsageCard: FC<UsageCardTypes> = (props) => {
34
34
  </div>
35
35
  <div className="mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700">
36
36
  <div
37
- className="h-2.5 rounded-full bg-buttonPrimary-500"
37
+ className="h-2.5 rounded-full bg-primary"
38
38
  style={{
39
39
  width: `${props.percent ?? 0}%`,
40
40
  }}
@@ -53,3 +53,10 @@ export * from "./HawaLandingCard"
53
53
  export * from "./HawaButton"
54
54
  export * from "./HawaStoreButtons"
55
55
  export * from "./HawaLogoButton"
56
+
57
+ // v0.1
58
+ export * from "./Button"
59
+ export * from "./Label"
60
+ export * from "./Input"
61
+ export * from "./Tooltip"
62
+ export * from "./Card"
package/src/styles.css CHANGED
@@ -651,6 +651,19 @@ video {
651
651
  max-width: 1400px;
652
652
  }
653
653
  }
654
+ .clickable-link {
655
+ cursor: pointer;
656
+ color: hsl(var(--primary) / 0.8);
657
+ -webkit-text-decoration-line: underline;
658
+ text-decoration-line: underline;
659
+ text-underline-offset: 4px;
660
+ transition-property: all;
661
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
662
+ transition-duration: 150ms;
663
+ }
664
+ .clickable-link:hover {
665
+ color: hsl(var(--primary));
666
+ }
654
667
  .sr-only {
655
668
  position: absolute;
656
669
  width: 1px;
@@ -1752,12 +1765,6 @@ video {
1752
1765
  --tw-border-opacity: 1;
1753
1766
  border-color: rgb(37 99 235 / var(--tw-border-opacity));
1754
1767
  }
1755
- .border-buttonPrimary-500 {
1756
- border-color: hsl(var(--button-primary-500));
1757
- }
1758
- .border-buttonPrimary-700 {
1759
- border-color: hsl(var(--button-primary-700));
1760
- }
1761
1768
  .border-gray-100 {
1762
1769
  --tw-border-opacity: 1;
1763
1770
  border-color: rgb(243 244 246 / var(--tw-border-opacity));
@@ -1785,6 +1792,9 @@ video {
1785
1792
  .border-input {
1786
1793
  border-color: hsl(var(--input));
1787
1794
  }
1795
+ .border-primary {
1796
+ border-color: hsl(var(--primary));
1797
+ }
1788
1798
  .border-red-300 {
1789
1799
  --tw-border-opacity: 1;
1790
1800
  border-color: rgb(252 165 165 / var(--tw-border-opacity));
@@ -1800,8 +1810,8 @@ video {
1800
1810
  --tw-border-opacity: 1;
1801
1811
  border-color: rgb(253 224 71 / var(--tw-border-opacity));
1802
1812
  }
1803
- .border-b-buttonPrimary-500 {
1804
- border-bottom-color: hsl(var(--button-primary-500));
1813
+ .border-b-primary {
1814
+ border-bottom-color: hsl(var(--primary));
1805
1815
  }
1806
1816
  .bg-background {
1807
1817
  background-color: hsl(var(--background));
@@ -1917,6 +1927,9 @@ video {
1917
1927
  .bg-primary-foreground {
1918
1928
  background-color: hsl(var(--primary-foreground));
1919
1929
  }
1930
+ .bg-primary\/20 {
1931
+ background-color: hsl(var(--primary) / 0.2);
1932
+ }
1920
1933
  .bg-red-100 {
1921
1934
  --tw-bg-opacity: 1;
1922
1935
  background-color: rgb(254 226 226 / var(--tw-bg-opacity));
@@ -1984,11 +1997,11 @@ video {
1984
1997
  .bg-none {
1985
1998
  background-image: none;
1986
1999
  }
1987
- .fill-buttonPrimary-500 {
1988
- fill: hsl(var(--button-primary-500));
2000
+ .fill-primary {
2001
+ fill: hsl(var(--primary));
1989
2002
  }
1990
- .fill-gray-200 {
1991
- fill: #e5e7eb;
2003
+ .fill-primary\/20 {
2004
+ fill: hsl(var(--primary) / 0.2);
1992
2005
  }
1993
2006
  .fill-white {
1994
2007
  fill: #fff;
@@ -2307,9 +2320,6 @@ video {
2307
2320
  --tw-text-opacity: 1;
2308
2321
  color: rgb(30 64 175 / var(--tw-text-opacity));
2309
2322
  }
2310
- .text-buttonPrimary-500 {
2311
- color: hsl(var(--button-primary-500));
2312
- }
2313
2323
  .text-card-foreground {
2314
2324
  color: hsl(var(--card-foreground));
2315
2325
  }
@@ -2384,6 +2394,9 @@ video {
2384
2394
  .text-primary-foreground {
2385
2395
  color: hsl(var(--primary-foreground));
2386
2396
  }
2397
+ .text-primary\/70 {
2398
+ color: hsl(var(--primary) / 0.7);
2399
+ }
2387
2400
  .text-red-500 {
2388
2401
  --tw-text-opacity: 1;
2389
2402
  color: rgb(239 68 68 / var(--tw-text-opacity));
@@ -2509,6 +2522,9 @@ video {
2509
2522
  .ring-buttonPrimary-500 {
2510
2523
  --tw-ring-color: hsl(var(--button-primary-500));
2511
2524
  }
2525
+ .ring-primary\/20 {
2526
+ --tw-ring-color: hsl(var(--primary) / 0.2);
2527
+ }
2512
2528
  .ring-offset-1 {
2513
2529
  --tw-ring-offset-width: 1px;
2514
2530
  }
@@ -2759,12 +2775,6 @@ body {
2759
2775
  .hover\:bg-buttonPrimary-500:hover {
2760
2776
  background-color: hsl(var(--button-primary-500));
2761
2777
  }
2762
- .hover\:bg-buttonPrimary-500\/30:hover {
2763
- background-color: hsl(var(--button-primary-500) / 0.3);
2764
- }
2765
- .hover\:bg-buttonPrimary-500\/50:hover {
2766
- background-color: hsl(var(--button-primary-500) / 0.5);
2767
- }
2768
2778
  .hover\:bg-buttonPrimary-700:hover {
2769
2779
  background-color: hsl(var(--button-primary-700));
2770
2780
  }
@@ -2811,6 +2821,9 @@ body {
2811
2821
  .hover\:bg-layoutPrimary-700:hover {
2812
2822
  background-color: var(--layout-primary-700);
2813
2823
  }
2824
+ .hover\:bg-primary:hover {
2825
+ background-color: hsl(var(--primary));
2826
+ }
2814
2827
  .hover\:bg-primary\/90:hover {
2815
2828
  background-color: hsl(var(--primary) / 0.9);
2816
2829
  }
@@ -2839,9 +2852,6 @@ body {
2839
2852
  --tw-text-opacity: 1;
2840
2853
  color: rgb(37 99 235 / var(--tw-text-opacity));
2841
2854
  }
2842
- .hover\:text-buttonPrimary-500:hover {
2843
- color: hsl(var(--button-primary-500));
2844
- }
2845
2855
  .hover\:text-gray-400:hover {
2846
2856
  --tw-text-opacity: 1;
2847
2857
  color: rgb(156 163 175 / var(--tw-text-opacity));
@@ -2854,6 +2864,12 @@ body {
2854
2864
  --tw-text-opacity: 1;
2855
2865
  color: rgb(17 24 39 / var(--tw-text-opacity));
2856
2866
  }
2867
+ .hover\:text-primary:hover {
2868
+ color: hsl(var(--primary));
2869
+ }
2870
+ .hover\:text-primary-foreground:hover {
2871
+ color: hsl(var(--primary-foreground));
2872
+ }
2857
2873
  .hover\:text-white:hover {
2858
2874
  --tw-text-opacity: 1;
2859
2875
  color: rgb(255 255 255 / var(--tw-text-opacity));
@@ -3242,10 +3258,6 @@ body {
3242
3258
  --tw-text-opacity: 1;
3243
3259
  color: rgb(0 0 0 / var(--tw-text-opacity));
3244
3260
  }
3245
- :is(.dark .dark\:text-blue-400) {
3246
- --tw-text-opacity: 1;
3247
- color: rgb(96 165 250 / var(--tw-text-opacity));
3248
- }
3249
3261
  :is(.dark .dark\:text-blue-500) {
3250
3262
  --tw-text-opacity: 1;
3251
3263
  color: rgb(59 130 246 / var(--tw-text-opacity));
@@ -3320,9 +3332,6 @@ body {
3320
3332
  --tw-border-opacity: 1;
3321
3333
  border-color: rgb(55 65 81 / var(--tw-border-opacity));
3322
3334
  }
3323
- :is(.dark .dark\:hover\:bg-buttonPrimary-500\/60:hover) {
3324
- background-color: hsl(var(--button-primary-500) / 0.6);
3325
- }
3326
3335
  :is(.dark .dark\:hover\:bg-buttonPrimary-700:hover) {
3327
3336
  background-color: hsl(var(--button-primary-700));
3328
3337
  }
package/src/tailwind.css CHANGED
@@ -163,6 +163,11 @@
163
163
  }
164
164
  }
165
165
 
166
+ @layer components {
167
+ .clickable-link {
168
+ @apply cursor-pointer text-primary/80 underline underline-offset-4 hover:text-primary transition-all;
169
+ }
170
+ }
166
171
  @layer utilities {
167
172
  /* Chrome, Safari and Opera */
168
173
  .no-scrollbar::-webkit-scrollbar {