@pantheon-systems/pds-toolkit-react 1.0.0-alpha.9 → 1.0.0-beta.0

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 (153) hide show
  1. package/_dist/components/Avatar/Avatar.d.ts +5 -5
  2. package/_dist/components/BranchDiff/BranchDiff.d.ts +9 -9
  3. package/_dist/components/CTALink/CTALink.d.ts +5 -5
  4. package/_dist/components/CTASlice/CTASlice.d.ts +5 -5
  5. package/_dist/components/Callout/Callout.d.ts +7 -7
  6. package/_dist/components/CodeBlock/CodeBlock.d.ts +5 -5
  7. package/_dist/components/ComparisonList/ComparisonList.d.ts +6 -6
  8. package/_dist/components/DashboardStat/DashboardStat.d.ts +9 -9
  9. package/_dist/components/FileDiff/FileDiff.d.ts +10 -10
  10. package/_dist/components/FlowSteps/FlowSteps.d.ts +9 -9
  11. package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +5 -5
  12. package/_dist/components/Modal/Modal.d.ts +5 -5
  13. package/_dist/components/Pagination/Pagination.d.ts +6 -6
  14. package/_dist/components/PantheonLogo/PantheonLogo.d.ts +5 -5
  15. package/_dist/components/Picture/Picture.d.ts +14 -14
  16. package/_dist/components/Popover/Popover.d.ts +19 -19
  17. package/_dist/components/PullQuote/PullQuote.d.ts +6 -6
  18. package/_dist/components/RefreshChecker/RefreshChecker.d.ts +9 -9
  19. package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +12 -8
  20. package/_dist/components/Skiplink/Skiplink.d.ts +5 -5
  21. package/_dist/components/SocialLinks/SocialLinks.d.ts +6 -6
  22. package/_dist/components/StatusIndicator/StatusIndicator.d.ts +5 -5
  23. package/_dist/components/Table/Table.d.ts +8 -8
  24. package/_dist/components/TableOfContents/TableOfContents.d.ts +7 -7
  25. package/_dist/components/Tabs/Tabs.d.ts +13 -13
  26. package/_dist/components/Tag/Tag.d.ts +7 -7
  27. package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +8 -8
  28. package/_dist/components/Tooltip/Tooltip.d.ts +5 -5
  29. package/_dist/components/VideoEmbed/VideoEmbed.d.ts +5 -5
  30. package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +6 -6
  31. package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +5 -5
  32. package/_dist/components/badges/Tally/Tally.d.ts +7 -7
  33. package/_dist/components/buttons/Button/Button.d.ts +5 -5
  34. package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +6 -6
  35. package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +5 -5
  36. package/_dist/components/buttons/CloseButton/CloseButton.d.ts +5 -5
  37. package/_dist/components/buttons/IconButton/IconButton.d.ts +8 -8
  38. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +5 -5
  39. package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +12 -12
  40. package/_dist/components/buttons/SplitButton/SplitButton.d.ts +5 -5
  41. package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +16 -10
  42. package/_dist/components/cards/Card/Card.d.ts +5 -5
  43. package/_dist/components/cards/CardHeading/CardHeading.d.ts +5 -5
  44. package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +9 -9
  45. package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +5 -5
  46. package/_dist/components/cards/LinksCard/LinksCard.d.ts +5 -5
  47. package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +10 -10
  48. package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +15 -15
  49. package/_dist/components/cards/PricingCard/PricingCard.d.ts +20 -20
  50. package/_dist/components/cards/SiteCard/SiteCard.d.ts +6 -7
  51. package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +6 -6
  52. package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +26 -26
  53. package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +13 -13
  54. package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +6 -6
  55. package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +6 -6
  56. package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +9 -9
  57. package/_dist/components/icons/Icon/Icon.d.ts +6 -6
  58. package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +5 -5
  59. package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +2 -2
  60. package/_dist/components/inputs/Checkbox/Checkbox.d.ts +6 -6
  61. package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +8 -8
  62. package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +6 -6
  63. package/_dist/components/inputs/Combobox/Combobox.d.ts +16 -16
  64. package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +11 -11
  65. package/_dist/components/inputs/Datepicker/Datepicker.d.ts +96 -0
  66. package/_dist/components/inputs/FileUpload/FileUpload.d.ts +5 -5
  67. package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +12 -12
  68. package/_dist/components/inputs/Select/Select.d.ts +12 -12
  69. package/_dist/components/inputs/Switch/Switch.d.ts +9 -7
  70. package/_dist/components/inputs/TextInput/TextInput.d.ts +6 -6
  71. package/_dist/components/inputs/Textarea/Textarea.d.ts +10 -10
  72. package/_dist/components/inputs/input-utilities.d.ts +29 -29
  73. package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +5 -5
  74. package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +5 -5
  75. package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +5 -5
  76. package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +5 -5
  77. package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +5 -5
  78. package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +1 -1
  79. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +9 -9
  80. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +5 -5
  81. package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +5 -5
  82. package/_dist/components/navigation/NavMenu/NavMenu.d.ts +7 -17
  83. package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +1 -1
  84. package/_dist/components/navigation/Navbar/Navbar.d.ts +6 -6
  85. package/_dist/components/navigation/SideNav/SideNav.d.ts +5 -5
  86. package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +5 -5
  87. package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +5 -5
  88. package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +1 -1
  89. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +6 -6
  90. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +5 -5
  91. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +9 -9
  92. package/_dist/components/navigation/navigation-types.d.ts +12 -4
  93. package/_dist/components/notifications/Banner/Banner.d.ts +8 -8
  94. package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +5 -5
  95. package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +5 -5
  96. package/_dist/components/notifications/Toaster/Toast.d.ts +5 -5
  97. package/_dist/components/notifications/Toaster/Toaster.d.ts +5 -5
  98. package/_dist/components/notifications/Toaster/useToast.d.ts +3 -3
  99. package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +5 -5
  100. package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +5 -5
  101. package/_dist/components/panels/Panel/Panel.d.ts +6 -6
  102. package/_dist/components/panels/PanelList/PanelList.d.ts +5 -5
  103. package/_dist/components/panels/PanelList/PanelRow.d.ts +5 -5
  104. package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +5 -5
  105. package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +5 -5
  106. package/_dist/components/steppers/Stepper/Stepper.d.ts +6 -6
  107. package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +5 -5
  108. package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +5 -5
  109. package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +8 -8
  110. package/_dist/components/tiles/Tile/Tile.d.ts +5 -5
  111. package/_dist/components/tiles/TileGrid/TileGrid.d.ts +6 -6
  112. package/_dist/css/component-css/pds-avatar.css +1 -1
  113. package/_dist/css/component-css/pds-button.css +1 -1
  114. package/_dist/css/component-css/pds-checkbox.css +1 -1
  115. package/_dist/css/component-css/pds-code-block.css +1 -1
  116. package/_dist/css/component-css/pds-datepicker.css +3 -0
  117. package/_dist/css/component-css/pds-index.css +31 -11
  118. package/_dist/css/component-css/pds-indicator-badge.css +5 -3
  119. package/_dist/css/component-css/pds-input-utilities.css +1 -1
  120. package/_dist/css/component-css/pds-panel-list.css +1 -1
  121. package/_dist/css/component-css/pds-pantheon-logo.css +1 -1
  122. package/_dist/css/component-css/pds-popover.css +1 -1
  123. package/_dist/css/component-css/pds-radio-group.css +1 -1
  124. package/_dist/css/component-css/pds-section-message.css +1 -1
  125. package/_dist/css/component-css/pds-segmented-button.css +1 -1
  126. package/_dist/css/component-css/pds-side-nav-compact.css +1 -1
  127. package/_dist/css/component-css/pds-side-nav.css +1 -1
  128. package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -1
  129. package/_dist/css/component-css/pds-switch.css +17 -1
  130. package/_dist/css/component-css/pds-tabs.css +1 -1
  131. package/_dist/css/component-css/pds-utility-button.css +1 -1
  132. package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +7 -0
  133. package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +7 -0
  134. package/_dist/css/pds-components.css +31 -11
  135. package/_dist/css/pds-core.css +2 -2
  136. package/_dist/index.css +1 -1
  137. package/_dist/index.d.ts +1 -1
  138. package/_dist/index.js +6952 -6604
  139. package/_dist/index.js.map +1 -1
  140. package/_dist/layouts/AppLayout/AppLayout.d.ts +5 -5
  141. package/_dist/layouts/Container/Container.d.ts +5 -5
  142. package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +13 -13
  143. package/_dist/layouts/DashboardInner/DashboardInner.d.ts +5 -5
  144. package/_dist/layouts/DocsLayout/DocsLayout.d.ts +6 -6
  145. package/_dist/layouts/FlexContainer/FlexContainer.d.ts +9 -9
  146. package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +2 -2
  147. package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +5 -5
  148. package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +5 -5
  149. package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +5 -5
  150. package/_dist/libs/components/utility-components.d.ts +3 -3
  151. package/_dist/libs/types/custom-types.d.ts +6 -6
  152. package/_dist/utilities/color/color-preview-swatches.d.ts +1 -1
  153. package/package.json +16 -8
