@hitachivantara/uikit-react-core 5.91.3 → 5.92.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.
Files changed (173) hide show
  1. package/dist/cjs/Accordion/Accordion.cjs +2 -2
  2. package/dist/cjs/ActionsGeneric/ActionsGeneric.cjs +2 -2
  3. package/dist/cjs/AppSwitcher/Action/Action.cjs +10 -2
  4. package/dist/cjs/Avatar/Avatar.cjs +3 -2
  5. package/dist/cjs/BaseDropdown/BaseDropdown.cjs +5 -5
  6. package/dist/cjs/BaseInput/BaseInput.styles.cjs +1 -1
  7. package/dist/cjs/BreadCrumb/PathElement/PathElement.cjs +4 -2
  8. package/dist/cjs/BreadCrumb/utils.cjs +2 -2
  9. package/dist/cjs/ButtonBase/ButtonBase.styles.cjs +1 -4
  10. package/dist/cjs/Calendar/CalendarNavigation/Navigation/Navigation.cjs +3 -3
  11. package/dist/cjs/Carousel/Carousel.cjs +4 -4
  12. package/dist/cjs/Carousel/CarouselControls.cjs +3 -3
  13. package/dist/cjs/ColorPicker/ColorPicker.cjs +2 -2
  14. package/dist/cjs/ColorPicker/ColorPicker.styles.cjs +4 -2
  15. package/dist/cjs/ColorPicker/SavedColors/SavedColors.cjs +3 -3
  16. package/dist/cjs/ColorPicker/SavedColors/SavedColors.styles.cjs +1 -10
  17. package/dist/cjs/DatePicker/DatePicker.cjs +2 -2
  18. package/dist/cjs/Dialog/Dialog.cjs +2 -2
  19. package/dist/cjs/Drawer/Drawer.cjs +2 -2
  20. package/dist/cjs/DropDownMenu/DropDownMenu.cjs +2 -2
  21. package/dist/cjs/DropDownMenu/DropDownMenu.styles.cjs +6 -1
  22. package/dist/cjs/DropdownButton/DropdownButton.cjs +5 -4
  23. package/dist/cjs/FileUploader/DropZone/DropZone.cjs +9 -2
  24. package/dist/cjs/FileUploader/File/File.cjs +4 -4
  25. package/dist/cjs/FileUploader/Preview/Preview.cjs +2 -2
  26. package/dist/cjs/FilterGroup/FilterContent/FilterContent.cjs +2 -2
  27. package/dist/cjs/FormElement/Adornment/Adornment.styles.cjs +5 -1
  28. package/dist/cjs/FormElement/InfoMessage/InfoMessage.styles.cjs +1 -1
  29. package/dist/cjs/FormElement/Label/Label.styles.cjs +1 -1
  30. package/dist/cjs/FormElement/Suggestions/Suggestions.cjs +2 -2
  31. package/dist/cjs/FormElement/WarningText/WarningText.cjs +2 -2
  32. package/dist/cjs/FormElement/WarningText/WarningText.styles.cjs +1 -1
  33. package/dist/cjs/InlineEditor/InlineEditor.cjs +3 -2
  34. package/dist/cjs/Input/Input.cjs +17 -27
  35. package/dist/cjs/Input/Input.styles.cjs +10 -12
  36. package/dist/cjs/Input/icons.cjs +4 -1
  37. package/dist/cjs/List/List.cjs +2 -2
  38. package/dist/cjs/Pagination/Pagination.cjs +5 -5
  39. package/dist/cjs/QueryBuilder/Rule/Rule.cjs +2 -2
  40. package/dist/cjs/QueryBuilder/RuleGroup/RuleGroup.cjs +6 -5
  41. package/dist/cjs/Section/Section.cjs +2 -2
  42. package/dist/cjs/Table/TableHeader/TableHeader.cjs +8 -5
  43. package/dist/cjs/Table/TableHeader/utils.cjs +5 -6
  44. package/dist/cjs/Table/hooks/useHvRowExpand.cjs +2 -2
  45. package/dist/cjs/Table/renderers/renderers.cjs +2 -2
  46. package/dist/cjs/Tag/Tag.cjs +6 -5
  47. package/dist/cjs/Tag/Tag.styles.cjs +8 -3
  48. package/dist/cjs/TimePicker/TimePicker.cjs +2 -8
  49. package/dist/cjs/TimePicker/Unit/Unit.cjs +3 -3
  50. package/dist/cjs/TreeView/TreeView.cjs +3 -3
  51. package/dist/cjs/VerticalNavigation/Header/Header.cjs +4 -4
  52. package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.cjs +2 -2
  53. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +3 -3
  54. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +1 -1
  55. package/dist/cjs/icons.cjs +83 -0
  56. package/dist/cjs/utils/Callout.cjs +5 -3
  57. package/dist/cjs/utils/iconVariant.cjs +9 -13
  58. package/dist/esm/Accordion/Accordion.js +2 -2
  59. package/dist/esm/Accordion/Accordion.js.map +1 -1
  60. package/dist/esm/ActionsGeneric/ActionsGeneric.js +2 -2
  61. package/dist/esm/ActionsGeneric/ActionsGeneric.js.map +1 -1
  62. package/dist/esm/AppSwitcher/Action/Action.js +10 -2
  63. package/dist/esm/AppSwitcher/Action/Action.js.map +1 -1
  64. package/dist/esm/Avatar/Avatar.js +3 -2
  65. package/dist/esm/Avatar/Avatar.js.map +1 -1
  66. package/dist/esm/BaseDropdown/BaseDropdown.js +5 -5
  67. package/dist/esm/BaseDropdown/BaseDropdown.js.map +1 -1
  68. package/dist/esm/BaseInput/BaseInput.styles.js +1 -1
  69. package/dist/esm/BaseInput/BaseInput.styles.js.map +1 -1
  70. package/dist/esm/BreadCrumb/PathElement/PathElement.js +4 -2
  71. package/dist/esm/BreadCrumb/PathElement/PathElement.js.map +1 -1
  72. package/dist/esm/BreadCrumb/utils.js +2 -2
  73. package/dist/esm/BreadCrumb/utils.js.map +1 -1
  74. package/dist/esm/ButtonBase/ButtonBase.styles.js +1 -4
  75. package/dist/esm/ButtonBase/ButtonBase.styles.js.map +1 -1
  76. package/dist/esm/Calendar/CalendarNavigation/Navigation/Navigation.js +3 -3
  77. package/dist/esm/Calendar/CalendarNavigation/Navigation/Navigation.js.map +1 -1
  78. package/dist/esm/Carousel/Carousel.js +4 -4
  79. package/dist/esm/Carousel/Carousel.js.map +1 -1
  80. package/dist/esm/Carousel/CarouselControls.js +3 -3
  81. package/dist/esm/Carousel/CarouselControls.js.map +1 -1
  82. package/dist/esm/ColorPicker/ColorPicker.js +2 -2
  83. package/dist/esm/ColorPicker/ColorPicker.js.map +1 -1
  84. package/dist/esm/ColorPicker/ColorPicker.styles.js +4 -2
  85. package/dist/esm/ColorPicker/ColorPicker.styles.js.map +1 -1
  86. package/dist/esm/ColorPicker/SavedColors/SavedColors.js +3 -3
  87. package/dist/esm/ColorPicker/SavedColors/SavedColors.js.map +1 -1
  88. package/dist/esm/ColorPicker/SavedColors/SavedColors.styles.js +1 -10
  89. package/dist/esm/ColorPicker/SavedColors/SavedColors.styles.js.map +1 -1
  90. package/dist/esm/DatePicker/DatePicker.js +2 -2
  91. package/dist/esm/DatePicker/DatePicker.js.map +1 -1
  92. package/dist/esm/Dialog/Dialog.js +2 -2
  93. package/dist/esm/Dialog/Dialog.js.map +1 -1
  94. package/dist/esm/Drawer/Drawer.js +2 -2
  95. package/dist/esm/Drawer/Drawer.js.map +1 -1
  96. package/dist/esm/DropDownMenu/DropDownMenu.js +2 -2
  97. package/dist/esm/DropDownMenu/DropDownMenu.js.map +1 -1
  98. package/dist/esm/DropDownMenu/DropDownMenu.styles.js +6 -1
  99. package/dist/esm/DropDownMenu/DropDownMenu.styles.js.map +1 -1
  100. package/dist/esm/DropdownButton/DropdownButton.js +5 -4
  101. package/dist/esm/DropdownButton/DropdownButton.js.map +1 -1
  102. package/dist/esm/FileUploader/DropZone/DropZone.js +9 -2
  103. package/dist/esm/FileUploader/DropZone/DropZone.js.map +1 -1
  104. package/dist/esm/FileUploader/File/File.js +4 -4
  105. package/dist/esm/FileUploader/File/File.js.map +1 -1
  106. package/dist/esm/FileUploader/Preview/Preview.js +2 -2
  107. package/dist/esm/FileUploader/Preview/Preview.js.map +1 -1
  108. package/dist/esm/FilterGroup/FilterContent/FilterContent.js +2 -2
  109. package/dist/esm/FilterGroup/FilterContent/FilterContent.js.map +1 -1
  110. package/dist/esm/FormElement/Adornment/Adornment.styles.js +5 -1
  111. package/dist/esm/FormElement/Adornment/Adornment.styles.js.map +1 -1
  112. package/dist/esm/FormElement/InfoMessage/InfoMessage.styles.js +1 -1
  113. package/dist/esm/FormElement/InfoMessage/InfoMessage.styles.js.map +1 -1
  114. package/dist/esm/FormElement/Label/Label.styles.js +1 -1
  115. package/dist/esm/FormElement/Label/Label.styles.js.map +1 -1
  116. package/dist/esm/FormElement/Suggestions/Suggestions.js +2 -2
  117. package/dist/esm/FormElement/Suggestions/Suggestions.js.map +1 -1
  118. package/dist/esm/FormElement/WarningText/WarningText.js +2 -2
  119. package/dist/esm/FormElement/WarningText/WarningText.js.map +1 -1
  120. package/dist/esm/FormElement/WarningText/WarningText.styles.js +1 -1
  121. package/dist/esm/FormElement/WarningText/WarningText.styles.js.map +1 -1
  122. package/dist/esm/InlineEditor/InlineEditor.js +3 -2
  123. package/dist/esm/InlineEditor/InlineEditor.js.map +1 -1
  124. package/dist/esm/Input/Input.js +16 -26
  125. package/dist/esm/Input/Input.js.map +1 -1
  126. package/dist/esm/Input/Input.styles.js +10 -12
  127. package/dist/esm/Input/Input.styles.js.map +1 -1
  128. package/dist/esm/Input/icons.js +4 -1
  129. package/dist/esm/Input/icons.js.map +1 -1
  130. package/dist/esm/List/List.js +2 -2
  131. package/dist/esm/List/List.js.map +1 -1
  132. package/dist/esm/Pagination/Pagination.js +5 -5
  133. package/dist/esm/Pagination/Pagination.js.map +1 -1
  134. package/dist/esm/QueryBuilder/Rule/Rule.js +2 -2
  135. package/dist/esm/QueryBuilder/Rule/Rule.js.map +1 -1
  136. package/dist/esm/QueryBuilder/RuleGroup/RuleGroup.js +6 -5
  137. package/dist/esm/QueryBuilder/RuleGroup/RuleGroup.js.map +1 -1
  138. package/dist/esm/Section/Section.js +2 -2
  139. package/dist/esm/Section/Section.js.map +1 -1
  140. package/dist/esm/Table/TableHeader/TableHeader.js +10 -7
  141. package/dist/esm/Table/TableHeader/TableHeader.js.map +1 -1
  142. package/dist/esm/Table/TableHeader/utils.js +5 -6
  143. package/dist/esm/Table/TableHeader/utils.js.map +1 -1
  144. package/dist/esm/Table/hooks/useHvRowExpand.js +2 -2
  145. package/dist/esm/Table/hooks/useHvRowExpand.js.map +1 -1
  146. package/dist/esm/Table/renderers/renderers.js +2 -2
  147. package/dist/esm/Table/renderers/renderers.js.map +1 -1
  148. package/dist/esm/Tag/Tag.js +6 -5
  149. package/dist/esm/Tag/Tag.js.map +1 -1
  150. package/dist/esm/Tag/Tag.styles.js +8 -3
  151. package/dist/esm/Tag/Tag.styles.js.map +1 -1
  152. package/dist/esm/TimePicker/TimePicker.js +4 -10
  153. package/dist/esm/TimePicker/TimePicker.js.map +1 -1
  154. package/dist/esm/TimePicker/Unit/Unit.js +3 -3
  155. package/dist/esm/TimePicker/Unit/Unit.js.map +1 -1
  156. package/dist/esm/TreeView/TreeView.js +3 -3
  157. package/dist/esm/TreeView/TreeView.js.map +1 -1
  158. package/dist/esm/VerticalNavigation/Header/Header.js +4 -4
  159. package/dist/esm/VerticalNavigation/Header/Header.js.map +1 -1
  160. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js +2 -2
  161. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js.map +1 -1
  162. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +3 -3
  163. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  164. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js +1 -1
  165. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -1
  166. package/dist/esm/icons.js +83 -0
  167. package/dist/esm/icons.js.map +1 -1
  168. package/dist/esm/utils/Callout.js +5 -3
  169. package/dist/esm/utils/Callout.js.map +1 -1
  170. package/dist/esm/utils/iconVariant.js +9 -13
  171. package/dist/esm/utils/iconVariant.js.map +1 -1
  172. package/dist/types/index.d.ts +2 -3
  173. package/package.json +5 -6
