hrm_ui_lib 4.0.0 → 4.0.2

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.
@@ -34,7 +34,7 @@ export interface ITimePickerProps extends TDatepickerBaseProps {
34
34
  }
35
35
  export interface IRangeDatePickerProps extends TDatepickerBaseProps {
36
36
  currentDates?: TRangePickerValues;
37
- changeHandler: (date: TRangePickerValues) => void;
37
+ changeHandler?: (date: TRangePickerValues) => void;
38
38
  maxDate?: Date | undefined;
39
39
  value?: [Date, Date];
40
40
  }
@@ -39,4 +39,5 @@ export interface InputCustomProps extends IFormCompProps, Omit<InputHTMLAttribut
39
39
  value: string;
40
40
  floatValue: number | undefined;
41
41
  }) => boolean;
42
+ allowEmptyFormatting?: boolean;
42
43
  }
@@ -19,7 +19,7 @@ export interface TRadioGroupProps extends IFormCompProps {
19
19
  label?: string | ReactElement;
20
20
  className?: string;
21
21
  isHorizontal?: boolean;
22
- selected: number | string;
22
+ selected?: number | string;
23
23
  options: TRadioOptionItem[];
24
24
  handleChange?: (selected: number | string) => void;
25
25
  required?: boolean;
@@ -0,0 +1,4 @@
1
+ import { ReactElement } from 'react';
2
+ import { ISVGIconProps } from '../../type';
3
+ declare const IconLayoutGrid: ({ size, type, className, onClick, refHandler, id, dataTestId }: ISVGIconProps) => ReactElement;
4
+ export default IconLayoutGrid;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import classNames from 'classnames';
3
+ const IconLayoutGrid = ({ size, type, className = '', onClick, refHandler, id, dataTestId }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: classNames('svg-icon', {
4
+ [`svg-icon__size-${size}`]: size,
5
+ [`svg-icon__type-${type}`]: type,
6
+ [className]: className
7
+ }), viewBox: "0 0 24 24", fill: "none", onClick: onClick, ref: refHandler, id: id, "data-test-id": dataTestId ? `${dataTestId}-svg-icon` : '', stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { width: "7", height: "7", x: "3", y: "3", rx: "1" }), _jsx("rect", { width: "7", height: "7", x: "14", y: "3", rx: "1" }), _jsx("rect", { width: "7", height: "7", x: "14", y: "14", rx: "1" }), _jsx("rect", { width: "7", height: "7", x: "3", y: "14", rx: "1" })] }));
8
+ export default IconLayoutGrid;
@@ -0,0 +1,4 @@
1
+ import { ReactElement } from 'react';
2
+ import { ISVGIconProps } from '../../type';
3
+ declare const IconLayoutList: ({ size, type, className, onClick, refHandler, id, dataTestId }: ISVGIconProps) => ReactElement;
4
+ export default IconLayoutList;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import classNames from 'classnames';
3
+ const IconLayoutList = ({ size, type, className = '', onClick, refHandler, id, dataTestId }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: classNames('svg-icon', {
4
+ [`svg-icon__size-${size}`]: size,
5
+ [`svg-icon__type-${type}`]: type,
6
+ [className]: className
7
+ }), viewBox: "0 0 24 24", fill: "none", onClick: onClick, ref: refHandler, id: id, "data-test-id": dataTestId ? `${dataTestId}-svg-icon` : '', stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }), _jsx("path", { d: "M12 3v18" })] }));
8
+ export default IconLayoutList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hrm_ui_lib",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "UI library for Dino",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/type/base.d.ts CHANGED
@@ -6,6 +6,7 @@ export interface IFormCompProps extends IBaseProps {
6
6
  isValid?: boolean;
7
7
  value?: TFormValue;
8
8
  onChange?: TOnChange;
9
+ placeholder?: string;
9
10
  name?: string;
10
11
  setFieldValue?: (name: string, value: TFormValue, shouldValidate?: {
11
12
  shouldValidate: boolean;