td-stylekit 27.0.0 → 27.1.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [27.1.0](https://github.com/treasure-data/td-stylekit/compare/v27.0.0...v27.1.0) (2022-09-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **CON-10628:** Refactor FormControl to guessMenuWidth by default ([#1317](https://github.com/treasure-data/td-stylekit/issues/1317)) ([5b07449](https://github.com/treasure-data/td-stylekit/commit/5b07449))
|
|
7
|
+
|
|
1
8
|
# [27.0.0](https://github.com/treasure-data/td-stylekit/compare/v26.25.1...v27.0.0) (2022-09-02)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -58,6 +58,7 @@ export declare const DateFormControl: import("@emotion/styled").StyledComponent<
|
|
|
58
58
|
labelWidth?: string | number | undefined;
|
|
59
59
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
60
60
|
options?: any;
|
|
61
|
+
guessMenuWidth?: boolean | undefined;
|
|
61
62
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
62
63
|
} & Omit<import("../Select").SelectComponentProps, "label">) | (Pick<{
|
|
63
64
|
addOnClassName?: string | undefined;
|
|
@@ -87,6 +88,7 @@ export declare const DateFormControl: import("@emotion/styled").StyledComponent<
|
|
|
87
88
|
labelWidth?: string | number | undefined;
|
|
88
89
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
89
90
|
options?: any;
|
|
91
|
+
guessMenuWidth?: boolean | undefined;
|
|
90
92
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
91
93
|
} & import("../FormControl/components/CheckboxGroup").CheckboxGroupProps, "getLabelForOption" | "disabledOptions"> & Partial<Pick<{
|
|
92
94
|
addOnClassName?: string | undefined;
|
|
@@ -116,8 +118,9 @@ export declare const DateFormControl: import("@emotion/styled").StyledComponent<
|
|
|
116
118
|
labelWidth?: string | number | undefined;
|
|
117
119
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
118
120
|
options?: any;
|
|
121
|
+
guessMenuWidth?: boolean | undefined;
|
|
119
122
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
120
|
-
} & import("../FormControl/components/CheckboxGroup").CheckboxGroupProps, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>) | (Pick<{
|
|
123
|
+
} & import("../FormControl/components/CheckboxGroup").CheckboxGroupProps, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "guessMenuWidth" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>) | (Pick<{
|
|
121
124
|
addOnClassName?: string | undefined;
|
|
122
125
|
blockLabel?: boolean | undefined;
|
|
123
126
|
'data-gs-c'?: Function | undefined;
|
|
@@ -145,6 +148,7 @@ export declare const DateFormControl: import("@emotion/styled").StyledComponent<
|
|
|
145
148
|
labelWidth?: string | number | undefined;
|
|
146
149
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
147
150
|
options?: any;
|
|
151
|
+
guessMenuWidth?: boolean | undefined;
|
|
148
152
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
149
153
|
} & import("../FormControl/components/RadioGroup").RadioGroupProps, "getLabelForOption" | "disabledOptions"> & Partial<Pick<{
|
|
150
154
|
addOnClassName?: string | undefined;
|
|
@@ -174,8 +178,9 @@ export declare const DateFormControl: import("@emotion/styled").StyledComponent<
|
|
|
174
178
|
labelWidth?: string | number | undefined;
|
|
175
179
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
176
180
|
options?: any;
|
|
181
|
+
guessMenuWidth?: boolean | undefined;
|
|
177
182
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
178
|
-
} & import("../FormControl/components/RadioGroup").RadioGroupProps, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>) | (Pick<{
|
|
183
|
+
} & import("../FormControl/components/RadioGroup").RadioGroupProps, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "guessMenuWidth" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>) | (Pick<{
|
|
179
184
|
addOnClassName?: string | undefined;
|
|
180
185
|
blockLabel?: boolean | undefined;
|
|
181
186
|
'data-gs-c'?: Function | undefined;
|
|
@@ -203,6 +208,7 @@ export declare const DateFormControl: import("@emotion/styled").StyledComponent<
|
|
|
203
208
|
labelWidth?: string | number | undefined;
|
|
204
209
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
205
210
|
options?: any;
|
|
211
|
+
guessMenuWidth?: boolean | undefined;
|
|
206
212
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
207
213
|
} & Omit<import("../Input").InputProps<"number" | "textarea" | "text" | "url" | "email" | "datetime-local" | "password">, "label">, "form" | "style" | "title" | "pattern" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "readOnly" | "checked" | "height" | "width" | "wrap" | "inline" | "rows" | "max" | "min" | "crossOrigin" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "step" | "multiple" | "accept" | "alt" | "autoComplete" | "capture" | "maxLength" | "minLength" | "src" | "variant" | "cols" | "dirName" | "inputRef"> & Partial<Pick<{
|
|
208
214
|
addOnClassName?: string | undefined;
|
|
@@ -232,8 +238,9 @@ export declare const DateFormControl: import("@emotion/styled").StyledComponent<
|
|
|
232
238
|
labelWidth?: string | number | undefined;
|
|
233
239
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
234
240
|
options?: any;
|
|
241
|
+
guessMenuWidth?: boolean | undefined;
|
|
235
242
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
236
|
-
} & Omit<import("../Input").InputProps<"number" | "textarea" | "text" | "url" | "email" | "datetime-local" | "password">, "label">, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>)) & {
|
|
243
|
+
} & Omit<import("../Input").InputProps<"number" | "textarea" | "text" | "url" | "email" | "datetime-local" | "password">, "label">, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "guessMenuWidth" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>)) & {
|
|
237
244
|
theme?: import("@emotion/react").Theme | undefined;
|
|
238
245
|
}) & {
|
|
239
246
|
variant: string;
|
|
@@ -49,6 +49,7 @@ export declare type FormControlProps<T extends FormControlTypes = 'text'> = {
|
|
|
49
49
|
*/
|
|
50
50
|
inputCss?: Interpolation<any>;
|
|
51
51
|
options?: any;
|
|
52
|
+
guessMenuWidth?: boolean;
|
|
52
53
|
optionRenderer?: (option: FormControlValue) => React.ReactElement;
|
|
53
54
|
} & FormControlElementTypes<T>;
|
|
54
55
|
declare class FormControl<T extends FormControlTypes = 'text'> extends PureComponent<FormControlProps<T>> {
|
package/dist/es/Select/utils.js
CHANGED
|
@@ -52,9 +52,9 @@ function getTextWidth(inputText, theme) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
var width = context && inputText ? context.measureText(inputText).width : 0; // account for extra ellipsis length
|
|
55
|
-
//
|
|
55
|
+
// 40 Corresponds to the different padding dynamics of our v5 select component. 32 for singlar select option labels (menu padding + option padding) + 8 additional pixels for grouped option padding.
|
|
56
56
|
|
|
57
|
-
return Math.ceil(width +
|
|
57
|
+
return Math.ceil(width + 40);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
function byteLength(str) {
|
|
@@ -37,6 +37,7 @@ export declare const TimeFormControl: import("@emotion/styled").StyledComponent<
|
|
|
37
37
|
labelWidth?: string | number | undefined;
|
|
38
38
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
39
39
|
options?: any;
|
|
40
|
+
guessMenuWidth?: boolean | undefined;
|
|
40
41
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
41
42
|
} & Omit<import("../Select").SelectComponentProps, "label">) | (Pick<{
|
|
42
43
|
addOnClassName?: string | undefined;
|
|
@@ -66,6 +67,7 @@ export declare const TimeFormControl: import("@emotion/styled").StyledComponent<
|
|
|
66
67
|
labelWidth?: string | number | undefined;
|
|
67
68
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
68
69
|
options?: any;
|
|
70
|
+
guessMenuWidth?: boolean | undefined;
|
|
69
71
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
70
72
|
} & import("../FormControl/components/CheckboxGroup").CheckboxGroupProps, "getLabelForOption" | "disabledOptions"> & Partial<Pick<{
|
|
71
73
|
addOnClassName?: string | undefined;
|
|
@@ -95,8 +97,9 @@ export declare const TimeFormControl: import("@emotion/styled").StyledComponent<
|
|
|
95
97
|
labelWidth?: string | number | undefined;
|
|
96
98
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
97
99
|
options?: any;
|
|
100
|
+
guessMenuWidth?: boolean | undefined;
|
|
98
101
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
99
|
-
} & import("../FormControl/components/CheckboxGroup").CheckboxGroupProps, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>) | (Pick<{
|
|
102
|
+
} & import("../FormControl/components/CheckboxGroup").CheckboxGroupProps, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "guessMenuWidth" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>) | (Pick<{
|
|
100
103
|
addOnClassName?: string | undefined;
|
|
101
104
|
blockLabel?: boolean | undefined;
|
|
102
105
|
'data-gs-c'?: Function | undefined;
|
|
@@ -124,6 +127,7 @@ export declare const TimeFormControl: import("@emotion/styled").StyledComponent<
|
|
|
124
127
|
labelWidth?: string | number | undefined;
|
|
125
128
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
126
129
|
options?: any;
|
|
130
|
+
guessMenuWidth?: boolean | undefined;
|
|
127
131
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
128
132
|
} & import("../FormControl/components/RadioGroup").RadioGroupProps, "getLabelForOption" | "disabledOptions"> & Partial<Pick<{
|
|
129
133
|
addOnClassName?: string | undefined;
|
|
@@ -153,8 +157,9 @@ export declare const TimeFormControl: import("@emotion/styled").StyledComponent<
|
|
|
153
157
|
labelWidth?: string | number | undefined;
|
|
154
158
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
155
159
|
options?: any;
|
|
160
|
+
guessMenuWidth?: boolean | undefined;
|
|
156
161
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
157
|
-
} & import("../FormControl/components/RadioGroup").RadioGroupProps, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>) | (Pick<{
|
|
162
|
+
} & import("../FormControl/components/RadioGroup").RadioGroupProps, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "guessMenuWidth" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>) | (Pick<{
|
|
158
163
|
addOnClassName?: string | undefined;
|
|
159
164
|
blockLabel?: boolean | undefined;
|
|
160
165
|
'data-gs-c'?: Function | undefined;
|
|
@@ -182,6 +187,7 @@ export declare const TimeFormControl: import("@emotion/styled").StyledComponent<
|
|
|
182
187
|
labelWidth?: string | number | undefined;
|
|
183
188
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
184
189
|
options?: any;
|
|
190
|
+
guessMenuWidth?: boolean | undefined;
|
|
185
191
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
186
192
|
} & Omit<import("../Input").InputProps<"number" | "textarea" | "text" | "url" | "email" | "datetime-local" | "password">, "label">, "form" | "style" | "title" | "pattern" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "readOnly" | "checked" | "height" | "width" | "wrap" | "inline" | "rows" | "max" | "min" | "crossOrigin" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "step" | "multiple" | "accept" | "alt" | "autoComplete" | "capture" | "maxLength" | "minLength" | "src" | "variant" | "cols" | "dirName" | "inputRef"> & Partial<Pick<{
|
|
187
193
|
addOnClassName?: string | undefined;
|
|
@@ -211,8 +217,9 @@ export declare const TimeFormControl: import("@emotion/styled").StyledComponent<
|
|
|
211
217
|
labelWidth?: string | number | undefined;
|
|
212
218
|
inputCss?: import("@emotion/serialize").Interpolation<any>;
|
|
213
219
|
options?: any;
|
|
220
|
+
guessMenuWidth?: boolean | undefined;
|
|
214
221
|
optionRenderer?: ((option: import("../types").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
215
|
-
} & Omit<import("../Input").InputProps<"number" | "textarea" | "text" | "url" | "email" | "datetime-local" | "password">, "label">, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>)) & {
|
|
222
|
+
} & Omit<import("../Input").InputProps<"number" | "textarea" | "text" | "url" | "email" | "datetime-local" | "password">, "label">, "value" | "label" | "className" | "id" | "onChange" | "disabled" | "error" | "required" | "invalid" | "name" | "type" | "data-instrumentation" | "getRef" | "size" | "data-gs-c" | "labelWidth" | "showFullError" | "showFullHint" | "showFullInfo" | "showFullWarning" | "hint" | "info" | "hintNode" | "truncateErrors" | "truncateWarnings" | "showFullLabel" | "options" | "optionRenderer" | "isClearable" | "guessMenuWidth" | "warning" | "addOnClassName" | "valueCanBeNull" | "blockLabel" | "inputCss">> & Partial<Pick<Partial<import("../FormControl").FormControlProps<"text">>, never>>)) & {
|
|
216
223
|
theme?: import("@emotion/react").Theme | undefined;
|
|
217
224
|
}) & {
|
|
218
225
|
variant?: "primary" | "secondary" | undefined;
|