@sikka/hawa 0.1.85 → 0.1.86

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
@@ -758,6 +758,9 @@ video {
758
758
  .bottom-14 {
759
759
  bottom: 3.5rem;
760
760
  }
761
+ .bottom-2 {
762
+ bottom: 0.5rem;
763
+ }
761
764
  .bottom-4 {
762
765
  bottom: 1rem;
763
766
  }
@@ -1180,6 +1183,9 @@ video {
1180
1183
  .h-\[32px\] {
1181
1184
  height: 32px;
1182
1185
  }
1186
+ .h-\[400px\] {
1187
+ height: 400px;
1188
+ }
1183
1189
  .h-\[calc\(100\%-3\.5rem\)\] {
1184
1190
  height: calc(100% - 3.5rem);
1185
1191
  }
@@ -2247,6 +2253,12 @@ video {
2247
2253
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
2248
2254
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
2249
2255
  }
2256
+ .bg-cover {
2257
+ background-size: cover;
2258
+ }
2259
+ .bg-center {
2260
+ background-position: center;
2261
+ }
2250
2262
  .fill-current {
2251
2263
  fill: currentColor;
2252
2264
  }
@@ -2918,6 +2930,9 @@ video {
2918
2930
  .duration-300 {
2919
2931
  transition-duration: 300ms;
2920
2932
  }
2933
+ .duration-500 {
2934
+ transition-duration: 500ms;
2935
+ }
2921
2936
  .will-change-\[opacity\2c transform\] {
2922
2937
  will-change: opacity,transform;
2923
2938
  }
@@ -2968,6 +2983,9 @@ video {
2968
2983
  .duration-300 {
2969
2984
  animation-duration: 300ms;
2970
2985
  }
2986
+ .duration-500 {
2987
+ animation-duration: 500ms;
2988
+ }
2971
2989
  .delay-100 {
2972
2990
  animation-delay: 100ms;
2973
2991
  }
@@ -3269,6 +3287,10 @@ body {
3269
3287
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
3270
3288
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3271
3289
  }
3290
+ .hover\:drop-shadow-2xl:hover {
3291
+ --tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
3292
+ 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);
3293
+ }
3272
3294
  .hover\:drop-shadow-lg:hover {
3273
3295
  --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));
3274
3296
  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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.1.85",
3
+ "version": "0.1.86",
4
4
  "description": "Modern UI Kit made with Tailwind & Radix Primitives",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -0,0 +1,64 @@
1
+ import React, { FC, useState } from "react"
2
+ import { Button } from "./Button"
3
+
4
+ type ImageCardTypes = {
5
+ children: any
6
+ align?: any
7
+ bottomElement?: any
8
+ inCardActions?: any
9
+ cardImage?: string
10
+ title?: string
11
+ subtitle?: string
12
+ blank?: boolean
13
+ }
14
+ export const ActionCard: FC<ImageCardTypes> = (props) => {
15
+ const [hovered, setHovered] = useState(false)
16
+
17
+ return (
18
+ <div className="flex h-full w-full flex-col gap-1 ">
19
+ <div
20
+ className="group relative h-full w-full rounded border bg-background bg-cover bg-center transition-all duration-500 hover:drop-shadow-2xl"
21
+ style={{
22
+ backgroundImage: `url(${props.blank ? "" : props.cardImage})`,
23
+ }}
24
+ onMouseEnter={() => setHovered(true)}
25
+ onMouseLeave={() => setHovered(false)}
26
+ >
27
+ {props.blank ? (
28
+ <div className="flex h-full flex-col items-center justify-center ">
29
+ <svg
30
+ className="h-10 w-10 text-foreground"
31
+ stroke="currentColor"
32
+ fill="currentColor"
33
+ stroke-width="0"
34
+ viewBox="0 0 24 24"
35
+ height="1em"
36
+ width="1em"
37
+ xmlns="http://www.w3.org/2000/svg"
38
+ >
39
+ <path d="M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"></path>
40
+ </svg>
41
+ </div>
42
+ ) : (
43
+ <div className="absolute inset-0 rounded bg-black opacity-50"></div>
44
+ )}
45
+ <div className="absolute bottom-2 right-2 z-10 opacity-0 transition-all duration-200 group-hover:opacity-100">
46
+ {props.inCardActions}
47
+ </div>
48
+ {!props.blank && (
49
+ <div className="relative p-4">
50
+ <h1 className="text-white">{props.title}</h1>
51
+ <p className="text-white">{props.subtitle}</p>
52
+ </div>
53
+ )}
54
+ </div>
55
+ <div
56
+ className={`flex flex-row justify-between text-sm transition-all duration-200 ${
57
+ hovered ? "opacity-100" : "opacity-0"
58
+ }`}
59
+ >
60
+ {props.bottomElement}
61
+ </div>
62
+ </div>
63
+ )
64
+ }
@@ -50,6 +50,8 @@ export * from "./HawaLandingCard"
50
50
  export * from "./HawaButton"
51
51
  export * from "./HawaStoreButtons"
52
52
 
53
+ export * from "./ActionCard"
54
+
53
55
  // v0.1
54
56
  export * from "./Button"
55
57
  export * from "./Carousel"
package/src/styles.css CHANGED
@@ -758,6 +758,9 @@ video {
758
758
  .bottom-14 {
759
759
  bottom: 3.5rem;
760
760
  }
761
+ .bottom-2 {
762
+ bottom: 0.5rem;
763
+ }
761
764
  .bottom-4 {
762
765
  bottom: 1rem;
763
766
  }
@@ -1180,6 +1183,9 @@ video {
1180
1183
  .h-\[32px\] {
1181
1184
  height: 32px;
1182
1185
  }
1186
+ .h-\[400px\] {
1187
+ height: 400px;
1188
+ }
1183
1189
  .h-\[calc\(100\%-3\.5rem\)\] {
1184
1190
  height: calc(100% - 3.5rem);
1185
1191
  }
@@ -2247,6 +2253,12 @@ video {
2247
2253
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
2248
2254
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
2249
2255
  }
2256
+ .bg-cover {
2257
+ background-size: cover;
2258
+ }
2259
+ .bg-center {
2260
+ background-position: center;
2261
+ }
2250
2262
  .fill-current {
2251
2263
  fill: currentColor;
2252
2264
  }
@@ -2918,6 +2930,9 @@ video {
2918
2930
  .duration-300 {
2919
2931
  transition-duration: 300ms;
2920
2932
  }
2933
+ .duration-500 {
2934
+ transition-duration: 500ms;
2935
+ }
2921
2936
  .will-change-\[opacity\2c transform\] {
2922
2937
  will-change: opacity,transform;
2923
2938
  }
@@ -2968,6 +2983,9 @@ video {
2968
2983
  .duration-300 {
2969
2984
  animation-duration: 300ms;
2970
2985
  }
2986
+ .duration-500 {
2987
+ animation-duration: 500ms;
2988
+ }
2971
2989
  .delay-100 {
2972
2990
  animation-delay: 100ms;
2973
2991
  }
@@ -3269,6 +3287,10 @@ body {
3269
3287
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
3270
3288
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3271
3289
  }
3290
+ .hover\:drop-shadow-2xl:hover {
3291
+ --tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
3292
+ 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);
3293
+ }
3272
3294
  .hover\:drop-shadow-lg:hover {
3273
3295
  --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));
3274
3296
  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);