@hitachivantara/uikit-react-core 5.98.0 → 5.99.1

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 (107) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AppSwitcher/Action/Action.cjs +4 -1
  3. package/dist/cjs/BaseRadio/BaseRadio.cjs +2 -2
  4. package/dist/cjs/BaseSwitch/BaseSwitch.cjs +2 -2
  5. package/dist/cjs/Card/Header/Header.styles.cjs +3 -1
  6. package/dist/cjs/CheckBox/CheckBox.cjs +2 -2
  7. package/dist/cjs/ColorPicker/Fields/Fields.cjs +0 -1
  8. package/dist/cjs/ColorPicker/Fields/Fields.styles.cjs +1 -3
  9. package/dist/cjs/ColorPicker/Picker/Picker.cjs +0 -1
  10. package/dist/cjs/ColorPicker/Picker/Picker.styles.cjs +1 -3
  11. package/dist/cjs/ColorPicker/PresetColors/PresetColors.cjs +0 -1
  12. package/dist/cjs/ColorPicker/PresetColors/PresetColors.styles.cjs +1 -3
  13. package/dist/cjs/ColorPicker/SavedColors/SavedColors.cjs +0 -1
  14. package/dist/cjs/ColorPicker/SavedColors/SavedColors.styles.cjs +1 -3
  15. package/dist/cjs/Dialog/Content/Content.cjs +26 -0
  16. package/dist/cjs/Dialog/Content/Content.styles.cjs +5 -2
  17. package/dist/cjs/Dialog/Dialog.styles.cjs +3 -1
  18. package/dist/cjs/Dialog/Title/Title.cjs +4 -4
  19. package/dist/cjs/DropdownButton/DropdownButton.cjs +2 -2
  20. package/dist/cjs/NumberInput/NumberInput.cjs +5 -5
  21. package/dist/cjs/Pagination/Pagination.cjs +6 -3
  22. package/dist/cjs/QueryBuilder/ConfirmationDialog.cjs +32 -0
  23. package/dist/cjs/QueryBuilder/QueryBuilder.cjs +4 -4
  24. package/dist/cjs/QueryBuilder/Rule/{Attribute/Attribute.cjs → Attribute.cjs} +3 -4
  25. package/dist/cjs/QueryBuilder/Rule/{Operator/Operator.cjs → Operator.cjs} +3 -4
  26. package/dist/cjs/QueryBuilder/Rule/Rule.cjs +3 -4
  27. package/dist/cjs/QueryBuilder/Rule/Rule.styles.cjs +46 -50
  28. package/dist/cjs/QueryBuilder/{RuleGroup/RuleGroup.cjs → RuleGroup.cjs} +9 -9
  29. package/dist/cjs/QueryBuilder/{Rule/Value/BooleanValue → Value}/BooleanValue.cjs +3 -5
  30. package/dist/cjs/QueryBuilder/{Rule/Value/DateTimeValue → Value}/DateTimeValue.cjs +67 -40
  31. package/dist/cjs/QueryBuilder/{Rule/Value/EmptyValue → Value}/EmptyValue.cjs +1 -1
  32. package/dist/cjs/QueryBuilder/{Rule/Value/NumericValue → Value}/NumericValue.cjs +33 -8
  33. package/dist/cjs/QueryBuilder/{Rule/Value/TextValue → Value}/TextValue.cjs +9 -5
  34. package/dist/cjs/QueryBuilder/{Rule/Value → Value}/Value.cjs +7 -9
  35. package/dist/cjs/Radio/Radio.cjs +3 -3
  36. package/dist/cjs/Section/Section.cjs +43 -18
  37. package/dist/cjs/Section/Section.styles.cjs +14 -2
  38. package/dist/cjs/Select/Select.cjs +2 -2
  39. package/dist/cjs/Switch/Switch.cjs +1 -1
  40. package/dist/cjs/Table/TableSection/TableSection.styles.cjs +1 -7
  41. package/dist/cjs/TagsInput/TagsInput.cjs +2 -2
  42. package/dist/cjs/TextArea/TextArea.cjs +2 -2
  43. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +2 -2
  44. package/dist/cjs/providers/Provider.cjs +1 -4
  45. package/dist/cjs/themes/ds3.cjs +16 -0
  46. package/dist/cjs/themes/ds5.cjs +20 -0
  47. package/dist/cjs/themes/pentahoPlus.cjs +50 -16
  48. package/dist/esm/AppSwitcher/Action/Action.js +4 -1
  49. package/dist/esm/BaseRadio/BaseRadio.js +2 -2
  50. package/dist/esm/BaseSwitch/BaseSwitch.js +2 -2
  51. package/dist/esm/Card/Header/Header.styles.js +3 -1
  52. package/dist/esm/CheckBox/CheckBox.js +2 -2
  53. package/dist/esm/ColorPicker/Fields/Fields.js +1 -3
  54. package/dist/esm/ColorPicker/Fields/Fields.styles.js +1 -3
  55. package/dist/esm/ColorPicker/Picker/Picker.js +1 -3
  56. package/dist/esm/ColorPicker/Picker/Picker.styles.js +1 -3
  57. package/dist/esm/ColorPicker/PresetColors/PresetColors.js +1 -3
  58. package/dist/esm/ColorPicker/PresetColors/PresetColors.styles.js +1 -3
  59. package/dist/esm/ColorPicker/SavedColors/SavedColors.js +1 -3
  60. package/dist/esm/ColorPicker/SavedColors/SavedColors.styles.js +1 -3
  61. package/dist/esm/Dialog/Content/Content.js +27 -1
  62. package/dist/esm/Dialog/Content/Content.styles.js +5 -2
  63. package/dist/esm/Dialog/Dialog.styles.js +3 -1
  64. package/dist/esm/Dialog/Title/Title.js +5 -5
  65. package/dist/esm/DropdownButton/DropdownButton.js +2 -2
  66. package/dist/esm/NumberInput/NumberInput.js +1 -1
  67. package/dist/esm/Pagination/Pagination.js +2 -1
  68. package/dist/esm/QueryBuilder/ConfirmationDialog.js +32 -0
  69. package/dist/esm/QueryBuilder/QueryBuilder.js +4 -4
  70. package/dist/esm/QueryBuilder/Rule/{Attribute/Attribute.js → Attribute.js} +4 -5
  71. package/dist/esm/QueryBuilder/Rule/{Operator/Operator.js → Operator.js} +4 -5
  72. package/dist/esm/QueryBuilder/Rule/Rule.js +4 -6
  73. package/dist/esm/QueryBuilder/Rule/Rule.styles.js +47 -51
  74. package/dist/esm/QueryBuilder/{RuleGroup/RuleGroup.js → RuleGroup.js} +9 -9
  75. package/dist/esm/QueryBuilder/{Rule/Value/BooleanValue → Value}/BooleanValue.js +3 -5
  76. package/dist/esm/QueryBuilder/{Rule/Value/DateTimeValue → Value}/DateTimeValue.js +63 -35
  77. package/dist/esm/QueryBuilder/{Rule/Value/EmptyValue → Value}/EmptyValue.js +1 -1
  78. package/dist/esm/QueryBuilder/{Rule/Value/NumericValue → Value}/NumericValue.js +33 -8
  79. package/dist/esm/QueryBuilder/{Rule/Value/TextValue → Value}/TextValue.js +9 -5
  80. package/dist/esm/QueryBuilder/{Rule/Value → Value}/Value.js +7 -9
  81. package/dist/esm/Radio/Radio.js +3 -3
  82. package/dist/esm/Section/Section.js +44 -19
  83. package/dist/esm/Section/Section.styles.js +14 -2
  84. package/dist/esm/Select/Select.js +2 -2
  85. package/dist/esm/Switch/Switch.js +1 -1
  86. package/dist/esm/Table/TableSection/TableSection.styles.js +1 -7
  87. package/dist/esm/TagsInput/TagsInput.js +2 -2
  88. package/dist/esm/TextArea/TextArea.js +2 -2
  89. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +2 -2
  90. package/dist/esm/providers/Provider.js +2 -5
  91. package/dist/esm/themes/ds3.js +16 -0
  92. package/dist/esm/themes/ds5.js +20 -0
  93. package/dist/esm/themes/pentahoPlus.js +50 -16
  94. package/dist/types/index.d.ts +51 -47
  95. package/package.json +6 -6
  96. package/dist/cjs/QueryBuilder/ConfirmationDialog/ConfirmationDialog.cjs +0 -53
  97. package/dist/cjs/QueryBuilder/ConfirmationDialog/ConfirmationDialog.styles.cjs +0 -11
  98. package/dist/cjs/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.styles.cjs +0 -37
  99. package/dist/cjs/QueryBuilder/Rule/Value/DateTimeValue/utils.cjs +0 -36
  100. package/dist/cjs/QueryBuilder/Rule/Value/NumericValue/Numeric.styles.cjs +0 -34
  101. package/dist/cjs/QueryBuilder/Rule/Value/TextValue/TextValue.styles.cjs +0 -13
  102. package/dist/esm/QueryBuilder/ConfirmationDialog/ConfirmationDialog.js +0 -53
  103. package/dist/esm/QueryBuilder/ConfirmationDialog/ConfirmationDialog.styles.js +0 -11
  104. package/dist/esm/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.styles.js +0 -37
  105. package/dist/esm/QueryBuilder/Rule/Value/DateTimeValue/utils.js +0 -34
  106. package/dist/esm/QueryBuilder/Rule/Value/NumericValue/Numeric.styles.js +0 -34
  107. package/dist/esm/QueryBuilder/Rule/Value/TextValue/TextValue.styles.js +0 -13
