@pantheon-systems/pds-toolkit-react 1.0.0-dev.194 → 1.0.0-dev.195
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/buttons/SplitButton/SplitButton.d.ts +35 -34
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +4 -0
- package/_dist/css/component-css/pds-combobox.css +1 -1
- package/_dist/css/component-css/pds-dashboard-search.css +1 -1
- package/_dist/css/component-css/pds-dropdown-menu.css +1 -1
- package/_dist/css/component-css/pds-file-upload.css +1 -1
- package/_dist/css/component-css/pds-index.css +4 -4
- package/_dist/css/component-css/pds-select.css +1 -1
- package/_dist/css/component-css/pds-text-input.css +1 -1
- package/_dist/css/pds-components.css +4 -4
- package/_dist/css/pds-core.css +2 -2
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +1 -1
- package/_dist/index.js +1353 -1376
- package/_dist/index.js.map +1 -1
- package/_dist/libs/types/custom-types.d.ts +57 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { PDSIcon } from '@components/Icon/Icon';
|
|
2
3
|
export type BadgeColor = 'success' | 'critical' | 'info' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond';
|
|
3
4
|
export type ButtonDisplayType = 'label-only' | 'icon-start' | 'icon-end';
|
|
@@ -18,3 +19,59 @@ export type SiteStatus = 'active' | 'frozen';
|
|
|
18
19
|
export type SiteType = 'drupal' | 'wordpress' | 'gatsby' | 'nextjs';
|
|
19
20
|
export declare const SiteTypeLabel: Record<SiteType, string>;
|
|
20
21
|
export declare const SiteTypeIcon: Record<SiteType, PDSIcon>;
|
|
22
|
+
export type LinkItemType = {
|
|
23
|
+
/**
|
|
24
|
+
* Description of the item
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Is this item disabled?
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
33
|
+
*/
|
|
34
|
+
iconName?: PDSIcon;
|
|
35
|
+
/**
|
|
36
|
+
* Is the item a link?
|
|
37
|
+
*/
|
|
38
|
+
isLink: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The content of the link.
|
|
41
|
+
*/
|
|
42
|
+
linkContent?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Optional `data-testid` value for this item.
|
|
45
|
+
*/
|
|
46
|
+
testId?: string;
|
|
47
|
+
};
|
|
48
|
+
export type MenuItemType = {
|
|
49
|
+
/**
|
|
50
|
+
* (optional) Callback function to execute when menu item is activated
|
|
51
|
+
*/
|
|
52
|
+
callback?: () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Description of the item
|
|
55
|
+
*/
|
|
56
|
+
description?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Is this item disabled?
|
|
59
|
+
*/
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
63
|
+
*/
|
|
64
|
+
iconName?: PDSIcon;
|
|
65
|
+
/**
|
|
66
|
+
* Optional ID value for this item.
|
|
67
|
+
*/
|
|
68
|
+
id?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Label for a menu item
|
|
71
|
+
*/
|
|
72
|
+
label: string;
|
|
73
|
+
/**
|
|
74
|
+
* Optional `data-testid` value for this item.
|
|
75
|
+
*/
|
|
76
|
+
testId?: string;
|
|
77
|
+
};
|