@@ -9,6 +9,10 @@ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
9
9
  * Children to render in the layout.
10
10
  */
11
11
  children: ReactNode;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * PDS container width.
14
18
  */
@@ -61,13 +65,9 @@ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
61
65
  * Additional props for the sidebar `<div>` element.
62
66
  */
63
67
  sidebarProps?: ComponentPropsWithoutRef<'div'>;
64
- /**
65
- * Additional class names
66
- */
67
- className?: string;
68
68
  }
69
69
  /**
70
70
  * AppLayout UI component
71
71
  */
72
- export declare const AppLayout: ({ children, containerWidth, hasSidebarToggle, isSidebarCollapsed, labels, mainContentElement, mainContentProps, onSidebarToggle, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMin, sidebarProps, className, ...props }: AppLayoutProps) => import("react/jsx-runtime").JSX.Element;
72
+ export declare const AppLayout: ({ children, className, containerWidth, hasSidebarToggle, isSidebarCollapsed, labels, mainContentElement, mainContentProps, onSidebarToggle, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMin, sidebarProps, ...props }: AppLayoutProps) => import("react/jsx-runtime").JSX.Element;
73
73
  export {};
@@ -9,17 +9,17 @@ interface ContainerProps extends ComponentPropsWithoutRef<'div'> {
9
9
  * Container content.
10
10
  */
11
11
  children?: ReactNode;
12
- /**
13
- * Width of the container.
14
- */
15
- width?: ContainerWidth;
16
12
  /**
17
13
  * Additional class names
18
14
  */
19
15
  className?: string;
16
+ /**
17
+ * Width of the container.
18
+ */
19
+ width?: ContainerWidth;
20
20
  }
