@sprinklrjs/spaceweb 14.11.0 → 14.11.4
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/asyncSelect/hooks/useAsyncSelect.d.ts +3 -3
- package/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +3 -3
- package/baseui/datepicker/styled-components.js +2 -2
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/checkbox.js +5 -4
- package/checkbox/types.d.ts +8 -6
- package/color-picker/CustomColorSelector.d.ts +1 -1
- package/color-picker/CustomColorSelector.js +25 -8
- package/date-picker/DatePickerInput.d.ts +2 -2
- package/date-picker/DatePickerInput.js +1 -0
- package/esm/asyncSelect/hooks/useAsyncSelect.d.ts +3 -3
- package/esm/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +3 -3
- package/esm/baseui/datepicker/styled-components.js +2 -2
- package/esm/checkbox/checkbox.d.ts +1 -1
- package/esm/checkbox/checkbox.js +6 -5
- package/esm/checkbox/types.d.ts +8 -6
- package/esm/color-picker/CustomColorSelector.d.ts +1 -1
- package/esm/color-picker/CustomColorSelector.js +26 -9
- package/esm/date-picker/DatePickerInput.d.ts +2 -2
- package/esm/date-picker/DatePickerInput.js +1 -0
- package/esm/helpers/colors.d.ts +1 -0
- package/esm/helpers/colors.js +14 -5
- package/esm/list/list.d.ts +1 -0
- package/esm/list/list.js +5 -4
- package/esm/list/types.d.ts +8 -4
- package/esm/list/utils.d.ts +5 -1
- package/esm/list/utils.js +15 -0
- package/esm/menu/ActionsIconButton.d.ts +5 -2
- package/esm/menu/StatefulSubMenu.d.ts +2 -1
- package/esm/menu/SubMenu.d.ts +2 -1
- package/esm/menu/SubMenu.js +2 -1
- package/esm/menu/index.d.ts +1 -1
- package/esm/menu/menu-item.js +35 -23
- package/esm/menu/menu.d.ts +2 -1
- package/esm/menu/types.d.ts +10 -2
- package/esm/progress/circular/CircularProgress.d.ts +3 -3
- package/esm/progress/circular/CircularProgress.js +3 -3
- package/esm/progress/linear/LinearProgress.d.ts +3 -3
- package/esm/progress/linear/LinearProgress.js +3 -3
- package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +1 -1
- package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.js +21 -6
- package/esm/select/selectMenuAdapter/SelectMenuItem.d.ts +2 -1
- package/esm/tag/tag.d.ts +1 -0
- package/esm/tag/tag.js +2 -2
- package/esm/tag/types.d.ts +5 -4
- package/esm/time-range-picker/RangeSelectorContainer.d.ts +2 -2
- package/esm/time-range-picker/RangeSelectorContainer.js +13 -3
- package/helpers/colors.d.ts +1 -0
- package/helpers/colors.js +16 -6
- package/list/list.d.ts +1 -0
- package/list/list.js +3 -2
- package/list/types.d.ts +8 -4
- package/list/utils.d.ts +5 -1
- package/list/utils.js +17 -1
- package/menu/ActionsIconButton.d.ts +5 -2
- package/menu/StatefulSubMenu.d.ts +2 -1
- package/menu/SubMenu.d.ts +2 -1
- package/menu/SubMenu.js +2 -1
- package/menu/index.d.ts +1 -1
- package/menu/menu-item.js +34 -22
- package/menu/menu.d.ts +2 -1
- package/menu/types.d.ts +10 -2
- package/package.json +5 -4
- package/progress/circular/CircularProgress.d.ts +3 -3
- package/progress/circular/CircularProgress.js +2 -2
- package/progress/linear/LinearProgress.d.ts +3 -3
- package/progress/linear/LinearProgress.js +2 -2
- package/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +1 -1
- package/select/selectMenuAdapter/CollapsibleSelectMenu.js +21 -6
- package/select/selectMenuAdapter/SelectMenuItem.d.ts +2 -1
- package/tag/tag.d.ts +1 -0
- package/tag/tag.js +2 -2
- package/tag/types.d.ts +5 -4
- package/time-range-picker/RangeSelectorContainer.d.ts +2 -2
- package/time-range-picker/RangeSelectorContainer.js +12 -2
- package/tsconfig.build.tsbuildinfo +1 -1
package/tag/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AvatarProps } from '../avatar';
|
|
3
|
-
import { Override } from '../overrides';
|
|
4
|
-
import { ClassName, SpacewebComponentProps } from '../types';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { AvatarProps } from '../avatar';
|
|
3
|
+
import type { Override } from '../overrides';
|
|
4
|
+
import type { ClassName, SpacewebComponentProps } from '../types';
|
|
5
5
|
export type Intent = 'success' | 'error' | 'warning' | 'info' | 'default' | 'ai';
|
|
6
6
|
export type Appearance = 'gray' | 'white' | 'outline';
|
|
7
7
|
export type Variant = 'solid' | 'light';
|
|
@@ -16,6 +16,7 @@ export type TagOverrides = {
|
|
|
16
16
|
};
|
|
17
17
|
export type TagProps = SpacewebComponentProps<{
|
|
18
18
|
closeable?: boolean;
|
|
19
|
+
closeAriaLabel?: string;
|
|
19
20
|
isFocused?: boolean;
|
|
20
21
|
isHovered?: boolean;
|
|
21
22
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { RangeSelectorContainerProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { RangeSelectorContainerProps } from './types';
|
|
3
3
|
declare const RangeSelectorContainer: {
|
|
4
4
|
({ adapter, timeRangePresets, onChange, onSubmit, timezone: selectedTimezone, value: selectedValue, timeRange: selectedTimeRange, preset: selectedPreset, minDate: _minDate, maxDate: _maxDate, monthsShown, disableTimezone, timezoneOptions, hidePresetSearch, ...props }: RangeSelectorContainerProps): ReactElement;
|
|
5
5
|
displayName: string;
|
|
@@ -76,7 +76,7 @@ var RangeSelectorContainer = function (_a) {
|
|
|
76
76
|
dateHelpers: dateHelpers,
|
|
77
77
|
maxDate: maxDate,
|
|
78
78
|
minDate: minDate,
|
|
79
|
-
});
|
|
79
|
+
}).map(function (time) { return new Date((0, utils_1.convertDateFromSystemTzToTargetTz)(time, timezone, timezoneOptions)); });
|
|
80
80
|
setPreset(_preset);
|
|
81
81
|
setTimeRange(nextDate);
|
|
82
82
|
onChange === null || onChange === void 0 ? void 0 : onChange(tslib_1.__assign({ value: _preset, date: nextDate, preset: _preset }, (disableTimezone ? {} : { timezone: timezone })));
|
|
@@ -94,7 +94,17 @@ var RangeSelectorContainer = function (_a) {
|
|
|
94
94
|
setPreset('CUSTOM');
|
|
95
95
|
onChange === null || onChange === void 0 ? void 0 : onChange(tslib_1.__assign({ value: nextDate, date: nextDate, preset: 'CUSTOM' }, (disableTimezone ? {} : { timezone: timezone })));
|
|
96
96
|
}
|
|
97
|
-
}, [
|
|
97
|
+
}, [
|
|
98
|
+
setTimeRange,
|
|
99
|
+
dateHelpers,
|
|
100
|
+
timeRangePresets,
|
|
101
|
+
onChange,
|
|
102
|
+
timezone,
|
|
103
|
+
disableTimezone,
|
|
104
|
+
minDate,
|
|
105
|
+
maxDate,
|
|
106
|
+
timezoneOptions,
|
|
107
|
+
]);
|
|
98
108
|
var handleSubmit = (0, react_1.useCallback)(function () {
|
|
99
109
|
return onSubmit(tslib_1.__assign({ timeRange: timeRange, preset: preset }, (disableTimezone ? {} : { timezone: timezone })));
|
|
100
110
|
}, [timeRange, preset, timezone, onSubmit, disableTimezone]);
|