@pantheon-systems/pds-toolkit-react 2.0.0-alpha.37 → 2.0.0-alpha.39
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/codemods/v1-to-v2/mappings.json +217 -28
- package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/basic.input.tsx +33 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/basic.output.tsx +33 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/only.input.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/only.output.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-removals/basic.input.tsx +31 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-removals/basic.output.tsx +31 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-renames/basic.input.tsx +31 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-renames/basic.output.tsx +31 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/basic.input.tsx +35 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/basic.output.tsx +35 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/only.input.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/only.output.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/basic.input.tsx +28 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/basic.output.tsx +28 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/only.input.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/only.output.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.output.tsx +10 -10
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/only.input.tsx +21 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/only.output.tsx +21 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.input.tsx +60 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.output.tsx +51 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/only.input.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/only.output.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__tests__/component-renames.test.js +15 -0
- package/codemods/v1-to-v2/transforms/__tests__/css-class-removals.test.js +6 -0
- package/codemods/v1-to-v2/transforms/__tests__/css-class-renames.test.js +6 -0
- package/codemods/v1-to-v2/transforms/__tests__/icon-name-updates.test.js +15 -0
- package/codemods/v1-to-v2/transforms/__tests__/prop-renames.test.js +15 -0
- package/codemods/v1-to-v2/transforms/__tests__/prop-value-standardization.test.js +10 -0
- package/codemods/v1-to-v2/transforms/__tests__/removed-prop-values.test.js +15 -0
- package/codemods/v1-to-v2/transforms/component-renames.js +166 -0
- package/codemods/v1-to-v2/transforms/css-class-removals.js +192 -0
- package/codemods/v1-to-v2/transforms/css-class-renames.js +114 -0
- package/codemods/v1-to-v2/transforms/icon-name-updates.js +124 -0
- package/codemods/v1-to-v2/transforms/prop-renames.js +109 -0
- package/codemods/v1-to-v2/transforms/prop-value-standardization.js +33 -2
- package/codemods/v1-to-v2/transforms/removed-prop-values.js +206 -0
- package/dist/components/Dropdown/Dropdown.d.ts +46 -0
- package/dist/components/SiteFooter/SiteFooter.d.ts +4 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/UtilityBar/UtilityBar.d.ts +2 -3
- package/dist/components/buttons/ButtonLink/ButtonLink.d.ts +1 -3
- package/dist/components/buttons/CloseButton/CloseButton.d.ts +2 -2
- package/dist/components/buttons/FilterButton/FilterButton.d.ts +82 -0
- package/dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +7 -1
- package/dist/components/cards/ActionCard/ActionCard.d.ts +2 -2
- package/dist/components/cards/Card/Card.d.ts +2 -2
- package/dist/components/icons/Icon/custom-icons.d.ts +1 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +107 -30
- package/dist/components/navigation/Navbar/Navbar.d.ts +10 -1
- package/dist/components/panels/Panel/Panel.d.ts +2 -2
- package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +10 -1
- package/dist/css/component-css/pds-action-card.css +1 -1
- package/dist/css/component-css/pds-button-link.css +1 -1
- package/dist/css/component-css/pds-button.css +1 -1
- package/dist/css/component-css/pds-card.css +1 -1
- package/dist/css/component-css/pds-checkbox.css +1 -1
- package/dist/css/component-css/pds-close-button.css +1 -1
- package/dist/css/component-css/pds-dropdown.css +2 -2
- package/dist/css/component-css/pds-filter-button.css +1 -0
- package/dist/css/component-css/pds-icon.css +1 -1
- package/dist/css/component-css/pds-index.css +23 -23
- package/dist/css/component-css/pds-panel.css +1 -1
- package/dist/css/component-css/pds-progress-ring.css +1 -1
- package/dist/css/component-css/pds-radio-group.css +1 -1
- package/dist/css/component-css/pds-segmented-button.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/component-css/pds-site-footer.css +1 -1
- package/dist/css/component-css/pds-site-search.css +1 -1
- package/dist/css/component-css/pds-skeleton.css +1 -1
- package/dist/css/component-css/pds-switch.css +2 -2
- package/dist/css/component-css/pds-utility-bar.css +1 -1
- package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +6 -2
- package/dist/css/design-tokens/variables.global.css +0 -1
- package/dist/css/design-tokens/variables.light.css +4 -0
- package/dist/css/layout-css/pds-app-layout.css +5 -2
- package/dist/css/layout-css/pds-index.css +5 -2
- package/dist/css/layout-css/pds-sidebar-layout.css +1 -1
- package/dist/css/pds-components.css +23 -23
- package/dist/css/pds-core.css +2 -2
- package/dist/css/pds-layouts.css +5 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1340 -1032
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +3 -0
- package/dist/layouts/AppLayout/AppLayout.d.ts +22 -2
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +4 -3
- package/dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +3 -3
- package/dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +3 -3
- package/dist/libs/types/custom-types.d.ts +2 -2
- package/dist/libs/types/layout-types.d.ts +2 -1
- package/dist/svg/circleHalfStroke.svg +3 -0
- package/dist/svg/claude.svg +3 -0
- package/dist/svg/clock.svg +3 -0
- package/dist/svg/diagramVenn.svg +3 -0
- package/dist/svg/floppyDisk.svg +3 -0
- package/dist/svg/grid.svg +2 -2
- package/dist/svg/grid2.svg +3 -0
- package/dist/svg/octagonExclamation.svg +3 -0
- package/dist/svg/openai.svg +3 -0
- package/dist/svg/slider.svg +3 -0
- package/dist/svg/squareDashed.svg +3 -0
- package/dist/svg/tableColumns.svg +3 -0
- package/dist/utilities/FlexContainer/FlexContainer.d.ts +5 -6
- package/dist/utilities/grid/Grid.d.ts +58 -0
- package/dist/utilities/grid/GridItem.d.ts +57 -0
- package/package.json +5 -7
- /package/dist/svg/{arrowDownLeftAndArrowUpRightToCenter.svg → collapseToCenter.svg} +0 -0
- /package/dist/svg/{linkSimple.svg → link.svg} +0 -0
- /package/dist/svg/{arrowsUpDownLeftRight.svg → move.svg} +0 -0
- /package/dist/svg/{linkSimpleSlash.svg → unlink.svg} +0 -0
package/dist/index.source.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './components/buttons/Button/Button';
|
|
|
7
7
|
export * from './components/buttons/ButtonLink/ButtonLink';
|
|
8
8
|
export * from './components/buttons/ClipboardButton/ClipboardButton';
|
|
9
9
|
export * from './components/buttons/CloseButton/CloseButton';
|
|
10
|
+
export * from './components/buttons/FilterButton/FilterButton';
|
|
10
11
|
export * from './components/buttons/IconButton/IconButton';
|
|
11
12
|
export * from './components/buttons/MenuButton/MenuButton';
|
|
12
13
|
export * from './components/buttons/SegmentedButton/SegmentedButton';
|
|
@@ -119,6 +120,8 @@ export * from './libs/types/custom-types';
|
|
|
119
120
|
export * from './libs/types/input-types';
|
|
120
121
|
export * from './libs/types/layout-types';
|
|
121
122
|
export * from './libs/types/navigation-types';
|
|
123
|
+
export * from './utilities/grid/Grid';
|
|
124
|
+
export * from './utilities/grid/GridItem';
|
|
122
125
|
export * from './utilities/hooks/useBreakpoint/useBreakpoint';
|
|
123
126
|
export * from './utilities/hooks/useClipboard/useClipboard';
|
|
124
127
|
export * from './utilities/hooks/useDropdown';
|
|
@@ -6,7 +6,16 @@ import './app-layout.css';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
8
|
/**
|
|
9
|
-
* Children to render in the layout
|
|
9
|
+
* Children to render in the layout, assigned to named slots:
|
|
10
|
+
* - `header` — full-width region above the sidebar and main content (e.g. a Navbar).
|
|
11
|
+
* - `footer` — region below the main content, aligned with it (e.g. a SiteFooter);
|
|
12
|
+
* the sidebar spans the full height alongside the main + footer column.
|
|
13
|
+
* - `identity` — top of the sidebar (e.g. a workspace/account block).
|
|
14
|
+
* - `content-top` — sidebar content above the navigation.
|
|
15
|
+
* - `navigation` — the sidebar's primary navigation (e.g. SideNavGlobal).
|
|
16
|
+
* - `content-bottom` — sidebar content pinned to the bottom.
|
|
17
|
+
* - `sidebar` — legacy single-slot sidebar body (pre-V2).
|
|
18
|
+
* - unslotted children render as the main content.
|
|
10
19
|
*/
|
|
11
20
|
children: ReactNode;
|
|
12
21
|
/**
|
|
@@ -62,6 +71,17 @@ export interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
62
71
|
* Element type for the main content area.
|
|
63
72
|
*/
|
|
64
73
|
mainContentElement?: 'div' | 'main';
|
|
74
|
+
/**
|
|
75
|
+
* Maximum width of the main content (and the footer content, which stays
|
|
76
|
+
* aligned with it). The content is centered within the region once it grows
|
|
77
|
+
* past this width, while the region itself — background, border, padding —
|
|
78
|
+
* remains full-bleed.
|
|
79
|
+
*
|
|
80
|
+
* A number is treated as pixels; a string is used as-is (e.g. '90rem').
|
|
81
|
+
* Pass `null` to remove the cap so content fills the full region width.
|
|
82
|
+
* Defaults to `1600` (the recommended value).
|
|
83
|
+
*/
|
|
84
|
+
mainContentMaxWidth?: number | string | null;
|
|
65
85
|
/**
|
|
66
86
|
* Additional props for the main content element.
|
|
67
87
|
*/
|
|
@@ -111,4 +131,4 @@ export interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
111
131
|
/**
|
|
112
132
|
* AppLayout UI component
|
|
113
133
|
*/
|
|
114
|
-
export declare const AppLayout: ({ children, className, drawerContent, drawerProps, hasDrawerToggle, hasSidebarToggle, isDrawerOpen, isSidebarCollapsed, keyboardShortcuts, labels, mainBackground, mainContentElement, mainContentProps, onDrawerToggle, onSidebarToggle, scrollableContent, sidebarBackground, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMax, sidebarExpandedWidthMin, sidebarProps, ...props }: AppLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
134
|
+
export declare const AppLayout: ({ children, className, drawerContent, drawerProps, hasDrawerToggle, hasSidebarToggle, isDrawerOpen, isSidebarCollapsed, keyboardShortcuts, labels, mainBackground, mainContentElement, mainContentMaxWidth, mainContentProps, onDrawerToggle, onSidebarToggle, scrollableContent, sidebarBackground, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMax, sidebarExpandedWidthMin, sidebarProps, ...props }: AppLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GapScale } from '../../libs/types/layout-types';
|
|
3
3
|
import './sidebar-layout.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for SidebarLayout
|
|
@@ -15,9 +15,10 @@ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
15
15
|
*/
|
|
16
16
|
className?: string;
|
|
17
17
|
/**
|
|
18
|
-
* Gap between
|
|
18
|
+
* Gap between the main content and sidebar, from the numbered spacing scale.
|
|
19
|
+
* Defaults to `xl`.
|
|
19
20
|
*/
|
|
20
|
-
gridGap?:
|
|
21
|
+
gridGap?: GapScale;
|
|
21
22
|
/**
|
|
22
23
|
* Sidebar location.
|
|
23
24
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GapScale, VerticalAlignOptions } from '../../libs/types/layout-types';
|
|
3
3
|
import '../../utilities/grid/grid.css';
|
|
4
4
|
import './three-item-layout.css';
|
|
5
5
|
/**
|
|
@@ -15,9 +15,9 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
15
15
|
*/
|
|
16
16
|
className?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Gap between items, from the numbered spacing scale. Defaults to `xl`.
|
|
19
19
|
*/
|
|
20
|
-
gridGap?:
|
|
20
|
+
gridGap?: GapScale;
|
|
21
21
|
/**
|
|
22
22
|
* Vertical alignment of items.
|
|
23
23
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GapScale, VerticalAlignOptions } from '../../libs/types/layout-types';
|
|
3
3
|
import '../../utilities/grid/grid.css';
|
|
4
4
|
import './two-item-layout.css';
|
|
5
5
|
/**
|
|
@@ -15,9 +15,9 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
15
15
|
*/
|
|
16
16
|
className?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Gap between items, from the numbered spacing scale. Defaults to `xl`.
|
|
19
19
|
*/
|
|
20
|
-
gridGap?:
|
|
20
|
+
gridGap?: GapScale;
|
|
21
21
|
/**
|
|
22
22
|
* Layout variant for column widths.
|
|
23
23
|
*/
|
|
@@ -3,7 +3,7 @@ import { PDSIcon } from '../../components/icons/Icon/Icon';
|
|
|
3
3
|
export type ButtonDisplayType = 'label-only' | 'icon-start' | 'icon-end';
|
|
4
4
|
export type ButtonSize = 'xs' | 's' | 'm' | 'l';
|
|
5
5
|
export type ButtonType = 'button' | 'submit' | 'reset';
|
|
6
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'brand' | 'highlight' | 'reverse' | 'reverse-secondary' | 'critical' | 'critical-secondary' | '
|
|
6
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'brand' | 'highlight' | 'reverse' | 'reverse-secondary' | 'critical' | 'critical-secondary' | 'link';
|
|
7
7
|
export type ContainerWidth = 'narrow' | 'standard' | 'wide' | 'x-wide' | 'full';
|
|
8
8
|
export type DataContext = 'product' | 'marketing';
|
|
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';
|
|
@@ -28,7 +28,7 @@ export type HeadingItemType = {
|
|
|
28
28
|
};
|
|
29
29
|
export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
|
|
30
30
|
export type HeadingLevelCommon = Exclude<HeadingLevel, 'h1' | 'h5' | 'h6'>;
|
|
31
|
-
export type IconSize = '
|
|
31
|
+
export type IconSize = 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl';
|
|
32
32
|
export type LinkItemType = {
|
|
33
33
|
/**
|
|
34
34
|
* Screen reader label for critical items. Only used when isCritical is true.
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type GapScale = 'none' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
2
|
+
export type PaddingScale = 'none' | 'condensed' | 'standard' | 'spacious';
|
|
2
3
|
export type VerticalAlignOptions = 'start' | 'center' | 'end';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M280 462.6l0-413.3C383.6 61.3 464 149.2 464 256S383.6 450.7 280 462.6zm-48 0C128.4 450.7 48 362.8 48 256S128.4 61.3 232 49.4l0 413.3zM256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M7.84666 26.5833L15.7246 22.1684L15.8576 21.7855L15.7246 21.5745H15.3413L14.027 21.4964L9.52865 21.3714L5.62488 21.2073L1.84627 21.0041L0.891844 20.8009L0 19.6288L0.0938787 19.0428L0.891844 18.5036L2.04185 18.6052C3.52044 18.7068 5.6327 18.8474 8.37864 19.0428L11.1324 19.2069L15.2161 19.6288H15.8654L15.9593 19.3632L15.7403 19.1991L15.5682 19.035L11.6331 16.3704L7.37727 13.5573L5.14766 11.9398L3.94289 11.1194L3.33268 10.3536L3.06669 8.67357L4.16194 7.47021L5.6327 7.57179L6.00821 7.67337L7.49462 8.82203L10.6787 11.2835L14.8328 14.3387L15.443 14.8466L15.6855 14.6747L15.7168 14.5497L15.443 14.0965L13.1821 10.0176L10.7725 5.86833L9.70076 4.14925L9.41913 3.1178C9.31743 2.69584 9.24702 2.33639 9.24702 1.90662L10.4909 0.218792L11.1793 0L12.8379 0.218792L13.5341 0.828287L14.5668 3.18812L16.241 6.89979L18.8383 11.9476L19.5971 13.4479L20.0039 14.8388L20.1526 15.2608H20.4185V15.0186L20.6298 12.1743L21.0209 8.68138L21.4043 4.18832L21.5373 2.92245L22.1631 1.40652L23.407 0.586052L24.3771 1.04708L25.175 2.19574L25.0655 2.93807L24.5883 6.02461L23.6573 10.8615L23.0471 14.1043H23.3992L23.806 13.698L25.4489 11.5257L28.2026 8.0797L29.4152 6.71225L30.8312 5.20414L31.7387 4.48525H33.4598L34.7272 6.36843L34.1561 8.31412L32.3802 10.5567L30.9094 12.4634L28.7972 15.2999L27.4829 17.5659L27.6081 17.7457L27.921 17.7144L32.6853 16.6986L35.2591 16.2375L38.3337 15.714L39.7262 16.3626L39.8748 17.0189L39.3272 18.363L36.0415 19.1756L32.1924 19.9414L26.458 21.2932L26.3876 21.3479L26.4659 21.4495L29.0475 21.6917L30.1506 21.7542H32.8574L37.8956 22.1293L39.2099 22.9967L40 24.0594L39.867 24.872L37.8408 25.9035C36.6282 25.6144 33.585 24.8955 28.719 23.739L26.5285 23.192H26.2233V23.3717L28.0462 25.1534L31.3867 28.1696L35.5721 32.0609L35.7833 33.0221L35.2435 33.78L34.6724 33.7019L30.9955 30.9357L29.5795 29.6933L26.3642 26.9896H26.1529V27.271L26.8961 28.3571L30.8077 34.2332L31.0111 36.0305L30.7295 36.6165L29.7125 36.9682L28.6016 36.765L26.3094 33.5534L23.9468 29.9355L22.0379 26.6927L21.8032 26.8256L20.6767 38.9217L20.1526 39.539L18.94 40L17.9229 39.2342L17.3831 37.9918L17.9229 35.5304L18.5723 32.3188L19.0964 29.7636L19.5736 26.5911L19.8553 25.5362L19.8396 25.4659L19.6049 25.4972L17.211 28.7791L13.5732 33.6941L10.6943 36.7728L10.0059 37.0463L8.80892 36.429L8.91844 35.3272L9.58342 34.3426L13.5654 29.2792L15.9671 26.1379L17.5161 24.3251L17.5083 24.0594H17.4144L6.82965 30.9201L4.94426 31.1623L4.13065 30.4044L4.23235 29.1619L4.61569 28.7556L7.79973 26.5677L7.7919 26.5755V26.5833H7.84666Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M224 432c-97.2 0-176-78.8-176-176S126.8 80 224 80c15.9 0 31.4 2.1 46 6.1-47.8 41.1-78 102-78 169.9s30.3 128.8 78 169.9c-14.7 4-30.1 6.1-46 6.1zm17.1-156l157.8 0c-1.6 13.9-4.8 27.3-9.4 40l-139 0c-4.6-12.7-7.8-26.1-9.4-40zM320 403.5c-19.2-12.5-35.8-28.7-48.9-47.5l97.7 0c-13 18.8-29.6 35-48.9 47.5zM271.1 156c13-18.8 29.6-35 48.9-47.5 19.2 12.5 35.8 28.7 48.9 47.5l-97.7 0zm-20.7 40l139 0c4.6 12.7 7.8 26.1 9.4 40l-157.8 0c1.6-13.9 4.8-27.3 9.4-40zM224 480c34.4 0 66.9-7.7 96-21.6 29.1 13.8 61.6 21.6 96 21.6 123.7 0 224-100.3 224-224S539.7 32 416 32C381.6 32 349.1 39.7 320 53.6 290.9 39.7 258.4 32 224 32 100.3 32 0 132.3 0 256S100.3 480 224 480zM416 80c97.2 0 176 78.8 176 176S513.2 432 416 432c-15.9 0-31.4-2.1-46-6.1 47.8-41.1 78-102 78-169.9S417.7 127.2 370 86.1c14.7-4 30.1-6.1 46-6.1z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-242.7c0-4.2-1.7-8.3-4.7-11.3L320 86.6 320 176c0 17.7-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32l0-96-32 0zm80 0l0 80 128 0 0-80-128 0zM0 96C0 60.7 28.7 32 64 32l242.7 0c17 0 33.3 6.7 45.3 18.7L429.3 128c12 12 18.7 28.3 18.7 45.3L448 416c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM160 320a64 64 0 1 1 128 0 64 64 0 1 1 -128 0z"/>
|
|
3
|
+
</svg>
|
package/dist/svg/grid.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M112 64l0 48-48 0 0-48 48 0zM64 24C41.9 24 24 41.9 24 64l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40L64 24zm48 208l0 48-48 0 0-48 48 0zM64 192c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0zm0 208l48 0 0 48-48 0 0-48zm-40 0l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM280 64l0 48-48 0 0-48 48 0zM232 24c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0zm0 208l48 0 0 48-48 0 0-48zm-40 0l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zm88 168l0 48-48 0 0-48 48 0zm-48-40c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0zM400 64l48 0 0 48-48 0 0-48zm-40 0l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zm88 168l0 48-48 0 0-48 48 0zm-48-40c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0zm0 208l48 0 0 48-48 0 0-48zm-40 0l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40z"/>
|
|
3
3
|
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M48 80l0 96 96 0 0-96-96 0zM0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM48 336l0 96 96 0 0-96-96 0zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zM400 80l-96 0 0 96 96 0 0-96zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm0 304l0 96 96 0 0-96-96 0zm-48 0c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M330.9 .1c12.7 0 25 5.1 34 14.1L498.3 147.6c9 9 14.1 21.2 14.1 33.9l0 148.8c0 12.7-5.1 25-14.1 34L364.8 497.9c-9 9-21.2 14.1-34 14.1l-148.8 0c-12.7 0-24.9-5.1-33.9-14.1L14.6 364.4c-9-9-14.1-21.2-14.1-34l0-148.8c0-12.7 5.1-24.9 14.1-33.9L148.1 14.1c9-9 21.2-14.1 33.9-14.1l148.8 0zM48.5 181.6l0 148.8 133.5 133.5 148.8 0 133.5-133.5 0-148.8-133.5-133.5-148.8 0-133.5 133.5zM256.4 384a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-256c18.2 0 32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3-12.6 0-23-9.7-23.9-22.3l-7.4-104c-1.3-18.2 13.1-33.7 31.4-33.7z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M15.3417 14.5625V10.7656C15.3417 10.4453 15.4579 10.2031 15.7367 10.0469L23.3107 5.64844C24.3408 5.04687 25.5721 4.76562 26.8422 4.76562C31.5973 4.76562 34.6176 8.48437 34.6176 12.4453C34.6176 12.7266 34.6176 13.0469 34.5789 13.3672L26.7183 8.72656C26.2459 8.44531 25.7657 8.44531 25.2933 8.72656L15.3417 14.5625ZM33.0223 29.3594V20.2812C33.0223 19.7188 32.7822 19.3203 32.3098 19.0391L22.3582 13.2031L25.6108 11.3203C25.8896 11.1641 26.1297 11.1641 26.4008 11.3203L33.9748 15.7266C36.1588 17.0078 37.6225 19.7266 37.6225 22.3672C37.6225 25.4063 35.8412 28.2109 33.0223 29.3672V29.3594ZM13.0029 21.3594L9.75024 19.4375C9.47144 19.2813 9.35528 19.0391 9.35528 18.7188V9.92187C9.35528 5.64062 12.6079 2.39844 17.0068 2.39844C18.6718 2.39844 20.2207 2.96094 21.5295 3.96094L13.7154 8.52344C13.243 8.80469 13.0029 9.20312 13.0029 9.76562V21.3672V21.3594ZM20.0039 25.4375L15.3417 22.7969V17.1953L20.0039 14.5547L24.666 17.1953V22.7969L20.0039 25.4375ZM23.001 37.6016C21.3359 37.6016 19.787 37.0391 18.4782 36.0391L26.2924 31.4766C26.7648 31.1953 27.0048 30.7969 27.0048 30.2344V18.6328L30.2962 20.5547C30.575 20.7109 30.6912 20.9531 30.6912 21.2734V30.0703C30.6912 34.3516 27.3998 37.5938 23.001 37.5938V37.6016ZM13.5915 28.6797L6.02517 24.2813C3.84124 23 2.37754 20.2813 2.37754 17.6406C2.37754 14.5625 4.20523 11.7969 7.01646 10.6406V19.7578C7.01646 20.3203 7.25653 20.7188 7.72895 21L17.6418 26.7969L14.3892 28.6797C14.1104 28.8359 13.8703 28.8359 13.5992 28.6797H13.5915ZM13.1578 35.2422C8.67377 35.2422 5.38238 31.8438 5.38238 27.6406C5.38238 27.3203 5.4211 27 5.45983 26.6797L13.274 31.2422C13.7464 31.5234 14.2265 31.5234 14.6989 31.2422L24.6505 25.4453V29.2422C24.6505 29.5625 24.5344 29.8047 24.2556 29.9609L16.6815 34.3594C15.6515 34.9609 14.4201 35.2422 13.15 35.2422H13.1578ZM22.9932 40C27.7948 40 31.7986 36.5625 32.7047 32C37.1423 30.8359 40 26.6406 40 22.3594C40 19.5625 38.8074 16.8359 36.6699 14.8828C36.8713 14.0391 36.9874 13.2031 36.9874 12.3594C36.9874 6.64063 32.3872 2.35937 27.0745 2.35937C26.0058 2.35937 24.9758 2.51563 23.9458 2.88281C22.1646 1.125 19.7018 0 17.0068 0C12.2052 0 8.20135 3.4375 7.29526 8C2.8577 9.15625 0 13.3594 0 17.6406C0 20.4375 1.19264 23.1641 3.33011 25.1172C3.12875 25.9609 3.01258 26.7969 3.01258 27.6406C3.01258 33.3594 7.61278 37.6406 12.9255 37.6406C13.9942 37.6406 15.0242 37.4844 16.0542 37.1172C17.8354 38.875 20.2982 40 22.9932 40Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M384 144c8.8 0 16 7.2 16 16l0 192c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-192c0-8.8 7.2-16 16-16l32 0zM352 96c-35.3 0-64 28.7-64 64l0 192c0 35.3 28.7 64 64 64l32 0c35.3 0 64-28.7 64-64l0-72 104 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-104 0 0-72c0-35.3-28.7-64-64-64l-32 0zM0 256c0 13.3 10.7 24 24 24l216 0 0-48-216 0c-13.3 0-24 10.7-24 24z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M88 32c13.3 0 24 10.7 24 24S101.3 80 88 80c-22.1 0-40 17.9-40 40 0 13.3-10.7 24-24 24S0 133.3 0 120C0 71.4 39.4 32 88 32zM24 192c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24S0 309.3 0 296l0-80c0-13.3 10.7-24 24-24zm400 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24zm0-48c-13.3 0-24-10.7-24-24 0-22.1-17.9-40-40-40-13.3 0-24-10.7-24-24s10.7-24 24-24c48.6 0 88 39.4 88 88 0 13.3-10.7 24-24 24zm24 248c0 48.6-39.4 88-88 88-13.3 0-24-10.7-24-24s10.7-24 24-24c22.1 0 40-17.9 40-40 0-13.3 10.7-24 24-24s24 10.7 24 24zM48 392c0 22.1 17.9 40 40 40 13.3 0 24 10.7 24 24s-10.7 24-24 24c-48.6 0-88-39.4-88-88 0-13.3 10.7-24 24-24s24 10.7 24 24zm136 88c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0zM160 56c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="M48 416l0-256 152 0 0 272-136 0c-8.8 0-16-7.2-16-16zm200 16l0-272 152 0 0 256c0 8.8-7.2 16-16 16l-136 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"/>
|
|
3
|
+
</svg>
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GapScale } from '../../libs/types/layout-types';
|
|
3
3
|
import './flex-container.css';
|
|
4
4
|
type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
5
5
|
type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
6
6
|
type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
7
7
|
type FlexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
8
8
|
type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
9
|
-
type SpacingGapOptions = '5xs' | '4xs' | '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
10
|
-
type FlexGapOptions = GridGapOptions | 'minimal' | 'none' | SpacingGapOptions;
|
|
11
9
|
interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
|
|
12
10
|
/**
|
|
13
11
|
* Aligns content when there is extra space in the cross-axis.
|
|
@@ -34,9 +32,10 @@ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
34
32
|
*/
|
|
35
33
|
flexWrap?: FlexWrap;
|
|
36
34
|
/**
|
|
37
|
-
* Gap between items.
|
|
35
|
+
* Gap between items. Fixed at all breakpoints; set `mobileGap` to change it
|
|
36
|
+
* on small screens.
|
|
38
37
|
*/
|
|
39
|
-
gap?:
|
|
38
|
+
gap?: GapScale;
|
|
40
39
|
/**
|
|
41
40
|
* Alignment along the main axis.
|
|
42
41
|
*/
|
|
@@ -60,7 +59,7 @@ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
60
59
|
/**
|
|
61
60
|
* Gap between items on mobile. If not set, will default to the same value as `gap`.
|
|
62
61
|
*/
|
|
63
|
-
mobileGap?:
|
|
62
|
+
mobileGap?: GapScale;
|
|
64
63
|
/**
|
|
65
64
|
* Justify content for mobile. If not set, will default to the same value as `justifyContent`.
|
|
66
65
|
*/
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { GapScale } from '../../libs/types/layout-types';
|
|
3
|
+
import './grid.css';
|
|
4
|
+
type GridStackBreakpoint = 's' | 'm' | 'l' | 'xl';
|
|
5
|
+
/**
|
|
6
|
+
* Prop types for Grid
|
|
7
|
+
*/
|
|
8
|
+
export interface GridProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
|
+
/**
|
|
10
|
+
* Make the grid an inline-size query container (`container-type: inline-size`,
|
|
11
|
+
* named `pds-grid`) so its items can respond to the grid's own width with
|
|
12
|
+
* `@container pds-grid (…)` rules instead of the viewport. Use when the
|
|
13
|
+
* available width is decoupled from the viewport (e.g. beside a collapsible
|
|
14
|
+
* sidebar). The restack rule is authored per-layout — see the docs.
|
|
15
|
+
*/
|
|
16
|
+
asContainer?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Grid items — typically `GridItem` elements.
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Additional class names
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Opt in to dense packing (`grid-auto-flow: row dense`), which backfills gaps
|
|
27
|
+
* left by items with row or column spans instead of leaving holes — useful
|
|
28
|
+
* for bento layouts. Off by default because it can change the visual order.
|
|
29
|
+
*/
|
|
30
|
+
dense?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Gap between grid tracks, from the numbered spacing scale. Fixed at all
|
|
33
|
+
* breakpoints; set `mobileGap` to change it on small screens. Defaults to
|
|
34
|
+
* `xl` (24px).
|
|
35
|
+
*/
|
|
36
|
+
gap?: GapScale;
|
|
37
|
+
/**
|
|
38
|
+
* Gap on small (mobile) screens. If not set, uses the same value as `gap`.
|
|
39
|
+
*/
|
|
40
|
+
mobileGap?: GapScale;
|
|
41
|
+
/**
|
|
42
|
+
* Collapse the grid to a single column once its own width drops below this
|
|
43
|
+
* threshold, regardless of viewport — a curated scale (`s` 30rem, `m` 48rem,
|
|
44
|
+
* `l` 60rem, `xl` 75rem). Implies `asContainer`. For an off-scale threshold,
|
|
45
|
+
* use `asContainer` with your own `@container` rule instead.
|
|
46
|
+
*/
|
|
47
|
+
stackBelow?: GridStackBreakpoint;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Grid layout component — a typed wrapper over the `pds-grid` utility classes.
|
|
51
|
+
* A fluid grid that is 4 columns at small viewports and 12 at medium and up;
|
|
52
|
+
* place `GridItem` children and set their column spans per breakpoint.
|
|
53
|
+
*
|
|
54
|
+
* The underlying classes (`pds-grid`, `pds-grid--gap-*`, `pds-grid-item*`) can
|
|
55
|
+
* also be used directly without this component.
|
|
56
|
+
*/
|
|
57
|
+
export declare const Grid: ({ asContainer, children, className, dense, gap, mobileGap, stackBelow, ...props }: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './grid.css';
|
|
3
|
+
type GridSpanSm = 1 | 2 | 3 | 4;
|
|
4
|
+
type GridSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
5
|
+
type GridRowSpan = 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
|
+
/**
|
|
7
|
+
* Prop types for GridItem
|
|
8
|
+
*/
|
|
9
|
+
export interface GridItemProps extends ComponentPropsWithoutRef<'div'> {
|
|
10
|
+
/**
|
|
11
|
+
* Item content.
|
|
12
|
+
*/
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Additional class names
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Rows to span at large viewports (1–6). Falls back to the medium value.
|
|
20
|
+
*/
|
|
21
|
+
rowSpanLg?: GridRowSpan;
|
|
22
|
+
/**
|
|
23
|
+
* Rows to span at medium viewports (1–6). Falls back to a single row.
|
|
24
|
+
*/
|
|
25
|
+
rowSpanMd?: GridRowSpan;
|
|
26
|
+
/**
|
|
27
|
+
* Rows to span at small viewports (1–6). Falls back to a single row.
|
|
28
|
+
*/
|
|
29
|
+
rowSpanSm?: GridRowSpan;
|
|
30
|
+
/**
|
|
31
|
+
* Rows to span at extra-large viewports (1–6). Falls back to the large value.
|
|
32
|
+
*/
|
|
33
|
+
rowSpanXl?: GridRowSpan;
|
|
34
|
+
/**
|
|
35
|
+
* Columns to span at large viewports (1–12). Falls back to the medium value.
|
|
36
|
+
*/
|
|
37
|
+
spanLg?: GridSpan;
|
|
38
|
+
/**
|
|
39
|
+
* Columns to span at medium viewports (1–12). Falls back to full width.
|
|
40
|
+
*/
|
|
41
|
+
spanMd?: GridSpan;
|
|
42
|
+
/**
|
|
43
|
+
* Columns to span at small viewports (1–4). Falls back to full width.
|
|
44
|
+
*/
|
|
45
|
+
spanSm?: GridSpanSm;
|
|
46
|
+
/**
|
|
47
|
+
* Columns to span at extra-large viewports (1–12). Falls back to the large value.
|
|
48
|
+
*/
|
|
49
|
+
spanXl?: GridSpan;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* GridItem — a child of `Grid`. Sets the column span per breakpoint via the
|
|
53
|
+
* `pds-grid-item--{breakpoint}-{span}` utility classes. Missing breakpoints
|
|
54
|
+
* fall back to the full column width for that viewport.
|
|
55
|
+
*/
|
|
56
|
+
export declare const GridItem: ({ children, className, rowSpanLg, rowSpanMd, rowSpanSm, rowSpanXl, spanLg, spanMd, spanSm, spanXl, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
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": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.39",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -114,6 +114,9 @@
|
|
|
114
114
|
"@babel/preset-typescript": "^7.28.5",
|
|
115
115
|
"@csstools/postcss-design-tokens": "^2.0.4",
|
|
116
116
|
"@csstools/postcss-global-data": "^1.0.3",
|
|
117
|
+
"@fortawesome/free-brands-svg-icons": "^7.2.0",
|
|
118
|
+
"@fortawesome/pro-regular-svg-icons": "^7.2.0",
|
|
119
|
+
"@fortawesome/pro-solid-svg-icons": "^7.2.0",
|
|
117
120
|
"@playwright/test": "^1.60.0",
|
|
118
121
|
"@storybook/addon-a11y": "^10.4.0",
|
|
119
122
|
"@storybook/addon-docs": "^10.4.0",
|
|
@@ -178,7 +181,7 @@
|
|
|
178
181
|
"@dnd-kit/utilities": "^3.2.2",
|
|
179
182
|
"@floating-ui/react": "^0.24.3",
|
|
180
183
|
"@floating-ui/react-dom": "~1.3.0",
|
|
181
|
-
"@pantheon-systems/pds-design-tokens": "^2.0.0-alpha.
|
|
184
|
+
"@pantheon-systems/pds-design-tokens": "^2.0.0-alpha.57",
|
|
182
185
|
"@reactuses/core": "^5.0.15",
|
|
183
186
|
"date-fns": "^4.1.0",
|
|
184
187
|
"downshift": "^9.3.2",
|
|
@@ -198,11 +201,6 @@
|
|
|
198
201
|
"react-toastify": "^10.0.6",
|
|
199
202
|
"recharts": "^3.8.1"
|
|
200
203
|
},
|
|
201
|
-
"optionalDependencies": {
|
|
202
|
-
"@fortawesome/free-brands-svg-icons": "^7.2.0",
|
|
203
|
-
"@fortawesome/pro-regular-svg-icons": "^7.2.0",
|
|
204
|
-
"@fortawesome/pro-solid-svg-icons": "^7.2.0"
|
|
205
|
-
},
|
|
206
204
|
"overrides": {
|
|
207
205
|
"@babel/plugin-transform-modules-systemjs": "^7.29.4",
|
|
208
206
|
"fast-uri": "^3.1.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|