@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,145 +2,145 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, SegmentedControlColumns, SegmentedControlChangeEventDetail, SegmentedControlState } from '../types';
|
|
3
3
|
export type PSegmentedControlProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets the
|
|
5
|
+
* Sets the number of equal-width columns for the item layout. Use `auto` to distribute items based on their content width. Supports responsive breakpoint values.
|
|
6
6
|
* @default 'auto'
|
|
7
7
|
*/
|
|
8
8
|
columns?: BreakpointCustomizable<SegmentedControlColumns>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Reduces the item height and spacing for use in dense layouts where vertical space is limited.
|
|
11
11
|
* @default false
|
|
12
12
|
*/
|
|
13
13
|
compact?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets a supplementary description displayed below the label to give users additional context about the segmented control.
|
|
16
16
|
* @default ''
|
|
17
17
|
*/
|
|
18
18
|
description?: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Prevents user interaction with all items in the segmented control and excludes the value from form submissions.
|
|
21
21
|
* @default false
|
|
22
22
|
*/
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Associates the segmented control with a form element by its ID when it is not a direct descendant of that form.
|
|
26
26
|
*/
|
|
27
27
|
form?: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Sets the visible label text displayed above the segmented control to describe the group of options.
|
|
35
35
|
* @default ''
|
|
36
36
|
*/
|
|
37
37
|
label?: string;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sets the validation feedback message displayed below the segmented control when `state` is `success` or `error`.
|
|
40
40
|
* @default ''
|
|
41
41
|
*/
|
|
42
42
|
message?: string;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Sets the name of the control submitted with the form data to identify the selected value on the server.
|
|
45
45
|
*/
|
|
46
46
|
name?: string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Prevents items from wrapping to new rows and renders them in a single horizontally scrollable row instead.
|
|
49
49
|
* @default false
|
|
50
50
|
*/
|
|
51
51
|
noWrap?: boolean;
|
|
52
52
|
/**
|
|
53
|
-
* Emitted when the segmented
|
|
53
|
+
* Emitted when the segmented control loses focus, useful for triggering validation on blur.
|
|
54
54
|
*/
|
|
55
55
|
onBlur?: (event: CustomEvent<void>) => void;
|
|
56
56
|
/**
|
|
57
|
-
* Emitted when the
|
|
57
|
+
* Emitted when the user selects a different item, carrying the new value in the event detail.
|
|
58
58
|
*/
|
|
59
59
|
onChange?: (event: CustomEvent<SegmentedControlChangeEventDetail>) => void;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Marks the segmented control as required so the form cannot be submitted until one option is selected.
|
|
62
62
|
* @default false
|
|
63
63
|
*/
|
|
64
64
|
required?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Sets the validation state of the segmented control, controlling its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
67
67
|
* @default 'none'
|
|
68
68
|
*/
|
|
69
69
|
state?: SegmentedControlState;
|
|
70
70
|
/**
|
|
71
|
-
* Sets the
|
|
71
|
+
* Sets the currently selected item's value and pre-selects the matching option when the component renders.
|
|
72
72
|
*/
|
|
73
73
|
value?: string | number;
|
|
74
74
|
};
|
|
75
75
|
export declare const PSegmentedControl: 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"> & {
|
|
76
76
|
/**
|
|
77
|
-
* Sets the
|
|
77
|
+
* Sets the number of equal-width columns for the item layout. Use `auto` to distribute items based on their content width. Supports responsive breakpoint values.
|
|
78
78
|
* @default 'auto'
|
|
79
79
|
*/
|
|
80
80
|
columns?: BreakpointCustomizable<SegmentedControlColumns>;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Reduces the item height and spacing for use in dense layouts where vertical space is limited.
|
|
83
83
|
* @default false
|
|
84
84
|
*/
|
|
85
85
|
compact?: boolean;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Sets a supplementary description displayed below the label to give users additional context about the segmented control.
|
|
88
88
|
* @default ''
|
|
89
89
|
*/
|
|
90
90
|
description?: string;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Prevents user interaction with all items in the segmented control and excludes the value from form submissions.
|
|
93
93
|
* @default false
|
|
94
94
|
*/
|
|
95
95
|
disabled?: boolean;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Associates the segmented control with a form element by its ID when it is not a direct descendant of that form.
|
|
98
98
|
*/
|
|
99
99
|
form?: string;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
104
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Sets the visible label text displayed above the segmented control to describe the group of options.
|
|
107
107
|
* @default ''
|
|
108
108
|
*/
|
|
109
109
|
label?: string;
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* Sets the validation feedback message displayed below the segmented control when `state` is `success` or `error`.
|
|
112
112
|
* @default ''
|
|
113
113
|
*/
|
|
114
114
|
message?: string;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* Sets the name of the control submitted with the form data to identify the selected value on the server.
|
|
117
117
|
*/
|
|
118
118
|
name?: string;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Prevents items from wrapping to new rows and renders them in a single horizontally scrollable row instead.
|
|
121
121
|
* @default false
|
|
122
122
|
*/
|
|
123
123
|
noWrap?: boolean;
|
|
124
124
|
/**
|
|
125
|
-
* Emitted when the segmented
|
|
125
|
+
* Emitted when the segmented control loses focus, useful for triggering validation on blur.
|
|
126
126
|
*/
|
|
127
127
|
onBlur?: (event: CustomEvent<void>) => void;
|
|
128
128
|
/**
|
|
129
|
-
* Emitted when the
|
|
129
|
+
* Emitted when the user selects a different item, carrying the new value in the event detail.
|
|
130
130
|
*/
|
|
131
131
|
onChange?: (event: CustomEvent<SegmentedControlChangeEventDetail>) => void;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* Marks the segmented control as required so the form cannot be submitted until one option is selected.
|
|
134
134
|
* @default false
|
|
135
135
|
*/
|
|
136
136
|
required?: boolean;
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* Sets the validation state of the segmented control, controlling its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
139
139
|
* @default 'none'
|
|
140
140
|
*/
|
|
141
141
|
state?: SegmentedControlState;
|
|
142
142
|
/**
|
|
143
|
-
* Sets the
|
|
143
|
+
* Sets the currently selected item's value and pre-selects the matching option when the component renders.
|
|
144
144
|
*/
|
|
145
145
|
value?: string | number;
|
|
146
146
|
} & {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
2
|
export type PSelectOptionProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Prevents the option from being selected and visually dims it to indicate it is unavailable.
|
|
5
5
|
* @default false
|
|
6
6
|
*/
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the value submitted with the form data when this option is selected in the parent select control.
|
|
10
10
|
*/
|
|
11
11
|
value?: string | number | null;
|
|
12
12
|
};
|
|
13
13
|
export declare const PSelectOption: 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"> & {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Prevents the option from being selected and visually dims it to indicate it is unavailable.
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sets the value submitted with the form data when this option is selected in the parent select control.
|
|
21
21
|
*/
|
|
22
22
|
value?: string | number | null;
|
|
23
23
|
} & {
|
|
@@ -2,72 +2,72 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectDropdownDirection, BreakpointCustomizable, SelectChangeEventDetail, SelectToggleEventDetail, SelectState } from '../types';
|
|
3
3
|
export type PSelectProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Reduces the control height and padding for use in dense layouts where vertical space is limited.
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
compact?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets a supplementary description displayed below the label to give users additional guidance about the select.
|
|
11
11
|
* @default ''
|
|
12
12
|
*/
|
|
13
13
|
description?: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Prevents user interaction with the select and excludes its value from form submissions.
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Controls whether the dropdown list opens upward (`up`) or downward (`down`), or determines the direction automatically (`auto`).
|
|
21
21
|
* @default 'auto'
|
|
22
22
|
*/
|
|
23
23
|
dropdownDirection?: SelectDropdownDirection;
|
|
24
24
|
/**
|
|
25
|
-
* Shows
|
|
25
|
+
* Shows a text input inside the dropdown that filters the visible options as the user types. Ignored when the `filter` slot is used.
|
|
26
26
|
* @default false
|
|
27
27
|
*/
|
|
28
28
|
filter?: boolean;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Associates the select with a form element by its ID when it is not a direct descendant of that form.
|
|
31
31
|
*/
|
|
32
32
|
form?: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
35
35
|
* @default false
|
|
36
36
|
*/
|
|
37
37
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sets the visible label text displayed above the select control to identify its purpose.
|
|
40
40
|
* @default ''
|
|
41
41
|
*/
|
|
42
42
|
label?: string;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Sets the validation feedback message displayed below the select when `state` is `success` or `error`.
|
|
45
45
|
* @default ''
|
|
46
46
|
*/
|
|
47
47
|
message?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Sets the name of the control submitted with the form data, identifying the selected value on the server.
|
|
50
50
|
*/
|
|
51
51
|
name: string;
|
|
52
52
|
/**
|
|
53
|
-
* Emitted when the select
|
|
53
|
+
* Emitted when the select component loses focus, useful for triggering validation on blur.
|
|
54
54
|
*/
|
|
55
55
|
onBlur?: (event: CustomEvent<void>) => void;
|
|
56
56
|
/**
|
|
57
|
-
* Emitted when the
|
|
57
|
+
* Emitted when the user selects a different option, carrying the new value in the event detail.
|
|
58
58
|
*/
|
|
59
59
|
onChange?: (event: CustomEvent<SelectChangeEventDetail>) => void;
|
|
60
60
|
/**
|
|
61
|
-
* Emitted when the dropdown
|
|
61
|
+
* Emitted when the dropdown list opens or closes, carrying the new `isOpen` state in the event detail.
|
|
62
62
|
*/
|
|
63
63
|
onToggle?: (event: CustomEvent<SelectToggleEventDetail>) => void;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Marks the select as required so the form cannot be submitted unless a non-empty option is selected.
|
|
66
66
|
* @default false
|
|
67
67
|
*/
|
|
68
68
|
required?: boolean;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Sets the validation state of the select, which controls its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
71
71
|
* @default 'none'
|
|
72
72
|
*/
|
|
73
73
|
state?: SelectState;
|
|
@@ -78,72 +78,72 @@ export type PSelectProps = BaseProps & {
|
|
|
78
78
|
};
|
|
79
79
|
export declare const PSelect: 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"> & {
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Reduces the control height and padding for use in dense layouts where vertical space is limited.
|
|
82
82
|
* @default false
|
|
83
83
|
*/
|
|
84
84
|
compact?: boolean;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Sets a supplementary description displayed below the label to give users additional guidance about the select.
|
|
87
87
|
* @default ''
|
|
88
88
|
*/
|
|
89
89
|
description?: string;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Prevents user interaction with the select and excludes its value from form submissions.
|
|
92
92
|
* @default false
|
|
93
93
|
*/
|
|
94
94
|
disabled?: boolean;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Controls whether the dropdown list opens upward (`up`) or downward (`down`), or determines the direction automatically (`auto`).
|
|
97
97
|
* @default 'auto'
|
|
98
98
|
*/
|
|
99
99
|
dropdownDirection?: SelectDropdownDirection;
|
|
100
100
|
/**
|
|
101
|
-
* Shows
|
|
101
|
+
* Shows a text input inside the dropdown that filters the visible options as the user types. Ignored when the `filter` slot is used.
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
104
|
filter?: boolean;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Associates the select with a form element by its ID when it is not a direct descendant of that form.
|
|
107
107
|
*/
|
|
108
108
|
form?: string;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
111
111
|
* @default false
|
|
112
112
|
*/
|
|
113
113
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* Sets the visible label text displayed above the select control to identify its purpose.
|
|
116
116
|
* @default ''
|
|
117
117
|
*/
|
|
118
118
|
label?: string;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Sets the validation feedback message displayed below the select when `state` is `success` or `error`.
|
|
121
121
|
* @default ''
|
|
122
122
|
*/
|
|
123
123
|
message?: string;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* Sets the name of the control submitted with the form data, identifying the selected value on the server.
|
|
126
126
|
*/
|
|
127
127
|
name: string;
|
|
128
128
|
/**
|
|
129
|
-
* Emitted when the select
|
|
129
|
+
* Emitted when the select component loses focus, useful for triggering validation on blur.
|
|
130
130
|
*/
|
|
131
131
|
onBlur?: (event: CustomEvent<void>) => void;
|
|
132
132
|
/**
|
|
133
|
-
* Emitted when the
|
|
133
|
+
* Emitted when the user selects a different option, carrying the new value in the event detail.
|
|
134
134
|
*/
|
|
135
135
|
onChange?: (event: CustomEvent<SelectChangeEventDetail>) => void;
|
|
136
136
|
/**
|
|
137
|
-
* Emitted when the dropdown
|
|
137
|
+
* Emitted when the dropdown list opens or closes, carrying the new `isOpen` state in the event detail.
|
|
138
138
|
*/
|
|
139
139
|
onToggle?: (event: CustomEvent<SelectToggleEventDetail>) => void;
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* Marks the select as required so the form cannot be submitted unless a non-empty option is selected.
|
|
142
142
|
* @default false
|
|
143
143
|
*/
|
|
144
144
|
required?: boolean;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Sets the validation state of the select, which controls its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
147
147
|
* @default 'none'
|
|
148
148
|
*/
|
|
149
149
|
state?: SelectState;
|
|
@@ -2,76 +2,76 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, SheetAriaAttribute, SheetBackground, SheetMotionHiddenEndEventDetail, SheetMotionVisibleEndEventDetail } from '../types';
|
|
3
3
|
export type PSheetProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the sheet dialog element for improved accessibility when the default `aria-label` is insufficient.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<SheetAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the background color of the sheet panel (`canvas` or `surface`).
|
|
10
10
|
* @default 'canvas'
|
|
11
11
|
*/
|
|
12
12
|
background?: SheetBackground;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* When enabled, clicking the backdrop will not close the sheet.
|
|
15
15
|
* @default false
|
|
16
16
|
*/
|
|
17
17
|
disableBackdropClick?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Shows a dismiss button in the sheet header so users can manually close it.
|
|
20
20
|
* @default true
|
|
21
21
|
*/
|
|
22
22
|
dismissButton?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
* Emitted when the
|
|
24
|
+
* Emitted when the user dismisses the sheet via the close button, backdrop click, or Escape key.
|
|
25
25
|
*/
|
|
26
26
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
27
27
|
/**
|
|
28
|
-
* Emitted
|
|
28
|
+
* Emitted after the sheet's close transition has fully completed and the panel is hidden.
|
|
29
29
|
*/
|
|
30
30
|
onMotionHiddenEnd?: (event: CustomEvent<SheetMotionHiddenEndEventDetail>) => void;
|
|
31
31
|
/**
|
|
32
|
-
* Emitted
|
|
32
|
+
* Emitted after the sheet's open transition has fully completed and the panel is visible.
|
|
33
33
|
*/
|
|
34
34
|
onMotionVisibleEnd?: (event: CustomEvent<SheetMotionVisibleEndEventDetail>) => void;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Controls whether the sheet panel slides in from the bottom and is visible to the user.
|
|
37
37
|
* @default false
|
|
38
38
|
*/
|
|
39
39
|
open: boolean;
|
|
40
40
|
};
|
|
41
41
|
export declare const PSheet: 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"> & {
|
|
42
42
|
/**
|
|
43
|
-
* Sets ARIA attributes.
|
|
43
|
+
* Sets ARIA attributes on the sheet dialog element for improved accessibility when the default `aria-label` is insufficient.
|
|
44
44
|
*/
|
|
45
45
|
aria?: SelectedAriaAttributes<SheetAriaAttribute>;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sets the background color of the sheet panel (`canvas` or `surface`).
|
|
48
48
|
* @default 'canvas'
|
|
49
49
|
*/
|
|
50
50
|
background?: SheetBackground;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* When enabled, clicking the backdrop will not close the sheet.
|
|
53
53
|
* @default false
|
|
54
54
|
*/
|
|
55
55
|
disableBackdropClick?: boolean;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Shows a dismiss button in the sheet header so users can manually close it.
|
|
58
58
|
* @default true
|
|
59
59
|
*/
|
|
60
60
|
dismissButton?: boolean;
|
|
61
61
|
/**
|
|
62
|
-
* Emitted when the
|
|
62
|
+
* Emitted when the user dismisses the sheet via the close button, backdrop click, or Escape key.
|
|
63
63
|
*/
|
|
64
64
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
65
65
|
/**
|
|
66
|
-
* Emitted
|
|
66
|
+
* Emitted after the sheet's close transition has fully completed and the panel is hidden.
|
|
67
67
|
*/
|
|
68
68
|
onMotionHiddenEnd?: (event: CustomEvent<SheetMotionHiddenEndEventDetail>) => void;
|
|
69
69
|
/**
|
|
70
|
-
* Emitted
|
|
70
|
+
* Emitted after the sheet's open transition has fully completed and the panel is visible.
|
|
71
71
|
*/
|
|
72
72
|
onMotionVisibleEnd?: (event: CustomEvent<SheetMotionVisibleEndEventDetail>) => void;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Controls whether the sheet panel slides in from the bottom and is visible to the user.
|
|
75
75
|
* @default false
|
|
76
76
|
*/
|
|
77
77
|
open: boolean;
|
|
@@ -2,32 +2,32 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, SpinnerAriaAttribute, SpinnerColor, BreakpointCustomizable, SpinnerSize } from '../types';
|
|
3
3
|
export type PSpinnerProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the spinner's live region element; use `aria-label` to provide a descriptive loading message for screen readers.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<SpinnerAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the color of the spinning indicator using PDS semantic color tokens (e.g. `primary`, `contrast-high`, `inherit`).
|
|
10
10
|
* @default 'primary'
|
|
11
11
|
*/
|
|
12
12
|
color?: SpinnerColor;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the size of the spinner using the PDS typographic scale. Use `inherit` to derive the size from the parent element's font-size. Supports responsive breakpoint values.
|
|
15
15
|
* @default 'sm'
|
|
16
16
|
*/
|
|
17
17
|
size?: BreakpointCustomizable<SpinnerSize>;
|
|
18
18
|
};
|
|
19
19
|
export declare const PSpinner: 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"> & {
|
|
20
20
|
/**
|
|
21
|
-
* Sets ARIA attributes.
|
|
21
|
+
* Sets ARIA attributes on the spinner's live region element; use `aria-label` to provide a descriptive loading message for screen readers.
|
|
22
22
|
*/
|
|
23
23
|
aria?: SelectedAriaAttributes<SpinnerAriaAttribute>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Sets the color of the spinning indicator using PDS semantic color tokens (e.g. `primary`, `contrast-high`, `inherit`).
|
|
26
26
|
* @default 'primary'
|
|
27
27
|
*/
|
|
28
28
|
color?: SpinnerColor;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Sets the size of the spinner using the PDS typographic scale. Use `inherit` to derive the size from the parent element's font-size. Supports responsive breakpoint values.
|
|
31
31
|
* @default 'sm'
|
|
32
32
|
*/
|
|
33
33
|
size?: BreakpointCustomizable<SpinnerSize>;
|
|
@@ -7,7 +7,7 @@ export type PStepperHorizontalItemProps = BaseProps & {
|
|
|
7
7
|
*/
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The current progression state of the step. Use `current` for the active step, `complete` for finished steps, `warning` for steps with issues. Leave unset for future steps.
|
|
11
11
|
*/
|
|
12
12
|
state?: StepperHorizontalItemState;
|
|
13
13
|
};
|
|
@@ -18,7 +18,7 @@ export declare const PStepperHorizontalItem: import("react").ForwardRefExoticCom
|
|
|
18
18
|
*/
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
* The
|
|
21
|
+
* The current progression state of the step. Use `current` for the active step, `complete` for finished steps, `warning` for steps with issues. Leave unset for future steps.
|
|
22
22
|
*/
|
|
23
23
|
state?: StepperHorizontalItemState;
|
|
24
24
|
} & {
|
|
@@ -6,7 +6,7 @@ export type PStepperHorizontalProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
onUpdate?: (event: CustomEvent<StepperHorizontalUpdateEventDetail>) => void;
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The font size of the step labels.
|
|
10
10
|
* @default 'small'
|
|
11
11
|
*/
|
|
12
12
|
size?: BreakpointCustomizable<StepperHorizontalSize>;
|
|
@@ -17,7 +17,7 @@ export declare const PStepperHorizontal: import("react").ForwardRefExoticCompone
|
|
|
17
17
|
*/
|
|
18
18
|
onUpdate?: (event: CustomEvent<StepperHorizontalUpdateEventDetail>) => void;
|
|
19
19
|
/**
|
|
20
|
-
* The
|
|
20
|
+
* The font size of the step labels.
|
|
21
21
|
* @default 'small'
|
|
22
22
|
*/
|
|
23
23
|
size?: BreakpointCustomizable<StepperHorizontalSize>;
|