@egov3/system-design 1.1.45 → 1.2.47

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.
@@ -0,0 +1 @@
1
+ export declare const joinClasses: (...args: unknown[]) => string;
@@ -1,4 +1,4 @@
1
- import React, { Dispatch } from "react";
1
+ import React, { Dispatch, JSX } from "react";
2
2
  export interface ISelectBoxProps {
3
3
  labelText?: string;
4
4
  setIsOpen: Dispatch<React.SetStateAction<boolean>>;
@@ -3,18 +3,12 @@ import { Button } from "./Button";
3
3
  export declare const Components: {
4
4
  Accordion: ({ open, setOpen, children, title, }: import("./Accordion").IAccordionProps) => import("react").JSX.Element;
5
5
  Button: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, }: import("./Button").IButtonProps) => import("react").JSX.Element;
6
- Calendar: {
7
- Body: ({ changeDate, handleMouseDown, handleMouseUp, selectedCalenderDate, selectedPeriodInterval, setDistanceTraveled, setInitialY, }: import("./Calendar/Body").IBodyProps) => import("react").JSX.Element;
8
- Footer: ({ selectedCalenderDate, setSelectedPeriod, setIsModalOpen, setSelectedRadioOption, }: import("./Calendar/Footer").IFooterProps) => import("react").JSX.Element;
9
- Main: ({ setSelectedPeriod, selectedPeriod, setIsModalOpen, setSelectedRadioOption, }: import("./Calendar/Main").IMainProps) => import("react").JSX.Element;
10
- Header: ({ setSelectedPeriodInterval, selectedPeriodInterval, selectedCalenderDate, }: import("./Calendar/Header").IHeaderProps) => import("react").JSX.Element;
11
- };
12
6
  CustomRadioButton: ({ label, name, checked, onChange, value, }: import("./RadioGroup").ICustomRadioButtonProps) => import("react").JSX.Element;
13
7
  InputField: import("react").ForwardRefExoticComponent<Omit<import("./InputField").IInputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
14
8
  Modal: ({ open, setOpen, children, headerTitle, variant, }: import("./Modal").IModalProps) => import("react").JSX.Element | null;
15
9
  RadioGroup: ({ RadioGroupItems, invokeCustomOnChange, setSelectedOption, selectedOption, }: import("./RadioGroup").IRadioGroupProps) => import("react").JSX.Element;
16
10
  RadioToggle: ({ lock, setLock }: import("./RadioToggle").IRadioToggleProps) => import("react").JSX.Element;
17
- SelectBoxButton: ({ setIsOpen, labelText, disabled, error, modalValue, }: import("./SelectBoxButton").ISelectBoxProps) => JSX.Element;
11
+ SelectBoxButton: ({ setIsOpen, labelText, disabled, error, modalValue, }: import("./SelectBoxButton").ISelectBoxProps) => import("react").JSX.Element;
18
12
  Typography: import("react").FC<import("./Typography").ITypographyProps>;
19
13
  };
20
14
  export { Button };
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as React from 'react';
3
3
  import React__default, { Dispatch, SetStateAction, HTMLInputTypeAttribute } from 'react';
4
- import { TPeriodKeys, ICalendarPeriod, IStrictSelectedPeriod, IDateItem, TTimeUnit } from '~interfaces/Calendar';
5
4
 
6
5
  type TFontClass = "Heading1" | "Heading3" | "Subtitles3" | "Body1Medium" | "Body1Regular" | "Body2Medium" | "Body2Regular" | "Body3Regular" | "Caption1Medium" | "Caption1Regular" | "Caption1Semibold" | "Caption2Medium" | "Caption2Regular";
7
6
  interface ITypographyProps extends React__default.HTMLAttributes<HTMLElement> {
@@ -68,36 +67,6 @@ interface IRadioGroupProps {
68
67
  selectedOption: string;
69
68
  }
70
69
 
71
- interface IHeaderProps {
72
- setSelectedPeriodInterval: Dispatch<SetStateAction<TPeriodKeys>>;
73
- selectedPeriodInterval: TPeriodKeys;
74
- selectedCalenderDate: ICalendarPeriod<string>;
75
- }
76
-
77
- interface IMainProps {
78
- setSelectedPeriod: Dispatch<SetStateAction<IStrictSelectedPeriod>>;
79
- selectedPeriod: IStrictSelectedPeriod;
80
- setIsModalOpen: Dispatch<SetStateAction<boolean>>;
81
- setSelectedRadioOption: Dispatch<SetStateAction<string>>;
82
- }
83
-
84
- interface IFooterProps {
85
- selectedCalenderDate: ICalendarPeriod<string>;
86
- setSelectedPeriod: Dispatch<SetStateAction<IStrictSelectedPeriod>>;
87
- setIsModalOpen: Dispatch<SetStateAction<boolean>>;
88
- setSelectedRadioOption: Dispatch<SetStateAction<string>>;
89
- }
90
-
91
- interface IBodyProps {
92
- changeDate: IDateItem<(direction: number) => void>;
93
- handleMouseDown: (e: React__default.MouseEvent, type: TTimeUnit) => void;
94
- handleMouseUp: () => void;
95
- selectedCalenderDate: ICalendarPeriod<string>;
96
- selectedPeriodInterval: TPeriodKeys;
97
- setDistanceTraveled: Dispatch<SetStateAction<number>>;
98
- setInitialY: Dispatch<SetStateAction<number>>;
99
- }
100
-
101
70
  interface IButtonProps {
102
71
  ariaLabel?: string;
103
72
  onClick?: () => void;
@@ -121,18 +90,12 @@ declare const SystemDesign: {
121
90
  Components: {
122
91
  Accordion: ({ open, setOpen, children, title, }: IAccordionProps) => React.JSX.Element;
123
92
  Button: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, }: IButtonProps) => React.JSX.Element;
124
- Calendar: {
125
- Body: ({ changeDate, handleMouseDown, handleMouseUp, selectedCalenderDate, selectedPeriodInterval, setDistanceTraveled, setInitialY, }: IBodyProps) => React.JSX.Element;
126
- Footer: ({ selectedCalenderDate, setSelectedPeriod, setIsModalOpen, setSelectedRadioOption, }: IFooterProps) => React.JSX.Element;
127
- Main: ({ setSelectedPeriod, selectedPeriod, setIsModalOpen, setSelectedRadioOption, }: IMainProps) => React.JSX.Element;
128
- Header: ({ setSelectedPeriodInterval, selectedPeriodInterval, selectedCalenderDate, }: IHeaderProps) => React.JSX.Element;
129
- };
130
93
  CustomRadioButton: ({ label, name, checked, onChange, value, }: ICustomRadioButtonProps) => React.JSX.Element;
131
94
  InputField: React.ForwardRefExoticComponent<Omit<IInputFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
132
95
  Modal: ({ open, setOpen, children, headerTitle, variant, }: IModalProps) => React.JSX.Element | null;
133
96
  RadioGroup: ({ RadioGroupItems, invokeCustomOnChange, setSelectedOption, selectedOption, }: IRadioGroupProps) => React.JSX.Element;
134
97
  RadioToggle: ({ lock, setLock }: IRadioToggleProps) => React.JSX.Element;
135
- SelectBoxButton: ({ setIsOpen, labelText, disabled, error, modalValue, }: ISelectBoxProps) => JSX.Element;
98
+ SelectBoxButton: ({ setIsOpen, labelText, disabled, error, modalValue, }: ISelectBoxProps) => React.JSX.Element;
136
99
  Typography: React.FC<ITypographyProps>;
137
100
  };
138
101
  };