@sikka/hawa 0.0.79 → 0.0.80

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -6,7 +6,7 @@ export const HawaRange = (props) => {
6
6
  <div>
7
7
  {props.label && (
8
8
  <label
9
- htmlFor="default-range"
9
+ htmlFor="default-range"
10
10
  className="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300"
11
11
  >
12
12
  {props.label}
@@ -17,7 +17,8 @@ export const HawaRange = (props) => {
17
17
  <input
18
18
  id="default-range"
19
19
  type="range"
20
- value="50"
20
+ value={props.value}
21
+ onChange={props.handleChange}
21
22
  className="w-fit h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
22
23
  />
23
24
  <div className="ml-2">{props.endElement}</div>{" "}
@@ -11,7 +11,7 @@ export const HawaTabs = (props) => {
11
11
  <div>
12
12
  <ul className="bg-gray-100 w-fit rounded-lg flex flex-wrap text-sm font-medium text-center text-gray-500 dark:text-gray-400">
13
13
  {props.options.map((opt) => (
14
- <li className="mr-2">
14
+ <li >
15
15
  <button
16
16
  aria-current="page"
17
17
  onClick={() => {
@@ -2,13 +2,18 @@ import React from "react";
2
2
 
3
3
  export const HawaTooltip = (props) => {
4
4
  return (
5
- <div
6
- id={props.tooltipID}
7
- role="tooltip"
8
- className="inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"
9
- >
10
- {props.content}
11
- <div className="tooltip-arrow" data-popper-arrow></div>
5
+ <div>
6
+ <div
7
+ id={props.tooltipID}
8
+ role="tooltip"
9
+ // className="inline-block absolute py-2 px-3"
10
+ className="inline-block opacity-0 absolute z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm transition-opacity duration-300 tooltip dark:bg-gray-700"
11
+ >
12
+ {props.content}
13
+ <div className="tooltip-arrow" data-popper-arrow></div>
14
+ </div>
15
+
16
+ <div onMouseEnter={() => console.log("hovering")}>{props.children}</div>
12
17
  </div>
13
18
  );
14
19
  };
package/src/styles.css CHANGED
@@ -557,9 +557,6 @@ video {
557
557
  white-space: nowrap;
558
558
  border-width: 0;
559
559
  }
560
- .invisible {
561
- visibility: hidden;
562
- }
563
560
  .collapse {
564
561
  visibility: collapse;
565
562
  }