@porsche-design-system/components-react 4.10.1 → 4.11.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 +104 -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,218 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, InputUrlAriaAttribute, BreakpointCustomizable, InputUrlBlurEventDetail, InputUrlChangeEventDetail, InputUrlInputEventDetail, InputUrlState } from '../types';
|
|
3
|
-
export type PInputUrlProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
-
*/
|
|
7
|
-
aria?: SelectedAriaAttributes<InputUrlAriaAttribute>;
|
|
8
|
-
/**
|
|
9
|
-
* Provides the browser with a URL autofill hint (e.g. `autocomplete='url'`).
|
|
10
|
-
*/
|
|
11
|
-
autoComplete?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Reduces the input height and padding for a more compact layout.
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
compact?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Sets a supplementary description displayed below the label to provide additional context.
|
|
19
|
-
* @default ''
|
|
20
|
-
*/
|
|
21
|
-
description?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
29
|
-
*/
|
|
30
|
-
form?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* Shows a URL/link icon at the start of the field as a visual indicator.
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
indicator?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the visible label text displayed above the input field.
|
|
43
|
-
* @default ''
|
|
44
|
-
*/
|
|
45
|
-
label?: string;
|
|
46
|
-
/**
|
|
47
|
-
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
loading?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the maximum number of characters the user can enter.
|
|
53
|
-
*/
|
|
54
|
-
maxLength?: number;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
57
|
-
* @default ''
|
|
58
|
-
*/
|
|
59
|
-
message?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the minimum number of characters required for the field to be considered valid.
|
|
62
|
-
*/
|
|
63
|
-
minLength?: number;
|
|
64
|
-
/**
|
|
65
|
-
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
66
|
-
*/
|
|
67
|
-
name: string;
|
|
68
|
-
/**
|
|
69
|
-
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
70
|
-
*/
|
|
71
|
-
onBlur?: (event: CustomEvent<InputUrlBlurEventDetail>) => void;
|
|
72
|
-
/**
|
|
73
|
-
* Emitted when the input loses focus after its value was changed.
|
|
74
|
-
*/
|
|
75
|
-
onChange?: (event: CustomEvent<InputUrlChangeEventDetail>) => void;
|
|
76
|
-
/**
|
|
77
|
-
* Emitted on every value change as the user types.
|
|
78
|
-
*/
|
|
79
|
-
onInput?: (event: CustomEvent<InputUrlInputEventDetail>) => void;
|
|
80
|
-
/**
|
|
81
|
-
* Sets a regular expression the entered value must match to be valid. Overrides the browser's default URL validation.
|
|
82
|
-
*/
|
|
83
|
-
pattern?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Sets placeholder text shown inside the field when it is empty, such as an example URL.
|
|
86
|
-
* @default ''
|
|
87
|
-
*/
|
|
88
|
-
placeholder?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
91
|
-
* @default false
|
|
92
|
-
*/
|
|
93
|
-
readOnly?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Marks the field as required — form submission is blocked while this field is empty.
|
|
96
|
-
* @default false
|
|
97
|
-
*/
|
|
98
|
-
required?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
101
|
-
* @default 'none'
|
|
102
|
-
*/
|
|
103
|
-
state?: InputUrlState;
|
|
104
|
-
/**
|
|
105
|
-
* Sets the current URL value. Must be an absolute URL (e.g. `https://porsche.com`) to pass browser validation.
|
|
106
|
-
* @default ''
|
|
107
|
-
*/
|
|
108
|
-
value?: string | null;
|
|
109
|
-
};
|
|
110
|
-
export declare const PInputUrl: 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"> & {
|
|
111
|
-
/**
|
|
112
|
-
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
113
|
-
*/
|
|
114
|
-
aria?: SelectedAriaAttributes<InputUrlAriaAttribute>;
|
|
115
|
-
/**
|
|
116
|
-
* Provides the browser with a URL autofill hint (e.g. `autocomplete='url'`).
|
|
117
|
-
*/
|
|
118
|
-
autoComplete?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Reduces the input height and padding for a more compact layout.
|
|
121
|
-
* @default false
|
|
122
|
-
*/
|
|
123
|
-
compact?: boolean;
|
|
124
|
-
/**
|
|
125
|
-
* Sets a supplementary description displayed below the label to provide additional context.
|
|
126
|
-
* @default ''
|
|
127
|
-
*/
|
|
128
|
-
description?: string;
|
|
129
|
-
/**
|
|
130
|
-
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
131
|
-
* @default false
|
|
132
|
-
*/
|
|
133
|
-
disabled?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
136
|
-
*/
|
|
137
|
-
form?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
140
|
-
* @default false
|
|
141
|
-
*/
|
|
142
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
143
|
-
/**
|
|
144
|
-
* Shows a URL/link icon at the start of the field as a visual indicator.
|
|
145
|
-
* @default false
|
|
146
|
-
*/
|
|
147
|
-
indicator?: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Sets the visible label text displayed above the input field.
|
|
150
|
-
* @default ''
|
|
151
|
-
*/
|
|
152
|
-
label?: string;
|
|
153
|
-
/**
|
|
154
|
-
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
155
|
-
* @default false
|
|
156
|
-
*/
|
|
157
|
-
loading?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Sets the maximum number of characters the user can enter.
|
|
160
|
-
*/
|
|
161
|
-
maxLength?: number;
|
|
162
|
-
/**
|
|
163
|
-
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
164
|
-
* @default ''
|
|
165
|
-
*/
|
|
166
|
-
message?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Sets the minimum number of characters required for the field to be considered valid.
|
|
169
|
-
*/
|
|
170
|
-
minLength?: number;
|
|
171
|
-
/**
|
|
172
|
-
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
173
|
-
*/
|
|
174
|
-
name: string;
|
|
175
|
-
/**
|
|
176
|
-
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
177
|
-
*/
|
|
178
|
-
onBlur?: (event: CustomEvent<InputUrlBlurEventDetail>) => void;
|
|
179
|
-
/**
|
|
180
|
-
* Emitted when the input loses focus after its value was changed.
|
|
181
|
-
*/
|
|
182
|
-
onChange?: (event: CustomEvent<InputUrlChangeEventDetail>) => void;
|
|
183
|
-
/**
|
|
184
|
-
* Emitted on every value change as the user types.
|
|
185
|
-
*/
|
|
186
|
-
onInput?: (event: CustomEvent<InputUrlInputEventDetail>) => void;
|
|
187
|
-
/**
|
|
188
|
-
* Sets a regular expression the entered value must match to be valid. Overrides the browser's default URL validation.
|
|
189
|
-
*/
|
|
190
|
-
pattern?: string;
|
|
191
|
-
/**
|
|
192
|
-
* Sets placeholder text shown inside the field when it is empty, such as an example URL.
|
|
193
|
-
* @default ''
|
|
194
|
-
*/
|
|
195
|
-
placeholder?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
198
|
-
* @default false
|
|
199
|
-
*/
|
|
200
|
-
readOnly?: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* Marks the field as required — form submission is blocked while this field is empty.
|
|
203
|
-
* @default false
|
|
204
|
-
*/
|
|
205
|
-
required?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
208
|
-
* @default 'none'
|
|
209
|
-
*/
|
|
210
|
-
state?: InputUrlState;
|
|
211
|
-
/**
|
|
212
|
-
* Sets the current URL value. Must be an absolute URL (e.g. `https://porsche.com`) to pass browser validation.
|
|
213
|
-
* @default ''
|
|
214
|
-
*/
|
|
215
|
-
value?: string | null;
|
|
216
|
-
} & {
|
|
217
|
-
children?: import("react").ReactNode | undefined;
|
|
218
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, InputWeekAriaAttribute, BreakpointCustomizable, InputWeekBlurEventDetail, InputWeekChangeEventDetail, InputWeekInputEventDetail, InputWeekState } from '../types';
|
|
3
|
-
export type PInputWeekProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
-
*/
|
|
7
|
-
aria?: SelectedAriaAttributes<InputWeekAriaAttribute>;
|
|
8
|
-
/**
|
|
9
|
-
* Provides the browser with a week/year autofill hint.
|
|
10
|
-
*/
|
|
11
|
-
autoComplete?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Reduces the input height and padding for a more compact layout.
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
compact?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Sets a supplementary description displayed below the label to provide additional context.
|
|
19
|
-
* @default ''
|
|
20
|
-
*/
|
|
21
|
-
description?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Disables the field, preventing week selection. The value is not submitted with the form.
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
29
|
-
*/
|
|
30
|
-
form?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the visible label text displayed above the input field.
|
|
38
|
-
* @default ''
|
|
39
|
-
*/
|
|
40
|
-
label?: string;
|
|
41
|
-
/**
|
|
42
|
-
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
loading?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the latest selectable week in YYYY-Www format. Weeks after this are disabled in the picker.
|
|
48
|
-
*/
|
|
49
|
-
max?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
52
|
-
* @default ''
|
|
53
|
-
*/
|
|
54
|
-
message?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the earliest selectable week in YYYY-Www format. Weeks before this are disabled in the picker.
|
|
57
|
-
*/
|
|
58
|
-
min?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
61
|
-
*/
|
|
62
|
-
name: string;
|
|
63
|
-
/**
|
|
64
|
-
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
65
|
-
*/
|
|
66
|
-
onBlur?: (event: CustomEvent<InputWeekBlurEventDetail>) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Emitted when the input loses focus after its value was changed.
|
|
69
|
-
*/
|
|
70
|
-
onChange?: (event: CustomEvent<InputWeekChangeEventDetail>) => void;
|
|
71
|
-
/**
|
|
72
|
-
* Emitted on every value change as the user interacts with the week picker.
|
|
73
|
-
*/
|
|
74
|
-
onInput?: (event: CustomEvent<InputWeekInputEventDetail>) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Makes the field read-only — the value is displayed but cannot be changed. The value is still submitted with the form.
|
|
77
|
-
* @default false
|
|
78
|
-
*/
|
|
79
|
-
readOnly?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Marks the field as required — form submission is blocked while no week is selected.
|
|
82
|
-
* @default false
|
|
83
|
-
*/
|
|
84
|
-
required?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
87
|
-
* @default 'none'
|
|
88
|
-
*/
|
|
89
|
-
state?: InputWeekState;
|
|
90
|
-
/**
|
|
91
|
-
* Sets the stepping interval in weeks.
|
|
92
|
-
* @default 1
|
|
93
|
-
*/
|
|
94
|
-
step?: number;
|
|
95
|
-
/**
|
|
96
|
-
* Sets the current ISO week value in YYYY-Www format (e.g. `2025-W27`).
|
|
97
|
-
* @default ''
|
|
98
|
-
*/
|
|
99
|
-
value?: string | null;
|
|
100
|
-
};
|
|
101
|
-
export declare const PInputWeek: 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"> & {
|
|
102
|
-
/**
|
|
103
|
-
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
104
|
-
*/
|
|
105
|
-
aria?: SelectedAriaAttributes<InputWeekAriaAttribute>;
|
|
106
|
-
/**
|
|
107
|
-
* Provides the browser with a week/year autofill hint.
|
|
108
|
-
*/
|
|
109
|
-
autoComplete?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Reduces the input height and padding for a more compact layout.
|
|
112
|
-
* @default false
|
|
113
|
-
*/
|
|
114
|
-
compact?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Sets a supplementary description displayed below the label to provide additional context.
|
|
117
|
-
* @default ''
|
|
118
|
-
*/
|
|
119
|
-
description?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Disables the field, preventing week selection. The value is not submitted with the form.
|
|
122
|
-
* @default false
|
|
123
|
-
*/
|
|
124
|
-
disabled?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
127
|
-
*/
|
|
128
|
-
form?: string;
|
|
129
|
-
/**
|
|
130
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
131
|
-
* @default false
|
|
132
|
-
*/
|
|
133
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
134
|
-
/**
|
|
135
|
-
* Sets the visible label text displayed above the input field.
|
|
136
|
-
* @default ''
|
|
137
|
-
*/
|
|
138
|
-
label?: string;
|
|
139
|
-
/**
|
|
140
|
-
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
141
|
-
* @default false
|
|
142
|
-
*/
|
|
143
|
-
loading?: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Sets the latest selectable week in YYYY-Www format. Weeks after this are disabled in the picker.
|
|
146
|
-
*/
|
|
147
|
-
max?: string;
|
|
148
|
-
/**
|
|
149
|
-
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
150
|
-
* @default ''
|
|
151
|
-
*/
|
|
152
|
-
message?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Sets the earliest selectable week in YYYY-Www format. Weeks before this are disabled in the picker.
|
|
155
|
-
*/
|
|
156
|
-
min?: string;
|
|
157
|
-
/**
|
|
158
|
-
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
159
|
-
*/
|
|
160
|
-
name: string;
|
|
161
|
-
/**
|
|
162
|
-
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
163
|
-
*/
|
|
164
|
-
onBlur?: (event: CustomEvent<InputWeekBlurEventDetail>) => void;
|
|
165
|
-
/**
|
|
166
|
-
* Emitted when the input loses focus after its value was changed.
|
|
167
|
-
*/
|
|
168
|
-
onChange?: (event: CustomEvent<InputWeekChangeEventDetail>) => void;
|
|
169
|
-
/**
|
|
170
|
-
* Emitted on every value change as the user interacts with the week picker.
|
|
171
|
-
*/
|
|
172
|
-
onInput?: (event: CustomEvent<InputWeekInputEventDetail>) => void;
|
|
173
|
-
/**
|
|
174
|
-
* Makes the field read-only — the value is displayed but cannot be changed. The value is still submitted with the form.
|
|
175
|
-
* @default false
|
|
176
|
-
*/
|
|
177
|
-
readOnly?: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Marks the field as required — form submission is blocked while no week is selected.
|
|
180
|
-
* @default false
|
|
181
|
-
*/
|
|
182
|
-
required?: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
185
|
-
* @default 'none'
|
|
186
|
-
*/
|
|
187
|
-
state?: InputWeekState;
|
|
188
|
-
/**
|
|
189
|
-
* Sets the stepping interval in weeks.
|
|
190
|
-
* @default 1
|
|
191
|
-
*/
|
|
192
|
-
step?: number;
|
|
193
|
-
/**
|
|
194
|
-
* Sets the current ISO week value in YYYY-Www format (e.g. `2025-W27`).
|
|
195
|
-
* @default ''
|
|
196
|
-
*/
|
|
197
|
-
value?: string | null;
|
|
198
|
-
} & {
|
|
199
|
-
children?: import("react").ReactNode | undefined;
|
|
200
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, LinkPureAlignLabel, SelectedAriaAttributes, LinkPureAriaAttribute, LinkPureColor, LinkPureIcon, LinkPureSize, LinkPureTarget } from '../types';
|
|
3
|
-
export type PLinkPureProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Visually marks the link as the currently active navigation item, e.g. the current page.
|
|
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<LinkPureAlignLabel>;
|
|
14
|
-
/**
|
|
15
|
-
* Sets ARIA attributes on the link element to improve accessibility for screen readers.
|
|
16
|
-
*/
|
|
17
|
-
aria?: SelectedAriaAttributes<LinkPureAriaAttribute>;
|
|
18
|
-
/**
|
|
19
|
-
* Sets the foreground color of the link's icon and label text.
|
|
20
|
-
* @default 'primary'
|
|
21
|
-
*/
|
|
22
|
-
color?: LinkPureColor;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the native `download` attribute to trigger a file download. Only applies when `href` is set.
|
|
25
|
-
*/
|
|
26
|
-
download?: 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
|
-
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text.
|
|
34
|
-
*/
|
|
35
|
-
href?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the icon displayed next to the label.
|
|
38
|
-
* @default 'arrow-right'
|
|
39
|
-
*/
|
|
40
|
-
icon?: LinkPureIcon;
|
|
41
|
-
/**
|
|
42
|
-
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
43
|
-
*/
|
|
44
|
-
iconSource?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the `rel` attribute on the link (e.g. `noopener`). Only applies when `href` is set.
|
|
47
|
-
*/
|
|
48
|
-
rel?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the font size of the link label. Supports responsive breakpoint values.
|
|
51
|
-
* @default 'sm'
|
|
52
|
-
*/
|
|
53
|
-
size?: BreakpointCustomizable<LinkPureSize>;
|
|
54
|
-
/**
|
|
55
|
-
* Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
|
|
56
|
-
* @default false
|
|
57
|
-
*/
|
|
58
|
-
stretch?: BreakpointCustomizable<boolean>;
|
|
59
|
-
/**
|
|
60
|
-
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
|
|
61
|
-
* @default '_self'
|
|
62
|
-
*/
|
|
63
|
-
target?: LinkPureTarget;
|
|
64
|
-
/**
|
|
65
|
-
* Adds a text underline to the label to reinforce its link-like appearance.
|
|
66
|
-
* @default false
|
|
67
|
-
*/
|
|
68
|
-
underline?: boolean;
|
|
69
|
-
};
|
|
70
|
-
export declare const PLinkPure: 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"> & {
|
|
71
|
-
/**
|
|
72
|
-
* Visually marks the link as the currently active navigation item, e.g. the current page.
|
|
73
|
-
* @default false
|
|
74
|
-
*/
|
|
75
|
-
active?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
|
|
78
|
-
* @default 'end'
|
|
79
|
-
*/
|
|
80
|
-
alignLabel?: BreakpointCustomizable<LinkPureAlignLabel>;
|
|
81
|
-
/**
|
|
82
|
-
* Sets ARIA attributes on the link element to improve accessibility for screen readers.
|
|
83
|
-
*/
|
|
84
|
-
aria?: SelectedAriaAttributes<LinkPureAriaAttribute>;
|
|
85
|
-
/**
|
|
86
|
-
* Sets the foreground color of the link's icon and label text.
|
|
87
|
-
* @default 'primary'
|
|
88
|
-
*/
|
|
89
|
-
color?: LinkPureColor;
|
|
90
|
-
/**
|
|
91
|
-
* Sets the native `download` attribute to trigger a file download. Only applies when `href` is set.
|
|
92
|
-
*/
|
|
93
|
-
download?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
96
|
-
* @default false
|
|
97
|
-
*/
|
|
98
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
99
|
-
/**
|
|
100
|
-
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text.
|
|
101
|
-
*/
|
|
102
|
-
href?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Sets the icon displayed next to the label.
|
|
105
|
-
* @default 'arrow-right'
|
|
106
|
-
*/
|
|
107
|
-
icon?: LinkPureIcon;
|
|
108
|
-
/**
|
|
109
|
-
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
110
|
-
*/
|
|
111
|
-
iconSource?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Sets the `rel` attribute on the link (e.g. `noopener`). Only applies when `href` is set.
|
|
114
|
-
*/
|
|
115
|
-
rel?: string;
|
|
116
|
-
/**
|
|
117
|
-
* Sets the font size of the link label. Supports responsive breakpoint values.
|
|
118
|
-
* @default 'sm'
|
|
119
|
-
*/
|
|
120
|
-
size?: BreakpointCustomizable<LinkPureSize>;
|
|
121
|
-
/**
|
|
122
|
-
* Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
|
|
123
|
-
* @default false
|
|
124
|
-
*/
|
|
125
|
-
stretch?: BreakpointCustomizable<boolean>;
|
|
126
|
-
/**
|
|
127
|
-
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
|
|
128
|
-
* @default '_self'
|
|
129
|
-
*/
|
|
130
|
-
target?: LinkPureTarget;
|
|
131
|
-
/**
|
|
132
|
-
* Adds a text underline to the label to reinforce its link-like appearance.
|
|
133
|
-
* @default false
|
|
134
|
-
*/
|
|
135
|
-
underline?: boolean;
|
|
136
|
-
} & {
|
|
137
|
-
children?: import("react").ReactNode | undefined;
|
|
138
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, LinkTileProductAspectRatio, LinkTileProductLikeEventDetail, LinkTileProductTarget } from '../types';
|
|
3
|
-
export type PLinkTileProductProps = BaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values.
|
|
6
|
-
* @default '3/4'
|
|
7
|
-
*/
|
|
8
|
-
aspectRatio?: BreakpointCustomizable<LinkTileProductAspectRatio>;
|
|
9
|
-
/**
|
|
10
|
-
* Sets an optional short description providing additional product details below the price.
|
|
11
|
-
*/
|
|
12
|
-
description?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Sets the product name displayed prominently at the top of the tile.
|
|
15
|
-
*/
|
|
16
|
-
heading: string;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element, which is not rendered when `href` is set.
|
|
19
|
-
*/
|
|
20
|
-
href?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Shows a like/bookmark button so users can save the product.
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
likeButton?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Reflects whether the product is currently liked — controls the filled state of the like button.
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
liked?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Emitted when the user clicks the like button, with the new liked state in the event detail.
|
|
33
|
-
*/
|
|
34
|
-
onLike?: (event: CustomEvent<LinkTileProductLikeEventDetail>) => void;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the current retail price of the product, displayed with or without a discount.
|
|
37
|
-
*/
|
|
38
|
-
price: string;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the original recommended retail price shown with a strikethrough to indicate a discount. Requires `price` to be set.
|
|
41
|
-
*/
|
|
42
|
-
priceOriginal?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Sets the `rel` attribute on the link (e.g. `noopener`).
|
|
45
|
-
*/
|
|
46
|
-
rel?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Specifies where to open the linked URL (e.g. `_self`, `_blank`).
|
|
49
|
-
* @default '_self'
|
|
50
|
-
*/
|
|
51
|
-
target?: LinkTileProductTarget;
|
|
52
|
-
};
|
|
53
|
-
export declare const PLinkTileProduct: 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"> & {
|
|
54
|
-
/**
|
|
55
|
-
* Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values.
|
|
56
|
-
* @default '3/4'
|
|
57
|
-
*/
|
|
58
|
-
aspectRatio?: BreakpointCustomizable<LinkTileProductAspectRatio>;
|
|
59
|
-
/**
|
|
60
|
-
* Sets an optional short description providing additional product details below the price.
|
|
61
|
-
*/
|
|
62
|
-
description?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Sets the product name displayed prominently at the top of the tile.
|
|
65
|
-
*/
|
|
66
|
-
heading: string;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element, which is not rendered when `href` is set.
|
|
69
|
-
*/
|
|
70
|
-
href?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Shows a like/bookmark button so users can save the product.
|
|
73
|
-
* @default true
|
|
74
|
-
*/
|
|
75
|
-
likeButton?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Reflects whether the product is currently liked — controls the filled state of the like button.
|
|
78
|
-
* @default false
|
|
79
|
-
*/
|
|
80
|
-
liked?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Emitted when the user clicks the like button, with the new liked state in the event detail.
|
|
83
|
-
*/
|
|
84
|
-
onLike?: (event: CustomEvent<LinkTileProductLikeEventDetail>) => void;
|
|
85
|
-
/**
|
|
86
|
-
* Sets the current retail price of the product, displayed with or without a discount.
|
|
87
|
-
*/
|
|
88
|
-
price: string;
|
|
89
|
-
/**
|
|
90
|
-
* Sets the original recommended retail price shown with a strikethrough to indicate a discount. Requires `price` to be set.
|
|
91
|
-
*/
|
|
92
|
-
priceOriginal?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Sets the `rel` attribute on the link (e.g. `noopener`).
|
|
95
|
-
*/
|
|
96
|
-
rel?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Specifies where to open the linked URL (e.g. `_self`, `_blank`).
|
|
99
|
-
* @default '_self'
|
|
100
|
-
*/
|
|
101
|
-
target?: LinkTileProductTarget;
|
|
102
|
-
} & {
|
|
103
|
-
children?: import("react").ReactNode | undefined;
|
|
104
|
-
} & import("react").RefAttributes<HTMLElement>>;
|