@pantheon-systems/pds-toolkit-react 2.0.0-alpha.12 → 2.0.0-alpha.13
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/ThemeSwitcher/ThemeSwitcher.d.ts +14 -8
- package/dist/components/icons/Icon/generated-icon-data.d.ts +9 -2
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +15 -1
- package/dist/components/notifications/Toaster/Toast.d.ts +12 -1
- package/dist/components/notifications/Toaster/Toaster.d.ts +16 -7
- package/dist/components/notifications/Toaster/useToast.d.ts +2 -0
- package/dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +1 -2
- package/dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +1 -2
- package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +3 -4
- package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +2 -3
- package/dist/css/component-css/pds-dropdown.css +1 -1
- package/dist/css/component-css/pds-expansion-panel.css +1 -1
- package/dist/css/component-css/pds-index.css +5 -5
- package/dist/css/component-css/pds-nav-menu.css +1 -1
- package/dist/css/component-css/pds-progress-bar.css +1 -1
- package/dist/css/component-css/pds-progress-ring.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/component-css/pds-theme-switcher.css +1 -1
- package/dist/css/component-css/pds-toaster.css +1 -1
- package/dist/css/component-css/pds-user-menu.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +1 -1
- package/dist/css/pds-components.css +5 -5
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2991 -2556
- package/dist/index.js.map +1 -1
- package/dist/libs/types/custom-types.d.ts +8 -0
- package/dist/libs/types/navigation-types.d.ts +1 -1
- package/dist/svg/pause.svg +3 -0
- package/package.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './theme-switcher.css';
|
|
3
|
+
type Theme = 'light' | 'dark' | 'system';
|
|
3
4
|
/**
|
|
4
5
|
* Prop types for ThemeSwitcher
|
|
5
6
|
*/
|
|
@@ -9,24 +10,29 @@ export interface ThemeSwitcherProps extends Omit<ComponentPropsWithoutRef<'div'>
|
|
|
9
10
|
*/
|
|
10
11
|
className?: string;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* ID for the menu button. Must be unique if multiple ThemeSwitchers are rendered.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The current theme
|
|
17
|
-
*/
|
|
18
|
-
theme?: 'light' | 'dark' | 'system';
|
|
15
|
+
id?: string;
|
|
19
16
|
/**
|
|
20
17
|
* Translation strings for theme options
|
|
21
18
|
*/
|
|
22
|
-
|
|
19
|
+
labelStrings?: {
|
|
23
20
|
dark: string;
|
|
24
21
|
light: string;
|
|
25
22
|
system: string;
|
|
26
23
|
tooltip?: string;
|
|
27
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Callback triggered when the theme changes
|
|
27
|
+
*/
|
|
28
|
+
onChange?: (theme: Theme) => void;
|
|
29
|
+
/**
|
|
30
|
+
* The current theme
|
|
31
|
+
*/
|
|
32
|
+
theme?: Theme;
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
35
|
* ThemeSwitcher UI component
|
|
31
36
|
*/
|
|
32
|
-
export declare const ThemeSwitcher: ({ className, onChange, theme,
|
|
37
|
+
export declare const ThemeSwitcher: ({ className, id, labelStrings, onChange, theme, ...props }: ThemeSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated by: npm run generate:icon-data
|
|
5
5
|
* Source: icon-registry.ts + Font Awesome packages + custom-icons.tsx
|
|
6
|
-
* Generated: 2026-04-
|
|
6
|
+
* Generated: 2026-04-23T17:57:23.894Z
|
|
7
7
|
*/
|
|
8
8
|
import { customIcons } from './custom-icons';
|
|
9
9
|
export { customIcons };
|
|
@@ -953,6 +953,13 @@ export declare const iconData: {
|
|
|
953
953
|
readonly svgPathData: "M290.5 287.7L491.4 86.9 359 456.3 290.5 287.7zM457.4 53L256.6 253.8 88 185.3 457.4 53zM38.1 216.8l205.8 83.6 83.6 205.8c5.3 13.1 18.1 21.7 32.3 21.7 14.7 0 27.8-9.2 32.8-23.1L570.6 8c3.5-9.8 1-20.6-6.3-28s-18.2-9.8-28-6.3L39.4 151.7c-13.9 5-23.1 18.1-23.1 32.8 0 14.2 8.6 27 21.7 32.3z";
|
|
954
954
|
readonly width: 576;
|
|
955
955
|
};
|
|
956
|
+
readonly pause: {
|
|
957
|
+
readonly aliases: readonly ["stop", "hold"];
|
|
958
|
+
readonly categories: readonly ["actions", "media"];
|
|
959
|
+
readonly height: 512;
|
|
960
|
+
readonly svgPathData: "M48 80l0 352 64 0 0-352-64 0zM0 80C0 53.5 21.5 32 48 32l64 0c26.5 0 48 21.5 48 48l0 352c0 26.5-21.5 48-48 48l-64 0c-26.5 0-48-21.5-48-48L0 80zm272 0l0 352 64 0 0-352-64 0zm-48 0c0-26.5 21.5-48 48-48l64 0c26.5 0 48 21.5 48 48l0 352c0 26.5-21.5 48-48 48l-64 0c-26.5 0-48-21.5-48-48l0-352z";
|
|
961
|
+
readonly width: 384;
|
|
962
|
+
};
|
|
956
963
|
readonly pen: {
|
|
957
964
|
readonly aliases: readonly ["edit", "write", "modify"];
|
|
958
965
|
readonly categories: readonly ["actions"];
|
|
@@ -1423,7 +1430,7 @@ export declare const iconData: {
|
|
|
1423
1430
|
readonly width: 576;
|
|
1424
1431
|
};
|
|
1425
1432
|
};
|
|
1426
|
-
export declare const iconList: readonly ["angleDown", "angleLeft", "angleRight", "anglesLeft", "anglesRight", "angleUp", "arrowDownToLine", "arrowLeft", "arrowRight", "arrowsRetweet", "asterisk", "banBug", "bars", "barsFilter", "bell", "billboard", "bitbucket", "bluesky", "bolt", "boltPantheon", "boltSolid", "book", "books", "bracketRight", "bracketsSquare", "brainCircuit", "broomWide", "building", "buildings", "bullhorn", "calendarDays", "caretDown", "caretLeft", "caretRight", "caretUp", "ccAmex", "ccApplePay", "ccDiscover", "ccGeneric", "ccMC", "ccPaypal", "ccVisa", "chartLine", "chartNetwork", "chartSimple", "check", "circle", "circleCheck", "circleExclamation", "circleInfo", "circleMinus", "circleNotch", "circlePlus", "circleQuestion", "circleUser", "circleXmark", "cloud", "cloudArrowDown", "cloudArrowUp", "cloudPlus", "code", "codeBranch", "codeMerge", "command", "comment", "copy", "desktop", "diamondExclamation", "diamonds4", "discourse", "display", "dollarSign", "download", "drupal", "ellipsis", "ellipsisVertical", "emptySet", "envelope", "envelopeOpen", "exclamation", "expand", "expandFromCenter", "externalLink", "eye", "eyeSlash", "facebook", "file", "fileCheck", "fileContract", "fileCSV", "fileDiff", "fileExport", "fileImport", "fileLines", "filePDF", "fileZip", "folder", "folderTree", "gear", "gem", "github", "gitlab", "globe", "graduationCap", "grid", "gripDots", "gripDotsVertical", "heart", "heartSolid", "house", "idCard", "image", "inputText", "instagram", "keySkeleton", "laptop", "laptopCode", "leaf", "lifeRing", "linkedin", "linkSimple", "linkSimpleSlash", "listCheck", "locationCrosshairs", "lock", "lockOpen", "magnifyingGlass", "medal", "memo", "messages", "minus", "moon", "nextJs", "paperclip", "paperPlane", "pen", "penField", "phone", "play", "plus", "question", "quotesLeft", "quotesRight", "rectangleList", "reply", "robot", "rocketLaunch", "rotate", "rotateClock", "rotateLeft", "rotateRight", "rss", "save", "server", "shareNodes", "shield", "shieldQuartered", "shovel", "siren", "sirenOn", "sitemap", "slack", "slashForward", "slidersSimple", "snowflake", "sparkles", "squareCheck", "squareCode", "squareMinus", "squarePen", "squareQuestion", "squareTerminal", "star", "starSolid", "sun", "sunBright", "table", "tableRows", "terminal", "text", "threads", "thumbsDown", "thumbsUp", "trash", "triangleExclamation", "twitter", "upload", "user", "userAstronaut", "userGear", "userPlus", "users", "video", "wavePulse", "windowRestore", "wordpress", "wreathLaurel", "wrench", "xmark", "xmarkLarge", "xTwitter", "youtube"];
|
|
1433
|
+
export declare const iconList: readonly ["angleDown", "angleLeft", "angleRight", "anglesLeft", "anglesRight", "angleUp", "arrowDownToLine", "arrowLeft", "arrowRight", "arrowsRetweet", "asterisk", "banBug", "bars", "barsFilter", "bell", "billboard", "bitbucket", "bluesky", "bolt", "boltPantheon", "boltSolid", "book", "books", "bracketRight", "bracketsSquare", "brainCircuit", "broomWide", "building", "buildings", "bullhorn", "calendarDays", "caretDown", "caretLeft", "caretRight", "caretUp", "ccAmex", "ccApplePay", "ccDiscover", "ccGeneric", "ccMC", "ccPaypal", "ccVisa", "chartLine", "chartNetwork", "chartSimple", "check", "circle", "circleCheck", "circleExclamation", "circleInfo", "circleMinus", "circleNotch", "circlePlus", "circleQuestion", "circleUser", "circleXmark", "cloud", "cloudArrowDown", "cloudArrowUp", "cloudPlus", "code", "codeBranch", "codeMerge", "command", "comment", "copy", "desktop", "diamondExclamation", "diamonds4", "discourse", "display", "dollarSign", "download", "drupal", "ellipsis", "ellipsisVertical", "emptySet", "envelope", "envelopeOpen", "exclamation", "expand", "expandFromCenter", "externalLink", "eye", "eyeSlash", "facebook", "file", "fileCheck", "fileContract", "fileCSV", "fileDiff", "fileExport", "fileImport", "fileLines", "filePDF", "fileZip", "folder", "folderTree", "gear", "gem", "github", "gitlab", "globe", "graduationCap", "grid", "gripDots", "gripDotsVertical", "heart", "heartSolid", "house", "idCard", "image", "inputText", "instagram", "keySkeleton", "laptop", "laptopCode", "leaf", "lifeRing", "linkedin", "linkSimple", "linkSimpleSlash", "listCheck", "locationCrosshairs", "lock", "lockOpen", "magnifyingGlass", "medal", "memo", "messages", "minus", "moon", "nextJs", "paperclip", "paperPlane", "pause", "pen", "penField", "phone", "play", "plus", "question", "quotesLeft", "quotesRight", "rectangleList", "reply", "robot", "rocketLaunch", "rotate", "rotateClock", "rotateLeft", "rotateRight", "rss", "save", "server", "shareNodes", "shield", "shieldQuartered", "shovel", "siren", "sirenOn", "sitemap", "slack", "slashForward", "slidersSimple", "snowflake", "sparkles", "squareCheck", "squareCode", "squareMinus", "squarePen", "squareQuestion", "squareTerminal", "star", "starSolid", "sun", "sunBright", "table", "tableRows", "terminal", "text", "threads", "thumbsDown", "thumbsUp", "trash", "triangleExclamation", "twitter", "upload", "user", "userAstronaut", "userGear", "userPlus", "users", "video", "wavePulse", "windowRestore", "wordpress", "wreathLaurel", "wrench", "xmark", "xmarkLarge", "xTwitter", "youtube"];
|
|
1427
1434
|
export type PDSIconName = (typeof iconList)[number];
|
|
1428
1435
|
export declare const categoryList: readonly ["actions", "arrows", "brands", "communication", "custom", "data", "development", "documents", "financial", "media", "navigation", "objects", "security", "status", "users"];
|
|
1429
1436
|
export type IconCategory = (typeof categoryList)[number];
|
|
@@ -5,6 +5,7 @@ import 'react-day-picker/dist/style.css';
|
|
|
5
5
|
import './datepicker.css';
|
|
6
6
|
type PresetType = 'today' | 'current-week' | 'current-month' | 'last-week' | 'last-month';
|
|
7
7
|
export interface CustomPresetConfig {
|
|
8
|
+
active?: boolean;
|
|
8
9
|
custom?: () => DateRange;
|
|
9
10
|
days?: number;
|
|
10
11
|
label: string;
|
|
@@ -56,10 +57,23 @@ export interface DatepickerProps extends DatepickerHTMLProps {
|
|
|
56
57
|
* Locale from date-fns for internationalization.
|
|
57
58
|
*/
|
|
58
59
|
locale?: Locale;
|
|
60
|
+
/**
|
|
61
|
+
* Maximum selectable date.
|
|
62
|
+
*/
|
|
63
|
+
maxDate?: Date;
|
|
64
|
+
/**
|
|
65
|
+
* Minimum selectable date.
|
|
66
|
+
*/
|
|
67
|
+
minDate?: Date;
|
|
59
68
|
/**
|
|
60
69
|
* onChange handler
|
|
61
70
|
*/
|
|
62
71
|
onChange?: (value: DateRange | Date | undefined) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Callback fired once on mount when an active preset is applied.
|
|
74
|
+
* Only fires if no initial value is provided and a preset has active: true.
|
|
75
|
+
*/
|
|
76
|
+
onInitialize?: (value: DateRange | Date | undefined) => void;
|
|
63
77
|
/**
|
|
64
78
|
* Placeholder text for the trigger button.
|
|
65
79
|
*/
|
|
@@ -92,5 +106,5 @@ export interface DatepickerProps extends DatepickerHTMLProps {
|
|
|
92
106
|
/**
|
|
93
107
|
* Datepicker UI component.
|
|
94
108
|
*/
|
|
95
|
-
export declare const Datepicker: ({ className, disabled, hasDateRange, id, inputWidth, label, locale, onChange, placeholder, presets, required, showLabel, tooltipText, translationStrings, value, ...props }: DatepickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
export declare const Datepicker: ({ className, disabled, hasDateRange, id, inputWidth, label, locale, maxDate, minDate, onChange, onInitialize, placeholder, presets, required, showLabel, tooltipText, translationStrings, value, ...props }: DatepickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
96
110
|
export {};
|
|
@@ -18,6 +18,12 @@ declare const defaultTypeLabels: {
|
|
|
18
18
|
* Prop types for Toast
|
|
19
19
|
*/
|
|
20
20
|
interface ToastProps extends ComponentPropsWithoutRef<'div'> {
|
|
21
|
+
/**
|
|
22
|
+
* Duration in milliseconds before the toast auto-dismisses. When set, shows
|
|
23
|
+
* a progress bar and pause button. Populated automatically by useToast —
|
|
24
|
+
* consumers do not need to set this.
|
|
25
|
+
*/
|
|
26
|
+
autoCloseDuration?: number;
|
|
21
27
|
/**
|
|
22
28
|
* Toast message content.
|
|
23
29
|
*/
|
|
@@ -30,6 +36,11 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
30
36
|
* ID of individual toast.
|
|
31
37
|
*/
|
|
32
38
|
id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* React-Toastify toast ID, used to control the pause/resume timer.
|
|
41
|
+
* Populated automatically by useToast — consumers do not need to set this.
|
|
42
|
+
*/
|
|
43
|
+
toastId?: string | number;
|
|
33
44
|
/**
|
|
34
45
|
* Type of toast to show.
|
|
35
46
|
*/
|
|
@@ -42,5 +53,5 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
42
53
|
/**
|
|
43
54
|
* Toast UI component
|
|
44
55
|
*/
|
|
45
|
-
export declare const Toast: ({ children, className, id, type, typeLabels, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare const Toast: ({ autoCloseDuration, children, className, id, toastId, type, typeLabels, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
57
|
export {};
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import 'react-toastify/dist/ReactToastify.css';
|
|
3
3
|
import './toaster.css';
|
|
4
|
+
export declare const MIN_AUTO_CLOSE_DURATION = 30000;
|
|
5
|
+
type PauseResumeLabels = {
|
|
6
|
+
pause: string;
|
|
7
|
+
resume: string;
|
|
8
|
+
};
|
|
9
|
+
export interface ToasterContextValue {
|
|
10
|
+
labelStrings: PauseResumeLabels;
|
|
11
|
+
}
|
|
12
|
+
export declare const ToasterContext: React.Context<ToasterContextValue>;
|
|
4
13
|
/**
|
|
5
|
-
* Prop types for
|
|
14
|
+
* Prop types for Toaster
|
|
6
15
|
*/
|
|
7
16
|
interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* Duration in milliseconds before the toast will auto-close. Set to `false` to disable auto-close (default).
|
|
10
|
-
*/
|
|
11
|
-
autoCloseDuration?: number | false;
|
|
12
17
|
/**
|
|
13
18
|
* Additional class names
|
|
14
19
|
*/
|
|
15
20
|
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Label strings for the pause and resume buttons. Provide translation strings if needed.
|
|
23
|
+
*/
|
|
24
|
+
labelStrings?: PauseResumeLabels;
|
|
16
25
|
/**
|
|
17
26
|
* Maximum number of toasts that can be displayed at once.
|
|
18
27
|
*/
|
|
@@ -25,5 +34,5 @@ interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
25
34
|
/**
|
|
26
35
|
* Toaster UI component
|
|
27
36
|
*/
|
|
28
|
-
export declare const Toaster: ({
|
|
37
|
+
export declare const Toaster: ({ className, labelStrings, limit, position, }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
38
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { cssTransition, toast as toastApi, ToastOptions } from 'react-toastify';
|
|
3
|
+
import { MIN_AUTO_CLOSE_DURATION } from './Toaster';
|
|
4
|
+
export { MIN_AUTO_CLOSE_DURATION };
|
|
3
5
|
export declare enum ToastType {
|
|
4
6
|
Critical = "critical",
|
|
5
7
|
Info = "info",
|
|
@@ -3,7 +3,7 @@ import './expansion-panel.css';
|
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for ExpansionPanel
|
|
5
5
|
*/
|
|
6
|
-
interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
export interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
7
|
/**
|
|
8
8
|
* The content of the expansion panel.
|
|
9
9
|
*/
|
|
@@ -33,4 +33,3 @@ interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
33
33
|
* ExpansionPanel UI component
|
|
34
34
|
*/
|
|
35
35
|
export declare const ExpansionPanel: ({ children, className, id, isOpen, showBorder, summary, ...props }: ExpansionPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export {};
|
|
@@ -3,7 +3,7 @@ import './expansion-panel-group.css';
|
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for ExpansionPanelGroup
|
|
5
5
|
*/
|
|
6
|
-
interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
export interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
7
|
/**
|
|
8
8
|
* The content of the expansion panel group. This should be a series of ExpansionPanel components.
|
|
9
9
|
*/
|
|
@@ -21,4 +21,3 @@ interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
21
21
|
* ExpansionPanelGroup UI component
|
|
22
22
|
*/
|
|
23
23
|
export declare const ExpansionPanelGroup: ({ children, className, displayType, ...props }: ExpansionPanelGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { StatusType } from '../../../libs/types/custom-types';
|
|
3
3
|
import './progress-bar.css';
|
|
4
|
-
interface ProgressBarBreakpoint {
|
|
4
|
+
export interface ProgressBarBreakpoint {
|
|
5
5
|
colorType: Exclude<StatusType, 'discovery'> | 'neutral';
|
|
6
6
|
percentage: number;
|
|
7
7
|
}
|
|
8
|
-
interface ProgressBarProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
export interface ProgressBarProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
9
|
/**
|
|
10
10
|
* Additional class names
|
|
11
11
|
*/
|
|
@@ -45,10 +45,9 @@ interface ProgressBarProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
45
45
|
/**
|
|
46
46
|
* Size of the progress bar.
|
|
47
47
|
*/
|
|
48
|
-
size?: '
|
|
48
|
+
size?: 's' | 'm' | 'l';
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* ProgressBar UI component
|
|
52
52
|
*/
|
|
53
53
|
export declare const ProgressBar: ({ className, colorBreakpoints, id, label, message, messagePosition, percentage, showLabel, showPercentage, size, ...props }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './progress-ring.css';
|
|
3
|
-
interface ProgressRingProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
export interface ProgressRingProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
4
|
/**
|
|
5
5
|
* Additional class names
|
|
6
6
|
*/
|
|
@@ -32,10 +32,9 @@ interface ProgressRingProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
32
32
|
/**
|
|
33
33
|
* Size of the progress ring.
|
|
34
34
|
*/
|
|
35
|
-
size?: '
|
|
35
|
+
size?: 's' | 'm' | 'l';
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* ProgressRing UI component
|
|
39
39
|
*/
|
|
40
40
|
export declare const ProgressRing: ({ className, id, innerLabel, label, percentage, showLabel, showPercentage, size, ...props }: ProgressRingProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.pds-dropdown{position:relative}.pds-dropdown--inline{display:inline-block}.pds-dropdown__trigger{align-items:center;background:transparent;border:none;border-radius:var(--pds-border-radius-container);color:inherit;cursor:pointer;display:inline-flex;font-family:inherit;gap:var(--pds-spacing-3xs);padding:var(--pds-spacing-3xs) var(--pds-spacing-2xs);transition:background-color .15s ease}.pds-dropdown__trigger:hover{background-color:var(--pds-color-interactive-background-hover)}.pds-dropdown__trigger:focus-visible{outline:var(--pds-border-width-default) solid var(--pds-color-interactive-focus);outline-offset:1px}.pds-dropdown__trigger-icon{color:var(--pds-color-fg-default-secondary);transition:var(--pds-animation-transition-rotation)}.pds-dropdown__trigger[aria-expanded=true] .pds-dropdown__trigger-icon{transform:rotate(180deg)}.pds-dropdown__panel{background-color:var(--pds-color-dropdown-background);
|
|
1
|
+
.pds-dropdown{position:relative}.pds-dropdown--inline{display:inline-block}.pds-dropdown__trigger{align-items:center;background:transparent;border:none;border-radius:var(--pds-border-radius-container);color:inherit;cursor:pointer;display:inline-flex;font-family:inherit;gap:var(--pds-spacing-3xs);padding:var(--pds-spacing-3xs) var(--pds-spacing-2xs);transition:background-color .15s ease}.pds-dropdown__trigger:hover{background-color:var(--pds-color-interactive-background-hover)}.pds-dropdown__trigger:focus-visible{outline:var(--pds-border-width-default) solid var(--pds-color-interactive-focus);outline-offset:1px}.pds-dropdown__trigger-icon{color:var(--pds-color-fg-default-secondary);transition:var(--pds-animation-transition-rotation)}.pds-dropdown__trigger[aria-expanded=true] .pds-dropdown__trigger-icon{transform:rotate(180deg)}.pds-dropdown__panel{background-color:var(--pds-color-dropdown-background);box-shadow:var(--pds-elevation-overlay);flex-direction:column;margin:0;min-width:10rem;overflow-y:auto;padding:var(--pds-spacing-3xs);z-index:var(--pds-z-index-dropdown)}.pds-dropdown__item,.pds-dropdown__panel{border-radius:var(--pds-border-radius-container);display:flex;list-style:none;outline:none}.pds-dropdown__item{align-items:center;color:var(--pds-color-dropdown-foreground);cursor:pointer;gap:var(--pds-spacing-xs);justify-content:space-between;margin-block-end:var(--pds-spacing-3xs);padding-block:var(--pds-spacing-3xs);padding-inline:var(--pds-spacing-s)}.pds-dropdown__item:last-child{margin-block-end:0}.pds-dropdown__item:focus-visible:not(:hover){outline:var(--pds-border-width-default) solid var(--pds-color-interactive-focus);outline-offset:-1px}.pds-dropdown__item--focused,.pds-dropdown__item:hover{background-color:var(--pds-color-dropdown-item-background-hover)}.pds-dropdown__item:active{background-color:var(--pds-color-dropdown-item-background-active)}.pds-dropdown__selected-icon{align-self:center;color:var(--pds-color-status-success-foreground);display:flex;flex-shrink:0;height:.875em;width:.875em}.pds-dropdown__item--critical{color:var(--pds-color-status-critical-foreground)}.pds-dropdown__item--critical.pds-dropdown__item--focused,.pds-dropdown__item--critical:hover{background-color:var(--pds-color-status-critical-background)}.pds-dropdown__item--disabled{cursor:not-allowed;opacity:.5;pointer-events:none}.pds-dropdown__item-content{align-items:center;display:flex;gap:var(--pds-spacing-xs)}.pds-dropdown__item-icon{display:flex;flex-shrink:0}.pds-dropdown__item-label{display:flex;flex-direction:column}.pds-dropdown__item-description{color:var(--pds-color-fg-default-secondary);font-size:var(--pds-typography-size-xs);line-height:var(--pds-typography-lh-s);margin-block-start:var(--pds-spacing-4xs)}.pds-dropdown__item-trailing{display:flex;flex-shrink:0}.pds-dropdown__heading{color:var(--pds-color-dropdown-heading);font-size:var(--pds-typography-size-xs);font-weight:var(--pds-typography-fw-semibold);line-height:var(--pds-typography-lh-s);list-style:none;padding:var(--pds-spacing-m) var(--pds-spacing-s) var(--pds-spacing-4xs)}.pds-dropdown__panel>.pds-dropdown__heading:first-child,.pds-dropdown__panel>:first-child>.pds-dropdown__heading:first-child{padding-block-start:var(--pds-spacing-4xs)}.pds-dropdown__separator{border-block-end:var(--pds-border-width-default) solid var(--pds-color-border-default);list-style:none;margin-block-end:var(--pds-spacing-3xs);margin-block-start:0;margin-inline:calc(var(--pds-spacing-3xs)*-1)}.pds-dropdown__filter{list-style:none;padding:0}.pds-dropdown__filter-wrapper{align-items:center;display:flex;position:relative}.pds-dropdown__filter-icon{color:var(--pds-color-fg-default-secondary);left:var(--pds-spacing-s);pointer-events:none;position:absolute}.pds-dropdown__filter-wrapper:has(.pds-dropdown__filter-icon)
|
|
2
2
|
.pds-dropdown__filter-input{padding-inline-start:calc(var(--pds-spacing-s) + var(--pds-spacing-xl))}.pds-dropdown__filter-input{background-color:transparent;border:none;border-block-end:var(--pds-border-width-default) solid var(--pds-color-border-separator);border-radius:0;box-sizing:border-box;color:var(--pds-color-fg-default);font-family:inherit;font-size:var(--pds-typography-size-s);padding:var(--pds-spacing-xs) var(--pds-spacing-s);width:100%}.pds-dropdown__filter-input::placeholder{color:var(--pds-color-input-placeholder);font-size:var(--pds-typography-size-xs)}.pds-dropdown__filter-input:focus-visible{border-radius:var(--pds-border-radius-container) var(--pds-border-radius-container) 0 0;outline:var(--pds-border-width-default) solid var(--pds-color-interactive-focus);outline-offset:-3px}.pds-dropdown__no-results{color:var(--pds-color-fg-default-secondary);font-size:var(--pds-typography-size-s);padding-block:var(--pds-spacing-xs);padding-inline:var(--pds-spacing-s)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pds-expansion-panel details{border:var(--pds-border-width-default) solid var(--pds-color-border-default);border-radius:var(--pds-border-radius-container);line-height:normal}.pds-expansion-panel details>summary::-webkit-details-marker{display:none}.pds-expansion-panel details>summary{align-items:center;border-radius:var(--pds-border-radius-container);color:var(--pds-color-fg-default);cursor:pointer;display:flex;flex-wrap:nowrap;font-family:var(--pds-typography-ff-default);font-size:var(--pds-typography-size-m);font-weight:var(--pds-typography-fw-
|
|
1
|
+
.pds-expansion-panel details{border:var(--pds-border-width-default) solid var(--pds-color-border-default);border-radius:var(--pds-border-radius-container);line-height:normal}.pds-expansion-panel details>summary::-webkit-details-marker{display:none}.pds-expansion-panel details>summary{align-items:center;border-radius:var(--pds-border-radius-container);color:var(--pds-color-fg-default);cursor:pointer;display:flex;flex-wrap:nowrap;font-family:var(--pds-typography-ff-default);font-size:var(--pds-typography-size-m);font-weight:var(--pds-typography-fw-medium);gap:var(--pds-spacing-l);justify-content:space-between;padding:var(--pds-spacing-s) var(--pds-spacing-m);transition:var(--pds-animation-transition-button)}.pds-expansion-panel details>summary:hover{background-color:var(--pds-color-expansion-panel-hover);transition:background-color var(--pds-animation-transition-button)}.pds-expansion-panel details>summary:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus)}.pds-expansion-panel details>summary .pds-expansion-panel__icon{color:var(--pds-color-fg-default-secondary);transition:var(--pds-animation-transition-rotation)}.pds-expansion-panel .pds-expansion-panel__icon.rotated{transform:rotate(180deg);transition:var(--pds-animation-transition-rotation)}.pds-expansion-panel details[open]>summary{background-color:var(--pds-color-expansion-panel-open);border-radius:var(--pds-border-radius-container) var(--pds-border-radius-container) 0 0}.pds-expansion-panel details[open]>summary .pds-expansion-panel__icon{color:var(--pds-color-fg-default)}.pds-expansion-panel .pds-expansion-panel__content{padding:var(--pds-spacing-s) var(--pds-spacing-m)}.pds-expansion-panel.pds-expansion-panel--no-border details{border:none}
|