@pantheon-systems/pds-toolkit-react 1.0.0-dev.184 → 1.0.0-dev.186

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.
@@ -1,27 +1,45 @@
1
- export function FlexContainer({ alignContent, alignItems, flexDirection, flexWrap, justifyContent, mobileFlex, spacing, children, className, ...props }: {
2
- [x: string]: any;
3
- alignContent: any;
4
- alignItems: any;
5
- flexDirection: any;
6
- flexWrap: any;
7
- justifyContent: any;
8
- mobileFlex?: string;
9
- spacing?: string;
10
- children: any;
11
- className: any;
12
- }): React.JSX.Element;
13
- export namespace FlexContainer {
14
- namespace propTypes {
15
- let alignContent: PropTypes.Requireable<string>;
16
- let alignItems: PropTypes.Requireable<string>;
17
- let flexDirection: PropTypes.Requireable<string>;
18
- let flexWrap: PropTypes.Requireable<string>;
19
- let justifyContent: PropTypes.Requireable<string>;
20
- let mobileFlex: PropTypes.Requireable<string>;
21
- let spacing: PropTypes.Requireable<string>;
22
- let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
23
- let className: PropTypes.Requireable<string>;
24
- }
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './flex-container.css';
3
+ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
4
+ /**
5
+ * Align content
6
+ */
7
+ alignContent?: 'start' | 'end' | 'center';
8
+ /**
9
+ * Align items
10
+ */
11
+ alignItems?: 'start' | 'end' | 'center' | 'stretch' | 'baseline';
12
+ /**
13
+ * Flex direction
14
+ */
15
+ flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
16
+ /**
17
+ * Flex wrap
18
+ */
19
+ flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
20
+ /**
21
+ * Justify content
22
+ */
23
+ justifyContent?: 'start' | 'end' | 'center' | 'between';
24
+ /**
25
+ * How should the flex-direction at mobile (small breakpoint)
26
+ */
27
+ mobileFlex?: 'none' | 'reverse' | 'same';
28
+ /**
29
+ * Gap size
30
+ */
31
+ spacing?: 'narrow' | 'standard' | 'wide';
32
+ /**
33
+ * Container content
34
+ */
35
+ children: ReactNode;
36
+ /**
37
+ * Additional class names
38
+ */
39
+ className?: string;
25
40
  }
26
- import React from 'react';
27
- import PropTypes from 'prop-types';
41
+ /**
42
+ * Flex Container UI component
43
+ */
44
+ export declare const FlexContainer: ({ alignContent, alignItems, flexDirection, flexWrap, justifyContent, mobileFlex, spacing, children, className, ...props }: FlexContainerProps) => React.JSX.Element;
45
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pantheon-systems/pds-toolkit-react",
3
3
  "technology": "React",
4
- "version": "1.0.0-dev.184",
4
+ "version": "1.0.0-dev.186",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "repository": {
7
7
  "type": "git",