@porsche-design-system/components-react 4.10.1 → 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 +102 -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
package/skills/pds-knowledge-react/references/components/p-input-search/examples/AriaCombobox.tsx
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PIcon, PInputSearch } from '@porsche-design-system/components-react';
|
|
3
|
-
|
|
4
|
-
export const Example = () => {
|
|
5
|
-
return (
|
|
6
|
-
<>
|
|
7
|
-
<div className="flex w-full max-w-md flex-col gap-static-xs self-start [&>p-input-search]:min-w-0">
|
|
8
|
-
<PInputSearch label="Search" name="aria-sketch" indicator={true} clear={true} aria={{'role': 'combobox', 'aria-expanded': 'true', 'aria-haspopup': 'listbox', 'aria-autocomplete': 'list', 'aria-controls': 'listbox'}}></PInputSearch>
|
|
9
|
-
<div id="listbox" role="listbox" tabIndex={0} aria-label="Search options" className="max-h-48 p-static-sm overflow-y-auto rounded-xl border-thin border-contrast-lower bg-background-base shadow-md ">
|
|
10
|
-
<div role="option" aria-selected="false" className="px-static-sm py-static-sm cursor-pointer bg-background-base hover:bg-frosted transition-colors duration-300 rounded-sm">
|
|
11
|
-
718
|
|
12
|
-
</div>
|
|
13
|
-
<div role="option" aria-selected="false" className="px-static-sm py-static-sm cursor-pointer bg-background-base hover:bg-frosted transition-colors duration-300 rounded-sm">
|
|
14
|
-
911
|
|
15
|
-
</div>
|
|
16
|
-
<div role="option" aria-selected="true" className="flex px-static-sm py-static-sm cursor-pointer bg-background-base hover:bg-frosted transition-colors duration-300 rounded-sm">
|
|
17
|
-
<span>
|
|
18
|
-
Cayenne
|
|
19
|
-
</span>
|
|
20
|
-
<PIcon name="check" color="primary" aria-hidden={true} className="ms-auto"></PIcon>
|
|
21
|
-
</div>
|
|
22
|
-
<div role="option" aria-selected="false" className="px-static-sm py-static-sm cursor-pointer bg-background-base hover:bg-frosted transition-colors duration-300 rounded-sm">
|
|
23
|
-
Macan
|
|
24
|
-
</div>
|
|
25
|
-
<div role="option" aria-selected="false" className="px-static-sm py-static-sm cursor-pointer bg-background-base hover:bg-frosted transition-colors duration-300 rounded-sm">
|
|
26
|
-
Panamera
|
|
27
|
-
</div>
|
|
28
|
-
<div role="option" aria-selected="false" className="px-static-sm py-static-sm cursor-pointer bg-background-base hover:bg-frosted transition-colors duration-300 rounded-sm">
|
|
29
|
-
Taycan
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</>
|
|
34
|
-
)
|
|
35
|
-
}
|
package/ssr/esm/BaseProps.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { DOMAttributes, HTMLAttributes } from 'react';
|
|
2
|
-
export type BaseProps = Omit<DOMAttributes<{}>, 'onChange' | 'onInput' | 'onToggle'> & Pick<HTMLAttributes<{}>, 'suppressHydrationWarning' | 'autoFocus' | 'className' | 'dir' | 'hidden' | 'id' | 'inert' | 'inputMode' | 'lang' | 'slot' | 'style' | 'tabIndex' | 'title' | 'translate' | 'role'>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
type GetComponentCss = (...args: any[]) => string;
|
|
2
|
-
/**
|
|
3
|
-
* Upper bound of cached stylesheets per style function. It holds every built-in icon (307) in one color, size and CDN,
|
|
4
|
-
* while a free-form argument like the `source` URL of `p-icon` cannot grow the cache beyond it.
|
|
5
|
-
*/
|
|
6
|
-
export declare const MAX_ENTRIES_PER_STYLE_FUNCTION = 500;
|
|
7
|
-
/**
|
|
8
|
-
* Entries whose key and stylesheet together are longer are not cached, so a style function holds at most 10 million
|
|
9
|
-
* characters. The largest stylesheet without free-form arguments (`p-canvas`) has about 9,000 characters; longer ones come
|
|
10
|
-
* from free-form strings such as an icon `source` with a data URL, which ends up in the key and twice in the stylesheet.
|
|
11
|
-
*/
|
|
12
|
-
export declare const MAX_ENTRY_LENGTH = 20000;
|
|
13
|
-
/**
|
|
14
|
-
* Returns the minified result of `getComponentCss(...args)`, cached per combination of arguments.
|
|
15
|
-
* Generating it with JSS on every server render took about a third of the CPU time of a React Router app, see
|
|
16
|
-
* https://github.com/porsche-design-system/porsche-design-system/issues/4784.
|
|
17
|
-
*
|
|
18
|
-
* `getComponentCss` must be a pure function of its arguments and of the CDN base URL, which is part of the key because
|
|
19
|
-
* `getIconCss()` and `getModelSignatureCss()` read it from the global that `PorscheDesignSystemProvider` sets per render
|
|
20
|
-
* from its `cdn` prop.
|
|
21
|
-
*/
|
|
22
|
-
export declare const getCachedMinifiedCss: <T extends GetComponentCss>(getComponentCss: T, ...args: Parameters<T>) => string;
|
|
23
|
-
export {};
|
package/ssr/esm/hooks.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { MutableRefObject } from 'react';
|
|
2
|
-
import { useEffect } from 'react';
|
|
3
|
-
import type { ToastMessage } from './lib/types';
|
|
4
|
-
/**
|
|
5
|
-
* sets a flag that skips the need for `PorscheDesignSystemProvider` during testing
|
|
6
|
-
* when `process.env.NODE_ENV === 'test'`
|
|
7
|
-
*/
|
|
8
|
-
export declare const skipCheckForPorscheDesignSystemProviderDuringTests: () => void;
|
|
9
|
-
export declare const usePrefix: (tagName: string) => string;
|
|
10
|
-
export declare const useEventCallback: (ref: MutableRefObject<HTMLElement | undefined>, eventName: string, eventHandler: (e: Event) => void) => void;
|
|
11
|
-
export declare const useMergedClass: (ref: MutableRefObject<HTMLElement | undefined>, className?: string) => string;
|
|
12
|
-
export declare const useBrowserLayoutEffect: typeof useEffect;
|
|
13
|
-
export declare const useToastManager: () => {
|
|
14
|
-
addMessage: (msg: ToastMessage) => void;
|
|
15
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { AccordionAlignMarker, AccordionBackground, AccordionHeadingTag, BreakpointCustomizable, AccordionUpdateEventDetail, AccordionSize } from '../types';
|
|
3
|
-
export type PAccordionProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Positions the expand/collapse marker icon at the start or end of the summary section.
|
|
6
|
-
* @default 'end'
|
|
7
|
-
*/
|
|
8
|
-
alignMarker?: AccordionAlignMarker;
|
|
9
|
-
/**
|
|
10
|
-
* Sets the background color of the accordion panel. Use `frosted` only when placed on images, videos, or gradients.
|
|
11
|
-
* @default 'none'
|
|
12
|
-
*/
|
|
13
|
-
background?: AccordionBackground;
|
|
14
|
-
/**
|
|
15
|
-
* Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces.
|
|
16
|
-
*/
|
|
17
|
-
compact?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Sets the heading text within the summary section.
|
|
20
|
-
*/
|
|
21
|
-
heading?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Sets the heading tag for proper semantic structure within the page.
|
|
24
|
-
* @default 'h2'
|
|
25
|
-
*/
|
|
26
|
-
headingTag?: AccordionHeadingTag;
|
|
27
|
-
/**
|
|
28
|
-
* Indents the slotted content to be vertically aligned with the text of the summary section.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
indent?: BreakpointCustomizable<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* Emitted when the user toggles the accordion open or closed, with the new open state in the event detail.
|
|
34
|
-
*/
|
|
35
|
-
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Controls whether the accordion is open or closed.
|
|
38
|
-
*/
|
|
39
|
-
open?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Controls the heading size in the summary section (only applies when using the `heading` prop or `heading` slot).
|
|
42
|
-
* @default 'small'
|
|
43
|
-
*/
|
|
44
|
-
size?: BreakpointCustomizable<AccordionSize>;
|
|
45
|
-
/**
|
|
46
|
-
* @experimental Makes the summary section sticky at the top while scrolling. Only works with `background="canvas"` or `background="surface"`. Not compatible with `summary-before` or `summary-after` slots.
|
|
47
|
-
*/
|
|
48
|
-
sticky?: boolean;
|
|
49
|
-
};
|
|
50
|
-
export declare const PAccordion: 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"> & {
|
|
51
|
-
/**
|
|
52
|
-
* Positions the expand/collapse marker icon at the start or end of the summary section.
|
|
53
|
-
* @default 'end'
|
|
54
|
-
*/
|
|
55
|
-
alignMarker?: AccordionAlignMarker;
|
|
56
|
-
/**
|
|
57
|
-
* Sets the background color of the accordion panel. Use `frosted` only when placed on images, videos, or gradients.
|
|
58
|
-
* @default 'none'
|
|
59
|
-
*/
|
|
60
|
-
background?: AccordionBackground;
|
|
61
|
-
/**
|
|
62
|
-
* Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces.
|
|
63
|
-
*/
|
|
64
|
-
compact?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Sets the heading text within the summary section.
|
|
67
|
-
*/
|
|
68
|
-
heading?: string;
|
|
69
|
-
/**
|
|
70
|
-
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Sets the heading tag for proper semantic structure within the page.
|
|
71
|
-
* @default 'h2'
|
|
72
|
-
*/
|
|
73
|
-
headingTag?: AccordionHeadingTag;
|
|
74
|
-
/**
|
|
75
|
-
* Indents the slotted content to be vertically aligned with the text of the summary section.
|
|
76
|
-
* @default false
|
|
77
|
-
*/
|
|
78
|
-
indent?: BreakpointCustomizable<boolean>;
|
|
79
|
-
/**
|
|
80
|
-
* Emitted when the user toggles the accordion open or closed, with the new open state in the event detail.
|
|
81
|
-
*/
|
|
82
|
-
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
83
|
-
/**
|
|
84
|
-
* Controls whether the accordion is open or closed.
|
|
85
|
-
*/
|
|
86
|
-
open?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Controls the heading size in the summary section (only applies when using the `heading` prop or `heading` slot).
|
|
89
|
-
* @default 'small'
|
|
90
|
-
*/
|
|
91
|
-
size?: BreakpointCustomizable<AccordionSize>;
|
|
92
|
-
/**
|
|
93
|
-
* @experimental Makes the summary section sticky at the top while scrolling. Only works with `background="canvas"` or `background="surface"`. Not compatible with `summary-before` or `summary-after` slots.
|
|
94
|
-
*/
|
|
95
|
-
sticky?: boolean;
|
|
96
|
-
} & {
|
|
97
|
-
children?: import("react").ReactNode | undefined;
|
|
98
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { AiTagLocale, AiTagVariant } from '../types';
|
|
3
|
-
export type PAiTagProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Market locale for the AI text (BCP47, e.g. `en-US`). Language-only `en` is supported for international markets. POSIX forms (e.g. `en_US`) are deprecated but still accepted. Copy is resolved by language; unknown languages fall back to English.
|
|
6
|
-
* @default 'en-US'
|
|
7
|
-
*/
|
|
8
|
-
locale?: AiTagLocale;
|
|
9
|
-
/**
|
|
10
|
-
* Variant to display: 'abbreviation' (e.g. "AI"), 'generated' (e.g. "AI-generated"), or 'modified' (e.g. "AI-modified").
|
|
11
|
-
* @default 'generated'
|
|
12
|
-
*/
|
|
13
|
-
variant?: AiTagVariant;
|
|
14
|
-
};
|
|
15
|
-
export declare const PAiTag: 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
|
-
* Market locale for the AI text (BCP47, e.g. `en-US`). Language-only `en` is supported for international markets. POSIX forms (e.g. `en_US`) are deprecated but still accepted. Copy is resolved by language; unknown languages fall back to English.
|
|
18
|
-
* @default 'en-US'
|
|
19
|
-
*/
|
|
20
|
-
locale?: AiTagLocale;
|
|
21
|
-
/**
|
|
22
|
-
* Variant to display: 'abbreviation' (e.g. "AI"), 'generated' (e.g. "AI-generated"), or 'modified' (e.g. "AI-modified").
|
|
23
|
-
* @default 'generated'
|
|
24
|
-
*/
|
|
25
|
-
variant?: AiTagVariant;
|
|
26
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BannerHeadingTag, BreakpointCustomizable, BannerPosition, BannerState } from '../types';
|
|
3
|
-
export type PBannerProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets the supporting description text shown below the heading.
|
|
6
|
-
* @default ''
|
|
7
|
-
*/
|
|
8
|
-
description?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Shows a dismiss button so the user can manually close the banner.
|
|
11
|
-
* @default true
|
|
12
|
-
*/
|
|
13
|
-
dismissButton?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Sets the heading text displayed at the top of the banner.
|
|
16
|
-
* @default ''
|
|
17
|
-
*/
|
|
18
|
-
heading?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure for the heading.
|
|
21
|
-
* @default 'h5'
|
|
22
|
-
*/
|
|
23
|
-
headingTag?: BannerHeadingTag;
|
|
24
|
-
/**
|
|
25
|
-
* Emitted when the user closes the banner via the dismiss button or Escape key.
|
|
26
|
-
*/
|
|
27
|
-
onDismiss?: (event: CustomEvent<void>) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Controls whether the banner is visible. Set to `true` to show it and `false` to hide it.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
open: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the position of the banner on screen — `top` or `bottom`. Supports responsive breakpoint values.
|
|
35
|
-
* @default { base: 'bottom', s: 'top' }
|
|
36
|
-
*/
|
|
37
|
-
position?: BreakpointCustomizable<BannerPosition>;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the visual state of the banner — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
|
|
40
|
-
* @default 'info'
|
|
41
|
-
*/
|
|
42
|
-
state?: BannerState;
|
|
43
|
-
};
|
|
44
|
-
export declare const PBanner: 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
|
-
/**
|
|
46
|
-
* Sets the supporting description text shown below the heading.
|
|
47
|
-
* @default ''
|
|
48
|
-
*/
|
|
49
|
-
description?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Shows a dismiss button so the user can manually close the banner.
|
|
52
|
-
* @default true
|
|
53
|
-
*/
|
|
54
|
-
dismissButton?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the heading text displayed at the top of the banner.
|
|
57
|
-
* @default ''
|
|
58
|
-
*/
|
|
59
|
-
heading?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure for the heading.
|
|
62
|
-
* @default 'h5'
|
|
63
|
-
*/
|
|
64
|
-
headingTag?: BannerHeadingTag;
|
|
65
|
-
/**
|
|
66
|
-
* Emitted when the user closes the banner via the dismiss button or Escape key.
|
|
67
|
-
*/
|
|
68
|
-
onDismiss?: (event: CustomEvent<void>) => void;
|
|
69
|
-
/**
|
|
70
|
-
* Controls whether the banner is visible. Set to `true` to show it and `false` to hide it.
|
|
71
|
-
* @default false
|
|
72
|
-
*/
|
|
73
|
-
open: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Sets the position of the banner on screen — `top` or `bottom`. Supports responsive breakpoint values.
|
|
76
|
-
* @default { base: 'bottom', s: 'top' }
|
|
77
|
-
*/
|
|
78
|
-
position?: BreakpointCustomizable<BannerPosition>;
|
|
79
|
-
/**
|
|
80
|
-
* Sets the visual state of the banner — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
|
|
81
|
-
* @default 'info'
|
|
82
|
-
*/
|
|
83
|
-
state?: BannerState;
|
|
84
|
-
} & {
|
|
85
|
-
children?: import("react").ReactNode | undefined;
|
|
86
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureColor, ButtonPureIcon, ButtonPureSize, ButtonPureType } from '../types';
|
|
3
|
-
export type PButtonPureProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Visually marks the button as the currently active or selected item, useful for navigation and toggle patterns.
|
|
6
|
-
* @default false
|
|
7
|
-
*/
|
|
8
|
-
active?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
|
|
11
|
-
* @default 'end'
|
|
12
|
-
*/
|
|
13
|
-
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
14
|
-
/**
|
|
15
|
-
* Sets ARIA attributes on the button to improve accessibility for screen readers.
|
|
16
|
-
*/
|
|
17
|
-
aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
|
|
18
|
-
/**
|
|
19
|
-
* Sets the foreground color of the button's icon and label text.
|
|
20
|
-
* @default 'primary'
|
|
21
|
-
*/
|
|
22
|
-
color?: ButtonPureColor;
|
|
23
|
-
/**
|
|
24
|
-
* Disables the button, preventing all interaction and blocking events.
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Associates the button with a form element by its ID, so it can submit or reset that form even when placed outside of it.
|
|
30
|
-
*/
|
|
31
|
-
form?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the icon displayed next to the label.
|
|
39
|
-
* @default 'arrow-right'
|
|
40
|
-
*/
|
|
41
|
-
icon?: ButtonPureIcon;
|
|
42
|
-
/**
|
|
43
|
-
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
44
|
-
*/
|
|
45
|
-
iconSource?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Disables the button and replaces its icon with a loading spinner to indicate an ongoing operation.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
loading?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the name submitted with the form data when this button triggers form submission.
|
|
53
|
-
*/
|
|
54
|
-
name?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the font size of the button label. Supports responsive breakpoint values.
|
|
57
|
-
* @default 'sm'
|
|
58
|
-
*/
|
|
59
|
-
size?: BreakpointCustomizable<ButtonPureSize>;
|
|
60
|
-
/**
|
|
61
|
-
* Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
stretch?: BreakpointCustomizable<boolean>;
|
|
65
|
-
/**
|
|
66
|
-
* Sets the button's HTML type — `submit` sends the form, `reset` clears it, `button` performs no default action.
|
|
67
|
-
* @default 'submit'
|
|
68
|
-
*/
|
|
69
|
-
type?: ButtonPureType;
|
|
70
|
-
/**
|
|
71
|
-
* Adds a text underline to the label to reinforce the button's link-like appearance.
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
underline?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Sets the value submitted with the form data when this button triggers form submission, paired with `name`.
|
|
77
|
-
*/
|
|
78
|
-
value?: string;
|
|
79
|
-
};
|
|
80
|
-
export declare const PButtonPure: 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"> & {
|
|
81
|
-
/**
|
|
82
|
-
* Visually marks the button as the currently active or selected item, useful for navigation and toggle patterns.
|
|
83
|
-
* @default false
|
|
84
|
-
*/
|
|
85
|
-
active?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
|
|
88
|
-
* @default 'end'
|
|
89
|
-
*/
|
|
90
|
-
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
91
|
-
/**
|
|
92
|
-
* Sets ARIA attributes on the button to improve accessibility for screen readers.
|
|
93
|
-
*/
|
|
94
|
-
aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
|
|
95
|
-
/**
|
|
96
|
-
* Sets the foreground color of the button's icon and label text.
|
|
97
|
-
* @default 'primary'
|
|
98
|
-
*/
|
|
99
|
-
color?: ButtonPureColor;
|
|
100
|
-
/**
|
|
101
|
-
* Disables the button, preventing all interaction and blocking events.
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
disabled?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Associates the button with a form element by its ID, so it can submit or reset that form even when placed outside of it.
|
|
107
|
-
*/
|
|
108
|
-
form?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
111
|
-
* @default false
|
|
112
|
-
*/
|
|
113
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
114
|
-
/**
|
|
115
|
-
* Sets the icon displayed next to the label.
|
|
116
|
-
* @default 'arrow-right'
|
|
117
|
-
*/
|
|
118
|
-
icon?: ButtonPureIcon;
|
|
119
|
-
/**
|
|
120
|
-
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
121
|
-
*/
|
|
122
|
-
iconSource?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Disables the button and replaces its icon with a loading spinner to indicate an ongoing operation.
|
|
125
|
-
* @default false
|
|
126
|
-
*/
|
|
127
|
-
loading?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Sets the name submitted with the form data when this button triggers form submission.
|
|
130
|
-
*/
|
|
131
|
-
name?: string;
|
|
132
|
-
/**
|
|
133
|
-
* Sets the font size of the button label. Supports responsive breakpoint values.
|
|
134
|
-
* @default 'sm'
|
|
135
|
-
*/
|
|
136
|
-
size?: BreakpointCustomizable<ButtonPureSize>;
|
|
137
|
-
/**
|
|
138
|
-
* Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
|
|
139
|
-
* @default false
|
|
140
|
-
*/
|
|
141
|
-
stretch?: BreakpointCustomizable<boolean>;
|
|
142
|
-
/**
|
|
143
|
-
* Sets the button's HTML type — `submit` sends the form, `reset` clears it, `button` performs no default action.
|
|
144
|
-
* @default 'submit'
|
|
145
|
-
*/
|
|
146
|
-
type?: ButtonPureType;
|
|
147
|
-
/**
|
|
148
|
-
* Adds a text underline to the label to reinforce the button's link-like appearance.
|
|
149
|
-
* @default false
|
|
150
|
-
*/
|
|
151
|
-
underline?: boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Sets the value submitted with the form data when this button triggers form submission, paired with `name`.
|
|
154
|
-
*/
|
|
155
|
-
value?: string;
|
|
156
|
-
} & {
|
|
157
|
-
children?: import("react").ReactNode | undefined;
|
|
158
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { ButtonTileAlign, SelectedAriaAttributes, ButtonTileAriaAttribute, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
|
|
3
|
-
export type PButtonTileProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Controls the vertical placement of the description and button — `top` or `bottom`.
|
|
6
|
-
* @default 'bottom'
|
|
7
|
-
*/
|
|
8
|
-
align?: ButtonTileAlign;
|
|
9
|
-
/**
|
|
10
|
-
* Sets ARIA attributes on the tile's action button to improve accessibility for screen readers.
|
|
11
|
-
*/
|
|
12
|
-
aria?: SelectedAriaAttributes<ButtonTileAriaAttribute>;
|
|
13
|
-
/**
|
|
14
|
-
* Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values.
|
|
15
|
-
* @default '4/3'
|
|
16
|
-
*/
|
|
17
|
-
aspectRatio?: BreakpointCustomizable<ButtonTileAspectRatio>;
|
|
18
|
-
/**
|
|
19
|
-
* Renders only the icon button without the full label. Supports responsive breakpoint values.
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
compact?: BreakpointCustomizable<boolean>;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the description text displayed in the tile's content area.
|
|
25
|
-
*/
|
|
26
|
-
description: string;
|
|
27
|
-
/**
|
|
28
|
-
* Disables the tile, preventing button interaction.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Shows a gradient overlay over the media slot to improve text legibility on bright images or videos.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
gradient?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the icon displayed in the tile's action button. Use `none` to show no icon.
|
|
39
|
-
* @default 'none'
|
|
40
|
-
*/
|
|
41
|
-
icon?: ButtonTileIcon;
|
|
42
|
-
/**
|
|
43
|
-
* Sets a path to a custom SVG icon for the action button, used instead of the built-in icon set.
|
|
44
|
-
*/
|
|
45
|
-
iconSource?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the accessible label text of the action button rendered inside the tile.
|
|
48
|
-
*/
|
|
49
|
-
label: string;
|
|
50
|
-
/**
|
|
51
|
-
* Disables the tile and shows a loading spinner to indicate an ongoing operation.
|
|
52
|
-
* @default false
|
|
53
|
-
*/
|
|
54
|
-
loading?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the font size of the description text in the tile content area. Supports responsive breakpoint values.
|
|
57
|
-
* @default 'medium'
|
|
58
|
-
*/
|
|
59
|
-
size?: BreakpointCustomizable<ButtonTileSize>;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the button's HTML type — `submit` sends the form, `reset` clears it, `button` performs no default action.
|
|
62
|
-
* @default 'submit'
|
|
63
|
-
*/
|
|
64
|
-
type?: ButtonTileType;
|
|
65
|
-
/**
|
|
66
|
-
* Sets the font weight of the description text in the tile content area. Supports responsive breakpoint values.
|
|
67
|
-
* @default 'semi-bold'
|
|
68
|
-
*/
|
|
69
|
-
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
70
|
-
};
|
|
71
|
-
export declare const PButtonTile: 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"> & {
|
|
72
|
-
/**
|
|
73
|
-
* Controls the vertical placement of the description and button — `top` or `bottom`.
|
|
74
|
-
* @default 'bottom'
|
|
75
|
-
*/
|
|
76
|
-
align?: ButtonTileAlign;
|
|
77
|
-
/**
|
|
78
|
-
* Sets ARIA attributes on the tile's action button to improve accessibility for screen readers.
|
|
79
|
-
*/
|
|
80
|
-
aria?: SelectedAriaAttributes<ButtonTileAriaAttribute>;
|
|
81
|
-
/**
|
|
82
|
-
* Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values.
|
|
83
|
-
* @default '4/3'
|
|
84
|
-
*/
|
|
85
|
-
aspectRatio?: BreakpointCustomizable<ButtonTileAspectRatio>;
|
|
86
|
-
/**
|
|
87
|
-
* Renders only the icon button without the full label. Supports responsive breakpoint values.
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
compact?: BreakpointCustomizable<boolean>;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the description text displayed in the tile's content area.
|
|
93
|
-
*/
|
|
94
|
-
description: string;
|
|
95
|
-
/**
|
|
96
|
-
* Disables the tile, preventing button interaction.
|
|
97
|
-
* @default false
|
|
98
|
-
*/
|
|
99
|
-
disabled?: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Shows a gradient overlay over the media slot to improve text legibility on bright images or videos.
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
gradient?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Sets the icon displayed in the tile's action button. Use `none` to show no icon.
|
|
107
|
-
* @default 'none'
|
|
108
|
-
*/
|
|
109
|
-
icon?: ButtonTileIcon;
|
|
110
|
-
/**
|
|
111
|
-
* Sets a path to a custom SVG icon for the action button, used instead of the built-in icon set.
|
|
112
|
-
*/
|
|
113
|
-
iconSource?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Sets the accessible label text of the action button rendered inside the tile.
|
|
116
|
-
*/
|
|
117
|
-
label: string;
|
|
118
|
-
/**
|
|
119
|
-
* Disables the tile and shows a loading spinner to indicate an ongoing operation.
|
|
120
|
-
* @default false
|
|
121
|
-
*/
|
|
122
|
-
loading?: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Sets the font size of the description text in the tile content area. Supports responsive breakpoint values.
|
|
125
|
-
* @default 'medium'
|
|
126
|
-
*/
|
|
127
|
-
size?: BreakpointCustomizable<ButtonTileSize>;
|
|
128
|
-
/**
|
|
129
|
-
* Sets the button's HTML type — `submit` sends the form, `reset` clears it, `button` performs no default action.
|
|
130
|
-
* @default 'submit'
|
|
131
|
-
*/
|
|
132
|
-
type?: ButtonTileType;
|
|
133
|
-
/**
|
|
134
|
-
* Sets the font weight of the description text in the tile content area. Supports responsive breakpoint values.
|
|
135
|
-
* @default 'semi-bold'
|
|
136
|
-
*/
|
|
137
|
-
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
138
|
-
} & {
|
|
139
|
-
children?: import("react").ReactNode | undefined;
|
|
140
|
-
} & import("react").RefAttributes<HTMLElement>>;
|