@hitachivantara/uikit-react-core 5.2.0 → 5.4.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/dist/cjs/components/Button/Button.cjs +6 -0
- package/dist/cjs/components/Button/Button.cjs.map +1 -1
- package/dist/cjs/components/Button/Button.styles.cjs +15 -7
- package/dist/cjs/components/Button/Button.styles.cjs.map +1 -1
- package/dist/cjs/components/Button/buttonClasses.cjs +1 -1
- package/dist/cjs/components/Button/buttonClasses.cjs.map +1 -1
- package/dist/cjs/components/Calendar/SingleCalendar/SingleCalendar.styles.cjs +4 -4
- package/dist/cjs/components/Calendar/SingleCalendar/SingleCalendar.styles.cjs.map +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.cjs +347 -0
- package/dist/cjs/components/DatePicker/DatePicker.cjs.map +1 -0
- package/dist/cjs/components/DatePicker/DatePicker.styles.cjs +78 -0
- package/dist/cjs/components/DatePicker/DatePicker.styles.cjs.map +1 -0
- package/dist/cjs/components/DatePicker/datePickerClasses.cjs +8 -0
- package/dist/cjs/components/DatePicker/datePickerClasses.cjs.map +1 -0
- package/dist/cjs/components/DatePicker/useVisibleDate.cjs +193 -0
- package/dist/cjs/components/DatePicker/useVisibleDate.cjs.map +1 -0
- package/dist/cjs/components/DatePicker/utils.cjs +32 -0
- package/dist/cjs/components/DatePicker/utils.cjs.map +1 -0
- package/dist/cjs/components/Dialog/Dialog.cjs +3 -7
- package/dist/cjs/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.styles.cjs +32 -31
- package/dist/cjs/components/Dialog/Dialog.styles.cjs.map +1 -1
- package/dist/cjs/components/InlineEditor/InlineEditor.cjs +122 -0
- package/dist/cjs/components/InlineEditor/InlineEditor.cjs.map +1 -0
- package/dist/cjs/components/InlineEditor/InlineEditor.styles.cjs +74 -0
- package/dist/cjs/components/InlineEditor/InlineEditor.styles.cjs.map +1 -0
- package/dist/cjs/components/InlineEditor/inlineEditorClasses.cjs +8 -0
- package/dist/cjs/components/InlineEditor/inlineEditorClasses.cjs.map +1 -0
- package/dist/cjs/components/MultiButton/MultiButton.styles.cjs +2 -3
- package/dist/cjs/components/MultiButton/MultiButton.styles.cjs.map +1 -1
- package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.cjs +51 -0
- package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.cjs +54 -0
- package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/horizontalScrollListItemClasses.cjs +8 -0
- package/dist/cjs/components/ScrollTo/Horizontal/HorizontalScrollListItem/horizontalScrollListItemClasses.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Horizontal/ScrollToHorizontal.cjs +126 -0
- package/dist/cjs/components/ScrollTo/Horizontal/ScrollToHorizontal.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Horizontal/ScrollToHorizontal.styles.cjs +46 -0
- package/dist/cjs/components/ScrollTo/Horizontal/ScrollToHorizontal.styles.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Horizontal/scrollToHorizontalClasses.cjs +8 -0
- package/dist/cjs/components/ScrollTo/Horizontal/scrollToHorizontalClasses.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Vertical/ScrollToVertical.cjs +90 -0
- package/dist/cjs/components/ScrollTo/Vertical/ScrollToVertical.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Vertical/ScrollToVertical.styles.cjs +43 -0
- package/dist/cjs/components/ScrollTo/Vertical/ScrollToVertical.styles.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.cjs +71 -0
- package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.cjs +54 -0
- package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/verticalScrollListItemClasses.cjs +8 -0
- package/dist/cjs/components/ScrollTo/Vertical/VerticalScrollListItem/verticalScrollListItemClasses.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/Vertical/scrollToVerticalClasses.cjs +8 -0
- package/dist/cjs/components/ScrollTo/Vertical/scrollToVerticalClasses.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/useScrollTo.cjs +103 -0
- package/dist/cjs/components/ScrollTo/useScrollTo.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/utils.cjs +76 -0
- package/dist/cjs/components/ScrollTo/utils.cjs.map +1 -0
- package/dist/cjs/components/ScrollTo/withTooltip.cjs +20 -0
- package/dist/cjs/components/ScrollTo/withTooltip.cjs.map +1 -0
- package/dist/cjs/hocs/withTooltip.cjs +4 -4
- package/dist/cjs/hocs/withTooltip.cjs.map +1 -1
- package/dist/cjs/index.cjs +21 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/utils/theme.cjs +9 -0
- package/dist/cjs/utils/theme.cjs.map +1 -1
- package/dist/cjs/utils/wrapperTooltip.cjs +1 -1
- package/dist/cjs/utils/wrapperTooltip.cjs.map +1 -1
- package/dist/esm/components/Button/Button.js +6 -0
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Button/Button.styles.js +15 -7
- package/dist/esm/components/Button/Button.styles.js.map +1 -1
- package/dist/esm/components/Button/buttonClasses.js +1 -1
- package/dist/esm/components/Button/buttonClasses.js.map +1 -1
- package/dist/esm/components/Calendar/SingleCalendar/SingleCalendar.styles.js +4 -4
- package/dist/esm/components/Calendar/SingleCalendar/SingleCalendar.styles.js.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js +345 -0
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/esm/components/DatePicker/DatePicker.styles.js +78 -0
- package/dist/esm/components/DatePicker/DatePicker.styles.js.map +1 -0
- package/dist/esm/components/DatePicker/datePickerClasses.js +8 -0
- package/dist/esm/components/DatePicker/datePickerClasses.js.map +1 -0
- package/dist/esm/components/DatePicker/useVisibleDate.js +193 -0
- package/dist/esm/components/DatePicker/useVisibleDate.js.map +1 -0
- package/dist/esm/components/DatePicker/utils.js +32 -0
- package/dist/esm/components/DatePicker/utils.js.map +1 -0
- package/dist/esm/components/Dialog/Dialog.js +5 -9
- package/dist/esm/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/components/Dialog/Dialog.styles.js +33 -32
- package/dist/esm/components/Dialog/Dialog.styles.js.map +1 -1
- package/dist/esm/components/InlineEditor/InlineEditor.js +122 -0
- package/dist/esm/components/InlineEditor/InlineEditor.js.map +1 -0
- package/dist/esm/components/InlineEditor/InlineEditor.styles.js +74 -0
- package/dist/esm/components/InlineEditor/InlineEditor.styles.js.map +1 -0
- package/dist/esm/components/InlineEditor/inlineEditorClasses.js +8 -0
- package/dist/esm/components/InlineEditor/inlineEditorClasses.js.map +1 -0
- package/dist/esm/components/MultiButton/MultiButton.styles.js +2 -3
- package/dist/esm/components/MultiButton/MultiButton.styles.js.map +1 -1
- package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js +51 -0
- package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js.map +1 -0
- package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js +54 -0
- package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js.map +1 -0
- package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/horizontalScrollListItemClasses.js +8 -0
- package/dist/esm/components/ScrollTo/Horizontal/HorizontalScrollListItem/horizontalScrollListItemClasses.js.map +1 -0
- package/dist/esm/components/ScrollTo/Horizontal/ScrollToHorizontal.js +126 -0
- package/dist/esm/components/ScrollTo/Horizontal/ScrollToHorizontal.js.map +1 -0
- package/dist/esm/components/ScrollTo/Horizontal/ScrollToHorizontal.styles.js +46 -0
- package/dist/esm/components/ScrollTo/Horizontal/ScrollToHorizontal.styles.js.map +1 -0
- package/dist/esm/components/ScrollTo/Horizontal/scrollToHorizontalClasses.js +8 -0
- package/dist/esm/components/ScrollTo/Horizontal/scrollToHorizontalClasses.js.map +1 -0
- package/dist/esm/components/ScrollTo/Vertical/ScrollToVertical.js +90 -0
- package/dist/esm/components/ScrollTo/Vertical/ScrollToVertical.js.map +1 -0
- package/dist/esm/components/ScrollTo/Vertical/ScrollToVertical.styles.js +43 -0
- package/dist/esm/components/ScrollTo/Vertical/ScrollToVertical.styles.js.map +1 -0
- package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js +71 -0
- package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js.map +1 -0
- package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js +54 -0
- package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js.map +1 -0
- package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/verticalScrollListItemClasses.js +8 -0
- package/dist/esm/components/ScrollTo/Vertical/VerticalScrollListItem/verticalScrollListItemClasses.js.map +1 -0
- package/dist/esm/components/ScrollTo/Vertical/scrollToVerticalClasses.js +8 -0
- package/dist/esm/components/ScrollTo/Vertical/scrollToVerticalClasses.js.map +1 -0
- package/dist/esm/components/ScrollTo/useScrollTo.js +103 -0
- package/dist/esm/components/ScrollTo/useScrollTo.js.map +1 -0
- package/dist/esm/components/ScrollTo/utils.js +76 -0
- package/dist/esm/components/ScrollTo/utils.js.map +1 -0
- package/dist/esm/components/ScrollTo/withTooltip.js +20 -0
- package/dist/esm/components/ScrollTo/withTooltip.js.map +1 -0
- package/dist/esm/hocs/withTooltip.js +4 -4
- package/dist/esm/hocs/withTooltip.js.map +1 -1
- package/dist/esm/index.js +40 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/theme.js +9 -0
- package/dist/esm/utils/theme.js.map +1 -1
- package/dist/esm/utils/wrapperTooltip.js +2 -2
- package/dist/esm/utils/wrapperTooltip.js.map +1 -1
- package/dist/types/index.d.ts +388 -1
- package/package.json +5 -5
package/dist/types/index.d.ts
CHANGED
|
@@ -394,6 +394,11 @@ export declare const getTableHeadPropsHook: (props: any, { instance }: {
|
|
|
394
394
|
instance: any;
|
|
395
395
|
}) => any[];
|
|
396
396
|
|
|
397
|
+
/**
|
|
398
|
+
* Returns the computed value of a theme CSS var
|
|
399
|
+
*/
|
|
400
|
+
export declare const getVarValue: (cssVar: string) => string;
|
|
401
|
+
|
|
397
402
|
export declare const globalActionsClasses: HvGlobalActionsClasses;
|
|
398
403
|
|
|
399
404
|
export declare const gridClasses: HvGridClasses;
|
|
@@ -408,6 +413,8 @@ export declare const headerNavigationClasses: HvHeaderNavigationClasses;
|
|
|
408
413
|
|
|
409
414
|
export declare const hexToRgbA: (hex: any, factor?: number) => string;
|
|
410
415
|
|
|
416
|
+
export declare const horizontalScrollListItemClasses: HvHorizontalScrollListItemClasses;
|
|
417
|
+
|
|
411
418
|
export declare type HvAccentColorKeys = "primary" | "primary_80" | "primary_20" | "brand" | "secondary" | "secondary_60" | "secondary_80";
|
|
412
419
|
|
|
413
420
|
export declare type HvAccentColors = Record<HvAccentColorKeys, string>;
|
|
@@ -1505,6 +1512,7 @@ export declare const HvButton: React_2.ForwardRefExoticComponent<HvButtonProps &
|
|
|
1505
1512
|
export declare interface HvButtonClasses {
|
|
1506
1513
|
root?: string;
|
|
1507
1514
|
startIcon?: string;
|
|
1515
|
+
endIcon?: string;
|
|
1508
1516
|
focusVisible?: string;
|
|
1509
1517
|
}
|
|
1510
1518
|
|
|
@@ -1517,6 +1525,8 @@ export declare interface HvButtonProps extends React_2.ButtonHTMLAttributes<HTML
|
|
|
1517
1525
|
className?: string;
|
|
1518
1526
|
/** Element placed before the children. */
|
|
1519
1527
|
startIcon?: ReactElement;
|
|
1528
|
+
/** Element placed after the children. */
|
|
1529
|
+
endIcon?: ReactElement;
|
|
1520
1530
|
/** Button size. */
|
|
1521
1531
|
size?: HvButtonSize;
|
|
1522
1532
|
/** Button border radius. */
|
|
@@ -2140,6 +2150,198 @@ declare interface HvDateColumnCellProp {
|
|
|
2140
2150
|
date?: string;
|
|
2141
2151
|
}
|
|
2142
2152
|
|
|
2153
|
+
/**
|
|
2154
|
+
* A date picker, popup calendar or date range picker is a graphical user
|
|
2155
|
+
* interface widget which allows the user to select a date from a calendar.
|
|
2156
|
+
*/
|
|
2157
|
+
export declare const HvDatePicker: ({ classes, className, id, name, required, disabled, readOnly, label, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, description, "aria-describedby": ariaDescribedBy, onChange, onCancel, onClear, status, statusMessage, "aria-errormessage": ariaErrorMessage, placeholder, labels: labelsProp, value, startValue, endValue, rangeMode, startAdornment, horizontalPlacement, locale: localeProp, showActions, showClear, disablePortal, escapeWithReference, dropdownProps, calendarProps, ...others }: HvDatePickerProps) => JSX_2.Element;
|
|
2158
|
+
|
|
2159
|
+
declare type HvDatePickerClasses = {
|
|
2160
|
+
root?: string;
|
|
2161
|
+
labelContainer?: string;
|
|
2162
|
+
label?: string;
|
|
2163
|
+
description?: string;
|
|
2164
|
+
error?: string;
|
|
2165
|
+
placeholder?: string;
|
|
2166
|
+
selectionDisabled?: string;
|
|
2167
|
+
dropdown?: string;
|
|
2168
|
+
panel?: string;
|
|
2169
|
+
action?: string;
|
|
2170
|
+
icon?: string;
|
|
2171
|
+
dropdownHeader?: string;
|
|
2172
|
+
dropdownHeaderInvalid?: string;
|
|
2173
|
+
dropdownHeaderOpen?: string;
|
|
2174
|
+
actionContainer?: string;
|
|
2175
|
+
leftContainer?: string;
|
|
2176
|
+
rightContainer?: string;
|
|
2177
|
+
};
|
|
2178
|
+
|
|
2179
|
+
export declare interface HvDatePickerProps extends HvBaseProps<HTMLDivElement, {
|
|
2180
|
+
onChange: any;
|
|
2181
|
+
}> {
|
|
2182
|
+
/**
|
|
2183
|
+
* Class names to be applied.
|
|
2184
|
+
*/
|
|
2185
|
+
className?: string;
|
|
2186
|
+
/**
|
|
2187
|
+
* A Jss Object used to override or extend the component styles applied.
|
|
2188
|
+
*/
|
|
2189
|
+
classes?: HvDatePickerClasses;
|
|
2190
|
+
/**
|
|
2191
|
+
* Id to be applied to the form element root node.
|
|
2192
|
+
*/
|
|
2193
|
+
id?: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* The form element name.
|
|
2196
|
+
*/
|
|
2197
|
+
name?: string;
|
|
2198
|
+
/**
|
|
2199
|
+
* The label of the form element.
|
|
2200
|
+
*
|
|
2201
|
+
* The form element must be labeled for accessibility reasons.
|
|
2202
|
+
* If not provided, an aria-label or aria-labelledby must be provided instead.
|
|
2203
|
+
*/
|
|
2204
|
+
label?: React.ReactNode;
|
|
2205
|
+
/**
|
|
2206
|
+
* @ignore
|
|
2207
|
+
*/
|
|
2208
|
+
"aria-label"?: string;
|
|
2209
|
+
/**
|
|
2210
|
+
* @ignore
|
|
2211
|
+
*/
|
|
2212
|
+
"aria-labelledby"?: string;
|
|
2213
|
+
/**
|
|
2214
|
+
* Provide additional descriptive text for the form element.
|
|
2215
|
+
*/
|
|
2216
|
+
description?: React.ReactNode;
|
|
2217
|
+
/**
|
|
2218
|
+
* @ignore
|
|
2219
|
+
*/
|
|
2220
|
+
"aria-describedby"?: string;
|
|
2221
|
+
/**
|
|
2222
|
+
* The placeholder value when nothing is selected.
|
|
2223
|
+
*/
|
|
2224
|
+
placeholder?: string;
|
|
2225
|
+
/**
|
|
2226
|
+
* Indicates that the form element is disabled.
|
|
2227
|
+
*/
|
|
2228
|
+
disabled?: boolean;
|
|
2229
|
+
/**
|
|
2230
|
+
* Indicates that user input is required on the form element.
|
|
2231
|
+
*/
|
|
2232
|
+
required?: boolean;
|
|
2233
|
+
/**
|
|
2234
|
+
* The status of the form element.
|
|
2235
|
+
*
|
|
2236
|
+
* Valid is correct, invalid is incorrect and standBy means no validations have run.
|
|
2237
|
+
*
|
|
2238
|
+
* When uncontrolled and unspecified it will default to "standBy" and change to either "valid"
|
|
2239
|
+
* or "invalid" after any change to the state.
|
|
2240
|
+
*/
|
|
2241
|
+
status?: HvDatePickerStatus;
|
|
2242
|
+
/**
|
|
2243
|
+
* The error message to show when the validation status is "invalid".
|
|
2244
|
+
*
|
|
2245
|
+
* Defaults to "Required" when the status is uncontrolled and no `aria-errormessage` is provided.
|
|
2246
|
+
*/
|
|
2247
|
+
statusMessage?: React.ReactNode;
|
|
2248
|
+
/**
|
|
2249
|
+
* Identifies the element that provides an error message for the date picker.
|
|
2250
|
+
*
|
|
2251
|
+
* Will only be used when the validation status is invalid.
|
|
2252
|
+
*/
|
|
2253
|
+
"aria-errormessage"?: string;
|
|
2254
|
+
/**
|
|
2255
|
+
* The callback fired when the value changes.
|
|
2256
|
+
*/
|
|
2257
|
+
onChange?: (date?: Date, endDate?: Date) => void;
|
|
2258
|
+
/**
|
|
2259
|
+
* The callback fired when user clicks on cancel.
|
|
2260
|
+
*/
|
|
2261
|
+
onCancel?: () => void;
|
|
2262
|
+
/**
|
|
2263
|
+
* The callback fired when user clicks on clear.
|
|
2264
|
+
*/
|
|
2265
|
+
onClear?: () => void;
|
|
2266
|
+
/**
|
|
2267
|
+
* An object containing all the labels for the datepicker.
|
|
2268
|
+
*/
|
|
2269
|
+
labels?: {
|
|
2270
|
+
/**
|
|
2271
|
+
* Apply button label.
|
|
2272
|
+
*/
|
|
2273
|
+
applyLabel?: string;
|
|
2274
|
+
/**
|
|
2275
|
+
* Cancel button label.
|
|
2276
|
+
*/
|
|
2277
|
+
cancelLabel?: string;
|
|
2278
|
+
/**
|
|
2279
|
+
* Clear button label.
|
|
2280
|
+
*/
|
|
2281
|
+
clearLabel?: string;
|
|
2282
|
+
};
|
|
2283
|
+
/**
|
|
2284
|
+
* The initial value of the input when in single calendar mode.
|
|
2285
|
+
*/
|
|
2286
|
+
value?: Date;
|
|
2287
|
+
/**
|
|
2288
|
+
* The initial value for the start date when in range mode.
|
|
2289
|
+
*/
|
|
2290
|
+
startValue?: Date;
|
|
2291
|
+
/**
|
|
2292
|
+
* The initial value for the end date when in range mode.
|
|
2293
|
+
*/
|
|
2294
|
+
endValue?: Date;
|
|
2295
|
+
/**
|
|
2296
|
+
* Flag informing if the the component should be in range mode or in single mode.
|
|
2297
|
+
*/
|
|
2298
|
+
rangeMode?: boolean;
|
|
2299
|
+
/**
|
|
2300
|
+
* The placement where the calendar should be placed according to the input. Options are `left` or `right`.
|
|
2301
|
+
* Note this prop only affects the calendar when in `rangeMode`.
|
|
2302
|
+
*/
|
|
2303
|
+
horizontalPlacement?: "left" | "right";
|
|
2304
|
+
/**
|
|
2305
|
+
* The calendar locale. If undefined, it uses calendar default
|
|
2306
|
+
*/
|
|
2307
|
+
locale?: string;
|
|
2308
|
+
/**
|
|
2309
|
+
* Controls if actions buttons are visible at the calendar.
|
|
2310
|
+
*/
|
|
2311
|
+
showActions?: boolean;
|
|
2312
|
+
/**
|
|
2313
|
+
* Controls if clear button is visible at the calendar,
|
|
2314
|
+
* only works if showing actions or in range mode.
|
|
2315
|
+
*/
|
|
2316
|
+
showClear?: boolean;
|
|
2317
|
+
/**
|
|
2318
|
+
* Disable the portal behavior. The children stay within it's parent DOM hierarchy.
|
|
2319
|
+
*/
|
|
2320
|
+
disablePortal?: boolean;
|
|
2321
|
+
/**
|
|
2322
|
+
* Sets if the calendar container should follow the date picker input out of the screen or stay visible.
|
|
2323
|
+
*/
|
|
2324
|
+
escapeWithReference?: boolean;
|
|
2325
|
+
/**
|
|
2326
|
+
* An element placed before the Calendar
|
|
2327
|
+
*/
|
|
2328
|
+
startAdornment?: React.ReactNode;
|
|
2329
|
+
/**
|
|
2330
|
+
* An object containing props to be passed onto the baseDropdown.
|
|
2331
|
+
*/
|
|
2332
|
+
dropdownProps?: Object;
|
|
2333
|
+
/**
|
|
2334
|
+
* If `true` the DatePicker will be in read only mode, unable to be interacted.
|
|
2335
|
+
*/
|
|
2336
|
+
readOnly?: boolean;
|
|
2337
|
+
/**
|
|
2338
|
+
* Additional props passed to the HvCalendar component.
|
|
2339
|
+
*/
|
|
2340
|
+
calendarProps?: Partial<HvCalendarProps>;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
export declare type HvDatePickerStatus = "standBy" | "valid" | "invalid";
|
|
2344
|
+
|
|
2143
2345
|
export declare const HvDialog: ({ classes, className, id, children, open, onClose, firstFocusable, buttonTitle, fullscreen, disableBackdropClick, ...others }: HvDialogProps) => JSX_2.Element;
|
|
2144
2346
|
|
|
2145
2347
|
export declare interface HvDialogActionClasses {
|
|
@@ -3477,6 +3679,13 @@ export declare interface HvHooks<D extends object = Record<string, unknown>, H e
|
|
|
3477
3679
|
useFinalInstance: Array<(instance: HvTableInstance<D, H>) => void>;
|
|
3478
3680
|
}
|
|
3479
3681
|
|
|
3682
|
+
export declare interface HvHorizontalScrollListItemClasses {
|
|
3683
|
+
root?: string;
|
|
3684
|
+
selected?: string;
|
|
3685
|
+
button?: string;
|
|
3686
|
+
text?: string;
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3480
3689
|
/**
|
|
3481
3690
|
* Provides the user with additional descriptive text for the form element.
|
|
3482
3691
|
*/
|
|
@@ -3497,6 +3706,46 @@ export declare interface HvInfoMessageProps extends HvBaseProps {
|
|
|
3497
3706
|
classes?: HvInfoMessageClasses;
|
|
3498
3707
|
}
|
|
3499
3708
|
|
|
3709
|
+
/**
|
|
3710
|
+
* An Inline Editor allows the user to edit a record without making a major switch
|
|
3711
|
+
* between viewing and editing, making it an efficient method of updating a record.
|
|
3712
|
+
*/
|
|
3713
|
+
export declare const HvInlineEditor: ({ className, classes, value: valueProp, defaultValue, showIcon, component: InputComponent, variant, placeholder, onBlur, onChange, onKeyDown, buttonProps, typographyProps, ...others }: HvInlineEditorProps) => JSX_2.Element;
|
|
3714
|
+
|
|
3715
|
+
export declare interface HvInlineEditorClasses {
|
|
3716
|
+
root?: string;
|
|
3717
|
+
button?: string;
|
|
3718
|
+
largeText?: string;
|
|
3719
|
+
text?: string;
|
|
3720
|
+
textEmpty?: string;
|
|
3721
|
+
icon?: string;
|
|
3722
|
+
iconVisible?: string;
|
|
3723
|
+
inputRoot?: string;
|
|
3724
|
+
input?: string;
|
|
3725
|
+
inputBorderContainer?: string;
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
export declare interface HvInlineEditorProps extends Omit<HvBaseProps<HTMLDivElement>, "onBlur" | "onChange"> {
|
|
3729
|
+
/** The value of the form element. */
|
|
3730
|
+
value?: string;
|
|
3731
|
+
/** Whether the Edit icon should always be visible */
|
|
3732
|
+
showIcon?: boolean;
|
|
3733
|
+
/** Component to use as the input. The component "inherit" from `HvBaseInput` (such as `HvInput` or `HvTextArea`) */
|
|
3734
|
+
component?: React_2.ElementType;
|
|
3735
|
+
/** Variant of the HvTypography to display */
|
|
3736
|
+
variant?: HvTypographyVariants;
|
|
3737
|
+
/** Called when the input is blurred. */
|
|
3738
|
+
onBlur?: (event: React_2.FocusEvent<HTMLTextAreaElement | HTMLInputElement>, value: string) => void;
|
|
3739
|
+
/** Called when the input value changes. */
|
|
3740
|
+
onChange?: (event: React_2.SyntheticEvent, value: string) => void;
|
|
3741
|
+
/** Props passed to the HvButton component */
|
|
3742
|
+
buttonProps?: HvButtonProps;
|
|
3743
|
+
/** Props passed to the HvTypography text component */
|
|
3744
|
+
typographyProps?: HvTypographyProps;
|
|
3745
|
+
/** A Jss Object used to override or extend the styles applied to the empty state component. */
|
|
3746
|
+
classes?: HvInlineEditorClasses;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3500
3749
|
/**
|
|
3501
3750
|
* A text input box is a graphical control element intended to enable the user to input text information to be used by the software.
|
|
3502
3751
|
*/
|
|
@@ -4662,6 +4911,127 @@ declare type HvRowPropGetter<D extends object = Record<string, unknown>, H exten
|
|
|
4662
4911
|
row: HvRowInstance<D, H>;
|
|
4663
4912
|
}>;
|
|
4664
4913
|
|
|
4914
|
+
/**
|
|
4915
|
+
* The horizontal scroll to element can be used to quickly navigate in a page.
|
|
4916
|
+
*/
|
|
4917
|
+
export declare const HvScrollToHorizontal: ({ id, defaultSelectedIndex, scrollElementId, href, onChange, onClick, onEnter, className, classes, options, offset, position, tooltipPosition, ...others }: HvScrollToHorizontalProps) => JSX_2.Element;
|
|
4918
|
+
|
|
4919
|
+
export declare interface HvScrollToHorizontalClasses {
|
|
4920
|
+
root?: string;
|
|
4921
|
+
positionSticky?: string;
|
|
4922
|
+
positionFixed?: string;
|
|
4923
|
+
notSelectedRoot?: string;
|
|
4924
|
+
notSelected?: string;
|
|
4925
|
+
selected?: string;
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4928
|
+
export declare interface HvScrollToHorizontalOption {
|
|
4929
|
+
key?: string;
|
|
4930
|
+
label: string;
|
|
4931
|
+
value: string;
|
|
4932
|
+
offset?: number;
|
|
4933
|
+
}
|
|
4934
|
+
|
|
4935
|
+
export declare type HvScrollToHorizontalPositions = "sticky" | "fixed" | "relative";
|
|
4936
|
+
|
|
4937
|
+
export declare interface HvScrollToHorizontalProps extends HvBaseProps<HTMLOListElement, {
|
|
4938
|
+
onChange: any;
|
|
4939
|
+
onClick: any;
|
|
4940
|
+
}> {
|
|
4941
|
+
/** An Array of Objects with Label and Value. Label is the displayed Element and Value is the local navigation location applied */
|
|
4942
|
+
options: HvScrollToHorizontalOption[];
|
|
4943
|
+
/** True if the href location link should be applied. It will create an a element around every list item */
|
|
4944
|
+
href?: boolean;
|
|
4945
|
+
/** Default selected index passed from the parent. */
|
|
4946
|
+
defaultSelectedIndex?: number;
|
|
4947
|
+
/**
|
|
4948
|
+
* The Id of the scrollable container containing displayed elements.
|
|
4949
|
+
*
|
|
4950
|
+
* Defaults to `window` if unspecified.
|
|
4951
|
+
*/
|
|
4952
|
+
scrollElementId?: string;
|
|
4953
|
+
/**
|
|
4954
|
+
* Defines the offset from the top of each element for getting an optimal viewing region in the container.
|
|
4955
|
+
* This allows to exclude regions of the container that are obscured by other content (such as fixed-positioned toolbars or titles)
|
|
4956
|
+
* or to put more breathing room between the targeted element and the edges of the container.
|
|
4957
|
+
*
|
|
4958
|
+
* Each element can also have a specific offset via the options property.
|
|
4959
|
+
*/
|
|
4960
|
+
offset?: number;
|
|
4961
|
+
/** Position of the Horizontal scroll to. */
|
|
4962
|
+
position?: HvScrollToHorizontalPositions;
|
|
4963
|
+
/** Position of tooltip identifying the current item. */
|
|
4964
|
+
tooltipPosition?: HvScrollToTooltipPositions;
|
|
4965
|
+
/** A function called each time the selected index changes. */
|
|
4966
|
+
onChange?: (event: Event | React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, index: number) => void;
|
|
4967
|
+
/** A function called each time an user clicks on a tab element. */
|
|
4968
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>, index: number) => void;
|
|
4969
|
+
/** A function called each time an user press enter on a tab element. */
|
|
4970
|
+
onEnter?: (event: React.KeyboardEvent<HTMLDivElement>, index: number) => void;
|
|
4971
|
+
/** A Jss Object used to override or extend the styles applied. */
|
|
4972
|
+
classes?: HvScrollToHorizontalClasses;
|
|
4973
|
+
}
|
|
4974
|
+
|
|
4975
|
+
export declare type HvScrollToTooltipPositions = "left" | "right" | "top" | "bottom";
|
|
4976
|
+
|
|
4977
|
+
/**
|
|
4978
|
+
* The vertical scroll to element can be used to quickly navigate in a page.
|
|
4979
|
+
*/
|
|
4980
|
+
export declare const HvScrollToVertical: ({ id, defaultSelectedIndex, scrollElementId, href, onChange, onClick, onEnter, className, classes, options, offset, position, tooltipPosition, ...others }: HvScrollToVerticalProps) => JSX_2.Element;
|
|
4981
|
+
|
|
4982
|
+
export declare interface HvScrollToVerticalClasses {
|
|
4983
|
+
root?: string;
|
|
4984
|
+
positionAbsolute?: string;
|
|
4985
|
+
positionFixed?: string;
|
|
4986
|
+
}
|
|
4987
|
+
|
|
4988
|
+
export declare interface HvScrollToVerticalOption {
|
|
4989
|
+
key?: string;
|
|
4990
|
+
label: string;
|
|
4991
|
+
value: string;
|
|
4992
|
+
offset?: number;
|
|
4993
|
+
}
|
|
4994
|
+
|
|
4995
|
+
export declare type HvScrollToVerticalPositions = "absolute" | "fixed" | "relative";
|
|
4996
|
+
|
|
4997
|
+
export declare interface HvScrollToVerticalProps extends HvBaseProps<HTMLOListElement, {
|
|
4998
|
+
onChange: any;
|
|
4999
|
+
onClick: any;
|
|
5000
|
+
}> {
|
|
5001
|
+
/** An Array of Objects with Label and Value. Label is the displayed Element and Value is the local navigation location applied */
|
|
5002
|
+
options: HvScrollToVerticalOption[];
|
|
5003
|
+
/** True if the href location link should be applied. It will create an a element around every list item */
|
|
5004
|
+
href?: boolean;
|
|
5005
|
+
/** Default selected index passed from the parent. */
|
|
5006
|
+
defaultSelectedIndex?: number;
|
|
5007
|
+
/**
|
|
5008
|
+
* The Id of the scrollable container containing displayed elements.
|
|
5009
|
+
*
|
|
5010
|
+
* Defaults to `window` if unspecified.
|
|
5011
|
+
*/
|
|
5012
|
+
scrollElementId?: string;
|
|
5013
|
+
/**
|
|
5014
|
+
* Defines the offset from the top of each element for getting an optimal viewing region in the container.
|
|
5015
|
+
* This allows to exclude regions of the container that are obscured by other content (such as fixed-positioned toolbars or titles)
|
|
5016
|
+
* or to put more breathing room between the targeted element and the edges of the container.
|
|
5017
|
+
*
|
|
5018
|
+
* Each element can also have a specific offset via the options property.
|
|
5019
|
+
*/
|
|
5020
|
+
offset?: number;
|
|
5021
|
+
/** Position of the Vertical scroll to. */
|
|
5022
|
+
position?: HvScrollToVerticalPositions;
|
|
5023
|
+
/** Position of tooltip identifying the current item. */
|
|
5024
|
+
tooltipPosition?: HvScrollToTooltipPositions;
|
|
5025
|
+
/** A function called each time the selected index changes. */
|
|
5026
|
+
onChange?: (event: Event | React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, index: number) => void;
|
|
5027
|
+
/** A function called each time an user clicks on a tab element. */
|
|
5028
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>, index: number) => void;
|
|
5029
|
+
/** A function called each time an user press enter on a tab element. */
|
|
5030
|
+
onEnter?: (event: React.KeyboardEvent<HTMLDivElement>, index: number) => void;
|
|
5031
|
+
/** A Jss Object used to override or extend the styles applied. */
|
|
5032
|
+
classes?: HvScrollToVerticalClasses;
|
|
5033
|
+
}
|
|
5034
|
+
|
|
4665
5035
|
/**
|
|
4666
5036
|
* Allows the user to select one or more items from a list of choices.
|
|
4667
5037
|
*
|
|
@@ -6813,6 +7183,13 @@ export declare interface HvVerticalNavigationTreeViewProps {
|
|
|
6813
7183
|
children?: React.ReactNode;
|
|
6814
7184
|
}
|
|
6815
7185
|
|
|
7186
|
+
export declare interface HvVerticalScrollListItemClasses {
|
|
7187
|
+
root?: string;
|
|
7188
|
+
notSelected?: string;
|
|
7189
|
+
button?: string;
|
|
7190
|
+
text?: string;
|
|
7191
|
+
}
|
|
7192
|
+
|
|
6816
7193
|
/**
|
|
6817
7194
|
* Provides the user with a descriptive text, signaling an error, for when the form element is in an invalid state.
|
|
6818
7195
|
*/
|
|
@@ -6855,6 +7232,8 @@ export declare const increaseSize: (size: string) => "S" | "M" | "L" | "XL";
|
|
|
6855
7232
|
|
|
6856
7233
|
export declare const infoMessageClasses: HvInfoMessageClasses;
|
|
6857
7234
|
|
|
7235
|
+
export declare const inlineEditorClasses: HvInlineEditorClasses;
|
|
7236
|
+
|
|
6858
7237
|
export declare const inputClasses: HvInputClasses;
|
|
6859
7238
|
|
|
6860
7239
|
export declare const isBrowser: (browsers: any) => boolean | null;
|
|
@@ -7109,6 +7488,10 @@ export declare function reducer(state: any, action: any, previousState: any, ins
|
|
|
7109
7488
|
|
|
7110
7489
|
export declare const rightControlClasses: HvRightControlClasses;
|
|
7111
7490
|
|
|
7491
|
+
export declare const scrollToHorizontalClasses: HvScrollToHorizontalClasses;
|
|
7492
|
+
|
|
7493
|
+
export declare const scrollToVerticalClasses: HvScrollToVerticalClasses;
|
|
7494
|
+
|
|
7112
7495
|
export declare const selectionListClasses: HvSelectionListClasses;
|
|
7113
7496
|
|
|
7114
7497
|
/**
|
|
@@ -7473,6 +7856,8 @@ export declare type UseRowSelectionProps = (<D extends object = Record<string, u
|
|
|
7473
7856
|
|
|
7474
7857
|
export declare function useSavedState<T>(defaultState: T): [T | undefined, (v?: T, s?: boolean) => void, () => void, T | undefined, T];
|
|
7475
7858
|
|
|
7859
|
+
export declare const useScrollTo: (selectedIndexProp?: number, scrollElementId?: string | undefined, href?: boolean, offset?: number, options?: HvScrollToVerticalOption[], onChange?: ((event: Event | React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, index: number) => void) | undefined, direction?: "column" | "row") => [number, (event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, id: string, index: number, wrappedOnChange?: ((index: number) => void) | undefined) => void];
|
|
7860
|
+
|
|
7476
7861
|
export declare const useSelectionPath: (data: any, selectedId: any) => string[];
|
|
7477
7862
|
|
|
7478
7863
|
export declare type UseTableStylesProps = (<D extends object = Record<string, unknown>>(hooks: Hooks<D>) => void) & {
|
|
@@ -7514,6 +7899,8 @@ export declare const verticalNavigationSliderClasses: HvVerticalNavigationSlider
|
|
|
7514
7899
|
|
|
7515
7900
|
export declare const verticalNavigationTreeClasses: HvVerticalNavigationTreeClasses;
|
|
7516
7901
|
|
|
7902
|
+
export declare const verticalScrollListItemClasses: HvVerticalScrollListItemClasses;
|
|
7903
|
+
|
|
7517
7904
|
export declare type VisibilitySelectorActions = "previous_month" | "next_month" | "previous_year" | "next_year" | "month" | "month_year";
|
|
7518
7905
|
|
|
7519
7906
|
export declare const warningTextClasses: HvWarningTextClasses;
|
|
@@ -7527,7 +7914,7 @@ declare interface WithIdProps extends HvExtraProps {
|
|
|
7527
7914
|
id?: string;
|
|
7528
7915
|
}
|
|
7529
7916
|
|
|
7530
|
-
export declare const withTooltip: (Component:
|
|
7917
|
+
export declare const withTooltip: (Component: React.FunctionComponent, label: string | undefined, placement: HvTooltipPlacementType, hideTooltip?: ((event: React.MouseEvent<HTMLDivElement>) => boolean) | undefined, tooltipProps?: HvTooltipProps, tooltipContainerProps?: HvBaseProps) => (props: any) => JSX_2.Element;
|
|
7531
7918
|
|
|
7532
7919
|
export declare const wrapperTooltip: (hasTooltips: any, Component: any, label: any) => ((props: any) => JSX_2.Element) | (() => any);
|
|
7533
7920
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "Core React components for the NEXT Design System.",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@emotion/cache": "^11.10.5",
|
|
33
|
-
"@hitachivantara/uikit-react-icons": "^5.1.
|
|
34
|
-
"@hitachivantara/uikit-react-shared": "^5.0.
|
|
35
|
-
"@hitachivantara/uikit-styles": "^5.
|
|
33
|
+
"@hitachivantara/uikit-react-icons": "^5.1.3",
|
|
34
|
+
"@hitachivantara/uikit-react-shared": "^5.0.7",
|
|
35
|
+
"@hitachivantara/uikit-styles": "^5.4.0",
|
|
36
36
|
"@popperjs/core": "^2.11.6",
|
|
37
37
|
"@types/react-table": "^7.7.14",
|
|
38
38
|
"attr-accept": "^2.2.2",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"access": "public",
|
|
57
57
|
"directory": "package"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "6a771d68070e4bfb03ca573900704d35934c0573",
|
|
60
60
|
"main": "dist/cjs/index.cjs",
|
|
61
61
|
"exports": {
|
|
62
62
|
".": {
|