td-stylekit 30.17.2 → 31.0.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 +19 -0
- package/dist/es/ActionBar/ActionBar.js +10 -12
- package/dist/es/ActionBar/components/IconButton.d.ts +11 -1
- package/dist/es/ActionBar/components/IconButton.js +28 -8
- package/dist/es/BarChart/BarChart.d.ts +3 -16
- package/dist/es/BarChart/BarChart.js +12 -17
- package/dist/es/Box/Box.js +3 -5
- package/dist/es/Button/Button.d.ts +1 -16
- package/dist/es/Button/Button.js +55 -23
- package/dist/es/Checkbox/Checkbox.d.ts +0 -4
- package/dist/es/Checkbox/Checkbox.js +9 -11
- package/dist/es/ComparisonChart/ComparisonChart.d.ts +2 -13
- package/dist/es/ComparisonChart/ComparisonChart.js +10 -12
- package/dist/es/DataGrid/DataGrid.d.ts +3 -14
- package/dist/es/DataGrid/DataGrid.js +83 -61
- package/dist/es/DataGrid/components/ColumnHeader.d.ts +2 -6
- package/dist/es/DataGrid/components/ColumnHeader.js +8 -10
- package/dist/es/DataGrid/components/FocusableRow.js +1 -1
- package/dist/es/DataGrid/components/InputCell.js +0 -3
- package/dist/es/DataGrid/components/ScrollableTable.d.ts +0 -15
- package/dist/es/DataGrid/components/ScrollableTable.js +32 -32
- package/dist/es/DataGrid/elements.d.ts +3 -6
- package/dist/es/DateControl/DateControl.d.ts +1 -6
- package/dist/es/DateControl/DateControl.js +2 -4
- package/dist/es/DateControl/elements.d.ts +1 -238
- package/dist/es/DatePicker/DatePicker.d.ts +0 -6
- package/dist/es/DatePicker/DatePicker.js +28 -19
- package/dist/es/DropdownButton/DropdownButton.d.ts +3 -10
- package/dist/es/DropdownButton/DropdownButton.js +18 -16
- package/dist/es/FileInput/FileInput.d.ts +1 -6
- package/dist/es/FileInput/FileInput.js +7 -9
- package/dist/es/FormControl/FormControl.d.ts +1 -2
- package/dist/es/FormControl/FormControl.js +31 -29
- package/dist/es/FormModal/FormModal.d.ts +1 -6
- package/dist/es/FormModal/FormModal.js +3 -5
- package/dist/es/GrowthRateChart/GrowthRateChart.d.ts +4 -64
- package/dist/es/GrowthRateChart/GrowthRateChart.js +32 -17
- package/dist/es/IconBar/IconBar.d.ts +4 -2
- package/dist/es/IconBar/IconItem.d.ts +4 -2
- package/dist/es/Link/Link.d.ts +4 -2
- package/dist/es/Link/Link.js +43 -11
- package/dist/es/Logo/Logo.d.ts +0 -7
- package/dist/es/Logo/Logo.js +6 -8
- package/dist/es/Logo/LogoDark.d.ts +1 -8
- package/dist/es/Logo/LogoDark.js +5 -7
- package/dist/es/Logo/LogoLight.d.ts +1 -8
- package/dist/es/Logo/LogoLight.js +5 -7
- package/dist/es/Menu/Menu.d.ts +0 -4
- package/dist/es/Menu/Menu.js +6 -8
- package/dist/es/Menu/MenuElements.d.ts +2 -6
- package/dist/es/Menu/MenuElements.js +10 -9
- package/dist/es/Modal/Modal.d.ts +2 -9
- package/dist/es/Modal/Modal.js +13 -13
- package/dist/es/Modal/components/MenuBody.d.ts +1 -3
- package/dist/es/Modal/components/ModalMessage.d.ts +1 -6
- package/dist/es/Modal/components/ModalMessage.js +14 -16
- package/dist/es/Modal/components/ModalOverlay.d.ts +1 -0
- package/dist/es/Modal/components/elements.d.ts +19 -19
- package/dist/es/Modal/components/elements.js +20 -21
- package/dist/es/MultiSelect/MultiSelect.d.ts +3 -27
- package/dist/es/MultiSelect/MultiSelect.js +46 -46
- package/dist/es/Radio/Radio.d.ts +1 -6
- package/dist/es/Radio/Radio.js +14 -15
- package/dist/es/SecondaryNavigation/SecondaryNavigation.d.ts +1 -7
- package/dist/es/SecondaryNavigation/SecondaryNavigation.js +3 -5
- package/dist/es/Section/Section.d.ts +1 -5
- package/dist/es/Section/Section.js +4 -6
- package/dist/es/Select/Select.d.ts +1 -13
- package/dist/es/Select/Select.js +9 -22
- package/dist/es/Shuttle/Shuttle.d.ts +3 -15
- package/dist/es/Shuttle/Shuttle.js +22 -22
- package/dist/es/Tagger/Tagger.d.ts +2 -10
- package/dist/es/Tagger/Tagger.js +39 -41
- package/dist/es/Tagger/TaggerElements.d.ts +4 -2
- package/dist/es/Tagger/components/PopupSelector.d.ts +13 -19
- package/dist/es/Tagger/components/PopupSelector.js +49 -50
- package/dist/es/Tagger/components/PopupSelectorElements.d.ts +4 -2
- package/dist/es/Tagger/types.d.ts +5 -5
- package/dist/es/TimeControl/TimeControl.js +25 -18
- package/dist/es/TimeControl/elements.d.ts +1 -238
- package/dist/es/TimePicker/TimePicker.js +6 -10
- package/dist/es/TimePicker/components/Spinner.js +16 -12
- package/dist/es/Toast/Toast.d.ts +4 -11
- package/dist/es/Toast/Toast.js +12 -13
- package/dist/es/Toggle/Toggle.d.ts +0 -5
- package/dist/es/Toggle/Toggle.js +10 -11
- package/dist/es/TooltipPopover/TooltipPopover.d.ts +1 -8
- package/dist/es/TooltipPopover/TooltipPopover.js +6 -9
- package/dist/es/Tree/Tree.js +2 -4
- package/dist/es/VolumeChart/VolumeChart.d.ts +1 -10
- package/dist/es/VolumeChart/VolumeChart.js +6 -8
- package/package.json +4 -4
|
@@ -9,244 +9,7 @@ export declare const StyledPopover: import("@emotion/styled").StyledComponent<im
|
|
|
9
9
|
} & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
12
|
-
export declare const TimeFormControl: import("@emotion/styled").StyledComponent<((({
|
|
13
|
-
addOnClassName?: string | undefined;
|
|
14
|
-
blockLabel?: boolean | undefined;
|
|
15
|
-
'data-gs-c'?: Function | undefined;
|
|
16
|
-
'data-instrumentation'?: string | undefined;
|
|
17
|
-
error?: string | string[] | import("immutable").List<string> | null | undefined;
|
|
18
|
-
info?: import("react").ReactNode;
|
|
19
|
-
getRef?: ((ref: HTMLDivElement) => void) | undefined;
|
|
20
|
-
hint?: import("react").ReactNode;
|
|
21
|
-
hintNode?: import("react").ReactNode;
|
|
22
|
-
invalid?: boolean | undefined;
|
|
23
|
-
isClearable?: boolean | undefined;
|
|
24
|
-
label?: import("react").ReactNode;
|
|
25
|
-
required?: boolean | undefined;
|
|
26
|
-
showFullError?: boolean | undefined;
|
|
27
|
-
showFullHint?: boolean | undefined;
|
|
28
|
-
showFullInfo?: boolean | undefined;
|
|
29
|
-
showFullLabel?: boolean | undefined;
|
|
30
|
-
showFullWarning?: boolean | undefined;
|
|
31
|
-
size?: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
32
|
-
truncateErrors?: boolean | undefined;
|
|
33
|
-
truncateWarnings?: boolean | undefined;
|
|
34
|
-
type: import("../FormControl/FormControl").FormControlTypes;
|
|
35
|
-
valueCanBeNull?: boolean | undefined;
|
|
36
|
-
warning?: import("react").ReactNode;
|
|
37
|
-
labelWidth?: string | number | undefined;
|
|
38
|
-
inputCss?: import("@emotion/react").Interpolation<any>;
|
|
39
|
-
options?: any;
|
|
40
|
-
guessMenuWidth?: boolean | undefined;
|
|
41
|
-
optionRenderer?: ((option: import("..").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
42
|
-
} & Omit<import("../Select").SelectComponentProps, "label">) | (Pick<{
|
|
43
|
-
addOnClassName?: string | undefined;
|
|
44
|
-
blockLabel?: boolean | undefined;
|
|
45
|
-
'data-gs-c'?: Function | undefined;
|
|
46
|
-
'data-instrumentation'?: string | undefined;
|
|
47
|
-
error?: string | string[] | import("immutable").List<string> | null | undefined;
|
|
48
|
-
info?: import("react").ReactNode;
|
|
49
|
-
getRef?: ((ref: HTMLDivElement) => void) | undefined;
|
|
50
|
-
hint?: import("react").ReactNode;
|
|
51
|
-
hintNode?: import("react").ReactNode;
|
|
52
|
-
invalid?: boolean | undefined;
|
|
53
|
-
isClearable?: boolean | undefined;
|
|
54
|
-
label?: import("react").ReactNode;
|
|
55
|
-
required?: boolean | undefined;
|
|
56
|
-
showFullError?: boolean | undefined;
|
|
57
|
-
showFullHint?: boolean | undefined;
|
|
58
|
-
showFullInfo?: boolean | undefined;
|
|
59
|
-
showFullLabel?: boolean | undefined;
|
|
60
|
-
showFullWarning?: boolean | undefined;
|
|
61
|
-
size?: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
62
|
-
truncateErrors?: boolean | undefined;
|
|
63
|
-
truncateWarnings?: boolean | undefined;
|
|
64
|
-
type: import("../FormControl/FormControl").FormControlTypes;
|
|
65
|
-
valueCanBeNull?: boolean | undefined;
|
|
66
|
-
warning?: import("react").ReactNode;
|
|
67
|
-
labelWidth?: string | number | undefined;
|
|
68
|
-
inputCss?: import("@emotion/react").Interpolation<any>;
|
|
69
|
-
options?: any;
|
|
70
|
-
guessMenuWidth?: boolean | undefined;
|
|
71
|
-
optionRenderer?: ((option: import("..").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
72
|
-
} & import("../FormControl/FormRow").CheckboxGroupProps, "getLabelForOption" | "disabledOptions"> & {
|
|
73
|
-
value?: import("..").FormControlValue[] | undefined;
|
|
74
|
-
label?: import("react").ReactNode;
|
|
75
|
-
className?: string | undefined;
|
|
76
|
-
id?: string | undefined;
|
|
77
|
-
onChange?: ((option: {
|
|
78
|
-
name: string;
|
|
79
|
-
value: import("..").FormControlValue[];
|
|
80
|
-
}) => void) | undefined;
|
|
81
|
-
name?: string | undefined;
|
|
82
|
-
disabled?: boolean | undefined;
|
|
83
|
-
type?: import("../FormControl/FormControl").FormControlTypes | undefined;
|
|
84
|
-
'data-instrumentation'?: string | undefined;
|
|
85
|
-
getRef?: ((ref: HTMLDivElement) => void) | undefined;
|
|
86
|
-
error?: string | string[] | import("immutable").List<string> | null | undefined;
|
|
87
|
-
invalid?: boolean | undefined;
|
|
88
|
-
size?: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
89
|
-
'data-gs-c'?: Function | undefined;
|
|
90
|
-
labelWidth?: string | number | undefined;
|
|
91
|
-
required?: boolean | undefined;
|
|
92
|
-
showFullLabel?: boolean | undefined;
|
|
93
|
-
options?: any;
|
|
94
|
-
optionRenderer?: ((option: import("..").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
95
|
-
isClearable?: boolean | undefined;
|
|
96
|
-
guessMenuWidth?: boolean | undefined;
|
|
97
|
-
warning?: import("react").ReactNode;
|
|
98
|
-
showFullError?: boolean | undefined;
|
|
99
|
-
showFullHint?: boolean | undefined;
|
|
100
|
-
showFullWarning?: boolean | undefined;
|
|
101
|
-
truncateWarnings?: boolean | undefined;
|
|
102
|
-
info?: import("react").ReactNode;
|
|
103
|
-
showFullInfo?: boolean | undefined;
|
|
104
|
-
truncateErrors?: boolean | undefined;
|
|
105
|
-
hint?: import("react").ReactNode;
|
|
106
|
-
hintNode?: import("react").ReactNode;
|
|
107
|
-
blockLabel?: boolean | undefined;
|
|
108
|
-
addOnClassName?: string | undefined;
|
|
109
|
-
valueCanBeNull?: boolean | undefined;
|
|
110
|
-
inputCss?: import("@emotion/react").Interpolation<any>;
|
|
111
|
-
} & {}) | (Pick<{
|
|
112
|
-
addOnClassName?: string | undefined;
|
|
113
|
-
blockLabel?: boolean | undefined;
|
|
114
|
-
'data-gs-c'?: Function | undefined;
|
|
115
|
-
'data-instrumentation'?: string | undefined;
|
|
116
|
-
error?: string | string[] | import("immutable").List<string> | null | undefined;
|
|
117
|
-
info?: import("react").ReactNode;
|
|
118
|
-
getRef?: ((ref: HTMLDivElement) => void) | undefined;
|
|
119
|
-
hint?: import("react").ReactNode;
|
|
120
|
-
hintNode?: import("react").ReactNode;
|
|
121
|
-
invalid?: boolean | undefined;
|
|
122
|
-
isClearable?: boolean | undefined;
|
|
123
|
-
label?: import("react").ReactNode;
|
|
124
|
-
required?: boolean | undefined;
|
|
125
|
-
showFullError?: boolean | undefined;
|
|
126
|
-
showFullHint?: boolean | undefined;
|
|
127
|
-
showFullInfo?: boolean | undefined;
|
|
128
|
-
showFullLabel?: boolean | undefined;
|
|
129
|
-
showFullWarning?: boolean | undefined;
|
|
130
|
-
size?: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
131
|
-
truncateErrors?: boolean | undefined;
|
|
132
|
-
truncateWarnings?: boolean | undefined;
|
|
133
|
-
type: import("../FormControl/FormControl").FormControlTypes;
|
|
134
|
-
valueCanBeNull?: boolean | undefined;
|
|
135
|
-
warning?: import("react").ReactNode;
|
|
136
|
-
labelWidth?: string | number | undefined;
|
|
137
|
-
inputCss?: import("@emotion/react").Interpolation<any>;
|
|
138
|
-
options?: any;
|
|
139
|
-
guessMenuWidth?: boolean | undefined;
|
|
140
|
-
optionRenderer?: ((option: import("..").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
141
|
-
} & import("../FormControl/FormRow").RadioGroupProps, "getLabelForOption" | "disabledOptions"> & {
|
|
142
|
-
value?: import("..").FormControlValue | undefined;
|
|
143
|
-
label?: import("react").ReactNode;
|
|
144
|
-
className?: string | undefined;
|
|
145
|
-
id?: string | undefined;
|
|
146
|
-
onChange?: ((option: {
|
|
147
|
-
name: string;
|
|
148
|
-
value: import("..").FormControlValue;
|
|
149
|
-
}) => void) | undefined;
|
|
150
|
-
name?: string | undefined;
|
|
151
|
-
disabled?: boolean | undefined;
|
|
152
|
-
type?: import("../FormControl/FormControl").FormControlTypes | undefined;
|
|
153
|
-
'data-instrumentation'?: string | undefined;
|
|
154
|
-
getRef?: ((ref: HTMLDivElement) => void) | undefined;
|
|
155
|
-
error?: string | string[] | import("immutable").List<string> | null | undefined;
|
|
156
|
-
invalid?: boolean | undefined;
|
|
157
|
-
size?: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
158
|
-
'data-gs-c'?: Function | undefined;
|
|
159
|
-
labelWidth?: string | number | undefined;
|
|
160
|
-
required?: boolean | undefined;
|
|
161
|
-
showFullLabel?: boolean | undefined;
|
|
162
|
-
options?: any;
|
|
163
|
-
optionRenderer?: (((option: import("..").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & ((option: import("..").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>)) | undefined;
|
|
164
|
-
isClearable?: boolean | undefined;
|
|
165
|
-
guessMenuWidth?: boolean | undefined;
|
|
166
|
-
warning?: import("react").ReactNode;
|
|
167
|
-
showFullError?: boolean | undefined;
|
|
168
|
-
showFullHint?: boolean | undefined;
|
|
169
|
-
showFullWarning?: boolean | undefined;
|
|
170
|
-
truncateWarnings?: boolean | undefined;
|
|
171
|
-
info?: import("react").ReactNode;
|
|
172
|
-
showFullInfo?: boolean | undefined;
|
|
173
|
-
truncateErrors?: boolean | undefined;
|
|
174
|
-
hint?: import("react").ReactNode;
|
|
175
|
-
hintNode?: import("react").ReactNode;
|
|
176
|
-
blockLabel?: boolean | undefined;
|
|
177
|
-
addOnClassName?: string | undefined;
|
|
178
|
-
valueCanBeNull?: boolean | undefined;
|
|
179
|
-
inputCss?: import("@emotion/react").Interpolation<any>;
|
|
180
|
-
} & {}) | (Pick<{
|
|
181
|
-
addOnClassName?: string | undefined;
|
|
182
|
-
blockLabel?: boolean | undefined;
|
|
183
|
-
'data-gs-c'?: Function | undefined;
|
|
184
|
-
'data-instrumentation'?: string | undefined;
|
|
185
|
-
error?: string | string[] | import("immutable").List<string> | null | undefined;
|
|
186
|
-
info?: import("react").ReactNode;
|
|
187
|
-
getRef?: ((ref: HTMLDivElement) => void) | undefined;
|
|
188
|
-
hint?: import("react").ReactNode;
|
|
189
|
-
hintNode?: import("react").ReactNode;
|
|
190
|
-
invalid?: boolean | undefined;
|
|
191
|
-
isClearable?: boolean | undefined;
|
|
192
|
-
label?: import("react").ReactNode;
|
|
193
|
-
required?: boolean | undefined;
|
|
194
|
-
showFullError?: boolean | undefined;
|
|
195
|
-
showFullHint?: boolean | undefined;
|
|
196
|
-
showFullInfo?: boolean | undefined;
|
|
197
|
-
showFullLabel?: boolean | undefined;
|
|
198
|
-
showFullWarning?: boolean | undefined;
|
|
199
|
-
size?: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
200
|
-
truncateErrors?: boolean | undefined;
|
|
201
|
-
truncateWarnings?: boolean | undefined;
|
|
202
|
-
type: import("../FormControl/FormControl").FormControlTypes;
|
|
203
|
-
valueCanBeNull?: boolean | undefined;
|
|
204
|
-
warning?: import("react").ReactNode;
|
|
205
|
-
labelWidth?: string | number | undefined;
|
|
206
|
-
inputCss?: import("@emotion/react").Interpolation<any>;
|
|
207
|
-
options?: any;
|
|
208
|
-
guessMenuWidth?: boolean | undefined;
|
|
209
|
-
optionRenderer?: ((option: import("..").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
210
|
-
} & Omit<import("../Input").InputProps<"number" | "textarea" | "text" | "url" | "email" | "datetime-local" | "password">, "label">, "form" | "slot" | "style" | "title" | "pattern" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "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" | "onResize" | "onResizeCapture" | "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" | "height" | "width" | "inline" | "wrap" | "rows" | "max" | "min" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "step" | "list" | "multiple" | "readOnly" | "checked" | "accept" | "alt" | "autoComplete" | "capture" | "enterKeyHint" | "maxLength" | "minLength" | "src" | "variant" | "cols" | "dirName" | "inputRef"> & {
|
|
211
|
-
value?: string | number | (string & readonly string[]) | (number & readonly string[]) | undefined;
|
|
212
|
-
label?: import("react").ReactNode;
|
|
213
|
-
className?: string | undefined;
|
|
214
|
-
id?: string | undefined;
|
|
215
|
-
onChange?: ((arg0: {
|
|
216
|
-
name: string;
|
|
217
|
-
value?: string | number | undefined;
|
|
218
|
-
}) => void) | undefined;
|
|
219
|
-
name?: string | undefined;
|
|
220
|
-
disabled?: boolean | undefined;
|
|
221
|
-
type?: "number" | "textarea" | "text" | "url" | "email" | "datetime-local" | "password" | undefined;
|
|
222
|
-
'data-instrumentation'?: string | undefined;
|
|
223
|
-
getRef?: ((ref: HTMLDivElement) => void) | undefined;
|
|
224
|
-
error?: string | string[] | import("immutable").List<string> | null | undefined;
|
|
225
|
-
invalid?: boolean | undefined;
|
|
226
|
-
size?: undefined;
|
|
227
|
-
'data-gs-c'?: Function | undefined;
|
|
228
|
-
labelWidth?: string | number | undefined;
|
|
229
|
-
required?: boolean | undefined;
|
|
230
|
-
showFullLabel?: boolean | undefined;
|
|
231
|
-
options?: any;
|
|
232
|
-
optionRenderer?: ((option: import("..").FormControlValue) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
233
|
-
isClearable?: boolean | undefined;
|
|
234
|
-
guessMenuWidth?: boolean | undefined;
|
|
235
|
-
warning?: import("react").ReactNode;
|
|
236
|
-
showFullError?: boolean | undefined;
|
|
237
|
-
showFullHint?: boolean | undefined;
|
|
238
|
-
showFullWarning?: boolean | undefined;
|
|
239
|
-
truncateWarnings?: boolean | undefined;
|
|
240
|
-
info?: import("react").ReactNode;
|
|
241
|
-
showFullInfo?: boolean | undefined;
|
|
242
|
-
truncateErrors?: boolean | undefined;
|
|
243
|
-
hint?: import("react").ReactNode;
|
|
244
|
-
hintNode?: import("react").ReactNode;
|
|
245
|
-
blockLabel?: boolean | undefined;
|
|
246
|
-
addOnClassName?: string | undefined;
|
|
247
|
-
valueCanBeNull?: boolean | undefined;
|
|
248
|
-
inputCss?: import("@emotion/react").Interpolation<any>;
|
|
249
|
-
} & {})) & {
|
|
12
|
+
export declare const TimeFormControl: import("@emotion/styled").StyledComponent<(import("../FormControl").FormControlProps<import("../FormControl/FormControl").FormControlTypes> & {
|
|
250
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
251
14
|
}) & {
|
|
252
15
|
variant?: "primary" | "secondary" | undefined;
|
|
@@ -29,12 +29,15 @@ var TimePicker = exports.TimePicker = function TimePicker(props) {
|
|
|
29
29
|
_props$initialPeriod = props.initialPeriod,
|
|
30
30
|
initialPeriod = _props$initialPeriod === void 0 ? '24' : _props$initialPeriod,
|
|
31
31
|
disabled = props.disabled,
|
|
32
|
-
|
|
32
|
+
_props$dataInstrumen = props['data-instrumentation'],
|
|
33
|
+
dataInstrumentation = _props$dataInstrumen === void 0 ? 'timepicker' : _props$dataInstrumen,
|
|
33
34
|
readonly = props.readonly,
|
|
34
|
-
variant = props.variant,
|
|
35
|
+
_props$variant = props.variant,
|
|
36
|
+
variant = _props$variant === void 0 ? 'primary' : _props$variant,
|
|
35
37
|
onChange = props.onChange,
|
|
36
38
|
onPeriodChange = props.onPeriodChange,
|
|
37
|
-
|
|
39
|
+
_props$showPeriodSele = props.showPeriodSelectorForHours,
|
|
40
|
+
showPeriodSelectorForHours = _props$showPeriodSele === void 0 ? false : _props$showPeriodSele;
|
|
38
41
|
var separators = (0, _react.useMemo)(_utils.getTimePartsSeparators, []);
|
|
39
42
|
var _useState = (0, _react.useState)(initialPeriod),
|
|
40
43
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -176,12 +179,5 @@ var TimePicker = exports.TimePicker = function TimePicker(props) {
|
|
|
176
179
|
})]
|
|
177
180
|
});
|
|
178
181
|
};
|
|
179
|
-
TimePicker.defaultProps = {
|
|
180
|
-
editor: 'hours-minutes-seconds',
|
|
181
|
-
variant: 'primary',
|
|
182
|
-
'data-instrumentation': 'timepicker',
|
|
183
|
-
initialPeriod: '24',
|
|
184
|
-
showPeriodSelectorForHours: false
|
|
185
|
-
};
|
|
186
182
|
TimePicker.displayName = 'TimePicker';
|
|
187
183
|
var _default = exports["default"] = TimePicker;
|
|
@@ -12,6 +12,7 @@ var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
|
12
12
|
var _ActionBar = require("../../ActionBar");
|
|
13
13
|
var _utils = require("../utils");
|
|
14
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
|
+
var _excluded = ["minimum", "maximum"];
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
17
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
18
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -19,6 +20,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
19
20
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
21
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
21
22
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
23
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
24
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22
25
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
23
26
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
24
27
|
/* eslint-disable td/instrumentation */
|
|
@@ -46,8 +49,13 @@ var NumericInput = exports.NumericInput = /*#__PURE__*/(0, _base["default"])('in
|
|
|
46
49
|
},
|
|
47
50
|
MozAppearance: 'textfield'
|
|
48
51
|
};
|
|
49
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9UaW1lUGlja2VyL2NvbXBvbmVudHMvU3Bpbm5lci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVzRCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9UaW1lUGlja2VyL2NvbXBvbmVudHMvU3Bpbm5lci50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSB0ZC9pbnN0cnVtZW50YXRpb24gKi9cbi8vIHRoaXMgbGV2ZWwgb2YgZmluZSBncmFpbmVkIGluc3RydW1lbnRhdGlvbiBpcyBub3QgbmVlZGVkXG5pbXBvcnQgeyBQcm9wc1dpdGhDaGlsZHJlbiwgRkMsIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHVzZVRoZW1lIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgQ29sdW1uIGZyb20gJy4uLy4uL0NvbHVtbidcbmltcG9ydCBJY29uIGZyb20gJy4uLy4uL0ljb24nXG5pbXBvcnQgeyBJY29uQnV0dG9uIH0gZnJvbSAnLi4vLi4vQWN0aW9uQmFy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9PiB2b2lkXG59XG5cbmV4cG9ydCBjb25zdCBTcGlubmVyOiBGQzxQcm9wc1dpdGhDaGlsZHJlbjxTcGlubmVyUHJvcHM+
|
|
50
|
-
var Spinner = exports.Spinner = function Spinner(
|
|
52
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9UaW1lUGlja2VyL2NvbXBvbmVudHMvU3Bpbm5lci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVzRCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9UaW1lUGlja2VyL2NvbXBvbmVudHMvU3Bpbm5lci50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSB0ZC9pbnN0cnVtZW50YXRpb24gKi9cbi8vIHRoaXMgbGV2ZWwgb2YgZmluZSBncmFpbmVkIGluc3RydW1lbnRhdGlvbiBpcyBub3QgbmVlZGVkXG5pbXBvcnQgeyBQcm9wc1dpdGhDaGlsZHJlbiwgRkMsIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHVzZVRoZW1lIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgQ29sdW1uIGZyb20gJy4uLy4uL0NvbHVtbidcbmltcG9ydCBJY29uIGZyb20gJy4uLy4uL0ljb24nXG5pbXBvcnQgeyBJY29uQnV0dG9uIH0gZnJvbSAnLi4vLi4vQWN0aW9uQmFyJ1xuaW1wb3J0IHR5cGUgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lUHJvdmlkZXInXG5pbXBvcnQgeyBmb3JtYXRUaW1lUGFydCB9IGZyb20gJy4uL3V0aWxzJ1xuXG5leHBvcnQgY29uc3QgTnVtZXJpY0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sZXNzXG4gICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZCB8fCBwcm9wcy5yZWFkb25seX1cbiAgICAgICAgb25DbGljaz17aGFuZGxlRGVjcmVtZW50fVxuICAgICAgPlxuICAgICAgICA8SWNvbi5NZWRpdW0uRmlsbGVkRG93bkFycm93IC8+XG4gICAgICA8L0ljb25CdXR0b24+XG4gICAgPC9Db2x1bW4+XG4gIClcbn1cblxuU3Bpbm5lci5kaXNwbGF5TmFtZSA9ICdTcGlubmVyJ1xuIl19 */");
|
|
53
|
+
var Spinner = exports.Spinner = function Spinner(_ref2) {
|
|
54
|
+
var _ref2$minimum = _ref2.minimum,
|
|
55
|
+
minimum = _ref2$minimum === void 0 ? 0 : _ref2$minimum,
|
|
56
|
+
_ref2$maximum = _ref2.maximum,
|
|
57
|
+
maximum = _ref2$maximum === void 0 ? 59 : _ref2$maximum,
|
|
58
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
51
59
|
var theme = (0, _react2.useTheme)();
|
|
52
60
|
var _useState = (0, _react.useState)(false),
|
|
53
61
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -58,17 +66,17 @@ var Spinner = exports.Spinner = function Spinner(props) {
|
|
|
58
66
|
}
|
|
59
67
|
var accent = props.variant === 'primary' ? theme.palette.primary[2] : theme.palette.secondary[2];
|
|
60
68
|
var handleIncrement = function handleIncrement() {
|
|
61
|
-
if (
|
|
69
|
+
if (maximum !== undefined && props.value < maximum) {
|
|
62
70
|
props.onChange(props.value + 1);
|
|
63
|
-
} else if (
|
|
64
|
-
props.onChange(
|
|
71
|
+
} else if (minimum !== undefined) {
|
|
72
|
+
props.onChange(minimum);
|
|
65
73
|
}
|
|
66
74
|
};
|
|
67
75
|
var handleDecrement = function handleDecrement() {
|
|
68
76
|
if (props.value > 0) {
|
|
69
77
|
props.onChange(props.value - 1);
|
|
70
|
-
} else if (
|
|
71
|
-
props.onChange(
|
|
78
|
+
} else if (maximum !== undefined) {
|
|
79
|
+
props.onChange(maximum);
|
|
72
80
|
}
|
|
73
81
|
};
|
|
74
82
|
var disabled = props.disabled || Number.isNaN(props.value);
|
|
@@ -107,7 +115,7 @@ var Spinner = exports.Spinner = function Spinner(props) {
|
|
|
107
115
|
"data-testid": "timepicker-spinner-".concat(props.partName, "-input"),
|
|
108
116
|
type: editing ? 'number' : 'string',
|
|
109
117
|
min: 0,
|
|
110
|
-
max:
|
|
118
|
+
max: maximum,
|
|
111
119
|
value: displayValue,
|
|
112
120
|
disabled: disabled,
|
|
113
121
|
readOnly: props.readonly,
|
|
@@ -136,8 +144,4 @@ var Spinner = exports.Spinner = function Spinner(props) {
|
|
|
136
144
|
})]
|
|
137
145
|
});
|
|
138
146
|
};
|
|
139
|
-
Spinner.defaultProps = {
|
|
140
|
-
minimum: 0,
|
|
141
|
-
maximum: 59
|
|
142
|
-
};
|
|
143
147
|
Spinner.displayName = 'Spinner';
|
package/dist/es/Toast/Toast.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { TOAST_TYPES } from './constants';
|
|
|
3
3
|
export type ToastProps = {
|
|
4
4
|
/** Provide a link with more information about this Toast. */
|
|
5
5
|
href?: string;
|
|
6
|
-
/** If this toast is the top item in a list */
|
|
7
|
-
isTop
|
|
6
|
+
/** If this toast is the top item in a list. Defaults to `false` */
|
|
7
|
+
isTop?: boolean;
|
|
8
8
|
/** String to display as `href` link text. Ignored if `href` is `undefined`. */
|
|
9
9
|
moreText?: string;
|
|
10
10
|
/** Callback invoked on click. Ignored if `inline` is `true`. */
|
|
@@ -18,19 +18,12 @@ export type ToastProps = {
|
|
|
18
18
|
title?: string;
|
|
19
19
|
/** `onClick` prop is ignored if `inline` is `true`. Defaults to `false` */
|
|
20
20
|
inline?: boolean;
|
|
21
|
-
/** Determines toast variation e.g. default, error. */
|
|
22
|
-
type
|
|
21
|
+
/** Determines toast variation e.g. default, error. Defaults to `DEFAULT` */
|
|
22
|
+
type?: keyof typeof TOAST_TYPES;
|
|
23
23
|
/** Instrumentation */
|
|
24
24
|
'data-instrumentation'?: string;
|
|
25
25
|
};
|
|
26
26
|
declare class Toast extends PureComponent<ToastProps> {
|
|
27
|
-
static defaultProps: {
|
|
28
|
-
isTop: boolean;
|
|
29
|
-
type: TOAST_TYPES;
|
|
30
|
-
'data-instrumentation': string;
|
|
31
|
-
moreText: string;
|
|
32
|
-
inline: boolean;
|
|
33
|
-
};
|
|
34
27
|
static types: typeof TOAST_TYPES;
|
|
35
28
|
getTitle: () => string;
|
|
36
29
|
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/es/Toast/Toast.js
CHANGED
|
@@ -58,7 +58,8 @@ var Toast = /*#__PURE__*/function (_PureComponent) {
|
|
|
58
58
|
_defineProperty(_this, "getTitle", function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
title = _this$props.title,
|
|
61
|
-
type = _this$props.type
|
|
61
|
+
_this$props$type = _this$props.type,
|
|
62
|
+
type = _this$props$type === void 0 ? _constants.TOAST_TYPES.DEFAULT : _this$props$type;
|
|
62
63
|
return title === undefined ? TOAST_TYPE_MAP[type].title : title;
|
|
63
64
|
});
|
|
64
65
|
return _this;
|
|
@@ -69,13 +70,18 @@ var Toast = /*#__PURE__*/function (_PureComponent) {
|
|
|
69
70
|
value: function render() {
|
|
70
71
|
var _this$props2 = this.props,
|
|
71
72
|
href = _this$props2.href,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
_this$props2$dataIns = _this$props2['data-instrumentation'],
|
|
74
|
+
dataInstrumentation = _this$props2$dataIns === void 0 ? 'toast' : _this$props2$dataIns,
|
|
75
|
+
_this$props2$isTop = _this$props2.isTop,
|
|
76
|
+
isTop = _this$props2$isTop === void 0 ? false : _this$props2$isTop,
|
|
77
|
+
_this$props2$moreText = _this$props2.moreText,
|
|
78
|
+
moreText = _this$props2$moreText === void 0 ? 'more' : _this$props2$moreText,
|
|
75
79
|
onClick = _this$props2.onClick,
|
|
76
|
-
type = _this$props2.type,
|
|
80
|
+
_this$props2$type = _this$props2.type,
|
|
81
|
+
type = _this$props2$type === void 0 ? _constants.TOAST_TYPES.DEFAULT : _this$props2$type,
|
|
77
82
|
text = _this$props2.text,
|
|
78
|
-
inline = _this$props2.inline
|
|
83
|
+
_this$props2$inline = _this$props2.inline,
|
|
84
|
+
inline = _this$props2$inline === void 0 ? false : _this$props2$inline;
|
|
79
85
|
var title = this.getTitle();
|
|
80
86
|
return (0, _jsxRuntime.jsxs)(_elements.ToastWrapper, {
|
|
81
87
|
"data-gs-c": gsC("iconwrapper"),
|
|
@@ -132,12 +138,5 @@ var Toast = /*#__PURE__*/function (_PureComponent) {
|
|
|
132
138
|
}
|
|
133
139
|
}]);
|
|
134
140
|
}(_react.PureComponent);
|
|
135
|
-
_defineProperty(Toast, "defaultProps", {
|
|
136
|
-
isTop: false,
|
|
137
|
-
type: _constants.TOAST_TYPES.DEFAULT,
|
|
138
|
-
'data-instrumentation': 'toast',
|
|
139
|
-
moreText: 'more',
|
|
140
|
-
inline: false
|
|
141
|
-
});
|
|
142
141
|
_defineProperty(Toast, "types", _constants.TOAST_TYPES);
|
|
143
142
|
var _default = exports["default"] = Toast;
|
|
@@ -35,11 +35,6 @@ export declare const ToggleLabel: import("@emotion/styled").StyledComponent<{
|
|
|
35
35
|
theme?: import("@emotion/react").Theme | undefined;
|
|
36
36
|
}, {}, {}>;
|
|
37
37
|
declare class Toggle extends Component<ToggleProps, ToggleState> {
|
|
38
|
-
static defaultProps: {
|
|
39
|
-
'data-instrumentation': string;
|
|
40
|
-
'data-testid': string;
|
|
41
|
-
'aria-label': string;
|
|
42
|
-
};
|
|
43
38
|
state: {
|
|
44
39
|
isFocused: boolean;
|
|
45
40
|
};
|