@hitachivantara/uikit-react-core 3.67.6 → 3.67.7
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/BaseInput/styles.js +32 -6
- package/dist/BaseInput/styles.js.map +1 -1
- package/dist/Forms/WarningText/WarningText.d.ts +1 -2
- package/dist/Forms/WarningText/WarningText.js +1 -6
- package/dist/Forms/WarningText/WarningText.js.map +1 -1
- package/dist/Forms/WarningText/styles.js +0 -6
- package/dist/Forms/WarningText/styles.js.map +1 -1
- package/dist/Input/styles.js +0 -6
- package/dist/Input/styles.js.map +1 -1
- package/dist/Provider/Provider.d.ts +15 -0
- package/dist/Provider/Provider.js +34 -6
- package/dist/Provider/Provider.js.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/legacy/BaseInput/styles.js +32 -6
- package/dist/legacy/BaseInput/styles.js.map +1 -1
- package/dist/legacy/Forms/WarningText/WarningText.d.ts +1 -2
- package/dist/legacy/Forms/WarningText/WarningText.js +1 -6
- package/dist/legacy/Forms/WarningText/WarningText.js.map +1 -1
- package/dist/legacy/Forms/WarningText/styles.js +0 -6
- package/dist/legacy/Forms/WarningText/styles.js.map +1 -1
- package/dist/legacy/Input/styles.js +0 -6
- package/dist/legacy/Input/styles.js.map +1 -1
- package/dist/legacy/Provider/Provider.d.ts +15 -0
- package/dist/legacy/Provider/Provider.js +34 -7
- package/dist/legacy/Provider/Provider.js.map +1 -1
- package/dist/legacy/index.js +2 -1
- package/dist/legacy/index.js.map +1 -1
- package/dist/legacy/theme/CssBaseline.d.ts +1 -0
- package/dist/legacy/theme/CssBaseline.js +11 -32
- package/dist/legacy/theme/CssBaseline.js.map +1 -1
- package/dist/legacy/theme/ScopedCssBaseline.d.ts +13 -0
- package/dist/legacy/theme/ScopedCssBaseline.js +67 -0
- package/dist/legacy/theme/ScopedCssBaseline.js.map +1 -0
- package/dist/legacy/theme/index.d.ts +2 -1
- package/dist/legacy/theme/index.js +2 -1
- package/dist/legacy/theme/index.js.map +1 -1
- package/dist/modern/BaseInput/styles.js +32 -6
- package/dist/modern/BaseInput/styles.js.map +1 -1
- package/dist/modern/Forms/WarningText/WarningText.d.ts +1 -2
- package/dist/modern/Forms/WarningText/WarningText.js +1 -6
- package/dist/modern/Forms/WarningText/WarningText.js.map +1 -1
- package/dist/modern/Forms/WarningText/styles.js +0 -6
- package/dist/modern/Forms/WarningText/styles.js.map +1 -1
- package/dist/modern/Input/styles.js +0 -6
- package/dist/modern/Input/styles.js.map +1 -1
- package/dist/modern/Provider/Provider.d.ts +15 -0
- package/dist/modern/Provider/Provider.js +32 -7
- package/dist/modern/Provider/Provider.js.map +1 -1
- package/dist/modern/index.js +2 -1
- package/dist/modern/index.js.map +1 -1
- package/dist/modern/theme/CssBaseline.d.ts +1 -0
- package/dist/modern/theme/CssBaseline.js +11 -32
- package/dist/modern/theme/CssBaseline.js.map +1 -1
- package/dist/modern/theme/ScopedCssBaseline.d.ts +13 -0
- package/dist/modern/theme/ScopedCssBaseline.js +59 -0
- package/dist/modern/theme/ScopedCssBaseline.js.map +1 -0
- package/dist/modern/theme/index.d.ts +2 -1
- package/dist/modern/theme/index.js +2 -1
- package/dist/modern/theme/index.js.map +1 -1
- package/dist/theme/CssBaseline.d.ts +1 -0
- package/dist/theme/CssBaseline.js +12 -29
- package/dist/theme/CssBaseline.js.map +1 -1
- package/dist/theme/ScopedCssBaseline.d.ts +13 -0
- package/dist/theme/ScopedCssBaseline.js +105 -0
- package/dist/theme/ScopedCssBaseline.js.map +1 -0
- package/dist/theme/index.d.ts +2 -1
- package/dist/theme/index.js +9 -1
- package/dist/theme/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
|
|
4
|
+
export interface HvScopedCssBaselineProps<D extends React.ElementType = "div">
|
|
5
|
+
extends StandardProps<React.HTMLAttributes<D>, ""> {
|
|
6
|
+
/**
|
|
7
|
+
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
8
|
+
* Defaults to `div`.
|
|
9
|
+
*/
|
|
10
|
+
component?: React.ElementType<React.HTMLAttributes<HTMLElement>>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default function HvScopedCssBaseline(props: HvScopedCssBaselineProps): JSX.Element | null;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
const _excluded = ["component", "className", "children"];
|
|
5
|
+
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
+
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
|
+
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import PropTypes from "prop-types";
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
import { makeStyles } from "@material-ui/core/styles";
|
|
14
|
+
import { html, body } from "./CssBaseline";
|
|
15
|
+
const useStyles = makeStyles(theme => ({
|
|
16
|
+
/* Styles applied to the root element. */
|
|
17
|
+
root: _objectSpread(_objectSpread(_objectSpread({}, html), body(theme)), {}, {
|
|
18
|
+
"& *, & *::before, & *::after": {
|
|
19
|
+
boxSizing: "inherit"
|
|
20
|
+
},
|
|
21
|
+
"& strong, & b": {
|
|
22
|
+
fontWeight: theme.hv.typography.highlightText.fontWeight
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
}));
|
|
26
|
+
const ScopedCssBaseline = /*#__PURE__*/React.forwardRef(function ScopedCssBaseline(props, ref) {
|
|
27
|
+
const {
|
|
28
|
+
component: RootComponent = "div",
|
|
29
|
+
className,
|
|
30
|
+
children
|
|
31
|
+
} = props,
|
|
32
|
+
other = _objectWithoutProperties(props, _excluded);
|
|
33
|
+
|
|
34
|
+
const classes = useStyles();
|
|
35
|
+
return /*#__PURE__*/React.createElement(RootComponent, _extends({
|
|
36
|
+
className: clsx(classes.root, className),
|
|
37
|
+
ref: ref
|
|
38
|
+
}, other), children);
|
|
39
|
+
});
|
|
40
|
+
process.env.NODE_ENV !== "production" ? ScopedCssBaseline.propTypes = {
|
|
41
|
+
/**
|
|
42
|
+
* The content of the component.
|
|
43
|
+
*/
|
|
44
|
+
children: PropTypes.node,
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The component used for the root node.
|
|
48
|
+
* Either a string to use a HTML element or a component.
|
|
49
|
+
* Defaults to `div`.
|
|
50
|
+
*/
|
|
51
|
+
component: PropTypes.elementType,
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
className: PropTypes.string
|
|
57
|
+
} : void 0;
|
|
58
|
+
export default ScopedCssBaseline;
|
|
59
|
+
//# sourceMappingURL=ScopedCssBaseline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopedCssBaseline.js","names":["React","PropTypes","clsx","makeStyles","html","body","useStyles","theme","root","boxSizing","fontWeight","hv","typography","highlightText","ScopedCssBaseline","forwardRef","props","ref","component","RootComponent","className","children","other","classes","propTypes","node","elementType","string"],"sources":["../../../src/theme/ScopedCssBaseline.js"],"sourcesContent":["import * as React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { makeStyles } from \"@material-ui/core/styles\";\n\nimport { html, body } from \"./CssBaseline\";\n\nconst useStyles = makeStyles((theme) => ({\n /* Styles applied to the root element. */\n root: {\n ...html,\n ...body(theme),\n \"& *, & *::before, & *::after\": {\n boxSizing: \"inherit\",\n },\n \"& strong, & b\": {\n fontWeight: theme.hv.typography.highlightText.fontWeight,\n },\n },\n}));\n\nconst ScopedCssBaseline = React.forwardRef(function ScopedCssBaseline(props, ref) {\n const { component: RootComponent = \"div\", className, children, ...other } = props;\n\n const classes = useStyles();\n\n return (\n <RootComponent className={clsx(classes.root, className)} ref={ref} {...other}>\n {children}\n </RootComponent>\n );\n});\n\nScopedCssBaseline.propTypes = {\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n * Defaults to `div`.\n */\n component: PropTypes.elementType,\n /**\n * @ignore\n */\n className: PropTypes.string,\n};\n\nexport default ScopedCssBaseline;\n"],"mappings":";;;;;;;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,MAAjB;AAEA,SAASC,UAAT,QAA2B,0BAA3B;AAEA,SAASC,IAAT,EAAeC,IAAf,QAA2B,eAA3B;AAEA,MAAMC,SAAS,GAAGH,UAAU,CAAEI,KAAD,KAAY;EACvC;EACAC,IAAI,gDACCJ,IADD,GAECC,IAAI,CAACE,KAAD,CAFL;IAGF,gCAAgC;MAC9BE,SAAS,EAAE;IADmB,CAH9B;IAMF,iBAAiB;MACfC,UAAU,EAAEH,KAAK,CAACI,EAAN,CAASC,UAAT,CAAoBC,aAApB,CAAkCH;IAD/B;EANf;AAFmC,CAAZ,CAAD,CAA5B;AAcA,MAAMI,iBAAiB,gBAAGd,KAAK,CAACe,UAAN,CAAiB,SAASD,iBAAT,CAA2BE,KAA3B,EAAkCC,GAAlC,EAAuC;EAChF,MAAM;IAAEC,SAAS,EAAEC,aAAa,GAAG,KAA7B;IAAoCC,SAApC;IAA+CC;EAA/C,IAAsEL,KAA5E;EAAA,MAAkEM,KAAlE,4BAA4EN,KAA5E;;EAEA,MAAMO,OAAO,GAAGjB,SAAS,EAAzB;EAEA,oBACE,oBAAC,aAAD;IAAe,SAAS,EAAEJ,IAAI,CAACqB,OAAO,CAACf,IAAT,EAAeY,SAAf,CAA9B;IAAyD,GAAG,EAAEH;EAA9D,GAAuEK,KAAvE,GACGD,QADH,CADF;AAKD,CAVyB,CAA1B;AAYA,wCAAAP,iBAAiB,CAACU,SAAlB,GAA8B;EAC5B;AACF;AACA;EACEH,QAAQ,EAAEpB,SAAS,CAACwB,IAJQ;;EAK5B;AACF;AACA;AACA;AACA;EACEP,SAAS,EAAEjB,SAAS,CAACyB,WAVO;;EAW5B;AACF;AACA;EACEN,SAAS,EAAEnB,SAAS,CAAC0B;AAdO,CAA9B;AAiBA,eAAeb,iBAAf"}
|
|
@@ -149,4 +149,5 @@ export function getTheme(theme: string): object;
|
|
|
149
149
|
export default Theme;
|
|
150
150
|
|
|
151
151
|
export { default as createGenerateClassName } from "./createGenerateClassName";
|
|
152
|
-
export { default as
|
|
152
|
+
export { default as HvCssBaseline } from "./CssBaseline";
|
|
153
|
+
export { default as HvScopedCssBaseline } from "./ScopedCssBaseline";
|
|
@@ -73,7 +73,8 @@ const themeBuilder = theme => {
|
|
|
73
73
|
|
|
74
74
|
const defaultTheme = themeBuilder(getTheme("dawn"));
|
|
75
75
|
export { default as createGenerateClassName } from "./createGenerateClassName";
|
|
76
|
-
export { default as
|
|
76
|
+
export { default as HvCssBaseline } from "./CssBaseline";
|
|
77
|
+
export { default as HvScopedCssBaseline } from "./ScopedCssBaseline";
|
|
77
78
|
export { getTheme };
|
|
78
79
|
export { themeBuilder };
|
|
79
80
|
export default defaultTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["createTheme","dawnTheme","wickedTheme","muiAppBarOverrides","muiToolbarOverrides","muiIconButtonOverrides","createTypography","createPalette","createSpacing","hvSpacing","getTheme","uiKitTheme","themeBuilder","theme","themeSpacing","themePalette","themeTypography","shadows","Array","fill","spacing","palette","typography","shape","borderRadius","breakpoints","values","xs","sm","md","lg","xl","props","MuiButtonBase","disableRipple","MuiInput","disableUnderline","overrides","MuiPaper","root","backgroundColor","atmosphere","atmo1","MuiAppBar","MuiToolbar","MuiIconButton","hv","defaultTheme","default","createGenerateClassName","
|
|
1
|
+
{"version":3,"file":"index.js","names":["createTheme","dawnTheme","wickedTheme","muiAppBarOverrides","muiToolbarOverrides","muiIconButtonOverrides","createTypography","createPalette","createSpacing","hvSpacing","getTheme","uiKitTheme","themeBuilder","theme","themeSpacing","themePalette","themeTypography","shadows","Array","fill","spacing","palette","typography","shape","borderRadius","breakpoints","values","xs","sm","md","lg","xl","props","MuiButtonBase","disableRipple","MuiInput","disableUnderline","overrides","MuiPaper","root","backgroundColor","atmosphere","atmo1","MuiAppBar","MuiToolbar","MuiIconButton","hv","defaultTheme","default","createGenerateClassName","HvCssBaseline","HvScopedCssBaseline"],"sources":["../../../src/theme/index.js"],"sourcesContent":["import { createTheme } from \"@material-ui/core/styles\";\nimport dawnTheme from \"@hitachivantara/uikit-common-themes/dist/dawn\";\nimport wickedTheme from \"@hitachivantara/uikit-common-themes/dist/wicked\";\nimport muiAppBarOverrides from \"./overrides/muiAppBar\";\nimport muiToolbarOverrides from \"./overrides/muiToolbar\";\nimport muiIconButtonOverrides from \"./overrides/muiIconButton\";\nimport createTypography from \"./typography\";\nimport createPalette from \"./palette\";\nimport createSpacing, { hvSpacing } from \"./spacing\";\n\nconst getTheme = (uiKitTheme) => {\n switch (uiKitTheme) {\n default:\n case \"dawn\":\n return dawnTheme;\n case \"wicked\":\n return wickedTheme;\n }\n};\n\nconst themeBuilder = (theme) => {\n const themeSpacing = createSpacing(theme);\n const themePalette = createPalette(theme);\n const themeTypography = createTypography(themePalette, theme);\n\n return createTheme({\n shadows: Array(25).fill(\"none\"),\n\n // MUI's spacing doesn't cover our use cases because of regression:\n // https://github.com/mui-org/material-ui/issues/21278\n spacing: themeSpacing,\n hvSpacing: hvSpacing(themeSpacing),\n\n palette: themePalette,\n typography: themeTypography,\n shape: {\n borderRadius: 0,\n },\n breakpoints: {\n values: {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1270,\n xl: 1920,\n },\n },\n props: {\n MuiButtonBase: {\n disableRipple: true,\n },\n MuiInput: {\n disableUnderline: true,\n },\n },\n overrides: {\n MuiPaper: {\n root: {\n backgroundColor: theme.palette.atmosphere.atmo1,\n },\n },\n MuiAppBar: {\n ...muiAppBarOverrides(theme),\n },\n MuiToolbar: {\n ...muiToolbarOverrides(theme),\n },\n MuiIconButton: {\n ...muiIconButtonOverrides(theme),\n },\n },\n hv: theme,\n });\n};\n\nconst defaultTheme = themeBuilder(getTheme(\"dawn\"));\n\nexport { default as createGenerateClassName } from \"./createGenerateClassName\";\nexport { default as HvCssBaseline } from \"./CssBaseline\";\nexport { default as HvScopedCssBaseline } from \"./ScopedCssBaseline\";\nexport { getTheme };\n\nexport { themeBuilder };\nexport default defaultTheme;\n"],"mappings":";;;;;;AAAA,SAASA,WAAT,QAA4B,0BAA5B;AACA,OAAOC,SAAP,MAAsB,+CAAtB;AACA,OAAOC,WAAP,MAAwB,iDAAxB;AACA,OAAOC,kBAAP,MAA+B,uBAA/B;AACA,OAAOC,mBAAP,MAAgC,wBAAhC;AACA,OAAOC,sBAAP,MAAmC,2BAAnC;AACA,OAAOC,gBAAP,MAA6B,cAA7B;AACA,OAAOC,aAAP,MAA0B,WAA1B;AACA,OAAOC,aAAP,IAAwBC,SAAxB,QAAyC,WAAzC;;AAEA,MAAMC,QAAQ,GAAIC,UAAD,IAAgB;EAC/B,QAAQA,UAAR;IACE;IACA,KAAK,MAAL;MACE,OAAOV,SAAP;;IACF,KAAK,QAAL;MACE,OAAO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C,MAAD,CAAT,CAAjC;AAEA,SAASsC,OAAO,IAAIC,uBAApB,QAAmD,2BAAnD;AACA,SAASD,OAAO,IAAIE,aAApB,QAAyC,eAAzC;AACA,SAASF,OAAO,IAAIG,mBAApB,QAA+C,qBAA/C;AACA,SAASzC,QAAT;AAEA,SAASE,YAAT;AACA,eAAemC,YAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function HvCssBaseline(): null;
|
|
@@ -19,7 +19,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", {
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
|
-
exports.default = void 0;
|
|
22
|
+
exports.html = exports.default = exports.body = void 0;
|
|
23
23
|
|
|
24
24
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
25
|
|
|
@@ -36,20 +36,29 @@ var html = {
|
|
|
36
36
|
// Antialiasing.
|
|
37
37
|
// Change from `box-sizing: content-box` so that `width`
|
|
38
38
|
// is not affected by `padding` or `border`.
|
|
39
|
-
boxSizing: "border-box"
|
|
39
|
+
boxSizing: "border-box",
|
|
40
|
+
// Prevent adjustments of font size after orientation changes in iOS.
|
|
41
|
+
TextSizeAdjust: "none",
|
|
42
|
+
WebkitTextSizeAdjust: "none",
|
|
43
|
+
MozTextSizeAdjust: "none"
|
|
40
44
|
};
|
|
45
|
+
exports.html = html;
|
|
41
46
|
|
|
42
47
|
var body = function body(theme) {
|
|
43
48
|
return _objectSpread(_objectSpread({
|
|
44
49
|
fontFamily: theme.hv.typography.fontFamily
|
|
45
50
|
}, theme.hv.typography.normalText), {}, {
|
|
51
|
+
color: theme.hv.palette.accent.acce1,
|
|
46
52
|
backgroundColor: theme.hv.palette.atmosphere.atmo2,
|
|
53
|
+
colorScheme: theme.hv.type,
|
|
54
|
+
accentColor: theme.hv.palette.accent.acce1,
|
|
47
55
|
"@media print": {
|
|
48
56
|
backgroundColor: "white"
|
|
49
57
|
}
|
|
50
58
|
});
|
|
51
59
|
};
|
|
52
60
|
|
|
61
|
+
exports.body = body;
|
|
53
62
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
54
63
|
return {
|
|
55
64
|
"@global": {
|
|
@@ -68,33 +77,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
68
77
|
"&::backdrop": {
|
|
69
78
|
backgroundColor: theme.hv.palette.atmosphere.atmo3
|
|
70
79
|
}
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
/* clears input's clear and reveal buttons from IE */
|
|
74
|
-
"input[type=search]::-ms-clear": {
|
|
75
|
-
display: "none",
|
|
76
|
-
width: 0,
|
|
77
|
-
height: 0
|
|
78
|
-
},
|
|
79
|
-
"input[type=search]::-ms-reveal": {
|
|
80
|
-
display: "none",
|
|
81
|
-
width: 0,
|
|
82
|
-
height: 0
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
/* clears input's clear button from Chrome */
|
|
86
|
-
'input[type="search"]::-webkit-search-decoration': {
|
|
87
|
-
display: "none"
|
|
88
|
-
},
|
|
89
|
-
'input[type="search"]::-webkit-search-cancel-button': {
|
|
90
|
-
display: "none"
|
|
91
|
-
},
|
|
92
|
-
'input[type="search"]::-webkit-search-results-button': {
|
|
93
|
-
display: "none"
|
|
94
|
-
},
|
|
95
|
-
'input[type="search"]::-webkit-search-results-decoration': {
|
|
96
|
-
display: "none"
|
|
97
|
-
}
|
|
80
|
+
})
|
|
98
81
|
}
|
|
99
82
|
};
|
|
100
83
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CssBaseline.js","names":["html","WebkitFontSmoothing","MozOsxFontSmoothing","boxSizing","body","theme","fontFamily","hv","typography","normalText","
|
|
1
|
+
{"version":3,"file":"CssBaseline.js","names":["html","WebkitFontSmoothing","MozOsxFontSmoothing","boxSizing","TextSizeAdjust","WebkitTextSizeAdjust","MozTextSizeAdjust","body","theme","fontFamily","hv","typography","normalText","color","palette","accent","acce1","backgroundColor","atmosphere","atmo2","colorScheme","type","accentColor","useStyles","fontWeight","highlightText","margin","atmo3","CssBaseline"],"sources":["../../src/theme/CssBaseline.js"],"sourcesContent":["import { makeStyles } from \"@material-ui/core/styles\";\n\nexport const html = {\n WebkitFontSmoothing: \"antialiased\", // Antialiasing.\n MozOsxFontSmoothing: \"grayscale\", // Antialiasing.\n // Change from `box-sizing: content-box` so that `width`\n // is not affected by `padding` or `border`.\n boxSizing: \"border-box\",\n\n // Prevent adjustments of font size after orientation changes in iOS.\n TextSizeAdjust: \"none\",\n WebkitTextSizeAdjust: \"none\",\n MozTextSizeAdjust: \"none\",\n};\n\nexport const body = (theme) => ({\n fontFamily: theme.hv.typography.fontFamily,\n ...theme.hv.typography.normalText,\n\n color: theme.hv.palette.accent.acce1,\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n\n colorScheme: theme.hv.type,\n accentColor: theme.hv.palette.accent.acce1,\n\n \"@media print\": {\n backgroundColor: \"white\",\n },\n});\n\nconst useStyles = makeStyles((theme) => ({\n \"@global\": {\n html,\n \"*, *::before, *::after\": {\n boxSizing: \"inherit\",\n },\n \"strong, b\": {\n fontWeight: theme.hv.typography.highlightText.fontWeight,\n },\n body: {\n margin: 0,\n ...body(theme),\n // Add support for document.body.requestFullScreen().\n // Other elements, if background transparent, are not supported.\n \"&::backdrop\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n },\n },\n },\n}));\n\n/**\n * Kickstart an elegant, consistent, and simple baseline to build upon.\n */\nfunction CssBaseline() {\n useStyles();\n\n return null;\n}\n\nexport default CssBaseline;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEO,IAAMA,IAAI,GAAG;EAClBC,mBAAmB,EAAE,aADH;EACkB;EACpCC,mBAAmB,EAAE,WAFH;EAEgB;EAClC;EACA;EACAC,SAAS,EAAE,YALO;EAOlB;EACAC,cAAc,EAAE,MARE;EASlBC,oBAAoB,EAAE,MATJ;EAUlBC,iBAAiB,EAAE;AAVD,CAAb;;;AAaA,IAAMC,IAAI,GAAG,SAAPA,IAAO,CAACC,KAAD;EAAA;IAClBC,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,UAAT,CAAoBF;EADd,GAEfD,KAAK,CAACE,EAAN,CAASC,UAAT,CAAoBC,UAFL;IAIlBC,KAAK,EAAEL,KAAK,CAACE,EAAN,CAASI,OAAT,CAAiBC,MAAjB,CAAwBC,KAJb;IAKlBC,eAAe,EAAET,KAAK,CAACE,EAAN,CAASI,OAAT,CAAiBI,UAAjB,CAA4BC,KAL3B;IAOlBC,WAAW,EAAEZ,KAAK,CAACE,EAAN,CAASW,IAPJ;IAQlBC,WAAW,EAAEd,KAAK,CAACE,EAAN,CAASI,OAAT,CAAiBC,MAAjB,CAAwBC,KARnB;IAUlB,gBAAgB;MACdC,eAAe,EAAE;IADH;EAVE;AAAA,CAAb;;;AAeP,IAAMM,SAAS,GAAG,wBAAW,UAACf,KAAD;EAAA,OAAY;IACvC,WAAW;MACTR,IAAI,EAAJA,IADS;MAET,0BAA0B;QACxBG,SAAS,EAAE;MADa,CAFjB;MAKT,aAAa;QACXqB,UAAU,EAAEhB,KAAK,CAACE,EAAN,CAASC,UAAT,CAAoBc,aAApB,CAAkCD;MADnC,CALJ;MAQTjB,IAAI;QACFmB,MAAM,EAAE;MADN,GAECnB,IAAI,CAACC,KAAD,CAFL;QAGF;QACA;QACA,eAAe;UACbS,eAAe,EAAET,KAAK,CAACE,EAAN,CAASI,OAAT,CAAiBI,UAAjB,CAA4BS;QADhC;MALb;IARK;EAD4B,CAAZ;AAAA,CAAX,CAAlB;AAqBA;AACA;AACA;;AACA,SAASC,WAAT,GAAuB;EACrBL,SAAS;EAET,OAAO,IAAP;AACD;;eAEcK,W"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
|
|
4
|
+
export interface HvScopedCssBaselineProps<D extends React.ElementType = "div">
|
|
5
|
+
extends StandardProps<React.HTMLAttributes<D>, ""> {
|
|
6
|
+
/**
|
|
7
|
+
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
8
|
+
* Defaults to `div`.
|
|
9
|
+
*/
|
|
10
|
+
component?: React.ElementType<React.HTMLAttributes<HTMLElement>>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default function HvScopedCssBaseline(props: HvScopedCssBaselineProps): JSX.Element | null;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.array.filter.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.array.iterator.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.string.iterator.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.weak-map.js");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
24
|
+
|
|
25
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
26
|
+
|
|
27
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
28
|
+
|
|
29
|
+
Object.defineProperty(exports, "__esModule", {
|
|
30
|
+
value: true
|
|
31
|
+
});
|
|
32
|
+
exports.default = void 0;
|
|
33
|
+
|
|
34
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
35
|
+
|
|
36
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
37
|
+
|
|
38
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
39
|
+
|
|
40
|
+
var React = _interopRequireWildcard(require("react"));
|
|
41
|
+
|
|
42
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
43
|
+
|
|
44
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
45
|
+
|
|
46
|
+
var _styles = require("@material-ui/core/styles");
|
|
47
|
+
|
|
48
|
+
var _CssBaseline = require("./CssBaseline");
|
|
49
|
+
|
|
50
|
+
var _excluded = ["component", "className", "children"];
|
|
51
|
+
|
|
52
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
53
|
+
|
|
54
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
55
|
+
|
|
56
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
57
|
+
|
|
58
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
59
|
+
|
|
60
|
+
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
61
|
+
return {
|
|
62
|
+
/* Styles applied to the root element. */
|
|
63
|
+
root: _objectSpread(_objectSpread(_objectSpread({}, _CssBaseline.html), (0, _CssBaseline.body)(theme)), {}, {
|
|
64
|
+
"& *, & *::before, & *::after": {
|
|
65
|
+
boxSizing: "inherit"
|
|
66
|
+
},
|
|
67
|
+
"& strong, & b": {
|
|
68
|
+
fontWeight: theme.hv.typography.highlightText.fontWeight
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
var ScopedCssBaseline = /*#__PURE__*/React.forwardRef(function ScopedCssBaseline(props, ref) {
|
|
74
|
+
var _props$component = props.component,
|
|
75
|
+
RootComponent = _props$component === void 0 ? "div" : _props$component,
|
|
76
|
+
className = props.className,
|
|
77
|
+
children = props.children,
|
|
78
|
+
other = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
79
|
+
var classes = useStyles();
|
|
80
|
+
return /*#__PURE__*/React.createElement(RootComponent, (0, _extends2.default)({
|
|
81
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
82
|
+
ref: ref
|
|
83
|
+
}, other), children);
|
|
84
|
+
});
|
|
85
|
+
process.env.NODE_ENV !== "production" ? ScopedCssBaseline.propTypes = {
|
|
86
|
+
/**
|
|
87
|
+
* The content of the component.
|
|
88
|
+
*/
|
|
89
|
+
children: _propTypes.default.node,
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The component used for the root node.
|
|
93
|
+
* Either a string to use a HTML element or a component.
|
|
94
|
+
* Defaults to `div`.
|
|
95
|
+
*/
|
|
96
|
+
component: _propTypes.default.elementType,
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @ignore
|
|
100
|
+
*/
|
|
101
|
+
className: _propTypes.default.string
|
|
102
|
+
} : void 0;
|
|
103
|
+
var _default = ScopedCssBaseline;
|
|
104
|
+
exports.default = _default;
|
|
105
|
+
//# sourceMappingURL=ScopedCssBaseline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopedCssBaseline.js","names":["useStyles","theme","root","html","boxSizing","fontWeight","hv","typography","highlightText","ScopedCssBaseline","React","forwardRef","props","ref","component","RootComponent","className","children","other","classes","propTypes","PropTypes","node","elementType","string"],"sources":["../../src/theme/ScopedCssBaseline.js"],"sourcesContent":["import * as React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { makeStyles } from \"@material-ui/core/styles\";\n\nimport { html, body } from \"./CssBaseline\";\n\nconst useStyles = makeStyles((theme) => ({\n /* Styles applied to the root element. */\n root: {\n ...html,\n ...body(theme),\n \"& *, & *::before, & *::after\": {\n boxSizing: \"inherit\",\n },\n \"& strong, & b\": {\n fontWeight: theme.hv.typography.highlightText.fontWeight,\n },\n },\n}));\n\nconst ScopedCssBaseline = React.forwardRef(function ScopedCssBaseline(props, ref) {\n const { component: RootComponent = \"div\", className, children, ...other } = props;\n\n const classes = useStyles();\n\n return (\n <RootComponent className={clsx(classes.root, className)} ref={ref} {...other}>\n {children}\n </RootComponent>\n );\n});\n\nScopedCssBaseline.propTypes = {\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n * Defaults to `div`.\n */\n component: PropTypes.elementType,\n /**\n * @ignore\n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GED
|
@@ -149,4 +149,5 @@ export function getTheme(theme: string): object;
|
|
|
149
149
|
export default Theme;
|
|
150
150
|
|
|
151
151
|
export { default as createGenerateClassName } from "./createGenerateClassName";
|
|
152
|
-
export { default as
|
|
152
|
+
export { default as HvCssBaseline } from "./CssBaseline";
|
|
153
|
+
export { default as HvScopedCssBaseline } from "./ScopedCssBaseline";
|
package/dist/theme/index.js
CHANGED
|
@@ -29,12 +29,18 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", {
|
|
30
30
|
value: true
|
|
31
31
|
});
|
|
32
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "HvCssBaseline", {
|
|
33
33
|
enumerable: true,
|
|
34
34
|
get: function get() {
|
|
35
35
|
return _CssBaseline.default;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
+
Object.defineProperty(exports, "HvScopedCssBaseline", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _ScopedCssBaseline.default;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
38
44
|
Object.defineProperty(exports, "createGenerateClassName", {
|
|
39
45
|
enumerable: true,
|
|
40
46
|
get: function get() {
|
|
@@ -69,6 +75,8 @@ var _createGenerateClassName = _interopRequireDefault(require("./createGenerateC
|
|
|
69
75
|
|
|
70
76
|
var _CssBaseline = _interopRequireDefault(require("./CssBaseline"));
|
|
71
77
|
|
|
78
|
+
var _ScopedCssBaseline = _interopRequireDefault(require("./ScopedCssBaseline"));
|
|
79
|
+
|
|
72
80
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
73
81
|
|
|
74
82
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/dist/theme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["getTheme","uiKitTheme","dawnTheme","wickedTheme","themeBuilder","theme","themeSpacing","themePalette","themeTypography","shadows","Array","fill","spacing","hvSpacing","palette","typography","shape","borderRadius","breakpoints","values","xs","sm","md","lg","xl","props","MuiButtonBase","disableRipple","MuiInput","disableUnderline","overrides","MuiPaper","root","backgroundColor","atmosphere","atmo1","MuiAppBar","MuiToolbar","MuiIconButton","hv","defaultTheme"],"sources":["../../src/theme/index.js"],"sourcesContent":["import { createTheme } from \"@material-ui/core/styles\";\nimport dawnTheme from \"@hitachivantara/uikit-common-themes/dist/dawn\";\nimport wickedTheme from \"@hitachivantara/uikit-common-themes/dist/wicked\";\nimport muiAppBarOverrides from \"./overrides/muiAppBar\";\nimport muiToolbarOverrides from \"./overrides/muiToolbar\";\nimport muiIconButtonOverrides from \"./overrides/muiIconButton\";\nimport createTypography from \"./typography\";\nimport createPalette from \"./palette\";\nimport createSpacing, { hvSpacing } from \"./spacing\";\n\nconst getTheme = (uiKitTheme) => {\n switch (uiKitTheme) {\n default:\n case \"dawn\":\n return dawnTheme;\n case \"wicked\":\n return wickedTheme;\n }\n};\n\nconst themeBuilder = (theme) => {\n const themeSpacing = createSpacing(theme);\n const themePalette = createPalette(theme);\n const themeTypography = createTypography(themePalette, theme);\n\n return createTheme({\n shadows: Array(25).fill(\"none\"),\n\n // MUI's spacing doesn't cover our use cases because of regression:\n // https://github.com/mui-org/material-ui/issues/21278\n spacing: themeSpacing,\n hvSpacing: hvSpacing(themeSpacing),\n\n palette: themePalette,\n typography: themeTypography,\n shape: {\n borderRadius: 0,\n },\n breakpoints: {\n values: {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1270,\n xl: 1920,\n },\n },\n props: {\n MuiButtonBase: {\n disableRipple: true,\n },\n MuiInput: {\n disableUnderline: true,\n },\n },\n overrides: {\n MuiPaper: {\n root: {\n backgroundColor: theme.palette.atmosphere.atmo1,\n },\n },\n MuiAppBar: {\n ...muiAppBarOverrides(theme),\n },\n MuiToolbar: {\n ...muiToolbarOverrides(theme),\n },\n MuiIconButton: {\n ...muiIconButtonOverrides(theme),\n },\n },\n hv: theme,\n });\n};\n\nconst defaultTheme = themeBuilder(getTheme(\"dawn\"));\n\nexport { default as createGenerateClassName } from \"./createGenerateClassName\";\nexport { default as
|
|
1
|
+
{"version":3,"file":"index.js","names":["getTheme","uiKitTheme","dawnTheme","wickedTheme","themeBuilder","theme","themeSpacing","themePalette","themeTypography","shadows","Array","fill","spacing","hvSpacing","palette","typography","shape","borderRadius","breakpoints","values","xs","sm","md","lg","xl","props","MuiButtonBase","disableRipple","MuiInput","disableUnderline","overrides","MuiPaper","root","backgroundColor","atmosphere","atmo1","MuiAppBar","MuiToolbar","MuiIconButton","hv","defaultTheme"],"sources":["../../src/theme/index.js"],"sourcesContent":["import { createTheme } from \"@material-ui/core/styles\";\nimport dawnTheme from \"@hitachivantara/uikit-common-themes/dist/dawn\";\nimport wickedTheme from \"@hitachivantara/uikit-common-themes/dist/wicked\";\nimport muiAppBarOverrides from \"./overrides/muiAppBar\";\nimport muiToolbarOverrides from \"./overrides/muiToolbar\";\nimport muiIconButtonOverrides from \"./overrides/muiIconButton\";\nimport createTypography from \"./typography\";\nimport createPalette from \"./palette\";\nimport createSpacing, { hvSpacing } from \"./spacing\";\n\nconst getTheme = (uiKitTheme) => {\n switch (uiKitTheme) {\n default:\n case \"dawn\":\n return dawnTheme;\n case \"wicked\":\n return wickedTheme;\n }\n};\n\nconst themeBuilder = (theme) => {\n const themeSpacing = createSpacing(theme);\n const themePalette = createPalette(theme);\n const themeTypography = createTypography(themePalette, theme);\n\n return createTheme({\n shadows: Array(25).fill(\"none\"),\n\n // MUI's spacing doesn't cover our use cases because of regression:\n // https://github.com/mui-org/material-ui/issues/21278\n spacing: themeSpacing,\n hvSpacing: hvSpacing(themeSpacing),\n\n palette: themePalette,\n typography: themeTypography,\n shape: {\n borderRadius: 0,\n },\n breakpoints: {\n values: {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1270,\n xl: 1920,\n },\n },\n props: {\n MuiButtonBase: {\n disableRipple: true,\n },\n MuiInput: {\n disableUnderline: true,\n },\n },\n overrides: {\n MuiPaper: {\n root: {\n backgroundColor: theme.palette.atmosphere.atmo1,\n },\n },\n MuiAppBar: {\n ...muiAppBarOverrides(theme),\n },\n MuiToolbar: {\n ...muiToolbarOverrides(theme),\n },\n MuiIconButton: {\n ...muiIconButtonOverrides(theme),\n },\n },\n hv: theme,\n });\n};\n\nconst defaultTheme = themeBuilder(getTheme(\"dawn\"));\n\nexport { default as createGenerateClassName } from \"./createGenerateClassName\";\nexport { default as HvCssBaseline } from \"./CssBaseline\";\nexport { default as HvScopedCssBaseline } from \"./ScopedCssBaseline\";\nexport { getTheme };\n\nexport { themeBuilder };\nexport default defaultTheme;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAqEA;;AACA;;AACA;;;;;;;;;;AArEA,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,UAAD,EAAgB;EAC/B,QAAQA,UAAR;IACE;IACA,KAAK,MAAL;MACE,OAAOC,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AACJ,QAAQ,CAAC,MAAD,CAAT,CAAjC;eAQewC,Y"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "3.67.
|
|
3
|
+
"version": "3.67.7",
|
|
4
4
|
"description": "A collection of React components for the Hitachi Vantara's Design System.",
|
|
5
5
|
"homepage": "https://github.com/lumada-design/hv-uikit-react",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"publishConfig": {
|
|
106
106
|
"access": "public"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "094d7d2eeef5e3bda9766eab37c9f94814be0d82"
|
|
109
109
|
}
|