@hitachivantara/uikit-react-core 6.0.0-next.1 → 6.0.0-next.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.
@@ -4,7 +4,7 @@ const { staticClasses, useClasses } = createClasses("HvActionBar", {
4
4
  root: {
5
5
  width: "100%",
6
6
  padding: theme.space.sm,
7
- borderTop: `1px solid ${theme.colors.border}`,
7
+ borderTop: `1px solid ${theme.colors.borderSubtle}`,
8
8
  display: "flex",
9
9
  alignItems: "center",
10
10
  justifyContent: "flex-end"
@@ -7,10 +7,10 @@ import { useClasses, getIconSizeStyles, getSizeStyles } from "./Button.styles.js
7
7
  import { staticClasses } from "./Button.styles.js";
8
8
  function parseVariant(variant) {
9
9
  if (variant === "semantic") return ["inherit", "ghost"];
10
- if (variant === "secondary") return ["secondary", "subtle"];
10
+ if (variant === "secondary") return ["text", "subtle"];
11
11
  if (variant === "ghost") return ["primary", "ghost"];
12
12
  if (variant === "contained" || variant === "subtle") {
13
- return ["secondary", variant];
13
+ return ["text", variant];
14
14
  }
15
15
  const result = variant.split(/(?=[A-Z])/);
16
16
  if (!result[1]) return [result[0], "contained"];
@@ -138,6 +138,7 @@ const HvCheckBox = forwardRef(
138
138
  readOnly,
139
139
  className: cx(
140
140
  classes.root,
141
+ classes[labelPosition],
141
142
  { [classes.focusVisible]: !!(focusVisible && label) },
142
143
  className
143
144
  ),
@@ -145,7 +146,7 @@ const HvCheckBox = forwardRef(
145
146
  hasLabel ? /* @__PURE__ */ jsxs(
146
147
  "div",
147
148
  {
148
- className: cx(classes.container, classes[labelPosition], {
149
+ className: cx(classes.container, {
149
150
  [classes.invalidContainer]: isStateInvalid,
150
151
  [classes.disabled]: disabled
151
152
  }),
@@ -14,13 +14,6 @@ const { staticClasses, useClasses } = createClasses("HvCheckBox", {
14
14
  },
15
15
  ":where(:has($label)) $checkbox": {
16
16
  borderRadius: "inherit"
17
- },
18
- "&$left": {
19
- flexDirection: "row-reverse",
20
- justifyContent: "flex-end"
21
- },
22
- "&$right": {
23
- flexDirection: "row"
24
17
  }
25
18
  },
26
19
  invalidContainer: {},
@@ -38,18 +31,24 @@ const { staticClasses, useClasses } = createClasses("HvCheckBox", {
38
31
  verticalAlign: "middle",
39
32
  ...theme.typography.body,
40
33
  cursor: "pointer",
41
- lineHeight: "32px"
34
+ lineHeight: "32px",
35
+ flex: 1
42
36
  },
43
37
  checked: {},
44
38
  indeterminate: {},
45
39
  semantic: {},
46
40
  left: {
47
- "& .HvCheckBox-label": {
48
- paddingLeft: theme.space.xs
41
+ "& $label": {
42
+ paddingLeft: theme.space.xs,
43
+ textAlign: "right"
44
+ },
45
+ "& $container": {
46
+ flexDirection: "row-reverse"
47
+ // justifyContent: "flex-end",
49
48
  }
50
49
  },
51
50
  right: {
52
- "& .HvCheckBox-label": {
51
+ "& $label": {
53
52
  paddingRight: theme.space.xs
54
53
  }
55
54
  }
@@ -1,16 +1,13 @@
1
1
  import { createClasses } from "@hitachivantara/uikit-react-utils";
2
2
  import { theme } from "@hitachivantara/uikit-styles";
3
- import { staticClasses as staticClasses$1 } from "../../Button/Button.styles.js";
4
3
  const { staticClasses, useClasses } = createClasses("HvHeaderActions", {
5
4
  root: {
6
5
  backgroundColor: "transparent",
7
6
  display: "flex",
8
7
  gap: theme.space.xs,
9
8
  alignItems: "center",
10
- marginLeft: "auto",
11
- [`& .${staticClasses$1?.root}`]: {
12
- "&:hover": { backgroundColor: theme.colors.bgHover }
13
- }
9
+ justifyContent: "flex-end",
10
+ marginLeft: "auto"
14
11
  }
15
12
  });
16
13
  export {
@@ -19,7 +19,6 @@ const HvHeader = forwardRef(function HvHeader2(props, ref) {
19
19
  style: { position },
20
20
  className: cx(
21
21
  classes.root,
22
- classes.backgroundColor,
23
22
  { [classes.fixed]: position === "fixed" },
24
23
  className
25
24
  ),
@@ -23,8 +23,7 @@ const { staticClasses, useClasses } = createClasses("HvHeader", {
23
23
  zIndex: 2
24
24
  }
25
25
  },
26
- fixed: { position: "fixed", top: 0, left: "auto", right: 0 },
27
- backgroundColor: {}
26
+ fixed: { position: "fixed", top: 0, left: "auto", right: 0 }
28
27
  });
29
28
  export {
30
29
  staticClasses,
@@ -89,7 +89,7 @@ const HvInput = fixedForwardRef(function HvInput2(props, ref) {
89
89
  const inputRef = useRef(null);
90
90
  const forkedRef = useForkRef(ref, inputRef, inputRefProp);
91
91
  const suggestionsRef = useRef(null);
92
- const [description, infoMessage] = activeTheme?.name === "pentaho" ? [infoMessageProp, descriptionProp] : [descriptionProp, infoMessageProp];
92
+ const [description, infoMessage] = activeTheme?.name === "pentahoPlus" ? [infoMessageProp, descriptionProp] : [descriptionProp, infoMessageProp];
93
93
  const [focused, setFocused] = useState(false);
94
94
  const isDirty = useRef(false);
95
95
  const isEmptyValue = !inputRef.current?.value;
@@ -5,7 +5,6 @@ import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
5
5
  import { useClasses } from "./OverflowTooltip.styles.js";
6
6
  import { staticClasses } from "./OverflowTooltip.styles.js";
7
7
  import { HvTooltip } from "../Tooltip/Tooltip.js";
8
- import { HvTypography } from "../Typography/Typography.js";
9
8
  const isParagraph = (children = "") => /\s/.test(children);
10
9
  const HvOverflowTooltip = (props) => {
11
10
  const {
@@ -74,7 +73,8 @@ const HvOverflowTooltip = (props) => {
74
73
  disableHoverListener: !isOverflowing,
75
74
  open,
76
75
  placement,
77
- title: /* @__PURE__ */ jsx(HvTypography, { className: classes.tooltipData, variant: "body", children: data }),
76
+ classes: { tooltip: classes.tooltipData },
77
+ title: data,
78
78
  "aria-label": null,
79
79
  "aria-labelledby": null,
80
80
  ...tooltipsProps,
@@ -8,9 +8,9 @@ import { HvIcon } from "../icons.js";
8
8
  import { useClasses } from "./Pagination.styles.js";
9
9
  import { staticClasses } from "./Pagination.styles.js";
10
10
  import HvSelect, { Option } from "./Select.js";
11
- import { HvTypography } from "../Typography/Typography.js";
12
11
  import { HvIconButton } from "../IconButton/IconButton.js";
13
- import { HvInput } from "../Input/Input.js";
12
+ import { HvTypography } from "../Typography/Typography.js";
13
+ import { HvBaseInput } from "../BaseInput/BaseInput.js";
14
14
  const defaultPageSizeOptions = [5, 10, 20, 25, 50, 100];
15
15
  const DEFAULT_LABELS = {
16
16
  /** The show label. */
@@ -74,46 +74,38 @@ const HvPagination = forwardRef(function HvPagination2(props, ref) {
74
74
  useEffect(() => {
75
75
  setPageInput(page);
76
76
  }, [page]);
77
- const renderPageJump = () => /* @__PURE__ */ jsx("div", { className: classes.pageJump, children: /* @__PURE__ */ jsx(
78
- HvInput,
77
+ const renderPageJump = () => /* @__PURE__ */ jsx(
78
+ HvBaseInput,
79
79
  {
80
- labels,
81
80
  inputProps: {
82
81
  "aria-label": labels?.paginationInputLabel,
83
82
  // We really want the native number input
84
83
  type: "number"
85
84
  },
86
85
  classes: {
87
- root: classes?.pageSizeInputContainer,
88
- input: classes?.pageSizeInput,
89
- inputRoot: classes?.pageSizeInputRoot
86
+ root: classes.pageJump,
87
+ input: classes.pageSizeInput
90
88
  },
91
89
  value: String(pageInput + 1),
92
90
  onChange: (event, value) => setPageInput(Number(value) - 1),
93
- onBlur: (evt, value) => changePage(Math.round(Number(value)) - 1),
94
- onEnter: (evt, value) => changePage(Math.round(Number(value)) - 1),
91
+ onBlur: (evt) => changePage(Math.round(Number(evt.target.value)) - 1),
92
+ onKeyDown: (evt) => {
93
+ if (evt.key !== "Enter") return;
94
+ changePage(Math.round(Number(evt.currentTarget.value)) - 1);
95
+ },
95
96
  disabled: pageSize === 0,
96
- disableClear: true,
97
97
  ...currentPageInputProps
98
98
  }
99
- ) });
99
+ );
100
100
  return /* @__PURE__ */ jsxs("div", { ref, id, className: cx(classes.root, className), ...others, children: [
101
101
  /* @__PURE__ */ jsx("div", { className: classes.pageSizeOptions, ...showPageProps, children: showPageSizeOptions && /* @__PURE__ */ jsxs(Fragment, { children: [
102
- !isXsDown && /* @__PURE__ */ jsx(
103
- HvTypography,
104
- {
105
- component: "span",
106
- className: classes?.pageSizeTextContainer,
107
- children: labels?.pageSizePrev
108
- }
109
- ),
102
+ !isXsDown && /* @__PURE__ */ jsx("span", { className: classes?.pageSizeTextContainer, children: labels?.pageSizePrev }),
110
103
  /* @__PURE__ */ jsx(
111
104
  HvSelect,
112
105
  {
113
106
  disabled: pageSize === 0,
114
- className: classes.pageSizeOptionsSelect,
115
107
  "aria-label": labels?.pageSizeSelectorDescription,
116
- onChange: (_, val) => onPageSizeChange?.(val),
108
+ onChange: (evt, val) => onPageSizeChange?.(val),
117
109
  value: pageSize,
118
110
  classes: {
119
111
  header: classes.pageSizeHeader,
@@ -122,14 +114,7 @@ const HvPagination = forwardRef(function HvPagination2(props, ref) {
122
114
  children: pageSizeOptions.map((option) => /* @__PURE__ */ jsx(Option, { value: option, children: option }, option))
123
115
  }
124
116
  ),
125
- !isXsDown && /* @__PURE__ */ jsx(
126
- HvTypography,
127
- {
128
- component: "span",
129
- className: classes.pageSizeTextContainer,
130
- children: labels?.pageSizeEntryName
131
- }
132
- )
117
+ !isXsDown && /* @__PURE__ */ jsx("span", { className: classes.pageSizeTextContainer, children: labels?.pageSizeEntryName })
133
118
  ] }) }),
134
119
  /* @__PURE__ */ jsxs("div", { className: classes.pageNavigator, ...navigationProps, children: [
135
120
  /* @__PURE__ */ jsx(
@@ -153,16 +138,9 @@ const HvPagination = forwardRef(function HvPagination2(props, ref) {
153
138
  }
154
139
  ),
155
140
  /* @__PURE__ */ jsxs("div", { className: classes.pageInfo, children: [
156
- showPageJump ? renderPageJump() : /* @__PURE__ */ jsx(HvTypography, { variant: "caption2", component: "span", children: `${page + 1}` }),
141
+ showPageJump ? renderPageJump() : /* @__PURE__ */ jsx("span", { children: `${page + 1}` }),
157
142
  /* @__PURE__ */ jsx(HvTypography, { component: "span", children: `${labels?.pagesSeparator} ` }),
158
- /* @__PURE__ */ jsx(
159
- HvTypography,
160
- {
161
- component: "span",
162
- className: classes.totalPagesTextContainer,
163
- children: pages
164
- }
165
- )
143
+ /* @__PURE__ */ jsx("span", { children: pages })
166
144
  ] }),
167
145
  /* @__PURE__ */ jsx(
168
146
  HvIconButton,
@@ -1,8 +1,7 @@
1
1
  import { createClasses } from "@hitachivantara/uikit-react-utils";
2
2
  import { theme } from "@hitachivantara/uikit-styles";
3
- import { staticClasses as staticClasses$2 } from "../BaseDropdown/BaseDropdown.styles.js";
3
+ import { staticClasses as staticClasses$1 } from "../BaseDropdown/BaseDropdown.styles.js";
4
4
  import "../BaseDropdown/BaseDropdown.js";
5
- import { staticClasses as staticClasses$1 } from "../Input/Input.styles.js";
6
5
  const { staticClasses, useClasses } = createClasses("HvPagination", {
7
6
  /** Styles applied to the component root class. */
8
7
  root: {
@@ -13,24 +12,7 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
13
12
  alignItems: "stretch",
14
13
  flexWrap: "wrap",
15
14
  marginTop: theme.space.sm,
16
- [`& $pageSizeInput`]: {
17
- ...theme.typography.caption2,
18
- "&:focus": {
19
- padding: 0
20
- }
21
- },
22
- [`& $pageSizeInputContainer`]: {
23
- width: 24,
24
- minWidth: 24,
25
- maxWidth: theme.spacing(8)
26
- },
27
- [`&& $pageSizeInputRoot`]: {
28
- backgroundColor: "transparent",
29
- height: "24px",
30
- "&:focus, &:focus-within, &:hover": {
31
- backgroundColor: theme.colors.bgHover
32
- }
33
- }
15
+ ...theme.typography.caption2
34
16
  },
35
17
  /** Styles applied to the page size selector container. */
36
18
  pageSizeOptions: {
@@ -46,7 +28,7 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
46
28
  height: 24,
47
29
  display: "flex",
48
30
  alignItems: "center",
49
- [`& .${staticClasses$2.arrowContainer}`]: {
31
+ [`& .${staticClasses$1.arrowContainer}`]: {
50
32
  display: "flex",
51
33
  alignItems: "center",
52
34
  top: "unset",
@@ -58,6 +40,7 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
58
40
  }
59
41
  },
60
42
  pageSizeRoot: {
43
+ display: "inline-block",
61
44
  width: "auto"
62
45
  },
63
46
  /** Styles applied to the element that holds the labels for the page size selector */
@@ -66,17 +49,7 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
66
49
  alignItems: "center",
67
50
  justifyContent: "center",
68
51
  height: "24px",
69
- padding: "8px 0",
70
- ...theme.typography.caption2
71
- },
72
- totalPagesTextContainer: {
73
- ...theme.typography.caption2
74
- },
75
- /** Styles applied to the page size selector dropdown element. */
76
- pageSizeOptionsSelect: {
77
- display: "inline-block",
78
- width: "auto",
79
- ...theme.typography.caption2
52
+ padding: "8px 0"
80
53
  },
81
54
  /** Styles applied to the page navigation container. */
82
55
  pageNavigator: {
@@ -100,31 +73,36 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
100
73
  },
101
74
  /** Styles applied to the page selector input container. */
102
75
  pageJump: {
103
- display: "inline-block",
104
- marginRight: `4px`,
105
- [`& .${staticClasses$1.inputRoot}`]: {
106
- [`& $pageSizeInput`]: {
107
- paddingLeft: `4px`,
108
- paddingRight: `4px`,
109
- margin: 0,
110
- textAlign: "center",
111
- borderRadius: theme.radii.base,
112
- MozAppearance: "textfield",
113
- "&:focus": {
114
- backgroundColor: theme.colors.bgHover
115
- },
116
- "&:hover": {
117
- cursor: "pointer"
118
- }
119
- }
76
+ marginRight: 4,
77
+ width: 24,
78
+ minWidth: 24,
79
+ maxWidth: theme.spacing(8),
80
+ backgroundColor: "transparent",
81
+ height: "24px",
82
+ "&:focus, &:focus-within, &:hover": {
83
+ backgroundColor: theme.colors.bgHover
84
+ },
85
+ "&, & $pageSizeInput": {
86
+ fontSize: "inherit",
87
+ lineHeight: "inherit"
120
88
  }
121
89
  },
122
90
  /** Styles passed down to the page selector Input component as `input`. */
123
- pageSizeInput: {},
124
- /** Styles passed down to the page selector Input root. */
125
- pageSizeInputRoot: {},
126
- /** Styles passed down to the page selector Input component as `container`. */
127
- pageSizeInputContainer: {}
91
+ pageSizeInput: {
92
+ paddingLeft: 4,
93
+ paddingRight: 4,
94
+ margin: 0,
95
+ textAlign: "center",
96
+ borderRadius: theme.radii.base,
97
+ MozAppearance: "textfield",
98
+ "&:focus": {
99
+ padding: 0,
100
+ backgroundColor: theme.colors.bgHover
101
+ },
102
+ "&:hover": {
103
+ cursor: "pointer"
104
+ }
105
+ }
128
106
  });
129
107
  export {
130
108
  staticClasses,
@@ -109,12 +109,12 @@ const HvRadio = forwardRef(
109
109
  disabled,
110
110
  required,
111
111
  readOnly,
112
- className: cx(classes.root, className),
112
+ className: cx(classes.root, classes[labelPosition], className),
113
113
  children: [
114
114
  hasLabel ? /* @__PURE__ */ jsxs(
115
115
  "div",
116
116
  {
117
- className: cx(classes.container, classes[labelPosition], {
117
+ className: cx(classes.container, {
118
118
  [classes.focusVisible]: !!(focusVisible && label),
119
119
  [classes.semantic]: semantic,
120
120
  [classes.checked]: isChecked,
@@ -14,13 +14,6 @@ const { staticClasses, useClasses } = createClasses("HvRadio", {
14
14
  },
15
15
  ":where(:has($label)) $radio": {
16
16
  borderRadius: "inherit"
17
- },
18
- "&$left": {
19
- flexDirection: "row-reverse",
20
- justifyContent: "flex-end"
21
- },
22
- "&$right": {
23
- flexDirection: "row"
24
17
  }
25
18
  },
26
19
  invalidContainer: {},
@@ -38,17 +31,22 @@ const { staticClasses, useClasses } = createClasses("HvRadio", {
38
31
  verticalAlign: "middle",
39
32
  ...theme.typography.body,
40
33
  cursor: "pointer",
41
- lineHeight: "32px"
34
+ lineHeight: "32px",
35
+ flex: 1
42
36
  },
43
37
  checked: {},
44
38
  semantic: {},
45
39
  left: {
46
- "& .HvRadio-label": {
47
- paddingLeft: theme.space.xs
40
+ "& $label": {
41
+ paddingLeft: theme.space.xs,
42
+ textAlign: "right"
43
+ },
44
+ "& $container": {
45
+ flexDirection: "row-reverse"
48
46
  }
49
47
  },
50
48
  right: {
51
- "& .HvRadio-label": {
49
+ "& $label": {
52
50
  paddingRight: theme.space.xs
53
51
  }
54
52
  }
@@ -1,7 +1,6 @@
1
1
  import { createClasses } from "@hitachivantara/uikit-react-utils";
2
- import { theme } from "@hitachivantara/uikit-styles";
3
2
  const { staticClasses, useClasses } = createClasses("HvSearchInput", {
4
- root: { paddingLeft: theme.space.xs },
3
+ root: {},
5
4
  input: { marginLeft: 0 }
6
5
  });
7
6
  export {
@@ -19,7 +19,6 @@ import { HvListContainer } from "../ListContainer/ListContainer.js";
19
19
  import { HvWarningText } from "../FormElement/WarningText/WarningText.js";
20
20
  function defaultRenderValue(options) {
21
21
  if (Array.isArray(options)) {
22
- if (options.length === 0) return null;
23
22
  return /* @__PURE__ */ jsx(Fragment, { children: options.map((o) => o.label).join(", ") });
24
23
  }
25
24
  return options?.label ?? null;
@@ -45,6 +44,7 @@ const HvSelect = fixedForwardRef(function HvSelect2(props, ref) {
45
44
  defaultOpen,
46
45
  multiple,
47
46
  autoComplete,
47
+ renderValue: renderValueProp,
48
48
  options: optionsProp,
49
49
  variableWidth,
50
50
  value: valueProp,
@@ -95,6 +95,7 @@ const HvSelect = fixedForwardRef(function HvSelect2(props, ref) {
95
95
  onChange,
96
96
  onOpenChange: handleOpenChange
97
97
  });
98
+ const renderValue = renderValueProp ?? defaultRenderValue;
98
99
  const id = useUniqueId(idProp);
99
100
  const labelId = useUniqueId(setId(idProp, "label"));
100
101
  const descriptionId = useUniqueId(setId(idProp, "description"));
@@ -171,7 +172,7 @@ const HvSelect = fixedForwardRef(function HvSelect2(props, ref) {
171
172
  [descriptionId]: description
172
173
  }),
173
174
  ...getButtonProps(),
174
- children: defaultRenderValue(actualValue) ?? placeholder
175
+ children: renderValue(actualValue) ?? placeholder
175
176
  }
176
177
  ),
177
178
  /* @__PURE__ */ jsx(
@@ -55,8 +55,8 @@ const pentahoIconsMap = {
55
55
  ] })
56
56
  },
57
57
  info: {
58
- regular: /* @__PURE__ */ jsx("path", { d: "M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }),
59
- fill: /* @__PURE__ */ jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z" }),
58
+ regular: /* @__PURE__ */ jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z" }),
59
+ fill: /* @__PURE__ */ jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z" }),
60
60
  duotone: /* @__PURE__ */ jsxs(Fragment, { children: [
61
61
  /* @__PURE__ */ jsx(
62
62
  "path",
@@ -65,7 +65,7 @@ const pentahoIconsMap = {
65
65
  opacity: "0.2"
66
66
  }
67
67
  ),
68
- /* @__PURE__ */ jsx("path", { d: "M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" })
68
+ /* @__PURE__ */ jsx("path", { d: "M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z" })
69
69
  ] })
70
70
  }
71
71
  };
@@ -89,7 +89,7 @@ const HvStatusIcon = forwardRef(function HvStatusIcon2(props, ref) {
89
89
  "data-type": type,
90
90
  "data-size": size,
91
91
  className: cx(classes.root, className),
92
- children: activeTheme?.name === "pentaho" && !customIcon ? /* @__PURE__ */ jsx(HvIconContainer, { size, children: /* @__PURE__ */ jsx(SvgBase, { viewBox: "0 0 256 256", className: classes.icon, children: pentahoIconsMap[variant]?.[weight] }) }) : /* @__PURE__ */ jsx(HvIconContainer, { size, children: customIcon || /* @__PURE__ */ jsx(
92
+ children: activeTheme?.name === "pentahoPlus" && !customIcon ? /* @__PURE__ */ jsx(HvIconContainer, { size, children: /* @__PURE__ */ jsx(SvgBase, { viewBox: "0 0 256 256", className: classes.icon, children: pentahoIconsMap[variant]?.[weight] }) }) : /* @__PURE__ */ jsx(HvIconContainer, { size, children: customIcon || /* @__PURE__ */ jsx(
93
93
  HvIcon,
94
94
  {
95
95
  compact: true,
@@ -14,37 +14,32 @@ const { staticClasses, useClasses } = createClasses("HvStatusIcon", {
14
14
  lineHeight: 0,
15
15
  flexShrink: 0,
16
16
  padding: theme.space.xxs,
17
+ borderRadius: theme.radii.base,
17
18
  "--icsize": "auto",
18
- [`&[data-size=xs]`]: { borderRadius: theme.radii.base },
19
- [`&[data-size=sm]`]: { borderRadius: theme.radii.base },
20
- [`&[data-size=md]`]: { borderRadius: theme.radii.round },
21
- [`&[data-size=lg]`]: { borderRadius: theme.radii.large },
22
- [`&[data-size=xl]`]: { borderRadius: theme.radii.large },
23
- [`:not([data-type="simple"])`]: {
19
+ ":where([data-size=md])": { borderRadius: theme.radii.round },
20
+ ":where([data-size=lg])": { borderRadius: theme.radii.large },
21
+ ":where([data-size=xl])": { borderRadius: theme.radii.large },
22
+ ":where([data-type=full])": {
24
23
  outline: "1px solid currentcolor"
25
24
  },
26
25
  ...Object.fromEntries(
27
26
  Object.entries(notificationMap).map(([variant, color]) => [
28
- [`&[data-variant="${variant}"]`],
27
+ [`:where([data-variant=${variant}])`],
29
28
  {
30
29
  color: theme.colors[color],
31
30
  outline: `1px solid ${theme.colors[`${color}Border`]}`,
32
31
  backgroundColor: theme.colors[`${color}Dimmed`],
33
- [`&[data-type="simple"]`]: {
32
+ ":where([data-type=simple])": {
34
33
  outline: "none",
35
34
  backgroundColor: "transparent"
36
35
  }
37
36
  }
38
37
  ])
39
38
  ),
40
- [`&[data-variant="default"]`]: {
39
+ ":where([data-variant=default][data-type=full])": {
41
40
  color: theme.colors.text,
42
41
  backgroundColor: theme.colors.bgPage,
43
- outline: `1px solid ${theme.colors.borderSubtle}`,
44
- [`&[data-type="simple"]`]: {
45
- outline: "none",
46
- backgroundColor: "transparent"
47
- }
42
+ outline: `1px solid ${theme.colors.borderSubtle}`
48
43
  }
49
44
  },
50
45
  icon: {
package/dist/Tag/Tag.js CHANGED
@@ -51,7 +51,7 @@ const HvTag = forwardRef(function HvTag2(props, ref) {
51
51
  event.stopPropagation();
52
52
  onDelete?.(event);
53
53
  };
54
- const color = activeTheme?.name === "pentaho" && colorMap[colorProp] || colorProp;
54
+ const color = activeTheme?.name === "pentahoPlus" && colorMap[colorProp] || colorProp;
55
55
  const tagColor = (
56
56
  // backwards-compatibility for `type` prop
57
57
  type === "categorical" && theme.alpha(color || "cat1", 0.2) || // use the palette color if it matches
@@ -61,7 +61,7 @@ const HvTextArea = forwardRef(function HvTextArea2(props, ref) {
61
61
  const isDirty = useRef(false);
62
62
  const inputRef = useRef(null);
63
63
  const forkedRef = useForkRef(ref, inputRefProp, inputRef);
64
- const [description, infoMessage] = activeTheme?.name === "pentaho" ? [infoMessageProp, descriptionProp] : [descriptionProp, infoMessageProp];
64
+ const [description, infoMessage] = activeTheme?.name === "pentahoPlus" ? [infoMessageProp, descriptionProp] : [descriptionProp, infoMessageProp];
65
65
  const [focused, setFocused] = useState(false);
66
66
  const [autoScrolling, setAutoScrolling] = useState(autoScroll);
67
67
  const [validationState, setValidationState] = useControlled(
package/dist/icons.js CHANGED
@@ -44,8 +44,8 @@ const defaultIconPathMap = {
44
44
  Add: "M16 8.5H8.5V16h-1V8.5H0v-1h7.5V0h1v7.5H16z",
45
45
  Close: "m8.7 8 5.3 5.3-.7.7L8 8.7 2.7 14l-.7-.7L7.3 8 2 2.7l.7-.7L8 7.3 13.3 2l.7.7z",
46
46
  Search: "M15.07 14.52 10.5 9.95a5.96 5.96 0 1 0-.72.7l4.58 4.58zM5.9 11A4.95 4.95 0 0 1 1 6v-.1A4.95 4.95 0 0 1 6 1h.1A4.95 4.95 0 0 1 11 6v.1A4.95 4.95 0 0 1 6 11z",
47
- SortAsc: "M.08 6.07 6.5.01l6.42 6.06Zm0 0",
48
- SortDesc: "M12.92 8.93 6.5 14.99.08 8.93Zm0 0",
47
+ SortAsc: "M10.24 7 6 11.24 1.76 7z",
48
+ SortDesc: "M1.76 5 6 .76 10.24 5z",
49
49
  Sort: "M10.24 7 6 11.24 1.76 7zM1.76 5 6 .76 10.24 5z",
50
50
  // single-use icons in Widgets
51
51
  Calendar: "M10.5 2V0h-1v2h-3V0h-1v2H0v14h16V2zM15 15H1V3h14zM3 6h2v2H3zm4 0h2v2H7zm4 0h2v2h-2zm-8 4h2v2H3zm4 0h2v2H7zm4 0h2v2h-2z",