@hitachivantara/uikit-react-core 5.87.1 → 5.87.3

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 (77) hide show
  1. package/dist/cjs/BaseInput/BaseInput.cjs +44 -83
  2. package/dist/cjs/BaseInput/BaseInput.styles.cjs +68 -142
  3. package/dist/cjs/BaseRadio/BaseRadio.styles.cjs +7 -6
  4. package/dist/cjs/BulkActions/BulkActions.cjs +9 -18
  5. package/dist/cjs/Calendar/CalendarHeader/CalendarHeader.cjs +0 -6
  6. package/dist/cjs/Calendar/CalendarHeader/CalendarHeader.styles.cjs +1 -5
  7. package/dist/cjs/CheckBoxGroup/CheckBoxGroup.cjs +9 -9
  8. package/dist/cjs/Dropdown/Dropdown.cjs +8 -10
  9. package/dist/cjs/FilterGroup/RightPanel/RightPanel.cjs +9 -10
  10. package/dist/cjs/InlineEditor/InlineEditor.cjs +10 -14
  11. package/dist/cjs/InlineEditor/InlineEditor.styles.cjs +13 -36
  12. package/dist/cjs/Input/Input.cjs +4 -5
  13. package/dist/cjs/Input/Input.styles.cjs +5 -19
  14. package/dist/cjs/List/List.cjs +11 -11
  15. package/dist/cjs/Pagination/Pagination.styles.cjs +1 -0
  16. package/dist/cjs/Radio/Radio.cjs +2 -1
  17. package/dist/cjs/Radio/Radio.styles.cjs +7 -27
  18. package/dist/cjs/Select/Select.styles.cjs +1 -1
  19. package/dist/cjs/Table/TableCell/TableCell.styles.cjs +14 -14
  20. package/dist/cjs/Table/TableHeader/TableHeader.styles.cjs +16 -15
  21. package/dist/cjs/TagsInput/TagsInput.styles.cjs +3 -8
  22. package/dist/cjs/TextArea/TextArea.styles.cjs +1 -1
  23. package/dist/cjs/TimePicker/Unit/Unit.cjs +0 -1
  24. package/dist/cjs/TimePicker/Unit/Unit.styles.cjs +0 -3
  25. package/dist/cjs/utils/CounterLabel.cjs +16 -0
  26. package/dist/esm/BaseInput/BaseInput.js +45 -84
  27. package/dist/esm/BaseInput/BaseInput.js.map +1 -1
  28. package/dist/esm/BaseInput/BaseInput.styles.js +68 -142
  29. package/dist/esm/BaseInput/BaseInput.styles.js.map +1 -1
  30. package/dist/esm/BaseRadio/BaseRadio.styles.js +7 -6
  31. package/dist/esm/BaseRadio/BaseRadio.styles.js.map +1 -1
  32. package/dist/esm/BulkActions/BulkActions.js +10 -19
  33. package/dist/esm/BulkActions/BulkActions.js.map +1 -1
  34. package/dist/esm/Calendar/CalendarHeader/CalendarHeader.js +0 -6
  35. package/dist/esm/Calendar/CalendarHeader/CalendarHeader.js.map +1 -1
  36. package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js +1 -5
  37. package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  38. package/dist/esm/CheckBoxGroup/CheckBoxGroup.js +10 -10
  39. package/dist/esm/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
  40. package/dist/esm/Dropdown/Dropdown.js +8 -10
  41. package/dist/esm/Dropdown/Dropdown.js.map +1 -1
  42. package/dist/esm/FilterGroup/RightPanel/RightPanel.js +9 -10
  43. package/dist/esm/FilterGroup/RightPanel/RightPanel.js.map +1 -1
  44. package/dist/esm/InlineEditor/InlineEditor.js +10 -14
  45. package/dist/esm/InlineEditor/InlineEditor.js.map +1 -1
  46. package/dist/esm/InlineEditor/InlineEditor.styles.js +13 -36
  47. package/dist/esm/InlineEditor/InlineEditor.styles.js.map +1 -1
  48. package/dist/esm/Input/Input.js +4 -5
  49. package/dist/esm/Input/Input.js.map +1 -1
  50. package/dist/esm/Input/Input.styles.js +5 -19
  51. package/dist/esm/Input/Input.styles.js.map +1 -1
  52. package/dist/esm/List/List.js +11 -11
  53. package/dist/esm/List/List.js.map +1 -1
  54. package/dist/esm/Pagination/Pagination.styles.js +1 -0
  55. package/dist/esm/Pagination/Pagination.styles.js.map +1 -1
  56. package/dist/esm/Radio/Radio.js +2 -1
  57. package/dist/esm/Radio/Radio.js.map +1 -1
  58. package/dist/esm/Radio/Radio.styles.js +7 -27
  59. package/dist/esm/Radio/Radio.styles.js.map +1 -1
  60. package/dist/esm/Select/Select.styles.js +1 -1
  61. package/dist/esm/Select/Select.styles.js.map +1 -1
  62. package/dist/esm/Table/TableCell/TableCell.styles.js +14 -14
  63. package/dist/esm/Table/TableCell/TableCell.styles.js.map +1 -1
  64. package/dist/esm/Table/TableHeader/TableHeader.styles.js +16 -15
  65. package/dist/esm/Table/TableHeader/TableHeader.styles.js.map +1 -1
  66. package/dist/esm/TagsInput/TagsInput.styles.js +3 -8
  67. package/dist/esm/TagsInput/TagsInput.styles.js.map +1 -1
  68. package/dist/esm/TextArea/TextArea.styles.js +1 -1
  69. package/dist/esm/TextArea/TextArea.styles.js.map +1 -1
  70. package/dist/esm/TimePicker/Unit/Unit.js +0 -1
  71. package/dist/esm/TimePicker/Unit/Unit.js.map +1 -1
  72. package/dist/esm/TimePicker/Unit/Unit.styles.js +0 -3
  73. package/dist/esm/TimePicker/Unit/Unit.styles.js.map +1 -1
  74. package/dist/esm/utils/CounterLabel.js +16 -0
  75. package/dist/esm/utils/CounterLabel.js.map +1 -0
  76. package/dist/types/index.d.ts +29 -31
  77. package/package.json +6 -6
