next-helios-fe 1.8.97 → 1.8.99

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.97",
3
+ "version": "1.8.99",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,13 +2,13 @@
2
2
  import React from "react";
3
3
  import Cl from "react-calendar";
4
4
  import "../../../styles";
5
- import dayjs, { Dayjs } from "dayjs";
5
+ import dayjs from "dayjs";
6
6
 
7
7
  interface CalendarProps {
8
8
  options?: {
9
9
  enableSelectRange?: boolean;
10
- minDate?: Dayjs;
11
- maxDate?: Dayjs;
10
+ minDate?: dayjs.ConfigType;
11
+ maxDate?: dayjs.ConfigType;
12
12
  };
13
13
  value?: any;
14
14
  onChange?: (date: any) => void;
@@ -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";
@@ -95,7 +95,7 @@ export const PermissionTable: React.FC<PermissionTableProps> = ({
95
95
  (dataItem: any) =>
96
96
  dataItem.module === item &&
97
97
  dataItem.permission === permissionItem
98
- )?.checked
98
+ )?.checked ?? false
99
99
  }
100
100
  onChange={(e) => {
101
101
  let tempPermission = data.map((dataItem: any) => {