@@ -1,14 +1,12 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useMemo } from "react";
2
+ import { useId, useMemo } from "react";
3
3
  import createCache from "@emotion/cache";
4
4
  import { CacheProvider, Global, css, ClassNames } from "@emotion/react";
5
5
  import { CssBaseline, getThemesVars, CssScopedBaseline } from "@hitachivantara/uikit-styles";
6
- import { useUniqueId } from "../hooks/useUniqueId.js";
7
6
  import { getElementById } from "../utils/document.js";
8
7
  import { processThemes } from "../utils/theme.js";
9
8
  import { HvThemeProvider } from "./ThemeProvider.js";
10
9
  import { defaultCacheKey, defaultEmotionCache } from "@hitachivantara/uikit-react-shared";
11
- const scopedRootPrefix = "hv-uikit-scoped-root";
12
10
  const HvProvider = ({
13
11
  children,
14
12
  rootElementId,
@@ -20,8 +18,7 @@ const HvProvider = ({
20
18
  emotionCache: emotionCacheProp,
21
19
  classNameKey = defaultCacheKey
22
20
  }) => {
23
- const generatedId = useUniqueId();
24
- const scopedRootId = `${scopedRootPrefix}-${generatedId}`;
21
+ const scopedRootId = useId();
25
22
  const themesList = processThemes(themes);
26
23
  const emotionCache = useMemo(() => {
27
24
  if (emotionCacheProp) return emotionCacheProp;
@@ -488,6 +488,22 @@ const ds3 = mergeTheme(ds3$1, {
488
488
  classes: {
489
489
  titleText: {
490
490
  ...theme.typography.xxsTitle
491
+ },
492
+ root: {
493
+ "& .HvStatusIcon-root": {
494
+ padding: 0
495
+ },
496
+ "& .HvIconContainer-root": {
497
+ color: `${theme.colors.secondary}!important`
498
+ }
499
+ }
500
+ }
501
+ },
502
+ HvDialogContent: {
503
+ classes: {
504
+ root: {
505
+ borderTop: "none!important",
506
+ borderBottom: "none!important"
491
507
  }
492
508
  }
493
509
  },
@@ -145,6 +145,26 @@ const ds5 = mergeTheme(ds5$1, {
145
145
  "--tagColor": theme.alpha("cat1", 0.2)
146
146
  }
147
147
  }
148
+ },
149
+ HvDialogTitle: {
150
+ classes: {
151
+ root: {
152
+ "& .HvStatusIcon-root": {
153
+ padding: 0
154
+ },
155
+ "& .HvIconContainer-root": {
156
+ color: `${theme.colors.secondary}!important`
157
+ }
158
+ }
159
+ }
160
+ },
161
+ HvDialogContent: {
162
+ classes: {
163
+ root: {
164
+ borderTop: "none",
165
+ borderBottom: "none"
166
+ }
167
+ }
148
168
  }
149
169
  }
150
170
  });
@@ -57,7 +57,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
57
57
  ),
58
58
  message: {
59
59
  "&&": {
60
- color: theme.colors.secondary
60
+ color: theme.colors.text
61
61
  }
62
62
  },
63
63
  messageIcon: {
@@ -67,7 +67,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
67
67
  color: "var(--title)"
68
68
  },
69
69
  actionClose: {
70
- color: theme.colors.secondary
70
+ color: theme.colors.text
71
71
  }
72
72
  }