@@ -5,7 +5,7 @@ const uikitStyles = require("@hitachivantara/uikit-styles");
5
5
  const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvLabel", {
6
6
  root: { fontWeight: uikitStyles.theme.fontWeights.normal, display: "inline-block" },
7
7
  labelDisabled: { color: uikitStyles.theme.colors.textDisabled },
8
- childGutter: { paddingBottom: 4 }
8
+ childGutter: { paddingBottom: uikitStyles.theme.space.xxs }
9
9
  });
10
10
  exports.staticClasses = staticClasses;
11
11
  exports.useClasses = useClasses;
@@ -18,10 +18,10 @@ const HvSuggestions = React.forwardRef(function HvSuggestions2(props, extRef) {
18
18
  className,
19
19
  classes: classesProp,
20
20
  expanded = false,
21
- enablePortal = false,
21
+ enablePortal,
22
22
  open: openProp,
23
23
  anchorEl,
24
- suggestionValues = [],
24
+ suggestionValues,
25
25
  onClose,
26
26
  onSuggestionSelected,
27
27
  popperProps,
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
6
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
6
+ const icons = require("../../icons.cjs");
7
7
  const setId = require("../../utils/setId.cjs");
8
8
  const context = require("../context.cjs");
9
9
  const WarningText_styles = require("./WarningText.styles.cjs");
@@ -28,7 +28,7 @@ const HvWarningText = (props) => {
28
28
  const visible = isVisibleProp ?? context$1.status === "invalid";
29
29
  const id = idProp ?? setId.setId(context$1.id, "error");
30
30
  const showWarning = visible && !disabled;
31
- const adornment = adornmentProp || /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Fail, { size: "xs", className: classes.defaultIcon });
31
+ const adornment = adornmentProp || /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Fail", size: "xs", className: classes.defaultIcon });
32
32
  return /* @__PURE__ */ jsxRuntime.jsxs(
33
33
  "div",
34
34
  {
@@ -7,7 +7,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvWarningTe
7
7
  display: "none",
8
8
  color: uikitStyles.theme.form.errorColor
9
9
  },
10
- defaultIcon: { minWidth: "24px", width: "24px", height: "24px" },
10
+ defaultIcon: { margin: 6 },
11
11
  warningText: {
12
12
  ...uikitStyles.theme.typography.caption1,
13
13
  color: "inherit",
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
6
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
7
6
  const useControlled = require("../hooks/useControlled.cjs");
8
7
  const useEnhancedEffect = require("../hooks/useEnhancedEffect.cjs");
8
+ const icons = require("../icons.cjs");
9
9
  const generic = require("../types/generic.cjs");
10
10
  const keyboardUtils = require("../utils/keyboardUtils.cjs");
11
11
  const InlineEditor_styles = require("./InlineEditor.styles.cjs");
@@ -100,8 +100,9 @@ const HvInlineEditor = generic.fixedForwardRef(function HvInlineEditor2(props, r
100
100
  {
101
101
  variant: "secondaryGhost",
102
102
  endIcon: /* @__PURE__ */ jsxRuntime.jsx(
103
- uikitReactIcons.Edit,
103
+ icons.HvIcon,
104
104
  {
105
+ name: "Edit",
105
106
  color: "textDisabled",
106
107
  className: cx(classes.icon, {
107
108
  [classes.iconVisible]: showIcon
@@ -3,7 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const utils = require("@mui/material/utils");
6
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
7
6
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
8
7
  const validations = require("../BaseInput/validations.cjs");
9
8
  const Suggestions = require("../FormElement/Suggestions/Suggestions.cjs");
@@ -11,10 +10,11 @@ const useControlled = require("../hooks/useControlled.cjs");
11
10
  const useIsMounted = require("../hooks/useIsMounted.cjs");
12
11
  const useLabels = require("../hooks/useLabels.cjs");
13
12
  const useUniqueId = require("../hooks/useUniqueId.cjs");
13
+ const icons = require("../icons.cjs");
14
14
  const generic = require("../types/generic.cjs");
15
15
  const keyboardUtils = require("../utils/keyboardUtils.cjs");
16
16
  const setId = require("../utils/setId.cjs");
17
- const icons = require("./icons.cjs");
17
+ const icons$1 = require("./icons.cjs");
18
18
  const Input_styles = require("./Input.styles.cjs");
19
19
  const Adornment = require("../FormElement/Adornment/Adornment.cjs");
20
20
  const utils$1 = require("../FormElement/utils.cjs");
@@ -27,7 +27,7 @@ const WarningText = require("../FormElement/WarningText/WarningText.cjs");
27
27
  const DEFAULT_LABELS = {
28
28
  /** The label of the clear button. */
29
29
  clearButtonLabel: "Clear the text",
30
- /** The label of the reveal password button. */
30
+ /** The label of the reveal password button. @deprecated unused */
31
31
  revealPasswordButtonLabel: "Reveal password",
32
32
  /** The tooltip of the reveal password button when the password is hidden. */
33
33
  revealPasswordButtonClickToShowTooltip: "Click to show password.",
@@ -59,8 +59,8 @@ const HvInput = generic.fixedForwardRef(function HvInput2(props, ref) {
59
59
  required,
60
60
  readOnly,
61
61
  disabled,
62
- enablePortal = false,
63
- suggestOnFocus = false,
62
+ enablePortal,
63
+ suggestOnFocus,
64
64
  label,
65
65
  "aria-label": ariaLabel,
66
66
  "aria-labelledby": ariaLabelledBy,
@@ -73,17 +73,17 @@ const HvInput = generic.fixedForwardRef(function HvInput2(props, ref) {
73
73
  "aria-errormessage": ariaErrorMessage,
74
74
  type = "text",
75
75
  placeholder,
76
- autoFocus = false,
76
+ autoFocus,
77
77
  labels: labelsProp,
78
78
  validationMessages,
79
- disableClear = false,
80
- disableRevealPassword = false,
81
- disableSearchButton = false,
79
+ disableClear,
80
+ disableRevealPassword,
81
+ disableSearchButton,
82
82
  endAdornment,
83
83
  maxCharQuantity,
84
84
  minCharQuantity,
85
85
  validation,
86
- showValidationIcon = false,
86
+ showValidationIcon,
87
87
  suggestionListCallback,
88
88
  inputRef: inputRefProp,
89
89
  onBlur,
@@ -273,7 +273,7 @@ const HvInput = generic.fixedForwardRef(function HvInput2(props, ref) {
273
273
  onClick: handleClear,
274
274
  "aria-label": labels?.clearButtonLabel,
275
275
  "aria-controls": setId.setId(elementId, "input"),
276
- icon: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.CloseXS, {})
276
+ icon: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { compact: true, name: "Close", size: "xs" })
277
277
  }
278
278
  );
279
279
  }, [
@@ -294,7 +294,7 @@ const HvInput = generic.fixedForwardRef(function HvInput2(props, ref) {
294
294
  {
295
295
  className: classes.adornmentButton,
296
296
  onClick: onEnter && ((evt) => onEnter?.(evt, inputRef.current?.value ?? "")),
297
- icon: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Search, { title: labels.searchButtonLabel })
297
+ icon: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { compact: true, name: "Search", title: labels.searchButtonLabel })
298
298
  }
299
299
  );
300
300
  }, [
@@ -310,17 +310,14 @@ const HvInput = generic.fixedForwardRef(function HvInput2(props, ref) {
310
310
  return /* @__PURE__ */ jsxRuntime.jsx(
311
311
  Tooltip.HvTooltip,
312
312
  {
313
- disableFocusListener: true,
314
- disableTouchListener: true,
315
313
  title: revealPassword ? labels?.revealPasswordButtonClickToHideTooltip : labels?.revealPasswordButtonClickToShowTooltip,
316
314
  children: /* @__PURE__ */ jsxRuntime.jsx(
317
315
  Adornment.HvAdornment,
318
316
  {
319
317
  className: classes.adornmentButton,
320
318
  onClick: () => setRevealPassword((s) => !s),
321
- "aria-label": labels?.revealPasswordButtonLabel,
322
319
  "aria-controls": setId.setId(elementId, "input"),
323
- icon: /* @__PURE__ */ jsxRuntime.jsx(icons.EyeIcon, { selected: revealPassword }),
320
+ icon: /* @__PURE__ */ jsxRuntime.jsx(icons$1.EyeIcon, { selected: revealPassword }),
324
321
  tabIndex: 0,
325
322
  ...{ selected: revealPassword }
326
323
  }
@@ -332,34 +329,27 @@ const HvInput = generic.fixedForwardRef(function HvInput2(props, ref) {
332
329
  revealPassword,
333
330
  labels?.revealPasswordButtonClickToHideTooltip,
334
331
  labels?.revealPasswordButtonClickToShowTooltip,
335
- labels?.revealPasswordButtonLabel,
336
332
  classes.adornmentButton,
337
333
  elementId
338
334
  ]);
339
335
  const validationIcon = React.useMemo(() => {
340
336
  if (!showValidationIcon) return null;
341
337
  if (!utils$1.isValid(validationState)) return null;
342
- return /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Success, { color: "positive", className: classes.icon });
338
+ return /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Success", color: "positive", className: classes.icon });
343
339
  }, [showValidationIcon, validationState, classes.icon]);
344
- const customIconEl = React.useMemo(
345
- () => React.isValidElement(endAdornment) ? React.cloneElement(endAdornment, {
346
- className: cx(endAdornment.props.className, classes.icon)
347
- }) : endAdornment,
348
- [classes.icon, endAdornment, cx]
349
- );
350
340
  const adornments = React.useMemo(() => {
351
- if (!clearButton && !revealPasswordButton && !searchButton && !validationIcon && !customIconEl)
341
+ if (!clearButton && !revealPasswordButton && !searchButton && !validationIcon && !endAdornment)
352
342
  return null;
353
343
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.adornmentsBox, children: [
354
344
  clearButton,
355
345
  revealPasswordButton,
356
346
  searchButton,
357
- validationIcon || customIconEl
347
+ validationIcon || endAdornment
358
348
  ] });
359
349
  }, [
360
350
  classes.adornmentsBox,
361
351
  clearButton,
362
- customIconEl,
352
+ endAdornment,
363
353
  revealPasswordButton,
364
354
  searchButton,
365
355
  validationIcon
@@ -6,28 +6,26 @@ const Suggestions_styles = require("../FormElement/Suggestions/Suggestions.style
6
6
  require("../FormElement/Suggestions/Suggestions.cjs");
7
7
  const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvInput", {
8
8
  root: { display: "block" },
9
- labelContainer: { display: "flex", alignItems: "flex-start" },
9
+ labelContainer: {
10
+ display: "flex",
11
+ alignItems: "flex-start",
12
+ paddingBottom: 2
13
+ },
10
14
  label: {},
11
15
  description: {},
12
16
  adornmentsBox: {
13
17
  display: "flex",
14
18
  flexDirection: "row",
15
19
  height: "30px",
20
+ alignSelf: "center",
16
21
  alignItems: "center",
17
22
  justifyContent: "center",
18
- marginRight: 1
19
- },
20
- icon: {
21
- // TODO: review in v6 - don't assume/force size
22
- ":has(svg)": {
23
- width: "30px",
24
- height: "30px"
25
- }
23
+ borderRadius: "inherit",
24
+ flexShrink: 0
26
25
  },
26
+ icon: {},
27
27
  adornmentButton: {
28
- ":focus-visible,:hover": {
29
- backgroundColor: "transparent"
30
- }
28
+ borderRadius: "inherit"
31
29
  },
32
30
  iconClear: { display: "none" },
33
31
  hasSuggestions: {},
@@ -2,7 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const icons = require("../icons.cjs");
5
- const EyeIcon = ({ selected }) => /* @__PURE__ */ jsxRuntime.jsxs(icons.SvgBase, { viewBox: "0 0 16 16", style: { margin: 8 }, children: [
5
+ const EyeIcon = ({
6
+ selected,
7
+ ...others
8
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(icons.SvgBase, { viewBox: "0 0 16 16", ...others, children: [
6
9
  /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 8a3 3 0 1 1-3-3 3 3 0 0 1 3 3m5 0s-3.58 6-8 6-8-6-8-6 4-6 8-6 8 6 8 6m-1.2.03a22 22 0 0 0-2-2.32C11.01 3.94 9.35 3 8 3s-3 .93-4.77 2.68a22 22 0 0 0-2.02 2.35 18 18 0 0 0 1.85 2.28C4.25 11.53 6.08 13 8 13s3.73-1.45 4.91-2.67a18 18 0 0 0 1.88-2.3z" }),
7
10
  /* @__PURE__ */ jsxRuntime.jsx(
8
11
  "rect",
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const reactWindow = require("react-window");
6
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
7
6
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
7
+ const icons = require("../icons.cjs");
8
8
  const CounterLabel = require("../utils/CounterLabel.cjs");
9
9
  const setId = require("../utils/setId.cjs");
10
10
  const List_styles = require("./List.styles.cjs");
@@ -153,7 +153,7 @@ const HvList = (props) => {
153
153
  selected: multiSelect || selected ? selected : void 0,
154
154
  onClick: (evt) => handleSelect(evt, item),
155
155
  startAdornment,
156
- endAdornment: item.showNavIcon && /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropRightXS, { className: classes.box, iconSize: "XS" }),
156
+ endAdornment: item.showNavIcon && /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "CaretRight", className: classes.box, size: "xs" }),
157
157
  ...otherProps,
158
158
  children: renderSelectItem(item, itemId)
159
159
  },
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const material = require("@mui/material");
6
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
7
6
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
8
7
  const useLabels = require("../hooks/useLabels.cjs");
8
+ const icons = require("../icons.cjs");
9
9
  const setId = require("../utils/setId.cjs");
10
10
  const Pagination_styles = require("./Pagination.styles.cjs");
11
11
  const Select = require("./Select.cjs");
@@ -151,7 +151,7 @@ const HvPagination = React.forwardRef(function HvPagination2(props, ref) {
151
151
  disabled: !canPrevious,
152
152
  onClick: () => changePage(0),
153
153
  title: labels?.firstPage || labels?.paginationFirstPageTitle,
154
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Start, { className: classes.icon, iconSize: "XS" })
154
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Start", className: classes.icon, size: "xs" })
155
155
  }
156
156
  ),
157
157
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -162,7 +162,7 @@ const HvPagination = React.forwardRef(function HvPagination2(props, ref) {
162
162
  disabled: !canPrevious,
163
163
  onClick: () => changePage(page - 1),
164
164
  title: labels?.previousPage || labels?.paginationPreviousPageTitle,
165
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Backwards, { className: classes.icon, iconSize: "XS" })
165
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Backwards", className: classes.icon, size: "xs" })
166
166
  }
167
167
  ),
168
168
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.pageInfo, children: [
@@ -186,7 +186,7 @@ const HvPagination = React.forwardRef(function HvPagination2(props, ref) {
186
186
  disabled: !canNext,
187
187
  onClick: () => changePage(page + 1),
188
188
  title: labels?.nextPage || labels?.paginationNextPageTitle,
189
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Forwards, { className: classes.icon, iconSize: "XS" })
189
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Forwards", className: classes.icon, size: "xs" })
190
190
  }
191
191
  ),
192
192
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -197,7 +197,7 @@ const HvPagination = React.forwardRef(function HvPagination2(props, ref) {
197
197
  disabled: !canNext,
198
198
  onClick: () => changePage(pages - 1),
199
199
  title: labels?.lastPage || labels?.paginationLastPageTitle,
200
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.End, { className: classes.icon, iconSize: "XS" })
200
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "End", className: classes.icon, size: "xs" })
201
201
  }
202
202
  )
203
203
  ] })
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const styles = require("@mui/material/styles");
6
6
  const useMediaQuery = require("@mui/material/useMediaQuery");
7
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
8
7
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
8
+ const icons = require("../../icons.cjs");
9
9
  const Context = require("../Context.cjs");
10
10
  const Rule_styles = require("./Rule.styles.cjs");
11
11
  const Grid = require("../../Grid/Grid.cjs");
@@ -95,7 +95,7 @@ const Rule = (props) => {
95
95
  dialog: labels.rule.delete
96
96
  }),
97
97
  disabled: readOnly,
98
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Delete, {})
98
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Delete" })
99
99
  }
100
100
  ) })
101
101
  ]
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
5
+ const icons = require("../../icons.cjs");
6
6
  const Context = require("../Context.cjs");
7
7
  const QueryBuilder_styles = require("../QueryBuilder.styles.cjs");
8
8
  const Button = require("../../Button/Button.cjs");
@@ -39,7 +39,7 @@ const RuleGroup = ({
39
39
  dispatchAction({ type: "add-rule", id });
40
40
  },
41
41
  disabled: readOnly,
42
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Add, {}),
42
+ startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Add" }),
43
43
  children: level === 0 && labels.query?.addRule?.label != null ? labels.query?.addRule?.label : labels.group.addRule.label
44
44
  }
45
45
  ) }),
@@ -51,7 +51,7 @@ const RuleGroup = ({
51
51
  dispatchAction({ type: "add-group", id });
52
52
  },
53
53
  disabled: readOnly,
54
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Add, {}),
54
+ startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Add" }),
55
55
  children: level === 0 && labels.query?.addGroup?.label != null ? labels.query?.addGroup?.label : labels.group.addGroup.label
56
56
  }
57
57
  ) })
@@ -105,8 +105,9 @@ const RuleGroup = ({
105
105
  title: level === 0 && labels.query?.delete?.tooltip || labels.group.delete.tooltip || level === 0 && labels.query?.delete?.ariaLabel || labels.group.delete.ariaLabel,
106
106
  disabled: readOnly,
107
107
  children: /* @__PURE__ */ jsxRuntime.jsx(
108
- uikitReactIcons.Delete,
108
+ icons.HvIcon,
109
109
  {
110
+ name: "Delete",
110
111
  className: cx({ [classes.topRemoveButtonDisabled]: readOnly })
111
112
  }
112
113
  )
@@ -190,7 +191,7 @@ const RuleGroup = ({
190
191
  )
191
192
  ] })
192
193
  ] }),
