@porsche-design-system/components-react 4.2.0-rc.4 → 4.2.0
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/CHANGELOG.md +21 -0
- package/cjs/lib/components/flyout.wrapper.cjs +3 -3
- package/emotion/package.json +1 -8
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/esm/lib/components/button.wrapper.d.ts +24 -24
- package/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +10 -10
- package/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/esm/lib/components/flyout.wrapper.d.ts +31 -21
- package/esm/lib/components/flyout.wrapper.mjs +3 -3
- package/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/esm/lib/components/link.wrapper.d.ts +20 -20
- package/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +30 -30
- package/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/esm/lib/components/table.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/package.json +6 -6
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +144 -352
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +177 -90
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +8 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +144 -352
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +174 -91
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +9 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/button.wrapper.d.ts +24 -24
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +31 -21
- package/ssr/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/ssr/esm/lib/components/link.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/banner.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/popover.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
- package/tailwindcss/index.css +57 -75
- package/vanilla-extract/package.json +1 -8
|
@@ -2,46 +2,46 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, DrilldownAriaAttribute, DrilldownUpdateEventDetail } from '../types';
|
|
3
3
|
export type PDrilldownProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets which `p-drilldown-item` (by `identifier`) is currently expanded to show its sub-navigation level.
|
|
6
6
|
*/
|
|
7
7
|
activeIdentifier?: string | undefined;
|
|
8
8
|
/**
|
|
9
|
-
* Sets ARIA attributes.
|
|
9
|
+
* Sets ARIA attributes on the drilldown dialog element for improved screen reader accessibility.
|
|
10
10
|
*/
|
|
11
11
|
aria?: SelectedAriaAttributes<DrilldownAriaAttribute>;
|
|
12
12
|
/**
|
|
13
|
-
* Emitted when the
|
|
13
|
+
* Emitted when the user closes the drilldown via the close button or Escape key.
|
|
14
14
|
*/
|
|
15
15
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
16
16
|
/**
|
|
17
|
-
* Emitted when `activeIdentifier`
|
|
17
|
+
* Emitted when the active navigation level changes, with the new `activeIdentifier` in the event detail.
|
|
18
18
|
*/
|
|
19
19
|
onUpdate?: (event: CustomEvent<DrilldownUpdateEventDetail>) => void;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Controls whether the drilldown navigation panel is visible.
|
|
22
22
|
* @default false
|
|
23
23
|
*/
|
|
24
24
|
open?: boolean;
|
|
25
25
|
};
|
|
26
26
|
export declare const PDrilldown: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Sets which `p-drilldown-item` (by `identifier`) is currently expanded to show its sub-navigation level.
|
|
29
29
|
*/
|
|
30
30
|
activeIdentifier?: string | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Sets ARIA attributes.
|
|
32
|
+
* Sets ARIA attributes on the drilldown dialog element for improved screen reader accessibility.
|
|
33
33
|
*/
|
|
34
34
|
aria?: SelectedAriaAttributes<DrilldownAriaAttribute>;
|
|
35
35
|
/**
|
|
36
|
-
* Emitted when the
|
|
36
|
+
* Emitted when the user closes the drilldown via the close button or Escape key.
|
|
37
37
|
*/
|
|
38
38
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
39
39
|
/**
|
|
40
|
-
* Emitted when `activeIdentifier`
|
|
40
|
+
* Emitted when the active navigation level changes, with the new `activeIdentifier` in the event detail.
|
|
41
41
|
*/
|
|
42
42
|
onUpdate?: (event: CustomEvent<DrilldownUpdateEventDetail>) => void;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Controls whether the drilldown navigation panel is visible.
|
|
45
45
|
* @default false
|
|
46
46
|
*/
|
|
47
47
|
open?: boolean;
|
|
@@ -2,62 +2,62 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaRole, FieldsetLabelSize, FieldsetState } from '../types';
|
|
3
3
|
export type PFieldsetProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Overrides the ARIA role on the fieldset — use `radiogroup` when grouping radio buttons.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaRole<"radiogroup">;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the visible legend text displayed above the grouped form controls.
|
|
10
10
|
* @default ''
|
|
11
11
|
*/
|
|
12
12
|
label?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the font size of the fieldset label (`small`, `medium`, or `large`).
|
|
15
15
|
* @default 'medium'
|
|
16
16
|
*/
|
|
17
17
|
labelSize?: FieldsetLabelSize;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets the validation feedback message displayed below the fieldset when `state` is `success` or `error`.
|
|
20
20
|
* @default ''
|
|
21
21
|
*/
|
|
22
22
|
message?: string;
|
|
23
23
|
/**
|
|
24
|
-
* Marks the
|
|
24
|
+
* Marks all controls within the fieldset as required and adds a required indicator to the label.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
required?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the validation state of the fieldset, controlling the color and style of the feedback message.
|
|
30
30
|
* @default 'none'
|
|
31
31
|
*/
|
|
32
32
|
state?: FieldsetState;
|
|
33
33
|
};
|
|
34
34
|
export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Overrides the ARIA role on the fieldset — use `radiogroup` when grouping radio buttons.
|
|
37
37
|
*/
|
|
38
38
|
aria?: SelectedAriaRole<"radiogroup">;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Sets the visible legend text displayed above the grouped form controls.
|
|
41
41
|
* @default ''
|
|
42
42
|
*/
|
|
43
43
|
label?: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Sets the font size of the fieldset label (`small`, `medium`, or `large`).
|
|
46
46
|
* @default 'medium'
|
|
47
47
|
*/
|
|
48
48
|
labelSize?: FieldsetLabelSize;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Sets the validation feedback message displayed below the fieldset when `state` is `success` or `error`.
|
|
51
51
|
* @default ''
|
|
52
52
|
*/
|
|
53
53
|
message?: string;
|
|
54
54
|
/**
|
|
55
|
-
* Marks the
|
|
55
|
+
* Marks all controls within the fieldset as required and adds a required indicator to the label.
|
|
56
56
|
* @default false
|
|
57
57
|
*/
|
|
58
58
|
required?: boolean;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Sets the validation state of the fieldset, controlling the color and style of the feedback message.
|
|
61
61
|
* @default 'none'
|
|
62
62
|
*/
|
|
63
63
|
state?: FieldsetState;
|
|
@@ -1,97 +1,107 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, FlyoutAriaAttribute, FlyoutBackdrop, FlyoutBackground, FlyoutFooterBehavior, FlyoutMotionHiddenEndEventDetail, FlyoutMotionVisibleEndEventDetail, FlyoutPosition } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, FlyoutAriaAttribute, FlyoutBackdrop, FlyoutBackground, FlyoutFooterBehavior, BreakpointCustomizable, FlyoutMotionHiddenEndEventDetail, FlyoutMotionVisibleEndEventDetail, FlyoutPosition } from '../types';
|
|
3
3
|
export type PFlyoutProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the flyout dialog element for improved screen reader accessibility.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<FlyoutAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the backdrop style. Use `blur` when background content is irrelevant; use `shading` when users still need visual context.
|
|
10
10
|
* @default 'blur'
|
|
11
11
|
*/
|
|
12
12
|
backdrop?: FlyoutBackdrop;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the background color of the flyout panel (`canvas` or `surface`).
|
|
15
15
|
* @default 'canvas'
|
|
16
16
|
*/
|
|
17
17
|
background?: FlyoutBackground;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* When enabled, clicking the backdrop will not close the flyout.
|
|
20
20
|
* @default false
|
|
21
21
|
*/
|
|
22
22
|
disableBackdropClick?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Controls footer behavior. `fixed` keeps it anchored at the bottom; `sticky` pins it only when content overflows.
|
|
25
25
|
* @default 'sticky'
|
|
26
26
|
*/
|
|
27
27
|
footerBehavior?: FlyoutFooterBehavior;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* If true the flyout stretches to the full viewport width with squared corners. Useful for smaller viewports where the flyout would otherwise fill the screen but still show rounded corners.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
fullscreen?: BreakpointCustomizable<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* Emitted when the user closes the flyout via the close button, backdrop click, or Escape key.
|
|
30
35
|
*/
|
|
31
36
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
32
37
|
/**
|
|
33
|
-
* Emitted
|
|
38
|
+
* Emitted after the flyout's close transition completes and the panel is fully hidden.
|
|
34
39
|
*/
|
|
35
40
|
onMotionHiddenEnd?: (event: CustomEvent<FlyoutMotionHiddenEndEventDetail>) => void;
|
|
36
41
|
/**
|
|
37
|
-
* Emitted
|
|
42
|
+
* Emitted after the flyout's open transition completes and the panel is fully visible.
|
|
38
43
|
*/
|
|
39
44
|
onMotionVisibleEnd?: (event: CustomEvent<FlyoutMotionVisibleEndEventDetail>) => void;
|
|
40
45
|
/**
|
|
41
|
-
*
|
|
46
|
+
* Controls whether the flyout panel is visible.
|
|
42
47
|
* @default false
|
|
43
48
|
*/
|
|
44
49
|
open: boolean;
|
|
45
50
|
/**
|
|
46
|
-
*
|
|
51
|
+
* Sets the side the flyout slides in from — `start` for left or `end` for right in LTR layouts.
|
|
47
52
|
* @default 'end'
|
|
48
53
|
*/
|
|
49
54
|
position?: FlyoutPosition;
|
|
50
55
|
};
|
|
51
56
|
export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
52
57
|
/**
|
|
53
|
-
* Sets ARIA attributes.
|
|
58
|
+
* Sets ARIA attributes on the flyout dialog element for improved screen reader accessibility.
|
|
54
59
|
*/
|
|
55
60
|
aria?: SelectedAriaAttributes<FlyoutAriaAttribute>;
|
|
56
61
|
/**
|
|
57
|
-
*
|
|
62
|
+
* Sets the backdrop style. Use `blur` when background content is irrelevant; use `shading` when users still need visual context.
|
|
58
63
|
* @default 'blur'
|
|
59
64
|
*/
|
|
60
65
|
backdrop?: FlyoutBackdrop;
|
|
61
66
|
/**
|
|
62
|
-
*
|
|
67
|
+
* Sets the background color of the flyout panel (`canvas` or `surface`).
|
|
63
68
|
* @default 'canvas'
|
|
64
69
|
*/
|
|
65
70
|
background?: FlyoutBackground;
|
|
66
71
|
/**
|
|
67
|
-
*
|
|
72
|
+
* When enabled, clicking the backdrop will not close the flyout.
|
|
68
73
|
* @default false
|
|
69
74
|
*/
|
|
70
75
|
disableBackdropClick?: boolean;
|
|
71
76
|
/**
|
|
72
|
-
*
|
|
77
|
+
* Controls footer behavior. `fixed` keeps it anchored at the bottom; `sticky` pins it only when content overflows.
|
|
73
78
|
* @default 'sticky'
|
|
74
79
|
*/
|
|
75
80
|
footerBehavior?: FlyoutFooterBehavior;
|
|
76
81
|
/**
|
|
77
|
-
*
|
|
82
|
+
* If true the flyout stretches to the full viewport width with squared corners. Useful for smaller viewports where the flyout would otherwise fill the screen but still show rounded corners.
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
fullscreen?: BreakpointCustomizable<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* Emitted when the user closes the flyout via the close button, backdrop click, or Escape key.
|
|
78
88
|
*/
|
|
79
89
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
80
90
|
/**
|
|
81
|
-
* Emitted
|
|
91
|
+
* Emitted after the flyout's close transition completes and the panel is fully hidden.
|
|
82
92
|
*/
|
|
83
93
|
onMotionHiddenEnd?: (event: CustomEvent<FlyoutMotionHiddenEndEventDetail>) => void;
|
|
84
94
|
/**
|
|
85
|
-
* Emitted
|
|
95
|
+
* Emitted after the flyout's open transition completes and the panel is fully visible.
|
|
86
96
|
*/
|
|
87
97
|
onMotionVisibleEnd?: (event: CustomEvent<FlyoutMotionVisibleEndEventDetail>) => void;
|
|
88
98
|
/**
|
|
89
|
-
*
|
|
99
|
+
* Controls whether the flyout panel is visible.
|
|
90
100
|
* @default false
|
|
91
101
|
*/
|
|
92
102
|
open: boolean;
|
|
93
103
|
/**
|
|
94
|
-
*
|
|
104
|
+
* Sets the side the flyout slides in from — `start` for left or `end` for right in LTR layouts.
|
|
95
105
|
* @default 'end'
|
|
96
106
|
*/
|
|
97
107
|
position?: FlyoutPosition;
|
|
@@ -2,72 +2,72 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { HeadingAlign, HeadingColor, HeadingHyphens, BreakpointCustomizable, HeadingSize, HeadingTag, HeadingWeight } from '../types';
|
|
3
3
|
export type PHeadingProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the horizontal text alignment (`start`, `center`, `end`, or `inherit`).
|
|
6
6
|
* @default 'start'
|
|
7
7
|
*/
|
|
8
8
|
align?: HeadingAlign;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the text color using PDS color tokens.
|
|
11
11
|
* @default 'primary'
|
|
12
12
|
*/
|
|
13
13
|
color?: HeadingColor;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Truncates the text with an ellipsis when it overflows the container on a single line. Cannot be combined with multi-line content.
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
18
|
ellipsis?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
* Controls
|
|
20
|
+
* Controls hyphenation behavior — `auto` lets the browser decide, `manual` only breaks at `­`, `none` disables it entirely.
|
|
21
21
|
* @default 'none'
|
|
22
22
|
*/
|
|
23
23
|
hyphens?: HeadingHyphens;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Sets the visual size of the heading. Use `inherit` to derive size from the parent. Supports responsive breakpoint values.
|
|
26
26
|
* @default '2xl'
|
|
27
27
|
*/
|
|
28
28
|
size?: BreakpointCustomizable<HeadingSize>;
|
|
29
29
|
/**
|
|
30
|
-
* Sets the HTML heading tag (h1
|
|
30
|
+
* Sets the HTML heading tag (h1–h6) for correct document outline placement. When omitted, the tag is inferred from `size`.
|
|
31
31
|
*/
|
|
32
32
|
tag?: HeadingTag;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Sets the font weight — `normal`, `semibold`, or `bold`.
|
|
35
35
|
* @default 'normal'
|
|
36
36
|
*/
|
|
37
37
|
weight?: HeadingWeight;
|
|
38
38
|
};
|
|
39
39
|
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Sets the horizontal text alignment (`start`, `center`, `end`, or `inherit`).
|
|
42
42
|
* @default 'start'
|
|
43
43
|
*/
|
|
44
44
|
align?: HeadingAlign;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Sets the text color using PDS color tokens.
|
|
47
47
|
* @default 'primary'
|
|
48
48
|
*/
|
|
49
49
|
color?: HeadingColor;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Truncates the text with an ellipsis when it overflows the container on a single line. Cannot be combined with multi-line content.
|
|
52
52
|
* @default false
|
|
53
53
|
*/
|
|
54
54
|
ellipsis?: boolean;
|
|
55
55
|
/**
|
|
56
|
-
* Controls
|
|
56
|
+
* Controls hyphenation behavior — `auto` lets the browser decide, `manual` only breaks at `­`, `none` disables it entirely.
|
|
57
57
|
* @default 'none'
|
|
58
58
|
*/
|
|
59
59
|
hyphens?: HeadingHyphens;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Sets the visual size of the heading. Use `inherit` to derive size from the parent. Supports responsive breakpoint values.
|
|
62
62
|
* @default '2xl'
|
|
63
63
|
*/
|
|
64
64
|
size?: BreakpointCustomizable<HeadingSize>;
|
|
65
65
|
/**
|
|
66
|
-
* Sets the HTML heading tag (h1
|
|
66
|
+
* Sets the HTML heading tag (h1–h6) for correct document outline placement. When omitted, the tag is inferred from `size`.
|
|
67
67
|
*/
|
|
68
68
|
tag?: HeadingTag;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Sets the font weight — `normal`, `semibold`, or `bold`.
|
|
71
71
|
* @default 'normal'
|
|
72
72
|
*/
|
|
73
73
|
weight?: HeadingWeight;
|
|
@@ -2,51 +2,51 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, IconAriaAttribute, IconColor, IconName, BreakpointCustomizable, IconSize } from '../types';
|
|
3
3
|
export type PIconProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the icon — use `aria-label` to make the icon meaningful to screen readers when it conveys information.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the fill color of the icon using PDS color tokens.
|
|
10
10
|
* @default 'primary'
|
|
11
11
|
*/
|
|
12
12
|
color?: IconColor;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Selects an icon from the built-in PDS icon library by name (e.g. `arrow-right`, `close`).
|
|
15
15
|
* @default 'arrow-right'
|
|
16
16
|
*/
|
|
17
17
|
name?: IconName;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets the icon size using the PDS typographic scale. Use `inherit` to derive size from the parent element. Supports responsive breakpoint values.
|
|
20
20
|
* @default 'sm'
|
|
21
21
|
*/
|
|
22
22
|
size?: BreakpointCustomizable<IconSize>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Sets a path to a custom SVG icon, used instead of the built-in icon library.
|
|
25
25
|
*/
|
|
26
26
|
source?: string;
|
|
27
27
|
};
|
|
28
28
|
export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
29
29
|
/**
|
|
30
|
-
* Sets ARIA attributes.
|
|
30
|
+
* Sets ARIA attributes on the icon — use `aria-label` to make the icon meaningful to screen readers when it conveys information.
|
|
31
31
|
*/
|
|
32
32
|
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Sets the fill color of the icon using PDS color tokens.
|
|
35
35
|
* @default 'primary'
|
|
36
36
|
*/
|
|
37
37
|
color?: IconColor;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Selects an icon from the built-in PDS icon library by name (e.g. `arrow-right`, `close`).
|
|
40
40
|
* @default 'arrow-right'
|
|
41
41
|
*/
|
|
42
42
|
name?: IconName;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Sets the icon size using the PDS typographic scale. Use `inherit` to derive size from the parent element. Supports responsive breakpoint values.
|
|
45
45
|
* @default 'sm'
|
|
46
46
|
*/
|
|
47
47
|
size?: BreakpointCustomizable<IconSize>;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Sets a path to a custom SVG icon, used instead of the built-in icon library.
|
|
50
50
|
*/
|
|
51
51
|
source?: string;
|
|
52
52
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -2,98 +2,98 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { InlineNotificationActionIcon, InlineNotificationHeadingTag, InlineNotificationState } from '../types';
|
|
3
3
|
export type PInlineNotificationProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the icon displayed inside the action button using a PDS icon name.
|
|
6
6
|
* @default 'arrow-right'
|
|
7
7
|
*/
|
|
8
8
|
actionIcon?: InlineNotificationActionIcon;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the label text of the optional action button inside the notification.
|
|
11
11
|
*/
|
|
12
12
|
actionLabel?: string;
|
|
13
13
|
/**
|
|
14
|
-
* Disables the action button and shows a
|
|
14
|
+
* Disables the action button and shows a spinner to indicate an ongoing operation.
|
|
15
15
|
* @default false
|
|
16
16
|
*/
|
|
17
17
|
actionLoading?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets the supporting description text shown below the heading.
|
|
20
20
|
* @default ''
|
|
21
21
|
*/
|
|
22
22
|
description?: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Shows a dismiss button so the user can manually close the notification.
|
|
25
25
|
* @default true
|
|
26
26
|
*/
|
|
27
27
|
dismissButton?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the heading text displayed at the top of the inline notification.
|
|
30
30
|
* @default ''
|
|
31
31
|
*/
|
|
32
32
|
heading?: string;
|
|
33
33
|
/**
|
|
34
|
-
* Sets
|
|
34
|
+
* Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure.
|
|
35
35
|
* @default 'h5'
|
|
36
36
|
*/
|
|
37
37
|
headingTag?: InlineNotificationHeadingTag;
|
|
38
38
|
/**
|
|
39
|
-
* Emitted when the action button
|
|
39
|
+
* Emitted when the user clicks the action button.
|
|
40
40
|
*/
|
|
41
41
|
onAction?: (event: CustomEvent<void>) => void;
|
|
42
42
|
/**
|
|
43
|
-
* Emitted when the
|
|
43
|
+
* Emitted when the user clicks the dismiss button.
|
|
44
44
|
*/
|
|
45
45
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sets the visual state — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
|
|
48
48
|
* @default 'info'
|
|
49
49
|
*/
|
|
50
50
|
state?: InlineNotificationState;
|
|
51
51
|
};
|
|
52
52
|
export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Sets the icon displayed inside the action button using a PDS icon name.
|
|
55
55
|
* @default 'arrow-right'
|
|
56
56
|
*/
|
|
57
57
|
actionIcon?: InlineNotificationActionIcon;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Sets the label text of the optional action button inside the notification.
|
|
60
60
|
*/
|
|
61
61
|
actionLabel?: string;
|
|
62
62
|
/**
|
|
63
|
-
* Disables the action button and shows a
|
|
63
|
+
* Disables the action button and shows a spinner to indicate an ongoing operation.
|
|
64
64
|
* @default false
|
|
65
65
|
*/
|
|
66
66
|
actionLoading?: boolean;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Sets the supporting description text shown below the heading.
|
|
69
69
|
* @default ''
|
|
70
70
|
*/
|
|
71
71
|
description?: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Shows a dismiss button so the user can manually close the notification.
|
|
74
74
|
* @default true
|
|
75
75
|
*/
|
|
76
76
|
dismissButton?: boolean;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Sets the heading text displayed at the top of the inline notification.
|
|
79
79
|
* @default ''
|
|
80
80
|
*/
|
|
81
81
|
heading?: string;
|
|
82
82
|
/**
|
|
83
|
-
* Sets
|
|
83
|
+
* Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure.
|
|
84
84
|
* @default 'h5'
|
|
85
85
|
*/
|
|
86
86
|
headingTag?: InlineNotificationHeadingTag;
|
|
87
87
|
/**
|
|
88
|
-
* Emitted when the action button
|
|
88
|
+
* Emitted when the user clicks the action button.
|
|
89
89
|
*/
|
|
90
90
|
onAction?: (event: CustomEvent<void>) => void;
|
|
91
91
|
/**
|
|
92
|
-
* Emitted when the
|
|
92
|
+
* Emitted when the user clicks the dismiss button.
|
|
93
93
|
*/
|
|
94
94
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Sets the visual state — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
|
|
97
97
|
* @default 'info'
|
|
98
98
|
*/
|
|
99
99
|
state?: InlineNotificationState;
|