73
73
  },
@@ -91,7 +91,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
91
91
  },
92
92
  checked: {
93
93
  "--bg-color": theme.colors.primary,
94
- color: theme.colors.atmo1
94
+ color: theme.colors.bgContainer
95
95
  }
96
96
  }
97
97
  },
@@ -148,6 +148,14 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
148
148
  }
149
149
  }
150
150
  },
151
+ HvSection: {
152
+ classes: {
153
+ content: {
154
+ backgroundColor: theme.colors.bgPage
155
+ // = bgContainerSecondary
156
+ }
157
+ }
158
+ },
151
159
  HvSelect: {
152
160
  classes: {
153
161
  root: {
@@ -291,7 +299,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
291
299
  button: {
292
300
  borderRadius: 2,
293
301
  "&:focus": {
294
- borderColor: theme.colors.secondary
302
+ borderColor: theme.colors.text
295
303
  }
296
304
  },
297
305
  inputRoot: {
@@ -435,6 +443,25 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
435
443
  }
436
444
  }
437
445
  },
446
+ HvDialog: {
447
+ classes: {
448
+ paper: {
449
+ borderRadius: theme.radii.large
450
+ },
451
+ statusBar: {
452
+ border: "none",
453
+ borderTopLeftRadius: theme.radii.large,
454
+ borderTopRightRadius: theme.radii.large
455
+ }
456
+ }
457
+ },
458
+ HvDialogActions: {
459
+ classes: {
460
+ root: {
461
+ borderTop: "none"
462
+ }
463
+ }
464
+ },
438
465
  HvDropdownButton: {
439
466
  classes: {
440
467
  disabled: {
@@ -458,7 +485,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
458
485
  HvHeader: {
459
486
  classes: {
460
487
  root: {
461
- borderBottom: `1px solid ${theme.colors.atmo3}`,
488
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`,
462
489
  boxShadow: "none"
463
490
  }
464
491
  }
@@ -466,7 +493,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
466
493
  HvHeaderBrand: {
467
494
  classes: {
468
495
  separator: {
469
- backgroundColor: theme.colors.atmo4,
496
+ backgroundColor: theme.colors.border,
470
497
  margin: theme.spacing(0, "md"),
471
498
  height: 32
472
499
  }
@@ -476,16 +503,16 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
476
503
  classes: {
477
504
  active: {
478
505
  boxShadow: "none",
479
- borderBottom: `1px solid ${theme.colors.atmo3}`
506
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`
480
507
  },
481
508
  list: {
482
509
  "& li:hover > .HvHeader-MenuBar-hidden": {
483
510
  boxShadow: "none",
484
- borderBottom: `1px solid ${theme.colors.atmo3}`
511
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`
485
512
  },
486
513
  "& li:focus-within > .HvHeader-MenuBar-hidden": {
487
514
  boxShadow: "none",
488
- borderBottom: `1px solid ${theme.colors.atmo3}`
515
+ borderBottom: `1px solid ${theme.colors.borderSubtle}`
489
516
  }
490
517
  }
491
518
  }
@@ -494,7 +521,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
494
521
  classes: {
495
522
  root: {
496
523
  width: 280,
497
- color: theme.colors.base_light,
524
+ color: theme.colors.textLight,
498
525
  backgroundColor: slate[900],
499
526
  borderRight: `1px solid ${slate[500]}`,
500
527
  "& > :not(nav:first-of-type)": {
@@ -610,12 +637,14 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
610
637
  },
611
638
  selectable: {
612
639
  ":hover": {
613
- outlineColor: theme.colors.bgHover,
614
- backgroundColor: theme.colors.primaryDimmed
640
+ outlineColor: theme.colors.primarySubtle,
641
+ backgroundColor: theme.colors.bgHover
615
642
  }
616
643
  },
617
644
  selected: {
618
- outlineColor: theme.colors.primaryDeep
645
+ "&,&:hover,&:focus": {
646
+ outlineColor: theme.colors.primary
647
+ }
619
648
  },
620
649
  semanticBar: {
621
650
  "--bar-height": "2px",
@@ -627,8 +656,13 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
627
656
  classes: {
628
657
  root: {
629
658
  flexDirection: "row-reverse",
630
- padding: theme.spacing("xs", "sm"),
631
- gap: 0
659
+ padding: theme.spacing("xs", "sm")
660
+ },
661
+ subheader: {
662
+ color: theme.colors.textSubtle
663
+ },
664
+ action: {
665
+ alignSelf: "center"
632
666
  }
633
667
  }
634
668
  },
@@ -643,7 +677,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
643
677
  }
644
678
  },
645
679
  HvFooter: {
646
- name: "Pentaho+"
680
+ name: "Pentaho"
647
681
  },
648
682
  HvTabs: {
649
683
  classes: {