@pushwoosh/dumb-components 3.4.0 → 3.5.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.
|
@@ -32,6 +32,7 @@ export const CalendarDropdown = props => {
|
|
|
32
32
|
buttonColor = 'secondary',
|
|
33
33
|
buttonSize = 'field',
|
|
34
34
|
buttonTextCustom,
|
|
35
|
+
hideButtonIcon,
|
|
35
36
|
allowEmpty,
|
|
36
37
|
buttonView
|
|
37
38
|
} = props;
|
|
@@ -104,7 +105,7 @@ export const CalendarDropdown = props => {
|
|
|
104
105
|
view: buttonView,
|
|
105
106
|
size: buttonSize,
|
|
106
107
|
color: buttonColor,
|
|
107
|
-
icon: _jsx(CalendarIcon, {
|
|
108
|
+
icon: hideButtonIcon ? undefined : _jsx(CalendarIcon, {
|
|
108
109
|
size: buttonSize === 'compact' ? 'small' : 'medium',
|
|
109
110
|
view: "lined"
|
|
110
111
|
}),
|
|
@@ -12,6 +12,8 @@ interface BaseProps {
|
|
|
12
12
|
buttonView?: RequiredButtonProps['view'];
|
|
13
13
|
/** Override the button label instead of the formatted value. */
|
|
14
14
|
buttonTextCustom?: string;
|
|
15
|
+
/** Hide the calendar icon on the trigger button. */
|
|
16
|
+
hideButtonIcon?: boolean;
|
|
15
17
|
/** Allow submitting with no value selected. */
|
|
16
18
|
allowEmpty?: boolean;
|
|
17
19
|
}
|