@porsche-design-system/components-react 4.10.0 → 4.11.0-rc.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 +110 -9
- package/cjs/lib/components/link.wrapper.cjs +3 -3
- package/cjs/lib/components/popover.wrapper.cjs +3 -3
- package/cjs/lib/components/sheet.wrapper.cjs +3 -3
- package/esm/lib/components/input-search.wrapper.d.ts +2 -2
- package/esm/lib/components/link.wrapper.d.ts +10 -0
- package/esm/lib/components/link.wrapper.mjs +3 -3
- package/esm/lib/components/popover.wrapper.d.ts +10 -0
- package/esm/lib/components/popover.wrapper.mjs +3 -3
- package/esm/lib/components/sheet.wrapper.d.ts +12 -2
- package/esm/lib/components/sheet.wrapper.mjs +3 -3
- package/esm/lib/types.d.ts +7 -3
- package/package.json +2 -2
- package/skills/pds-audit-deprecations-react/SKILL.md +2 -2
- package/skills/pds-knowledge-react/SKILL.md +8 -7
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/InteractiveElementsInSummary.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/StickySummary.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-ai-tag/examples/WithinRadioGroup.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-ai-tag/examples/WithinTable.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-banner/examples/Customization.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-banner/p-banner.md +2 -2
- package/skills/pds-knowledge-react/references/components/p-button-pure/p-button-pure.md +9 -0
- package/skills/pds-knowledge-react/references/components/p-carousel/p-carousel.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-fieldset/p-fieldset.md +7 -9
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/CustomStyling.tsx +3 -3
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/StickyTop.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-inline-notification/p-inline-notification.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-search/p-input-search.md +26 -8
- package/skills/pds-knowledge-react/references/components/p-link/examples/Cover.tsx +20 -0
- package/skills/pds-knowledge-react/references/components/p-link/p-link.md +3 -0
- package/skills/pds-knowledge-react/references/components/p-link-pure/p-link-pure.md +39 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/AlertDialog.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/Scrollable.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-popover/p-popover.md +4 -2
- package/skills/pds-knowledge-react/references/components/p-sheet/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-sheet/p-sheet.md +6 -3
- package/skills/pds-knowledge-react/references/components/p-table/examples/CaptionSlot.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-toast/p-toast.md +2 -2
- package/skills/pds-knowledge-react/references/deprecations.md +4 -4
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/dialog.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/inline.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/{footer.md → footer/extended.md} +9 -8
- package/skills/pds-knowledge-react/references/examples/patterns/footer/simple.md +75 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/booking.md +479 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/contact.md +211 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/personal-details.md +253 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/search-combobox-link-list.md +363 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/search-combobox-option-list.md +499 -0
- package/skills/pds-knowledge-react/references/examples/patterns/header/overlay.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/header/stacked.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/feature-tour.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/local-market-switch.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/priority-navigation.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/tile/call-to-action.md +71 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/category.md +60 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/disclosure.md +84 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/equipment-stacked.md +54 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/equipment.md +69 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/image.md +64 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-navigation.md +52 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-selection.md +66 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-teaser.md +78 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/product.md +92 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/vehicle-listing.md +107 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/video.md +114 -0
- package/skills/pds-knowledge-react/references/examples/templates/admin-panel.md +1 -0
- package/skills/pds-knowledge-react/references/examples/templates/landing-page.md +4 -3
- package/skills/pds-knowledge-react/references/examples/templates/personalized-mailing/no-video.md +1166 -0
- package/skills/pds-knowledge-react/references/examples/templates/personalized-mailing/video.md +1252 -0
- package/skills/pds-knowledge-react/references/examples.md +50 -1
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +239 -70
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +424 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/dialog-base.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +14 -3
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +239 -70
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +411 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/dialog-base.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +15 -4
- package/ssr/esm/public-api.d.ts +8696 -5
- package/skills/pds-knowledge-react/references/components/p-input-search/examples/AriaCombobox.tsx +0 -35
- package/ssr/esm/BaseProps.d.ts +0 -2
- package/ssr/esm/getCachedMinifiedCss.d.ts +0 -23
- package/ssr/esm/hooks.d.ts +0 -15
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +0 -98
- package/ssr/esm/lib/components/ai-tag.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/banner.wrapper.d.ts +0 -86
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +0 -158
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +0 -140
- package/ssr/esm/lib/components/button.wrapper.d.ts +0 -118
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +0 -54
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +0 -166
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +0 -160
- package/ssr/esm/lib/components/crest.wrapper.d.ts +0 -32
- package/ssr/esm/lib/components/display.wrapper.d.ts +0 -57
- package/ssr/esm/lib/components/divider.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +0 -53
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +0 -60
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +0 -50
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +0 -66
- package/ssr/esm/lib/components/flag.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +0 -110
- package/ssr/esm/lib/components/heading.wrapper.d.ts +0 -76
- package/ssr/esm/lib/components/icon.wrapper.d.ts +0 -52
- package/ssr/esm/lib/components/index.d.ts +0 -74
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +0 -102
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +0 -228
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +0 -220
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +0 -210
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +0 -220
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +0 -138
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +0 -104
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +0 -126
- package/ssr/esm/lib/components/link.wrapper.d.ts +0 -98
- package/ssr/esm/lib/components/modal.wrapper.d.ts +0 -100
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +0 -68
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +0 -156
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +0 -64
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +0 -160
- package/ssr/esm/lib/components/popover.wrapper.d.ts +0 -58
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +0 -43
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +0 -148
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +0 -62
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +0 -58
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +0 -148
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/select.wrapper.d.ts +0 -164
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +0 -80
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/switch.wrapper.d.ts +0 -94
- package/ssr/esm/lib/components/table-body.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +0 -17
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +0 -36
- package/ssr/esm/lib/components/table-head-row.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-head.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-row.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table.wrapper.d.ts +0 -54
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +0 -70
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +0 -15
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +0 -72
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/tag.wrapper.d.ts +0 -46
- package/ssr/esm/lib/components/text-list-item.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +0 -18
- package/ssr/esm/lib/components/text.wrapper.d.ts +0 -78
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +0 -238
- package/ssr/esm/lib/components/toast.wrapper.d.ts +0 -3
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +0 -42
- package/ssr/esm/lib/dsr-components/accordion.d.ts +0 -18
- package/ssr/esm/lib/dsr-components/ai-tag.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/banner.d.ts +0 -20
- package/ssr/esm/lib/dsr-components/button-pure.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/button-tile.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/button.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/canvas.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/carousel.d.ts +0 -27
- package/ssr/esm/lib/dsr-components/checkbox.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/crest.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/dialog-base.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/display.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/divider.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/drilldown-link.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/drilldown.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/fc-dismiss-button.d.ts +0 -16
- package/ssr/esm/lib/dsr-components/fieldset.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/filter-status-announcer.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/flag.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/flyout.d.ts +0 -26
- package/ssr/esm/lib/dsr-components/heading.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/icon.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/inline-notification.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/input-base.d.ts +0 -38
- package/ssr/esm/lib/dsr-components/input-date.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-email.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-month.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-number.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-password.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/input-search.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-text.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-time.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-url.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-week.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/label.d.ts +0 -24
- package/ssr/esm/lib/dsr-components/link-pure.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/link-tile.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/link.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/loading-message.d.ts +0 -8
- package/ssr/esm/lib/dsr-components/modal.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/model-signature.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/multi-select-option.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +0 -40
- package/ssr/esm/lib/dsr-components/no-results-option.d.ts +0 -2
- package/ssr/esm/lib/dsr-components/notification-base.d.ts +0 -14
- package/ssr/esm/lib/dsr-components/optgroup.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/pagination.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/popover.d.ts +0 -27
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +0 -13
- package/ssr/esm/lib/dsr-components/radio-group.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/required.d.ts +0 -2
- package/ssr/esm/lib/dsr-components/scroller.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/segmented-control-item.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/segmented-control.d.ts +0 -21
- package/ssr/esm/lib/dsr-components/select-option.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/select.d.ts +0 -41
- package/ssr/esm/lib/dsr-components/sheet.d.ts +0 -20
- package/ssr/esm/lib/dsr-components/spinner.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/state-message.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/stepper-horizontal-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/switch.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/table-body.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-cell.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head-cell.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head-row.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-row.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +0 -17
- package/ssr/esm/lib/dsr-components/tabs-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/tabs.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/tag-dismissible.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/tag.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text-list-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text-list.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/textarea.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/toast.d.ts +0 -7
- package/ssr/esm/lib/dsr-components/wordmark.d.ts +0 -6
- package/ssr/esm/lib/types.d.ts +0 -1862
- package/ssr/esm/minifyCss.d.ts +0 -1
- package/ssr/esm/provider.d.ts +0 -10
- package/ssr/esm/splitChildren.d.ts +0 -17
- package/ssr/esm/utils.d.ts +0 -4
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, ButtonAriaAttribute, BreakpointCustomizable, ButtonIcon, ButtonType, ButtonVariant } from '../types';
|
|
3
|
-
export type PButtonProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets ARIA attributes on the button to improve accessibility for screen readers.
|
|
6
|
-
*/
|
|
7
|
-
aria?: SelectedAriaAttributes<ButtonAriaAttribute>;
|
|
8
|
-
/**
|
|
9
|
-
* Reduces the button's height and padding for denser layouts. Supports responsive breakpoint values.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
compact?: BreakpointCustomizable<boolean>;
|
|
13
|
-
/**
|
|
14
|
-
* Disables the button, preventing all interaction and blocking events.
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Associates the button with a form element by its ID, so it can submit or reset that form even when placed outside of it.
|
|
20
|
-
*/
|
|
21
|
-
form?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
27
|
-
/**
|
|
28
|
-
* Sets the icon displayed inside the button. Use `none` to show no icon.
|
|
29
|
-
* @default 'none'
|
|
30
|
-
*/
|
|
31
|
-
icon?: ButtonIcon;
|
|
32
|
-
/**
|
|
33
|
-
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
34
|
-
*/
|
|
35
|
-
iconSource?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Disables the button and replaces its content with a loading spinner to indicate an ongoing operation.
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
loading?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the name submitted with the form data when this button triggers form submission.
|
|
43
|
-
*/
|
|
44
|
-
name?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the button's HTML type — `submit` sends the form, `reset` clears it, `button` performs no default action.
|
|
47
|
-
* @default 'submit'
|
|
48
|
-
*/
|
|
49
|
-
type?: ButtonType;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the value submitted with the form data when this button triggers form submission, paired with `name`.
|
|
52
|
-
*/
|
|
53
|
-
value?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Sets the visual style variant of the button (`primary`, `secondary` or `destructive`). Use `destructive` for actions with irreversible consequences, e.g. deleting data.
|
|
56
|
-
* @default 'primary'
|
|
57
|
-
*/
|
|
58
|
-
variant?: ButtonVariant;
|
|
59
|
-
};
|
|
60
|
-
export declare const PButton: 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"> & {
|
|
61
|
-
/**
|
|
62
|
-
* Sets ARIA attributes on the button to improve accessibility for screen readers.
|
|
63
|
-
*/
|
|
64
|
-
aria?: SelectedAriaAttributes<ButtonAriaAttribute>;
|
|
65
|
-
/**
|
|
66
|
-
* Reduces the button's height and padding for denser layouts. Supports responsive breakpoint values.
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
compact?: BreakpointCustomizable<boolean>;
|
|
70
|
-
/**
|
|
71
|
-
* Disables the button, preventing all interaction and blocking events.
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
disabled?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Associates the button with a form element by its ID, so it can submit or reset that form even when placed outside of it.
|
|
77
|
-
*/
|
|
78
|
-
form?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
84
|
-
/**
|
|
85
|
-
* Sets the icon displayed inside the button. Use `none` to show no icon.
|
|
86
|
-
* @default 'none'
|
|
87
|
-
*/
|
|
88
|
-
icon?: ButtonIcon;
|
|
89
|
-
/**
|
|
90
|
-
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
91
|
-
*/
|
|
92
|
-
iconSource?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Disables the button and replaces its content with a loading spinner to indicate an ongoing operation.
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
loading?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Sets the name submitted with the form data when this button triggers form submission.
|
|
100
|
-
*/
|
|
101
|
-
name?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Sets the button's HTML type — `submit` sends the form, `reset` clears it, `button` performs no default action.
|
|
104
|
-
* @default 'submit'
|
|
105
|
-
*/
|
|
106
|
-
type?: ButtonType;
|
|
107
|
-
/**
|
|
108
|
-
* Sets the value submitted with the form data when this button triggers form submission, paired with `name`.
|
|
109
|
-
*/
|
|
110
|
-
value?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Sets the visual style variant of the button (`primary`, `secondary` or `destructive`). Use `destructive` for actions with irreversible consequences, e.g. deleting data.
|
|
113
|
-
* @default 'primary'
|
|
114
|
-
*/
|
|
115
|
-
variant?: ButtonVariant;
|
|
116
|
-
} & {
|
|
117
|
-
children?: import("react").ReactNode | undefined;
|
|
118
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { CanvasBackground, CanvasSidebarStartUpdateEventDetail } from '../types';
|
|
3
|
-
export type PCanvasProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets the background color of the main content area and automatically applies a matching color to the sidebar.
|
|
6
|
-
* @default 'canvas'
|
|
7
|
-
*/
|
|
8
|
-
background?: CanvasBackground;
|
|
9
|
-
/**
|
|
10
|
-
* Emitted when the user dismisses the end sidebar via the close button.
|
|
11
|
-
*/
|
|
12
|
-
onSidebarEndDismiss?: (event: CustomEvent<void>) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Emitted when the user toggles the start sidebar, with the new open state in the event detail.
|
|
15
|
-
*/
|
|
16
|
-
onSidebarStartUpdate?: (event: CustomEvent<CanvasSidebarStartUpdateEventDetail>) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Controls whether the utility sidebar on the end side (right in LTR) is open or collapsed.
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
sidebarEndOpen?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Controls whether the navigation sidebar on the start side (left in LTR) is open or collapsed.
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
sidebarStartOpen?: boolean;
|
|
27
|
-
};
|
|
28
|
-
export declare const PCanvas: 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
|
-
/**
|
|
30
|
-
* Sets the background color of the main content area and automatically applies a matching color to the sidebar.
|
|
31
|
-
* @default 'canvas'
|
|
32
|
-
*/
|
|
33
|
-
background?: CanvasBackground;
|
|
34
|
-
/**
|
|
35
|
-
* Emitted when the user dismisses the end sidebar via the close button.
|
|
36
|
-
*/
|
|
37
|
-
onSidebarEndDismiss?: (event: CustomEvent<void>) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Emitted when the user toggles the start sidebar, with the new open state in the event detail.
|
|
40
|
-
*/
|
|
41
|
-
onSidebarStartUpdate?: (event: CustomEvent<CanvasSidebarStartUpdateEventDetail>) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Controls whether the utility sidebar on the end side (right in LTR) is open or collapsed.
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
sidebarEndOpen?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Controls whether the navigation sidebar on the start side (left in LTR) is open or collapsed.
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
sidebarStartOpen?: boolean;
|
|
52
|
-
} & {
|
|
53
|
-
children?: import("react").ReactNode | undefined;
|
|
54
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { CarouselAlignControls, CarouselAlignHeader, SelectedAriaAttributes, CarouselAriaAttribute, CarouselHeadingSize, CarouselInternationalization, CarouselUpdateEventDetail, BreakpointCustomizable, CarouselSlidesPerPage, CarouselWidth } from '../types';
|
|
3
|
-
export type PCarouselProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets the zero-based index of the currently visible slide. Update this to navigate programmatically.
|
|
6
|
-
* @default 0
|
|
7
|
-
*/
|
|
8
|
-
activeSlideIndex?: number;
|
|
9
|
-
/**
|
|
10
|
-
* Controls the alignment of custom slotted controls within the header area.
|
|
11
|
-
* @default 'auto'
|
|
12
|
-
*/
|
|
13
|
-
alignControls?: CarouselAlignControls;
|
|
14
|
-
/**
|
|
15
|
-
* Controls the horizontal alignment of the heading and description.
|
|
16
|
-
* @default 'start'
|
|
17
|
-
*/
|
|
18
|
-
alignHeader?: CarouselAlignHeader;
|
|
19
|
-
/**
|
|
20
|
-
* Sets ARIA attributes on the carousel region element for improved accessibility.
|
|
21
|
-
*/
|
|
22
|
-
aria?: SelectedAriaAttributes<CarouselAriaAttribute>;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the description text displayed below the heading for additional context.
|
|
25
|
-
*/
|
|
26
|
-
description?: string;
|
|
27
|
-
/**
|
|
28
|
-
* When enabled, each slide is individually focusable and the carousel navigates one slide at a time instead of one page.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
focusOnCenterSlide?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Shows a gradient fade at the start and end edges to visually indicate more slides beyond the viewport.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
gradient?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the heading text displayed above the carousel. Also used as the accessible label when no `aria` prop is set.
|
|
39
|
-
*/
|
|
40
|
-
heading?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the font size of the carousel heading.
|
|
43
|
-
* @default 'x-large'
|
|
44
|
-
*/
|
|
45
|
-
headingSize?: CarouselHeadingSize;
|
|
46
|
-
/**
|
|
47
|
-
* Overrides the default label strings used for the previous, next, and page indicators — useful for localization.
|
|
48
|
-
*/
|
|
49
|
-
intl?: CarouselInternationalization;
|
|
50
|
-
/**
|
|
51
|
-
* Emitted when the carousel navigates to a new slide, with the active and previous slide indexes in the event detail.
|
|
52
|
-
*/
|
|
53
|
-
onUpdate?: (event: CustomEvent<CarouselUpdateEventDetail>) => void;
|
|
54
|
-
/**
|
|
55
|
-
* Shows pagination dot indicators below the carousel. Supports responsive breakpoint values.
|
|
56
|
-
* @default false
|
|
57
|
-
*/
|
|
58
|
-
pagination?: BreakpointCustomizable<boolean>;
|
|
59
|
-
/**
|
|
60
|
-
* Enables infinite looping — navigating past the last slide wraps back to the first, and vice versa.
|
|
61
|
-
* @default false
|
|
62
|
-
*/
|
|
63
|
-
rewind?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Sets the `href` of an in-page skip link that lets keyboard users jump past the carousel slides.
|
|
66
|
-
*/
|
|
67
|
-
skipLinkTarget?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Sets how many slides are visible at once. Use `auto` to control each slide's width via CSS. Supports responsive breakpoint values.
|
|
70
|
-
* @default 1
|
|
71
|
-
*/
|
|
72
|
-
slidesPerPage?: BreakpointCustomizable<CarouselSlidesPerPage>;
|
|
73
|
-
/**
|
|
74
|
-
* Removes whitespace before the first and after the last slide when `focusOnCenterSlide` is enabled.
|
|
75
|
-
* @default false
|
|
76
|
-
*/
|
|
77
|
-
trimSpace?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Sets the maximum width and outer spacing of the carousel, aligned to PDS grid widths.
|
|
80
|
-
* @default 'basic'
|
|
81
|
-
*/
|
|
82
|
-
width?: CarouselWidth;
|
|
83
|
-
};
|
|
84
|
-
export declare const PCarousel: 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"> & {
|
|
85
|
-
/**
|
|
86
|
-
* Sets the zero-based index of the currently visible slide. Update this to navigate programmatically.
|
|
87
|
-
* @default 0
|
|
88
|
-
*/
|
|
89
|
-
activeSlideIndex?: number;
|
|
90
|
-
/**
|
|
91
|
-
* Controls the alignment of custom slotted controls within the header area.
|
|
92
|
-
* @default 'auto'
|
|
93
|
-
*/
|
|
94
|
-
alignControls?: CarouselAlignControls;
|
|
95
|
-
/**
|
|
96
|
-
* Controls the horizontal alignment of the heading and description.
|
|
97
|
-
* @default 'start'
|
|
98
|
-
*/
|
|
99
|
-
alignHeader?: CarouselAlignHeader;
|
|
100
|
-
/**
|
|
101
|
-
* Sets ARIA attributes on the carousel region element for improved accessibility.
|
|
102
|
-
*/
|
|
103
|
-
aria?: SelectedAriaAttributes<CarouselAriaAttribute>;
|
|
104
|
-
/**
|
|
105
|
-
* Sets the description text displayed below the heading for additional context.
|
|
106
|
-
*/
|
|
107
|
-
description?: string;
|
|
108
|
-
/**
|
|
109
|
-
* When enabled, each slide is individually focusable and the carousel navigates one slide at a time instead of one page.
|
|
110
|
-
* @default false
|
|
111
|
-
*/
|
|
112
|
-
focusOnCenterSlide?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Shows a gradient fade at the start and end edges to visually indicate more slides beyond the viewport.
|
|
115
|
-
* @default false
|
|
116
|
-
*/
|
|
117
|
-
gradient?: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* Sets the heading text displayed above the carousel. Also used as the accessible label when no `aria` prop is set.
|
|
120
|
-
*/
|
|
121
|
-
heading?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Sets the font size of the carousel heading.
|
|
124
|
-
* @default 'x-large'
|
|
125
|
-
*/
|
|
126
|
-
headingSize?: CarouselHeadingSize;
|
|
127
|
-
/**
|
|
128
|
-
* Overrides the default label strings used for the previous, next, and page indicators — useful for localization.
|
|
129
|
-
*/
|
|
130
|
-
intl?: CarouselInternationalization;
|
|
131
|
-
/**
|
|
132
|
-
* Emitted when the carousel navigates to a new slide, with the active and previous slide indexes in the event detail.
|
|
133
|
-
*/
|
|
134
|
-
onUpdate?: (event: CustomEvent<CarouselUpdateEventDetail>) => void;
|
|
135
|
-
/**
|
|
136
|
-
* Shows pagination dot indicators below the carousel. Supports responsive breakpoint values.
|
|
137
|
-
* @default false
|
|
138
|
-
*/
|
|
139
|
-
pagination?: BreakpointCustomizable<boolean>;
|
|
140
|
-
/**
|
|
141
|
-
* Enables infinite looping — navigating past the last slide wraps back to the first, and vice versa.
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
|
-
rewind?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Sets the `href` of an in-page skip link that lets keyboard users jump past the carousel slides.
|
|
147
|
-
*/
|
|
148
|
-
skipLinkTarget?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Sets how many slides are visible at once. Use `auto` to control each slide's width via CSS. Supports responsive breakpoint values.
|
|
151
|
-
* @default 1
|
|
152
|
-
*/
|
|
153
|
-
slidesPerPage?: BreakpointCustomizable<CarouselSlidesPerPage>;
|
|
154
|
-
/**
|
|
155
|
-
* Removes whitespace before the first and after the last slide when `focusOnCenterSlide` is enabled.
|
|
156
|
-
* @default false
|
|
157
|
-
*/
|
|
158
|
-
trimSpace?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Sets the maximum width and outer spacing of the carousel, aligned to PDS grid widths.
|
|
161
|
-
* @default 'basic'
|
|
162
|
-
*/
|
|
163
|
-
width?: CarouselWidth;
|
|
164
|
-
} & {
|
|
165
|
-
children?: import("react").ReactNode | undefined;
|
|
166
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, CheckboxAriaAttribute, BreakpointCustomizable, CheckboxBlurEventDetail, CheckboxChangeEventDetail, CheckboxState } from '../types';
|
|
3
|
-
export type PCheckboxProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets additional ARIA attributes on the native checkbox to improve accessibility for screen readers.
|
|
6
|
-
*/
|
|
7
|
-
aria?: SelectedAriaAttributes<CheckboxAriaAttribute>;
|
|
8
|
-
/**
|
|
9
|
-
* Reflects the checkbox's current checked state and allows setting the initial checked value on load.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
checked?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Reduces the checkbox size and spacing for a more compact layout.
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
compact?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Disables the checkbox, preventing all interaction. The value is not submitted with the form.
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Associates the checkbox with a form element by its ID when not directly nested inside it.
|
|
25
|
-
*/
|
|
26
|
-
form?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* Puts the checkbox into an indeterminate state, indicating that a group of child items is only partially selected.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
indeterminate?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the visible label text displayed next to the checkbox.
|
|
39
|
-
* @default ''
|
|
40
|
-
*/
|
|
41
|
-
label?: string;
|
|
42
|
-
/**
|
|
43
|
-
* @experimental Disables the checkbox and displays a loading spinner to indicate an ongoing operation.
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
loading?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the validation feedback message displayed below the checkbox when `state` is `success` or `error`.
|
|
49
|
-
* @default ''
|
|
50
|
-
*/
|
|
51
|
-
message?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Sets the name submitted with the form data to identify this checkbox's value on the server.
|
|
54
|
-
* @default ''
|
|
55
|
-
*/
|
|
56
|
-
name?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Emitted when the checkbox loses focus.
|
|
59
|
-
*/
|
|
60
|
-
onBlur?: (event: CustomEvent<CheckboxBlurEventDetail>) => void;
|
|
61
|
-
/**
|
|
62
|
-
* Emitted when the user changes the checked state of the checkbox.
|
|
63
|
-
*/
|
|
64
|
-
onChange?: (event: CustomEvent<CheckboxChangeEventDetail>) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Marks the checkbox as required — form submission is blocked unless the checkbox is checked.
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
required?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
72
|
-
* @default 'none'
|
|
73
|
-
*/
|
|
74
|
-
state?: CheckboxState;
|
|
75
|
-
/**
|
|
76
|
-
* Sets the value submitted with the form data when the checkbox is checked. Unchecked checkboxes are excluded from form submissions.
|
|
77
|
-
* @default 'on'
|
|
78
|
-
*/
|
|
79
|
-
value?: string;
|
|
80
|
-
};
|
|
81
|
-
export declare const PCheckbox: 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"> & {
|
|
82
|
-
/**
|
|
83
|
-
* Sets additional ARIA attributes on the native checkbox to improve accessibility for screen readers.
|
|
84
|
-
*/
|
|
85
|
-
aria?: SelectedAriaAttributes<CheckboxAriaAttribute>;
|
|
86
|
-
/**
|
|
87
|
-
* Reflects the checkbox's current checked state and allows setting the initial checked value on load.
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
checked?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Reduces the checkbox size and spacing for a more compact layout.
|
|
93
|
-
* @default false
|
|
94
|
-
*/
|
|
95
|
-
compact?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Disables the checkbox, preventing all interaction. The value is not submitted with the form.
|
|
98
|
-
* @default false
|
|
99
|
-
*/
|
|
100
|
-
disabled?: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Associates the checkbox with a form element by its ID when not directly nested inside it.
|
|
103
|
-
*/
|
|
104
|
-
form?: string;
|
|
105
|
-
/**
|
|
106
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
107
|
-
* @default false
|
|
108
|
-
*/
|
|
109
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
110
|
-
/**
|
|
111
|
-
* Puts the checkbox into an indeterminate state, indicating that a group of child items is only partially selected.
|
|
112
|
-
* @default false
|
|
113
|
-
*/
|
|
114
|
-
indeterminate?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Sets the visible label text displayed next to the checkbox.
|
|
117
|
-
* @default ''
|
|
118
|
-
*/
|
|
119
|
-
label?: string;
|
|
120
|
-
/**
|
|
121
|
-
* @experimental Disables the checkbox and displays a loading spinner to indicate an ongoing operation.
|
|
122
|
-
* @default false
|
|
123
|
-
*/
|
|
124
|
-
loading?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Sets the validation feedback message displayed below the checkbox when `state` is `success` or `error`.
|
|
127
|
-
* @default ''
|
|
128
|
-
*/
|
|
129
|
-
message?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Sets the name submitted with the form data to identify this checkbox's value on the server.
|
|
132
|
-
* @default ''
|
|
133
|
-
*/
|
|
134
|
-
name?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Emitted when the checkbox loses focus.
|
|
137
|
-
*/
|
|
138
|
-
onBlur?: (event: CustomEvent<CheckboxBlurEventDetail>) => void;
|
|
139
|
-
/**
|
|
140
|
-
* Emitted when the user changes the checked state of the checkbox.
|
|
141
|
-
*/
|
|
142
|
-
onChange?: (event: CustomEvent<CheckboxChangeEventDetail>) => void;
|
|
143
|
-
/**
|
|
144
|
-
* Marks the checkbox as required — form submission is blocked unless the checkbox is checked.
|
|
145
|
-
* @default false
|
|
146
|
-
*/
|
|
147
|
-
required?: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
150
|
-
* @default 'none'
|
|
151
|
-
*/
|
|
152
|
-
state?: CheckboxState;
|
|
153
|
-
/**
|
|
154
|
-
* Sets the value submitted with the form data when the checkbox is checked. Unchecked checkboxes are excluded from form submissions.
|
|
155
|
-
* @default 'on'
|
|
156
|
-
*/
|
|
157
|
-
value?: string;
|
|
158
|
-
} & {
|
|
159
|
-
children?: import("react").ReactNode | undefined;
|
|
160
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, CrestAriaAttribute, CrestTarget } from '../types';
|
|
3
|
-
export type PCrestProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets ARIA attributes on the anchor element to improve accessibility when the crest is used as a link.
|
|
6
|
-
*/
|
|
7
|
-
aria?: SelectedAriaAttributes<CrestAriaAttribute>;
|
|
8
|
-
/**
|
|
9
|
-
* When set, renders the crest as an anchor element navigating to this URL when clicked.
|
|
10
|
-
*/
|
|
11
|
-
href?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
|
|
14
|
-
* @default '_self'
|
|
15
|
-
*/
|
|
16
|
-
target?: CrestTarget;
|
|
17
|
-
};
|
|
18
|
-
export declare const PCrest: 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
|
-
/**
|
|
20
|
-
* Sets ARIA attributes on the anchor element to improve accessibility when the crest is used as a link.
|
|
21
|
-
*/
|
|
22
|
-
aria?: SelectedAriaAttributes<CrestAriaAttribute>;
|
|
23
|
-
/**
|
|
24
|
-
* When set, renders the crest as an anchor element navigating to this URL when clicked.
|
|
25
|
-
*/
|
|
26
|
-
href?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
|
|
29
|
-
* @default '_self'
|
|
30
|
-
*/
|
|
31
|
-
target?: CrestTarget;
|
|
32
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { DisplayAlign, DisplayColor, BreakpointCustomizable, DisplaySize, DisplayTag } from '../types';
|
|
3
|
-
export type PDisplayProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets the horizontal text alignment (`start`, `center`, `end`, or `inherit`).
|
|
6
|
-
* @default 'start'
|
|
7
|
-
*/
|
|
8
|
-
align?: DisplayAlign;
|
|
9
|
-
/**
|
|
10
|
-
* Sets the text color using PDS color tokens.
|
|
11
|
-
* @default 'primary'
|
|
12
|
-
*/
|
|
13
|
-
color?: DisplayColor;
|
|
14
|
-
/**
|
|
15
|
-
* Truncates the text with an ellipsis when it overflows the container on a single line.
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
ellipsis?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Sets the visual text size. Supports responsive breakpoint values.
|
|
21
|
-
* @default 'large'
|
|
22
|
-
*/
|
|
23
|
-
size?: BreakpointCustomizable<DisplaySize>;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the HTML heading tag (h1–h6) for correct document outline placement. When omitted, the tag is inferred from `size`.
|
|
26
|
-
*/
|
|
27
|
-
tag?: DisplayTag;
|
|
28
|
-
};
|
|
29
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Please use `p-heading` instead. */
|
|
30
|
-
export declare const PDisplay: 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"> & {
|
|
31
|
-
/**
|
|
32
|
-
* Sets the horizontal text alignment (`start`, `center`, `end`, or `inherit`).
|
|
33
|
-
* @default 'start'
|
|
34
|
-
*/
|
|
35
|
-
align?: DisplayAlign;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the text color using PDS color tokens.
|
|
38
|
-
* @default 'primary'
|
|
39
|
-
*/
|
|
40
|
-
color?: DisplayColor;
|
|
41
|
-
/**
|
|
42
|
-
* Truncates the text with an ellipsis when it overflows the container on a single line.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
ellipsis?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the visual text size. Supports responsive breakpoint values.
|
|
48
|
-
* @default 'large'
|
|
49
|
-
*/
|
|
50
|
-
size?: BreakpointCustomizable<DisplaySize>;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the HTML heading tag (h1–h6) for correct document outline placement. When omitted, the tag is inferred from `size`.
|
|
53
|
-
*/
|
|
54
|
-
tag?: DisplayTag;
|
|
55
|
-
} & {
|
|
56
|
-
children?: import("react").ReactNode | undefined;
|
|
57
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { DividerColor, BreakpointCustomizable, DividerDirection } from '../types';
|
|
3
|
-
export type PDividerProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets the color of the divider line using PDS contrast tokens.
|
|
6
|
-
* @default 'contrast-lower'
|
|
7
|
-
*/
|
|
8
|
-
color?: DividerColor;
|
|
9
|
-
/**
|
|
10
|
-
* Sets the orientation of the divider to `horizontal` or `vertical`. Supports responsive breakpoint values.
|
|
11
|
-
* @default 'horizontal'
|
|
12
|
-
*/
|
|
13
|
-
direction?: BreakpointCustomizable<DividerDirection>;
|
|
14
|
-
};
|
|
15
|
-
export declare const PDivider: 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"> & {
|
|
16
|
-
/**
|
|
17
|
-
* Sets the color of the divider line using PDS contrast tokens.
|
|
18
|
-
* @default 'contrast-lower'
|
|
19
|
-
*/
|
|
20
|
-
color?: DividerColor;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the orientation of the divider to `horizontal` or `vertical`. Supports responsive breakpoint values.
|
|
23
|
-
* @default 'horizontal'
|
|
24
|
-
*/
|
|
25
|
-
direction?: BreakpointCustomizable<DividerDirection>;
|
|
26
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
export type PDrilldownItemProps = BaseProps & {
|
|
3
|
-
/**
|
|
4
|
-
* Private property set by the component itself.
|
|
5
|
-
* @default false
|
|
6
|
-
*/
|
|
7
|
-
cascade?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Sets the unique identifier matched against the drilldown's `activeIdentifier` to determine if this item is shown.
|
|
10
|
-
*/
|
|
11
|
-
identifier: string;
|
|
12
|
-
/**
|
|
13
|
-
* Sets the text used for the back button, sticky header, and cascade button that navigates into this navigation level.
|
|
14
|
-
*/
|
|
15
|
-
label?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Private property set by the component itself.
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
primary?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Private property set by the component itself.
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
secondary?: boolean;
|
|
26
|
-
};
|
|
27
|
-
export declare const PDrilldownItem: 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"> & {
|
|
28
|
-
/**
|
|
29
|
-
* Private property set by the component itself.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
cascade?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the unique identifier matched against the drilldown's `activeIdentifier` to determine if this item is shown.
|
|
35
|
-
*/
|
|
36
|
-
identifier: string;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the text used for the back button, sticky header, and cascade button that navigates into this navigation level.
|
|
39
|
-
*/
|
|
40
|
-
label?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Private property set by the component itself.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
primary?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Private property set by the component itself.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
secondary?: boolean;
|
|
51
|
-
} & {
|
|
52
|
-
children?: import("react").ReactNode | undefined;
|
|
53
|
-
} & import("react").RefAttributes<HTMLElement>>;
|