@pantheon-systems/pds-toolkit-react 1.0.0-dev.185 → 1.0.0-dev.187

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.
Files changed (30) hide show
  1. package/_dist/components/CTASlice/CTASlice.d.ts +50 -33
  2. package/_dist/components/PlatformIcon/PlatformIcon.d.ts +11 -12
  3. package/_dist/components/Stepper/Stepper.d.ts +48 -45
  4. package/_dist/components/cards/Card/Card.d.ts +28 -29
  5. package/_dist/components/cards/CardHeading/CardHeading.d.ts +32 -0
  6. package/_dist/components/cards/SiteCard/SiteCard.d.ts +43 -23
  7. package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +25 -17
  8. package/_dist/components/footer/SiteFooter/footer-content.d.ts +2 -0
  9. package/_dist/components/inputs/Combobox/Combobox.d.ts +4 -4
  10. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +62 -61
  11. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +34 -9
  12. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +43 -0
  13. package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +33 -0
  14. package/_dist/components/navigation/navigation-types.d.ts +0 -10
  15. package/_dist/css/component-css/pds-card-heading.css +1 -0
  16. package/_dist/css/component-css/pds-card.css +1 -1
  17. package/_dist/css/component-css/pds-index.css +3 -2
  18. package/_dist/css/component-css/pds-site-card.css +1 -1
  19. package/_dist/css/component-css/pds-tab-menu.css +2 -0
  20. package/_dist/css/component-css/pds-tabs.css +1 -1
  21. package/_dist/css/pds-components.css +3 -2
  22. package/_dist/index.css +1 -1
  23. package/_dist/index.d.ts +11 -9
  24. package/_dist/index.js +4374 -4517
  25. package/_dist/index.js.map +1 -1
  26. package/_dist/layouts/FlexContainer/FlexContainer.d.ts +44 -26
  27. package/_dist/layouts/StepperLayout/StepperLayout.d.ts +16 -12
  28. package/_dist/libs/components/utility-components.d.ts +1 -1
  29. package/_dist/libs/types/custom-types.d.ts +1 -0
  30. package/package.json +1 -1
@@ -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 {};
@@ -1,13 +1,17 @@
1
- export function StepperLayout({ children, className, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- className: any;
5
- }): React.JSX.Element;
6
- export namespace StepperLayout {
7
- namespace propTypes {
8
- let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
- let className: PropTypes.Requireable<string>;
10
- }
1
+ import React, { ReactNode } from 'react';
2
+ import './stepper-layout.css';
3
+ interface StepperLayoutProps {
4
+ /**
5
+ * Layout content.
6
+ */
7
+ children?: ReactNode;
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
11
12
  }
12
- import React from 'react';
13
- import PropTypes from 'prop-types';
13
+ /**
14
+ * StepperLayout UI component
15
+ */
16
+ export declare const StepperLayout: ({ children, className, ...props }: StepperLayoutProps) => React.JSX.Element;
17
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { HeadingLevel } from '@libs/types/custom-types';
3
3
  interface HxProps {
4
- baseClass: string;
4
+ baseClass?: string;
5
5
  children?: ReactNode;
6
6
  className?: string;
7
7
  level: HeadingLevel;
@@ -9,3 +9,4 @@ export type FuiOffset = number | {
9
9
  alignmentAxis?: number | null;
10
10
  };
11
11
  export type HeadingLevel = 'h2' | 'h3' | 'h4' | 'span';
12
+ export type SiteStatus = 'active' | 'frozen';
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.185",
4
+ "version": "1.0.0-dev.187",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "repository": {
7
7
  "type": "git",