@@ -2,38 +2,14 @@
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 react = require("@emotion/react");
6
5
  const MuiInputBase = require("@mui/material/InputBase");
7
6
  const utils$1 = require("@mui/material/utils");
8
7
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
9
- const uikitStyles = require("@hitachivantara/uikit-styles");
10
8
  const BaseInput_styles = require("./BaseInput.styles.cjs");
11
9
  const context = require("../FormElement/context.cjs");
12
10
  const utils = require("../FormElement/utils.cjs");
13
11
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
14
12
  const MuiInputBase__default = /* @__PURE__ */ _interopDefault(MuiInputBase);
15
- const baseInputStyles = react.css({
16
- "input:-webkit-autofill": {
17
- WebkitBoxShadow: `0 0 0px 1000px ${uikitStyles.theme.colors.atmo1} inset`,
18
- WebkitTextFillColor: uikitStyles.theme.colors.secondary
19
- },
20
- // Clears number input up/down arrows in Chrome and Firefox
21
- "input::-webkit-outer-spin-button,input::-webkit-inner-spin-button": {
22
- WebkitAppearance: "none",
23
- margin: 0
24
- },
25
- "input[type=number]": {
26
- MozAppearance: "textfield"
27
- },
28
- // Clears time input clock in Chrome
29
- "input::-webkit-calendar-picker-indicator": {
30
- display: "none"
31
- },
32
- // Clears search input clear button in Chrome
33
- "input::-webkit-search-decoration,input::-webkit-search-cancel-button,input::-webkit-search-results-button,input::-webkit-search-results-decoration": {
34
- display: "none"
35
- }
36
- });
37
13
  const HvBaseInput = React.forwardRef(function HvBaseInput2(props, ref) {
38
14
  const {
39
15
  classes: classesProp,
@@ -50,7 +26,7 @@ const HvBaseInput = React.forwardRef(function HvBaseInput2(props, ref) {
50
26
  placeholder,
51
27
  multiline,
52
28
  resizable,
53
- invalid,
29
+ invalid: invalidProp,
54
30
  inputRef,
55
31
  inputProps = {},
56
32
  ...others
@@ -65,72 +41,57 @@ const HvBaseInput = React.forwardRef(function HvBaseInput2(props, ref) {
65
41
  formElementContext
66
42
  );
67
43
  const forkedRef = utils$1.useForkRef(ref, inputRef);
68
- const localInvalid = invalid || formElementProps.status === "invalid";
44
+ const invalid = invalidProp || formElementProps.status === "invalid";
69
45
  const formElementDescriptorsContext = React.useContext(
70
46
  context.HvFormElementDescriptorsContext
71
47
  );
72
48
  const ariaProps = utils.buildAriaPropsFromContext(
73
49
  inputProps,
74
50
  formElementDescriptorsContext,
75
- localInvalid,
51
+ invalid,
76
52
  id
77
53
  );
78
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
79
- /* @__PURE__ */ jsxRuntime.jsx(react.Global, { styles: baseInputStyles }),
80
- /* @__PURE__ */ jsxRuntime.jsxs(
81
- "div",
82
- {
83
- className: cx(classes.root, className, {
84
- [classes.disabled]: formElementProps.disabled,
85
- [classes.invalid]: localInvalid,
86
- [classes.resizable]: multiline && resizable,
87
- [classes.readOnly]: formElementProps.readOnly
88
- }),
89
- children: [
90
- /* @__PURE__ */ jsxRuntime.jsx(
91
- MuiInputBase__default.default,
92
- {
93
- id,
94
- name: formElementProps.name,
95
- value,
96
- defaultValue,
97
- type,
98
- placeholder,
99
- readOnly: !!formElementProps.readOnly,
100
- disabled: formElementProps.disabled,
101
- onChange: (event) => onChange?.(event, event.target.value),
102
- className: cx({
103
- [classes.inputRootInvalid]: localInvalid,
104
- [classes.inputRootReadOnly]: formElementProps.readOnly
105
- }),
106
- classes: {
107
- root: classes.inputRoot,
108
- focused: classes.inputRootFocused,
109
- disabled: classes.inputRootDisabled,
110
- multiline: classes.inputRootMultiline,
111
- input: cx(classes.input, {
112
- [classes.inputResizable]: !formElementProps.disabled && resizable,
113
- [classes.inputDisabled]: formElementProps.disabled,
114
- [classes.inputReadOnly]: formElementProps.readOnly
115
- })
116
- },
117
- inputProps: {
118
- // Avoid the required attribute at the root node
119
- required: formElementProps.required,
120
- ...inputProps,
121
- ...ariaProps
122
- },
123
- inputRef: forkedRef,
124
- multiline,
125
- rows: 10,
126
- ...others
127
- }
128
- ),
129
- !multiline && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "presentation", className: classes.inputBorderContainer })
130
- ]
131
- }
132
- )
133
- ] });
54
+ return /* @__PURE__ */ jsxRuntime.jsx(
55
+ MuiInputBase__default.default,
56
+ {
57
+ id,
58
+ name: formElementProps.name,
59
+ value,
60
+ defaultValue,
61
+ placeholder,
62
+ readOnly: !!formElementProps.readOnly,
63
+ disabled: formElementProps.disabled,
64
+ onChange: (event) => onChange?.(event, event.target.value),
65
+ className: cx(classes.root, classes.inputRoot, className, {
66
+ [classes.inputRootMultiline]: multiline,
67
+ [classes.multiline]: multiline,
68
+ [classes.inputRootInvalid]: invalid,
69
+ [classes.invalid]: invalid,
70
+ [classes.inputRootReadOnly]: formElementProps.readOnly,
71
+ [classes.readOnly]: formElementProps.readOnly,
72
+ [classes.inputRootDisabled]: formElementProps.disabled,
73
+ [classes.disabled]: formElementProps.disabled
74
+ }),
75
+ classes: {
76
+ focused: cx(classes.focused, classes.inputRootFocused),
77
+ input: cx(classes.input, {
78
+ [classes.inputResizable]: !formElementProps.disabled && resizable,
79
+ [classes.inputDisabled]: formElementProps.disabled,
80
+ [classes.inputReadOnly]: formElementProps.readOnly
81
+ })
82
+ },
83
+ inputProps: {
84
+ // Avoid the required attribute at the root node
85
+ required: formElementProps.required,
86
+ ...inputProps,
87
+ ...ariaProps
88
+ },
89
+ inputRef: forkedRef,
90
+ multiline,
91
+ ...multiline ? { rows: 10 } : { type },
92
+ ...others
93
+ }
94
+ );
134
95
  });