193
- icon: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Info, {})
194
+ icon: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Info" })
194
195
  }
195
196
  ),
196
197
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
6
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
7
6
  const useExpandable = require("../hooks/useExpandable.cjs");
7
+ const icons = require("../icons.cjs");
8
8
  const Section_styles = require("./Section.styles.cjs");
9
9
  const Button = require("../Button/Button.cjs");
10
10
  const HvSection = React.forwardRef(
@@ -54,7 +54,7 @@ const HvSection = React.forwardRef(
54
54
  "aria-label": isOpen ? "Collapse" : "Expand",
55
55
  ...buttonProps,
56
56
  ...expandButtonProps,
57
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, { rotate: isOpen })
57
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "CaretDown", size: "xs", rotate: isOpen })
58
58
  }
59
59
  ),
60
60
  title,
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
6
+ const icons = require("../../icons.cjs");
6
7
  const helpers = require("../../utils/helpers.cjs");
7
8
  const TableContext = require("../TableContext.cjs");
8
9
  const TableSectionContext = require("../TableSectionContext.cjs");
@@ -44,10 +45,6 @@ const HvTableHeader = React.forwardRef(
44
45
  const type = typeProp || tableSectionContext?.type || "body";
45
46
  const isHeadCell = type === "head";
46
47
  const scope = scopeProp ?? (isHeadCell ? "col" : "row");
47
- const Sort = React.useMemo(
48
- () => utils.getSortIcon(sorted && sortDirection),
49
- [sorted, sortDirection]
50
- );
51
48
  const Component = component || tableContext?.components?.Th || defaultComponent;
52
49
  const role = Component === defaultComponent ? null : isHeadCell ? "columnheader" : "rowheader";
53
50
  const paragraph = utils.isParagraph(children);
@@ -96,7 +93,13 @@ const HvTableHeader = React.forwardRef(
96
93
  icon: true,
97
94
  "aria-label": "Sort",
98
95
  ...sortButtonProps,
99
- children: /* @__PURE__ */ jsxRuntime.jsx(Sort, { className: classes.sortIcon })
96
+ children: /* @__PURE__ */ jsxRuntime.jsx(
97
+ icons.HvIcon,
98
+ {
99
+ name: utils.getSortIconName(sorted && sortDirection),
100
+ className: classes.sortIcon
101
+ }
102
+ )
100
103
  }
101
104
  ),
