@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,82 +2,82 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, SwitchAlignLabel, SwitchUpdateEventDetail } from '../types';
|
|
3
3
|
export type PSwitchProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the position of the slotted label relative to the switch toggle, either before (`start`) or after (`end`) it. Supports responsive breakpoint values.
|
|
6
6
|
* @default 'end'
|
|
7
7
|
*/
|
|
8
8
|
alignLabel?: BreakpointCustomizable<SwitchAlignLabel>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Reflects the switch's current on/off state and allows setting the initial checked value when the component first renders.
|
|
11
11
|
* @default false
|
|
12
12
|
*/
|
|
13
13
|
checked?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Reduces the switch size and spacing for use in dense layouts where vertical space is limited.
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
18
|
compact?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Prevents user interaction with the switch and blocks all click and keyboard events while it is disabled.
|
|
21
21
|
* @default false
|
|
22
22
|
*/
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
26
26
|
* @default false
|
|
27
27
|
*/
|
|
28
28
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
29
29
|
/**
|
|
30
|
-
* Disables the switch and shows a loading
|
|
30
|
+
* Disables the switch and shows a loading spinner to indicate an ongoing asynchronous toggle operation.
|
|
31
31
|
* @default false
|
|
32
32
|
*/
|
|
33
33
|
loading?: boolean;
|
|
34
34
|
/**
|
|
35
|
-
* Emitted when the checked state
|
|
35
|
+
* Emitted when the user toggles the switch, carrying the new `checked` state in the event detail.
|
|
36
36
|
*/
|
|
37
37
|
onUpdate?: (event: CustomEvent<SwitchUpdateEventDetail>) => void;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Expands the space between the switch toggle and its label to fill the full available width of the container. Supports responsive breakpoint values.
|
|
40
40
|
* @default false
|
|
41
41
|
*/
|
|
42
42
|
stretch?: BreakpointCustomizable<boolean>;
|
|
43
43
|
};
|
|
44
44
|
export declare const PSwitch: 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"> & {
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Sets the position of the slotted label relative to the switch toggle, either before (`start`) or after (`end`) it. Supports responsive breakpoint values.
|
|
47
47
|
* @default 'end'
|
|
48
48
|
*/
|
|
49
49
|
alignLabel?: BreakpointCustomizable<SwitchAlignLabel>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Reflects the switch's current on/off state and allows setting the initial checked value when the component first renders.
|
|
52
52
|
* @default false
|
|
53
53
|
*/
|
|
54
54
|
checked?: boolean;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Reduces the switch size and spacing for use in dense layouts where vertical space is limited.
|
|
57
57
|
* @default false
|
|
58
58
|
*/
|
|
59
59
|
compact?: boolean;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Prevents user interaction with the switch and blocks all click and keyboard events while it is disabled.
|
|
62
62
|
* @default false
|
|
63
63
|
*/
|
|
64
64
|
disabled?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
67
67
|
* @default false
|
|
68
68
|
*/
|
|
69
69
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
70
70
|
/**
|
|
71
|
-
* Disables the switch and shows a loading
|
|
71
|
+
* Disables the switch and shows a loading spinner to indicate an ongoing asynchronous toggle operation.
|
|
72
72
|
* @default false
|
|
73
73
|
*/
|
|
74
74
|
loading?: boolean;
|
|
75
75
|
/**
|
|
76
|
-
* Emitted when the checked state
|
|
76
|
+
* Emitted when the user toggles the switch, carrying the new `checked` state in the event detail.
|
|
77
77
|
*/
|
|
78
78
|
onUpdate?: (event: CustomEvent<SwitchUpdateEventDetail>) => void;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Expands the space between the switch toggle and its label to fill the full available width of the container. Supports responsive breakpoint values.
|
|
81
81
|
* @default false
|
|
82
82
|
*/
|
|
83
83
|
stretch?: BreakpointCustomizable<boolean>;
|
|
@@ -2,33 +2,33 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TableHeadCellSort } from '../types';
|
|
3
3
|
export type PTableHeadCellProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Hides the label
|
|
5
|
+
* Hides the visible column label while keeping it accessible to screen readers. Only applies when `sort` is not set.
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
hideLabel?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* Allows
|
|
10
|
+
* Allows the column header text to wrap onto multiple lines instead of being truncated to a single line.
|
|
11
11
|
* @default false
|
|
12
12
|
*/
|
|
13
13
|
multiline?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Configures sorting behavior for this column by providing an `id`, `active` state, and current `direction` (`asc` or `desc`).
|
|
16
16
|
*/
|
|
17
17
|
sort?: TableHeadCellSort;
|
|
18
18
|
};
|
|
19
19
|
export declare const PTableHeadCell: 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
|
-
* Hides the label
|
|
21
|
+
* Hides the visible column label while keeping it accessible to screen readers. Only applies when `sort` is not set.
|
|
22
22
|
* @default false
|
|
23
23
|
*/
|
|
24
24
|
hideLabel?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
* Allows
|
|
26
|
+
* Allows the column header text to wrap onto multiple lines instead of being truncated to a single line.
|
|
27
27
|
* @default false
|
|
28
28
|
*/
|
|
29
29
|
multiline?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Configures sorting behavior for this column by providing an `id`, `active` state, and current `direction` (`asc` or `desc`).
|
|
32
32
|
*/
|
|
33
33
|
sort?: TableHeadCellSort;
|
|
34
34
|
} & {
|
|
@@ -2,50 +2,50 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TableLayout, TableUpdateEventDetail } from '../types';
|
|
3
3
|
export type PTableProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets a screen-reader-only accessible caption that describes the table's content; it is not visible in the browser. Use an element with `slot="caption"` for a visible caption instead.
|
|
6
6
|
*/
|
|
7
7
|
caption?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Reduces the cell padding and spacing for a more condensed table layout in data-dense UIs.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
compact?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* Controls the layout
|
|
14
|
+
* Controls the CSS `table-layout` algorithm: `auto` sizes columns to fit their content, `fixed` distributes width equally.
|
|
15
15
|
* @default 'auto'
|
|
16
16
|
*/
|
|
17
17
|
layout?: TableLayout;
|
|
18
18
|
/**
|
|
19
|
-
* Emitted when
|
|
19
|
+
* Emitted when the user clicks a sortable column header, carrying the new sort configuration in the event detail.
|
|
20
20
|
*/
|
|
21
21
|
onUpdate?: (event: CustomEvent<TableUpdateEventDetail>) => void;
|
|
22
22
|
/**
|
|
23
|
-
* @experimental Makes the scroll indicator sticky at the
|
|
23
|
+
* @experimental Makes the scroll position indicator sticky at the viewport edge while scrolling, indicating overflow in the table.
|
|
24
24
|
* @default false
|
|
25
25
|
*/
|
|
26
26
|
sticky?: boolean;
|
|
27
27
|
};
|
|
28
28
|
export declare const PTable: 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
|
-
*
|
|
30
|
+
* Sets a screen-reader-only accessible caption that describes the table's content; it is not visible in the browser. Use an element with `slot="caption"` for a visible caption instead.
|
|
31
31
|
*/
|
|
32
32
|
caption?: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Reduces the cell padding and spacing for a more condensed table layout in data-dense UIs.
|
|
35
35
|
* @default false
|
|
36
36
|
*/
|
|
37
37
|
compact?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
* Controls the layout
|
|
39
|
+
* Controls the CSS `table-layout` algorithm: `auto` sizes columns to fit their content, `fixed` distributes width equally.
|
|
40
40
|
* @default 'auto'
|
|
41
41
|
*/
|
|
42
42
|
layout?: TableLayout;
|
|
43
43
|
/**
|
|
44
|
-
* Emitted when
|
|
44
|
+
* Emitted when the user clicks a sortable column header, carrying the new sort configuration in the event detail.
|
|
45
45
|
*/
|
|
46
46
|
onUpdate?: (event: CustomEvent<TableUpdateEventDetail>) => void;
|
|
47
47
|
/**
|
|
48
|
-
* @experimental Makes the scroll indicator sticky at the
|
|
48
|
+
* @experimental Makes the scroll position indicator sticky at the viewport edge while scrolling, indicating overflow in the table.
|
|
49
49
|
* @default false
|
|
50
50
|
*/
|
|
51
51
|
sticky?: boolean;
|
|
@@ -2,24 +2,24 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TabsBarBackground, TabsBarUpdateEventDetail, BreakpointCustomizable, TabsBarSize, TabsBarWeight } from '../types';
|
|
3
3
|
export type PTabsBarProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the zero-based index of the currently active tab. Pass `undefined` to render all tabs in an unselected state.
|
|
6
6
|
*/
|
|
7
7
|
activeTabIndex?: number | undefined;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the background color of the tabs bar. Use `frosted` only when placed on top of images, videos, or gradients.
|
|
10
10
|
* @default 'none'
|
|
11
11
|
*/
|
|
12
12
|
background?: TabsBarBackground;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Reduces the tab height and padding for use in dense layouts where vertical space is limited.
|
|
15
15
|
*/
|
|
16
16
|
compact?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* Emitted when
|
|
18
|
+
* Emitted when the user clicks a different tab, carrying the new `activeTabIndex` in the event detail.
|
|
19
19
|
*/
|
|
20
20
|
onUpdate?: (event: CustomEvent<TabsBarUpdateEventDetail>) => void;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets the font size of the tab labels using the PDS typographic scale. Supports responsive breakpoint values.
|
|
23
23
|
* @default 'small'
|
|
24
24
|
*/
|
|
25
25
|
size?: BreakpointCustomizable<TabsBarSize>;
|
|
@@ -31,24 +31,24 @@ export type PTabsBarProps = BaseProps & {
|
|
|
31
31
|
};
|
|
32
32
|
export declare const PTabsBar: 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"> & {
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Sets the zero-based index of the currently active tab. Pass `undefined` to render all tabs in an unselected state.
|
|
35
35
|
*/
|
|
36
36
|
activeTabIndex?: number | undefined;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Sets the background color of the tabs bar. Use `frosted` only when placed on top of images, videos, or gradients.
|
|
39
39
|
* @default 'none'
|
|
40
40
|
*/
|
|
41
41
|
background?: TabsBarBackground;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Reduces the tab height and padding for use in dense layouts where vertical space is limited.
|
|
44
44
|
*/
|
|
45
45
|
compact?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* Emitted when
|
|
47
|
+
* Emitted when the user clicks a different tab, carrying the new `activeTabIndex` in the event detail.
|
|
48
48
|
*/
|
|
49
49
|
onUpdate?: (event: CustomEvent<TabsBarUpdateEventDetail>) => void;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Sets the font size of the tab labels using the PDS typographic scale. Supports responsive breakpoint values.
|
|
52
52
|
* @default 'small'
|
|
53
53
|
*/
|
|
54
54
|
size?: BreakpointCustomizable<TabsBarSize>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
2
|
export type PTabsItemProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Sets the label text displayed in the tab navigation button that the user clicks to activate this tab's content.
|
|
5
5
|
*/
|
|
6
6
|
label: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const PTabsItem: 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"> & {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the label text displayed in the tab navigation button that the user clicks to activate this tab's content.
|
|
11
11
|
*/
|
|
12
12
|
label: string;
|
|
13
13
|
} & {
|
|
@@ -2,25 +2,25 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TabsBackground, TabsUpdateEventDetail, BreakpointCustomizable, TabsSize, TabsWeight } from '../types';
|
|
3
3
|
export type PTabsProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the zero-based index of the currently active tab; update this prop to switch tabs programmatically.
|
|
6
6
|
* @default 0
|
|
7
7
|
*/
|
|
8
8
|
activeTabIndex?: number;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the background color of the tabs bar. Use `frosted` only when placed on top of images, videos, or gradients.
|
|
11
11
|
* @default 'none'
|
|
12
12
|
*/
|
|
13
13
|
background?: TabsBackground;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Reduces the tab height and padding for use in dense layouts where vertical space is limited.
|
|
16
16
|
*/
|
|
17
17
|
compact?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
* Emitted when
|
|
19
|
+
* Emitted when the user switches to a different tab, carrying the new `activeTabIndex` in the event detail.
|
|
20
20
|
*/
|
|
21
21
|
onUpdate?: (event: CustomEvent<TabsUpdateEventDetail>) => void;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Sets the font size of the tab labels using the PDS typographic scale. Supports responsive breakpoint values.
|
|
24
24
|
* @default 'small'
|
|
25
25
|
*/
|
|
26
26
|
size?: BreakpointCustomizable<TabsSize>;
|
|
@@ -32,25 +32,25 @@ export type PTabsProps = BaseProps & {
|
|
|
32
32
|
};
|
|
33
33
|
export declare const PTabs: 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"> & {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Sets the zero-based index of the currently active tab; update this prop to switch tabs programmatically.
|
|
36
36
|
* @default 0
|
|
37
37
|
*/
|
|
38
38
|
activeTabIndex?: number;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Sets the background color of the tabs bar. Use `frosted` only when placed on top of images, videos, or gradients.
|
|
41
41
|
* @default 'none'
|
|
42
42
|
*/
|
|
43
43
|
background?: TabsBackground;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Reduces the tab height and padding for use in dense layouts where vertical space is limited.
|
|
46
46
|
*/
|
|
47
47
|
compact?: boolean;
|
|
48
48
|
/**
|
|
49
|
-
* Emitted when
|
|
49
|
+
* Emitted when the user switches to a different tab, carrying the new `activeTabIndex` in the event detail.
|
|
50
50
|
*/
|
|
51
51
|
onUpdate?: (event: CustomEvent<TabsUpdateEventDetail>) => void;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Sets the font size of the tab labels using the PDS typographic scale. Supports responsive breakpoint values.
|
|
54
54
|
* @default 'small'
|
|
55
55
|
*/
|
|
56
56
|
size?: BreakpointCustomizable<TabsSize>;
|
|
@@ -2,31 +2,31 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, TagDismissibleAriaAttribute } from '../types';
|
|
3
3
|
export type PTagDismissibleProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the dismiss button element, for example use `aria-label` to provide a descriptive close action for screen readers.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
compact?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the visible label text displayed inside the tag alongside the dismiss button.
|
|
15
15
|
*/
|
|
16
16
|
label?: string;
|
|
17
17
|
};
|
|
18
18
|
export declare const PTagDismissible: 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"> & {
|
|
19
19
|
/**
|
|
20
|
-
* Sets ARIA attributes.
|
|
20
|
+
* Sets ARIA attributes on the dismiss button element, for example use `aria-label` to provide a descriptive close action for screen readers.
|
|
21
21
|
*/
|
|
22
22
|
aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
compact?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the visible label text displayed inside the tag alongside the dismiss button.
|
|
30
30
|
*/
|
|
31
31
|
label?: string;
|
|
32
32
|
} & {
|
|
@@ -2,42 +2,42 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TagIcon, TagVariant } from '../types';
|
|
3
3
|
export type PTagProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Reduces the tag's padding and height 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 the icon displayed inside the tag alongside the label. Use `none` to render the tag without an icon.
|
|
11
11
|
* @default 'none'
|
|
12
12
|
*/
|
|
13
13
|
icon?: TagIcon;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets a URL to a custom SVG icon, overriding the built-in icon set when a brand-specific icon is needed.
|
|
16
16
|
*/
|
|
17
17
|
iconSource?: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets the visual style of the tag, which controls its background and text colors (e.g. `primary`, `secondary`, `notification-info`).
|
|
20
20
|
* @default 'secondary'
|
|
21
21
|
*/
|
|
22
22
|
variant?: TagVariant;
|
|
23
23
|
};
|
|
24
24
|
export declare const PTag: 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"> & {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
|
|
27
27
|
* @default false
|
|
28
28
|
*/
|
|
29
29
|
compact?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets the icon displayed inside the tag alongside the label. Use `none` to render the tag without an icon.
|
|
32
32
|
* @default 'none'
|
|
33
33
|
*/
|
|
34
34
|
icon?: TagIcon;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Sets a URL to a custom SVG icon, overriding the built-in icon set when a brand-specific icon is needed.
|
|
37
37
|
*/
|
|
38
38
|
iconSource?: string;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Sets the visual style of the tag, which controls its background and text colors (e.g. `primary`, `secondary`, `notification-info`).
|
|
41
41
|
* @default 'secondary'
|
|
42
42
|
*/
|
|
43
43
|
variant?: TagVariant;
|
|
@@ -2,14 +2,14 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TextListType } from '../types';
|
|
3
3
|
export type PTextListProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the list type to either `unordered` (bulleted) or `ordered` (numbered), controlling the rendered HTML element (`ul` vs `ol`).
|
|
6
6
|
* @default 'unordered'
|
|
7
7
|
*/
|
|
8
8
|
type?: TextListType;
|
|
9
9
|
};
|
|
10
10
|
export declare const PTextList: 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"> & {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Sets the list type to either `unordered` (bulleted) or `ordered` (numbered), controlling the rendered HTML element (`ul` vs `ol`).
|
|
13
13
|
* @default 'unordered'
|
|
14
14
|
*/
|
|
15
15
|
type?: TextListType;
|