21
21
  /**
22
22
  * Container UI component
23
23
  */
24
- export declare const Container: ({ children, width, className, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const Container: ({ children, className, width, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -10,25 +10,29 @@ interface DashboardGlobalProps extends ComponentPropsWithoutRef<'div'> {
10
10
  */
11
11
  children: ReactNode;
12
12
  /**
13
- * Is the dashboard in admin mode?
13
+ * Additional class names. Will be merged with existing component root classes.
14
14
  */
15
- isAdmin?: boolean;
15
+ className?: string;
16
16
  /**
17
- * Is the sidebar expanded?
17
+ * Whether to include a sidebar toggle button.
18
18
  */
19
- isSidebarExpanded?: boolean;
19
+ hasSidebarToggle?: boolean;
20
20
  /**
21
- * Function to set the sidebar expanded state.
21
+ * Is the dashboard in admin mode?
22
22
  */
23
- setIsSidebarExpanded?: (isOpen: boolean) => void;
23
+ isAdmin?: boolean;
24
24
  /**
25
- * Whether to include a sidebar toggle button.
25
+ * Is the sidebar expanded?
26
26
  */
27
- hasSidebarToggle?: boolean;
27
+ isSidebarExpanded?: boolean;
28
28
  /**
29
29
  * A fully-formed link element using the router of your choice. The link text will be used as the aria-label. If the logo should not be a link, set to `null`.
30
30
  */
31
31
  logoLinkContent?: ReactNode;
32
+ /**
33
+ * Function to set the sidebar expanded state.
34
+ */
35
+ setIsSidebarExpanded?: (isOpen: boolean) => void;
32
36
  /**
33
37
  * Width of the sidebar when collapsed in rems. This should not need to be modified.
34
38
  */
@@ -45,13 +49,9 @@ interface DashboardGlobalProps extends ComponentPropsWithoutRef<'div'> {
45
49
  * Translatable string for skiplink.
46
50
  */
47
51
  skiplinkText?: string;
48
- /**
49
- * Additional class names. Will be merged with existing component root classes.
50
- */
51
- className?: string;
52
52
  }
53
53
  /**
54
54
  * DashboardGlobal UI component
55
55
  */
56
- export declare const DashboardGlobal: ({ children, hasSidebarToggle, isAdmin, logoLinkContent, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarToggleLabel, skiplinkText, isSidebarExpanded, setIsSidebarExpanded, className, ...props }: DashboardGlobalProps) => import("react/jsx-runtime").JSX.Element;
56
+ export declare const DashboardGlobal: ({ children, className, hasSidebarToggle, isAdmin, isSidebarExpanded, logoLinkContent, setIsSidebarExpanded, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarToggleLabel, skiplinkText, ...props }: DashboardGlobalProps) => import("react/jsx-runtime").JSX.Element;
57
57
  export {};
@@ -8,6 +8,10 @@ interface DashboardInnerProps extends ComponentPropsWithoutRef<'div'> {
8
8
  * Child elements to be assigned to named slots.
9
9
  */
10
10
  children: ReactNode;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
11
15
  /**
12
16
  * Whether to apply bottom spacing to the second-to-last content child.
13
17
  * This prop provides flexibility for different dashboard layouts:
@@ -17,13 +21,9 @@ interface DashboardInnerProps extends ComponentPropsWithoutRef<'div'> {
17
21
  * @default false
18
22
  */
19
23
  hasContentSpacing?: boolean;
20
- /**
21
- * Additional class names
22
- */
23
- className?: string;
24
24
  }
25
25
  /**
26
26
  * DashboardInner UI component
27
27
  */
28
- export declare const DashboardInner: ({ children, hasContentSpacing, className, ...props }: DashboardInnerProps) => import("react/jsx-runtime").JSX.Element;
28
+ export declare const DashboardInner: ({ children, className, hasContentSpacing, ...props }: DashboardInnerProps) => import("react/jsx-runtime").JSX.Element;
29
29
  export {};
@@ -9,22 +9,22 @@ interface DocsLayoutProps extends ComponentPropsWithoutRef<'div'> {
9
9
  */
10
10
  children: ReactNode;
11
11
  /**
12
- * Width of the sidebar when expanded as a percentage.
13
- * This is also the width of the sidebar when it is not collapsable (hasSidebarToggle is false).
12
+ * Additional class names
14
13
  */
15
- sidebarWidth?: string;
14
+ className?: string;
16
15
  /**
17
16
  * Minimum width of the sidebar when expanded in rems.
18
17
  * This is also the min-width of the sidebar when it is not collapsable (hasSidebarToggle is false).
19
18
  */
20
19
  sidebarMinWidth?: number;
21
20
  /**
22
- * Additional class names
21
+ * Width of the sidebar when expanded as a percentage.
22
+ * This is also the width of the sidebar when it is not collapsable (hasSidebarToggle is false).
23
23
  */
24
- className?: string;
24
+ sidebarWidth?: string;
25
25
  }
26
26
  /**
27
27
  * DocsLayout UI component
28
28
  */
29
- export declare const DocsLayout: ({ children, sidebarWidth, sidebarMinWidth, className, ...props }: DocsLayoutProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const DocsLayout: ({ children, className, sidebarMinWidth, sidebarWidth, ...props }: DocsLayoutProps) => import("react/jsx-runtime").JSX.Element;
30
30
  export {};
@@ -16,6 +16,14 @@ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
16
16
  * Aligns items on the cross axis.
17
17
  */
18
18
  alignItems?: FlexAlignItems;
19
+ /**
20
+ * Container content.
21
+ */
22
+ children?: ReactNode;
23
+ /**
24
+ * Additional class names
25
+ */
26
+ className?: string;
19
27
  /**
20
28
  * Establishes the main-axis, thus defining the direction flex items are placed in the flex container.
21
29
  */
@@ -56,17 +64,9 @@ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
56
64
  * Justify content for mobile. If not set, will default to the same value as `justifyContent`.
57
65
  */
58
66
  mobileJustifyContent?: FlexJustifyContent;
59
- /**
60
- * Container content.
61
- */
62
- children?: ReactNode;
63
- /**
64
- * Additional class names
65
- */
66
- className?: string;
67
67
  }
68
68
  /**
69
69
  * Flex Container UI component
70
70
  */
71
- export declare const FlexContainer: ({ alignContent, alignItems, flexDirection, flexWrap, gap, justifyContent, mobileAlignItems, mobileAlignContent, mobileFlexDirection, mobileFlexWrap, mobileGap, mobileJustifyContent, children, className, ...props }: FlexContainerProps) => import("react/jsx-runtime").JSX.Element;
71
+ export declare const FlexContainer: ({ alignContent, alignItems, children, className, flexDirection, flexWrap, gap, justifyContent, mobileAlignContent, mobileAlignItems, mobileFlexDirection, mobileFlexWrap, mobileGap, mobileJustifyContent, ...props }: FlexContainerProps) => import("react/jsx-runtime").JSX.Element;
72
72
  export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { ReactNode } from 'react';
2
2
  /**
3
3
  * Prop types for GlobalWrapper
4
4
  */
@@ -6,7 +6,7 @@ interface GlobalWrapperProps {
6
6
  /**
7
7
  * Child components
8
8
  */
9
- children: React.ReactNode;
9
+ children: ReactNode;
10
10
  /**
11
11
  * Mobile menu will be enabled when viewport is at or below this number in pixels.
12
12
  */
@@ -8,6 +8,10 @@ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
8
8
  * Children to render in the layout. All children must be assigned to a named slot — either 'sidebar' or 'content'.
9
9
  */
10
10
  children: ReactNode;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
11
15
  /**
12
16
  * Gap between grid items
13
17
  */
@@ -24,13 +28,9 @@ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
24
28
  * Sidebar width.
25
29
  */
26
30
  sidebarWidth?: 'narrow' | 'standard' | 'wide';
27
- /**
28
- * Additional class names
29
- */
30
- className?: string;
31
31
  }
32
32
  /**
33
33
  * SidebarLayout UI component
34
34
  */
35
- export declare const SidebarLayout: ({ children, gridGap, sidebarLocation, sidebarMobileLocation, sidebarWidth, className, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
35
+ export declare const SidebarLayout: ({ children, className, gridGap, sidebarLocation, sidebarMobileLocation, sidebarWidth, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
36
36
  export {};
@@ -10,6 +10,10 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
10
10
  * Item content.
11
11
  */
12
12
  children?: ReactNode;
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Width of gap between items.
15
19
  */
@@ -18,13 +22,9 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
18
22
  * Vertical alignment of items.
19
23
  */
20
24
  verticalAlign?: VerticalAlignOptions;
21
- /**
22
- * Additional class names
23
- */
24
- className?: string;
25
25
  }
26
26
  /**
27
27
  * ThreeItemLayout UI component.
28
28
  */
29
- export declare const ThreeItemLayout: ({ children, gridGap, verticalAlign, className, ...props }: TwoItemLayoutProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const ThreeItemLayout: ({ children, className, gridGap, verticalAlign, ...props }: TwoItemLayoutProps) => import("react/jsx-runtime").JSX.Element;
30
30
  export {};
@@ -10,6 +10,10 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
10
10
  * Item content.
11
11
  */
12
12
  children?: ReactNode;
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Width of gap between items.
15
19
  */
@@ -22,13 +26,9 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
22
26
  * Vertical alignment of items.
23
27
  */
24
28
  verticalAlign?: VerticalAlignOptions;
25
- /**
26
- * Additional class names
27
- */
28
- className?: string;
29
29
  }
30
30
  /**
31
31
  * TwoItemLayout UI component.
32
32
  */
33
- export declare const TwoItemLayout: ({ children, gridGap, layoutVariant, verticalAlign, className, ...props }: TwoItemLayoutProps) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const TwoItemLayout: ({ children, className, gridGap, layoutVariant, verticalAlign, ...props }: TwoItemLayoutProps) => import("react/jsx-runtime").JSX.Element;
34
34
  export {};
@@ -1,13 +1,13 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { HeadingLevel } from '@libs/types/custom-types';
3
3
  interface HxProps {
4
4
  baseClass?: string;
5
5
  children?: ReactNode;
6
+ className?: string;
6
7
  id?: string;
7
8
  level: HeadingLevel;
8
- className?: string;
9
9
  }
10
- export declare const Hx: ({ baseClass, children, id, level, className, ...props }: HxProps) => React.DetailedReactHTMLElement<{
10
+ export declare const Hx: ({ baseClass, children, className, id, level, ...props }: HxProps) => import("react").DetailedReactHTMLElement<{
11
11
  className: any;
12
12
  id: string;
13
13
  }, HTMLElement>;
@@ -8,20 +8,20 @@ export type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'brand' | 'bran
8
8
  export type ContainerWidth = 'narrow' | 'standard' | 'wide' | 'x-wide' | 'full';
9
9
  export type Display = 'block' | 'inline' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'inline-grid' | 'flow-root' | 'none' | 'contents' | 'table' | 'table-row' | 'table-cell' | 'table-caption' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row-group' | 'list-item' | 'inherit' | 'initial' | 'revert' | 'unset';
10
10
  export type FuiOffset = number | {
11
- mainAxis?: number;
12
- crossAxis?: number;
13
11
  alignmentAxis?: number | null;
12
+ crossAxis?: number;
13
+ mainAxis?: number;
14
14
  };
15
15
  export type FuiPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
16
16
  export type HeadingItemType = {
17
- /**
18
- * Label for a menu item
19
- */
20
- label: string;
21
17
  /**
22
18
  * Is the item a heading?
23
19
  */
24
20
  isHeading: boolean;
21
+ /**
22
+ * Label for a menu item
23
+ */
24
+ label: string;
25
25
  };
26
26
  export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
27
27
  export type HeadingLevelCommon = Exclude<HeadingLevel, 'h1' | 'h5' | 'h6'>;
@@ -1,7 +1,7 @@
1
1
  import './color-preview-swatches.css';
2
2
  export declare const SwatchButton: ({ clipboardText, color, type, }: {
3
- color: string;
4
3
  clipboardText: string;
4
+ color: string;
5
5
  type: "background" | "foreground" | "border";
6
6
  }) => import("react/jsx-runtime").JSX.Element;
7
7
  interface ColorPreviewSwatchesProps {
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-alpha.9",
4
+ "version": "1.0.0-beta.0",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -64,8 +64,8 @@
64
64
  "pretest:vrt:update": "npm run build:css",
65
65
  "test:vrt:update": "npm run test:vrt -- --update-snapshots",
66
66
  "pretest:a11y:generate": "npm run build:css",
67
- "test:a11y:generate": "npm run storybook:build && npx sb extract && node __tests__/a11y/a11y.generate-tests.js",
68
- "test:a11y": "playwright test --project 'a11y'",
67
+ "test:a11y:generate": "DISABLE_A11Y_ADDON=true npm run storybook:build && node __tests__/a11y/a11y.generate-tests.js",
68
+ "test:a11y": "USE_STATIC_STORYBOOK=true DISABLE_A11Y_ADDON=true playwright test --project 'a11y'",
69
69
  "test:a11y:results": "npx http-server ./__tests__/a11y/results/",
70
70
  "predeploy:pantheon": "npm run build:css",
71
71
  "deploy:pantheon": "storybook build",
@@ -76,11 +76,12 @@
76
76
  "generate:utility": "plop utility",
77
77
  "prepare": "husky install",
78
78
  "build-storybook": "storybook build",
79
- "vite": "vite"
79
+ "vite": "vite",
80
+ "pack:local": "bash scripts/pack-local.sh"
80
81
  },
81
82
  "devDependencies": {
82
83
  "@arethetypeswrong/cli": "^0.15.3",
83
- "@axe-core/playwright": "^4.7.0",
84
+ "@axe-core/playwright": "^4.11.0",
84
85
  "@babel/preset-env": "^7.21.5",
85
86
  "@babel/preset-react": "^7.18.6",
86
87
  "@csstools/postcss-design-tokens": "^2.0.4",
@@ -94,8 +95,8 @@
94
95
  "@storybook/react-webpack5": "^9.1.12",
95
96
  "@types/prismjs": "^1.26.5",
96
97
  "@types/react": "^19.2.2",
97
- "@typescript-eslint/eslint-plugin": "^7.7.0",
98
- "@typescript-eslint/parser": "^7.7.0",
98
+ "@typescript-eslint/eslint-plugin": "^8.47.0",
99
+ "@typescript-eslint/parser": "^8.47.0",
99
100
  "@vitejs/plugin-react": "^4.3.0",
100
101
  "@vueless/storybook-dark-mode": "^9.0.9",
101
102
  "axe-html-reporter": "^2.2.3",
@@ -103,9 +104,14 @@
103
104
  "cssnano": "^6.0.1",
104
105
  "eslint": "^8.57.0",
105
106
  "eslint-config-prettier": "^9.1.0",
107
+ "eslint-import-resolver-typescript": "^4.4.4",
108
+ "eslint-plugin-import": "^2.32.0",
106
109
  "eslint-plugin-prettier": "^5.1.3",
107
110
  "eslint-plugin-react": "^7.32.2",
111
+ "eslint-plugin-simple-import-sort": "^12.1.1",
112
+ "eslint-plugin-sort-destructure-keys": "^2.0.0",
108
113
  "eslint-plugin-storybook": "^9.1.12",
114
+ "eslint-plugin-typescript-sort-keys": "^3.3.0",
109
115
  "fast-glob": "^3.3.2",
110
116
  "husky": "^8.0.3",
111
117
  "lint-staged": "^13.2.3",
@@ -123,7 +129,7 @@
123
129
  "react-dom": "^18.2.0",
124
130
  "storybook": "^9.1.12",
125
131
  "typescript": "^5.4.5",
126
- "vite": "^5.2.11",
132
+ "vite": "^7.2.2",
127
133
  "vite-plugin-lib-inject-css": "^2.1.1",
128
134
  "vite-tsconfig-paths": "^4.3.2"
129
135
  },
@@ -136,12 +142,14 @@
136
142
  "@floating-ui/react-dom": "~1.3.0",
137
143
  "@pantheon-systems/pds-design-tokens": "^1.0.0",
138
144
  "@reactuses/core": "^5.0.15",
145
+ "date-fns": "^4.1.0",
139
146
  "downshift": "^9.0.8",
140
147
  "focus-trap-react": "^10.2.1",
141
148
  "hash-sum": "^2.0.0",
142
149
  "prism-react-renderer": "^2.4.1",
143
150
  "prismjs": "^1.29.0",
144
151
  "react-code-block": "^1.1.1",
152
+ "react-day-picker": "^9.11.1",
145
153
  "react-device-detect": "^2.2.3",
146
154
  "react-hotkeys-hook": "^4.5.1",
147
155
  "react-router-dom": "^6.13.0",