@hitachivantara/uikit-react-core 4.1.0 → 4.1.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/dist/SimpleGrid/SimpleGrid.d.ts +5 -2
- package/dist/SimpleGrid/SimpleGrid.js +6 -2
- package/dist/SimpleGrid/SimpleGrid.js.map +1 -1
- package/dist/legacy/SimpleGrid/SimpleGrid.d.ts +5 -2
- package/dist/legacy/SimpleGrid/SimpleGrid.js +7 -2
- package/dist/legacy/SimpleGrid/SimpleGrid.js.map +1 -1
- package/dist/modern/SimpleGrid/SimpleGrid.d.ts +5 -2
- package/dist/modern/SimpleGrid/SimpleGrid.js +7 -2
- package/dist/modern/SimpleGrid/SimpleGrid.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HvSpacingKeys } from "../theme";
|
|
3
|
+
|
|
4
|
+
export type Spacing = HvSpacingKeys;
|
|
2
5
|
export type Breakpoint = {
|
|
3
6
|
cols?: number;
|
|
4
7
|
maxWidth?: number;
|
|
@@ -7,7 +10,7 @@ export type Breakpoint = {
|
|
|
7
10
|
};
|
|
8
11
|
|
|
9
12
|
export interface SimpleGridProps {
|
|
10
|
-
children?:
|
|
13
|
+
children?: React.ReactNode;
|
|
11
14
|
spacing?: Spacing;
|
|
12
15
|
cols?: number;
|
|
13
16
|
breakpoints?: Breakpoint[];
|
|
@@ -22,6 +22,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
22
22
|
var _excluded = ["children", "breakpoints", "spacing", "cols"];
|
|
23
23
|
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; }
|
|
24
24
|
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; }
|
|
25
|
+
/**
|
|
26
|
+
* SimpleGrid is a flexbox container where each child is treated as a column.
|
|
27
|
+
* Each column takes equal amount of space.
|
|
28
|
+
*/
|
|
25
29
|
var HvSimpleGrid = function HvSimpleGrid(_ref) {
|
|
26
30
|
var children = _ref.children,
|
|
27
31
|
breakpoints = _ref.breakpoints,
|
|
@@ -48,7 +52,7 @@ process.env.NODE_ENV !== "production" ? HvSimpleGrid.propTypes = {
|
|
|
48
52
|
/**
|
|
49
53
|
* Spacing with pre-defined values according the values defined in the theme
|
|
50
54
|
*/
|
|
51
|
-
spacing: _propTypes.default.oneOf(["sm", "md", "lg", "xl"]),
|
|
55
|
+
spacing: _propTypes.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
|
|
52
56
|
/**
|
|
53
57
|
* Provide an array to define responsive behavior:
|
|
54
58
|
*
|
|
@@ -62,7 +66,7 @@ process.env.NODE_ENV !== "production" ? HvSimpleGrid.propTypes = {
|
|
|
62
66
|
maxWidth: _propTypes.default.number,
|
|
63
67
|
minWidth: _propTypes.default.number,
|
|
64
68
|
cols: _propTypes.default.number,
|
|
65
|
-
spacing: _propTypes.default.oneOf(["sm", "md", "lg", "xl"])
|
|
69
|
+
spacing: _propTypes.default.oneOf(["xs", "sm", "md", "lg", "xl"])
|
|
66
70
|
})),
|
|
67
71
|
/**
|
|
68
72
|
* Number of how many columns the content will be displayed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleGrid.js","names":["HvSimpleGrid","children","breakpoints","spacing","cols","others","classes","useStyles","container","propTypes","PropTypes","node","oneOf","arrayOf","shape","maxWidth","number","minWidth","withStyles","name"],"sources":["../../src/SimpleGrid/SimpleGrid.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport useStyles from \"./styles\";\n\nconst HvSimpleGrid = ({ children, breakpoints, spacing = \"sm\", cols, ...others }) => {\n const classes = useStyles({ breakpoints, cols, spacing })();\n return (\n <div className={classes.container} {...others}>\n {children}\n </div>\n );\n};\n\nHvSimpleGrid.propTypes = {\n /**\n * -\n */\n children: PropTypes.node,\n /**\n * Spacing with pre-defined values according the values defined in the theme\n */\n spacing: PropTypes.oneOf([\"sm\", \"md\", \"lg\", \"xl\"]),\n /**\n * Provide an array to define responsive behavior:\n *\n * maxWidth or minWidth: max-width or min-width at which media query will work\n *\n * cols: number of columns per row at given max-width\n *\n * spacing: optional spacing at given max-width, if not provided spacing from component prop will be used instead\n */\n breakpoints: PropTypes.arrayOf(\n PropTypes.shape({\n maxWidth: PropTypes.number,\n minWidth: PropTypes.number,\n cols: PropTypes.number,\n spacing: PropTypes.oneOf([\"sm\", \"md\", \"lg\", \"xl\"]),\n })\n ),\n /**\n * Number of how many columns the content will be displayed\n */\n cols: PropTypes.number,\n};\n\nexport default withStyles(useStyles, { name: \"HvSimpleGrid\" })(HvSimpleGrid);\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AAAiC;AAAA;AAAA;AAAA;AAEjC,IAAMA,YAAY,GAAG,SAAfA,YAAY,OAAmE;EAAA,IAA7DC,QAAQ,QAARA,QAAQ;IAAEC,WAAW,QAAXA,WAAW;IAAA,oBAAEC,OAAO;IAAPA,OAAO,6BAAG,IAAI;IAAEC,IAAI,QAAJA,IAAI;IAAKC,MAAM;EAC5E,IAAMC,OAAO,GAAG,IAAAC,gBAAS,EAAC;IAAEL,WAAW,EAAXA,WAAW;IAAEE,IAAI,EAAJA,IAAI;IAAED,OAAO,EAAPA;EAAQ,CAAC,CAAC,EAAE;EAC3D,oBACE;IAAK,SAAS,EAAEG,OAAO,CAACE;EAAU,GAAKH,MAAM;IAAA,UAC1CJ;EAAQ,GACL;AAEV,CAAC;AAED,wCAAAD,YAAY,CAACS,SAAS,GAAG;EACvB;AACF;AACA;EACER,QAAQ,EAAES,kBAAS,CAACC,IAAI;EACxB;AACF;AACA;EACER,OAAO,EAAEO,kBAAS,CAACE,KAAK,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"SimpleGrid.js","names":["HvSimpleGrid","children","breakpoints","spacing","cols","others","classes","useStyles","container","propTypes","PropTypes","node","oneOf","arrayOf","shape","maxWidth","number","minWidth","withStyles","name"],"sources":["../../src/SimpleGrid/SimpleGrid.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport useStyles from \"./styles\";\n\n/**\n * SimpleGrid is a flexbox container where each child is treated as a column.\n * Each column takes equal amount of space.\n */\nconst HvSimpleGrid = ({ children, breakpoints, spacing = \"sm\", cols, ...others }) => {\n const classes = useStyles({ breakpoints, cols, spacing })();\n return (\n <div className={classes.container} {...others}>\n {children}\n </div>\n );\n};\n\nHvSimpleGrid.propTypes = {\n /**\n * -\n */\n children: PropTypes.node,\n /**\n * Spacing with pre-defined values according the values defined in the theme\n */\n spacing: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\"]),\n /**\n * Provide an array to define responsive behavior:\n *\n * maxWidth or minWidth: max-width or min-width at which media query will work\n *\n * cols: number of columns per row at given max-width\n *\n * spacing: optional spacing at given max-width, if not provided spacing from component prop will be used instead\n */\n breakpoints: PropTypes.arrayOf(\n PropTypes.shape({\n maxWidth: PropTypes.number,\n minWidth: PropTypes.number,\n cols: PropTypes.number,\n spacing: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\"]),\n })\n ),\n /**\n * Number of how many columns the content will be displayed\n */\n cols: P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M,kBAAS,CAACM;AAClB,CAAC;AAAC,eAEa,IAAAE,kBAAU,EAACX,gBAAS,EAAE;EAAEY,IAAI,EAAE;AAAe,CAAC,CAAC,CAACnB,YAAY,CAAC;AAAA"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HvSpacingKeys } from "../theme";
|
|
3
|
+
|
|
4
|
+
export type Spacing = HvSpacingKeys;
|
|
2
5
|
export type Breakpoint = {
|
|
3
6
|
cols?: number;
|
|
4
7
|
maxWidth?: number;
|
|
@@ -7,7 +10,7 @@ export type Breakpoint = {
|
|
|
7
10
|
};
|
|
8
11
|
|
|
9
12
|
export interface SimpleGridProps {
|
|
10
|
-
children?:
|
|
13
|
+
children?: React.ReactNode;
|
|
11
14
|
spacing?: Spacing;
|
|
12
15
|
cols?: number;
|
|
13
16
|
breakpoints?: Breakpoint[];
|
|
@@ -14,6 +14,11 @@ import React from "react";
|
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import { withStyles } from "@mui/styles";
|
|
16
16
|
import useStyles from "./styles";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* SimpleGrid is a flexbox container where each child is treated as a column.
|
|
20
|
+
* Each column takes equal amount of space.
|
|
21
|
+
*/
|
|
17
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
23
|
var HvSimpleGrid = function HvSimpleGrid(_ref) {
|
|
19
24
|
var children = _ref.children,
|
|
@@ -41,7 +46,7 @@ process.env.NODE_ENV !== "production" ? HvSimpleGrid.propTypes = {
|
|
|
41
46
|
/**
|
|
42
47
|
* Spacing with pre-defined values according the values defined in the theme
|
|
43
48
|
*/
|
|
44
|
-
spacing: PropTypes.oneOf(["sm", "md", "lg", "xl"]),
|
|
49
|
+
spacing: PropTypes.oneOf(["xs", "sm", "md", "lg", "xl"]),
|
|
45
50
|
/**
|
|
46
51
|
* Provide an array to define responsive behavior:
|
|
47
52
|
*
|
|
@@ -55,7 +60,7 @@ process.env.NODE_ENV !== "production" ? HvSimpleGrid.propTypes = {
|
|
|
55
60
|
maxWidth: PropTypes.number,
|
|
56
61
|
minWidth: PropTypes.number,
|
|
57
62
|
cols: PropTypes.number,
|
|
58
|
-
spacing: PropTypes.oneOf(["sm", "md", "lg", "xl"])
|
|
63
|
+
spacing: PropTypes.oneOf(["xs", "sm", "md", "lg", "xl"])
|
|
59
64
|
})),
|
|
60
65
|
/**
|
|
61
66
|
* Number of how many columns the content will be displayed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleGrid.js","names":["React","PropTypes","withStyles","useStyles","HvSimpleGrid","children","breakpoints","spacing","cols","others","classes","container","propTypes","node","oneOf","arrayOf","shape","maxWidth","number","minWidth","name"],"sources":["../../../src/SimpleGrid/SimpleGrid.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport useStyles from \"./styles\";\n\nconst HvSimpleGrid = ({ children, breakpoints, spacing = \"sm\", cols, ...others }) => {\n const classes = useStyles({ breakpoints, cols, spacing })();\n return (\n <div className={classes.container} {...others}>\n {children}\n </div>\n );\n};\n\nHvSimpleGrid.propTypes = {\n /**\n * -\n */\n children: PropTypes.node,\n /**\n * Spacing with pre-defined values according the values defined in the theme\n */\n spacing: PropTypes.oneOf([\"sm\", \"md\", \"lg\", \"xl\"]),\n /**\n * Provide an array to define responsive behavior:\n *\n * maxWidth or minWidth: max-width or min-width at which media query will work\n *\n * cols: number of columns per row at given max-width\n *\n * spacing: optional spacing at given max-width, if not provided spacing from component prop will be used instead\n */\n breakpoints: PropTypes.arrayOf(\n PropTypes.shape({\n maxWidth: PropTypes.number,\n minWidth: PropTypes.number,\n cols: PropTypes.number,\n spacing: PropTypes.oneOf([\"sm\", \"md\", \"lg\", \"xl\"]),\n })\n ),\n /**\n * Number of how many columns the content will be displayed\n */\n cols: PropTypes.number,\n};\n\nexport default withStyles(useStyles, { name: \"HvSimpleGrid\" })(HvSimpleGrid);\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,UAAU,QAAQ,aAAa;AACxC,OAAOC,SAAS,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"SimpleGrid.js","names":["React","PropTypes","withStyles","useStyles","HvSimpleGrid","children","breakpoints","spacing","cols","others","classes","container","propTypes","node","oneOf","arrayOf","shape","maxWidth","number","minWidth","name"],"sources":["../../../src/SimpleGrid/SimpleGrid.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport useStyles from \"./styles\";\n\n/**\n * SimpleGrid is a flexbox container where each child is treated as a column.\n * Each column takes equal amount of space.\n */\nconst HvSimpleGrid = ({ children, breakpoints, spacing = \"sm\", cols, ...others }) => {\n const classes = useStyles({ breakpoints, cols, spacing })();\n return (\n <div className={classes.container} {...others}>\n {children}\n </div>\n );\n};\n\nHvSimpleGrid.propTypes = {\n /**\n * -\n */\n children: PropTypes.node,\n /**\n * Spacing with pre-defined values according the values defined in the theme\n */\n spacing: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\"]),\n /**\n * Provide an array to define responsive behavior:\n *\n * maxWidth or minWidth: max-width or min-width at which media query will work\n *\n * cols: number of columns per row at given max-width\n *\n * spacing: optional spacing at given max-width, if not provided spacing from component prop will be used instead\n */\n breakpoints: PropTypes.arrayOf(\n PropTypes.shape({\n maxWidth: PropTypes.number,\n minWidth: PropTypes.number,\n cols: PropTypes.number,\n spacing: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\"]),\n })\n ),\n /**\n * Number of how many columns the content will be displayed\n */\n cols: PropTypes.number,\n};\n\nexport default withStyles(useStyles, { name: \"HvSimpleGrid\" })(HvSimpleGrid);\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO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EAAE;EAAEiB,IAAI,EAAE;AAAe,CAAC,CAAC,CAAChB,YAAY,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HvSpacingKeys } from "../theme";
|
|
3
|
+
|
|
4
|
+
export type Spacing = HvSpacingKeys;
|
|
2
5
|
export type Breakpoint = {
|
|
3
6
|
cols?: number;
|
|
4
7
|
maxWidth?: number;
|
|
@@ -7,7 +10,7 @@ export type Breakpoint = {
|
|
|
7
10
|
};
|
|
8
11
|
|
|
9
12
|
export interface SimpleGridProps {
|
|
10
|
-
children?:
|
|
13
|
+
children?: React.ReactNode;
|
|
11
14
|
spacing?: Spacing;
|
|
12
15
|
cols?: number;
|
|
13
16
|
breakpoints?: Breakpoint[];
|
|
@@ -7,6 +7,11 @@ import React from "react";
|
|
|
7
7
|
import PropTypes from "prop-types";
|
|
8
8
|
import { withStyles } from "@mui/styles";
|
|
9
9
|
import useStyles from "./styles";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* SimpleGrid is a flexbox container where each child is treated as a column.
|
|
13
|
+
* Each column takes equal amount of space.
|
|
14
|
+
*/
|
|
10
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
16
|
const HvSimpleGrid = _ref => {
|
|
12
17
|
let {
|
|
@@ -35,7 +40,7 @@ process.env.NODE_ENV !== "production" ? HvSimpleGrid.propTypes = {
|
|
|
35
40
|
/**
|
|
36
41
|
* Spacing with pre-defined values according the values defined in the theme
|
|
37
42
|
*/
|
|
38
|
-
spacing: PropTypes.oneOf(["sm", "md", "lg", "xl"]),
|
|
43
|
+
spacing: PropTypes.oneOf(["xs", "sm", "md", "lg", "xl"]),
|
|
39
44
|
/**
|
|
40
45
|
* Provide an array to define responsive behavior:
|
|
41
46
|
*
|
|
@@ -49,7 +54,7 @@ process.env.NODE_ENV !== "production" ? HvSimpleGrid.propTypes = {
|
|
|
49
54
|
maxWidth: PropTypes.number,
|
|
50
55
|
minWidth: PropTypes.number,
|
|
51
56
|
cols: PropTypes.number,
|
|
52
|
-
spacing: PropTypes.oneOf(["sm", "md", "lg", "xl"])
|
|
57
|
+
spacing: PropTypes.oneOf(["xs", "sm", "md", "lg", "xl"])
|
|
53
58
|
})),
|
|
54
59
|
/**
|
|
55
60
|
* Number of how many columns the content will be displayed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleGrid.js","names":["React","PropTypes","withStyles","useStyles","HvSimpleGrid","children","breakpoints","spacing","cols","others","classes","container","propTypes","node","oneOf","arrayOf","shape","maxWidth","number","minWidth","name"],"sources":["../../../src/SimpleGrid/SimpleGrid.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport useStyles from \"./styles\";\n\nconst HvSimpleGrid = ({ children, breakpoints, spacing = \"sm\", cols, ...others }) => {\n const classes = useStyles({ breakpoints, cols, spacing })();\n return (\n <div className={classes.container} {...others}>\n {children}\n </div>\n );\n};\n\nHvSimpleGrid.propTypes = {\n /**\n * -\n */\n children: PropTypes.node,\n /**\n * Spacing with pre-defined values according the values defined in the theme\n */\n spacing: PropTypes.oneOf([\"sm\", \"md\", \"lg\", \"xl\"]),\n /**\n * Provide an array to define responsive behavior:\n *\n * maxWidth or minWidth: max-width or min-width at which media query will work\n *\n * cols: number of columns per row at given max-width\n *\n * spacing: optional spacing at given max-width, if not provided spacing from component prop will be used instead\n */\n breakpoints: PropTypes.arrayOf(\n PropTypes.shape({\n maxWidth: PropTypes.number,\n minWidth: PropTypes.number,\n cols: PropTypes.number,\n spacing: PropTypes.oneOf([\"sm\", \"md\", \"lg\", \"xl\"]),\n })\n ),\n /**\n * Number of how many columns the content will be displayed\n */\n cols: PropTypes.number,\n};\n\nexport default withStyles(useStyles, { name: \"HvSimpleGrid\" })(HvSimpleGrid);\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,UAAU,QAAQ,aAAa;AACxC,OAAOC,SAAS,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"SimpleGrid.js","names":["React","PropTypes","withStyles","useStyles","HvSimpleGrid","children","breakpoints","spacing","cols","others","classes","container","propTypes","node","oneOf","arrayOf","shape","maxWidth","number","minWidth","name"],"sources":["../../../src/SimpleGrid/SimpleGrid.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport useStyles from \"./styles\";\n\n/**\n * SimpleGrid is a flexbox container where each child is treated as a column.\n * Each column takes equal amount of space.\n */\nconst HvSimpleGrid = ({ children, breakpoints, spacing = \"sm\", cols, ...others }) => {\n const classes = useStyles({ breakpoints, cols, spacing })();\n return (\n <div className={classes.container} {...others}>\n {children}\n </div>\n );\n};\n\nHvSimpleGrid.propTypes = {\n /**\n * -\n */\n children: PropTypes.node,\n /**\n * Spacing with pre-defined values according the values defined in the theme\n */\n spacing: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\"]),\n /**\n * Provide an array to define responsive behavior:\n *\n * maxWidth or minWidth: max-width or min-width at which media query will work\n *\n * cols: number of columns per row at given max-width\n *\n * spacing: optional spacing at given max-width, if not provided spacing from component prop will be used instead\n */\n breakpoints: PropTypes.arrayOf(\n PropTypes.shape({\n maxWidth: PropTypes.number,\n minWidth: PropTypes.number,\n cols: PropTypes.number,\n spacing: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\"]),\n })\n ),\n /**\n * Number of how many columns the content will be displayed\n */\n cols: PropTypes.number,\n};\n\nexport default withStyles(useStyles, { name: \"HvSimpleGrid\" })(HvSimpleGrid);\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,UAAU,QAAQ,aAAa;AACxC,OAAOC,SAAS,MAAM,UAAU;;AAEhC;AACA;AACA;AACA;AAHA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
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",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "fb63aeadd7dfb00515424349c31936cad5bfe100"
|
|
87
87
|
}
|