@hitachivantara/uikit-react-core 6.0.0-next.1 → 6.0.0-next.2

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.
@@ -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"];
@@ -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;
@@ -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,
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",
package/dist/index.d.ts CHANGED
@@ -7192,7 +7192,7 @@ export declare const panelClasses: {
7192
7192
  root: string;
7193
7193
  };
7194
7194
 
7195
- export declare const pentaho: HvThemeStructure;
7195
+ export declare const pentahoPlus: HvThemeStructure;
7196
7196
 
7197
7197
  declare type PolymorphicComponent<C extends React.ElementType, Props = {}> = React.PropsWithChildren<Props & AsProp<C>> & FixComponentProps<Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>>;
7198
7198
 
@@ -7664,7 +7664,7 @@ export { theme }
7664
7664
 
7665
7665
  export declare const themes: {
7666
7666
  ds5: HvThemeStructure;
7667
- pentaho: HvThemeStructure;
7667
+ pentahoPlus: HvThemeStructure;
7668
7668
  };
7669
7669
 
7670
7670
  export declare const timeAgoClasses: {
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ import { processThemes, setElementAttrs } from "./utils/theme.js";
22
22
  import { useSavedState } from "./utils/useSavedState.js";
23
23
  import { uniqueId } from "./utils/helpers.js";
24
24
  import { ds5 } from "./themes/ds5.js";
25
- import { pentaho } from "./themes/pentaho.js";
25
+ import { pentahoPlus } from "./themes/pentahoPlus.js";
26
26
  import { staticClasses } from "./Typography/Typography.styles.js";
27
27
  import { HvTypography } from "./Typography/Typography.js";
28
28
  import { staticClasses as staticClasses2 } from "./ButtonBase/ButtonBase.styles.js";
@@ -534,7 +534,7 @@ export {
534
534
  staticClasses74 as overflowTooltipClasses,
535
535
  staticClasses75 as paginationClasses,
536
536
  staticClasses76 as panelClasses,
537
- pentaho,
537
+ pentahoPlus,
538
538
  processThemes,
539
539
  staticClasses77 as progressBarClasses,
540
540
  staticClasses78 as queryBuilderClasses,
@@ -1,8 +1,8 @@
1
1
  import { ds5 } from "./ds5.js";
2
- import { pentaho } from "./pentaho.js";
3
- const themes = { ds5, pentaho };
2
+ import { pentahoPlus } from "./pentahoPlus.js";
3
+ const themes = { ds5, pentahoPlus };
4
4
  export {
5
5
  ds5,
6
- pentaho,
6
+ pentahoPlus,
7
7
  themes
8
8
  };
@@ -1,4 +1,4 @@
1
- import { mergeTheme, pentaho as pentaho$1, theme, neutral, slate, blue } from "@hitachivantara/uikit-styles";
1
+ import { mergeTheme, pentahoPlus as pentahoPlus$1, theme, neutral, slate, blue } from "@hitachivantara/uikit-styles";
2
2
  const ld = (c1, c2) => `light-dark(${c1}, ${c2})`;
3
3
  const semaColors = ["positive", "warning", "negative", "info"];
4
4
  const notificationMap = {
@@ -18,7 +18,7 @@ const popperStyles = {
18
18
  borderRadius: theme.radii.large,
19
19
  boxShadow: `0px 0px 6px 0px rgba(65, 65, 65, 0.08)`
20
20
  };
21
- const pentaho = mergeTheme(pentaho$1, {
21
+ const pentahoPlus = mergeTheme(pentahoPlus$1, {
22
22
  components: {
23
23
  HvLoading: {
24
24
  classes: {
@@ -216,7 +216,7 @@ const pentaho = mergeTheme(pentaho$1, {
216
216
  classes: {
217
217
  root: {
218
218
  borderRadius: theme.radii.round,
219
- "& .HvButton-subtle[data-color=secondary]": {
219
+ "& .HvButton-subtle[data-color=text]": {
220
220
  borderColor: theme.colors.textDimmed,
221
221
  backgroundColor: inputColors.bg
222
222
  }
@@ -842,5 +842,5 @@ const pentaho = mergeTheme(pentaho$1, {
842
842
  }
843
843
  });
844
844
  export {
845
- pentaho
845
+ pentahoPlus
846
846
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "6.0.0-next.1",
3
+ "version": "6.0.0-next.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "author": "Hitachi Vantara UI Kit Team",
@@ -33,9 +33,9 @@
33
33
  "dependencies": {
34
34
  "@emotion/cache": "^11.11.0",
35
35
  "@emotion/serialize": "^1.1.2",
36
- "@hitachivantara/uikit-react-shared": "^6.0.0-next.1",
37
- "@hitachivantara/uikit-react-utils": "^6.0.0-next.1",
38
- "@hitachivantara/uikit-styles": "^6.0.0-next.1",
36
+ "@hitachivantara/uikit-react-shared": "^6.0.0-next.2",
37
+ "@hitachivantara/uikit-react-utils": "^6.0.0-next.2",
38
+ "@hitachivantara/uikit-styles": "^6.0.0-next.2",
39
39
  "@internationalized/date": "^3.2.0",
40
40
  "@mui/base": "5.0.0-beta.68",
41
41
  "@popperjs/core": "^2.11.8",
@@ -60,7 +60,7 @@
60
60
  "access": "public",
61
61
  "directory": "package"
62
62
  },
63
- "gitHead": "f8dfa00a9f29ffdfcabe9cd00553ddf8b7458bd0",
63
+ "gitHead": "0b07240fb2ef75e046d8e6aaf0ff71bf2415c73f",
64
64
  "exports": {
65
65
  ".": {
66
66
  "types": "./dist/index.d.ts",