kui-complex 0.0.108 → 0.0.109
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/ButtonSelect/cjs/index.js.map +1 -1
- package/ButtonSelect/index.d.ts +15 -8
- package/ButtonSelect/index.js.map +1 -1
- package/CalendarHeaderWithSelect/cjs/index.js.map +1 -1
- package/CalendarHeaderWithSelect/index.js.map +1 -1
- package/CheckboxGroupWithTitle/cjs/index.js.map +1 -1
- package/CheckboxGroupWithTitle/index.js.map +1 -1
- package/CheckboxWithController/cjs/index.js.map +1 -1
- package/CheckboxWithController/index.js.map +1 -1
- package/InputMultiSelect/cjs/index.js.map +1 -1
- package/InputMultiSelect/index.d.ts +5 -5
- package/InputMultiSelect/index.js.map +1 -1
- package/InputSelect/cjs/index.js.map +1 -1
- package/InputSelect/index.d.ts +26 -1
- package/InputSelect/index.js.map +1 -1
- package/InputSelectBase/cjs/index.js.map +1 -1
- package/InputSelectBase/index.d.ts +3 -3
- package/InputSelectBase/index.js.map +1 -1
- package/InputSelectWithController/cjs/index.js.map +1 -1
- package/InputSelectWithController/index.js.map +1 -1
- package/InputWithDatePicker/cjs/index.js.map +1 -1
- package/InputWithDatePicker/index.js.map +1 -1
- package/SelectMonth/cjs/index.js.map +1 -1
- package/SelectMonth/index.d.ts +15 -8
- package/SelectMonth/index.js.map +1 -1
- package/SelectYear/cjs/index.js.map +1 -1
- package/SelectYear/index.d.ts +19 -6
- package/SelectYear/index.js.map +1 -1
- package/TestForm/cjs/index.js.map +1 -1
- package/TestForm/index.js.map +1 -1
- package/Tooltip/cjs/index.js.map +1 -1
- package/Tooltip/index.js.map +1 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +31 -34
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { ReactNode, SVGProps, RefObject, ReactElement } from 'react';
|
|
3
3
|
import { DateTime } from 'luxon';
|
|
4
|
-
import * as kui_basic from 'kui-basic';
|
|
5
|
-
import { InputWithAdornmentsProps, InputWithMaskProps as InputWithMaskProps$1, SwitchProps, InputWithCountryDropdownProps, InputProps, ModalProps } from 'kui-basic';
|
|
6
4
|
import * as react_hook_form from 'react-hook-form';
|
|
7
5
|
import { UseFormReturn, FieldValues } from 'react-hook-form';
|
|
6
|
+
import * as kui_basic from 'kui-basic';
|
|
7
|
+
import { InputProps, InputWithMaskProps as InputWithMaskProps$1, InputWithAdornmentsProps, SwitchProps, InputWithCountryDropdownProps, ModalProps } from 'kui-basic';
|
|
8
8
|
import * as react_datepicker from 'react-datepicker';
|
|
9
9
|
import * as _emotion_styled from '@emotion/styled';
|
|
10
10
|
import * as _emotion_react from '@emotion/react';
|
|
@@ -46,26 +46,39 @@ type ButtonTabProps = {
|
|
|
46
46
|
|
|
47
47
|
declare const ButtonTab: React.ForwardRefExoticComponent<ButtonTabProps & React.RefAttributes<HTMLButtonElement>>;
|
|
48
48
|
|
|
49
|
-
type OptionParams$2
|
|
49
|
+
type OptionParams$2 = {
|
|
50
|
+
label: string | number
|
|
51
|
+
value: string | number
|
|
52
|
+
disabled?: boolean
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type InputSelectBaseProps<TFormValues, TOption extends OptionParams$2> = {
|
|
56
|
+
options: TOption[]
|
|
57
|
+
handleChange: (value: number | string) => void
|
|
58
|
+
iconProps?: SVGProps
|
|
59
|
+
renderOption: (option: TOption, selectedValue: any) => void
|
|
60
|
+
selectedLabel?: string
|
|
61
|
+
selectedValue?: any
|
|
62
|
+
error?: string
|
|
63
|
+
} & InputProps<TFormValues>
|
|
64
|
+
|
|
65
|
+
type OptionParams$1<T = any> = {
|
|
50
66
|
label: string | number
|
|
51
67
|
value: T
|
|
52
68
|
disabled?: boolean
|
|
53
69
|
}
|
|
54
70
|
|
|
55
71
|
interface InputSelectProps<T = any>
|
|
56
|
-
extends Omit<
|
|
57
|
-
options?: OptionParams$2<T>[]
|
|
58
|
-
handleChange?: (value: T) => void
|
|
72
|
+
extends Omit<InputSelectBaseProps, "form"> {
|
|
59
73
|
isLoading?: boolean
|
|
60
74
|
form?: UseFormReturn<any>
|
|
61
|
-
iconProps?: SVGProps
|
|
62
75
|
}
|
|
63
76
|
|
|
64
77
|
type CalendarHeaderProps$1 = {
|
|
65
78
|
changeYear(year: number | string): void
|
|
66
79
|
changeMonth(month: number | string): void
|
|
67
80
|
date: Date
|
|
68
|
-
yearOptions: OptionParams$
|
|
81
|
+
yearOptions: OptionParams$1[]
|
|
69
82
|
max?: DateTime
|
|
70
83
|
min?: DateTime
|
|
71
84
|
}
|
|
@@ -144,13 +157,13 @@ interface InputWithControllerProps
|
|
|
144
157
|
declare const InputPassword: React.ForwardRefExoticComponent<InputWithControllerProps & React.RefAttributes<HTMLInputElement>>;
|
|
145
158
|
|
|
146
159
|
type InputSelectDropdownProps = {
|
|
147
|
-
options: OptionParams$
|
|
160
|
+
options: OptionParams$1[]
|
|
148
161
|
inputRef: RefObject<HTMLInputElement | HTMLDivElement>
|
|
149
162
|
isOpenDropdown: boolean
|
|
150
163
|
handleCloseDropdown: () => void
|
|
151
164
|
handleSelect: (item: any) => void
|
|
152
165
|
selectedValue?: string | number | FieldValues
|
|
153
|
-
renderOption: (option: OptionParams$
|
|
166
|
+
renderOption: (option: OptionParams$1, selectedValue?: any) => ReactNode
|
|
154
167
|
}
|
|
155
168
|
|
|
156
169
|
declare const InputSelectDropdown: React.ForwardRefExoticComponent<InputSelectDropdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -175,7 +188,7 @@ declare const InputWithDatePicker: React.ForwardRefExoticComponent<Pick<{
|
|
|
175
188
|
max?: DateTime | undefined;
|
|
176
189
|
min?: DateTime | undefined;
|
|
177
190
|
alignTitle?: "left" | "center" | undefined;
|
|
178
|
-
} & Omit<kui_basic.InputWithAdornmentsProps, "onChange">, "label" | "size" | "color" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "height" | "width" | "list" | "step" | "alt" | "crossOrigin" | "src" | "type" | "endIcon" | "startIcon" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "inputRef" | "accept" | "autoComplete" | "capture" | "checked" | "enterKeyHint" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "cornerLabel" | "rows" | "autoHeight" | "isTextArea" | "inputStyles" | "labelStyles" | "messageClassName" | "labelInlineStyles" | "message" | "messageVariant" | "inputValue" | "
|
|
191
|
+
} & Omit<kui_basic.InputWithAdornmentsProps, "onChange">, "label" | "size" | "color" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "height" | "width" | "list" | "step" | "alt" | "crossOrigin" | "src" | "type" | "endIcon" | "startIcon" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "inputRef" | "accept" | "autoComplete" | "capture" | "checked" | "enterKeyHint" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "cornerLabel" | "rows" | "autoHeight" | "isTextArea" | "inputStyles" | "labelStyles" | "messageClassName" | "labelInlineStyles" | "message" | "messageVariant" | "inputValue" | "description" | "datePickerProps" | "yearParams" | "footerLabel" | "alignTitle"> & React.RefAttributes<HTMLInputElement>>;
|
|
179
192
|
|
|
180
193
|
declare const InputWithMonthPicker: <T extends FieldValues>(props: any) => JSX.Element;
|
|
181
194
|
|
|
@@ -244,13 +257,13 @@ declare const PassportStrengthBar: React.ForwardRefExoticComponent<PassportStren
|
|
|
244
257
|
declare const SelectMonth: React.ForwardRefExoticComponent<Pick<{
|
|
245
258
|
min?: number | false | undefined;
|
|
246
259
|
max?: number | false | undefined;
|
|
247
|
-
} & InputSelectProps<any>,
|
|
260
|
+
} & InputSelectProps<any>, keyof InputSelectProps<any>> & React.RefAttributes<HTMLInputElement>>;
|
|
248
261
|
|
|
249
262
|
declare const SelectYear: React.ForwardRefExoticComponent<Pick<{
|
|
250
|
-
yearOptions: OptionParams$
|
|
263
|
+
yearOptions: OptionParams$1<any>[];
|
|
251
264
|
min?: number | undefined;
|
|
252
265
|
max?: number | undefined;
|
|
253
|
-
} & InputSelectProps<any>,
|
|
266
|
+
} & InputSelectProps<any>, keyof InputSelectProps<any>> & React.RefAttributes<HTMLInputElement>>;
|
|
254
267
|
|
|
255
268
|
interface SwitchWithControllerProps<T>
|
|
256
269
|
extends Omit<SwitchProps, "form" | "crossOrigin"> {
|
|
@@ -314,31 +327,15 @@ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefA
|
|
|
314
327
|
|
|
315
328
|
type ButtonSelectProps = InputSelectProps
|
|
316
329
|
|
|
317
|
-
declare const ButtonSelect: React__default.ForwardRefExoticComponent<Pick<ButtonSelectProps,
|
|
330
|
+
declare const ButtonSelect: React__default.ForwardRefExoticComponent<Pick<ButtonSelectProps, keyof ButtonSelectProps> & React__default.RefAttributes<HTMLInputElement>>;
|
|
318
331
|
|
|
319
|
-
declare const InputSelect: React.ForwardRefExoticComponent<Pick<
|
|
332
|
+
declare const InputSelect: React.ForwardRefExoticComponent<Pick<InputSelectProps<object>, keyof InputSelectProps<object>> & React.RefAttributes<HTMLInputElement>>;
|
|
320
333
|
|
|
321
334
|
declare const InputSelectWithController: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
|
|
322
335
|
|
|
323
|
-
type
|
|
324
|
-
label: string | number
|
|
325
|
-
value: string | number
|
|
326
|
-
disabled?: boolean
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
type InputSelectBaseProps<TFormValues> = {
|
|
330
|
-
options: OptionParams$1[]
|
|
331
|
-
handleChange: (value: number | string) => void
|
|
332
|
-
iconProps?: SVGProps
|
|
333
|
-
renderOption: (option: OptionParams$1) => void
|
|
334
|
-
selectedLabel?: string
|
|
335
|
-
selectedValue?: any
|
|
336
|
-
error?: string
|
|
337
|
-
} & InputProps<TFormValues>
|
|
338
|
-
|
|
339
|
-
type InputMultiSelectProps<T> = InputSelectBaseProps<T>
|
|
336
|
+
type InputMultiSelectProps<T, O> = InputSelectBaseProps<T, O>
|
|
340
337
|
|
|
341
|
-
declare function InputMultiSelect<TFormValues extends object>({ options, name, handleChange, form, value: valueProp, ...inputProps }: InputMultiSelectProps<TFormValues>): JSX.Element;
|
|
338
|
+
declare function InputMultiSelect<TFormValues extends object, TOption extends OptionParams$2>({ options, name, handleChange, form, value: valueProp, ...inputProps }: InputMultiSelectProps<TFormValues, TOption>): JSX.Element;
|
|
342
339
|
|
|
343
340
|
interface RadioButtonsProps extends Omit<RadioGroupProps, "onChange"> {
|
|
344
341
|
options: OptionType[]
|