@@ -78,24 +78,36 @@ export interface DatePickerEventMap extends HTMLElementEventMap, DatePickerCusto
78
78
* -------------------------------|----------------------------|---------
79
79
* `--vaadin-field-default-width` | Default width of the field | `12em`
80
80
*
81
- * `<vaadin-date-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
82
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
83
- *
84
- * In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
85
- *
86
- * Part name | Description
87
- * -----------------|--------------------
88
- * `toggle-button` | Toggle button
89
- * `backdrop` | Backdrop of the overlay
90
- * `overlay` | The overlay container
91
- * `content` | The overlay content
92
- *
93
- * In addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:
94
- *
95
- * Attribute | Description
96
- * ---------------|----------------------------------------------
97
- * `opened` | Set when the date selector overlay is opened
98
- * `week-numbers` | Set when week numbers are shown in the calendar
81
+ * The following shadow DOM parts are available for styling:
82
+ *
83
+ * Part name | Description
84
+ * ---------------------|----------------
85
+ * `label` | The label element
86
+ * `input-field` | The element that wraps prefix, value and buttons
87
+ * `clear-button` | The clear button
88
+ * `error-message` | The error message element
89
+ * `helper-text` | The helper text element wrapper
90
+ * `required-indicator` | The `required` state indicator element
91
+ * `toggle-button` | The toggle button
92
+ * `backdrop` | Backdrop of the overlay
93
+ * `overlay` | The overlay container
94
+ * `content` | The overlay content
95
+ *
96
+ * The following state attributes are available for styling:
97
+ *
98
+ * Attribute | Description
99
+ * ---------------------|---------------------------------
100
+ * `disabled` | Set when the element is disabled
101
+ * `has-value` | Set when the element has a value
102
+ * `has-label` | Set when the element has a label
103
+ * `has-helper` | Set when the element has helper text or slot
104
+ * `has-error-message` | Set when the element has an error message
105
+ * `invalid` | Set when the element is invalid
106
+ * `focused` | Set when the element is focused
107
+ * `focus-ring` | Set when the element is keyboard focused
108
+ * `readonly` | Set when the element is readonly
109
+ * `opened` | Set when the overlay is opened
110
+ * `week-numbers` | Set when week numbers are shown in the calendar
99
111
*
100
112
* ### Internal components
101
113
*
0 commit comments