102
105
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1,18 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
4
- const getSortIcon = (dir) => {
3
+ const getSortIconName = (dir) => {
5
4
  switch (dir) {
6
5
  case "ascending":
7
- return uikitReactIcons.SortAscendingXS;
6
+ return "SortAsc";
8
7
  case "descending":
9
- return uikitReactIcons.SortDescendingXS;
8
+ return "SortDesc";
10
9
  default:
11
- return uikitReactIcons.SortXS;
10
+ return "Sort";
12
11
  }
13
12
  };
14
13
  const isParagraph = (children) => {
15
14
  return typeof children === "string" && /\s/.test(children);
16
15
  };
17
- exports.getSortIcon = getSortIcon;
16
+ exports.getSortIconName = getSortIconName;
18
17
  exports.isParagraph = isParagraph;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
5
4
  const useLabels = require("../../hooks/useLabels.cjs");
5
+ const icons = require("../../icons.cjs");
6
6
  const Button = require("../../Button/Button.cjs");
7
7
  const Typography = require("../../Typography/Typography.cjs");
8
8
  const DEFAULT_LABELS = {
@@ -24,7 +24,7 @@ const CellWithExpandButton = ({
24
24
  "aria-label": row.isExpanded ? labels.collapseRowButtonAriaLabel : labels.expandRowButtonAriaLabel,
25
25
  "aria-expanded": row.isExpanded,
26
26
  onClick: rowProps?.onClick,
27
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, { rotate: row.isExpanded })
27
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "CaretDown", size: "xs", rotate: row.isExpanded })
28
28
  }
