@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.
- package/README.md +1 -1
- package/dist/cjs/AppSwitcher/Action/Action.cjs +4 -1
- package/dist/cjs/BaseRadio/BaseRadio.cjs +2 -2
- package/dist/cjs/BaseSwitch/BaseSwitch.cjs +2 -2
- package/dist/cjs/Card/Header/Header.styles.cjs +3 -1
- package/dist/cjs/CheckBox/CheckBox.cjs +2 -2
- package/dist/cjs/ColorPicker/Fields/Fields.cjs +0 -1
- package/dist/cjs/ColorPicker/Fields/Fields.styles.cjs +1 -3
- package/dist/cjs/ColorPicker/Picker/Picker.cjs +0 -1
- package/dist/cjs/ColorPicker/Picker/Picker.styles.cjs +1 -3
- package/dist/cjs/ColorPicker/PresetColors/PresetColors.cjs +0 -1
- package/dist/cjs/ColorPicker/PresetColors/PresetColors.styles.cjs +1 -3
- package/dist/cjs/ColorPicker/SavedColors/SavedColors.cjs +0 -1
- package/dist/cjs/ColorPicker/SavedColors/SavedColors.styles.cjs +1 -3
- package/dist/cjs/Dialog/Content/Content.cjs +26 -0
- package/dist/cjs/Dialog/Content/Content.styles.cjs +5 -2
- package/dist/cjs/Dialog/Dialog.styles.cjs +3 -1
- package/dist/cjs/Dialog/Title/Title.cjs +4 -4
- package/dist/cjs/DropdownButton/DropdownButton.cjs +2 -2
- package/dist/cjs/NumberInput/NumberInput.cjs +5 -5
- package/dist/cjs/Pagination/Pagination.cjs +6 -3
- package/dist/cjs/QueryBuilder/ConfirmationDialog.cjs +32 -0
- package/dist/cjs/QueryBuilder/QueryBuilder.cjs +4 -4
- package/dist/cjs/QueryBuilder/Rule/{Attribute/Attribute.cjs → Attribute.cjs} +3 -4
- package/dist/cjs/QueryBuilder/Rule/{Operator/Operator.cjs → Operator.cjs} +3 -4
- package/dist/cjs/QueryBuilder/Rule/Rule.cjs +3 -4
- package/dist/cjs/QueryBuilder/Rule/Rule.styles.cjs +46 -50
- package/dist/cjs/QueryBuilder/{RuleGroup/RuleGroup.cjs → RuleGroup.cjs} +9 -9
- package/dist/cjs/QueryBuilder/{Rule/Value/BooleanValue → Value}/BooleanValue.cjs +3 -5
- package/dist/cjs/QueryBuilder/{Rule/Value/DateTimeValue → Value}/DateTimeValue.cjs +67 -40
- package/dist/cjs/QueryBuilder/{Rule/Value/EmptyValue → Value}/EmptyValue.cjs +1 -1
- package/dist/cjs/QueryBuilder/{Rule/Value/NumericValue → Value}/NumericValue.cjs +33 -8
- package/dist/cjs/QueryBuilder/{Rule/Value/TextValue → Value}/TextValue.cjs +9 -5
- package/dist/cjs/QueryBuilder/{Rule/Value → Value}/Value.cjs +7 -9
- package/dist/cjs/Radio/Radio.cjs +3 -3
- package/dist/cjs/Section/Section.cjs +43 -18
- package/dist/cjs/Section/Section.styles.cjs +14 -2
- package/dist/cjs/Select/Select.cjs +2 -2
- package/dist/cjs/Switch/Switch.cjs +1 -1
- package/dist/cjs/Table/TableSection/TableSection.styles.cjs +1 -7
- package/dist/cjs/TagsInput/TagsInput.cjs +2 -2
- package/dist/cjs/TextArea/TextArea.cjs +2 -2
- package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +2 -2
- package/dist/cjs/providers/Provider.cjs +1 -4
- package/dist/cjs/themes/ds3.cjs +16 -0
- package/dist/cjs/themes/ds5.cjs +20 -0
- package/dist/cjs/themes/pentahoPlus.cjs +50 -16
- package/dist/esm/AppSwitcher/Action/Action.js +4 -1
- package/dist/esm/BaseRadio/BaseRadio.js +2 -2
- package/dist/esm/BaseSwitch/BaseSwitch.js +2 -2
- package/dist/esm/Card/Header/Header.styles.js +3 -1
- package/dist/esm/CheckBox/CheckBox.js +2 -2
- package/dist/esm/ColorPicker/Fields/Fields.js +1 -3
- package/dist/esm/ColorPicker/Fields/Fields.styles.js +1 -3
- package/dist/esm/ColorPicker/Picker/Picker.js +1 -3
- package/dist/esm/ColorPicker/Picker/Picker.styles.js +1 -3
- package/dist/esm/ColorPicker/PresetColors/PresetColors.js +1 -3
- package/dist/esm/ColorPicker/PresetColors/PresetColors.styles.js +1 -3
- package/dist/esm/ColorPicker/SavedColors/SavedColors.js +1 -3
- package/dist/esm/ColorPicker/SavedColors/SavedColors.styles.js +1 -3
- package/dist/esm/Dialog/Content/Content.js +27 -1
- package/dist/esm/Dialog/Content/Content.styles.js +5 -2
- package/dist/esm/Dialog/Dialog.styles.js +3 -1
- package/dist/esm/Dialog/Title/Title.js +5 -5
- package/dist/esm/DropdownButton/DropdownButton.js +2 -2
- package/dist/esm/NumberInput/NumberInput.js +1 -1
- package/dist/esm/Pagination/Pagination.js +2 -1
- package/dist/esm/QueryBuilder/ConfirmationDialog.js +32 -0
- package/dist/esm/QueryBuilder/QueryBuilder.js +4 -4
- package/dist/esm/QueryBuilder/Rule/{Attribute/Attribute.js → Attribute.js} +4 -5
- package/dist/esm/QueryBuilder/Rule/{Operator/Operator.js → Operator.js} +4 -5
- package/dist/esm/QueryBuilder/Rule/Rule.js +4 -6
- package/dist/esm/QueryBuilder/Rule/Rule.styles.js +47 -51
- package/dist/esm/QueryBuilder/{RuleGroup/RuleGroup.js → RuleGroup.js} +9 -9
- package/dist/esm/QueryBuilder/{Rule/Value/BooleanValue → Value}/BooleanValue.js +3 -5
- package/dist/esm/QueryBuilder/{Rule/Value/DateTimeValue → Value}/DateTimeValue.js +63 -35
- package/dist/esm/QueryBuilder/{Rule/Value/EmptyValue → Value}/EmptyValue.js +1 -1
- package/dist/esm/QueryBuilder/{Rule/Value/NumericValue → Value}/NumericValue.js +33 -8
- package/dist/esm/QueryBuilder/{Rule/Value/TextValue → Value}/TextValue.js +9 -5
- package/dist/esm/QueryBuilder/{Rule/Value → Value}/Value.js +7 -9
- package/dist/esm/Radio/Radio.js +3 -3
- package/dist/esm/Section/Section.js +44 -19
- package/dist/esm/Section/Section.styles.js +14 -2
- package/dist/esm/Select/Select.js +2 -2
- package/dist/esm/Switch/Switch.js +1 -1
- package/dist/esm/Table/TableSection/TableSection.styles.js +1 -7
- package/dist/esm/TagsInput/TagsInput.js +2 -2
- package/dist/esm/TextArea/TextArea.js +2 -2
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +2 -2
- package/dist/esm/providers/Provider.js +2 -5
- package/dist/esm/themes/ds3.js +16 -0
- package/dist/esm/themes/ds5.js +20 -0
- package/dist/esm/themes/pentahoPlus.js +50 -16
- package/dist/types/index.d.ts +51 -47
- package/package.json +6 -6
- package/dist/cjs/QueryBuilder/ConfirmationDialog/ConfirmationDialog.cjs +0 -53
- package/dist/cjs/QueryBuilder/ConfirmationDialog/ConfirmationDialog.styles.cjs +0 -11
- package/dist/cjs/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.styles.cjs +0 -37
- package/dist/cjs/QueryBuilder/Rule/Value/DateTimeValue/utils.cjs +0 -36
- package/dist/cjs/QueryBuilder/Rule/Value/NumericValue/Numeric.styles.cjs +0 -34
- package/dist/cjs/QueryBuilder/Rule/Value/TextValue/TextValue.styles.cjs +0 -13
- package/dist/esm/QueryBuilder/ConfirmationDialog/ConfirmationDialog.js +0 -53
- package/dist/esm/QueryBuilder/ConfirmationDialog/ConfirmationDialog.styles.js +0 -11
- package/dist/esm/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.styles.js +0 -37
- package/dist/esm/QueryBuilder/Rule/Value/DateTimeValue/utils.js +0 -34
- package/dist/esm/QueryBuilder/Rule/Value/NumericValue/Numeric.styles.js +0 -34
- 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
|
|
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;
|
package/dist/esm/themes/ds3.js
CHANGED
|
@@ -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
|
},
|
package/dist/esm/themes/ds5.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
614
|
-
backgroundColor: theme.colors.
|
|
640
|
+
outlineColor: theme.colors.primarySubtle,
|
|
641
|
+
backgroundColor: theme.colors.bgHover
|
|
615
642
|
}
|
|
616
643
|
},
|
|
617
644
|
selected: {
|
|
618
|
-
|
|
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
|
-
|
|
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: {
|