enerdot-front-system 0.0.29-beta.13 → 0.0.29-beta.15
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/index-BhjJHeRp.js +829 -0
- package/dist/index-D5_M1Zj1.cjs +30 -0
- package/dist/index.cjs.js +62 -72
- package/dist/index.es.js +2688 -3338
- package/dist/lib/components/CheckBox/index.d.ts +3 -2
- package/dist/lib/components/Chip/index.d.ts +3 -2
- package/dist/lib/components/Chip/theme.d.ts +3 -6
- package/dist/lib/components/DateSelector/DatePicker/Buttons/ArrowButton.d.ts +1 -1
- package/dist/lib/components/DateSelector/DatePicker/Buttons/InputButton.d.ts +4 -2
- package/dist/lib/components/DateSelector/DatePicker/Buttons /353/263/265/354/202/254/353/263/270/ArrowButton.d.ts" +18 -0
- package/dist/lib/components/DateSelector/DatePicker/Buttons /353/263/265/354/202/254/353/263/270/InputButton.d.ts" +12 -0
- package/dist/lib/components/DateSelector/DatePicker/index.d.ts +4 -2
- package/dist/lib/components/DateSelector/DateRangePicker/InputButton.d.ts +12 -0
- package/dist/lib/components/DateSelector/DateRangePicker/index.d.ts +4 -2
- package/dist/lib/components/Dropdown/Button/index.d.ts +2 -1
- package/dist/lib/components/Dropdown/OptionList/CheckboxOption.d.ts +3 -2
- package/dist/lib/components/Dropdown/OptionList/OptionSubLabelWrapper.d.ts +11 -0
- package/dist/lib/components/Dropdown/OptionList/RadioOption.d.ts +3 -2
- package/dist/lib/components/Dropdown/OptionList/SeletOption.d.ts +3 -2
- package/dist/lib/components/Dropdown/OptionList/index.d.ts +3 -2
- package/dist/lib/components/Dropdown/index.d.ts +3 -2
- package/dist/lib/components/Inputs/Input/index.d.ts +3 -2
- package/dist/lib/components/Inputs/SearchInput/index.d.ts +3 -2
- package/dist/lib/components/Pagination/index.d.ts +2 -1
- package/dist/lib/components/Radio/RadioButton/index.d.ts +2 -1
- package/dist/lib/components/Radio/RadioButtons.d.ts +3 -2
- package/dist/lib/server.d.ts +3 -0
- package/dist/lib/theme/color.style.d.ts +14 -0
- package/dist/lib/types/option.d.ts +5 -4
- package/dist/lib/types/theme.d.ts +4 -0
- package/dist/server.cjs.js +1 -0
- package/dist/server.es.js +6 -0
- package/package.json +8 -3
- package/dist/lib/components/DateSelector/DateRangePicker/Button.d.ts +0 -10
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { Theme } from '../../types/theme';
|
|
2
|
+
export interface CheckboxProps extends Theme, React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
3
|
children?: React.ReactNode;
|
|
3
4
|
onClickBox?: (info: {
|
|
4
5
|
checked?: boolean;
|
|
5
6
|
name?: string;
|
|
6
7
|
}, event?: React.MouseEvent<HTMLElement>) => void;
|
|
7
8
|
}
|
|
8
|
-
export declare const Checkbox: ({ id, checked, name, required, children, disabled, onClickBox, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Checkbox: ({ id, checked, name, required, lightTheme, children, disabled, onClickBox, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default Checkbox;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ChipColorTheme } from './theme';
|
|
3
|
-
|
|
3
|
+
import { Theme } from '../../types/theme';
|
|
4
|
+
export interface ChipProps extends Theme, React.HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
colorTheme?: keyof ChipColorTheme;
|
|
5
6
|
level?: "small" | "regular" | "large";
|
|
6
7
|
borderRadius?: "round" | "full";
|
|
@@ -8,5 +9,5 @@ export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
9
|
isWhiteBg?: boolean;
|
|
9
10
|
gap?: number;
|
|
10
11
|
}
|
|
11
|
-
export declare const Chip: ({ children, level, borderRadius, colorTheme, isWhiteBg, gap, isDot, }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Chip: ({ children, lightTheme, level, borderRadius, colorTheme, isWhiteBg, gap, isDot, }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default Chip;
|
|
@@ -2,13 +2,10 @@ type ColorObject = {
|
|
|
2
2
|
bgColor: string;
|
|
3
3
|
textColor: string;
|
|
4
4
|
};
|
|
5
|
+
type ChipBaseColor = "yellow" | "orange" | "red" | "green" | "primary" | "gray";
|
|
5
6
|
export type ChipColorTheme = {
|
|
6
|
-
|
|
7
|
-
orange: ColorObject;
|
|
8
|
-
red: ColorObject;
|
|
9
|
-
green: ColorObject;
|
|
10
|
-
primary: ColorObject;
|
|
11
|
-
gray: ColorObject;
|
|
7
|
+
[key in ChipBaseColor]: ColorObject;
|
|
12
8
|
};
|
|
9
|
+
export declare const darkColorThemes: ChipColorTheme;
|
|
13
10
|
export declare const colorThemes: ChipColorTheme;
|
|
14
11
|
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
interface InputButtonProps {
|
|
2
|
-
level: "small" | "large";
|
|
2
|
+
level: "small" | "medium" | "large";
|
|
3
3
|
dateType: "day" | "week" | "month" | "quarter" | "year";
|
|
4
4
|
format: "hyphenFormat" | "dotFormat";
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
date: moment.Moment;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
isError?: boolean;
|
|
8
10
|
}
|
|
9
|
-
declare const InputButton: ({ level, dateType, onClick, format, disabled, date, }: InputButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const InputButton: ({ level, dateType, onClick, format, disabled, date, onCancel, isError, }: InputButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default InputButton;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as moment } from 'moment';
|
|
2
|
+
interface ArrowButtonProps {
|
|
3
|
+
level: "small" | "medium" | "large";
|
|
4
|
+
dateType: "day" | "week" | "month" | "quarter" | "year";
|
|
5
|
+
format: "hyphenFormat" | "dotFormat";
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
date: moment.Moment;
|
|
9
|
+
minDate?: moment.Moment;
|
|
10
|
+
maxDate?: moment.Moment;
|
|
11
|
+
onChange: (e: {
|
|
12
|
+
date: moment.Moment;
|
|
13
|
+
name?: string;
|
|
14
|
+
}) => void;
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const ArrowButton: ({ level, dateType, onClick, format, disabled, date, maxDate, minDate, onChange, name, }: ArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default ArrowButton;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface InputButtonProps {
|
|
2
|
+
level: "small" | "medium" | "large";
|
|
3
|
+
dateType: "day" | "week" | "month" | "quarter" | "year";
|
|
4
|
+
format: "hyphenFormat" | "dotFormat";
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
date: moment.Moment;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
isError?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const InputButton: ({ level, dateType, onClick, format, disabled, date, onCancel, isError, }: InputButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default InputButton;
|
|
@@ -11,9 +11,11 @@ export interface DatePickerProps {
|
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
name?: string;
|
|
13
13
|
width?: "auto" | `${number}px` | "100%";
|
|
14
|
-
level?: "small" | "large";
|
|
14
|
+
level?: "small" | "medium" | "large";
|
|
15
15
|
format?: "hyphenFormat" | "dotFormat";
|
|
16
16
|
buttonType?: "arrow" | "input";
|
|
17
|
+
isCancelable?: boolean;
|
|
18
|
+
isError?: boolean;
|
|
17
19
|
}
|
|
18
|
-
export declare const DatePicker: ({ date, dateType, maxDate, minDate, onChange, disabled, name, format, level, buttonType, width, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const DatePicker: ({ date, dateType, maxDate, minDate, onChange, disabled, name, format, level, buttonType, width, isCancelable, isError, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
export default DatePicker;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface InputButtonProps {
|
|
2
|
+
level: "small" | "medium" | "large";
|
|
3
|
+
dateType: "day" | "month" | "year";
|
|
4
|
+
format: "hyphenFormat" | "dotFormat";
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
dates: [moment.Moment, moment.Moment];
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
isError?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const InputButton: ({ level, dateType, onClick, format, disabled, dates, onCancel, isError, }: InputButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default InputButton;
|
|
@@ -11,10 +11,12 @@ export interface DateRangePickerProps {
|
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
name?: string;
|
|
13
13
|
width?: "auto" | `${number}px` | "100%";
|
|
14
|
-
level?: "small" | "large";
|
|
14
|
+
level?: "small" | "medium" | "large";
|
|
15
15
|
format?: "hyphenFormat" | "dotFormat";
|
|
16
16
|
buttonType?: "arrow" | "input";
|
|
17
17
|
maxRange?: number;
|
|
18
|
+
isCancelable?: boolean;
|
|
19
|
+
isError?: boolean;
|
|
18
20
|
}
|
|
19
|
-
export declare const DateRangePicker: ({ dates, dateType, maxDate, minDate, onChange, disabled, name, format, level, width, maxRange, }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const DateRangePicker: ({ dates, dateType, maxDate, minDate, onChange, disabled, name, format, level, width, maxRange, isCancelable, isError, }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export default DateRangePicker;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Option } from '../../../types/option';
|
|
2
2
|
import { DropdownOption } from '..';
|
|
3
|
-
|
|
3
|
+
import { Theme } from '../../../types/theme';
|
|
4
|
+
interface CheckboxOptionProps extends Theme {
|
|
4
5
|
option: DropdownOption;
|
|
5
6
|
values: Option[];
|
|
6
7
|
onChange: (value: Option[]) => void;
|
|
@@ -8,5 +9,5 @@ interface CheckboxOptionProps {
|
|
|
8
9
|
isSelected: boolean;
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
}
|
|
11
|
-
declare const CheckboxOption: ({ option, values, onChange, level, isSelected, children, }: CheckboxOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const CheckboxOption: ({ option, values, onChange, level, isSelected, children, lightTheme, }: CheckboxOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default CheckboxOption;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectOptionProps } from './SeletOption';
|
|
2
|
+
/**
|
|
3
|
+
* 기존 [Radio,Select,Checkbox] Option 컴포넌트에 하단에 Sublabel추가 하기 위한 래퍼 컴포넌트.
|
|
4
|
+
*/
|
|
5
|
+
declare const OptionSubLabelWrapper: ({ option, isLarge, isSelected, children, }: {
|
|
6
|
+
option: SelectOptionProps["option"];
|
|
7
|
+
isSelected?: SelectOptionProps["isSelected"];
|
|
8
|
+
isLarge?: boolean;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default OptionSubLabelWrapper;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Option } from '../../../types/option';
|
|
2
2
|
import { DropdownOption } from '..';
|
|
3
|
-
|
|
3
|
+
import { Theme } from '../../../types/theme';
|
|
4
|
+
interface RadioOptionProps extends Theme {
|
|
4
5
|
option: DropdownOption;
|
|
5
6
|
onChange: (value: Option[]) => void;
|
|
6
7
|
level: "small" | "medium" | "large";
|
|
7
8
|
isSelected: boolean;
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
}
|
|
10
|
-
declare const RadioOption: ({ option, onChange, level, isSelected, children, }: RadioOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const RadioOption: ({ lightTheme, option, onChange, level, isSelected, children, }: RadioOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export default RadioOption;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Option } from '../../../types/option';
|
|
2
2
|
import { DropdownOption } from '..';
|
|
3
|
-
|
|
3
|
+
import { Theme } from '../../../types/theme';
|
|
4
|
+
export interface SelectOptionProps extends Theme {
|
|
4
5
|
option: DropdownOption;
|
|
5
6
|
onChange: (value: Option[]) => void;
|
|
6
7
|
level: "small" | "medium" | "large";
|
|
@@ -8,5 +9,5 @@ interface SelectOptionProps {
|
|
|
8
9
|
onHideTooltip: () => void;
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
}
|
|
11
|
-
declare const SelectOption: ({ option, onChange, level, isSelected, onHideTooltip, children, }: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const SelectOption: ({ lightTheme, option, onChange, level, isSelected, onHideTooltip, children, }: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default SelectOption;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Option } from '../../../types/option';
|
|
2
2
|
import { DropdownOption } from '..';
|
|
3
|
-
|
|
3
|
+
import { Theme } from '../../../types/theme';
|
|
4
|
+
interface OptionListProps extends Theme {
|
|
4
5
|
options: DropdownOption[];
|
|
5
6
|
values: Option[];
|
|
6
7
|
onChange: (value: Option[]) => void;
|
|
@@ -12,5 +13,5 @@ interface OptionListProps {
|
|
|
12
13
|
onHideTooltip: () => void;
|
|
13
14
|
containerRef: React.MutableRefObject<HTMLDivElement>;
|
|
14
15
|
}
|
|
15
|
-
declare const OptionList: ({ options, values, onChange, type, input, level, isAllChecked, allCheckText, onHideTooltip, containerRef, }: OptionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const OptionList: ({ options, values, onChange, type, input, level, isAllChecked, allCheckText, onHideTooltip, containerRef, lightTheme, }: OptionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export default OptionList;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Option, Options } from '../../types/option';
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
|
+
import { Theme } from '../../types/theme';
|
|
3
4
|
export interface DropdownOption extends Option {
|
|
4
5
|
element?: React.ReactNode;
|
|
5
6
|
}
|
|
6
|
-
export interface DropdownProps {
|
|
7
|
+
export interface DropdownProps extends Theme {
|
|
7
8
|
initialPlaceholder: string;
|
|
8
9
|
level?: ButtonProps["level"];
|
|
9
10
|
type?: "checkbox" | "radio" | "select";
|
|
@@ -16,5 +17,5 @@ export interface DropdownProps {
|
|
|
16
17
|
width?: "auto" | `${number}px` | "100%";
|
|
17
18
|
disabled?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare const Dropdown: ({ initialPlaceholder, level, type, options, values, onChange, isAllChecked, allCheckText, unit, width, disabled, }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const Dropdown: ({ initialPlaceholder, level, type, lightTheme, options, values, onChange, isAllChecked, allCheckText, unit, width, disabled, }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export default Dropdown;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { Theme } from '../../../types/theme';
|
|
3
|
+
export interface InputProps extends Theme, React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
4
|
level?: "large" | "medium" | "small";
|
|
4
5
|
width?: string;
|
|
5
6
|
unit?: string | ReactNode;
|
|
@@ -13,5 +14,5 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
13
14
|
isError?: boolean;
|
|
14
15
|
isSuccess?: boolean;
|
|
15
16
|
}
|
|
16
|
-
export declare const Input: ({ unit, type, onChange, min, max, width, label, level, value, disabled, errorMessage, successMessage, guideMessage, required, onCancel, textAlign, isShowCount, isError, isSuccess, ...props }: InputProps) => JSX.Element;
|
|
17
|
+
export declare const Input: ({ unit, type, onChange, min, max, width, label, level, lightTheme, value, disabled, errorMessage, successMessage, guideMessage, required, onCancel, textAlign, isShowCount, isError, isSuccess, ...props }: InputProps) => JSX.Element;
|
|
17
18
|
export default Input;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { Theme } from '../../../types/theme';
|
|
2
|
+
export interface SearchInputProps extends Theme, React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
3
|
width?: string;
|
|
3
4
|
level?: "small" | "medium" | "large";
|
|
4
5
|
onCancel?: (name?: string) => void;
|
|
5
6
|
textAlign?: "left" | "right";
|
|
6
7
|
}
|
|
7
|
-
export declare const SearchInput: ({ width, level, value, disabled, onCancel, textAlign, ...props }: SearchInputProps) => JSX.Element;
|
|
8
|
+
export declare const SearchInput: ({ width, level, value, disabled, onCancel, lightTheme, textAlign, ...props }: SearchInputProps) => JSX.Element;
|
|
8
9
|
export default SearchInput;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Theme } from '../../types/theme';
|
|
1
2
|
import { Option, Options } from '../../types/option';
|
|
2
|
-
export interface RadioButtonsProps {
|
|
3
|
+
export interface RadioButtonsProps extends Theme {
|
|
3
4
|
options: Options;
|
|
4
5
|
value: Option;
|
|
5
6
|
onClick: (value: Option) => void;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare const RadioButtons: ({ options, value, onClick, disabled, }: RadioButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const RadioButtons: ({ options, value, onClick, disabled, lightTheme, }: RadioButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default RadioButtons;
|
|
@@ -46,4 +46,18 @@ export interface ThemeColors {
|
|
|
46
46
|
yellow300: string;
|
|
47
47
|
yellow400: string;
|
|
48
48
|
yellow500: string;
|
|
49
|
+
darkbg400: string;
|
|
50
|
+
darkbg500: string;
|
|
51
|
+
darkbg600: string;
|
|
52
|
+
darkbg700: string;
|
|
53
|
+
darkbg800: string;
|
|
54
|
+
darkbg900: string;
|
|
55
|
+
darkgray200: string;
|
|
56
|
+
darkgray300: string;
|
|
57
|
+
darkgray400: string;
|
|
58
|
+
darkgray500: string;
|
|
59
|
+
darkgray900: string;
|
|
60
|
+
darkblue500: string;
|
|
61
|
+
darkblue900: string;
|
|
62
|
+
darkyellow600: string;
|
|
49
63
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D5_M1Zj1.cjs");exports.Chip=e.Chip;exports.Divider=e.Divider;exports.themeColors=e.themeColors;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enerdot-front-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.29-beta.
|
|
4
|
+
"version": "0.0.29-beta.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"enerdot-front-system",
|
|
@@ -27,14 +27,19 @@
|
|
|
27
27
|
"lint": "eslint .",
|
|
28
28
|
"preview": "vite preview",
|
|
29
29
|
"prepare": "rm -rf dist && tsc && vite build",
|
|
30
|
-
"add:package": "yarn add ./enerdot-front-system-v0.0.29-beta.
|
|
31
|
-
"reset:package": "yarn remove enerdot-front-system && yarn cache clean && rm -rf ./enerdot-front-system-v0.0.29-beta.
|
|
30
|
+
"add:package": "yarn add ./enerdot-front-system-v0.0.29-beta.15.tgz",
|
|
31
|
+
"reset:package": "yarn remove enerdot-front-system && yarn cache clean && rm -rf ./enerdot-front-system-v0.0.29-beta.15.tgz"
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
|
35
35
|
"types": "./dist/lib/index.d.ts",
|
|
36
36
|
"require": "./dist/index.cjs.js",
|
|
37
37
|
"import": "./dist/index.es.js"
|
|
38
|
+
},
|
|
39
|
+
"./server": {
|
|
40
|
+
"types": "./dist/lib/server.d.ts",
|
|
41
|
+
"require": "./dist/server.cjs.js",
|
|
42
|
+
"import": "./dist/server.es.js"
|
|
38
43
|
}
|
|
39
44
|
},
|
|
40
45
|
"peerDependencies": {
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface ButtonProps {
|
|
2
|
-
level: "small" | "large";
|
|
3
|
-
dateType: "day" | "month" | "year";
|
|
4
|
-
format: "hyphenFormat" | "dotFormat";
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
dates: [moment.Moment, moment.Moment];
|
|
8
|
-
}
|
|
9
|
-
declare const Button: ({ level, dateType, onClick, format, disabled, dates, }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Button;
|