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/dist/components/button/index.d.ts +1 -0
- package/dist/components/form/input/date.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/button/index.tsx +5 -1
- package/src/components/form/input/checkbox.tsx +1 -1
- package/src/components/form/input/date.tsx +3 -3
- package/src/components/tooltip/index.tsx +1 -0
package/package.json
CHANGED
@@ -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
|
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
|
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?:
|
14
|
-
maxDate?:
|
13
|
+
minDate?: dayjs.ConfigType;
|
14
|
+
maxDate?: dayjs.ConfigType;
|
15
15
|
disablePast?: boolean;
|
16
16
|
disableFuture?: boolean;
|
17
17
|
width?: "full" | "fit";
|