29
29
  ),
30
30
  cell?.value && /* @__PURE__ */ jsxRuntime.jsx(Typography.HvTypography, { variant: "label", component: "span", children: cell.value })
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("@emotion/react");
5
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
5
+ const icons = require("../../icons.cjs");
6
6
  const setId = require("../../utils/setId.cjs");
7
7
  const DateColumnCell = require("./DateColumnCell.cjs");
8
8
  const DropdownColumnCell = require("./DropdownColumnCell.cjs");
@@ -52,7 +52,7 @@ function hvDateColumn(col, dateFormat) {
52
52
  ...col
53
53
  };
54
54
  }
55
- function hvExpandColumn(col, expandRowButtonAriaLabel, collapseRowButtonAriaLabel, getCanRowExpand, ExpandedIcon = /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropUpXS, {}), CollapsedIcon = /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, {})) {
55
+ function hvExpandColumn(col, expandRowButtonAriaLabel, collapseRowButtonAriaLabel, getCanRowExpand, ExpandedIcon = /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "CaretDown", size: "xs", rotate: true }), CollapsedIcon = /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "CaretDown", size: "xs" })) {
56
56
  return {
57
57
  Cell: (cellProps) => {
58
58
  const { value, row } = cellProps;
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
6
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
7
6
  const uikitStyles = require("@hitachivantara/uikit-styles");
8
7
  const CheckBoxIcon = require("../BaseCheckBox/CheckBoxIcon.cjs");
9
8
  const useControlled = require("../hooks/useControlled.cjs");
9
+ const icons = require("../icons.cjs");
10
10
  const keyboardUtils = require("../utils/keyboardUtils.cjs");
11
11
  const Tag_styles = require("./Tag.styles.cjs");
12
12
  const ButtonBase = require("../ButtonBase/ButtonBase.cjs");
@@ -57,15 +57,16 @@ const HvTag = React.forwardRef(function HvTag2(props, ref) {
57
57
  [classes.disabledDeleteIcon]: disabled
58
58
  }),
59
59
  onClick: handleDeleteClick
60
- }) : /* @__PURE__ */ jsxRuntime.jsx(
61
- uikitReactIcons.CloseXS,
60
+ }) : /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
61
+ icons.HvIcon,
62
62
  {
63
- size: "XS",
63
+ compact: true,
64
+ name: "Close",
64
65
  onClick: handleDeleteClick,
65
66
  className: cx(classes.deleteIcon, classes.button, classes.tagButton),
66
67
  ...deleteButtonProps
67
68
  }
