@porsche-design-system/components-react 4.2.0-rc.5 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/emotion/package.json +1 -8
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/esm/lib/components/button.wrapper.d.ts +24 -24
- package/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +10 -10
- package/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/esm/lib/components/flyout.wrapper.d.ts +20 -20
- package/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/esm/lib/components/link.wrapper.d.ts +20 -20
- package/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +30 -30
- package/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/esm/lib/components/table.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/package.json +6 -6
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +60 -312
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +40 -71
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +60 -312
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +40 -71
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/button.wrapper.d.ts +24 -24
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/ssr/esm/lib/components/link.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/popover.d.ts +1 -1
- package/tailwindcss/index.css +57 -75
- package/vanilla-extract/package.json +1 -8
|
@@ -2,188 +2,188 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, InputWeekBlurEventDetail, InputWeekChangeEventDetail, InputWeekInputEventDetail, InputWeekState } from '../types';
|
|
3
3
|
export type PInputWeekProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Provides
|
|
5
|
+
* Provides the browser with a week/year autofill hint.
|
|
6
6
|
*/
|
|
7
7
|
autoComplete?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Reduces the input height and padding for a more compact layout.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
compact?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
15
15
|
* @default ''
|
|
16
16
|
*/
|
|
17
17
|
description?: string;
|
|
18
18
|
/**
|
|
19
|
-
* Disables the
|
|
19
|
+
* Disables the field, preventing week selection. The value is not submitted with the form.
|
|
20
20
|
* @default false
|
|
21
21
|
*/
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
25
25
|
*/
|
|
26
26
|
form?: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
29
29
|
* @default false
|
|
30
30
|
*/
|
|
31
31
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Sets the visible label text displayed above the input field.
|
|
34
34
|
* @default ''
|
|
35
35
|
*/
|
|
36
36
|
label?: string;
|
|
37
37
|
/**
|
|
38
|
-
* @experimental
|
|
38
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
39
39
|
* @default false
|
|
40
40
|
*/
|
|
41
41
|
loading?: boolean;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Sets the latest selectable week in YYYY-Www format. Weeks after this are disabled in the picker.
|
|
44
44
|
*/
|
|
45
45
|
max?: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
48
48
|
* @default ''
|
|
49
49
|
*/
|
|
50
50
|
message?: string;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Sets the earliest selectable week in YYYY-Www format. Weeks before this are disabled in the picker.
|
|
53
53
|
*/
|
|
54
54
|
min?: string;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
57
57
|
*/
|
|
58
58
|
name: string;
|
|
59
59
|
/**
|
|
60
|
-
* Emitted when the
|
|
60
|
+
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
61
61
|
*/
|
|
62
62
|
onBlur?: (event: CustomEvent<InputWeekBlurEventDetail>) => void;
|
|
63
63
|
/**
|
|
64
|
-
* Emitted when the
|
|
64
|
+
* Emitted when the input loses focus after its value was changed.
|
|
65
65
|
*/
|
|
66
66
|
onChange?: (event: CustomEvent<InputWeekChangeEventDetail>) => void;
|
|
67
67
|
/**
|
|
68
|
-
* Emitted
|
|
68
|
+
* Emitted on every value change as the user interacts with the week picker.
|
|
69
69
|
*/
|
|
70
70
|
onInput?: (event: CustomEvent<InputWeekInputEventDetail>) => void;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Makes the field read-only — the value is displayed but cannot be changed. The value is still submitted with the form.
|
|
73
73
|
* @default false
|
|
74
74
|
*/
|
|
75
75
|
readOnly?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Marks the field as required — form submission is blocked while no week is selected.
|
|
78
78
|
* @default false
|
|
79
79
|
*/
|
|
80
80
|
required?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
83
83
|
* @default 'none'
|
|
84
84
|
*/
|
|
85
85
|
state?: InputWeekState;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Sets the stepping interval in weeks.
|
|
88
88
|
* @default 1
|
|
89
89
|
*/
|
|
90
90
|
step?: number;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Sets the current ISO week value in YYYY-Www format (e.g. `2025-W27`).
|
|
93
93
|
* @default ''
|
|
94
94
|
*/
|
|
95
95
|
value?: string | null;
|
|
96
96
|
};
|
|
97
97
|
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"> & {
|
|
98
98
|
/**
|
|
99
|
-
* Provides
|
|
99
|
+
* Provides the browser with a week/year autofill hint.
|
|
100
100
|
*/
|
|
101
101
|
autoComplete?: string;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Reduces the input height and padding for a more compact layout.
|
|
104
104
|
* @default false
|
|
105
105
|
*/
|
|
106
106
|
compact?: boolean;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
109
109
|
* @default ''
|
|
110
110
|
*/
|
|
111
111
|
description?: string;
|
|
112
112
|
/**
|
|
113
|
-
* Disables the
|
|
113
|
+
* Disables the field, preventing week selection. The value is not submitted with the form.
|
|
114
114
|
* @default false
|
|
115
115
|
*/
|
|
116
116
|
disabled?: boolean;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
119
119
|
*/
|
|
120
120
|
form?: string;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
123
123
|
* @default false
|
|
124
124
|
*/
|
|
125
125
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Sets the visible label text displayed above the input field.
|
|
128
128
|
* @default ''
|
|
129
129
|
*/
|
|
130
130
|
label?: string;
|
|
131
131
|
/**
|
|
132
|
-
* @experimental
|
|
132
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
133
133
|
* @default false
|
|
134
134
|
*/
|
|
135
135
|
loading?: boolean;
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* Sets the latest selectable week in YYYY-Www format. Weeks after this are disabled in the picker.
|
|
138
138
|
*/
|
|
139
139
|
max?: string;
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
142
142
|
* @default ''
|
|
143
143
|
*/
|
|
144
144
|
message?: string;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Sets the earliest selectable week in YYYY-Www format. Weeks before this are disabled in the picker.
|
|
147
147
|
*/
|
|
148
148
|
min?: string;
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
151
151
|
*/
|
|
152
152
|
name: string;
|
|
153
153
|
/**
|
|
154
|
-
* Emitted when the
|
|
154
|
+
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
155
155
|
*/
|
|
156
156
|
onBlur?: (event: CustomEvent<InputWeekBlurEventDetail>) => void;
|
|
157
157
|
/**
|
|
158
|
-
* Emitted when the
|
|
158
|
+
* Emitted when the input loses focus after its value was changed.
|
|
159
159
|
*/
|
|
160
160
|
onChange?: (event: CustomEvent<InputWeekChangeEventDetail>) => void;
|
|
161
161
|
/**
|
|
162
|
-
* Emitted
|
|
162
|
+
* Emitted on every value change as the user interacts with the week picker.
|
|
163
163
|
*/
|
|
164
164
|
onInput?: (event: CustomEvent<InputWeekInputEventDetail>) => void;
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Makes the field read-only — the value is displayed but cannot be changed. The value is still submitted with the form.
|
|
167
167
|
* @default false
|
|
168
168
|
*/
|
|
169
169
|
readOnly?: boolean;
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* Marks the field as required — form submission is blocked while no week is selected.
|
|
172
172
|
* @default false
|
|
173
173
|
*/
|
|
174
174
|
required?: boolean;
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
177
177
|
* @default 'none'
|
|
178
178
|
*/
|
|
179
179
|
state?: InputWeekState;
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Sets the stepping interval in weeks.
|
|
182
182
|
* @default 1
|
|
183
183
|
*/
|
|
184
184
|
step?: number;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* Sets the current ISO week value in YYYY-Www format (e.g. `2025-W27`).
|
|
187
187
|
* @default ''
|
|
188
188
|
*/
|
|
189
189
|
value?: string | null;
|
|
@@ -2,134 +2,134 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, LinkPureAlignLabel, SelectedAriaAttributes, LinkPureAriaAttribute, LinkPureColor, LinkPureIcon, LinkPureSize, LinkPureTarget } from '../types';
|
|
3
3
|
export type PLinkPureProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Visually marks the link as the currently active navigation item, e.g. the current page.
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
active?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
|
|
11
11
|
* @default 'end'
|
|
12
12
|
*/
|
|
13
13
|
alignLabel?: BreakpointCustomizable<LinkPureAlignLabel>;
|
|
14
14
|
/**
|
|
15
|
-
* Sets ARIA attributes.
|
|
15
|
+
* Sets ARIA attributes on the link element to improve accessibility for screen readers.
|
|
16
16
|
*/
|
|
17
17
|
aria?: SelectedAriaAttributes<LinkPureAriaAttribute>;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets the foreground color of the link's icon and label text.
|
|
20
20
|
* @default 'primary'
|
|
21
21
|
*/
|
|
22
22
|
color?: LinkPureColor;
|
|
23
23
|
/**
|
|
24
|
-
* Sets the native `download` attribute
|
|
24
|
+
* Sets the native `download` attribute to trigger a file download. Only applies when `href` is set.
|
|
25
25
|
*/
|
|
26
26
|
download?: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
29
29
|
* @default false
|
|
30
30
|
*/
|
|
31
31
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
* When
|
|
33
|
+
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element.
|
|
34
34
|
*/
|
|
35
35
|
href?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Sets the icon displayed next to the label.
|
|
38
38
|
* @default 'arrow-right'
|
|
39
39
|
*/
|
|
40
40
|
icon?: LinkPureIcon;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
43
43
|
*/
|
|
44
44
|
iconSource?: string;
|
|
45
45
|
/**
|
|
46
|
-
* Sets the `rel` attribute on the link.
|
|
46
|
+
* Sets the `rel` attribute on the link (e.g. `noopener`). Only applies when `href` is set.
|
|
47
47
|
*/
|
|
48
48
|
rel?: string;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Sets the font size of the link label. Supports responsive breakpoint values.
|
|
51
51
|
* @default 'sm'
|
|
52
52
|
*/
|
|
53
53
|
size?: BreakpointCustomizable<LinkPureSize>;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
|
|
56
56
|
* @default false
|
|
57
57
|
*/
|
|
58
58
|
stretch?: BreakpointCustomizable<boolean>;
|
|
59
59
|
/**
|
|
60
|
-
* Specifies where to open the linked
|
|
60
|
+
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
|
|
61
61
|
* @default '_self'
|
|
62
62
|
*/
|
|
63
63
|
target?: LinkPureTarget;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Adds a text underline to the label to reinforce its link-like appearance.
|
|
66
66
|
* @default false
|
|
67
67
|
*/
|
|
68
68
|
underline?: boolean;
|
|
69
69
|
};
|
|
70
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
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Visually marks the link as the currently active navigation item, e.g. the current page.
|
|
73
73
|
* @default false
|
|
74
74
|
*/
|
|
75
75
|
active?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
|
|
78
78
|
* @default 'end'
|
|
79
79
|
*/
|
|
80
80
|
alignLabel?: BreakpointCustomizable<LinkPureAlignLabel>;
|
|
81
81
|
/**
|
|
82
|
-
* Sets ARIA attributes.
|
|
82
|
+
* Sets ARIA attributes on the link element to improve accessibility for screen readers.
|
|
83
83
|
*/
|
|
84
84
|
aria?: SelectedAriaAttributes<LinkPureAriaAttribute>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Sets the foreground color of the link's icon and label text.
|
|
87
87
|
* @default 'primary'
|
|
88
88
|
*/
|
|
89
89
|
color?: LinkPureColor;
|
|
90
90
|
/**
|
|
91
|
-
* Sets the native `download` attribute
|
|
91
|
+
* Sets the native `download` attribute to trigger a file download. Only applies when `href` is set.
|
|
92
92
|
*/
|
|
93
93
|
download?: string;
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
96
96
|
* @default false
|
|
97
97
|
*/
|
|
98
98
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
99
99
|
/**
|
|
100
|
-
* When
|
|
100
|
+
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element.
|
|
101
101
|
*/
|
|
102
102
|
href?: string;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Sets the icon displayed next to the label.
|
|
105
105
|
* @default 'arrow-right'
|
|
106
106
|
*/
|
|
107
107
|
icon?: LinkPureIcon;
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
110
110
|
*/
|
|
111
111
|
iconSource?: string;
|
|
112
112
|
/**
|
|
113
|
-
* Sets the `rel` attribute on the link.
|
|
113
|
+
* Sets the `rel` attribute on the link (e.g. `noopener`). Only applies when `href` is set.
|
|
114
114
|
*/
|
|
115
115
|
rel?: string;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
117
|
+
* Sets the font size of the link label. Supports responsive breakpoint values.
|
|
118
118
|
* @default 'sm'
|
|
119
119
|
*/
|
|
120
120
|
size?: BreakpointCustomizable<LinkPureSize>;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
|
|
123
123
|
* @default false
|
|
124
124
|
*/
|
|
125
125
|
stretch?: BreakpointCustomizable<boolean>;
|
|
126
126
|
/**
|
|
127
|
-
* Specifies where to open the linked
|
|
127
|
+
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
|
|
128
128
|
* @default '_self'
|
|
129
129
|
*/
|
|
130
130
|
target?: LinkPureTarget;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* Adds a text underline to the label to reinforce its link-like appearance.
|
|
133
133
|
* @default false
|
|
134
134
|
*/
|
|
135
135
|
underline?: boolean;
|
|
@@ -2,100 +2,100 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, LinkTileProductAspectRatio, LinkTileProductLikeEventDetail, LinkTileProductTarget } from '../types';
|
|
3
3
|
export type PLinkTileProductProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values.
|
|
6
6
|
* @default '3/4'
|
|
7
7
|
*/
|
|
8
8
|
aspectRatio?: BreakpointCustomizable<LinkTileProductAspectRatio>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets an optional short description providing additional product details below the price.
|
|
11
11
|
*/
|
|
12
12
|
description?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the product name displayed prominently at the top of the tile.
|
|
15
15
|
*/
|
|
16
16
|
heading: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element.
|
|
19
19
|
*/
|
|
20
20
|
href?: string;
|
|
21
21
|
/**
|
|
22
|
-
* Shows a like button.
|
|
22
|
+
* Shows a like/bookmark button so users can save the product.
|
|
23
23
|
* @default true
|
|
24
24
|
*/
|
|
25
25
|
likeButton?: boolean;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Reflects whether the product is currently liked — controls the filled state of the like button.
|
|
28
28
|
* @default false
|
|
29
29
|
*/
|
|
30
30
|
liked?: boolean;
|
|
31
31
|
/**
|
|
32
|
-
* Emitted when the like button
|
|
32
|
+
* Emitted when the user clicks the like button, with the new liked state in the event detail.
|
|
33
33
|
*/
|
|
34
34
|
onLike?: (event: CustomEvent<LinkTileProductLikeEventDetail>) => void;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Sets the current retail price of the product, displayed with or without a discount.
|
|
37
37
|
*/
|
|
38
38
|
price: string;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Sets the original recommended retail price shown with a strikethrough to indicate a discount. Requires `price` to be set.
|
|
41
41
|
*/
|
|
42
42
|
priceOriginal?: string;
|
|
43
43
|
/**
|
|
44
|
-
* Sets the `rel` attribute on the link.
|
|
44
|
+
* Sets the `rel` attribute on the link (e.g. `noopener`).
|
|
45
45
|
*/
|
|
46
46
|
rel?: string;
|
|
47
47
|
/**
|
|
48
|
-
* Specifies where to open the linked
|
|
48
|
+
* Specifies where to open the linked URL (e.g. `_self`, `_blank`).
|
|
49
49
|
* @default '_self'
|
|
50
50
|
*/
|
|
51
51
|
target?: LinkTileProductTarget;
|
|
52
52
|
};
|
|
53
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
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values.
|
|
56
56
|
* @default '3/4'
|
|
57
57
|
*/
|
|
58
58
|
aspectRatio?: BreakpointCustomizable<LinkTileProductAspectRatio>;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Sets an optional short description providing additional product details below the price.
|
|
61
61
|
*/
|
|
62
62
|
description?: string;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Sets the product name displayed prominently at the top of the tile.
|
|
65
65
|
*/
|
|
66
66
|
heading: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element.
|
|
69
69
|
*/
|
|
70
70
|
href?: string;
|
|
71
71
|
/**
|
|
72
|
-
* Shows a like button.
|
|
72
|
+
* Shows a like/bookmark button so users can save the product.
|
|
73
73
|
* @default true
|
|
74
74
|
*/
|
|
75
75
|
likeButton?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Reflects whether the product is currently liked — controls the filled state of the like button.
|
|
78
78
|
* @default false
|
|
79
79
|
*/
|
|
80
80
|
liked?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
* Emitted when the like button
|
|
82
|
+
* Emitted when the user clicks the like button, with the new liked state in the event detail.
|
|
83
83
|
*/
|
|
84
84
|
onLike?: (event: CustomEvent<LinkTileProductLikeEventDetail>) => void;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Sets the current retail price of the product, displayed with or without a discount.
|
|
87
87
|
*/
|
|
88
88
|
price: string;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Sets the original recommended retail price shown with a strikethrough to indicate a discount. Requires `price` to be set.
|
|
91
91
|
*/
|
|
92
92
|
priceOriginal?: string;
|
|
93
93
|
/**
|
|
94
|
-
* Sets the `rel` attribute on the link.
|
|
94
|
+
* Sets the `rel` attribute on the link (e.g. `noopener`).
|
|
95
95
|
*/
|
|
96
96
|
rel?: string;
|
|
97
97
|
/**
|
|
98
|
-
* Specifies where to open the linked
|
|
98
|
+
* Specifies where to open the linked URL (e.g. `_self`, `_blank`).
|
|
99
99
|
* @default '_self'
|
|
100
100
|
*/
|
|
101
101
|
target?: LinkTileProductTarget;
|