@elliemae/ds-grid 3.13.1-rc.1 → 3.13.1-rc.2

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.
@@ -0,0 +1 @@
1
+ export declare const DSGridName = "DSGrid";
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { DSGridT } from './react-desc-prop-types';
3
+ declare const Grid: React.ForwardRefExoticComponent<DSGridT.Props & React.RefAttributes<HTMLDivElement>>;
4
+ declare const DSGridWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSGridT.Props & React.RefAttributes<HTMLDivElement>>;
5
+ export default Grid;
6
+ export { DSGridWithSchema, Grid };
@@ -0,0 +1,3 @@
1
+ import { type LayoutProps, type SpaceProps, type SizingProps } from '@elliemae/ds-system';
2
+ import { type DSGridT } from './react-desc-prop-types';
3
+ export declare const GridItem: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements, import("@elliemae/ds-system").Theme, Record<string, unknown> & DSGridT.ItemProps & LayoutProps<import("@xstyled/system").Theme> & SpaceProps & SizingProps<import("@xstyled/system").Theme>, never>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { DSGridT } from '../react-desc-prop-types';
3
+ export declare const useGrid: (props: DSGridT.Props) => {
4
+ propsWithDefaults: DSGridT.InternalProps;
5
+ globalProps: import("@elliemae/ds-utilities").GlobalAttributesT<Element>;
6
+ xstyledProps: import("@elliemae/ds-utilities").XstyledProps;
7
+ isSpanParent: boolean;
8
+ renderChildren: (string | number | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal)[] | null | undefined;
9
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { DSGridT } from '../react-desc-prop-types';
3
+ export declare const useRenderChildren: (props: DSGridT.InternalProps) => {
4
+ isSpanParent: boolean;
5
+ renderChildren: (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal)[] | null | undefined;
6
+ };
@@ -0,0 +1,3 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import type { DSGridT } from '../react-desc-prop-types';
3
+ export declare const useValidateProps: (props: DSGridT.InternalProps, propTypes: WeakValidationMap<unknown>) => void;
@@ -0,0 +1,3 @@
1
+ import Grid, { DSGridWithSchema } from './Grid';
2
+ export default Grid;
3
+ export { Grid, Grid as GridContainer, Grid as GridItem, DSGridWithSchema };
@@ -0,0 +1,58 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import type React from 'react';
3
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';
4
+ export declare namespace DSGridT {
5
+ interface RowColBreakpoints {
6
+ small?: string | number[];
7
+ medium?: string | number[];
8
+ large?: string | number[];
9
+ }
10
+ interface SpanBreakpoints {
11
+ small?: number;
12
+ medium?: number;
13
+ large?: number;
14
+ }
15
+ type JustifyPlacement = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
16
+ type AlignItemsPlacement = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
17
+ type Wrap = 'wrap' | 'nowrap' | 'wrap-reverse';
18
+ type BoxShadow = 'xs' | 's' | 'm' | 'l' | 'xl';
19
+ interface DefaultProps {
20
+ rows: string[] | string | number[] | RowColBreakpoints;
21
+ cols: string[] | string | number[] | RowColBreakpoints;
22
+ className: string;
23
+ justify: JustifyPlacement;
24
+ gutter: string | number;
25
+ wrap: Wrap;
26
+ span: number;
27
+ }
28
+ interface OptionalProps {
29
+ height?: string;
30
+ width?: string;
31
+ justifyContent?: JustifyPlacement;
32
+ alignItems?: AlignItemsPlacement;
33
+ children?: React.ReactNode;
34
+ }
35
+ interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT<HTMLDivElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>, XstyledProps {
36
+ }
37
+ interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLDivElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>, XstyledProps {
38
+ }
39
+ interface ItemProps {
40
+ rows: string[] | string | number[] | RowColBreakpoints;
41
+ cols: string[] | string | number[] | RowColBreakpoints;
42
+ alignItems: AlignItemsPlacement;
43
+ children: React.ReactNode;
44
+ className: string;
45
+ justify: JustifyPlacement;
46
+ gutter: string | number;
47
+ wrap: Wrap;
48
+ childNumber: number;
49
+ isSpanParent: boolean;
50
+ span?: number | SpanBreakpoints;
51
+ ref: React.ForwardedRef<HTMLDivElement>;
52
+ boxShadow?: BoxShadow;
53
+ backgroundColor?: string;
54
+ bg?: string;
55
+ }
56
+ }
57
+ export declare const defaultProps: DSGridT.DefaultProps;
58
+ export declare const DSGridPropTypes: WeakValidationMap<unknown>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const justifyPlacement: string[];
2
+ export declare const alignItemsPlacement: string[];
3
+ export declare const wrap: string[];
4
+ export declare const boxShadow: string[];
@@ -0,0 +1,4 @@
1
+ import type { DSGridT } from '../react-desc-prop-types';
2
+ export declare const manageSpan: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<DSGridT.ItemProps, import("@xstyled/system").Theme>>;
3
+ export declare const manageCols: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<DSGridT.ItemProps, import("@xstyled/system").Theme>>;
4
+ export declare const manageRows: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<DSGridT.ItemProps, import("@xstyled/system").Theme>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-grid",
3
- "version": "3.13.1-rc.1",
3
+ "version": "3.13.1-rc.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Grid",
6
6
  "files": [
@@ -64,8 +64,8 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "@xstyled/system": "~3.7.0",
67
- "@elliemae/ds-system": "3.13.1-rc.1",
68
- "@elliemae/ds-utilities": "3.13.1-rc.1"
67
+ "@elliemae/ds-system": "3.13.1-rc.2",
68
+ "@elliemae/ds-utilities": "3.13.1-rc.2"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@testing-library/jest-dom": "~5.16.4",