@sikka/hawa 0.0.238 → 0.0.240

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.
@@ -2,7 +2,7 @@ import React from "react"
2
2
  import clsx from "clsx"
3
3
 
4
4
  // TODO: make icon based on direction
5
- // TODO: Preferebly usse context to pass direction rtl | ltr
5
+ // TODO: Preferebly use context to pass direction rtl | ltr
6
6
 
7
7
  type TextFieldTypes = {
8
8
  margin?: "none" | "normal" | "large"
@@ -52,7 +52,7 @@ export const HawaTextField: React.FunctionComponent<TextFieldTypes> = ({
52
52
  let defaultInputStyle =
53
53
  "block w-full rounded border border-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
54
54
  let previewInputStyle =
55
- "block w-full rounded bg-gray-50 p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
55
+ "block w-full rounded bg-gray-50 h-9 p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
56
56
  // "mb-0 block w-full rounded border border-gray-300 bg-gray-50 p-2 text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",
57
57
 
58
58
  return (
@@ -61,7 +61,7 @@ export const HawaTextField: React.FunctionComponent<TextFieldTypes> = ({
61
61
  >
62
62
  {props.label && (
63
63
  <label
64
- htmlFor="first_name"
64
+ // htmlFor="first_name"
65
65
  className="mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"
66
66
  >
67
67
  {props.label}
@@ -89,6 +89,10 @@ export const HawaTextField: React.FunctionComponent<TextFieldTypes> = ({
89
89
  {props.icon}
90
90
  </div>
91
91
  )}
92
+ {/* <input
93
+ {...props}
94
+ className={clsx(previewInputStyle, props.icon ? "pl-10" : "")}
95
+ /> */}
92
96
  <div
93
97
  // {...props}
94
98
  className={clsx(previewInputStyle, props.icon ? "pl-10" : "")}
package/src/styles.css CHANGED
@@ -594,6 +594,9 @@ video {
594
594
  .bottom-0 {
595
595
  bottom: 0px;
596
596
  }
597
+ .bottom-1 {
598
+ bottom: 0.25rem;
599
+ }
597
600
  .bottom-4 {
598
601
  bottom: 1rem;
599
602
  }
@@ -672,6 +675,9 @@ video {
672
675
  .m-3 {
673
676
  margin: 0.75rem;
674
677
  }
678
+ .m-5 {
679
+ margin: 1.25rem;
680
+ }
675
681
  .mx-1 {
676
682
  margin-left: 0.25rem;
677
683
  margin-right: 0.25rem;
@@ -696,6 +702,10 @@ video {
696
702
  margin-top: 1rem;
697
703
  margin-bottom: 1rem;
698
704
  }
705
+ .my-8 {
706
+ margin-top: 2rem;
707
+ margin-bottom: 2rem;
708
+ }
699
709
  .-mb-px {
700
710
  margin-bottom: -1px;
701
711
  }
@@ -1122,6 +1132,11 @@ video {
1122
1132
  .cursor-pointer {
1123
1133
  cursor: pointer;
1124
1134
  }
1135
+ .select-none {
1136
+ -webkit-user-select: none;
1137
+ -moz-user-select: none;
1138
+ user-select: none;
1139
+ }
1125
1140
  .resize-none {
1126
1141
  resize: none;
1127
1142
  }
@@ -1196,9 +1211,6 @@ video {
1196
1211
  .gap-20 {
1197
1212
  gap: 5rem;
1198
1213
  }
1199
- .gap-3 {
1200
- gap: 0.75rem;
1201
- }
1202
1214
  .gap-4 {
1203
1215
  gap: 1rem;
1204
1216
  }
@@ -1314,10 +1326,6 @@ video {
1314
1326
  border-bottom-right-radius: 0.5rem;
1315
1327
  border-bottom-left-radius: 0.5rem;
1316
1328
  }
1317
- .rounded-b-xl {
1318
- border-bottom-right-radius: 0.75rem;
1319
- border-bottom-left-radius: 0.75rem;
1320
- }
1321
1329
  .rounded-l {
1322
1330
  border-top-left-radius: var(--border-radius);
1323
1331
  border-bottom-left-radius: var(--border-radius);
@@ -1342,10 +1350,6 @@ video {
1342
1350
  border-top-left-radius: 0.5rem;
1343
1351
  border-top-right-radius: 0.5rem;
1344
1352
  }
1345
- .rounded-t-xl {
1346
- border-top-left-radius: 0.75rem;
1347
- border-top-right-radius: 0.75rem;
1348
- }
1349
1353
  .rounded-bl {
1350
1354
  border-bottom-left-radius: var(--border-radius);
1351
1355
  }
@@ -1766,6 +1770,9 @@ video {
1766
1770
  .pt-0 {
1767
1771
  padding-top: 0px;
1768
1772
  }
1773
+ .pt-2 {
1774
+ padding-top: 0.5rem;
1775
+ }
1769
1776
  .pt-3 {
1770
1777
  padding-top: 0.75rem;
1771
1778
  }
@@ -2179,6 +2186,12 @@ body {
2179
2186
  width: 10rem;
2180
2187
  }
2181
2188
 
2189
+ .hover\:scale-150:hover {
2190
+ --tw-scale-x: 1.5;
2191
+ --tw-scale-y: 1.5;
2192
+ 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));
2193
+ }
2194
+
2182
2195
  .hover\:cursor-pointer:hover {
2183
2196
  cursor: pointer;
2184
2197
  }
@@ -2250,11 +2263,6 @@ body {
2250
2263
  color: rgb(156 163 175 / var(--tw-text-opacity));
2251
2264
  }
2252
2265
 
2253
- .hover\:text-gray-500:hover {
2254
- --tw-text-opacity: 1;
2255
- color: rgb(107 114 128 / var(--tw-text-opacity));
2256
- }
2257
-
2258
2266
  .hover\:text-gray-900:hover {
2259
2267
  --tw-text-opacity: 1;
2260
2268
  color: rgb(17 24 39 / var(--tw-text-opacity));
@@ -2342,6 +2350,11 @@ body {
2342
2350
  --tw-ring-color: rgb(249 250 251 / var(--tw-ring-opacity));
2343
2351
  }
2344
2352
 
2353
+ .disabled\:bg-gray-200:disabled {
2354
+ --tw-bg-opacity: 1;
2355
+ background-color: rgb(229 231 235 / var(--tw-bg-opacity));
2356
+ }
2357
+
2345
2358
  .peer:checked ~ .peer-checked\:bg-buttonPrimary-500 {
2346
2359
  background-color: var(--button-primary-500);
2347
2360
  }