@elliemae/ds-grid 3.11.0-next.3 → 3.11.0-next.4

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/cjs/Grid.js CHANGED
@@ -38,7 +38,7 @@ var import_GridItem = require("./GridItem");
38
38
  var import_useGrid = require("./config/useGrid");
39
39
  const Grid = import_react.default.forwardRef((props, ref) => {
40
40
  const {
41
- propsWithDefaults: { alignItems, cols, children, rows, gutter, justify, wrap, width, height },
41
+ propsWithDefaults: { alignItems, cols, children, rows, gutter, justify, wrap, width, height, ...rest },
42
42
  globalProps,
43
43
  xstyledProps,
44
44
  isSpanParent,
@@ -54,6 +54,7 @@ const Grid = import_react.default.forwardRef((props, ref) => {
54
54
  wrap,
55
55
  childNumber: import_react.default.Children.count(children),
56
56
  ref,
57
+ ...rest,
57
58
  ...globalProps,
58
59
  ...xstyledProps,
59
60
  w: width,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Grid.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { DSGridT, DSGridPropTypes } from './react-desc-prop-types';\nimport { GridItem } from './GridItem';\nimport { useGrid } from './config/useGrid';\n\nconst Grid = React.forwardRef<HTMLDivElement, DSGridT.Props>((props, ref) => {\n const {\n propsWithDefaults: { alignItems, cols, children, rows, gutter, justify, wrap, width, height },\n globalProps,\n xstyledProps,\n isSpanParent,\n renderChildren,\n } = useGrid(props);\n\n return (\n <GridItem\n alignItems={alignItems}\n cols={cols}\n gutter={gutter}\n isSpanParent={isSpanParent}\n justify={justify}\n rows={rows}\n wrap={wrap}\n childNumber={React.Children.count(children)}\n ref={ref}\n {...globalProps}\n {...xstyledProps}\n w={width}\n h={height}\n >\n {renderChildren}\n </GridItem>\n );\n});\n\n// Since this component is using ForwardRef, we must provide a displayName to avoid 'undefined' name in propsTable.\nGrid.displayName = 'Grid';\n\nGrid.propTypes = DSGridPropTypes;\nconst DSGridWithSchema = describe(Grid);\nDSGridWithSchema.propTypes = DSGridPropTypes;\n\nexport default Grid;\nexport { DSGridWithSchema, Grid };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AAAA,mBAAkB;AAClB,0BAAyB;AACzB,mCAAyC;AACzC,sBAAyB;AACzB,qBAAwB;AAExB,MAAM,OAAO,aAAAA,QAAM,WAA0C,CAAC,OAAO,QAAQ;AAC3E,QAAM;AAAA,IACJ,mBAAmB,EAAE,YAAY,MAAM,UAAU,MAAM,QAAQ,SAAS,MAAM,OAAO,OAAO;AAAA,IAC5F;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,wBAAQ,KAAK;AAEjB,SACE,4CAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,aAAAA,QAAM,SAAS,MAAM,QAAQ;AAAA,IAC1C;AAAA,IACC,GAAG;AAAA,IACH,GAAG;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IAEF;AAAA,GACH;AAEJ,CAAC;AAGD,KAAK,cAAc;AAEnB,KAAK,YAAY;AACjB,MAAM,uBAAmB,8BAAS,IAAI;AACtC,iBAAiB,YAAY;AAE7B,IAAO,eAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { DSGridT, DSGridPropTypes } from './react-desc-prop-types';\nimport { GridItem } from './GridItem';\nimport { useGrid } from './config/useGrid';\n\nconst Grid = React.forwardRef<HTMLDivElement, DSGridT.Props>((props, ref) => {\n const {\n propsWithDefaults: { alignItems, cols, children, rows, gutter, justify, wrap, width, height, ...rest },\n globalProps,\n xstyledProps,\n isSpanParent,\n renderChildren,\n } = useGrid(props);\n\n return (\n <GridItem\n alignItems={alignItems}\n cols={cols}\n gutter={gutter}\n isSpanParent={isSpanParent}\n justify={justify}\n rows={rows}\n wrap={wrap}\n childNumber={React.Children.count(children)}\n ref={ref}\n {...rest}\n {...globalProps}\n {...xstyledProps}\n w={width}\n h={height}\n >\n {renderChildren}\n </GridItem>\n );\n});\n\n// Since this component is using ForwardRef, we must provide a displayName to avoid 'undefined' name in propsTable.\nGrid.displayName = 'Grid';\n\nGrid.propTypes = DSGridPropTypes;\nconst DSGridWithSchema = describe(Grid);\nDSGridWithSchema.propTypes = DSGridPropTypes;\n\nexport default Grid;\nexport { DSGridWithSchema, Grid };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AAAA,mBAAkB;AAClB,0BAAyB;AACzB,mCAAyC;AACzC,sBAAyB;AACzB,qBAAwB;AAExB,MAAM,OAAO,aAAAA,QAAM,WAA0C,CAAC,OAAO,QAAQ;AAC3E,QAAM;AAAA,IACJ,mBAAmB,EAAE,YAAY,MAAM,UAAU,MAAM,QAAQ,SAAS,MAAM,OAAO,WAAW,KAAK;AAAA,IACrG;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,wBAAQ,KAAK;AAEjB,SACE,4CAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,aAAAA,QAAM,SAAS,MAAM,QAAQ;AAAA,IAC1C;AAAA,IACC,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IAEF;AAAA,GACH;AAEJ,CAAC;AAGD,KAAK,cAAc;AAEnB,KAAK,YAAY;AACjB,MAAM,uBAAmB,8BAAS,IAAI;AACtC,iBAAiB,YAAY;AAE7B,IAAO,eAAQ;",
6
6
  "names": ["React"]
7
7
  }
@@ -31,12 +31,10 @@ var React = __toESM(require("react"));
31
31
  var import_ds_utilities = require("@elliemae/ds-utilities");
32
32
  var import_react_desc_prop_types = require("../react-desc-prop-types");
33
33
  var import_useRenderChildren = require("./useRenderChildren");
34
- var import_useValidateProps = require("./useValidateProps");
35
34
  const useGrid = (props) => {
36
35
  const { children, ...propsWithoutChildren } = props;
37
36
  const propsWithDefaults = (0, import_ds_utilities.useMemoMergePropsWithDefault)(propsWithoutChildren, import_react_desc_prop_types.defaultProps);
38
37
  propsWithDefaults.children = children;
39
- (0, import_useValidateProps.useValidateProps)(propsWithDefaults, import_react_desc_prop_types.DSGridPropTypes);
40
38
  const globalProps = (0, import_ds_utilities.useGetGlobalAttributes)(propsWithDefaults);
41
39
  const xstyledProps = (0, import_ds_utilities.useGetXstyledProps)(propsWithDefaults);
42
40
  const { isSpanParent, renderChildren } = (0, import_useRenderChildren.useRenderChildren)(propsWithDefaults);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/config/useGrid.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { DSGridT, DSGridPropTypes, defaultProps } from '../react-desc-prop-types';\nimport { useRenderChildren } from './useRenderChildren';\nimport { useValidateProps } from './useValidateProps';\n\nexport const useGrid = (props: DSGridT.Props) => {\n const { children, ...propsWithoutChildren } = props;\n\n // =========================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =========================================================================\n const propsWithDefaults = useMemoMergePropsWithDefault<DSGridT.InternalProps>(propsWithoutChildren, defaultProps);\n // children prop create the Maximum call stack size exceeded inside useMemoMergePropsWithDefault\n propsWithDefaults.children = children;\n useValidateProps(propsWithDefaults, DSGridPropTypes);\n // ===========================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // ===========================================================================\n const globalProps = useGetGlobalAttributes<DSGridT.InternalProps>(propsWithDefaults);\n const xstyledProps = useGetXstyledProps(propsWithDefaults);\n\n const { isSpanParent, renderChildren } = useRenderChildren(propsWithDefaults);\n\n return { propsWithDefaults, globalProps, xstyledProps, isSpanParent, renderChildren };\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAAyF;AACzF,mCAAuD;AACvD,+BAAkC;AAClC,8BAAiC;AAE1B,MAAM,UAAU,CAAC,UAAyB;AAC/C,QAAM,EAAE,aAAa,qBAAqB,IAAI;AAK9C,QAAM,wBAAoB,kDAAoD,sBAAsB,yCAAY;AAEhH,oBAAkB,WAAW;AAC7B,gDAAiB,mBAAmB,4CAAe;AAInD,QAAM,kBAAc,4CAA8C,iBAAiB;AACnF,QAAM,mBAAe,wCAAmB,iBAAiB;AAEzD,QAAM,EAAE,cAAc,eAAe,QAAI,4CAAkB,iBAAiB;AAE5E,SAAO,EAAE,mBAAmB,aAAa,cAAc,cAAc,eAAe;AACtF;",
4
+ "sourcesContent": ["import { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { DSGridT, DSGridPropTypes, defaultProps } from '../react-desc-prop-types';\nimport { useRenderChildren } from './useRenderChildren';\nimport { useValidateProps } from './useValidateProps';\n\nexport const useGrid = (props: DSGridT.Props) => {\n const { children, ...propsWithoutChildren } = props;\n\n // =========================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =========================================================================\n const propsWithDefaults = useMemoMergePropsWithDefault<DSGridT.InternalProps>(propsWithoutChildren, defaultProps);\n // children prop create the Maximum call stack size exceeded inside useMemoMergePropsWithDefault\n propsWithDefaults.children = children;\n // useValidateProps(propsWithDefaults, DSGridPropTypes); // TODO @carusox: Uncomment this line when we have the safety\n // ===========================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // ===========================================================================\n const globalProps = useGetGlobalAttributes<DSGridT.InternalProps>(propsWithDefaults);\n const xstyledProps = useGetXstyledProps(propsWithDefaults);\n\n const { isSpanParent, renderChildren } = useRenderChildren(propsWithDefaults);\n\n return { propsWithDefaults, globalProps, xstyledProps, isSpanParent, renderChildren };\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAAyF;AACzF,mCAAuD;AACvD,+BAAkC;AAG3B,MAAM,UAAU,CAAC,UAAyB;AAC/C,QAAM,EAAE,aAAa,qBAAqB,IAAI;AAK9C,QAAM,wBAAoB,kDAAoD,sBAAsB,yCAAY;AAEhH,oBAAkB,WAAW;AAK7B,QAAM,kBAAc,4CAA8C,iBAAiB;AACnF,QAAM,mBAAe,wCAAmB,iBAAiB;AAEzD,QAAM,EAAE,cAAc,eAAe,QAAI,4CAAkB,iBAAiB;AAE5E,SAAO,EAAE,mBAAmB,aAAa,cAAc,cAAc,eAAe;AACtF;",
6
6
  "names": []
7
7
  }
package/dist/esm/Grid.js CHANGED
@@ -7,7 +7,7 @@ import { GridItem } from "./GridItem";
7
7
  import { useGrid } from "./config/useGrid";
8
8
  const Grid = React2.forwardRef((props, ref) => {
9
9
  const {
10
- propsWithDefaults: { alignItems, cols, children, rows, gutter, justify, wrap, width, height },
10
+ propsWithDefaults: { alignItems, cols, children, rows, gutter, justify, wrap, width, height, ...rest },
11
11
  globalProps,
12
12
  xstyledProps,
13
13
  isSpanParent,
@@ -23,6 +23,7 @@ const Grid = React2.forwardRef((props, ref) => {
23
23
  wrap,
24
24
  childNumber: React2.Children.count(children),
25
25
  ref,
26
+ ...rest,
26
27
  ...globalProps,
27
28
  ...xstyledProps,
28
29
  w: width,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/Grid.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { DSGridT, DSGridPropTypes } from './react-desc-prop-types';\nimport { GridItem } from './GridItem';\nimport { useGrid } from './config/useGrid';\n\nconst Grid = React.forwardRef<HTMLDivElement, DSGridT.Props>((props, ref) => {\n const {\n propsWithDefaults: { alignItems, cols, children, rows, gutter, justify, wrap, width, height },\n globalProps,\n xstyledProps,\n isSpanParent,\n renderChildren,\n } = useGrid(props);\n\n return (\n <GridItem\n alignItems={alignItems}\n cols={cols}\n gutter={gutter}\n isSpanParent={isSpanParent}\n justify={justify}\n rows={rows}\n wrap={wrap}\n childNumber={React.Children.count(children)}\n ref={ref}\n {...globalProps}\n {...xstyledProps}\n w={width}\n h={height}\n >\n {renderChildren}\n </GridItem>\n );\n});\n\n// Since this component is using ForwardRef, we must provide a displayName to avoid 'undefined' name in propsTable.\nGrid.displayName = 'Grid';\n\nGrid.propTypes = DSGridPropTypes;\nconst DSGridWithSchema = describe(Grid);\nDSGridWithSchema.propTypes = DSGridPropTypes;\n\nexport default Grid;\nexport { DSGridWithSchema, Grid };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,OAAOA,YAAW;AAClB,SAAS,gBAAgB;AACzB,SAAkB,uBAAuB;AACzC,SAAS,gBAAgB;AACzB,SAAS,eAAe;AAExB,MAAM,OAAOA,OAAM,WAA0C,CAAC,OAAO,QAAQ;AAC3E,QAAM;AAAA,IACJ,mBAAmB,EAAE,YAAY,MAAM,UAAU,MAAM,QAAQ,SAAS,MAAM,OAAO,OAAO;AAAA,IAC5F;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,QAAQ,KAAK;AAEjB,SACE,oBAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAaA,OAAM,SAAS,MAAM,QAAQ;AAAA,IAC1C;AAAA,IACC,GAAG;AAAA,IACH,GAAG;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IAEF;AAAA,GACH;AAEJ,CAAC;AAGD,KAAK,cAAc;AAEnB,KAAK,YAAY;AACjB,MAAM,mBAAmB,SAAS,IAAI;AACtC,iBAAiB,YAAY;AAE7B,IAAO,eAAQ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { DSGridT, DSGridPropTypes } from './react-desc-prop-types';\nimport { GridItem } from './GridItem';\nimport { useGrid } from './config/useGrid';\n\nconst Grid = React.forwardRef<HTMLDivElement, DSGridT.Props>((props, ref) => {\n const {\n propsWithDefaults: { alignItems, cols, children, rows, gutter, justify, wrap, width, height, ...rest },\n globalProps,\n xstyledProps,\n isSpanParent,\n renderChildren,\n } = useGrid(props);\n\n return (\n <GridItem\n alignItems={alignItems}\n cols={cols}\n gutter={gutter}\n isSpanParent={isSpanParent}\n justify={justify}\n rows={rows}\n wrap={wrap}\n childNumber={React.Children.count(children)}\n ref={ref}\n {...rest}\n {...globalProps}\n {...xstyledProps}\n w={width}\n h={height}\n >\n {renderChildren}\n </GridItem>\n );\n});\n\n// Since this component is using ForwardRef, we must provide a displayName to avoid 'undefined' name in propsTable.\nGrid.displayName = 'Grid';\n\nGrid.propTypes = DSGridPropTypes;\nconst DSGridWithSchema = describe(Grid);\nDSGridWithSchema.propTypes = DSGridPropTypes;\n\nexport default Grid;\nexport { DSGridWithSchema, Grid };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,OAAOA,YAAW;AAClB,SAAS,gBAAgB;AACzB,SAAkB,uBAAuB;AACzC,SAAS,gBAAgB;AACzB,SAAS,eAAe;AAExB,MAAM,OAAOA,OAAM,WAA0C,CAAC,OAAO,QAAQ;AAC3E,QAAM;AAAA,IACJ,mBAAmB,EAAE,YAAY,MAAM,UAAU,MAAM,QAAQ,SAAS,MAAM,OAAO,WAAW,KAAK;AAAA,IACrG;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,QAAQ,KAAK;AAEjB,SACE,oBAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAaA,OAAM,SAAS,MAAM,QAAQ;AAAA,IAC1C;AAAA,IACC,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IAEF;AAAA,GACH;AAEJ,CAAC;AAGD,KAAK,cAAc;AAEnB,KAAK,YAAY;AACjB,MAAM,mBAAmB,SAAS,IAAI;AACtC,iBAAiB,YAAY;AAE7B,IAAO,eAAQ;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,13 +1,11 @@
1
1
  import * as React from "react";
2
2
  import { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-utilities";
3
- import { DSGridPropTypes, defaultProps } from "../react-desc-prop-types";
3
+ import { defaultProps } from "../react-desc-prop-types";
4
4
  import { useRenderChildren } from "./useRenderChildren";
5
- import { useValidateProps } from "./useValidateProps";
6
5
  const useGrid = (props) => {
7
6
  const { children, ...propsWithoutChildren } = props;
8
7
  const propsWithDefaults = useMemoMergePropsWithDefault(propsWithoutChildren, defaultProps);
9
8
  propsWithDefaults.children = children;
10
- useValidateProps(propsWithDefaults, DSGridPropTypes);
11
9
  const globalProps = useGetGlobalAttributes(propsWithDefaults);
12
10
  const xstyledProps = useGetXstyledProps(propsWithDefaults);
13
11
  const { isSpanParent, renderChildren } = useRenderChildren(propsWithDefaults);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useGrid.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { DSGridT, DSGridPropTypes, defaultProps } from '../react-desc-prop-types';\nimport { useRenderChildren } from './useRenderChildren';\nimport { useValidateProps } from './useValidateProps';\n\nexport const useGrid = (props: DSGridT.Props) => {\n const { children, ...propsWithoutChildren } = props;\n\n // =========================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =========================================================================\n const propsWithDefaults = useMemoMergePropsWithDefault<DSGridT.InternalProps>(propsWithoutChildren, defaultProps);\n // children prop create the Maximum call stack size exceeded inside useMemoMergePropsWithDefault\n propsWithDefaults.children = children;\n useValidateProps(propsWithDefaults, DSGridPropTypes);\n // ===========================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // ===========================================================================\n const globalProps = useGetGlobalAttributes<DSGridT.InternalProps>(propsWithDefaults);\n const xstyledProps = useGetXstyledProps(propsWithDefaults);\n\n const { isSpanParent, renderChildren } = useRenderChildren(propsWithDefaults);\n\n return { propsWithDefaults, globalProps, xstyledProps, isSpanParent, renderChildren };\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,wBAAwB,oBAAoB,oCAAoC;AACzF,SAAkB,iBAAiB,oBAAoB;AACvD,SAAS,yBAAyB;AAClC,SAAS,wBAAwB;AAE1B,MAAM,UAAU,CAAC,UAAyB;AAC/C,QAAM,EAAE,aAAa,qBAAqB,IAAI;AAK9C,QAAM,oBAAoB,6BAAoD,sBAAsB,YAAY;AAEhH,oBAAkB,WAAW;AAC7B,mBAAiB,mBAAmB,eAAe;AAInD,QAAM,cAAc,uBAA8C,iBAAiB;AACnF,QAAM,eAAe,mBAAmB,iBAAiB;AAEzD,QAAM,EAAE,cAAc,eAAe,IAAI,kBAAkB,iBAAiB;AAE5E,SAAO,EAAE,mBAAmB,aAAa,cAAc,cAAc,eAAe;AACtF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { DSGridT, DSGridPropTypes, defaultProps } from '../react-desc-prop-types';\nimport { useRenderChildren } from './useRenderChildren';\nimport { useValidateProps } from './useValidateProps';\n\nexport const useGrid = (props: DSGridT.Props) => {\n const { children, ...propsWithoutChildren } = props;\n\n // =========================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =========================================================================\n const propsWithDefaults = useMemoMergePropsWithDefault<DSGridT.InternalProps>(propsWithoutChildren, defaultProps);\n // children prop create the Maximum call stack size exceeded inside useMemoMergePropsWithDefault\n propsWithDefaults.children = children;\n // useValidateProps(propsWithDefaults, DSGridPropTypes); // TODO @carusox: Uncomment this line when we have the safety\n // ===========================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // ===========================================================================\n const globalProps = useGetGlobalAttributes<DSGridT.InternalProps>(propsWithDefaults);\n const xstyledProps = useGetXstyledProps(propsWithDefaults);\n\n const { isSpanParent, renderChildren } = useRenderChildren(propsWithDefaults);\n\n return { propsWithDefaults, globalProps, xstyledProps, isSpanParent, renderChildren };\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,wBAAwB,oBAAoB,oCAAoC;AACzF,SAAmC,oBAAoB;AACvD,SAAS,yBAAyB;AAG3B,MAAM,UAAU,CAAC,UAAyB;AAC/C,QAAM,EAAE,aAAa,qBAAqB,IAAI;AAK9C,QAAM,oBAAoB,6BAAoD,sBAAsB,YAAY;AAEhH,oBAAkB,WAAW;AAK7B,QAAM,cAAc,uBAA8C,iBAAiB;AACnF,QAAM,eAAe,mBAAmB,iBAAiB;AAEzD,QAAM,EAAE,cAAc,eAAe,IAAI,kBAAkB,iBAAiB;AAE5E,SAAO,EAAE,mBAAmB,aAAa,cAAc,cAAc,eAAe;AACtF;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-grid",
3
- "version": "3.11.0-next.3",
3
+ "version": "3.11.0-next.4",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Grid",
6
6
  "files": [
@@ -63,8 +63,8 @@
63
63
  "indent": 4
64
64
  },
65
65
  "dependencies": {
66
- "@elliemae/ds-system": "3.11.0-next.3",
67
- "@elliemae/ds-utilities": "3.11.0-next.3",
66
+ "@elliemae/ds-system": "3.11.0-next.4",
67
+ "@elliemae/ds-utilities": "3.11.0-next.4",
68
68
  "@xstyled/styled-components": "~3.6.0"
69
69
  },
70
70
  "devDependencies": {