68
- );
69
+ ) });
69
70
  return /* @__PURE__ */ jsxRuntime.jsxs(
70
71
  ButtonBase.HvButtonBase,
71
72
  {
@@ -16,6 +16,11 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTag", {
16
16
  transition: "background-color 0.3s ease",
17
17
  "&,:hover,:focus-visible": {
18
18
  backgroundColor: "var(--tagColor)"
19
+ },
20
+ "& div:has($deleteIcon)": {
21
+ // ensure icon container doesn't grow into $label
22
+ width: "max-content",
23
+ lineHeight: 0
19
24
  }
20
25
  },
21
26
  hasIcon: {
@@ -65,9 +70,9 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTag", {
65
70
  color: "inherit"
66
71
  },
67
72
  deleteIcon: {
68
- width: 16,
69
- height: 16,
70
- "&:hover": {
73
+ margin: 0,
74
+ padding: 2,
75
+ ":hover": {
71
76
  backgroundColor: uikitStyles.theme.colors.bgHover
72
77
  }
73
78
  },
@@ -6,11 +6,11 @@ const date = require("@internationalized/date");
6
6
  const utils$1 = require("@mui/material/utils");
7
7
  const datepicker$1 = require("@react-aria/datepicker");
8
8
  const datepicker = require("@react-stately/datepicker");
9
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
10
9
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
11
10
  const utils = require("../Calendar/utils.cjs");
12
11
  const useControlled = require("../hooks/useControlled.cjs");
13
12
  const useUniqueId = require("../hooks/useUniqueId.cjs");
13
+ const icons = require("../icons.cjs");
14
14
  const setId = require("../utils/setId.cjs");
15
15
  const Placeholder = require("./Placeholder.cjs");
16
16
  const TimePicker_styles = require("./TimePicker.styles.cjs");
@@ -166,13 +166,7 @@ const HvTimePicker = React.forwardRef(
166
166
  headerOpen: classes.dropdownHeaderOpen
167
167
  },
168
168
  placement: "right",
169
- adornment: /* @__PURE__ */ jsxRuntime.jsx(
170
- uikitReactIcons.Time,
171
- {
172
- color: disabled ? "textDisabled" : void 0,
173
- className: classes.icon
174
- }
175
- ),
169
+ adornment: /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "Time", className: classes.icon }),
176
170
  expanded: open,
