next-helios-fe 1.8.96 → 1.8.98

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": "next-helios-fe",
3
- "version": "1.8.96",
3
+ "version": "1.8.98",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,6 +17,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
17
17
  height?: "short" | "medium" | "high";
18
18
  position?: "left" | "center" | "right";
19
19
  border?: boolean;
20
+ tooltipPosition?: "left" | "right" | "top" | "bottom";
20
21
  };
21
22
  tooltip?: string | React.ReactNode;
22
23
  loading?: boolean;
@@ -68,7 +69,10 @@ export const Button: React.FC<ButtonProps> = ({
68
69
  : "";
69
70
 
70
71
  return tooltip ? (
71
- <Tooltip content={tooltip}>
72
+ <Tooltip
73
+ content={tooltip}
74
+ options={{ position: options?.tooltipPosition ?? "right" }}
75
+ >
72
76
  <button
73
77
  className={`relative ${width} px-3 ${height} rounded-md text-left ${variant} ${border} ${isActive} select-none disabled:pointer-events-none ${className}`}
74
78
  disabled={loading || rest.disabled}
@@ -46,7 +46,7 @@ export const Checkbox: React.FC<CheckboxProps> = ({
46
46
  <input
47
47
  ref={inputRef}
48
48
  type="checkbox"
49
- className={`border-default border rounded bg-secondary-bg cursor-pointer indeterminate:bg-primary indeterminate:hover:bg-primary checked:bg-primary focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:bg-secondary-light disabled:checked:bg-secondary-dark disabled:cursor-default ${
49
+ className={`border-default border rounded bg-secondary-bg cursor-pointer indeterminate:bg-primary indeterminate:hover:bg-primary indeterminate:disabled:bg-secondary-dark checked:bg-primary focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:bg-secondary-light disabled:checked:bg-secondary-dark disabled:cursor-default ${
50
50
  theme && "border-0"
51
51
  }`}
52
52
  style={{ backgroundColor: theme }}
@@ -2,7 +2,7 @@
2
2
  import React, { useState, useEffect, useRef } from "react";
3
3
  import { Tooltip, Dropdown, Calendar } from "../../../components";
4
4
  import { Icon } from "@iconify/react";
5
- import dayjs, { Dayjs } from "dayjs";
5
+ import dayjs from "dayjs";
6
6
 
7
7
  export interface DateProps extends React.InputHTMLAttributes<HTMLInputElement> {
8
8
  label?: string;
@@ -10,8 +10,8 @@ export interface DateProps extends React.InputHTMLAttributes<HTMLInputElement> {
10
10
  options?: {
11
11
  buttonOnly?: boolean;
12
12
  enableSelectRange?: boolean;
13
- minDate?: Dayjs;
14
- maxDate?: Dayjs;
13
+ minDate?: dayjs.ConfigType;
14
+ maxDate?: dayjs.ConfigType;
15
15
  disablePast?: boolean;
16
16
  disableFuture?: boolean;
17
17
  width?: "full" | "fit";
@@ -199,6 +199,7 @@ export const Tooltip: React.FC<TooltipProps> = ({
199
199
  {children}
200
200
  {isRendered &&
201
201
  position &&
202
+ content &&
202
203
  createPortal(
203
204
  <div
204
205
  ref={tooltipRef}