135
96
  exports.baseInputClasses = BaseInput_styles.staticClasses;
136
97
  exports.HvBaseInput = HvBaseInput;
@@ -5,176 +5,99 @@ const uikitStyles = require("@hitachivantara/uikit-styles");
5
5
  const focusUtils = require("../utils/focusUtils.cjs");
6
6
  const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBaseInput", {
7
7
  root: {
8
- display: "inline-block",
9
- width: "100%",
10
- position: "relative",
11
- "&:hover $inputBorderContainer": {
12
- backgroundColor: uikitStyles.theme.colors.primary
13
- },
14
- "&:focus-within $inputBorderContainer": {
15
- backgroundColor: uikitStyles.theme.colors.primary
16
- }
17
- },
18
- disabled: {
19
- "& $inputRoot": {
20
- backgroundColor: uikitStyles.theme.colors.atmo2,
21
- borderColor: uikitStyles.theme.colors.secondary_60
22
- },
23
- "& $inputBorderContainer": {
24
- backgroundColor: uikitStyles.theme.colors.atmo4
25
- },
26
- "&:hover $inputBorderContainer": {
27
- backgroundColor: uikitStyles.theme.colors.atmo4
28
- },
29
- "&& $input": {
30
- color: uikitStyles.theme.colors.secondary_60,
31
- WebkitTextFillColor: uikitStyles.theme.colors.secondary_60
32
- },
33
- "& $inputRootMultiline": {
34
- "& $input": {
35
- backgroundColor: uikitStyles.theme.colors.atmo2,
36
- border: `1px solid ${uikitStyles.theme.colors.secondary_60}`
37
- }
38
- },
39
- "&:hover $inputRootMultiline": {
40
- "& $input": {
41
- backgroundColor: uikitStyles.theme.colors.atmo2,
42
- border: `1px solid ${uikitStyles.theme.colors.secondary_60}`
43
- }
44
- }
45
- },
46
- invalid: {
47
- "&:not(.disabled)": {
48
- "& $inputBorderContainer": {
49
- backgroundColor: uikitStyles.theme.colors.negative_120
50
- },
51
- "&:hover $inputBorderContainer": {
52
- backgroundColor: uikitStyles.theme.colors.negative_120
53
- },
54
- "& $inputRootMultiline": {
55
- "& $input": {
56
- border: `1px solid ${uikitStyles.theme.colors.negative_120}`
57
- }
58
- },
59
- "&:hover $inputRootMultiline": {
60
- "& $input": {
61
- border: `1px solid ${uikitStyles.theme.colors.negative_120}`
62
- }
63
- },
64
- "&:focus-within $inputRootMultiline": {
65
- "& $input": {
66
- border: `1px solid ${uikitStyles.theme.colors.negative_120}`
67
- }
8
+ // #region `input` style reset
9
+ "input:-webkit-autofill": {
10
+ WebkitBoxShadow: `0 0 0px 1000px ${uikitStyles.theme.colors.atmo1} inset`,
11
+ WebkitTextFillColor: uikitStyles.theme.colors.secondary
12
+ },
13
+ // Clears number input up/down arrows in Chrome and Firefox
14
+ "input[type=number]": {
15
+ MozAppearance: "textfield",
16
+ "&::-webkit-outer-spin-button,&::-webkit-inner-spin-button": {
17
+ WebkitAppearance: "none",
18
+ margin: 0
68
19
  }
69
- }
70
- },
71
- resizable: { width: "auto" },
72
- readOnly: {
73
- "& $inputBorderContainer": {
74
- backgroundColor: "transparent"
75
20
  },
76
- "&:hover $inputBorderContainer": {
77
- backgroundColor: "transparent"
78
- },
79
- "&:focus-within $inputBorderContainer": {
80
- backgroundColor: "transparent"
81
- },
82
- "& $inputRootMultiline": {
83
- "& $input": {
84
- border: `1px solid ${uikitStyles.theme.colors.secondary_60}`,
85
- backgroundColor: uikitStyles.theme.colors.atmo2
86
- }
21
+ // Clears time input clock in Chrome
22
+ "input::-webkit-calendar-picker-indicator": {
23
+ display: "none"
87
24
  },
88
- "&:hover $inputRootMultiline": {
89
- "& $input": {
90
- border: `1px solid ${uikitStyles.theme.colors.secondary_60}`,
91
- backgroundColor: uikitStyles.theme.colors.atmo2
92
- }
25
+ // Clears search input clear button in Chrome
26
+ "input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration": {
27
+ display: "none"
93
28
  },
94
- "&:focus-within $inputRootMultiline": {
95
- "& $input": {
96
- border: `1px solid ${uikitStyles.theme.colors.secondary_60}`,
97
- backgroundColor: uikitStyles.theme.colors.atmo2
98
- }
99
- }
100
- },
101
- inputBorderContainer: {
102
- position: "absolute",
103
- width: "calc(100% - 4px)",
104
- height: "0px",
105
- top: "31px",
106
- left: "2px",
107
- backgroundColor: uikitStyles.theme.colors.atmo4
108
- },
109
- inputRootInvalid: { borderColor: uikitStyles.theme.colors.negative_120 },
110
- inputRootReadOnly: {
111
- borderColor: uikitStyles.theme.colors.secondary_60,
112
- backgroundColor: uikitStyles.theme.colors.atmo2
113
- },
114
- inputRoot: {
115
- margin: 0,
29
+ // #endregion
30
+ display: "inline-flex",
116
31
  width: "100%",
32
+ position: "relative",
33
+ margin: 0,
117
34
  borderRadius: uikitStyles.theme.radii.base,
118
35
  height: "32px",
119
- border: `1px solid ${uikitStyles.theme.colors.secondary}`,
36
+ borderWidth: 1,
37
+ borderColor: uikitStyles.theme.colors.secondary,
120
38
  boxSizing: "border-box",
121
39
  backgroundColor: uikitStyles.theme.colors.atmo1,
122
40
  fontFamily: uikitStyles.theme.fontFamily.body,
123
- "&:hover:not($inputRootDisabled):not($inputRootInvalid):not($inputRootReadOnly)": {
41
+ ":hover:not($disabled,$invalid,$readOnly)": {
124
42
  borderColor: uikitStyles.theme.colors.primary
125
43
  },
126
- "&:hover:not($inputRootDisabled)::before": {
127
- borderBottom: "none"
128
- },
129
- "&::before": {
130
- borderBottom: "none"
131
- },
132
- "&::after": {
133
- borderBottom: "none"
44
+ ":focus-within:not($disabled)": {
45
+ ...focusUtils.outlineStyles
134
46
  }
135
47
  },
136
- inputRootFocused: {
137
- backgroundColor: uikitStyles.theme.colors.atmo1,
138
- ...focusUtils.outlineStyles,
139
- "&:hover": {
140
- backgroundColor: uikitStyles.theme.colors.atmo1
141
- },
142
- "&$inputRootReadOnly": {
143
- backgroundColor: uikitStyles.theme.colors.atmo2
144
- }
145
- },
146
- inputRootDisabled: {
48
+ disabled: {
49
+ backgroundColor: uikitStyles.theme.colors.atmo2,
50
+ borderColor: uikitStyles.theme.colors.secondary_60,
147
51
  cursor: "not-allowed",
148
52
  "&&::before": {
149
53
  borderBottomStyle: "none"
150
54
  }
151
55
  },
152
- inputRootMultiline: {
56
+ invalid: {
57
+ borderColor: uikitStyles.theme.colors.negative_120
58
+ },
59
+ multiline: {
153
60
  padding: 0,
154
- backgroundColor: "transparent",
155
61
  overflow: "auto",
156
- border: "none",
157
62
  height: "auto",
158
63
  "& $input": {
159
- border: `1px solid ${uikitStyles.theme.colors.secondary}`,
160
64
  borderRadius: uikitStyles.theme.radii.base,
161
- backgroundColor: uikitStyles.theme.colors.atmo1,
162
65
  height: "auto",
163
66
  minHeight: "21px",
164
67
  padding: "5px 10px",
165
68
  overflow: "auto",
166
- marginLeft: "0px",
167
- marginRight: "0px",
168
- "&:hover": {
169
- border: `1px solid ${uikitStyles.theme.colors.primary}`
170
- }
69
+ margin: 0
171
70
  }
172
71
  },
72
+ resizable: { width: "auto" },
73
+ readOnly: {
74
+ borderColor: uikitStyles.theme.colors.secondary_60,
75
+ backgroundColor: uikitStyles.theme.colors.atmo2
76
+ },
77
+ focused: {},
78
+ /** @deprecated unused. use `::after` instead */
79
+ inputBorderContainer: {},
80
+ /** @deprecated use `classes.invalid` instead */
81
+ inputRootInvalid: { borderColor: uikitStyles.theme.colors.negative_120 },
82
+ /** @deprecated use `classes.readOnly` instead */
83
+ inputRootReadOnly: {
84
+ borderColor: uikitStyles.theme.colors.secondary_60,
85
+ backgroundColor: uikitStyles.theme.colors.atmo2
86
+ },
87
+ /** @deprecated use `classes.root` instead */
88
+ inputRoot: {},
89
+ /** @deprecated unused */
90
+ inputRootFocused: {},
91
+ /** @deprecated use `classes.disabled` instead */
92
+ inputRootDisabled: {},
93
+ /** @deprecated use `classes.multiline` instead */
94
+ inputRootMultiline: {},
173
95
  input: {
174
- height: "19px",
96
+ height: "100%",
175
97
  marginLeft: uikitStyles.theme.space.xs,
176
98
  marginRight: uikitStyles.theme.space.xs,
177
- padding: "6px 0 5px",
99
+ padding: uikitStyles.theme.spacing("5px", 0),
100
+ backgroundColor: "transparent",
178
101
  overflow: "hidden",
179
102
  textOverflow: "ellipsis",
180
103
  outline: "none",
@@ -184,16 +107,19 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBaseInput
184
107
  "&::placeholder": {
185
108
  opacity: 1,
186
109
  color: uikitStyles.theme.colors.secondary_80
187
- },
188
- "&::-ms-clear": {
189
- display: "none"
190
110
  }
191
111
  },
192
- inputDisabled: {},
112
+ inputDisabled: {
113
+ color: uikitStyles.theme.colors.secondary_60,
114
+ WebkitTextFillColor: uikitStyles.theme.colors.secondary_60
115
+ },
193
116
  inputReadOnly: {
194
117
  color: uikitStyles.theme.colors.secondary_80
195
118
  },
196
- inputResizable: { resize: "both", width: "100%" }
119
+ inputResizable: {
120
+ resize: "both",
121
+ width: "100%"
122
+ }
197
123
  });
198
124
  exports.staticClasses = staticClasses;
199
125
  exports.useClasses = useClasses;
@@ -18,7 +18,8 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBaseRadio
18
18
  width: 16,
19
19
  height: 16,
20
20
  borderRadius: uikitStyles.theme.radii.circle,
21
- border: `1px solid ${uikitStyles.theme.colors.secondary}`,
21
+ borderWidth: 1,
22
+ borderColor: uikitStyles.theme.colors.secondary,
22
23
  backgroundColor: uikitStyles.theme.colors.atmo1
23
24
  },
24
25
  borderRadius: 0
@@ -27,7 +28,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBaseRadio
27
28
  cursor: "not-allowed",
28
29
  pointerEvents: "initial",
29
30
  "& svg": {
30
- border: `1px solid ${uikitStyles.theme.colors.secondary_60}`,
31
+ borderColor: uikitStyles.theme.colors.secondary_60,
31
32
  backgroundColor: uikitStyles.theme.colors.atmo3
32
33
  }
33
34
  },
@@ -40,20 +41,20 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBaseRadio
40
41
  icon: {},
41
42
  checked: {
42
43
  "& svg": {
43
- border: `1px solid ${uikitStyles.theme.colors.secondary}`,
44
+ borderColor: uikitStyles.theme.colors.secondary,
44
45
  backgroundColor: uikitStyles.theme.colors.secondary,
45
46
  color: uikitStyles.theme.colors.atmo2
46
47
  },
47
48
  "&$semantic": {
48
49
  "& svg": {
49
- border: `1px solid ${uikitStyles.theme.colors.base_dark}`,
50
+ borderColor: uikitStyles.theme.colors.base_dark,
50
51
  backgroundColor: uikitStyles.theme.colors.base_light,
51
52
  color: uikitStyles.theme.colors.base_dark
52
53
  }
53
54
  },
54
55
  "&$disabled": {
55
56
  "& svg": {
56
- border: `1px solid ${uikitStyles.theme.colors.secondary_60}`,
57
+ borderColor: uikitStyles.theme.colors.secondary_60,
57
58
  backgroundColor: uikitStyles.theme.colors.secondary_60,
58
59
  color: uikitStyles.theme.colors.atmo3
59
60
  }
@@ -61,7 +62,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBaseRadio
61
62
  },
62
63
  semantic: {
63
64
  "& svg": {
64
- border: `1px solid ${uikitStyles.theme.colors.base_dark}`,
65
+ borderColor: uikitStyles.theme.colors.base_dark,
65
66
  backgroundColor: uikitStyles.theme.colors.base_light
66
67
  }
67
68
  }
@@ -3,10 +3,10 @@ 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 CounterLabel = require("../utils/CounterLabel.cjs");
6
7
  const setId = require("../utils/setId.cjs");
7
8
  const BulkActions_styles = require("./BulkActions.styles.cjs");
8
9
  const Button = require("../Button/Button.cjs");
9
- const Typography = require("../Typography/Typography.cjs");
10
10
  const CheckBox = require("../CheckBox/CheckBox.cjs");
11
11
  const ActionsGeneric = require("../ActionsGeneric/ActionsGeneric.cjs");
12
12
  const HvBulkActions = React.forwardRef(function HvBulkActions2(props, ref) {
@@ -21,7 +21,6 @@ const HvBulkActions = React.forwardRef(function HvBulkActions2(props, ref) {
21
21
  actions,
22
22
  numTotal = 0,
23
23
  numSelected = 0,
24
- selectAllLabel = "All",
25
24
  selectAllConjunctionLabel = "/",
26
25
  showSelectAllPages = false,
27
26
  semantic = true,
@@ -36,21 +35,6 @@ const HvBulkActions = React.forwardRef(function HvBulkActions2(props, ref) {
36
35
  const { activeTheme } = uikitReactUtils.useTheme();
37
36
  const anySelected = numSelected > 0;
38
37
  const isSemantic = semantic && anySelected;
39
- const selectAllLabelComponent = /* @__PURE__ */ jsxRuntime.jsx(
40
- Typography.HvTypography,
41
- {
42
- component: "span",
43
- disabled: checkboxProps?.disabled,
44
- variant: "body",
45
- children: !anySelected ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
46
- /* @__PURE__ */ jsxRuntime.jsx(Typography.HvTypography, { variant: "label", children: selectAllLabel }),
47
- ` (${numTotal})`
48
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
49
- /* @__PURE__ */ jsxRuntime.jsx(Typography.HvTypography, { variant: "label", children: numSelected }),
50
- ` ${selectAllConjunctionLabel} ${numTotal}`
51
- ] })
52
- }
53
- );
54
38
  return /* @__PURE__ */ jsxRuntime.jsxs(
55
39
  "div",
56
40
  {
@@ -73,7 +57,14 @@ const HvBulkActions = React.forwardRef(function HvBulkActions2(props, ref) {
73
57
  semantic: isSemantic,
74
58
  onChange: onSelectAll,
75
59
  indeterminate: numSelected > 0 && numSelected < numTotal,
76
- label: selectAllLabelComponent,
60
+ label: /* @__PURE__ */ jsxRuntime.jsx(
61
+ CounterLabel.CounterLabel,
62
+ {
63
+ selected: numSelected,
64
+ total: numTotal,
65
+ conjunctionLabel: selectAllConjunctionLabel
66
+ }
67
+ ),
77
68
  ...checkboxProps
78
69
  }
79
70
  ),
@@ -107,12 +107,6 @@ const HvCalendarHeader = (props) => {
107
107
  {
108
108
  type: "text",
109
109
  id: setId.setId(id, "header-input"),
110
- className: classes.headerDate,
111
- classes: {
112
- input: classes.input,
113
- inputBorderContainer: classes.inputBorderContainer,
114
- error: classes.invalidMessageStyling
115
- },
116
110
  placeholder: localeFormat,
117
111
  value: inputValue,
118
112
  "aria-labelledby": label?.[0]?.id,
@@ -12,11 +12,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvCalendarH
12
12
  invalid: {},
13
13
  headerDayOfWeek: {
14
14
  color: uikitStyles.theme.colors.secondary_80
15
- },
16
- headerDate: {},
17
- input: {},
18
- inputBorderContainer: {},
19
- invalidMessageStyling: {}
15
+ }
20
16
  });
21
17
  exports.staticClasses = staticClasses;
22
18
  exports.useClasses = useClasses;
@@ -5,6 +5,7 @@ const React = require("react");
5
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
6
6
  const useControlled = require("../hooks/useControlled.cjs");
7
7
  const useUniqueId = require("../hooks/useUniqueId.cjs");
8
+ const CounterLabel = require("../utils/CounterLabel.cjs");
8
9
  const multiSelectionEventHandler = require("../utils/multiSelectionEventHandler.cjs");
9
10
  const setId = require("../utils/setId.cjs");
10
11
  const CheckBoxGroup_styles = require("./CheckBoxGroup.styles.cjs");
@@ -49,7 +50,6 @@ const HvCheckBoxGroup = React.forwardRef(
49
50
  disabled,
50
51
  showSelectAll,
51
52
  orientation = "vertical",
52
- selectAllLabel = "All",
53
53
  selectAllConjunctionLabel = "/",
54
54
  "aria-label": ariaLabel,
55
55
  "aria-labelledby": ariaLabelledBy,
@@ -166,13 +166,6 @@ const HvCheckBoxGroup = React.forwardRef(
166
166
  return newValue;
167
167
  });
168
168
  };
169
- const selectAllLabelComponent = selectedCount === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
170
- /* @__PURE__ */ jsxRuntime.jsx("b", { children: selectAllLabel }),
171
- ` (${React.Children.toArray(children).length})`
172
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
173
- /* @__PURE__ */ jsxRuntime.jsx("b", { children: selectedCount }),
174
- ` ${selectAllConjunctionLabel} ${React.Children.toArray(children).length}`
175
- ] });
176
169
  const canShowError = ariaErrorMessage == null && (status !== void 0 && statusMessage !== void 0 || status === void 0 && required);
177
170
  const errorMessageId = canShowError ? setId.setId(elementId, "error") : ariaErrorMessage;
178
171
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -219,7 +212,14 @@ const HvCheckBoxGroup = React.forwardRef(
219
212
  {
220
213
  checked: selectAllState === "all",
221
214
  indeterminate: selectAllState === "some",
222
- label: selectAllLabelComponent,
215
+ label: /* @__PURE__ */ jsxRuntime.jsx(
216
+ CounterLabel.CounterLabel,
217
+ {
218
+ selected: selectedCount,
219
+ total: React.Children.count(children),
220
+ conjunctionLabel: selectAllConjunctionLabel
221
+ }
222
+ ),
223
223
  disabled,
224
224
  readOnly,
225
225
  className: classes.selectAll,
@@ -8,6 +8,7 @@ const useControlled = require("../hooks/useControlled.cjs");
8
8
  const useLabels = require("../hooks/useLabels.cjs");
9
9
  const useUniqueId = require("../hooks/useUniqueId.cjs");
10
10
  const generic = require("../types/generic.cjs");
11
+ const CounterLabel = require("../utils/CounterLabel.cjs");
11
12
  const setId = require("../utils/setId.cjs");
12
13
  const Dropdown_styles = require("./Dropdown.styles.cjs");
13
14
  const utils = require("./utils.cjs");
@@ -22,7 +23,7 @@ const Typography = require("../Typography/Typography.cjs");
22
23
  const DEFAULT_LABELS = {
23
24
  /** Label for overwrite the default header behavior. */
24
25
  select: void 0,
25
- /** Label used for the All checkbox action. */
26
+ /** Label used for the All checkbox action. @deprecated unused */
26
27
  selectAll: "All",
27
28
  /** Cancel button label. */
28
29
  cancelLabel: "Cancel",
@@ -183,18 +184,15 @@ const HvDropdown = generic.fixedForwardRef(function HvDropdown2(props, ref) {
183
184
  }),
184
185
  children: selectionLabel.selected
185
186
  }
186
- ) : /* @__PURE__ */ jsxRuntime.jsxs(
187
- Typography.HvTypography,
187
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
188
+ CounterLabel.CounterLabel,
188
189
  {
189
- component: "div",
190
+ selected: selectionLabel.selected,
191
+ total: selectionLabel.total,
192
+ conjunctionLabel: labels.multiSelectionConjunction,
190
193
  className: cx(classes.placeholder, {
191
194
  [classes.selectionDisabled]: disabled
192
- }),
193
- variant: "body",
194
- children: [
195
- /* @__PURE__ */ jsxRuntime.jsx("b", { children: selectionLabel.selected }),
196
- ` ${labels?.multiSelectionConjunction} ${selectionLabel.total}`
197
- ]
195
+ })
198
196
  }
199
197
  );
200
198
  };