177
171
  onToggle: (evt, newOpen) => {
178
172
  if (disableExpand) return;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
5
4
  const uikitStyles = require("@hitachivantara/uikit-styles");
5
+ const icons = require("../../icons.cjs");
6
6
  const Unit_styles = require("./Unit.styles.cjs");
7
7
  const Button = require("../../Button/Button.cjs");
8
8
  const BaseInput = require("../../BaseInput/BaseInput.cjs");
@@ -19,7 +19,7 @@ const Unit = ({
19
19
  const { type, text } = segment;
20
20
  const placeholder = placeholderProp ?? segment.placeholder;
21
21
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.root, children: [
22
- type !== "literal" && /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropUpXS, { onClick: onAdd }),
22
+ type !== "literal" && /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "CaretDown", size: "xs", rotate: true, onClick: onAdd }),
23
23
  type === "literal" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.separator, children: text }),
24
24
  type === "dayPeriod" && /* @__PURE__ */ jsxRuntime.jsx(Button.HvButton, { icon: true, className: classes.periodToggle, onClick: onAdd, children: text }),
25
25
  ["hour", "minute", "second"].includes(type) && /* @__PURE__ */ jsxRuntime.jsx(
@@ -47,7 +47,7 @@ const Unit = ({
47
47
  inputProps: { autoComplete: "off", type: "number" }
48
48
  }
49
49
  ),
50
- type !== "literal" && /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, { onClick: onSub })
50
+ type !== "literal" && /* @__PURE__ */ jsxRuntime.jsx(icons.HvIcon, { name: "CaretDown", size: "xs", onClick: onSub })
51
51
  ] });
52
52
  };
53
53
  exports.Unit = Unit;