@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.
- package/dist/cjs/BaseInput/BaseInput.cjs +44 -83
- package/dist/cjs/BaseInput/BaseInput.styles.cjs +68 -142
- package/dist/cjs/BaseRadio/BaseRadio.styles.cjs +7 -6
- package/dist/cjs/BulkActions/BulkActions.cjs +9 -18
- package/dist/cjs/Calendar/CalendarHeader/CalendarHeader.cjs +0 -6
- package/dist/cjs/Calendar/CalendarHeader/CalendarHeader.styles.cjs +1 -5
- package/dist/cjs/CheckBoxGroup/CheckBoxGroup.cjs +9 -9
- package/dist/cjs/Dropdown/Dropdown.cjs +8 -10
- package/dist/cjs/FilterGroup/RightPanel/RightPanel.cjs +9 -10
- package/dist/cjs/InlineEditor/InlineEditor.cjs +10 -14
- package/dist/cjs/InlineEditor/InlineEditor.styles.cjs +13 -36
- package/dist/cjs/Input/Input.cjs +4 -5
- package/dist/cjs/Input/Input.styles.cjs +5 -19
- package/dist/cjs/List/List.cjs +11 -11
- package/dist/cjs/Pagination/Pagination.styles.cjs +1 -0
- package/dist/cjs/Radio/Radio.cjs +2 -1
- package/dist/cjs/Radio/Radio.styles.cjs +7 -27
- package/dist/cjs/Select/Select.styles.cjs +1 -1
- package/dist/cjs/Table/TableCell/TableCell.styles.cjs +14 -14
- package/dist/cjs/Table/TableHeader/TableHeader.styles.cjs +16 -15
- package/dist/cjs/TagsInput/TagsInput.styles.cjs +3 -8
- package/dist/cjs/TextArea/TextArea.styles.cjs +1 -1
- package/dist/cjs/TimePicker/Unit/Unit.cjs +0 -1
- package/dist/cjs/TimePicker/Unit/Unit.styles.cjs +0 -3
- package/dist/cjs/utils/CounterLabel.cjs +16 -0
- package/dist/esm/BaseInput/BaseInput.js +45 -84
- package/dist/esm/BaseInput/BaseInput.js.map +1 -1
- package/dist/esm/BaseInput/BaseInput.styles.js +68 -142
- package/dist/esm/BaseInput/BaseInput.styles.js.map +1 -1
- package/dist/esm/BaseRadio/BaseRadio.styles.js +7 -6
- package/dist/esm/BaseRadio/BaseRadio.styles.js.map +1 -1
- package/dist/esm/BulkActions/BulkActions.js +10 -19
- package/dist/esm/BulkActions/BulkActions.js.map +1 -1
- package/dist/esm/Calendar/CalendarHeader/CalendarHeader.js +0 -6
- package/dist/esm/Calendar/CalendarHeader/CalendarHeader.js.map +1 -1
- package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js +1 -5
- package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/dist/esm/CheckBoxGroup/CheckBoxGroup.js +10 -10
- package/dist/esm/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
- package/dist/esm/Dropdown/Dropdown.js +8 -10
- package/dist/esm/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/FilterGroup/RightPanel/RightPanel.js +9 -10
- package/dist/esm/FilterGroup/RightPanel/RightPanel.js.map +1 -1
- package/dist/esm/InlineEditor/InlineEditor.js +10 -14
- package/dist/esm/InlineEditor/InlineEditor.js.map +1 -1
- package/dist/esm/InlineEditor/InlineEditor.styles.js +13 -36
- package/dist/esm/InlineEditor/InlineEditor.styles.js.map +1 -1
- package/dist/esm/Input/Input.js +4 -5
- package/dist/esm/Input/Input.js.map +1 -1
- package/dist/esm/Input/Input.styles.js +5 -19
- package/dist/esm/Input/Input.styles.js.map +1 -1
- package/dist/esm/List/List.js +11 -11
- package/dist/esm/List/List.js.map +1 -1
- package/dist/esm/Pagination/Pagination.styles.js +1 -0
- package/dist/esm/Pagination/Pagination.styles.js.map +1 -1
- package/dist/esm/Radio/Radio.js +2 -1
- package/dist/esm/Radio/Radio.js.map +1 -1
- package/dist/esm/Radio/Radio.styles.js +7 -27
- package/dist/esm/Radio/Radio.styles.js.map +1 -1
- package/dist/esm/Select/Select.styles.js +1 -1
- package/dist/esm/Select/Select.styles.js.map +1 -1
- package/dist/esm/Table/TableCell/TableCell.styles.js +14 -14
- package/dist/esm/Table/TableCell/TableCell.styles.js.map +1 -1
- package/dist/esm/Table/TableHeader/TableHeader.styles.js +16 -15
- package/dist/esm/Table/TableHeader/TableHeader.styles.js.map +1 -1
- package/dist/esm/TagsInput/TagsInput.styles.js +3 -8
- package/dist/esm/TagsInput/TagsInput.styles.js.map +1 -1
- package/dist/esm/TextArea/TextArea.styles.js +1 -1
- package/dist/esm/TextArea/TextArea.styles.js.map +1 -1
- package/dist/esm/TimePicker/Unit/Unit.js +0 -1
- package/dist/esm/TimePicker/Unit/Unit.js.map +1 -1
- package/dist/esm/TimePicker/Unit/Unit.styles.js +0 -3
- package/dist/esm/TimePicker/Unit/Unit.styles.js.map +1 -1
- package/dist/esm/utils/CounterLabel.js +16 -0
- package/dist/esm/utils/CounterLabel.js.map +1 -0
- package/dist/types/index.d.ts +29 -31
- package/package.json +6 -6
|
@@ -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 CounterLabel = require("../../utils/CounterLabel.cjs");
|
|
5
6
|
const setId = require("../../utils/setId.cjs");
|
|
6
7
|
const FilterGroupContext = require("../FilterGroupContext.cjs");
|
|
7
8
|
const RightPanel_styles = require("./RightPanel.styles.cjs");
|
|
8
|
-
const Typography = require("../../Typography/Typography.cjs");
|
|
9
9
|
const CheckBox = require("../../CheckBox/CheckBox.cjs");
|
|
10
10
|
const Panel = require("../../Panel/Panel.cjs");
|
|
11
11
|
const Input = require("../../Input/Input.cjs");
|
|
@@ -95,19 +95,18 @@ const HvFilterGroupRightPanel = ({
|
|
|
95
95
|
searchStr
|
|
96
96
|
]);
|
|
97
97
|
const SelectAll = React.useCallback(() => {
|
|
98
|
-
const nbrSelected = activeFilterValues?.length;
|
|
99
|
-
const defaultLabel = /* @__PURE__ */ jsxRuntime.jsx(Typography.HvTypography, { component: "span", children: nbrSelected > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
100
|
-
/* @__PURE__ */ jsxRuntime.jsx("b", { children: nbrSelected }),
|
|
101
|
-
` ${labels?.multiSelectionConjunction} ${allActiveGroupOptions.length}`
|
|
102
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
103
|
-
/* @__PURE__ */ jsxRuntime.jsx("b", { children: labels?.selectAll }),
|
|
104
|
-
` (${allActiveGroupOptions.length})`
|
|
105
|
-
] }) });
|
|
106
98
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.selectAllContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
107
99
|
CheckBox.HvCheckBox,
|
|
108
100
|
{
|
|
109
101
|
id: setId.setId(id, "select-all"),
|
|
110
|
-
label:
|
|
102
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(
|
|
103
|
+
CounterLabel.CounterLabel,
|
|
104
|
+
{
|
|
105
|
+
selected: activeFilterValues?.length,
|
|
106
|
+
total: allActiveGroupOptions.length,
|
|
107
|
+
conjunctionLabel: labels?.multiSelectionConjunction
|
|
108
|
+
}
|
|
109
|
+
),
|
|
111
110
|
onChange: () => handleSelectAll(),
|
|
112
111
|
className: classes.selectAll,
|
|
113
112
|
indeterminate: anySelected && !allSelected,
|
|
@@ -40,12 +40,9 @@ const HvInlineEditor = generic.fixedForwardRef(function HvInlineEditor2(props, r
|
|
|
40
40
|
const [isOverflowing, setIsOverflowing] = React.useState(false);
|
|
41
41
|
const typographyStyles = activeTheme?.typography[variant] || {};
|
|
42
42
|
const { lineHeight } = typographyStyles;
|
|
43
|
-
const checkOverflow = () => {
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
inputRef.current.scrollWidth > inputRef.current.clientWidth
|
|
47
|
-
);
|
|
48
|
-
}
|
|
43
|
+
const checkOverflow = (el) => {
|
|
44
|
+
if (!el) return;
|
|
45
|
+
setIsOverflowing(el.scrollWidth > el.clientWidth);
|
|
49
46
|
};
|
|
50
47
|
useEnhancedEffect.useEnhancedEffect(() => {
|
|
51
48
|
const input = inputRef.current;
|
|
@@ -70,13 +67,11 @@ const HvInlineEditor = generic.fixedForwardRef(function HvInlineEditor2(props, r
|
|
|
70
67
|
newValue = cachedValue;
|
|
71
68
|
setEditMode(false);
|
|
72
69
|
setValue(newValue);
|
|
73
|
-
checkOverflow();
|
|
74
70
|
}
|
|
75
71
|
onKeyDown?.(event, newValue);
|
|
76
72
|
};
|
|
77
73
|
const handleChange = (event, val) => {
|
|
78
74
|
setValue(val);
|
|
79
|
-
checkOverflow();
|
|
80
75
|
onChange?.(event, val);
|
|
81
76
|
};
|
|
82
77
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx(classes.root, className), children: editMode && !disabled ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -86,8 +81,7 @@ const HvInlineEditor = generic.fixedForwardRef(function HvInlineEditor2(props, r
|
|
|
86
81
|
inputRef,
|
|
87
82
|
classes: {
|
|
88
83
|
root: classes.inputRoot,
|
|
89
|
-
input: classes.input
|
|
90
|
-
inputBorderContainer: classes.inputBorderContainer
|
|
84
|
+
input: classes.input
|
|
91
85
|
},
|
|
92
86
|
inputProps: {
|
|
93
87
|
style: {
|
|
@@ -101,7 +95,7 @@ const HvInlineEditor = generic.fixedForwardRef(function HvInlineEditor2(props, r
|
|
|
101
95
|
onKeyDown: handleKeyDown,
|
|
102
96
|
...others
|
|
103
97
|
}
|
|
104
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
98
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
105
99
|
Button.HvButton,
|
|
106
100
|
{
|
|
107
101
|
variant: "secondaryGhost",
|
|
@@ -121,18 +115,20 @@ const HvInlineEditor = generic.fixedForwardRef(function HvInlineEditor2(props, r
|
|
|
121
115
|
onClick: handleClick,
|
|
122
116
|
disabled,
|
|
123
117
|
...buttonProps,
|
|
124
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
118
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Tooltip.HvTooltip, { title: isOverflowing && value, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
125
119
|
Typography.HvTypography,
|
|
126
120
|
{
|
|
121
|
+
component: "div",
|
|
122
|
+
ref: checkOverflow,
|
|
127
123
|
variant,
|
|
128
124
|
noWrap: true,
|
|
129
125
|
className: cx(classes.text, { [classes.textEmpty]: !value }),
|
|
130
126
|
...typographyProps,
|
|
131
127
|
children: value || placeholder
|
|
132
128
|
}
|
|
133
|
-
)
|
|
129
|
+
) })
|
|
134
130
|
}
|
|
135
|
-
) })
|
|
131
|
+
) });
|
|
136
132
|
});
|
|
137
133
|
exports.inlineEditorClasses = InlineEditor_styles.staticClasses;
|
|
138
134
|
exports.HvInlineEditor = HvInlineEditor;
|
|
@@ -2,29 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
4
4
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
|
-
const BaseInput_styles = require("../BaseInput/BaseInput.styles.cjs");
|
|
6
|
-
require("../BaseInput/BaseInput.cjs");
|
|
7
|
-
const Input_styles = require("../Input/Input.styles.cjs");
|
|
8
|
-
require("../Input/Input.cjs");
|
|
9
5
|
const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvInlineEditor", {
|
|
10
|
-
root: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
minHeight: "32px"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
inputBorderContainer: {
|
|
17
|
-
top: "unset",
|
|
18
|
-
bottom: 0
|
|
19
|
-
},
|
|
6
|
+
root: {},
|
|
7
|
+
/** @deprecated unused. use `classes.root::after` instead */
|
|
8
|
+
inputBorderContainer: {},
|
|
20
9
|
input: {},
|
|
21
|
-
inputRoot: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
textOverflow: "ellipsis",
|
|
25
|
-
whiteSpace: "nowrap",
|
|
26
|
-
alignSelf: "center"
|
|
10
|
+
inputRoot: {
|
|
11
|
+
height: "100%",
|
|
12
|
+
minHeight: "32px"
|
|
27
13
|
},
|
|
14
|
+
text: {},
|
|
28
15
|
largeText: {},
|
|
29
16
|
textEmpty: {
|
|
30
17
|
color: uikitStyles.theme.colors.secondary_60
|
|
@@ -37,41 +24,31 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvInlineEdi
|
|
|
37
24
|
height: "100%",
|
|
38
25
|
width: "100%",
|
|
39
26
|
maxWidth: "100%",
|
|
40
|
-
justifyContent: "
|
|
27
|
+
justifyContent: "start",
|
|
28
|
+
textAlign: "start",
|
|
41
29
|
alignItems: "center",
|
|
42
30
|
backgroundColor: uikitStyles.theme.colors.atmo1,
|
|
43
|
-
|
|
31
|
+
borderColor: "transparent",
|
|
44
32
|
"&:hover, &:focus": {
|
|
45
|
-
|
|
33
|
+
borderColor: uikitStyles.theme.colors.primary,
|
|
46
34
|
backgroundColor: uikitStyles.theme.colors.atmo1,
|
|
47
35
|
"& $icon": {
|
|
48
36
|
visibility: "visible"
|
|
49
37
|
}
|
|
50
38
|
},
|
|
51
39
|
"&:active": {
|
|
52
|
-
|
|
40
|
+
borderColor: uikitStyles.theme.colors.secondary,
|
|
53
41
|
backgroundColor: "transparent",
|
|
54
42
|
"& $icon": {
|
|
55
43
|
visibility: "visible"
|
|
56
44
|
}
|
|
57
|
-
},
|
|
58
|
-
"& > div": {
|
|
59
|
-
width: "100%"
|
|
60
|
-
},
|
|
61
|
-
"& > div > span": {
|
|
62
|
-
width: "100%"
|
|
63
45
|
}
|
|
64
46
|
},
|
|
65
47
|
icon: {
|
|
66
48
|
cursor: "pointer",
|
|
67
49
|
visibility: "hidden",
|
|
68
50
|
alignSelf: "center",
|
|
69
|
-
height:
|
|
70
|
-
width: "32px",
|
|
71
|
-
minWidth: "32px",
|
|
72
|
-
"& svg": {
|
|
73
|
-
margin: uikitStyles.theme.spacing(0, "xs")
|
|
74
|
-
}
|
|
51
|
+
height: 16
|
|
75
52
|
},
|
|
76
53
|
iconVisible: {
|
|
77
54
|
visibility: "visible"
|
package/dist/cjs/Input/Input.cjs
CHANGED
|
@@ -448,11 +448,10 @@ const HvInput = generic.fixedForwardRef(function HvInput2(props, ref) {
|
|
|
448
448
|
type: realType,
|
|
449
449
|
classes: {
|
|
450
450
|
input: classes.input,
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
inputBorderContainer: classes.inputBorderContainer
|
|
451
|
+
root: classes.inputRoot,
|
|
452
|
+
focused: classes.inputRootFocused,
|
|
453
|
+
disabled: classes.inputRootDisabled,
|
|
454
|
+
multiline: classes.inputRootMultiline
|
|
456
455
|
},
|
|
457
456
|
invalid: isStateInvalid,
|
|
458
457
|
inputProps: {
|
|
@@ -35,18 +35,9 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvInput", {
|
|
|
35
35
|
backgroundColor: uikitStyles.theme.colors.atmo1,
|
|
36
36
|
boxShadow: `0px 8px 0px ${uikitStyles.theme.colors.atmo1}, 0px 0px 9px 0px rgba(65,65,65,.12)`
|
|
37
37
|
},
|
|
38
|
-
input: {
|
|
39
|
-
"&::-ms-clear": {
|
|
40
|
-
display: "none"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
38
|
+
input: {},
|
|
43
39
|
inputRoot: {
|
|
44
|
-
":hover": {
|
|
45
|
-
"& $iconClear": {
|
|
46
|
-
display: "block"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
":focus-within $iconClear": {
|
|
40
|
+
":is(:hover,:focus-within) $iconClear": {
|
|
50
41
|
display: "block"
|
|
51
42
|
}
|
|
52
43
|
},
|
|
@@ -55,15 +46,10 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvInput", {
|
|
|
55
46
|
display: "block"
|
|
56
47
|
}
|
|
57
48
|
},
|
|
58
|
-
inputRootDisabled: {
|
|
59
|
-
cursor: "not-allowed"
|
|
60
|
-
},
|
|
49
|
+
inputRootDisabled: {},
|
|
61
50
|
inputRootMultiline: { padding: 0 },
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
display: "none"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
51
|
+
/** @deprecated unused. use `::after` instead */
|
|
52
|
+
inputBorderContainer: {},
|
|
67
53
|
error: {}
|
|
68
54
|
});
|
|
69
55
|
exports.staticClasses = staticClasses;
|
package/dist/cjs/List/List.cjs
CHANGED
|
@@ -5,6 +5,7 @@ const React = require("react");
|
|
|
5
5
|
const reactWindow = require("react-window");
|
|
6
6
|
const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
|
|
7
7
|
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
8
|
+
const CounterLabel = require("../utils/CounterLabel.cjs");
|
|
8
9
|
const setId = require("../utils/setId.cjs");
|
|
9
10
|
const List_styles = require("./List.styles.cjs");
|
|
10
11
|
const useSelectableList = require("./useSelectableList.cjs");
|
|
@@ -14,10 +15,11 @@ const OverflowTooltip = require("../OverflowTooltip/OverflowTooltip.cjs");
|
|
|
14
15
|
const Link = require("../Link/Link.cjs");
|
|
15
16
|
const Radio = require("../Radio/Radio.cjs");
|
|
16
17
|
const ListContainer = require("../ListContainer/ListContainer.cjs");
|
|
17
|
-
const Typography = require("../Typography/Typography.cjs");
|
|
18
18
|
const ListItem = require("../ListContainer/ListItem/ListItem.cjs");
|
|
19
19
|
const DEFAULT_LABELS = {
|
|
20
|
+
/** The label used for the All checkbox action. @deprecated no longer used */
|
|
20
21
|
selectAll: "Select All",
|
|
22
|
+
/** The label used in the middle of the multi-selection count. */
|
|
21
23
|
selectionConjunction: "/"
|
|
22
24
|
};
|
|
23
25
|
const HvList = (props) => {
|
|
@@ -89,22 +91,20 @@ const HvList = (props) => {
|
|
|
89
91
|
}) : null;
|
|
90
92
|
};
|
|
91
93
|
const renderSelectAll = () => {
|
|
92
|
-
const { selectAll, selectionConjunction } = labels;
|
|
93
94
|
const anySelected2 = !!selection?.length;
|
|
94
95
|
const allSelected = selection.length === list.length;
|
|
95
|
-
const selectionLabel = /* @__PURE__ */ jsxRuntime.jsx(Typography.HvTypography, { component: "span", children: !anySelected2 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
96
|
-
/* @__PURE__ */ jsxRuntime.jsx("b", { children: selectAll }),
|
|
97
|
-
` (${list.length})`
|
|
98
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
99
|
-
/* @__PURE__ */ jsxRuntime.jsx("b", { children: selection.length }),
|
|
100
|
-
` ${selectionConjunction} `,
|
|
101
|
-
list.length
|
|
102
|
-
] }) });
|
|
103
96
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
104
97
|
CheckBox.HvCheckBox,
|
|
105
98
|
{
|
|
106
99
|
id: setId.setId(id, "select-all"),
|
|
107
|
-
label:
|
|
100
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(
|
|
101
|
+
CounterLabel.CounterLabel,
|
|
102
|
+
{
|
|
103
|
+
selected: selection.length,
|
|
104
|
+
total: list.length,
|
|
105
|
+
conjunctionLabel: labels.selectionConjunction
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
108
|
onChange: handleSelectAll,
|
|
109
109
|
className: classes.selectAllSelector,
|
|
110
110
|
indeterminate: anySelected2 && !allSelected,
|
|
@@ -5,6 +5,7 @@ const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
|
5
5
|
const BaseDropdown_styles = require("../BaseDropdown/BaseDropdown.styles.cjs");
|
|
6
6
|
require("../BaseDropdown/BaseDropdown.cjs");
|
|
7
7
|
const Input_styles = require("../Input/Input.styles.cjs");
|
|
8
|
+
require("../Input/Input.cjs");
|
|
8
9
|
const hoverColor = uikitStyles.theme.colors.atmo3;
|
|
9
10
|
const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvPagination", {
|
|
10
11
|
/** Styles applied to the component root class. */
|
package/dist/cjs/Radio/Radio.cjs
CHANGED
|
@@ -126,6 +126,7 @@ const HvRadio = React.forwardRef(
|
|
|
126
126
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
127
127
|
Label.HvLabel,
|
|
128
128
|
{
|
|
129
|
+
noWrap: true,
|
|
129
130
|
id: setId.setId(elementId, "label"),
|
|
130
131
|
htmlFor: setId.setId(elementId, "input"),
|
|
131
132
|
label,
|
|
@@ -136,7 +137,7 @@ const HvRadio = React.forwardRef(
|
|
|
136
137
|
]
|
|
137
138
|
}
|
|
138
139
|
) : radio,
|
|
139
|
-
canShowError && /* @__PURE__ */ jsxRuntime.jsx(WarningText.HvWarningText, { id: setId.setId(elementId, "error"),
|
|
140
|
+
canShowError && /* @__PURE__ */ jsxRuntime.jsx(WarningText.HvWarningText, { id: setId.setId(elementId, "error"), children: statusMessage })
|
|
140
141
|
]
|
|
141
142
|
}
|
|
142
143
|
);
|
|
@@ -8,50 +8,30 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvRadio", {
|
|
|
8
8
|
container: {
|
|
9
9
|
cursor: "pointer",
|
|
10
10
|
display: "flex",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"&:hover": {
|
|
17
|
-
backgroundColor: uikitStyles.theme.colors.containerBackgroundHover,
|
|
18
|
-
borderRadius: uikitStyles.theme.radii.base
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
invalidContainer: {
|
|
22
|
-
borderBottom: `1px solid ${uikitStyles.theme.colors.negative_120}`,
|
|
23
|
-
"&:hover": {
|
|
24
|
-
borderBottomLeftRadius: "0px",
|
|
25
|
-
borderBottomRightRadius: "0px"
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
transition: "background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
13
|
+
borderRadius: uikitStyles.theme.radii.base,
|
|
14
|
+
":hover:not($disabled)": {
|
|
15
|
+
backgroundColor: uikitStyles.theme.colors.containerBackgroundHover
|
|
26
16
|
}
|
|
27
17
|
},
|
|
18
|
+
invalidContainer: {},
|
|
28
19
|
disabled: {
|
|
29
20
|
cursor: "not-allowed",
|
|
30
21
|
"& $label": { color: uikitStyles.theme.colors.secondary_60, cursor: "not-allowed" }
|
|
31
22
|
},
|
|
32
23
|
radio: {
|
|
33
|
-
height: "32px",
|
|
34
24
|
"& svg": {
|
|
35
25
|
outline: "none",
|
|
36
26
|
boxShadow: "none"
|
|
37
27
|
}
|
|
38
28
|
},
|
|
39
|
-
invalidRadio: {
|
|
40
|
-
borderBottom: `1px solid ${uikitStyles.theme.colors.negative_120}`,
|
|
41
|
-
"&:hover": {
|
|
42
|
-
borderBottomLeftRadius: "0px",
|
|
43
|
-
borderBottomRightRadius: "0px"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
29
|
+
invalidRadio: {},
|
|
46
30
|
label: {
|
|
47
|
-
overflow: "hidden",
|
|
48
|
-
textOverflow: "ellipsis",
|
|
49
31
|
verticalAlign: "middle",
|
|
50
32
|
paddingRight: uikitStyles.theme.space.xs,
|
|
51
|
-
whiteSpace: "nowrap",
|
|
52
33
|
...uikitStyles.theme.typography.body,
|
|
53
34
|
cursor: "pointer",
|
|
54
|
-
height: "32px",
|
|
55
35
|
lineHeight: "32px",
|
|
56
36
|
width: "100%"
|
|
57
37
|
},
|
|
@@ -12,7 +12,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvSelect",
|
|
|
12
12
|
disabled: {},
|
|
13
13
|
readOnly: {},
|
|
14
14
|
invalid: {
|
|
15
|
-
|
|
15
|
+
borderColor: uikitStyles.theme.colors.negative_120
|
|
16
16
|
},
|
|
17
17
|
labelContainer: {
|
|
18
18
|
display: "flex",
|
|
@@ -8,8 +8,9 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableCell
|
|
|
8
8
|
verticalAlign: "inherit",
|
|
9
9
|
alignContent: "inherit",
|
|
10
10
|
textAlign: "left",
|
|
11
|
+
borderColor: uikitStyles.theme.colors.atmo4,
|
|
11
12
|
padding: `calc(${uikitStyles.theme.space.xs} - 2px ) ${uikitStyles.theme.space.xs} calc(${uikitStyles.theme.space.xs} - 3px ) ${uikitStyles.theme.spacing(4)}`,
|
|
12
|
-
|
|
13
|
+
borderBottomWidth: 1
|
|
13
14
|
},
|
|
14
15
|
/** Styles applied to the cell when it's in the table head. */
|
|
15
16
|
head: {
|
|
@@ -18,7 +19,6 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableCell
|
|
|
18
19
|
alignContent: "start",
|
|
19
20
|
backgroundColor: uikitStyles.theme.colors.atmo1,
|
|
20
21
|
borderTop: "1px solid transparent",
|
|
21
|
-
borderBottom: `1px solid ${uikitStyles.theme.colors.atmo4}`,
|
|
22
22
|
...uikitStyles.theme.typography.label
|
|
23
23
|
},
|
|
24
24
|
/** Styles applied to the cell when it's in the table body. */
|
|
@@ -63,7 +63,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableCell
|
|
|
63
63
|
padding: 0,
|
|
64
64
|
width: 32,
|
|
65
65
|
maxWidth: 32,
|
|
66
|
-
|
|
66
|
+
borderRightWidth: 1
|
|
67
67
|
},
|
|
68
68
|
/** Styles applied to the component root when its variant is actions */
|
|
69
69
|
variantActions: {
|
|
@@ -71,7 +71,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableCell
|
|
|
71
71
|
padding: 0,
|
|
72
72
|
width: 32,
|
|
73
73
|
maxWidth: 32,
|
|
74
|
-
|
|
74
|
+
borderLeftWidth: 1
|
|
75
75
|
},
|
|
76
76
|
/** Styles applied to the component root when its variant is expand */
|
|
77
77
|
variantExpand: {
|
|
@@ -86,7 +86,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableCell
|
|
|
86
86
|
height: 52
|
|
87
87
|
},
|
|
88
88
|
padding: "0, 0, 0, 32px",
|
|
89
|
-
|
|
89
|
+
borderWidth: 0
|
|
90
90
|
},
|
|
91
91
|
/** Styles applied to the cell when its variant is list and the type is head. */
|
|
92
92
|
variantListHead: {
|
|
@@ -124,40 +124,40 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableCell
|
|
|
124
124
|
},
|
|
125
125
|
/** Styles applied to the cell when it's part of the last sticky to the left column. */
|
|
126
126
|
stickyColumnMostLeft: {
|
|
127
|
-
|
|
127
|
+
borderRightWidth: 1
|
|
128
128
|
},
|
|
129
129
|
/** Styles applied to the cell when it's part of the first right sticky column. */
|
|
130
130
|
stickyColumnLeastRight: {
|
|
131
|
-
|
|
131
|
+
borderLeftWidth: 1
|
|
132
132
|
},
|
|
133
133
|
/** Styles applied to the cell when it's part of the first column in the group. */
|
|
134
134
|
groupColumnMostLeft: {
|
|
135
|
-
|
|
135
|
+
borderLeftWidth: 1,
|
|
136
136
|
"&:first-of-type": {
|
|
137
|
-
|
|
137
|
+
borderLeftWidth: 0
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
/** Styles applied to the cell when it's part of the last column in the group. */
|
|
141
141
|
groupColumnMostRight: {
|
|
142
|
-
|
|
142
|
+
borderRightWidth: 1,
|
|
143
143
|
// due to the ":has()" selector not being supported in browsers,
|
|
144
144
|
// this need to be managed with inline styles
|
|
145
145
|
// To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)
|
|
146
146
|
// "&:last-child,&:has(+ $stickyColumnLeastRight)": {
|
|
147
147
|
"&:last-child": {
|
|
148
|
-
|
|
148
|
+
borderRightWidth: 0
|
|
149
149
|
},
|
|
150
150
|
"&+:not($stickyColumn)": {
|
|
151
|
-
|
|
151
|
+
borderLeftWidth: 0
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
/** Styles applied to the cell when it's part of a resizable column. */
|
|
155
155
|
resizable: {
|
|
156
|
-
|
|
156
|
+
borderRightWidth: 1
|
|
157
157
|
},
|
|
158
158
|
/** Styles applied to the cell when it's part of a resizing column. */
|
|
159
159
|
resizing: {
|
|
160
|
-
borderRight: `solid
|
|
160
|
+
borderRight: `2px solid ${uikitStyles.theme.colors.primary_80}`
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
exports.staticClasses = staticClasses;
|
|
@@ -11,7 +11,8 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableHead
|
|
|
11
11
|
alignContent: "inherit",
|
|
12
12
|
textAlign: "left",
|
|
13
13
|
padding: uikitStyles.theme.spacing(0, 1, 0, 4),
|
|
14
|
-
|
|
14
|
+
borderColor: uikitStyles.theme.colors.atmo4,
|
|
15
|
+
borderBottomWidth: 1
|
|
15
16
|
},
|
|
16
17
|
head: {
|
|
17
18
|
paddingTop: 8,
|
|
@@ -19,14 +20,14 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableHead
|
|
|
19
20
|
alignContent: "start",
|
|
20
21
|
...uikitStyles.theme.typography.label,
|
|
21
22
|
backgroundColor: uikitStyles.theme.colors.atmo1,
|
|
22
|
-
|
|
23
|
+
borderBottomWidth: 1,
|
|
23
24
|
"*:first-of-type > &": {
|
|
24
25
|
height: "var(--first-row-cell-height)",
|
|
25
26
|
borderTop: "1px solid transparent"
|
|
26
27
|
},
|
|
27
28
|
"&$variantList": {
|
|
28
29
|
backgroundColor: "inherit",
|
|
29
|
-
|
|
30
|
+
borderBottomWidth: 0,
|
|
30
31
|
"*:first-of-type > &": {
|
|
31
32
|
borderTop: 0
|
|
32
33
|
}
|
|
@@ -60,23 +61,23 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableHead
|
|
|
60
61
|
position: "sticky",
|
|
61
62
|
zIndex: 2,
|
|
62
63
|
"&$groupColumnMostRight+$stickyColumn": {
|
|
63
|
-
|
|
64
|
+
borderLeftWidth: 0
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
|
-
stickyColumnMostLeft: {
|
|
67
|
-
stickyColumnLeastRight: {
|
|
68
|
-
groupColumnMostLeft: {
|
|
67
|
+
stickyColumnMostLeft: { borderRightWidth: 1 },
|
|
68
|
+
stickyColumnLeastRight: { borderLeftWidth: 1 },
|
|
69
|
+
groupColumnMostLeft: { borderLeftWidth: 1 },
|
|
69
70
|
groupColumnMostRight: {
|
|
70
|
-
|
|
71
|
+
borderRightWidth: 1,
|
|
71
72
|
// due to the ":has()" selector not being supported in browsers,
|
|
72
73
|
// this need to be managed with inline styles
|
|
73
74
|
// To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)
|
|
74
75
|
// "&:last-child,&:has(+ $stickyColumnLeastRight)": {
|
|
75
76
|
"&:last-child": {
|
|
76
|
-
|
|
77
|
+
borderRightWidth: 0
|
|
77
78
|
},
|
|
78
79
|
"&+:not($stickyColumn)": {
|
|
79
|
-
|
|
80
|
+
borderLeftWidth: 0
|
|
80
81
|
}
|
|
81
82
|
},
|
|
82
83
|
headerContent: { display: "flex", alignItems: "flex-start", width: "100%" },
|
|
@@ -108,27 +109,27 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTableHead
|
|
|
108
109
|
padding: 0,
|
|
109
110
|
width: 32,
|
|
110
111
|
maxWidth: 32,
|
|
111
|
-
|
|
112
|
+
borderRightWidth: 1
|
|
112
113
|
},
|
|
113
114
|
variantExpand: {},
|
|
114
115
|
variantActions: {
|
|
115
116
|
padding: 0,
|
|
116
117
|
width: 32,
|
|
117
118
|
maxWidth: 32,
|
|
118
|
-
|
|
119
|
+
borderLeftWidth: 1
|
|
119
120
|
},
|
|
120
121
|
variantNone: { padding: 0 },
|
|
121
122
|
variantList: {
|
|
122
123
|
backgroundColor: "inherit",
|
|
123
|
-
|
|
124
|
+
borderBottomWidth: 0,
|
|
124
125
|
height: 16,
|
|
125
126
|
":first-of-type > &": {
|
|
126
|
-
|
|
127
|
+
borderTopWidth: 0,
|
|
127
128
|
height: 16
|
|
128
129
|
}
|
|
129
130
|
},
|
|
130
131
|
resizable: {
|
|
131
|
-
|
|
132
|
+
borderRightWidth: 1,
|
|
132
133
|
":has($resizer:hover)": {
|
|
133
134
|
borderRight: `2px solid ${uikitStyles.theme.colors.primary_80}`
|
|
134
135
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
4
4
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
5
|
const BaseInput_styles = require("../BaseInput/BaseInput.styles.cjs");
|
|
6
|
+
require("../BaseInput/BaseInput.cjs");
|
|
6
7
|
const Suggestions_styles = require("../FormElement/Suggestions/Suggestions.styles.cjs");
|
|
7
8
|
const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTagsInput", {
|
|
8
9
|
input: {
|
|
@@ -115,10 +116,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTagsInput
|
|
|
115
116
|
tagInputRoot: {
|
|
116
117
|
[`& .${BaseInput_styles.staticClasses.root}`]: {
|
|
117
118
|
width: "100%",
|
|
118
|
-
border: "none"
|
|
119
|
-
"&:hover $tagInputBorderContainer": {
|
|
120
|
-
background: "none"
|
|
121
|
-
}
|
|
119
|
+
border: "none"
|
|
122
120
|
},
|
|
123
121
|
[`&& .${BaseInput_styles.staticClasses.inputRoot}`]: {
|
|
124
122
|
marginLeft: 0,
|
|
@@ -129,10 +127,6 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTagsInput
|
|
|
129
127
|
padding: 0,
|
|
130
128
|
border: "none"
|
|
131
129
|
},
|
|
132
|
-
[`& .${BaseInput_styles.staticClasses.inputBorderContainer}`]: {
|
|
133
|
-
border: "none",
|
|
134
|
-
background: "none"
|
|
135
|
-
},
|
|
136
130
|
[`& .${BaseInput_styles.staticClasses.inputRootFocused}`]: {
|
|
137
131
|
outline: "none",
|
|
138
132
|
boxShadow: "none"
|
|
@@ -155,6 +149,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTagsInput
|
|
|
155
149
|
outlineOffset: "-1px",
|
|
156
150
|
boxShadow: "0 0 0 1px #52A8EC, 0 0 0 4px rgba(29,155,209,.3)"
|
|
157
151
|
},
|
|
152
|
+
/** @deprecated unused. use `::after` instead */
|
|
158
153
|
tagInputBorderContainer: {},
|
|
159
154
|
tagInputRootFocused: {},
|
|
160
155
|
tagInputRootEmpty: {},
|
|
@@ -8,7 +8,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTextArea"
|
|
|
8
8
|
invalid: {},
|
|
9
9
|
baseInput: { clear: "both", float: "left" },
|
|
10
10
|
input: {},
|
|
11
|
-
inputResizable: {
|
|
11
|
+
inputResizable: {},
|
|
12
12
|
labelContainer: { float: "left", display: "flex", alignItems: "flex-start" },
|
|
13
13
|
label: {},
|
|
14
14
|
description: { display: "block", float: "left" },
|