@pantheon-systems/pds-toolkit-react 1.0.0-dev.208 → 1.0.0-dev.209
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/_dist/components/CTASlice/CTASlice.d.ts +6 -14
- package/_dist/components/Icon/Icon.d.ts +2 -4
- package/_dist/components/Pagination/Pagination.d.ts +54 -0
- package/_dist/components/Pagination/usePagination.d.ts +7 -0
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +1 -2
- package/_dist/css/component-css/pds-card-select-group.css +1 -1
- package/_dist/css/component-css/pds-card.css +1 -1
- package/_dist/css/component-css/pds-index.css +3 -3
- package/_dist/css/component-css/pds-input-utilities.css +1 -1
- package/_dist/css/component-css/pds-new-site-card.css +1 -1
- package/_dist/css/component-css/pds-pagination.css +1 -0
- package/_dist/css/component-css/pds-pricing-card.css +1 -1
- package/_dist/css/component-css/pds-select.css +1 -1
- package/_dist/css/component-css/pds-site-card.css +1 -1
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +2 -0
- package/_dist/css/pds-components.css +3 -3
- package/_dist/css/pds-core.css +1 -1
- package/_dist/css/pds-layouts.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +1 -1
- package/_dist/index.js +3131 -3400
- package/_dist/index.js.map +1 -1
- package/_dist/libs/components/utility-components.d.ts +4 -2
- package/_dist/mocks/data/pagination-items.d.ts +16 -0
- package/_dist/mocks/markup/dashboard-main-content.d.ts +1 -7
- package/package.json +2 -2
- package/_dist/components/Pager/AdvancedPagination.d.ts +0 -4
- package/_dist/components/Pager/BasicPagination.d.ts +0 -4
- package/_dist/components/Pager/MiniPagination.d.ts +0 -4
- package/_dist/components/Pager/NavigationButton.d.ts +0 -13
- package/_dist/components/Pager/Pager.d.ts +0 -24
- package/_dist/components/Pager/PagerContext.d.ts +0 -23
- package/_dist/components/Pager/PagerItem.d.ts +0 -14
- package/_dist/components/Pager/usePaginationUI.d.ts +0 -1
- package/_dist/css/component-css/pds-pager.css +0 -1
|
@@ -3,11 +3,13 @@ import { HeadingLevel } from '@libs/types/custom-types';
|
|
|
3
3
|
interface HxProps {
|
|
4
4
|
baseClass?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
|
|
6
|
+
id?: string;
|
|
7
7
|
level: HeadingLevel;
|
|
8
|
+
className?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const Hx: ({ baseClass, children, level, className, ...props }: HxProps) => React.DetailedReactHTMLElement<{
|
|
10
|
+
export declare const Hx: ({ baseClass, children, id, level, className, ...props }: HxProps) => React.DetailedReactHTMLElement<{
|
|
10
11
|
className: any;
|
|
12
|
+
id: string;
|
|
11
13
|
}, HTMLElement>;
|
|
12
14
|
export declare const extractText: (node: ReactNode) => string;
|
|
13
15
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const paginationItemsSites: {
|
|
2
|
+
sitename: string;
|
|
3
|
+
dateCreated: string;
|
|
4
|
+
user: string;
|
|
5
|
+
upstream: string;
|
|
6
|
+
plan: string;
|
|
7
|
+
status: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const paginationItemsUsers: {
|
|
10
|
+
id: number;
|
|
11
|
+
first_name: string;
|
|
12
|
+
last_name: string;
|
|
13
|
+
job_title: string;
|
|
14
|
+
email: string;
|
|
15
|
+
phone: string;
|
|
16
|
+
}[];
|
|
@@ -5,12 +5,6 @@ export declare const DemoDashboardInnerHeaderLeft: ({ slot: _slot, }: {
|
|
|
5
5
|
export declare const DemoDashboardInnerHeaderRight: ({ slot: _slot, }: {
|
|
6
6
|
slot?: string;
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
|
-
export declare const
|
|
9
|
-
slot?: string;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
export declare const DemoDashboardInnerSidebar: ({ slot: _slot, }: {
|
|
12
|
-
slot?: string;
|
|
13
|
-
}) => React.JSX.Element;
|
|
14
|
-
export declare const DemoDashboardMainContent: ({ slot: _slot, }: {
|
|
8
|
+
export declare const DemoDashboardContent: ({ slot: _slot }: {
|
|
15
9
|
slot?: string;
|
|
16
10
|
}) => React.JSX.Element;
|
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.
|
|
4
|
+
"version": "1.0.0-dev.209",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"dependencies": {
|
|
136
136
|
"@floating-ui/react": "^0.24.3",
|
|
137
137
|
"@floating-ui/react-dom": "~1.3.0",
|
|
138
|
-
"@pantheon-systems/pds-design-tokens": "^1.0.0-dev.
|
|
138
|
+
"@pantheon-systems/pds-design-tokens": "^1.0.0-dev.147",
|
|
139
139
|
"@reactuses/core": "^5.0.15",
|
|
140
140
|
"focus-trap-react": "^10.2.1",
|
|
141
141
|
"hash-sum": "^2.0.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export function NavigationButton({ arrowText, direction, ...props }: {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
arrowText?: any;
|
|
4
|
-
direction: any;
|
|
5
|
-
}): React.JSX.Element;
|
|
6
|
-
export namespace NavigationButton {
|
|
7
|
-
namespace propTypes {
|
|
8
|
-
let arrowText: PropTypes.Requireable<string>;
|
|
9
|
-
let direction: PropTypes.Requireable<string>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import PropTypes from 'prop-types';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export function Pager({ buttonCallback, headingId, pages, paginationItemClickHandler, render, type, ...props }: {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
buttonCallback?: any;
|
|
4
|
-
headingId?: string;
|
|
5
|
-
pages: any;
|
|
6
|
-
paginationItemClickHandler?: any;
|
|
7
|
-
render?: any;
|
|
8
|
-
type?: string;
|
|
9
|
-
}): React.JSX.Element;
|
|
10
|
-
export namespace Pager {
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
let buttonCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
let headingId: PropTypes.Requireable<string>;
|
|
14
|
-
let pages: PropTypes.Validator<PropTypes.InferProps<{
|
|
15
|
-
href: PropTypes.Requireable<string>;
|
|
16
|
-
}>[]>;
|
|
17
|
-
let paginationItemClickHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
let render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
let type: PropTypes.Requireable<string>;
|
|
20
|
-
let className: PropTypes.Requireable<string>;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
import React from 'react';
|
|
24
|
-
import PropTypes from 'prop-types';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export const PagerContext: React.Context<{}>;
|
|
2
|
-
export function ContextProvider({ pages, render, paginationItemClickHandler, headingId, buttonCallback, children, }: {
|
|
3
|
-
pages: any;
|
|
4
|
-
render?: any;
|
|
5
|
-
paginationItemClickHandler?: any;
|
|
6
|
-
headingId?: string;
|
|
7
|
-
buttonCallback?: any;
|
|
8
|
-
children: any;
|
|
9
|
-
}): React.JSX.Element;
|
|
10
|
-
export namespace ContextProvider {
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
13
|
-
let render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
-
let paginationItemClickHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
let buttonCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
-
let pages: PropTypes.Validator<PropTypes.InferProps<{
|
|
17
|
-
link: PropTypes.Requireable<string>;
|
|
18
|
-
}>[]>;
|
|
19
|
-
let headingId: PropTypes.Requireable<string>;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
import React from 'react';
|
|
23
|
-
import PropTypes from 'prop-types';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function PagerItem({ index, page, ...props }: {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
index: any;
|
|
4
|
-
page: any;
|
|
5
|
-
}): React.JSX.Element;
|
|
6
|
-
export namespace PagerItem {
|
|
7
|
-
namespace propTypes {
|
|
8
|
-
let index: PropTypes.Validator<number>;
|
|
9
|
-
let page: PropTypes.Validator<NonNullable<NonNullable<string | object>>>;
|
|
10
|
-
let render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import PropTypes from 'prop-types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function usePaginationUI(pages: any, currentPages: any, setCurrentPages: any, currentKey: any, itemLength: any, pageDirection: any): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.pds-pager__items{column-gap:.41rem;font-family:Poppins,sans-serif;font-weight:600;list-style-type:none}.pds-pager__items,.pds-pager__items a{align-items:center;color:var(--pds-color-foreground-default);display:flex;justify-content:center}.pds-pager__items a{border-radius:.1875rem;line-height:1;min-width:1.953rem;padding:.512rem 0;text-decoration:none;transition:all .2s ease-in-out 0s}.pds-pager__items a:active,.pds-pager__items a:hover{background-color:var(--pds-color-interactive-background-hover);color:var(--pds-color-interactive-link-hover);outline:none;text-decoration:none}.pds-pager__items a:active{background-color:#e2dff5;color:var(--pds-color-interactive-link-hover)}.pds-pager__items a:focus{outline:0}.pds-pager__items a:focus-visible{outline:.125rem solid var(--pds-color-interactive-focus)}.pds-pager__items option,.pds-pager__items select{font-size:.833rem}.pds-pager__mini .pds-pager__items{justify-content:inherit}.pds-pager__mini .pds-select label{display:none}.pds-pager__mini .pds-select-input{height:32px;line-height:1.2rem!important}.pds-pager__mini .pds-select-input span{font-size:.833rem;font-weight:400;text-overflow:clip!important}.pds-pager__mini ul [role=listbox] li{font-weight:400}@media (--breakpoint-s ){.pds-pager__item--first,.pds-pager__item--last{display:none}}.pds-pager__item--first a,.pds-pager__item--last a{padding-inline:.41rem}.pds-pager__item--navigation-text a{font-size:.833rem;padding:.512rem .64rem}.pds-pager__item--navigation-text-left svg{margin-inline-end:.512rem}.pds-pager__item--navigation-text-right svg{margin-inline-start:.512rem}.pds-pager__items-advanced,.pds-pager__items-mini{font-weight:400}.pds-pager__item,.pds-pager__item--navigation{cursor:pointer}.pds-pager__item button{background-color:transparent;border:none;font-weight:600;padding:0}.pds-pager__icon{height:1rem}.pds-pager__item--active a,.pds-pager__item--active a:hover{background-color:var(--pds-color-interactive-background-active);color:#e2dff5}
|