@pantheon-systems/pds-toolkit-react 2.0.0-alpha.86 → 2.0.0-alpha.87
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 +12 -0
- package/dist/components/StatusScrim/StatusScrim.d.ts +22 -0
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +17 -1
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +20 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +17 -1
- package/dist/components/navigation/BookmarksMenu/BookmarksMenu.d.ts +151 -0
- package/dist/components/navigation/Navbar/Navbar.d.ts +20 -7
- package/dist/components/panels/BookmarksPanel/BookmarksPanel.d.ts +67 -0
- package/dist/css/component-css/pds-bookmarks-menu.css +1 -0
- package/dist/css/component-css/pds-bookmarks-panel.css +1 -0
- package/dist/css/component-css/pds-datepicker.css +1 -1
- package/dist/css/component-css/pds-dropdown.css +1 -1
- package/dist/css/component-css/pds-index.css +23 -19
- package/dist/css/component-css/pds-menu-button.css +6 -2
- package/dist/css/component-css/pds-nav-menu.css +1 -1
- package/dist/css/component-css/pds-navbar.css +2 -2
- package/dist/css/component-css/pds-row-actions-menu.css +1 -1
- package/dist/css/component-css/pds-status-scrim.css +1 -0
- package/dist/css/component-css/pds-user-menu.css +5 -5
- package/dist/css/component-css/pds-workspace-selector-panel.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +2 -2
- package/dist/css/pds-components.css +23 -19
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1221 -1068
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +3 -0
- package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +7 -1
- package/package.json +1 -1
|
@@ -625,6 +625,18 @@
|
|
|
625
625
|
"prop": "defaultPresetLabel",
|
|
626
626
|
"description": "New optional prop naming which presets entry (by its own label) starts out active. The named preset renders pressed in the list, its computed range seeds the selection so the calendar opens on it, and the trigger renders as a real selection rather than muted placeholder text. onChange is deliberately not called for this initial value. Mount-only, like defaultValue on an HTML input, and a no-op (development warning only) when the label matches no entry.",
|
|
627
627
|
"usage": "Set defaultPresetLabel to one of your presets' labels when the surface's underlying query already has a default window (e.g. a log viewer defaulting to the last 15 minutes), so the trigger reports what is actually on screen. Read your own initial state from the same constant you pass here rather than waiting for onChange. Requires presets and mode='range'."
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"component": "Datepicker",
|
|
631
|
+
"prop": "hourCycle",
|
|
632
|
+
"description": "New optional prop setting the hour format of the showTime field(s), forwarded to each embedded Timepicker. Defaults to 12 (hour + AM/PM, e.g. \"12:30 PM\"); 24 renders a 24-hour segment with no AM/PM (e.g. \"13:30\"). Existing pickers are unchanged.",
|
|
633
|
+
"usage": "Set hourCycle={24} on a surface whose other timestamps are already 24-hour, such as a log viewer. It cannot be reached through locale — the embedded fields always receive an explicit hourCycle, which overrides locale-derived formatting."
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"component": "Datepicker",
|
|
637
|
+
"prop": "showTodayButton",
|
|
638
|
+
"description": "New opt-out prop for the calendar footer's \"Today\" button. Defaults to true, so existing footers are unchanged; false leaves just the end-aligned buttons — Clear, plus Done when mode is \"range\" or showTime is set.",
|
|
639
|
+
"usage": "Set showTodayButton={false} where jumping to today is meaningless or redundant — e.g. a range picker whose presets already cover the current window. Blanking translationStrings.todayButton only empties the label, leaving the button in place."
|
|
628
640
|
}
|
|
629
641
|
],
|
|
630
642
|
"removals": [
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './status-scrim.css';
|
|
3
|
+
export type StatusScrimStatus = 'frozen' | 'restricted';
|
|
4
|
+
export interface StatusScrimProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
|
+
/**
|
|
6
|
+
* Additional class names
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Label text. Defaults to 'Frozen' / 'Restricted' based on status; override
|
|
11
|
+
* for translation.
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Which status the scrim represents. Sets the icon and default label.
|
|
16
|
+
*/
|
|
17
|
+
status: StatusScrimStatus;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* StatusScrim UI component
|
|
21
|
+
*/
|
|
22
|
+
export declare const StatusScrim: ({ className, label, status, ...props }: StatusScrimProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { type Placement } from '@floating-ui/react';
|
|
2
3
|
import { StatusDotType } from '../../../libs/components/StatusDot/StatusDot';
|
|
3
4
|
import { ButtonVariant, HeadingItemType, LinkItemType, MenuItemType, NodeItemType, SeparatorItemType } from '../../../libs/types/custom-types';
|
|
4
5
|
import { TallyProps } from '../../badges/Tally/Tally';
|
|
@@ -65,6 +66,21 @@ export interface MenuButtonProps extends ComponentPropsWithRef<'span'> {
|
|
|
65
66
|
* default (which can otherwise leave focus on an ancestor panel).
|
|
66
67
|
*/
|
|
67
68
|
onOpenChange?: (isOpen: boolean) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Preferred placement of the dropdown panel relative to its anchor.
|
|
71
|
+
* Defaults to `bottom-start` (current behavior). `SplitButton` passes
|
|
72
|
+
* this through unchanged — see its own `placement` prop.
|
|
73
|
+
*/
|
|
74
|
+
placement?: Placement;
|
|
75
|
+
/**
|
|
76
|
+
* Ref to an ancestor element that Floating UI should use as the
|
|
77
|
+
* *position* reference (while the trigger button remains the
|
|
78
|
+
* *interaction* reference for click/keyboard). Set internally by
|
|
79
|
+
* `SplitButton` when `isSplitButton` is true, so the panel anchors to
|
|
80
|
+
* the whole split-button control instead of just the caret half. Not
|
|
81
|
+
* intended for direct use outside `SplitButton`.
|
|
82
|
+
*/
|
|
83
|
+
positionReferenceRef?: RefObject<HTMLElement | null>;
|
|
68
84
|
/**
|
|
69
85
|
* Which size of button to render.
|
|
70
86
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Placement } from '@floating-ui/react';
|
|
2
3
|
import { ButtonVariant, LinkItemType, MenuItemType } from '../../../libs/types/custom-types';
|
|
3
4
|
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
4
5
|
import './split-button.css';
|
|
@@ -11,6 +12,16 @@ interface SplitButtonProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
11
12
|
* Array of menu items
|
|
12
13
|
*/
|
|
13
14
|
actionItems: Array<LinkItemType | MenuItemType>;
|
|
15
|
+
/**
|
|
16
|
+
* Anchor the actions menu panel to the whole button (primary action +
|
|
17
|
+
* caret combined) instead of just the caret trigger. Defaults to
|
|
18
|
+
* `false` — the panel positions relative to the caret alone, matching
|
|
19
|
+
* current behavior. Set this when `placement` needs to align the panel
|
|
20
|
+
* with an edge of the whole control (e.g. `bottom-start` under the
|
|
21
|
+
* primary action's left edge, for a table row action) rather than just
|
|
22
|
+
* the caret's narrow width.
|
|
23
|
+
*/
|
|
24
|
+
anchorToFullButton?: boolean;
|
|
14
25
|
/**
|
|
15
26
|
* Additional class names
|
|
16
27
|
*/
|
|
@@ -32,6 +43,14 @@ interface SplitButtonProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
32
43
|
* Label for the buttons additional actions menu.
|
|
33
44
|
*/
|
|
34
45
|
moreActionsLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Preferred placement of the actions menu panel. Defaults to
|
|
48
|
+
* `bottom-start`, matching `MenuButton`'s own default. Aligns relative
|
|
49
|
+
* to the caret trigger alone unless `anchorToFullButton` is set, in
|
|
50
|
+
* which case it aligns relative to the whole control instead. Passed
|
|
51
|
+
* straight through to the underlying `MenuButton`.
|
|
52
|
+
*/
|
|
53
|
+
placement?: Placement;
|
|
35
54
|
/**
|
|
36
55
|
* Which size of button to render
|
|
37
56
|
*/
|
|
@@ -44,5 +63,5 @@ interface SplitButtonProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
44
63
|
/**
|
|
45
64
|
* A component used to render a button with a primary action and a menu of additional options
|
|
46
65
|
*/
|
|
47
|
-
export declare const SplitButton: ({ actionItems, className, disabled, iconName, id, moreActionsLabel, size, variant, ...props }: SplitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export declare const SplitButton: ({ actionItems, anchorToFullButton, className, disabled, iconName, id, moreActionsLabel, placement, size, variant, ...props }: SplitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
67
|
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-09-
|
|
6
|
+
* Generated: 2026-09-16T22:12:38.309Z
|
|
7
7
|
*/
|
|
8
8
|
import { customIcons } from './custom-icons';
|
|
9
9
|
export { customIcons };
|
|
@@ -137,6 +137,14 @@ interface DatepickerSharedProps extends DatepickerHTMLProps {
|
|
|
137
137
|
* doesn't prescribe what goes there.
|
|
138
138
|
*/
|
|
139
139
|
footerNote?: ReactNode;
|
|
140
|
+
/**
|
|
141
|
+
* Hour format for the `showTime` field(s), forwarded to each embedded
|
|
142
|
+
* `Timepicker`. `12` displays hour + AM/PM (e.g. "12:30 PM"); `24`
|
|
143
|
+
* displays a 24-hour hour segment with no AM/PM (e.g. "13:30"). Not
|
|
144
|
+
* derivable from `locale` — the embedded fields always receive an
|
|
145
|
+
* explicit `hourCycle`, which overrides locale-derived formatting.
|
|
146
|
+
*/
|
|
147
|
+
hourCycle?: 12 | 24;
|
|
140
148
|
/**
|
|
141
149
|
* Input ID.
|
|
142
150
|
*/
|
|
@@ -234,6 +242,14 @@ interface DatepickerSharedProps extends DatepickerHTMLProps {
|
|
|
234
242
|
* date. Has no effect unless `showTime` is also true.
|
|
235
243
|
*/
|
|
236
244
|
showTimeZoneSwitcher?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Whether the calendar footer includes its "Today" button. Defaults to
|
|
247
|
+
* `true`. Set to `false` to leave only the end-aligned buttons —
|
|
248
|
+
* `Clear`, plus `Done` when `mode` is `'range'` or `showTime` is set.
|
|
249
|
+
* Blanking `translationStrings.todayButton` only empties the label,
|
|
250
|
+
* leaving the button itself in place.
|
|
251
|
+
*/
|
|
252
|
+
showTodayButton?: boolean;
|
|
237
253
|
/**
|
|
238
254
|
* IANA time zone identifier (e.g. "America/Los_Angeles", "UTC") used to
|
|
239
255
|
* combine the selected date with `showTime`'s entered time-of-day into a
|
|
@@ -318,5 +334,5 @@ export type DatepickerProps = SingleDatepickerProps | RangeDatepickerProps;
|
|
|
318
334
|
/**
|
|
319
335
|
* Datepicker UI component.
|
|
320
336
|
*/
|
|
321
|
-
export declare const Datepicker: ({ allowCustomRange, allowDateRangeSelection, className, defaultPresetLabel, disabled, footerNote, id, inputWidth, inputWidthMin, label, locale, maxDate, message, minDate, mode, onChange, placeholder, presets, required, showLabel, showPresetCalendar, showTime, showTimeZoneSwitcher, timeZone, tooltipText, translationStrings: translationStringsProp, validationMessage, validationStatus, value, visibleMonths, ...props }: DatepickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
337
|
+
export declare const Datepicker: ({ allowCustomRange, allowDateRangeSelection, className, defaultPresetLabel, disabled, footerNote, hourCycle, id, inputWidth, inputWidthMin, label, locale, maxDate, message, minDate, mode, onChange, placeholder, presets, required, showLabel, showPresetCalendar, showTime, showTimeZoneSwitcher, showTodayButton, timeZone, tooltipText, translationStrings: translationStringsProp, validationMessage, validationStatus, value, visibleMonths, ...props }: DatepickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
322
338
|
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { MenuItemType } from '../../../libs/types/custom-types';
|
|
3
|
+
import './bookmarks-menu.css';
|
|
4
|
+
/**
|
|
5
|
+
* A single bookmark row, shared by `BookmarksMenu` and `BookmarksPanel`.
|
|
6
|
+
*/
|
|
7
|
+
export type BookmarkItem = {
|
|
8
|
+
/**
|
|
9
|
+
* Stable id, used for React list keys. Omit only if `title` is
|
|
10
|
+
* guaranteed unique across the list.
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Link element the row navigates to on selection (e.g. `<a href='...'>`
|
|
15
|
+
* or a router `Link`).
|
|
16
|
+
*/
|
|
17
|
+
linkContent: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Removes the bookmark. Omit to hide the kebab's Remove action.
|
|
20
|
+
*/
|
|
21
|
+
onRemove?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Renames the bookmark. Omit to hide the kebab's Rename action.
|
|
24
|
+
*/
|
|
25
|
+
onRename?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Secondary text below the title (e.g. site/team name).
|
|
28
|
+
*/
|
|
29
|
+
subtitle?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Bookmark title.
|
|
32
|
+
*/
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Translation strings shared by `buildBookmarkMenuItems`'s two callers
|
|
37
|
+
* (`BookmarksMenu`, `BookmarksPanel`).
|
|
38
|
+
*/
|
|
39
|
+
export type BookmarkMenuItemLabels = {
|
|
40
|
+
/**
|
|
41
|
+
* Returns the accessible label for the Remove action when it's critical
|
|
42
|
+
* (destructive) styled.
|
|
43
|
+
* Defaults to `(bookmark) => \`Remove ${bookmark.title}\``.
|
|
44
|
+
*/
|
|
45
|
+
getRemoveCriticalLabel?: (bookmark: BookmarkItem) => string;
|
|
46
|
+
/**
|
|
47
|
+
* Label for the kebab's Remove action.
|
|
48
|
+
* @default 'Remove'
|
|
49
|
+
*/
|
|
50
|
+
removeLabel?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Label for the kebab's Rename action.
|
|
53
|
+
* @default 'Rename'
|
|
54
|
+
*/
|
|
55
|
+
renameLabel?: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Builds the kebab's Rename/Remove menu items for a bookmark row.
|
|
59
|
+
*/
|
|
60
|
+
export declare const buildBookmarkMenuItems: (bookmark: BookmarkItem, labels?: BookmarkMenuItemLabels) => MenuItemType[];
|
|
61
|
+
/**
|
|
62
|
+
* Centered icon + message shown in place of the bookmark list when empty.
|
|
63
|
+
*/
|
|
64
|
+
export declare const BookmarksEmptyState: ({ text }: {
|
|
65
|
+
text: string;
|
|
66
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
/**
|
|
68
|
+
* Prop types for BookmarksMenu
|
|
69
|
+
*/
|
|
70
|
+
export interface BookmarksMenuProps extends ComponentPropsWithoutRef<'span'> {
|
|
71
|
+
/**
|
|
72
|
+
* Aria label for the trigger button.
|
|
73
|
+
* @default 'Bookmarks'
|
|
74
|
+
*/
|
|
75
|
+
ariaLabel?: string;
|
|
76
|
+
/**
|
|
77
|
+
* The user's bookmarks.
|
|
78
|
+
*/
|
|
79
|
+
bookmarks?: BookmarkItem[];
|
|
80
|
+
/**
|
|
81
|
+
* Additional class names
|
|
82
|
+
*/
|
|
83
|
+
className?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Label for the header's "+ Create" action.
|
|
86
|
+
* @default 'Create'
|
|
87
|
+
*/
|
|
88
|
+
createLabel?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Returns the accessible label for a row's kebab menu.
|
|
91
|
+
* Defaults to `(bookmark) => \`Actions for ${bookmark.title}\``.
|
|
92
|
+
*/
|
|
93
|
+
getMenuAriaLabel?: (bookmark: BookmarkItem) => string;
|
|
94
|
+
/**
|
|
95
|
+
* Returns the accessible label for a row's Remove action.
|
|
96
|
+
* Defaults to `(bookmark) => \`Remove ${bookmark.title}\``.
|
|
97
|
+
*/
|
|
98
|
+
getRemoveCriticalLabel?: (bookmark: BookmarkItem) => string;
|
|
99
|
+
/**
|
|
100
|
+
* Heading shown in the panel's header.
|
|
101
|
+
* @default 'Bookmarks'
|
|
102
|
+
*/
|
|
103
|
+
heading?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Fills the trigger icon to indicate the current page is already
|
|
106
|
+
* bookmarked. The component has no router access of its own, so the
|
|
107
|
+
* consumer derives this from its own current-page/router state.
|
|
108
|
+
*/
|
|
109
|
+
isBookmarked?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Opt in to swapping the trigger + floating panel for an inline
|
|
112
|
+
* accordion at the mobile breakpoint. Defaults to `false` —
|
|
113
|
+
* BookmarksMenu always renders its normal trigger + panel otherwise,
|
|
114
|
+
* regardless of viewport. Set this explicitly when placing
|
|
115
|
+
* BookmarksMenu inside a mobile nav menu that provides the accordion's
|
|
116
|
+
* expected layout (e.g. `Navbar`'s own mobile menu) — typically
|
|
117
|
+
* `isMobileAccordion={useIsMobile()}`, using the `useIsMobile` hook, so
|
|
118
|
+
* the swap only takes effect at the mobile breakpoint.
|
|
119
|
+
*/
|
|
120
|
+
isMobileAccordion?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Caps the panel's height in pixels. Omit to size it to the available
|
|
123
|
+
* viewport space only.
|
|
124
|
+
*/
|
|
125
|
+
maxHeightValue?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Text shown in place of the list when there are no bookmarks.
|
|
128
|
+
*/
|
|
129
|
+
noResultsText?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Called when the "+ Create" action in the panel's header is selected.
|
|
132
|
+
* Omit to hide that action entirely. The consumer owns what happens
|
|
133
|
+
* next (a modal, a new page, etc.).
|
|
134
|
+
*/
|
|
135
|
+
onCreateBookmark?: () => void;
|
|
136
|
+
/**
|
|
137
|
+
* Label for a row's kebab Remove action.
|
|
138
|
+
* @default 'Remove'
|
|
139
|
+
*/
|
|
140
|
+
removeLabel?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Label for a row's kebab Rename action.
|
|
143
|
+
* @default 'Rename'
|
|
144
|
+
*/
|
|
145
|
+
renameLabel?: string;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* BookmarksMenu UI component. Top-nav icon trigger that opens a floating
|
|
149
|
+
* panel listing the user's bookmarks.
|
|
150
|
+
*/
|
|
151
|
+
export declare const BookmarksMenu: ({ ariaLabel, bookmarks, className, createLabel, getMenuAriaLabel, getRemoveCriticalLabel, heading, isBookmarked, isMobileAccordion, maxHeightValue, noResultsText, onCreateBookmark, removeLabel, renameLabel, ...props }: BookmarksMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { ContainerWidth } from '../../../libs/types/custom-types';
|
|
3
|
+
import { GapScale } from '../../../libs/types/layout-types';
|
|
3
4
|
import './navbar.css';
|
|
4
5
|
/**
|
|
5
6
|
* Prop types for Navbar
|
|
@@ -26,14 +27,26 @@ export interface NavbarProps extends ComponentPropsWithoutRef<'header'> {
|
|
|
26
27
|
*/
|
|
27
28
|
hideBorder?: boolean;
|
|
28
29
|
/**
|
|
29
|
-
* Overrides the horizontal
|
|
30
|
-
*
|
|
31
|
-
* '
|
|
32
|
-
* Container's standard gutter. Useful for aligning navbar content with an
|
|
33
|
-
* adjacent app shell (e.g. the AppLayout sidebar) when placed in a `header`
|
|
34
|
-
* slot.
|
|
30
|
+
* Overrides the desktop bar's horizontal padding (any CSS length) so it
|
|
31
|
+
* can align with something outside the Navbar, e.g. a sidebar's padding.
|
|
32
|
+
* @default Container's standard gutter
|
|
35
33
|
*/
|
|
36
34
|
inlinePadding?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Gap between items in the `items-center` slot, desktop only.
|
|
37
|
+
* @default 'm'
|
|
38
|
+
*/
|
|
39
|
+
itemsCenterGap?: GapScale;
|
|
40
|
+
/**
|
|
41
|
+
* Gap between items in the `items-left` slot, desktop only.
|
|
42
|
+
* @default 'm'
|
|
43
|
+
*/
|
|
44
|
+
itemsLeftGap?: GapScale;
|
|
45
|
+
/**
|
|
46
|
+
* Gap between items in the `items-right` slot, desktop only.
|
|
47
|
+
* @default 'm'
|
|
48
|
+
*/
|
|
49
|
+
itemsRightGap?: GapScale;
|
|
37
50
|
/**
|
|
38
51
|
* Translation strings for accessibility.
|
|
39
52
|
*/
|
|
@@ -45,4 +58,4 @@ export interface NavbarProps extends ComponentPropsWithoutRef<'header'> {
|
|
|
45
58
|
/**
|
|
46
59
|
* Navbar UI component
|
|
47
60
|
*/
|
|
48
|
-
export declare const Navbar: ({ children, className, colorType, containerWidth, hideBorder, inlinePadding, translationStrings, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare const Navbar: ({ children, className, colorType, containerWidth, hideBorder, inlinePadding, itemsCenterGap, itemsLeftGap, itemsRightGap, translationStrings, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { BookmarkItem } from '../../navigation/BookmarksMenu/BookmarksMenu';
|
|
3
|
+
import './bookmarks-panel.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for BookmarksPanel
|
|
6
|
+
*/
|
|
7
|
+
export interface BookmarksPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* The user's bookmarks.
|
|
10
|
+
*/
|
|
11
|
+
bookmarks?: BookmarkItem[];
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Caps the height of the content region only. Passed straight through
|
|
18
|
+
* to `WidgetPanel`.
|
|
19
|
+
*/
|
|
20
|
+
contentMaxHeight?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Label for the footer's "Create bookmark" action.
|
|
23
|
+
* @default 'Create bookmark'
|
|
24
|
+
*/
|
|
25
|
+
createLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the accessible label for a row's kebab menu.
|
|
28
|
+
* Defaults to `(bookmark) => \`Actions for ${bookmark.title}\``.
|
|
29
|
+
*/
|
|
30
|
+
getMenuAriaLabel?: (bookmark: BookmarkItem) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the accessible label for a row's Remove action.
|
|
33
|
+
* Defaults to `(bookmark) => \`Remove ${bookmark.title}\``.
|
|
34
|
+
*/
|
|
35
|
+
getRemoveCriticalLabel?: (bookmark: BookmarkItem) => string;
|
|
36
|
+
/**
|
|
37
|
+
* Heading for the panel.
|
|
38
|
+
* @default 'Bookmarks'
|
|
39
|
+
*/
|
|
40
|
+
heading?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Text shown in place of the list when there are no bookmarks.
|
|
43
|
+
*/
|
|
44
|
+
noResultsText?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Called when the "Create bookmark" footer action is selected. Omit to
|
|
47
|
+
* hide that action entirely. The consumer owns what happens next (a
|
|
48
|
+
* modal, a new page, etc.).
|
|
49
|
+
*/
|
|
50
|
+
onCreateBookmark?: () => void;
|
|
51
|
+
/**
|
|
52
|
+
* Label for a row's kebab Remove action.
|
|
53
|
+
* @default 'Remove'
|
|
54
|
+
*/
|
|
55
|
+
removeLabel?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Label for a row's kebab Rename action.
|
|
58
|
+
* @default 'Rename'
|
|
59
|
+
*/
|
|
60
|
+
renameLabel?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* BookmarksPanel UI component. Persistently-visible, embedded variant of
|
|
64
|
+
* the bookmark list for homepage/sidebar widget slots, built on
|
|
65
|
+
* `WidgetPanel`.
|
|
66
|
+
*/
|
|
67
|
+
export declare const BookmarksPanel: ({ bookmarks, className, contentMaxHeight, createLabel, getMenuAriaLabel, getRemoveCriticalLabel, heading, noResultsText, onCreateBookmark, removeLabel, renameLabel, ...props }: BookmarksPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer pds-v1, pds-v2;@layer pds-v2{.pds-bookmarks-menu{display:inline-flex}.pds-bookmarks-menu .pds-nav-accordion{width:100%}[data-pds-mobile] .pds-navbar__mobile .pds-bookmarks-menu{background-color:var(--pds-color-surface-default);border-block-end:var(--pds-border-width-default) solid var(--pds-color-border-default);left:50%;margin-inline-start:-50vw;position:relative;right:50%;width:100vw}.pds-bookmarks-menu__panel{padding-block-start:0;width:17.5rem}.pds-bookmarks-menu__header{align-items:center;background-color:var(--pds-color-dropdown-background);border-block-end:var(--pds-border-width-default) solid var(--pds-color-dropdown-separator);color:var(--pds-color-dropdown-foreground);display:flex;font-family:var(--pds-typography-ff-default);font-size:var(--pds-typography-size-m);font-weight:var(--pds-typography-fw-semibold);justify-content:space-between;letter-spacing:normal;line-height:1;margin-block-end:var(--pds-spacing-4xs);margin-inline:calc(var(--pds-spacing-2xs)*-1);padding-block:var(--pds-spacing-2xs);padding-inline:calc(var(--pds-spacing-2xs) + var(--pds-spacing-xs));position:sticky;top:0;z-index:1}.pds-bookmarks-menu__panel .pds-dropdown__action-item{line-height:var(--pds-typography-lh-s)}.pds-bookmarks-menu__panel .pds-dropdown__item-content,.pds-bookmarks-menu__panel .pds-dropdown__item-label{min-width:0}.pds-bookmarks-menu__panel .pds-dropdown__item-description{margin-block-start:var(--pds-spacing-5xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-bookmarks-menu__item-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-bookmarks-menu__empty{padding-block:var(--pds-spacing-m)}.pds-bookmarks-empty-state{align-items:center;display:flex;flex-direction:column;gap:var(--pds-spacing-xs);padding-inline:var(--pds-spacing-s);text-align:center}.pds-bookmarks-empty-state__icon,.pds-bookmarks-empty-state__text{color:var(--pds-color-foreground-default-secondary)}.pds-bookmarks-empty-state__text{font-size:var(--pds-typography-size-s);line-height:var(--pds-typography-lh-m);margin:0}.pds-bookmarks-menu__mobile-label{align-items:center;display:flex;gap:var(--pds-spacing-xs)}.pds-bookmarks-menu__mobile-list{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.pds-bookmarks-menu__mobile-item .pds-row-actions-menu{min-height:unset;padding-block:var(--pds-spacing-xs);padding-inline-end:var(--pds-spacing-l)}.pds-bookmarks-menu__mobile-item .pds-row-actions-menu__content a{padding-inline-start:var(--pds-spacing-m)}.pds-bookmarks-menu__mobile-item-label{display:flex;flex-direction:column;min-width:0}.pds-bookmarks-menu__mobile-item-title{font-size:var(--pds-typography-size-s);line-height:var(--pds-typography-lh-s)}.pds-bookmarks-menu__mobile-item-subtitle{color:var(--pds-color-foreground-default-secondary);font-size:var(--pds-typography-size-xs);line-height:var(--pds-typography-lh-s);margin-block-start:var(--pds-spacing-5xs)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer pds-v1, pds-v2;@layer pds-v2{.pds-bookmarks-panel .pds-widget-panel__content{padding-block:var(--pds-spacing-3xs)}.pds-bookmarks-panel .pds-bookmarks-empty-state{padding-block:var(--pds-spacing-m)}.pds-bookmarks-panel__list{display:flex;flex-direction:column;list-style:none;margin-block:0;margin-inline:calc(var(--panel-padding-inline)*-1);padding:0;row-gap:var(--pds-spacing-xs)}.pds-bookmarks-panel__item-label{display:flex;flex-direction:column;min-width:0}.pds-bookmarks-panel__item-subtitle,.pds-bookmarks-panel__item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-bookmarks-panel__item-title{font-size:var(--pds-typography-size-s);line-height:var(--pds-typography-lh-s)}.pds-bookmarks-panel__item-subtitle{color:var(--pds-color-foreground-default-secondary);font-size:var(--pds-typography-size-xs);line-height:var(--pds-typography-lh-s);margin-block-start:var(--pds-spacing-5xs)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer pds-v1, pds-v2;@layer pds-v2{.pds-datepicker{color:var(--pds-color-foreground-default);font-family:var(--pds-typography-ff-default)}.pds-datepicker__input-wrapper{align-items:center;column-gap:var(--pds-spacing-s);display:flex;row-gap:var(--pds-spacing-xs);width:100%}.pds-datepicker__trigger{align-items:center;background:var(--pds-color-surface-default);border:var(--pds-border-width-default) solid var(--pds-color-border-input);border-radius:var(--pds-border-radius-input);color:var(--pds-color-foreground-default);cursor:pointer;display:flex;font-size:var(--pds-typography-size-s);gap:var(--pds-spacing-s);height:var(--pds-spacing-input-height-s);justify-content:space-between;min-width:10rem;padding:var(--pds-spacing-s);width:100%}.pds-datepicker__trigger:disabled{cursor:not-allowed}.pds-datepicker__trigger--open,.pds-datepicker__trigger:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus);outline-offset:0;transition:var(--pds-animation-transition-focus)}.pds-datepicker__trigger-text{align-items:center;display:flex;flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.pds-datepicker__trigger-text--placeholder{color:var(--pds-color-input-placeholder)}.pds-datepicker__trigger-icon{color:var(--pds-color-foreground-default);flex-shrink:0;margin-block-start:-1px}.pds-datepicker__separator{padding-inline:var(--pds-spacing-s)}.pds-datepicker__popover{--day-size:1.75rem;--day-gap:4px;background-color:var(--pds-color-surface-default);border-radius:var(--pds-border-radius-container);box-shadow:var(--pds-elevation-overlay);display:flex;overflow-x:hidden;overflow-y:auto;z-index:var(--pds-z-index-overlay)}.pds-datepicker__presets{border-inline-end:var(--pds-border-width-default) solid var(--pds-color-dropdown-separator);display:flex;flex-direction:column;justify-content:space-between;min-width:13.75rem;padding:var(--pds-spacing-s);width:13.75rem}.pds-datepicker__presets--collapsed{border-inline-end:none}.pds-datepicker__calendar-wrapper{flex-basis:0;flex-shrink:0;overflow:hidden;transition:flex-basis .3s cubic-bezier(.2,0,0,1)}.pds-datepicker__calendar-wrapper-inner{display:flex;flex-direction:column;height:100%;min-height:0}.pds-datepicker__preset-list{display:flex;flex-direction:column;gap:var(--pds-spacing-4xs);min-height:0;overflow-y:auto}.pds-datepicker__preset-item{align-items:center;background:none;border:none;border-radius:var(--pds-border-radius-container);color:var(--pds-color-dropdown-foreground);cursor:pointer;display:flex;font-size:var(--pds-typography-size-s);justify-content:space-between;min-height:var(--pds-spacing-2xl);padding-block:var(--pds-spacing-2xs);padding-inline:var(--pds-spacing-xs);text-align:start}.pds-datepicker__preset-item:hover{background-color:var(--pds-color-dropdown-item-background-hover)}.pds-datepicker__preset-item:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus)}.pds-datepicker__preset-item--active{font-weight:var(--pds-typography-fw-medium)}.pds-datepicker__preset-item--active,.pds-datepicker__preset-item--active:hover{background-color:var(--pds-color-interactive-background-active)}.pds-datepicker__preset-divider{background-color:var(--pds-color-dropdown-separator);height:var(--pds-border-width-default);margin-block:var(--pds-spacing-2xs)}.pds-datepicker__calendar{background-color:var(--pds-color-surface-default);display:flex;flex-direction:column;gap:var(--pds-spacing-m);max-height:100%;min-height:0;padding:var(--pds-spacing-s) var(--pds-spacing-s) var(--pds-spacing-s)}.pds-datepicker__nav{align-items:center;display:flex;justify-content:space-between;margin-block-end:var(--pds-spacing-s)}.pds-datepicker__nav-title{color:var(--pds-color-foreground-default);flex:1;font-size:var(--pds-typography-size-s);font-weight:var(--pds-typography-fw-semibold);text-align:center}.pds-datepicker__nav-button{align-items:center;background:none;border:none;border-radius:var(--pds-border-radius-button);color:var(--pds-color-foreground-default-secondary);cursor:pointer;display:flex;justify-content:center;padding:var(--pds-spacing-2xs)}.pds-datepicker__nav-button:hover:enabled{background-color:var(--pds-color-button-subtle-background-hover);color:var(--pds-color-button-secondary-foreground-hover)}.pds-datepicker__nav-button:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus)}.pds-datepicker__nav-button:disabled{cursor:not-allowed;opacity:40%}.pds-datepicker__nav-button-spacer{visibility:hidden}.pds-datepicker__grids{display:flex;flex:1 1 auto;gap:var(--pds-spacing-l);min-height:0;overflow-y:auto}.pds-datepicker__actions,.pds-datepicker__footer-note,.pds-datepicker__time-section{flex-shrink:0}.pds-datepicker__month{flex:1}.pds-datepicker__grid{border-collapse:collapse;margin-inline:auto;width:auto}.pds-datepicker__grid th{padding:0}.pds-datepicker__grid tr{border-block-end:none}.pds-datepicker__weekday{color:var(--pds-color-foreground-default-secondary);font-size:var(--pds-typography-size-s);font-weight:var(--pds-typography-fw-semibold);height:var(--day-size);text-align:center}.pds-datepicker__cell{padding-block:3px;padding-inline:0;position:relative;text-align:center;width:calc(var(--day-size) + var(--day-gap))}.pds-datepicker__day{align-items:center;border-radius:50%;cursor:pointer;display:flex;font-size:var(--pds-typography-size-s);font-weight:var(--pds-typography-fw-regular);height:var(--day-size);justify-content:center;outline:none;position:relative;width:var(--day-size);z-index:0}.pds-datepicker__day[hidden]{display:none}.pds-datepicker__day:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus)}.pds-datepicker__day--today{box-shadow:inset 0 0 0 var(--pds-border-width-default) var(--pds-color-datepicker-accent-foreground)}.pds-datepicker__cell--in-range{background-clip:content-box;background-color:var(--pds-color-interactive-background-selected)}.pds-datepicker__cell--range-start{border-end-start-radius:calc(var(--day-size)/2);border-start-start-radius:calc(var(--day-size)/2)}.pds-datepicker__cell--range-end{border-end-end-radius:calc(var(--day-size)/2);border-start-end-radius:calc(var(--day-size)/2);padding-inline-end:var(--day-gap)}.pds-datepicker__day--selected{background-color:var(--pds-color-datepicker-selected-background);color:var(--pds-color-datepicker-selected-foreground)}.pds-datepicker__day--today.pds-datepicker__day--selected{box-shadow:inset 0 0 0 var(--pds-border-width-default) var(--pds-color-datepicker-selected-foreground)}.pds-datepicker__day--disabled,.pds-datepicker__day--unavailable{cursor:not-allowed;opacity:40%}.pds-datepicker__time-section{border-block-start:var(--pds-border-width-default) solid var(--pds-color-border-default);display:flex;flex-direction:column;gap:var(--pds-spacing-s);padding-block-start:var(--pds-spacing-m)}.pds-datepicker__timezone-switcher{align-items:center;display:flex;gap:var(--pds-spacing-s)}.pds-datepicker__timezone-switcher-label{color:var(--pds-color-foreground-default);font-size:var(--pds-typography-size-input-label);font-weight:var(--pds-typography-fw-medium);white-space:nowrap}.pds-datepicker__time-fields{display:flex;gap:var(--pds-spacing-l)}.pds-datepicker__time-fields>*{flex:1}.pds-datepicker__footer-note{color:var(--pds-color-foreground-default-secondary);font-size:var(--pds-typography-size-s)}.pds-datepicker__actions{display:flex;
|
|
1
|
+
@layer pds-v1, pds-v2;@layer pds-v2{.pds-datepicker{color:var(--pds-color-foreground-default);font-family:var(--pds-typography-ff-default)}.pds-datepicker__input-wrapper{align-items:center;column-gap:var(--pds-spacing-s);display:flex;row-gap:var(--pds-spacing-xs);width:100%}.pds-datepicker__trigger{align-items:center;background:var(--pds-color-surface-default);border:var(--pds-border-width-default) solid var(--pds-color-border-input);border-radius:var(--pds-border-radius-input);color:var(--pds-color-foreground-default);cursor:pointer;display:flex;font-size:var(--pds-typography-size-s);gap:var(--pds-spacing-s);height:var(--pds-spacing-input-height-s);justify-content:space-between;min-width:10rem;padding:var(--pds-spacing-s);width:100%}.pds-datepicker__trigger:disabled{cursor:not-allowed}.pds-datepicker__trigger--open,.pds-datepicker__trigger:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus);outline-offset:0;transition:var(--pds-animation-transition-focus)}.pds-datepicker__trigger-text{align-items:center;display:flex;flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.pds-datepicker__trigger-text--placeholder{color:var(--pds-color-input-placeholder)}.pds-datepicker__trigger-icon{color:var(--pds-color-foreground-default);flex-shrink:0;margin-block-start:-1px}.pds-datepicker__separator{padding-inline:var(--pds-spacing-s)}.pds-datepicker__popover{--day-size:1.75rem;--day-gap:4px;background-color:var(--pds-color-surface-default);border-radius:var(--pds-border-radius-container);box-shadow:var(--pds-elevation-overlay);display:flex;overflow-x:hidden;overflow-y:auto;z-index:var(--pds-z-index-overlay)}.pds-datepicker__presets{border-inline-end:var(--pds-border-width-default) solid var(--pds-color-dropdown-separator);display:flex;flex-direction:column;justify-content:space-between;min-width:13.75rem;padding:var(--pds-spacing-s);width:13.75rem}.pds-datepicker__presets--collapsed{border-inline-end:none}.pds-datepicker__calendar-wrapper{flex-basis:0;flex-shrink:0;overflow:hidden;transition:flex-basis .3s cubic-bezier(.2,0,0,1)}.pds-datepicker__calendar-wrapper-inner{display:flex;flex-direction:column;height:100%;min-height:0}.pds-datepicker__preset-list{display:flex;flex-direction:column;gap:var(--pds-spacing-4xs);min-height:0;overflow-y:auto}.pds-datepicker__preset-item{align-items:center;background:none;border:none;border-radius:var(--pds-border-radius-container);color:var(--pds-color-dropdown-foreground);cursor:pointer;display:flex;font-size:var(--pds-typography-size-s);justify-content:space-between;min-height:var(--pds-spacing-2xl);padding-block:var(--pds-spacing-2xs);padding-inline:var(--pds-spacing-xs);text-align:start}.pds-datepicker__preset-item:hover{background-color:var(--pds-color-dropdown-item-background-hover)}.pds-datepicker__preset-item:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus)}.pds-datepicker__preset-item--active{font-weight:var(--pds-typography-fw-medium)}.pds-datepicker__preset-item--active,.pds-datepicker__preset-item--active:hover{background-color:var(--pds-color-interactive-background-active)}.pds-datepicker__preset-divider{background-color:var(--pds-color-dropdown-separator);height:var(--pds-border-width-default);margin-block:var(--pds-spacing-2xs)}.pds-datepicker__calendar{background-color:var(--pds-color-surface-default);display:flex;flex-direction:column;gap:var(--pds-spacing-m);max-height:100%;min-height:0;padding:var(--pds-spacing-s) var(--pds-spacing-s) var(--pds-spacing-s)}.pds-datepicker__nav{align-items:center;display:flex;justify-content:space-between;margin-block-end:var(--pds-spacing-s)}.pds-datepicker__nav-title{color:var(--pds-color-foreground-default);flex:1;font-size:var(--pds-typography-size-s);font-weight:var(--pds-typography-fw-semibold);text-align:center}.pds-datepicker__nav-button{align-items:center;background:none;border:none;border-radius:var(--pds-border-radius-button);color:var(--pds-color-foreground-default-secondary);cursor:pointer;display:flex;justify-content:center;padding:var(--pds-spacing-2xs)}.pds-datepicker__nav-button:hover:enabled{background-color:var(--pds-color-button-subtle-background-hover);color:var(--pds-color-button-secondary-foreground-hover)}.pds-datepicker__nav-button:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus)}.pds-datepicker__nav-button:disabled{cursor:not-allowed;opacity:40%}.pds-datepicker__nav-button-spacer{visibility:hidden}.pds-datepicker__grids{display:flex;flex:1 1 auto;gap:var(--pds-spacing-l);min-height:0;overflow-y:auto}.pds-datepicker__actions,.pds-datepicker__footer-note,.pds-datepicker__time-section{flex-shrink:0}.pds-datepicker__month{flex:1}.pds-datepicker__grid{border-collapse:collapse;margin-inline:auto;width:auto}.pds-datepicker__grid th{padding:0}.pds-datepicker__grid tr{border-block-end:none}.pds-datepicker__weekday{color:var(--pds-color-foreground-default-secondary);font-size:var(--pds-typography-size-s);font-weight:var(--pds-typography-fw-semibold);height:var(--day-size);text-align:center}.pds-datepicker__cell{padding-block:3px;padding-inline:0;position:relative;text-align:center;width:calc(var(--day-size) + var(--day-gap))}.pds-datepicker__day{align-items:center;border-radius:50%;cursor:pointer;display:flex;font-size:var(--pds-typography-size-s);font-weight:var(--pds-typography-fw-regular);height:var(--day-size);justify-content:center;outline:none;position:relative;width:var(--day-size);z-index:0}.pds-datepicker__day[hidden]{display:none}.pds-datepicker__day:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus)}.pds-datepicker__day--today{box-shadow:inset 0 0 0 var(--pds-border-width-default) var(--pds-color-datepicker-accent-foreground)}.pds-datepicker__cell--in-range{background-clip:content-box;background-color:var(--pds-color-interactive-background-selected)}.pds-datepicker__cell--range-start{border-end-start-radius:calc(var(--day-size)/2);border-start-start-radius:calc(var(--day-size)/2)}.pds-datepicker__cell--range-end{border-end-end-radius:calc(var(--day-size)/2);border-start-end-radius:calc(var(--day-size)/2);padding-inline-end:var(--day-gap)}.pds-datepicker__day--selected{background-color:var(--pds-color-datepicker-selected-background);color:var(--pds-color-datepicker-selected-foreground)}.pds-datepicker__day--today.pds-datepicker__day--selected{box-shadow:inset 0 0 0 var(--pds-border-width-default) var(--pds-color-datepicker-selected-foreground)}.pds-datepicker__day--disabled,.pds-datepicker__day--unavailable{cursor:not-allowed;opacity:40%}.pds-datepicker__time-section{border-block-start:var(--pds-border-width-default) solid var(--pds-color-border-default);display:flex;flex-direction:column;gap:var(--pds-spacing-s);padding-block-start:var(--pds-spacing-m)}.pds-datepicker__timezone-switcher{align-items:center;display:flex;gap:var(--pds-spacing-s)}.pds-datepicker__timezone-switcher-label{color:var(--pds-color-foreground-default);font-size:var(--pds-typography-size-input-label);font-weight:var(--pds-typography-fw-medium);white-space:nowrap}.pds-datepicker__time-fields{display:flex;gap:var(--pds-spacing-l)}.pds-datepicker__time-fields>*{flex:1}.pds-datepicker__footer-note{color:var(--pds-color-foreground-default-secondary);font-size:var(--pds-typography-size-s)}.pds-datepicker__actions{display:flex;padding:var(--pds-spacing-xs) var(--pds-spacing-4xs) var(--pds-spacing-3xs)}.pds-datepicker__actions-group{display:flex;gap:var(--pds-spacing-s);margin-inline-start:auto}@media (max-width:767px){.pds-datepicker__input-wrapper{align-items:stretch;flex-direction:column}.pds-datepicker__grids{flex-direction:column}}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@layer pds-v1, pds-v2;@layer pds-v2{.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-outline) solid var(--pds-color-interactive-focus);outline-offset:1px}.pds-dropdown__trigger-icon{color:var(--pds-color-foreground-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;gap:var(--pds-spacing-4xs);margin:0;min-width:10rem;overflow-y:auto;padding-inline:var(--pds-spacing-2xs);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;padding-block:var(--pds-spacing-2xs)}.pds-dropdown__item{align-items:center;color:var(--pds-color-dropdown-foreground);cursor:pointer;font-size:var(--pds-typography-size-s);gap:var(--pds-spacing-s);justify-content:space-between;min-height:var(--pds-spacing-2xl);padding-inline:var(--pds-spacing-xs)}.pds-dropdown__item:focus-visible:not(:hover){outline:var(--pds-border-width-outline) 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-foreground-default);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-2xs)}.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-foreground-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__item a{color:inherit;text-decoration:none}.pds-dropdown__action-item{padding-block:var(--pds-spacing-4xs)}.pds-dropdown__action-item-trigger{display:flex;flex-shrink:0;opacity:0;pointer-events:none;transition:opacity .15s ease}.pds-dropdown__action-item:focus-within .pds-dropdown__action-item-trigger,.pds-dropdown__action-item:has(.pds-menu-button--expanded)
|
|
1
|
+
@layer pds-v1, pds-v2;@layer pds-v2{.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-outline) solid var(--pds-color-interactive-focus);outline-offset:1px}.pds-dropdown__trigger-icon{color:var(--pds-color-foreground-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;gap:var(--pds-spacing-4xs);margin:0;min-width:10rem;overflow-y:auto;padding-inline:var(--pds-spacing-2xs);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;padding-block:var(--pds-spacing-2xs)}.pds-dropdown__item{align-items:center;color:var(--pds-color-dropdown-foreground);cursor:pointer;flex-shrink:0;font-size:var(--pds-typography-size-s);gap:var(--pds-spacing-s);justify-content:space-between;min-height:var(--pds-spacing-2xl);padding-inline:var(--pds-spacing-xs)}.pds-dropdown__item:focus-visible:not(:hover){outline:var(--pds-border-width-outline) 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-foreground-default);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-2xs)}.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-foreground-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__item a{color:inherit;text-decoration:none}.pds-dropdown__action-item{padding-block:var(--pds-spacing-4xs)}.pds-dropdown__action-item-trigger{display:flex;flex-shrink:0;opacity:0;pointer-events:none;transition:opacity .15s ease}.pds-dropdown__action-item:focus-within .pds-dropdown__action-item-trigger,.pds-dropdown__action-item:has(.pds-menu-button--expanded)
|
|
2
2
|
.pds-dropdown__action-item-trigger,.pds-dropdown__action-item:hover .pds-dropdown__action-item-trigger{opacity:1;pointer-events:auto}.pds-dropdown__checkbox-box{align-items:center;background-color:transparent;border:var(--pds-border-width-default) solid var(--pds-color-foreground-default);border-radius:var(--pds-border-radius-default);color:var(--pds-color-input-selected-foreground);display:flex;flex-shrink:0;height:1rem;justify-content:center;padding:.0625rem;transition:var(--pds-animation-transition-default);width:1rem}.pds-dropdown__checkbox-box--checked,.pds-dropdown__checkbox-box--indeterminate{background-color:var(--pds-color-input-selected-background);border-color:var(--pds-color-input-selected-background)}.pds-dropdown__checkbox-icon{height:100%;width:100%}.pds-dropdown__heading{color:var(--pds-color-dropdown-heading);font-family:var(--pds-typography-ff-compact);font-size:var(--pds-typography-size-xs);font-weight:var(--pds-typography-fw-regular);letter-spacing:var(--pds-typography-ls-m);line-height:var(--pds-typography-lh-s);list-style:none;padding:var(--pds-spacing-xs) var(--pds-spacing-xs) var(--pds-spacing-3xs)}.pds-dropdown__separator{border-block-end:var(--pds-border-width-default) solid var(--pds-color-dropdown-separator);list-style:none;margin-block-end:2px;margin-inline:calc(var(--pds-spacing-2xs)*-1);padding-block:2px}.pds-dropdown__filter{list-style:none;margin-block-start:calc(var(--pds-spacing-2xs)*-1);margin-inline:calc(var(--pds-spacing-2xs)*-1);padding:0}.pds-dropdown__filter-wrapper{align-items:center;display:flex;position:relative}.pds-dropdown__filter-icon{block-size:.875rem;color:var(--pds-color-foreground-default-secondary);inline-size:.875rem;left:var(--pds-spacing-s);pointer-events:none;position:absolute}.pds-dropdown__filter-wrapper:has(.pds-dropdown__filter-icon)
|
|
3
3
|
.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-dropdown-separator);border-radius:0;box-sizing:border-box;color:var(--pds-color-foreground-default);font-family:inherit;font-size:var(--pds-typography-size-s);padding:var(--pds-spacing-s);width:100%}.pds-dropdown__filter-input::placeholder{color:var(--pds-color-input-placeholder);font-size:var(--pds-typography-size-s)}.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-outline) solid var(--pds-color-interactive-focus);outline-offset:-3px}.pds-dropdown__no-results{color:var(--pds-color-foreground-default-secondary);font-size:var(--pds-typography-size-s);padding-block-end:var(--pds-spacing-s);padding-block-start:var(--pds-spacing-xs);padding-inline:var(--pds-spacing-s)}.pds-dropdown__footer{background-color:var(--pds-color-dropdown-background);border-block-start:var(--pds-border-width-default) solid var(--pds-color-dropdown-separator);bottom:calc(var(--pds-spacing-2xs)*-1);list-style:none;margin-block-end:calc(var(--pds-spacing-2xs)*-1);margin-block-start:var(--pds-spacing-3xs);margin-inline:calc(var(--pds-spacing-2xs)*-1);padding:var(--pds-spacing-s);position:sticky}.pds-dropdown__footer a,.pds-dropdown__footer button{align-items:center;background:none;border:none;color:var(--pds-color-interactive-link-default);cursor:pointer;display:flex;font:inherit;gap:var(--pds-spacing-3xs);padding:0;text-decoration:none;width:100%}.pds-dropdown__footer a:hover,.pds-dropdown__footer button:hover{color:var(--pds-color-interactive-link-hover);text-decoration:underline}.pds-dropdown__footer a:focus-visible,.pds-dropdown__footer button:focus-visible{outline:var(--pds-border-width-outline) solid var(--pds-color-interactive-focus);outline-offset:2px}}
|