@rio-cloud/rio-uikit 0.16.4-beta.13 → 0.16.4-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CustomState.d.ts +2 -5
- package/CustomState.js +2 -2
- package/EmptyState.d.ts +2 -5
- package/EmptyState.js +2 -2
- package/ErrorState.d.ts +2 -5
- package/ErrorState.js +2 -2
- package/ForbiddenState.d.ts +2 -5
- package/ForbiddenState.js +2 -2
- package/MaintenanceState.d.ts +2 -5
- package/MaintenanceState.js +2 -2
- package/NotBookedState.d.ts +2 -5
- package/NotFoundState.d.ts +2 -5
- package/NotFoundState.js +2 -2
- package/Notification.d.ts +2 -9
- package/Notification.js +2 -2
- package/NotificationsContainer.d.ts +2 -5
- package/NotificationsContainer.js +2 -2
- package/Tag.d.ts +2 -5
- package/Tag.js +2 -2
- package/TagList.d.ts +1 -5
- package/TagList.js +1 -2
- package/TagManager.d.ts +2 -5
- package/TagManager.js +2 -2
- package/Teaser.d.ts +2 -5
- package/Teaser.js +2 -2
- package/TeaserContainer.d.ts +2 -5
- package/TeaserContainer.js +2 -2
- package/TimePicker.d.ts +2 -5
- package/TimePicker.js +2 -2
- package/components/expander/ExpanderPanel.d.ts +1 -0
- package/components/expander/ExpanderPanel.js +4 -3
- package/components/notification/Notification.d.ts +32 -1
- package/components/notification/Notification.js +3 -2
- package/components/notification/NotificationsContainer.d.ts +7 -13
- package/components/notification/NotificationsContainer.js +2 -8
- package/components/saveableInput/SaveableInput.d.ts +34 -1
- package/components/saveableInput/SaveableInput.js +28 -6
- package/components/states/BaseStateProps.d.ts +66 -0
- package/components/states/BaseStateProps.js +2 -0
- package/components/states/CustomState.d.ts +4 -14
- package/components/states/CustomState.js +13 -40
- package/components/states/EmptyState.d.ts +4 -8
- package/components/states/EmptyState.js +6 -6
- package/components/states/ErrorState.d.ts +4 -8
- package/components/states/ErrorState.js +6 -6
- package/components/states/ForbiddenState.d.ts +4 -8
- package/components/states/ForbiddenState.js +6 -6
- package/components/states/MaintenanceState.d.ts +4 -8
- package/components/states/MaintenanceState.js +6 -6
- package/components/states/NotBookedState.d.ts +9 -19
- package/components/states/NotBookedState.js +8 -23
- package/components/states/NotFoundState.d.ts +4 -8
- package/components/states/NotFoundState.js +6 -6
- package/components/states/StateButton.d.ts +27 -0
- package/components/states/StateButton.js +13 -0
- package/components/states/StateIcon.d.ts +7 -0
- package/components/states/StateIcon.js +4 -0
- package/components/tag/Tag.d.ts +69 -36
- package/components/tag/Tag.js +7 -30
- package/components/tag/TagList.d.ts +24 -16
- package/components/tag/TagList.js +6 -15
- package/components/tagManager/CustomSuggestionItem.d.ts +6 -12
- package/components/tagManager/CustomSuggestionItem.js +4 -9
- package/components/tagManager/TagManager.d.ts +61 -26
- package/components/tagManager/TagManager.js +22 -39
- package/components/tagManager/TagManagerItemList.d.ts +6 -13
- package/components/tagManager/TagManagerItemList.js +3 -13
- package/components/tagManager/TagManagerTag.d.ts +5 -0
- package/components/tagManager/TagManagerTag.js +1 -0
- package/components/teaser/Teaser.d.ts +93 -50
- package/components/teaser/Teaser.js +69 -118
- package/components/teaser/TeaserContainer.d.ts +25 -12
- package/components/teaser/TeaserContainer.js +10 -23
- package/components/timepicker/TimePicker.d.ts +34 -26
- package/components/timepicker/TimePicker.js +13 -30
- package/components/tooltip/Tooltip.d.ts +4 -0
- package/components/tooltip/Tooltip.js +2 -2
- package/hooks/useDocumentTitle.d.ts +2 -0
- package/hooks/useDocumentTitle.js +9 -0
- package/hooks/useIsFirstRender.d.ts +2 -0
- package/hooks/useIsFirstRender.js +10 -0
- package/index.d.ts +28 -25
- package/index.js +28 -25
- package/lib/es/CustomState.d.ts +2 -5
- package/lib/es/CustomState.js +3 -2
- package/lib/es/EmptyState.d.ts +2 -5
- package/lib/es/EmptyState.js +3 -2
- package/lib/es/ErrorState.d.ts +2 -5
- package/lib/es/ErrorState.js +3 -2
- package/lib/es/ForbiddenState.d.ts +2 -5
- package/lib/es/ForbiddenState.js +3 -2
- package/lib/es/MaintenanceState.d.ts +2 -5
- package/lib/es/MaintenanceState.js +3 -2
- package/lib/es/NotBookedState.d.ts +2 -5
- package/lib/es/NotFoundState.d.ts +2 -5
- package/lib/es/NotFoundState.js +3 -2
- package/lib/es/Notification.d.ts +2 -9
- package/lib/es/Notification.js +3 -2
- package/lib/es/NotificationsContainer.d.ts +2 -5
- package/lib/es/NotificationsContainer.js +3 -2
- package/lib/es/Tag.d.ts +2 -5
- package/lib/es/Tag.js +3 -2
- package/lib/es/TagList.d.ts +1 -5
- package/lib/es/TagList.js +5 -3
- package/lib/es/TagManager.d.ts +2 -5
- package/lib/es/TagManager.js +3 -2
- package/lib/es/Teaser.d.ts +2 -5
- package/lib/es/Teaser.js +3 -2
- package/lib/es/TeaserContainer.d.ts +2 -5
- package/lib/es/TeaserContainer.js +3 -2
- package/lib/es/TimePicker.d.ts +2 -5
- package/lib/es/TimePicker.js +3 -2
- package/lib/es/components/expander/ExpanderPanel.d.ts +1 -0
- package/lib/es/components/expander/ExpanderPanel.js +4 -3
- package/lib/es/components/notification/Notification.d.ts +32 -1
- package/lib/es/components/notification/Notification.js +3 -2
- package/lib/es/components/notification/NotificationsContainer.d.ts +7 -13
- package/lib/es/components/notification/NotificationsContainer.js +2 -8
- package/lib/es/components/saveableInput/SaveableInput.d.ts +34 -1
- package/lib/es/components/saveableInput/SaveableInput.js +28 -6
- package/lib/es/components/states/BaseStateProps.d.ts +66 -0
- package/lib/es/components/states/BaseStateProps.js +4 -0
- package/lib/es/components/states/CustomState.d.ts +4 -14
- package/lib/es/components/states/CustomState.js +14 -41
- package/lib/es/components/states/EmptyState.d.ts +4 -8
- package/lib/es/components/states/EmptyState.js +5 -6
- package/lib/es/components/states/ErrorState.d.ts +4 -8
- package/lib/es/components/states/ErrorState.js +5 -6
- package/lib/es/components/states/ForbiddenState.d.ts +4 -8
- package/lib/es/components/states/ForbiddenState.js +5 -6
- package/lib/es/components/states/MaintenanceState.d.ts +4 -8
- package/lib/es/components/states/MaintenanceState.js +5 -6
- package/lib/es/components/states/NotBookedState.d.ts +9 -19
- package/lib/es/components/states/NotBookedState.js +7 -22
- package/lib/es/components/states/NotFoundState.d.ts +4 -8
- package/lib/es/components/states/NotFoundState.js +5 -6
- package/lib/es/components/states/StateButton.d.ts +27 -0
- package/lib/es/components/states/StateButton.js +16 -0
- package/lib/es/components/states/StateIcon.d.ts +7 -0
- package/lib/es/components/states/StateIcon.js +6 -0
- package/lib/es/components/tag/Tag.d.ts +69 -36
- package/lib/es/components/tag/Tag.js +7 -30
- package/lib/es/components/tag/TagList.d.ts +24 -16
- package/lib/es/components/tag/TagList.js +6 -15
- package/lib/es/components/tagManager/CustomSuggestionItem.d.ts +6 -12
- package/lib/es/components/tagManager/CustomSuggestionItem.js +4 -9
- package/lib/es/components/tagManager/TagManager.d.ts +61 -26
- package/lib/es/components/tagManager/TagManager.js +22 -39
- package/lib/es/components/tagManager/TagManagerItemList.d.ts +6 -13
- package/lib/es/components/tagManager/TagManagerItemList.js +3 -13
- package/lib/es/components/tagManager/TagManagerTag.d.ts +5 -0
- package/lib/es/components/tagManager/TagManagerTag.js +2 -0
- package/lib/es/components/teaser/Teaser.d.ts +93 -50
- package/lib/es/components/teaser/Teaser.js +69 -120
- package/lib/es/components/teaser/TeaserContainer.d.ts +25 -12
- package/lib/es/components/teaser/TeaserContainer.js +10 -23
- package/lib/es/components/timepicker/TimePicker.d.ts +34 -26
- package/lib/es/components/timepicker/TimePicker.js +13 -30
- package/lib/es/components/tooltip/Tooltip.d.ts +4 -0
- package/lib/es/components/tooltip/Tooltip.js +2 -2
- package/lib/es/hooks/useDocumentTitle.d.ts +2 -0
- package/lib/es/hooks/useDocumentTitle.js +11 -0
- package/lib/es/hooks/useIsFirstRender.d.ts +2 -0
- package/lib/es/hooks/useIsFirstRender.js +12 -0
- package/lib/es/index.d.ts +28 -25
- package/lib/es/index.js +46 -30
- package/lib/es/types.d.ts +1 -112
- package/lib/es/useDocumentTitle.d.ts +2 -0
- package/lib/es/useDocumentTitle.js +7 -0
- package/lib/es/useIsFirstRender.d.ts +2 -0
- package/lib/es/useIsFirstRender.js +7 -0
- package/lib/es/version.json +1 -1
- package/package.json +29 -23
- package/types.d.ts +1 -112
- package/useDocumentTitle.d.ts +2 -0
- package/useDocumentTitle.js +2 -0
- package/useIsFirstRender.d.ts +2 -0
- package/useIsFirstRender.js +2 -0
- package/version.json +1 -1
|
@@ -1,27 +1,35 @@
|
|
|
1
|
+
import { type Props as InputMaksProps } from 'react-input-mask';
|
|
2
|
+
export type TimePickerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Value of the time as string. Note, when value is given the component is treated as controlled.
|
|
5
|
+
*/
|
|
6
|
+
value?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Callback function when the value changes and is a valid time format.
|
|
9
|
+
*
|
|
10
|
+
* If not it handles the state internally until the time is valid and filled.
|
|
11
|
+
*/
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Defines whether to always show the input mask placeholder.
|
|
15
|
+
*
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
alwaysShowMask?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Defines whether to show the input icon.
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
showIcon?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Additional properties to be set on the input element.
|
|
27
|
+
*/
|
|
28
|
+
inputProps?: Omit<InputMaksProps, 'mask' | 'maskPlaceholder' | 'value' | 'onChange' | 'alwaysShowMask'>;
|
|
29
|
+
/**
|
|
30
|
+
* Additional classes to be set on the wrapper element.
|
|
31
|
+
*/
|
|
32
|
+
className?: string;
|
|
33
|
+
};
|
|
34
|
+
declare const TimePicker: (props: TimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
35
|
export default TimePicker;
|
|
2
|
-
declare function TimePicker(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare namespace TimePicker {
|
|
4
|
-
namespace defaultProps {
|
|
5
|
-
function onChange(): void;
|
|
6
|
-
const alwaysShowMask: boolean;
|
|
7
|
-
const showIcon: boolean;
|
|
8
|
-
const className: string;
|
|
9
|
-
const inputProps: {};
|
|
10
|
-
}
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
const onChange_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
export { onChange_1 as onChange };
|
|
14
|
-
export const value: PropTypes.Requireable<string>;
|
|
15
|
-
const alwaysShowMask_1: PropTypes.Requireable<boolean>;
|
|
16
|
-
export { alwaysShowMask_1 as alwaysShowMask };
|
|
17
|
-
const showIcon_1: PropTypes.Requireable<boolean>;
|
|
18
|
-
export { showIcon_1 as showIcon };
|
|
19
|
-
const className_1: PropTypes.Requireable<string>;
|
|
20
|
-
export { className_1 as className };
|
|
21
|
-
const inputProps_1: PropTypes.Requireable<PropTypes.InferProps<{
|
|
22
|
-
className: PropTypes.Requireable<string>;
|
|
23
|
-
}>>;
|
|
24
|
-
export { inputProps_1 as inputProps };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
import PropTypes from "prop-types";
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 =
|
|
6
|
-
const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
|
|
5
|
+
const react_1 = require("react");
|
|
7
6
|
const react_input_mask_1 = tslib_1.__importDefault(require("react-input-mask"));
|
|
8
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
9
8
|
const isNil_1 = tslib_1.__importDefault(require("lodash/fp/isNil"));
|
|
10
9
|
const isEmpty_1 = tslib_1.__importDefault(require("lodash/fp/isEmpty"));
|
|
11
10
|
const moment_1 = tslib_1.__importDefault(require("moment"));
|
|
11
|
+
const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
12
12
|
const MINUTES_OFFSET = 15;
|
|
13
13
|
const mask = [/[0-2]/, /[0-9]/, ':', /[0-5]/, /[0-9]/];
|
|
14
14
|
const fullRegexp = /^(?:\d|[01]\d|2[0-3]):[0-5]\d$/;
|
|
15
|
-
const getPadded = value => (value >= 10 ? value : `0${value}`);
|
|
15
|
+
const getPadded = (value) => (value >= 10 ? `${value}` : `0${value}`);
|
|
16
16
|
const formatTimeString = (hours, minutes) => `${getPadded(hours)}:${getPadded(minutes)}`;
|
|
17
|
-
const roundedUp = (time, offset) => Math.floor(time.minutes() / offset) * offset;
|
|
17
|
+
const roundedUp = (time, offset = MINUTES_OFFSET) => Math.floor(time.minutes() / offset) * offset;
|
|
18
18
|
const getInitialTime = () => {
|
|
19
19
|
const date = new Date();
|
|
20
20
|
const hours = date.getHours();
|
|
21
21
|
const minutes = date.getMinutes();
|
|
22
22
|
return formatTimeString(hours, minutes);
|
|
23
23
|
};
|
|
24
|
-
const isTimeValid = value => fullRegexp.test(value);
|
|
25
|
-
const isControlledAndValid = value => {
|
|
24
|
+
const isTimeValid = (value) => fullRegexp.test(value);
|
|
25
|
+
const isControlledAndValid = (value) => {
|
|
26
26
|
const hasExternalValue = !(0, isNil_1.default)(value);
|
|
27
27
|
const isValid = (0, isEmpty_1.default)(value) || isTimeValid(value);
|
|
28
28
|
if (hasExternalValue && !isValid) {
|
|
@@ -30,8 +30,8 @@ const isControlledAndValid = value => {
|
|
|
30
30
|
}
|
|
31
31
|
return hasExternalValue && isValid;
|
|
32
32
|
};
|
|
33
|
-
const TimePicker = props => {
|
|
34
|
-
const {
|
|
33
|
+
const TimePicker = (props) => {
|
|
34
|
+
const { value, onChange = noop_1.default, alwaysShowMask = true, showIcon = false, className = '', inputProps = {} } = props, remainingProps = tslib_1.__rest(props, ["value", "onChange", "alwaysShowMask", "showIcon", "className", "inputProps"]);
|
|
35
35
|
const initialTime = isControlledAndValid(value) ? value : getInitialTime();
|
|
36
36
|
const [timeValue, setTimeValue] = (0, react_1.useState)(initialTime);
|
|
37
37
|
// Update internal time value from outside when used as a controlled component
|
|
@@ -41,7 +41,7 @@ const TimePicker = props => {
|
|
|
41
41
|
onChange(value);
|
|
42
42
|
}
|
|
43
43
|
}, [value]);
|
|
44
|
-
const handleChangeTime = event => {
|
|
44
|
+
const handleChangeTime = (event) => {
|
|
45
45
|
const currentValue = event.target.value;
|
|
46
46
|
setTimeValue(currentValue);
|
|
47
47
|
if (fullRegexp.test(currentValue)) {
|
|
@@ -51,7 +51,7 @@ const TimePicker = props => {
|
|
|
51
51
|
const isValid = isTimeValid(timeValue);
|
|
52
52
|
const handleIncrease = () => {
|
|
53
53
|
const time = (0, moment_1.default)(`2020-01-01 ${timeValue}`);
|
|
54
|
-
const rounded = roundedUp(time
|
|
54
|
+
const rounded = roundedUp(time);
|
|
55
55
|
time.minute(rounded).second(0);
|
|
56
56
|
time.add(MINUTES_OFFSET, 'minutes');
|
|
57
57
|
const updatedTimeValue = formatTimeString(time.hours(), time.minutes());
|
|
@@ -60,31 +60,14 @@ const TimePicker = props => {
|
|
|
60
60
|
};
|
|
61
61
|
const handleDecrease = () => {
|
|
62
62
|
const time = (0, moment_1.default)(`2020-01-01 ${timeValue}`);
|
|
63
|
-
const rounded = roundedUp(time
|
|
63
|
+
const rounded = roundedUp(time);
|
|
64
64
|
time.minute(rounded).second(0);
|
|
65
65
|
time.subtract(MINUTES_OFFSET, 'minutes');
|
|
66
66
|
const updatedTimeValue = formatTimeString(time.hours(), time.minutes());
|
|
67
67
|
setTimeValue(updatedTimeValue);
|
|
68
68
|
onChange(updatedTimeValue);
|
|
69
69
|
};
|
|
70
|
-
const { className: inputClassName } = inputProps;
|
|
71
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { className: (0, classnames_1.default)('TimePicker', 'input-group', className) }, { children: [showIcon && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'input-group-addon' }, { children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-time-alt' }) }))), (0, jsx_runtime_1.jsx)(react_input_mask_1.default, Object.assign({},
|
|
72
|
-
};
|
|
73
|
-
TimePicker.defaultProps = {
|
|
74
|
-
onChange: () => { },
|
|
75
|
-
alwaysShowMask: true,
|
|
76
|
-
showIcon: false,
|
|
77
|
-
className: '',
|
|
78
|
-
inputProps: {},
|
|
79
|
-
};
|
|
80
|
-
TimePicker.propTypes = {
|
|
81
|
-
onChange: prop_types_1.default.func,
|
|
82
|
-
value: prop_types_1.default.string,
|
|
83
|
-
alwaysShowMask: prop_types_1.default.bool,
|
|
84
|
-
showIcon: prop_types_1.default.bool,
|
|
85
|
-
className: prop_types_1.default.string,
|
|
86
|
-
inputProps: prop_types_1.default.shape({
|
|
87
|
-
className: prop_types_1.default.string,
|
|
88
|
-
}),
|
|
70
|
+
const { className: inputClassName } = inputProps, otherInputProps = tslib_1.__rest(inputProps, ["className"]);
|
|
71
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { className: (0, classnames_1.default)('TimePicker', 'input-group', className) }, { children: [showIcon && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'input-group-addon' }, { children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-time-alt' }) }))), (0, jsx_runtime_1.jsx)(react_input_mask_1.default, Object.assign({}, otherInputProps, { className: (0, classnames_1.default)('TimePickerInput', 'form-control', inputClassName), mask: mask, maskPlaceholder: '-', value: timeValue, onChange: handleChangeTime, alwaysShowMask: alwaysShowMask })), isValid && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'TimePickerIncreaseButton input-group-addon' }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-color-gray hover-text-color-dark', onClick: handleDecrease }, { children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-chevron-left scale-90' }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-color-gray hover-text-color-dark margin-left-5', onClick: handleIncrease }, { children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-chevron-right scale-90' }) }))] })))] })));
|
|
89
72
|
};
|
|
90
73
|
exports.default = TimePicker;
|
|
@@ -59,6 +59,10 @@ export type TooltipProps = {
|
|
|
59
59
|
* Additional classes to be set on the wrapper element.
|
|
60
60
|
*/
|
|
61
61
|
className?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Additional classes to be set on the inner element.
|
|
64
|
+
*/
|
|
65
|
+
innerClassName?: string;
|
|
62
66
|
};
|
|
63
67
|
export type TooltipType = RefComponent<PropsWithChildren<TooltipProps>> & typeof STYLE_MAP & typeof PLACEMENT & typeof TEXT_ALIGNMENT_MAP;
|
|
64
68
|
declare const Tooltip: TooltipType;
|
|
@@ -18,7 +18,7 @@ const TEXT_ALIGNMENT_MAP = {
|
|
|
18
18
|
TEXT_ALIGNMENT_RIGHT: TextAlignment_1.TEXT_ALIGNMENT.RIGHT,
|
|
19
19
|
};
|
|
20
20
|
const Tooltip = (0, react_1.forwardRef)((props, ref) => {
|
|
21
|
-
const _a = (0, omit_1.default)(['popper', 'positionLeft', 'positionTop'], props), { allowOnTouch = false, arrowProps, children, className = '', placement = 'bottom', style, textAlignment = 'center', tooltipStyle = 'default', width = 'auto' } = _a, remainingProps = tslib_1.__rest(_a, ["allowOnTouch", "arrowProps", "children", "className", "placement", "style", "textAlignment", "tooltipStyle", "width"]);
|
|
21
|
+
const _a = (0, omit_1.default)(['popper', 'positionLeft', 'positionTop'], props), { allowOnTouch = false, arrowProps, children, className = '', innerClassName = '', placement = 'bottom', style, textAlignment = 'center', tooltipStyle = 'default', width = 'auto' } = _a, remainingProps = tslib_1.__rest(_a, ["allowOnTouch", "arrowProps", "children", "className", "innerClassName", "placement", "style", "textAlignment", "tooltipStyle", "width"]);
|
|
22
22
|
if (!(0, deviceUtils_1.isDesktop)() && !allowOnTouch) {
|
|
23
23
|
// Workaround: we have to return a DOM node as otherwise the
|
|
24
24
|
// react-transition library would throw an error on mobile
|
|
@@ -26,7 +26,7 @@ const Tooltip = (0, react_1.forwardRef)((props, ref) => {
|
|
|
26
26
|
return (0, jsx_runtime_1.jsx)("span", { className: 'display-none' });
|
|
27
27
|
}
|
|
28
28
|
const wrapperClasses = (0, classnames_1.default)('tooltip', tooltipStyle && `tooltip-${tooltipStyle}`, placement, className);
|
|
29
|
-
const innerClasses = (0, classnames_1.default)('tooltip-inner', textAlignment && `text-${textAlignment}`, width && `width-${width}
|
|
29
|
+
const innerClasses = (0, classnames_1.default)('tooltip-inner', textAlignment && `text-${textAlignment}`, width && `width-${width}`, innerClassName && innerClassName);
|
|
30
30
|
/* eslint-disable react/no-unknown-property */
|
|
31
31
|
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { role: 'tooltip', "x-placement": placement, ref: ref, className: wrapperClasses, style: Object.assign({}, style), "data-offset": 20 }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'tooltip-arrow' }, arrowProps)), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: innerClasses }, { children: children }))] })));
|
|
32
32
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const useDocumentTitle = (title) => {
|
|
5
|
+
(0, react_1.useEffect)(() => {
|
|
6
|
+
if (document) {
|
|
7
|
+
document.title = title;
|
|
8
|
+
}
|
|
9
|
+
}, [title]);
|
|
10
|
+
};
|
|
11
|
+
exports.default = useDocumentTitle;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const useIsFirstRender = () => {
|
|
5
|
+
const renderRef = (0, react_1.useRef)(true);
|
|
6
|
+
if (renderRef.current === true) {
|
|
7
|
+
renderRef.current = false;
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
return renderRef.current;
|
|
11
|
+
};
|
|
12
|
+
exports.default = useIsFirstRender;
|
package/lib/es/index.d.ts
CHANGED
|
@@ -63,10 +63,6 @@ import { default as _Slider } from './components/slider/Slider';
|
|
|
63
63
|
export { _Slider as Slider };
|
|
64
64
|
import { default as _RangeSlider } from './components/slider/RangeSlider';
|
|
65
65
|
export { _RangeSlider as RangeSlider };
|
|
66
|
-
import { default as _Tag } from './components/tag/Tag';
|
|
67
|
-
export { _Tag as Tag };
|
|
68
|
-
import { default as _TagList } from './components/tag/TagList';
|
|
69
|
-
export { _TagList as TagList };
|
|
70
66
|
import { default as _Collapse } from './components/collapse/Collapse';
|
|
71
67
|
export { _Collapse as Collapse };
|
|
72
68
|
import { default as _Fade } from './components/fade/Fade';
|
|
@@ -91,25 +87,10 @@ import { default as _SteppedProgressBar } from './components/steppedProgressBar/
|
|
|
91
87
|
export { _SteppedProgressBar as SteppedProgressBar };
|
|
92
88
|
import { default as _Position } from './components/position/Position';
|
|
93
89
|
export { _Position as Position };
|
|
94
|
-
import { default as _Notification } from './components/notification/Notification';
|
|
95
|
-
import { default as _NotificationsContainer } from './components/notification/NotificationsContainer';
|
|
96
|
-
export { _Notification as Notification, _NotificationsContainer as NotificationsContainer };
|
|
97
90
|
import { default as _ApplicationHeader } from './components/applicationHeader/ApplicationHeader';
|
|
98
91
|
export { _ApplicationHeader as ApplicationHeader };
|
|
99
|
-
import { default as _NotFoundState } from './components/states/NotFoundState';
|
|
100
|
-
export { _NotFoundState as NotFoundState };
|
|
101
|
-
import { default as _EmptyState } from './components/states/EmptyState';
|
|
102
|
-
export { _EmptyState as EmptyState };
|
|
103
|
-
import { default as _ErrorState } from './components/states/ErrorState';
|
|
104
|
-
export { _ErrorState as ErrorState };
|
|
105
|
-
import { default as _ForbiddenState } from './components/states/ForbiddenState';
|
|
106
|
-
export { _ForbiddenState as ForbiddenState };
|
|
107
92
|
import { default as _NotBookedState } from './components/states/NotBookedState';
|
|
108
93
|
export { _NotBookedState as NotBookedState };
|
|
109
|
-
import { default as _CustomState } from './components/states/CustomState';
|
|
110
|
-
export { _CustomState as CustomState };
|
|
111
|
-
import { default as _TimePicker } from './components/timepicker/TimePicker';
|
|
112
|
-
export { _TimePicker as TimePicker };
|
|
113
94
|
import { default as _ResponsiveColumnStripe } from './components/responsiveColumnStripe/ResponsiveColumnStripe';
|
|
114
95
|
export { _ResponsiveColumnStripe as ResponsiveColumnStripe };
|
|
115
96
|
import { SortArrowUp as _SortArrowUp, SortArrowDown as _SortArrowDown, SortArrows as _SortArrows } from './components/table/SortArrows';
|
|
@@ -155,14 +136,8 @@ export { default as ActionBarItem } from './components/actionBarItem/ActionBarIt
|
|
|
155
136
|
export * from './components/actionBarItem/ActionBarItem';
|
|
156
137
|
import { default as _ReleaseNotesDialog } from './components/dialog/ReleaseNotesDialog';
|
|
157
138
|
export { _ReleaseNotesDialog as ReleaseNotesDialog };
|
|
158
|
-
import { default as _Teaser } from './components/teaser/Teaser';
|
|
159
|
-
export { _Teaser as Teaser };
|
|
160
|
-
import { default as _TeaserContainer } from './components/teaser/TeaserContainer';
|
|
161
|
-
export { _TeaserContainer as TeaserContainer };
|
|
162
139
|
import { default as _OnboardingTip } from './components/onboarding/OnboardingTip';
|
|
163
140
|
export { _OnboardingTip as OnboardingTip };
|
|
164
|
-
import { default as _TagManager } from './components/tagManager/TagManager';
|
|
165
|
-
export { _TagManager as TagManager };
|
|
166
141
|
import { default as _BrowserWarning } from './components/browserWarning/BrowserWarning';
|
|
167
142
|
export { _BrowserWarning as BrowserWarning };
|
|
168
143
|
import { default as _RuleConnector } from './components/rules/RuleConnector';
|
|
@@ -263,3 +238,31 @@ export { default as DataTab } from './components/dataTabs/DataTab';
|
|
|
263
238
|
export * from './components/dataTabs/DataTab';
|
|
264
239
|
export { default as DataTabs } from './components/dataTabs/DataTabs';
|
|
265
240
|
export * from './components/dataTabs/DataTabs';
|
|
241
|
+
export { default as TagManager } from './components/tagManager/TagManager';
|
|
242
|
+
export * from './components/tagManager/TagManager';
|
|
243
|
+
export { default as Tag } from './components/tag/Tag';
|
|
244
|
+
export * from './components/tag/Tag';
|
|
245
|
+
export { default as TagList } from './components/tag/TagList';
|
|
246
|
+
export * from './components/tag/TagList';
|
|
247
|
+
export { default as CustomState } from './components/states/CustomState';
|
|
248
|
+
export * from './components/states/CustomState';
|
|
249
|
+
export { default as EmptyState } from './components/states/EmptyState';
|
|
250
|
+
export * from './components/states/EmptyState';
|
|
251
|
+
export { default as ErrorState } from './components/states/ErrorState';
|
|
252
|
+
export * from './components/states/ErrorState';
|
|
253
|
+
export { default as ForbiddenState } from './components/states/ForbiddenState';
|
|
254
|
+
export * from './components/states/ForbiddenState';
|
|
255
|
+
export { default as MaintenanceState } from './components/states/MaintenanceState';
|
|
256
|
+
export * from './components/states/MaintenanceState';
|
|
257
|
+
export { default as NotFoundState } from './components/states/NotFoundState';
|
|
258
|
+
export * from './components/states/NotFoundState';
|
|
259
|
+
export { default as Teaser } from './components/teaser/Teaser';
|
|
260
|
+
export * from './components/teaser/Teaser';
|
|
261
|
+
export { default as TeaserContainer } from './components/teaser/TeaserContainer';
|
|
262
|
+
export * from './components/teaser/TeaserContainer';
|
|
263
|
+
export { default as TimePicker } from './components/timepicker/TimePicker';
|
|
264
|
+
export * from './components/timepicker/TimePicker';
|
|
265
|
+
export { default as Notification } from './components/notification/Notification';
|
|
266
|
+
export * from './components/notification/Notification';
|
|
267
|
+
export { default as NotificationsContainer } from './components/notification/NotificationsContainer';
|
|
268
|
+
export * from './components/notification/NotificationsContainer';
|
package/lib/es/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
4
|
+
exports.SortArrows = exports.SortArrowDown = exports.SortArrowUp = exports.ResponsiveColumnStripe = exports.NotBookedState = exports.ApplicationHeader = exports.Position = exports.SteppedProgressBar = exports.FilePicker = exports.DateRangePicker = exports.DatePicker = exports.Multiselect = exports.Select = exports.Popover = exports.ListMenu = exports.ImagePreloader = exports.Fade = exports.Collapse = exports.RangeSlider = exports.Slider = exports.TableCardsSorting = exports.TableSearch = exports.TableToolbar = exports.TableViewToggles = exports.TableSettingsDialog = exports.MediaDialog = exports.InfoDialog = exports.SimpleDialog = exports.SplitDialog = exports.SaveDialog = exports.SplitButtonDropdown = exports.SingleButtonDropdown = exports.SimpleButtonDropdown = exports.ButtonDropdown = exports.MenuItem = exports.DropdownSubmenu = exports.ConfirmationDialog = exports.Dialog = exports.TreeOption = exports.TypeCounter = exports.TreeSummary = exports.TreeSearch = exports.Tree = exports.TreeCategory = exports.AssetTree = exports.Sidebar = exports.RadioButton = exports.AutoSuggest = exports.colors = exports.VERSION = void 0;
|
|
5
|
+
exports.AreaGradient = exports.Area = exports.AreaChart = exports.LoadMoreButton = exports.Carousel = exports.SUPPORT_MARKER_CLASS = exports.enableSupportMarker = exports.toggleSupportMarker = exports.CalendarStripe = exports.RulesWrapper = exports.RuleContainer = exports.RuleConnector = exports.BrowserWarning = exports.OnboardingTip = exports.ReleaseNotesDialog = exports.ActionBarItem = exports.ApplicationLayoutBodyBanner = exports.ApplicationLayoutBodyBottomBar = exports.ApplicationLayoutBodyNavigation = exports.ApplicationLayout = exports.ExpanderList = exports.ExpanderPanel = exports.getNewGroupedSelected = exports.setColorScheme = exports.getColorScheme = exports.isDesktop = exports.inIframe = exports.hasTouch = exports.useMutationObserver = exports.useDarkMode = exports.useScrollPosition = exports.useElementSize = exports.useClipboard = exports.useClickOutside = exports.useInterval = exports.useTimeout = exports.useEffectOnce = exports.useOnMount = exports.useAfterMount = exports.useWindowResize = exports.useEvent = exports.useKey = exports.useEsc = exports.parseColumnsSettingsStrings = exports.mapColumnsSettingsToStrings = exports.parseSorting = exports.getSortDirShort = exports.naturalSortByProperty = exports.sortByProperty = exports.SortDirection = void 0;
|
|
6
|
+
exports.Teaser = exports.NotFoundState = exports.MaintenanceState = exports.ForbiddenState = exports.ErrorState = exports.EmptyState = exports.CustomState = exports.TagList = exports.Tag = exports.TagManager = exports.DataTabs = exports.DataTab = exports.ToggleButton = exports.Button = exports.NumberControl = exports.NumberInput = exports.useHover = exports.useFocusTrap = exports.EditableContent = exports.StatusBar = exports.StatsWidgetSpacer = exports.StatsWidgetNumber = exports.StatsWidget = exports.StatsWidgets = exports.Spinner = exports.Resizer = exports.Switch = exports.usePrevious = exports.Pager = exports.ReleaseNotes = exports.ContentLoader = exports.ClearableInput = exports.ResponsiveVideo = exports.BottomSheet = exports.AspectRatioPlaceholder = exports.AnimatedNumber = exports.Activity = exports.OverlayTrigger = exports.SimpleTooltip = exports.Tooltip = exports.NoData = exports.Checkbox = exports.ChartNeedle = exports.RadialBarChart = exports.Legend = exports.LineChart = exports.Line = exports.BarChart = exports.Bar = exports.PieChart = void 0;
|
|
7
|
+
exports.NotificationsContainer = exports.Notification = exports.TimePicker = exports.TeaserContainer = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const version_json_1 = tslib_1.__importDefault(require("./version.json"));
|
|
10
10
|
const VERSION = version_json_1.default.version;
|
|
@@ -72,10 +72,6 @@ const Slider_1 = tslib_1.__importDefault(require("./components/slider/Slider"));
|
|
|
72
72
|
Object.defineProperty(exports, "Slider", { enumerable: true, get: function () { return Slider_1.default; } });
|
|
73
73
|
const RangeSlider_1 = tslib_1.__importDefault(require("./components/slider/RangeSlider"));
|
|
74
74
|
Object.defineProperty(exports, "RangeSlider", { enumerable: true, get: function () { return RangeSlider_1.default; } });
|
|
75
|
-
const Tag_1 = tslib_1.__importDefault(require("./components/tag/Tag"));
|
|
76
|
-
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.default; } });
|
|
77
|
-
const TagList_1 = tslib_1.__importDefault(require("./components/tag/TagList"));
|
|
78
|
-
Object.defineProperty(exports, "TagList", { enumerable: true, get: function () { return TagList_1.default; } });
|
|
79
75
|
const Collapse_1 = tslib_1.__importDefault(require("./components/collapse/Collapse"));
|
|
80
76
|
Object.defineProperty(exports, "Collapse", { enumerable: true, get: function () { return Collapse_1.default; } });
|
|
81
77
|
const Fade_1 = tslib_1.__importDefault(require("./components/fade/Fade"));
|
|
@@ -100,26 +96,10 @@ const SteppedProgressBar_1 = tslib_1.__importDefault(require("./components/stepp
|
|
|
100
96
|
Object.defineProperty(exports, "SteppedProgressBar", { enumerable: true, get: function () { return SteppedProgressBar_1.default; } });
|
|
101
97
|
const Position_1 = tslib_1.__importDefault(require("./components/position/Position"));
|
|
102
98
|
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return Position_1.default; } });
|
|
103
|
-
const Notification_1 = tslib_1.__importDefault(require("./components/notification/Notification"));
|
|
104
|
-
Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return Notification_1.default; } });
|
|
105
|
-
const NotificationsContainer_1 = tslib_1.__importDefault(require("./components/notification/NotificationsContainer"));
|
|
106
|
-
Object.defineProperty(exports, "NotificationsContainer", { enumerable: true, get: function () { return NotificationsContainer_1.default; } });
|
|
107
99
|
const ApplicationHeader_1 = tslib_1.__importDefault(require("./components/applicationHeader/ApplicationHeader"));
|
|
108
100
|
Object.defineProperty(exports, "ApplicationHeader", { enumerable: true, get: function () { return ApplicationHeader_1.default; } });
|
|
109
|
-
const NotFoundState_1 = tslib_1.__importDefault(require("./components/states/NotFoundState"));
|
|
110
|
-
Object.defineProperty(exports, "NotFoundState", { enumerable: true, get: function () { return NotFoundState_1.default; } });
|
|
111
|
-
const EmptyState_1 = tslib_1.__importDefault(require("./components/states/EmptyState"));
|
|
112
|
-
Object.defineProperty(exports, "EmptyState", { enumerable: true, get: function () { return EmptyState_1.default; } });
|
|
113
|
-
const ErrorState_1 = tslib_1.__importDefault(require("./components/states/ErrorState"));
|
|
114
|
-
Object.defineProperty(exports, "ErrorState", { enumerable: true, get: function () { return ErrorState_1.default; } });
|
|
115
|
-
const ForbiddenState_1 = tslib_1.__importDefault(require("./components/states/ForbiddenState"));
|
|
116
|
-
Object.defineProperty(exports, "ForbiddenState", { enumerable: true, get: function () { return ForbiddenState_1.default; } });
|
|
117
101
|
const NotBookedState_1 = tslib_1.__importDefault(require("./components/states/NotBookedState"));
|
|
118
102
|
Object.defineProperty(exports, "NotBookedState", { enumerable: true, get: function () { return NotBookedState_1.default; } });
|
|
119
|
-
const CustomState_1 = tslib_1.__importDefault(require("./components/states/CustomState"));
|
|
120
|
-
Object.defineProperty(exports, "CustomState", { enumerable: true, get: function () { return CustomState_1.default; } });
|
|
121
|
-
const TimePicker_1 = tslib_1.__importDefault(require("./components/timepicker/TimePicker"));
|
|
122
|
-
Object.defineProperty(exports, "TimePicker", { enumerable: true, get: function () { return TimePicker_1.default; } });
|
|
123
103
|
const ResponsiveColumnStripe_1 = tslib_1.__importDefault(require("./components/responsiveColumnStripe/ResponsiveColumnStripe"));
|
|
124
104
|
Object.defineProperty(exports, "ResponsiveColumnStripe", { enumerable: true, get: function () { return ResponsiveColumnStripe_1.default; } });
|
|
125
105
|
const SortArrows_1 = require("./components/table/SortArrows");
|
|
@@ -191,14 +171,8 @@ Object.defineProperty(exports, "ActionBarItem", { enumerable: true, get: functio
|
|
|
191
171
|
tslib_1.__exportStar(require("./components/actionBarItem/ActionBarItem"), exports);
|
|
192
172
|
const ReleaseNotesDialog_1 = tslib_1.__importDefault(require("./components/dialog/ReleaseNotesDialog"));
|
|
193
173
|
Object.defineProperty(exports, "ReleaseNotesDialog", { enumerable: true, get: function () { return ReleaseNotesDialog_1.default; } });
|
|
194
|
-
const Teaser_1 = tslib_1.__importDefault(require("./components/teaser/Teaser"));
|
|
195
|
-
Object.defineProperty(exports, "Teaser", { enumerable: true, get: function () { return Teaser_1.default; } });
|
|
196
|
-
const TeaserContainer_1 = tslib_1.__importDefault(require("./components/teaser/TeaserContainer"));
|
|
197
|
-
Object.defineProperty(exports, "TeaserContainer", { enumerable: true, get: function () { return TeaserContainer_1.default; } });
|
|
198
174
|
const OnboardingTip_1 = tslib_1.__importDefault(require("./components/onboarding/OnboardingTip"));
|
|
199
175
|
Object.defineProperty(exports, "OnboardingTip", { enumerable: true, get: function () { return OnboardingTip_1.default; } });
|
|
200
|
-
const TagManager_1 = tslib_1.__importDefault(require("./components/tagManager/TagManager"));
|
|
201
|
-
Object.defineProperty(exports, "TagManager", { enumerable: true, get: function () { return TagManager_1.default; } });
|
|
202
176
|
const BrowserWarning_1 = tslib_1.__importDefault(require("./components/browserWarning/BrowserWarning"));
|
|
203
177
|
Object.defineProperty(exports, "BrowserWarning", { enumerable: true, get: function () { return BrowserWarning_1.default; } });
|
|
204
178
|
const RuleConnector_1 = tslib_1.__importDefault(require("./components/rules/RuleConnector"));
|
|
@@ -333,3 +307,45 @@ tslib_1.__exportStar(require("./components/dataTabs/DataTab"), exports);
|
|
|
333
307
|
var DataTabs_1 = require("./components/dataTabs/DataTabs");
|
|
334
308
|
Object.defineProperty(exports, "DataTabs", { enumerable: true, get: function () { return tslib_1.__importDefault(DataTabs_1).default; } });
|
|
335
309
|
tslib_1.__exportStar(require("./components/dataTabs/DataTabs"), exports);
|
|
310
|
+
var TagManager_1 = require("./components/tagManager/TagManager");
|
|
311
|
+
Object.defineProperty(exports, "TagManager", { enumerable: true, get: function () { return tslib_1.__importDefault(TagManager_1).default; } });
|
|
312
|
+
tslib_1.__exportStar(require("./components/tagManager/TagManager"), exports);
|
|
313
|
+
var Tag_1 = require("./components/tag/Tag");
|
|
314
|
+
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return tslib_1.__importDefault(Tag_1).default; } });
|
|
315
|
+
tslib_1.__exportStar(require("./components/tag/Tag"), exports);
|
|
316
|
+
var TagList_1 = require("./components/tag/TagList");
|
|
317
|
+
Object.defineProperty(exports, "TagList", { enumerable: true, get: function () { return tslib_1.__importDefault(TagList_1).default; } });
|
|
318
|
+
tslib_1.__exportStar(require("./components/tag/TagList"), exports);
|
|
319
|
+
var CustomState_1 = require("./components/states/CustomState");
|
|
320
|
+
Object.defineProperty(exports, "CustomState", { enumerable: true, get: function () { return tslib_1.__importDefault(CustomState_1).default; } });
|
|
321
|
+
tslib_1.__exportStar(require("./components/states/CustomState"), exports);
|
|
322
|
+
var EmptyState_1 = require("./components/states/EmptyState");
|
|
323
|
+
Object.defineProperty(exports, "EmptyState", { enumerable: true, get: function () { return tslib_1.__importDefault(EmptyState_1).default; } });
|
|
324
|
+
tslib_1.__exportStar(require("./components/states/EmptyState"), exports);
|
|
325
|
+
var ErrorState_1 = require("./components/states/ErrorState");
|
|
326
|
+
Object.defineProperty(exports, "ErrorState", { enumerable: true, get: function () { return tslib_1.__importDefault(ErrorState_1).default; } });
|
|
327
|
+
tslib_1.__exportStar(require("./components/states/ErrorState"), exports);
|
|
328
|
+
var ForbiddenState_1 = require("./components/states/ForbiddenState");
|
|
329
|
+
Object.defineProperty(exports, "ForbiddenState", { enumerable: true, get: function () { return tslib_1.__importDefault(ForbiddenState_1).default; } });
|
|
330
|
+
tslib_1.__exportStar(require("./components/states/ForbiddenState"), exports);
|
|
331
|
+
var MaintenanceState_1 = require("./components/states/MaintenanceState");
|
|
332
|
+
Object.defineProperty(exports, "MaintenanceState", { enumerable: true, get: function () { return tslib_1.__importDefault(MaintenanceState_1).default; } });
|
|
333
|
+
tslib_1.__exportStar(require("./components/states/MaintenanceState"), exports);
|
|
334
|
+
var NotFoundState_1 = require("./components/states/NotFoundState");
|
|
335
|
+
Object.defineProperty(exports, "NotFoundState", { enumerable: true, get: function () { return tslib_1.__importDefault(NotFoundState_1).default; } });
|
|
336
|
+
tslib_1.__exportStar(require("./components/states/NotFoundState"), exports);
|
|
337
|
+
var Teaser_1 = require("./components/teaser/Teaser");
|
|
338
|
+
Object.defineProperty(exports, "Teaser", { enumerable: true, get: function () { return tslib_1.__importDefault(Teaser_1).default; } });
|
|
339
|
+
tslib_1.__exportStar(require("./components/teaser/Teaser"), exports);
|
|
340
|
+
var TeaserContainer_1 = require("./components/teaser/TeaserContainer");
|
|
341
|
+
Object.defineProperty(exports, "TeaserContainer", { enumerable: true, get: function () { return tslib_1.__importDefault(TeaserContainer_1).default; } });
|
|
342
|
+
tslib_1.__exportStar(require("./components/teaser/TeaserContainer"), exports);
|
|
343
|
+
var TimePicker_1 = require("./components/timepicker/TimePicker");
|
|
344
|
+
Object.defineProperty(exports, "TimePicker", { enumerable: true, get: function () { return tslib_1.__importDefault(TimePicker_1).default; } });
|
|
345
|
+
tslib_1.__exportStar(require("./components/timepicker/TimePicker"), exports);
|
|
346
|
+
var Notification_1 = require("./components/notification/Notification");
|
|
347
|
+
Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return tslib_1.__importDefault(Notification_1).default; } });
|
|
348
|
+
tslib_1.__exportStar(require("./components/notification/Notification"), exports);
|
|
349
|
+
var NotificationsContainer_1 = require("./components/notification/NotificationsContainer");
|
|
350
|
+
Object.defineProperty(exports, "NotificationsContainer", { enumerable: true, get: function () { return tslib_1.__importDefault(NotificationsContainer_1).default; } });
|
|
351
|
+
tslib_1.__exportStar(require("./components/notification/NotificationsContainer"), exports);
|
package/lib/es/types.d.ts
CHANGED
|
@@ -60,19 +60,6 @@ export interface AssetTreeProps {
|
|
|
60
60
|
className?: string;
|
|
61
61
|
children?: TreeCategoryProps[];
|
|
62
62
|
}
|
|
63
|
-
export interface BaseStateProps {
|
|
64
|
-
icon?: string;
|
|
65
|
-
icons?: object[];
|
|
66
|
-
image?: React.ReactFragment;
|
|
67
|
-
headline?: string | React.ReactFragment;
|
|
68
|
-
message?: string | React.ReactFragment;
|
|
69
|
-
buttons?: object[];
|
|
70
|
-
fullWidth?: boolean;
|
|
71
|
-
condensed?: boolean;
|
|
72
|
-
alignment?: TextAlignment;
|
|
73
|
-
outerClassName?: string;
|
|
74
|
-
innerClassName?: string;
|
|
75
|
-
}
|
|
76
63
|
export interface BaseDialogProps {
|
|
77
64
|
show: boolean;
|
|
78
65
|
title?: React.ReactNode;
|
|
@@ -250,8 +237,6 @@ export interface CollapseProps {
|
|
|
250
237
|
onExiting?: Function;
|
|
251
238
|
onExited?: Function;
|
|
252
239
|
}
|
|
253
|
-
export interface CustomStateProps extends BaseStateProps {
|
|
254
|
-
}
|
|
255
240
|
export interface DatePickerProps extends DatetimepickerProps {
|
|
256
241
|
className?: string;
|
|
257
242
|
alignRight?: boolean;
|
|
@@ -323,10 +308,6 @@ export interface DropdownSubmenuProps {
|
|
|
323
308
|
disabled?: boolean;
|
|
324
309
|
className?: string;
|
|
325
310
|
}
|
|
326
|
-
export interface EmptyStateProps extends BaseStateProps {
|
|
327
|
-
}
|
|
328
|
-
export interface ErrorStateProps extends BaseStateProps {
|
|
329
|
-
}
|
|
330
311
|
export interface ExpanderListItem {
|
|
331
312
|
id?: string | number;
|
|
332
313
|
header: string | React.ReactNode;
|
|
@@ -353,6 +334,7 @@ export interface ExpanderPanelProps {
|
|
|
353
334
|
headerClassName?: string;
|
|
354
335
|
titleClassName?: string;
|
|
355
336
|
bodyClassName?: string;
|
|
337
|
+
iconClassName?: string;
|
|
356
338
|
onToggle?: (isOpen: boolean) => void;
|
|
357
339
|
onEnter?: Function;
|
|
358
340
|
onEntering?: Function;
|
|
@@ -399,8 +381,6 @@ export interface FilePickerProps {
|
|
|
399
381
|
};
|
|
400
382
|
children?: ({ isDragActive }: FilePickerRenderProps) => any;
|
|
401
383
|
}
|
|
402
|
-
export interface ForbiddenStateProps extends BaseStateProps {
|
|
403
|
-
}
|
|
404
384
|
export interface ImagePreloaderProps {
|
|
405
385
|
src: string;
|
|
406
386
|
onLoaded?: Function;
|
|
@@ -485,8 +465,6 @@ export interface ListMenuProps {
|
|
|
485
465
|
responsive?: boolean;
|
|
486
466
|
autoClose?: boolean;
|
|
487
467
|
}
|
|
488
|
-
export interface MaintenanceStateProps extends BaseStateProps {
|
|
489
|
-
}
|
|
490
468
|
export type markerColor = 'bg-map-marker-asset' | 'bg-map-marker-poi' | 'bg-map-marker-geofence' | 'bg-map-marker-route';
|
|
491
469
|
export interface MediaDialogMedia {
|
|
492
470
|
type: 'image' | 'video';
|
|
@@ -689,21 +667,6 @@ export interface NavItem {
|
|
|
689
667
|
item: React.ReactNode;
|
|
690
668
|
disabled?: boolean;
|
|
691
669
|
}
|
|
692
|
-
export interface NotificationsContainerProps {
|
|
693
|
-
stacked?: boolean;
|
|
694
|
-
}
|
|
695
|
-
export type notificationTriggerFunction = (message: string | JSX.Element | JSX.Element[], title?: string | JSX.Element | JSX.Element[], timeOut?: number, callback?: Function, priority?: boolean) => void;
|
|
696
|
-
export interface NotBookedStateProps {
|
|
697
|
-
headline: string | React.ReactNode;
|
|
698
|
-
message: string | React.ReactNode;
|
|
699
|
-
buttons?: object[];
|
|
700
|
-
features?: React.ReactNode[];
|
|
701
|
-
condensed?: boolean;
|
|
702
|
-
fullWidth?: boolean;
|
|
703
|
-
image?: React.ReactNode;
|
|
704
|
-
}
|
|
705
|
-
export interface NotFoundStateProps extends BaseStateProps {
|
|
706
|
-
}
|
|
707
670
|
export interface OnboardingTipProps {
|
|
708
671
|
id?: string | number;
|
|
709
672
|
placement?: Placement;
|
|
@@ -1139,84 +1102,10 @@ export interface TableViewTogglesProps {
|
|
|
1139
1102
|
disabled?: boolean;
|
|
1140
1103
|
className?: string;
|
|
1141
1104
|
}
|
|
1142
|
-
export interface TagProps {
|
|
1143
|
-
active?: boolean;
|
|
1144
|
-
className?: string;
|
|
1145
|
-
clickable?: boolean;
|
|
1146
|
-
deletable?: boolean;
|
|
1147
|
-
revertable?: boolean;
|
|
1148
|
-
disabled?: boolean;
|
|
1149
|
-
icon?: string;
|
|
1150
|
-
muted?: boolean;
|
|
1151
|
-
rounded?: boolean;
|
|
1152
|
-
selectable?: boolean;
|
|
1153
|
-
size?: string;
|
|
1154
|
-
}
|
|
1155
|
-
export interface TagListProps {
|
|
1156
|
-
inline?: boolean;
|
|
1157
|
-
autoWidthTags?: boolean;
|
|
1158
|
-
tagsPerRow?: 1 | 2 | 3 | 4 | 6;
|
|
1159
|
-
className?: string;
|
|
1160
|
-
}
|
|
1161
|
-
export interface TagManagerTag {
|
|
1162
|
-
label?: string;
|
|
1163
|
-
toAdd?: boolean;
|
|
1164
|
-
toRemove?: boolean;
|
|
1165
|
-
}
|
|
1166
|
-
export interface TagManagerProps {
|
|
1167
|
-
tagList: TagManagerTag[];
|
|
1168
|
-
tagSuggestions: TagManagerTag[];
|
|
1169
|
-
onTagListChange?: Function;
|
|
1170
|
-
placeholder?: string;
|
|
1171
|
-
customTagPlaceholder?: string;
|
|
1172
|
-
dropdownSeparatorText?: string;
|
|
1173
|
-
useCustomTags?: boolean;
|
|
1174
|
-
showInput?: boolean;
|
|
1175
|
-
noItemMessage?: string | React.ReactNode;
|
|
1176
|
-
}
|
|
1177
|
-
export interface TeaserContainerProps {
|
|
1178
|
-
children?: any;
|
|
1179
|
-
teaserPerRow?: 1 | 2 | 3 | 4 | 6 | 12;
|
|
1180
|
-
columnClassName?: string;
|
|
1181
|
-
className?: string;
|
|
1182
|
-
}
|
|
1183
|
-
export interface TeaserProps {
|
|
1184
|
-
headline?: string;
|
|
1185
|
-
content?: string | React.ReactNode;
|
|
1186
|
-
image?: {
|
|
1187
|
-
src: string;
|
|
1188
|
-
alt?: string;
|
|
1189
|
-
placeholder?: string;
|
|
1190
|
-
align?: string;
|
|
1191
|
-
onClick?: () => void;
|
|
1192
|
-
className?: string;
|
|
1193
|
-
};
|
|
1194
|
-
button?: {
|
|
1195
|
-
text?: string;
|
|
1196
|
-
bsStyle?: string;
|
|
1197
|
-
onClick?: Function;
|
|
1198
|
-
className?: string;
|
|
1199
|
-
};
|
|
1200
|
-
verticalAlignment?: string;
|
|
1201
|
-
segmentation?: string;
|
|
1202
|
-
className?: string;
|
|
1203
|
-
}
|
|
1204
1105
|
export interface TextMarkerProps {
|
|
1205
1106
|
position: Position;
|
|
1206
1107
|
text: string;
|
|
1207
1108
|
}
|
|
1208
|
-
export interface TimePickerInputProps {
|
|
1209
|
-
className?: string;
|
|
1210
|
-
}
|
|
1211
|
-
export interface TimePickerProps {
|
|
1212
|
-
onChange?: Function;
|
|
1213
|
-
onComplete?: Function;
|
|
1214
|
-
value?: string;
|
|
1215
|
-
alwaysShowMask?: boolean;
|
|
1216
|
-
showIcon?: boolean;
|
|
1217
|
-
className?: string;
|
|
1218
|
-
inputProps?: TimePickerInputProps;
|
|
1219
|
-
}
|
|
1220
1109
|
export interface TreeCategoryProps {
|
|
1221
1110
|
id: string;
|
|
1222
1111
|
icon: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
var useDocumentTitle_1 = require("./hooks/useDocumentTitle");
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useDocumentTitle_1).default; } });
|
|
7
|
+
tslib_1.__exportStar(require("./hooks/useDocumentTitle"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
var useIsFirstRender_1 = require("./hooks/useIsFirstRender");
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useIsFirstRender_1).default; } });
|
|
7
|
+
tslib_1.__exportStar(require("./hooks/useIsFirstRender"), exports);
|