@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.
Files changed (76) hide show
  1. package/asyncSelect/hooks/useAsyncSelect.d.ts +3 -3
  2. package/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +3 -3
  3. package/baseui/datepicker/styled-components.js +2 -2
  4. package/checkbox/checkbox.d.ts +1 -1
  5. package/checkbox/checkbox.js +5 -4
  6. package/checkbox/types.d.ts +8 -6
  7. package/color-picker/CustomColorSelector.d.ts +1 -1
  8. package/color-picker/CustomColorSelector.js +25 -8
  9. package/date-picker/DatePickerInput.d.ts +2 -2
  10. package/date-picker/DatePickerInput.js +1 -0
  11. package/esm/asyncSelect/hooks/useAsyncSelect.d.ts +3 -3
  12. package/esm/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +3 -3
  13. package/esm/baseui/datepicker/styled-components.js +2 -2
  14. package/esm/checkbox/checkbox.d.ts +1 -1
  15. package/esm/checkbox/checkbox.js +6 -5
  16. package/esm/checkbox/types.d.ts +8 -6
  17. package/esm/color-picker/CustomColorSelector.d.ts +1 -1
  18. package/esm/color-picker/CustomColorSelector.js +26 -9
  19. package/esm/date-picker/DatePickerInput.d.ts +2 -2
  20. package/esm/date-picker/DatePickerInput.js +1 -0
  21. package/esm/helpers/colors.d.ts +1 -0
  22. package/esm/helpers/colors.js +14 -5
  23. package/esm/list/list.d.ts +1 -0
  24. package/esm/list/list.js +5 -4
  25. package/esm/list/types.d.ts +8 -4
  26. package/esm/list/utils.d.ts +5 -1
  27. package/esm/list/utils.js +15 -0
  28. package/esm/menu/ActionsIconButton.d.ts +5 -2
  29. package/esm/menu/StatefulSubMenu.d.ts +2 -1
  30. package/esm/menu/SubMenu.d.ts +2 -1
  31. package/esm/menu/SubMenu.js +2 -1
  32. package/esm/menu/index.d.ts +1 -1
  33. package/esm/menu/menu-item.js +35 -23
  34. package/esm/menu/menu.d.ts +2 -1
  35. package/esm/menu/types.d.ts +10 -2
  36. package/esm/progress/circular/CircularProgress.d.ts +3 -3
  37. package/esm/progress/circular/CircularProgress.js +3 -3
  38. package/esm/progress/linear/LinearProgress.d.ts +3 -3
  39. package/esm/progress/linear/LinearProgress.js +3 -3
  40. package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +1 -1
  41. package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.js +21 -6
  42. package/esm/select/selectMenuAdapter/SelectMenuItem.d.ts +2 -1
  43. package/esm/tag/tag.d.ts +1 -0
  44. package/esm/tag/tag.js +2 -2
  45. package/esm/tag/types.d.ts +5 -4
  46. package/esm/time-range-picker/RangeSelectorContainer.d.ts +2 -2
  47. package/esm/time-range-picker/RangeSelectorContainer.js +13 -3
  48. package/helpers/colors.d.ts +1 -0
  49. package/helpers/colors.js +16 -6
  50. package/list/list.d.ts +1 -0
  51. package/list/list.js +3 -2
  52. package/list/types.d.ts +8 -4
  53. package/list/utils.d.ts +5 -1
  54. package/list/utils.js +17 -1
  55. package/menu/ActionsIconButton.d.ts +5 -2
  56. package/menu/StatefulSubMenu.d.ts +2 -1
  57. package/menu/SubMenu.d.ts +2 -1
  58. package/menu/SubMenu.js +2 -1
  59. package/menu/index.d.ts +1 -1
  60. package/menu/menu-item.js +34 -22
  61. package/menu/menu.d.ts +2 -1
  62. package/menu/types.d.ts +10 -2
  63. package/package.json +5 -4
  64. package/progress/circular/CircularProgress.d.ts +3 -3
  65. package/progress/circular/CircularProgress.js +2 -2
  66. package/progress/linear/LinearProgress.d.ts +3 -3
  67. package/progress/linear/LinearProgress.js +2 -2
  68. package/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +1 -1
  69. package/select/selectMenuAdapter/CollapsibleSelectMenu.js +21 -6
  70. package/select/selectMenuAdapter/SelectMenuItem.d.ts +2 -1
  71. package/tag/tag.d.ts +1 -0
  72. package/tag/tag.js +2 -2
  73. package/tag/types.d.ts +5 -4
  74. package/time-range-picker/RangeSelectorContainer.d.ts +2 -2
  75. package/time-range-picker/RangeSelectorContainer.js +12 -2
  76. 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
- }, [setTimeRange, dateHelpers, timeRangePresets, onChange, timezone, disableTimezone, minDate, maxDate]);
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]);