baseui 0.0.0-next-155c82a → 0.0.0-next-f299539
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/app-nav-bar/mobile-menu.js +6 -12
- package/app-nav-bar/mobile-menu.js.flow +0 -6
- package/app-nav-bar/user-menu.js +4 -8
- package/app-nav-bar/user-menu.js.flow +0 -4
- package/aspect-ratio-box/aspect-ratio-box-body.js.flow +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js.flow +3 -2
- package/block/types.js.flow +1 -0
- package/breadcrumbs/breadcrumbs.js +2 -5
- package/breadcrumbs/breadcrumbs.js.flow +3 -6
- package/button/button.js +2 -1
- package/button/button.js.flow +9 -7
- package/button/styled-components.js +1 -3
- package/button/styled-components.js.flow +12 -3
- package/button/utils.js.flow +2 -2
- package/button-group/stateful-button-group.js +5 -1
- package/button-group/stateful-button-group.js.flow +1 -0
- package/button-group/types.js.flow +0 -1
- package/combobox/combobox.js.flow +2 -6
- package/combobox/styled-components.js.flow +9 -2
- package/data-table/column-custom.js +1 -0
- package/data-table/column-custom.js.flow +1 -0
- package/datepicker/calendar-header.js +3 -6
- package/datepicker/calendar-header.js.flow +7 -9
- package/datepicker/calendar.js +2 -1
- package/datepicker/calendar.js.flow +1 -1
- package/datepicker/datepicker.js +1 -1
- package/datepicker/datepicker.js.flow +1 -0
- package/datepicker/types.js.flow +1 -1
- package/drawer/constants.js.flow +3 -2
- package/es/app-nav-bar/mobile-menu.js +6 -12
- package/es/app-nav-bar/user-menu.js +4 -8
- package/es/aspect-ratio-box/aspect-ratio-box.js +1 -1
- package/es/breadcrumbs/breadcrumbs.js +3 -6
- package/es/button/button.js +2 -1
- package/es/button/styled-components.js +2 -3
- package/es/button-group/stateful-button-group.js +4 -1
- package/es/combobox/combobox.js +2 -4
- package/es/data-table/column-custom.js +1 -0
- package/es/datepicker/calendar-header.js +6 -9
- package/es/datepicker/calendar.js +3 -3
- package/es/datepicker/datepicker.js +1 -1
- package/es/flex-grid/flex-grid-item.js +1 -1
- package/es/flex-grid/flex-grid.js +6 -3
- package/es/heading/heading.js +1 -1
- package/es/helpers/overrides.js +6 -2
- package/es/icon/alert.js +18 -14
- package/es/icon/arrow-down.js +18 -14
- package/es/icon/arrow-left.js +18 -14
- package/es/icon/arrow-right.js +18 -14
- package/es/icon/arrow-up.js +18 -14
- package/es/icon/blank.js +14 -10
- package/es/icon/check-indeterminate.js +18 -14
- package/es/icon/check.js +18 -14
- package/es/icon/chevron-down.js +19 -15
- package/es/icon/chevron-left.js +18 -14
- package/es/icon/chevron-right.js +18 -14
- package/es/icon/chevron-up.js +19 -15
- package/es/icon/delete-alt.js +18 -14
- package/es/icon/delete.js +18 -14
- package/es/icon/filter.js +32 -28
- package/es/icon/grab.js +18 -14
- package/es/icon/hide.js +16 -12
- package/es/icon/menu.js +32 -28
- package/es/icon/overflow.js +26 -22
- package/es/icon/plus.js +18 -14
- package/es/icon/search.js +18 -14
- package/es/icon/show.js +16 -12
- package/es/icon/spinner.js +23 -19
- package/es/icon/triangle-down.js +16 -12
- package/es/icon/triangle-left.js +16 -12
- package/es/icon/triangle-right.js +16 -12
- package/es/icon/triangle-up.js +16 -12
- package/es/icon/upload.js +18 -14
- package/es/input/styled-components.js +3 -2
- package/es/layer/layer.js +0 -1
- package/es/map-marker/fixed-marker.js +11 -5
- package/es/menu/maybe-child-menu.js +1 -2
- package/es/menu/stateful-container.js +1 -0
- package/es/menu/stateful-menu.js +4 -1
- package/es/modal/modal-button.js +4 -1
- package/es/modal/modal.js +0 -2
- package/es/payment-card/payment-card.js +4 -1
- package/es/payment-card/styled-components.js +0 -1
- package/es/phone-input/base-country-picker.js +5 -8
- package/es/phone-input/country-picker.js +5 -8
- package/es/phone-input/country-select.js +5 -8
- package/es/phone-input/flag.js +2 -1
- package/es/phone-input/phone-input-lite.js +1 -2
- package/es/phone-input/phone-input-next.js +1 -2
- package/es/pin-code/pin-code.js +1 -2
- package/es/popover/popover.js +2 -1
- package/es/progress-bar/progressbar-rounded.js +25 -22
- package/es/progress-bar/progressbar.js +4 -1
- package/es/select/autosize-input.js +1 -2
- package/es/select/dropdown.js +1 -3
- package/es/select/select-component.js +2 -1
- package/es/snackbar/snackbar-element.js +3 -3
- package/es/snackbar/styled-components.js +1 -1
- package/es/spinner/spinner.js +22 -18
- package/es/spinner/styled-components.js +3 -2
- package/es/table-semantic/styled-components.js +2 -1
- package/es/tag/styled-components.js +4 -8
- package/es/textarea/styled-components.js +9 -7
- package/es/textarea/textarea.js +2 -1
- package/es/timepicker/timepicker.js +2 -4
- package/es/timezonepicker/timezone-picker.js +2 -5
- package/es/toast/styled-components.js +30 -28
- package/es/toast/toaster.js +5 -7
- package/es/toast/types.js +0 -2
- package/es/tree-view/tree-label-interactable.js +8 -4
- package/es/tree-view/tree-label.js +5 -1
- package/es/typography/index.js +144 -36
- package/esm/app-nav-bar/mobile-menu.js +6 -12
- package/esm/app-nav-bar/user-menu.js +4 -8
- package/esm/aspect-ratio-box/aspect-ratio-box.js +1 -1
- package/esm/breadcrumbs/breadcrumbs.js +3 -6
- package/esm/button/button.js +2 -1
- package/esm/button/styled-components.js +1 -3
- package/esm/button-group/stateful-button-group.js +5 -1
- package/esm/data-table/column-custom.js +1 -0
- package/esm/datepicker/calendar-header.js +6 -9
- package/esm/datepicker/calendar.js +2 -1
- package/esm/datepicker/datepicker.js +1 -1
- package/esm/flex-grid/flex-grid-item.js +1 -1
- package/esm/flex-grid/flex-grid.js +13 -9
- package/esm/heading/heading.js +1 -1
- package/esm/helpers/overrides.js +6 -2
- package/esm/icon/alert.js +18 -14
- package/esm/icon/arrow-down.js +18 -14
- package/esm/icon/arrow-left.js +18 -14
- package/esm/icon/arrow-right.js +18 -14
- package/esm/icon/arrow-up.js +18 -14
- package/esm/icon/blank.js +14 -10
- package/esm/icon/check-indeterminate.js +18 -14
- package/esm/icon/check.js +18 -14
- package/esm/icon/chevron-down.js +19 -15
- package/esm/icon/chevron-left.js +18 -14
- package/esm/icon/chevron-right.js +18 -14
- package/esm/icon/chevron-up.js +19 -15
- package/esm/icon/delete-alt.js +18 -14
- package/esm/icon/delete.js +18 -14
- package/esm/icon/filter.js +32 -28
- package/esm/icon/grab.js +18 -14
- package/esm/icon/hide.js +16 -12
- package/esm/icon/menu.js +32 -28
- package/esm/icon/overflow.js +26 -22
- package/esm/icon/plus.js +18 -14
- package/esm/icon/search.js +18 -14
- package/esm/icon/show.js +16 -12
- package/esm/icon/spinner.js +23 -19
- package/esm/icon/triangle-down.js +16 -12
- package/esm/icon/triangle-left.js +16 -12
- package/esm/icon/triangle-right.js +16 -12
- package/esm/icon/triangle-up.js +16 -12
- package/esm/icon/upload.js +18 -14
- package/esm/input/styled-components.js +6 -2
- package/esm/layer/layer.js +0 -1
- package/esm/map-marker/fixed-marker.js +11 -5
- package/esm/menu/maybe-child-menu.js +1 -2
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/stateful-menu.js +9 -5
- package/esm/modal/modal-button.js +9 -5
- package/esm/modal/modal.js +0 -2
- package/esm/payment-card/payment-card.js +25 -21
- package/esm/phone-input/base-country-picker.js +5 -8
- package/esm/phone-input/country-picker.js +5 -8
- package/esm/phone-input/country-select.js +5 -8
- package/esm/phone-input/flag.js +2 -1
- package/esm/phone-input/phone-input-lite.js +1 -2
- package/esm/phone-input/phone-input-next.js +1 -2
- package/esm/pin-code/pin-code.js +1 -2
- package/esm/popover/popover.js +2 -1
- package/esm/progress-bar/progressbar-rounded.js +25 -22
- package/esm/progress-bar/progressbar.js +7 -3
- package/esm/select/autosize-input.js +1 -2
- package/esm/select/dropdown.js +0 -1
- package/esm/select/select-component.js +2 -1
- package/esm/snackbar/snackbar-element.js +3 -3
- package/esm/snackbar/styled-components.js +1 -1
- package/esm/spinner/spinner.js +22 -18
- package/esm/spinner/styled-components.js +0 -2
- package/esm/table-semantic/styled-components.js +2 -1
- package/esm/tag/styled-components.js +4 -8
- package/esm/textarea/styled-components.js +8 -7
- package/esm/textarea/textarea.js +2 -1
- package/esm/timepicker/timepicker.js +2 -4
- package/esm/timezonepicker/timezone-picker.js +2 -5
- package/esm/toast/styled-components.js +30 -19
- package/esm/toast/toaster.js +5 -7
- package/esm/toast/types.js +0 -2
- package/esm/tree-view/tree-label-interactable.js +12 -8
- package/esm/tree-view/tree-label.js +7 -3
- package/esm/typography/index.js +416 -272
- package/flex-grid/flex-grid-item.js +1 -1
- package/flex-grid/flex-grid-item.js.flow +3 -2
- package/flex-grid/flex-grid.js +13 -9
- package/flex-grid/flex-grid.js.flow +3 -2
- package/heading/heading.js +1 -1
- package/heading/heading.js.flow +1 -0
- package/helpers/overrides.js +6 -2
- package/helpers/overrides.js.flow +13 -6
- package/icon/alert.js +18 -14
- package/icon/alert.js.flow +1 -0
- package/icon/arrow-down.js +18 -14
- package/icon/arrow-down.js.flow +1 -0
- package/icon/arrow-left.js +18 -14
- package/icon/arrow-left.js.flow +1 -0
- package/icon/arrow-right.js +18 -14
- package/icon/arrow-right.js.flow +1 -0
- package/icon/arrow-up.js +18 -14
- package/icon/arrow-up.js.flow +1 -0
- package/icon/blank.js +14 -10
- package/icon/blank.js.flow +1 -0
- package/icon/check-indeterminate.js +18 -14
- package/icon/check-indeterminate.js.flow +1 -0
- package/icon/check.js +18 -14
- package/icon/check.js.flow +1 -0
- package/icon/chevron-down.js +19 -15
- package/icon/chevron-down.js.flow +1 -0
- package/icon/chevron-left.js +18 -14
- package/icon/chevron-left.js.flow +1 -0
- package/icon/chevron-right.js +18 -14
- package/icon/chevron-right.js.flow +1 -0
- package/icon/chevron-up.js +19 -15
- package/icon/chevron-up.js.flow +1 -0
- package/icon/delete-alt.js +18 -14
- package/icon/delete-alt.js.flow +1 -0
- package/icon/delete.js +18 -14
- package/icon/delete.js.flow +1 -0
- package/icon/filter.js +32 -28
- package/icon/filter.js.flow +1 -0
- package/icon/grab.js +18 -14
- package/icon/grab.js.flow +1 -0
- package/icon/hide.js +16 -12
- package/icon/hide.js.flow +1 -0
- package/icon/menu.js +32 -28
- package/icon/menu.js.flow +1 -0
- package/icon/overflow.js +26 -22
- package/icon/overflow.js.flow +1 -0
- package/icon/plus.js +18 -14
- package/icon/plus.js.flow +1 -0
- package/icon/search.js +18 -14
- package/icon/search.js.flow +1 -0
- package/icon/show.js +16 -12
- package/icon/show.js.flow +1 -0
- package/icon/spinner.js +23 -19
- package/icon/spinner.js.flow +1 -0
- package/icon/styled-components.js.flow +10 -1
- package/icon/triangle-down.js +16 -12
- package/icon/triangle-down.js.flow +1 -0
- package/icon/triangle-left.js +16 -12
- package/icon/triangle-left.js.flow +1 -0
- package/icon/triangle-right.js +16 -12
- package/icon/triangle-right.js.flow +1 -0
- package/icon/triangle-up.js +16 -12
- package/icon/triangle-up.js.flow +1 -0
- package/icon/upload.js +18 -14
- package/icon/upload.js.flow +1 -0
- package/input/styled-components.js +6 -2
- package/input/styled-components.js.flow +58 -10
- package/layer/layer.js +0 -1
- package/layer/layer.js.flow +0 -1
- package/map-marker/fixed-marker.js +11 -5
- package/map-marker/fixed-marker.js.flow +8 -3
- package/menu/maybe-child-menu.js +1 -2
- package/menu/maybe-child-menu.js.flow +0 -1
- package/menu/stateful-container.js +1 -0
- package/menu/stateful-container.js.flow +4 -1
- package/menu/stateful-menu.js +9 -5
- package/menu/stateful-menu.js.flow +1 -0
- package/modal/modal-button.js +9 -5
- package/modal/modal-button.js.flow +1 -0
- package/modal/modal.js +0 -2
- package/modal/modal.js.flow +0 -2
- package/package.json +2 -2
- package/payment-card/payment-card.js +25 -21
- package/payment-card/payment-card.js.flow +1 -0
- package/payment-card/styled-components.js.flow +4 -4
- package/phone-input/base-country-picker.js +5 -8
- package/phone-input/base-country-picker.js.flow +2 -5
- package/phone-input/country-picker.js +5 -8
- package/phone-input/country-picker.js.flow +11 -10
- package/phone-input/country-select.js +5 -8
- package/phone-input/country-select.js.flow +2 -5
- package/phone-input/flag.js +2 -1
- package/phone-input/flag.js.flow +1 -0
- package/phone-input/phone-input-lite.js +1 -2
- package/phone-input/phone-input-lite.js.flow +0 -1
- package/phone-input/phone-input-next.js +1 -2
- package/phone-input/phone-input-next.js.flow +4 -3
- package/phone-input/styled-components.js.flow +10 -5
- package/pin-code/pin-code.js +1 -2
- package/pin-code/pin-code.js.flow +0 -1
- package/popover/popover.js +2 -1
- package/popover/popover.js.flow +1 -0
- package/progress-bar/progressbar-rounded.js +25 -22
- package/progress-bar/progressbar-rounded.js.flow +5 -1
- package/progress-bar/progressbar.js +7 -3
- package/progress-bar/progressbar.js.flow +1 -0
- package/select/autosize-input.js +1 -2
- package/select/autosize-input.js.flow +0 -1
- package/select/dropdown.js +0 -1
- package/select/dropdown.js.flow +0 -2
- package/select/select-component.js +2 -1
- package/select/select-component.js.flow +3 -1
- package/slider/types.js.flow +1 -1
- package/snackbar/snackbar-element.js +3 -3
- package/snackbar/snackbar-element.js.flow +2 -2
- package/snackbar/styled-components.js +1 -1
- package/snackbar/styled-components.js.flow +6 -5
- package/spinner/spinner.js +22 -18
- package/spinner/spinner.js.flow +2 -2
- package/spinner/styled-components.js +0 -2
- package/spinner/styled-components.js.flow +3 -2
- package/styles/util.js.flow +15 -2
- package/table-semantic/styled-components.js +2 -1
- package/table-semantic/styled-components.js.flow +6 -3
- package/tag/styled-components.js +4 -8
- package/tag/styled-components.js.flow +143 -136
- package/textarea/styled-components.js +8 -7
- package/textarea/styled-components.js.flow +10 -10
- package/textarea/textarea.js +2 -1
- package/textarea/textarea.js.flow +1 -0
- package/themes/types.js.flow +7 -2
- package/timepicker/timepicker.js +2 -4
- package/timepicker/timepicker.js.flow +0 -2
- package/timezonepicker/timezone-picker.js +2 -5
- package/timezonepicker/timezone-picker.js.flow +1 -4
- package/toast/styled-components.js +30 -19
- package/toast/styled-components.js.flow +88 -65
- package/toast/toaster.js +5 -7
- package/toast/toaster.js.flow +4 -9
- package/toast/types.js.flow +0 -1
- package/tree-view/tree-label-interactable.js +12 -8
- package/tree-view/tree-label-interactable.js.flow +1 -0
- package/tree-view/tree-label.js +7 -3
- package/tree-view/tree-label.js.flow +1 -0
- package/typography/index.js +416 -272
- package/typography/index.js.flow +36 -0
|
@@ -151,21 +151,18 @@ function MobileMenu(props) {
|
|
|
151
151
|
var _getOverrides3 = (0, _overrides.getOverrides)(overrides.SideMenuButton, _index.Button),
|
|
152
152
|
_getOverrides4 = _slicedToArray(_getOverrides3, 2),
|
|
153
153
|
SideMenuButton = _getOverrides4[0],
|
|
154
|
-
sideMenuButtonProps = _getOverrides4[1];
|
|
155
|
-
|
|
154
|
+
sideMenuButtonProps = _getOverrides4[1];
|
|
156
155
|
|
|
157
156
|
sideMenuButtonProps.overrides = (0, _overrides.mergeOverrides)({
|
|
158
157
|
BaseButton: {
|
|
159
158
|
component: _styledComponents.StyledSideMenuButton
|
|
160
159
|
}
|
|
161
|
-
},
|
|
162
|
-
sideMenuButtonProps.overrides);
|
|
160
|
+
}, sideMenuButtonProps.overrides);
|
|
163
161
|
|
|
164
162
|
var _getOverrides5 = (0, _overrides.getOverrides)(overrides.MobileDrawer, _index2.Drawer),
|
|
165
163
|
_getOverrides6 = _slicedToArray(_getOverrides5, 2),
|
|
166
164
|
MobileDrawer = _getOverrides6[0],
|
|
167
|
-
drawerProps = _getOverrides6[1];
|
|
168
|
-
|
|
165
|
+
drawerProps = _getOverrides6[1];
|
|
169
166
|
|
|
170
167
|
drawerProps.overrides = (0, _overrides.mergeOverrides)({
|
|
171
168
|
DrawerBody: {
|
|
@@ -183,14 +180,12 @@ function MobileMenu(props) {
|
|
|
183
180
|
Close: function Close() {
|
|
184
181
|
return null;
|
|
185
182
|
}
|
|
186
|
-
},
|
|
187
|
-
drawerProps.overrides);
|
|
183
|
+
}, drawerProps.overrides);
|
|
188
184
|
|
|
189
185
|
var _getOverrides7 = (0, _overrides.getOverrides)(overrides.MobileMenu, _index4.StatefulMenu),
|
|
190
186
|
_getOverrides8 = _slicedToArray(_getOverrides7, 2),
|
|
191
187
|
MobileMenu = _getOverrides8[0],
|
|
192
|
-
menuProps = _getOverrides8[1];
|
|
193
|
-
|
|
188
|
+
menuProps = _getOverrides8[1];
|
|
194
189
|
|
|
195
190
|
menuProps.overrides = (0, _overrides.mergeOverrides)({
|
|
196
191
|
List: {
|
|
@@ -210,8 +205,7 @@ function MobileMenu(props) {
|
|
|
210
205
|
overrides: overrides
|
|
211
206
|
}));
|
|
212
207
|
})
|
|
213
|
-
},
|
|
214
|
-
menuProps.overrides);
|
|
208
|
+
}, menuProps.overrides);
|
|
215
209
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SideMenuButton, _extends({
|
|
216
210
|
onClick: toggleMenu
|
|
217
211
|
}, sideMenuButtonProps), /*#__PURE__*/React.createElement(_menu.default, {
|
|
@@ -119,10 +119,8 @@ export default function MobileMenu(props: AppNavBarPropsT) {
|
|
|
119
119
|
overrides.SideMenuButton,
|
|
120
120
|
Button,
|
|
121
121
|
);
|
|
122
|
-
// $FlowFixMe
|
|
123
122
|
sideMenuButtonProps.overrides = mergeOverrides(
|
|
124
123
|
{BaseButton: {component: StyledSideMenuButton}},
|
|
125
|
-
// $FlowFixMe
|
|
126
124
|
sideMenuButtonProps.overrides,
|
|
127
125
|
);
|
|
128
126
|
|
|
@@ -130,7 +128,6 @@ export default function MobileMenu(props: AppNavBarPropsT) {
|
|
|
130
128
|
overrides.MobileDrawer,
|
|
131
129
|
Drawer,
|
|
132
130
|
);
|
|
133
|
-
// $FlowFixMe
|
|
134
131
|
drawerProps.overrides = mergeOverrides(
|
|
135
132
|
{
|
|
136
133
|
DrawerBody: {
|
|
@@ -146,7 +143,6 @@ export default function MobileMenu(props: AppNavBarPropsT) {
|
|
|
146
143
|
// Removes the close icon from the drawer
|
|
147
144
|
Close: () => null,
|
|
148
145
|
},
|
|
149
|
-
// $FlowFixMe
|
|
150
146
|
drawerProps.overrides,
|
|
151
147
|
);
|
|
152
148
|
|
|
@@ -154,7 +150,6 @@ export default function MobileMenu(props: AppNavBarPropsT) {
|
|
|
154
150
|
overrides.MobileMenu,
|
|
155
151
|
StatefulMenu,
|
|
156
152
|
);
|
|
157
|
-
// $FlowFixMe
|
|
158
153
|
menuProps.overrides = mergeOverrides(
|
|
159
154
|
{
|
|
160
155
|
List: {
|
|
@@ -177,7 +172,6 @@ export default function MobileMenu(props: AppNavBarPropsT) {
|
|
|
177
172
|
);
|
|
178
173
|
}),
|
|
179
174
|
},
|
|
180
|
-
// $FlowFixMe
|
|
181
175
|
menuProps.overrides,
|
|
182
176
|
);
|
|
183
177
|
|
package/app-nav-bar/user-menu.js
CHANGED
|
@@ -98,21 +98,18 @@ function UserMenuComponent(props) {
|
|
|
98
98
|
var _getOverrides3 = (0, _overrides.getOverrides)(overrides.UserMenuButton, _index2.Button),
|
|
99
99
|
_getOverrides4 = _slicedToArray(_getOverrides3, 2),
|
|
100
100
|
UserMenuButton = _getOverrides4[0],
|
|
101
|
-
userMenuButtonProps = _getOverrides4[1];
|
|
102
|
-
|
|
101
|
+
userMenuButtonProps = _getOverrides4[1];
|
|
103
102
|
|
|
104
103
|
userMenuButtonProps.overrides = (0, _overrides.mergeOverrides)({
|
|
105
104
|
BaseButton: {
|
|
106
105
|
component: _styledComponents.StyledUserMenuButton
|
|
107
106
|
}
|
|
108
|
-
},
|
|
109
|
-
userMenuButtonProps.overrides);
|
|
107
|
+
}, userMenuButtonProps.overrides);
|
|
110
108
|
|
|
111
109
|
var _getOverrides5 = (0, _overrides.getOverrides)(overrides.UserMenu, _index4.StatefulMenu),
|
|
112
110
|
_getOverrides6 = _slicedToArray(_getOverrides5, 2),
|
|
113
111
|
UserMenu = _getOverrides6[0],
|
|
114
|
-
userMenuProps = _getOverrides6[1];
|
|
115
|
-
|
|
112
|
+
userMenuProps = _getOverrides6[1];
|
|
116
113
|
|
|
117
114
|
userMenuProps.overrides = (0, _overrides.mergeOverrides)({
|
|
118
115
|
List: {
|
|
@@ -142,8 +139,7 @@ function UserMenuComponent(props) {
|
|
|
142
139
|
mapItemToNode: props.mapItemToNode
|
|
143
140
|
}));
|
|
144
141
|
})
|
|
145
|
-
},
|
|
146
|
-
userMenuProps.overrides);
|
|
142
|
+
}, userMenuProps.overrides);
|
|
147
143
|
return /*#__PURE__*/React.createElement(_index5.StatefulPopover, {
|
|
148
144
|
content: function content(_ref3) {
|
|
149
145
|
var close = _ref3.close;
|
|
@@ -64,10 +64,8 @@ export default function UserMenuComponent(props: {|
|
|
|
64
64
|
overrides.UserMenuButton,
|
|
65
65
|
Button,
|
|
66
66
|
);
|
|
67
|
-
// $FlowFixMe
|
|
68
67
|
userMenuButtonProps.overrides = mergeOverrides(
|
|
69
68
|
{BaseButton: {component: StyledUserMenuButton}},
|
|
70
|
-
// $FlowFixMe
|
|
71
69
|
userMenuButtonProps.overrides,
|
|
72
70
|
);
|
|
73
71
|
|
|
@@ -75,7 +73,6 @@ export default function UserMenuComponent(props: {|
|
|
|
75
73
|
overrides.UserMenu,
|
|
76
74
|
StatefulMenu,
|
|
77
75
|
);
|
|
78
|
-
// $FlowFixMe
|
|
79
76
|
userMenuProps.overrides = mergeOverrides(
|
|
80
77
|
{
|
|
81
78
|
List: {
|
|
@@ -107,7 +104,6 @@ export default function UserMenuComponent(props: {|
|
|
|
107
104
|
);
|
|
108
105
|
}),
|
|
109
106
|
},
|
|
110
|
-
// $FlowFixMe
|
|
111
107
|
userMenuProps.overrides,
|
|
112
108
|
);
|
|
113
109
|
|
|
@@ -58,7 +58,7 @@ var AspectRatioBox = function AspectRatioBox(_ref2) {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
var blockOverrides = (0, _overrides.mergeOverrides)(aspectRatioBoxOverrides, overrides);
|
|
61
|
-
return /*#__PURE__*/React.createElement(_index.Block // coerced to any because
|
|
61
|
+
return /*#__PURE__*/React.createElement(_index.Block // coerced to any because of how react components are typed.
|
|
62
62
|
// cannot guarantee an html element
|
|
63
63
|
// eslint-disable-next-line flowtype/no-weak-types
|
|
64
64
|
, _extends({
|
|
@@ -35,7 +35,8 @@ const AspectRatioBox = ({
|
|
|
35
35
|
aspectRatio = 1,
|
|
36
36
|
overrides = {},
|
|
37
37
|
...restProps
|
|
38
|
-
}
|
|
38
|
+
}: // eslint-disable-next-line flowtype/no-weak-types
|
|
39
|
+
AspectRatioBoxPropsT & {forwardedRef: any}): React.Node => {
|
|
39
40
|
const aspectRatioBoxOverrides = {
|
|
40
41
|
Block: {
|
|
41
42
|
style: aspectRatioBoxStyle,
|
|
@@ -44,7 +45,7 @@ const AspectRatioBox = ({
|
|
|
44
45
|
const blockOverrides = mergeOverrides(aspectRatioBoxOverrides, overrides);
|
|
45
46
|
return (
|
|
46
47
|
<Block
|
|
47
|
-
// coerced to any because
|
|
48
|
+
// coerced to any because of how react components are typed.
|
|
48
49
|
// cannot guarantee an html element
|
|
49
50
|
// eslint-disable-next-line flowtype/no-weak-types
|
|
50
51
|
ref={(forwardedRef: any)}
|
package/block/types.js.flow
CHANGED
|
@@ -343,6 +343,7 @@ export type BlockPropsT = {
|
|
|
343
343
|
textOverflow?: ResponsiveT<string>,
|
|
344
344
|
/** available values: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space */
|
|
345
345
|
whiteSpace?: ResponsiveT<WhiteSpaceT>,
|
|
346
|
+
src?: string,
|
|
346
347
|
};
|
|
347
348
|
|
|
348
349
|
export type StyledBlockPropsT = {
|
|
@@ -81,16 +81,13 @@ function Breadcrumbs(props) {
|
|
|
81
81
|
Separator = _getOverrides12[0],
|
|
82
82
|
baseSeparatorProps = _getOverrides12[1];
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
baseIconProps.overrides = (0, _overrides.mergeOverrides)({
|
|
85
85
|
Svg: {
|
|
86
86
|
style: {
|
|
87
87
|
verticalAlign: 'text-bottom'
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
},
|
|
91
|
-
baseIconProps && baseIconProps.overrides); // $FlowFixMe
|
|
92
|
-
|
|
93
|
-
baseIconProps.overrides = iconOverrides;
|
|
90
|
+
}, baseIconProps && baseIconProps.overrides);
|
|
94
91
|
childrenArray.forEach(function (child, index) {
|
|
95
92
|
childrenWithSeparators.push( /*#__PURE__*/_react.default.createElement(ListItem, _extends({
|
|
96
93
|
key: "breadcrumb-item-".concat(index),
|
|
@@ -15,10 +15,10 @@ import ChevronRight from '../icon/chevron-right.js';
|
|
|
15
15
|
import ChevronLeft from '../icon/chevron-left.js';
|
|
16
16
|
import type {BreadcrumbsPropsT} from './types.js';
|
|
17
17
|
import {
|
|
18
|
-
StyledRoot,
|
|
19
|
-
StyledSeparator,
|
|
20
18
|
StyledList,
|
|
21
19
|
StyledListItem,
|
|
20
|
+
StyledRoot,
|
|
21
|
+
StyledSeparator,
|
|
22
22
|
} from './styled-components.js';
|
|
23
23
|
import {getOverrides, mergeOverrides} from '../helpers/overrides.js';
|
|
24
24
|
|
|
@@ -40,13 +40,10 @@ export function Breadcrumbs(props: BreadcrumbsPropsT) {
|
|
|
40
40
|
StyledSeparator,
|
|
41
41
|
);
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
baseIconProps.overrides = mergeOverrides(
|
|
44
44
|
{Svg: {style: {verticalAlign: 'text-bottom'}}},
|
|
45
|
-
// $FlowFixMe
|
|
46
45
|
baseIconProps && baseIconProps.overrides,
|
|
47
46
|
);
|
|
48
|
-
// $FlowFixMe
|
|
49
|
-
baseIconProps.overrides = iconOverrides;
|
|
50
47
|
|
|
51
48
|
childrenArray.forEach((child, index) => {
|
|
52
49
|
childrenWithSeparators.push(
|
package/button/button.js
CHANGED
|
@@ -192,7 +192,8 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
|
192
192
|
|
|
193
193
|
_defineProperty(Button, "defaultProps", _defaultProps.defaultProps);
|
|
194
194
|
|
|
195
|
-
var ForwardedButton = /*#__PURE__*/React.forwardRef(
|
|
195
|
+
var ForwardedButton = /*#__PURE__*/React.forwardRef( //$FlowFixMe
|
|
196
|
+
function (props, ref) {
|
|
196
197
|
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
197
198
|
forwardedRef: ref
|
|
198
199
|
}, props));
|
package/button/button.js.flow
CHANGED
|
@@ -17,7 +17,7 @@ import {defaultProps} from './default-props.js';
|
|
|
17
17
|
import {getOverrides} from '../helpers/overrides.js';
|
|
18
18
|
import {isFocusVisible, forkFocus, forkBlur} from '../utils/focusVisible.js';
|
|
19
19
|
|
|
20
|
-
import type {ButtonPropsT} from './types.js';
|
|
20
|
+
import type {ButtonPropsT, SharedStylePropsT} from './types.js';
|
|
21
21
|
|
|
22
22
|
class Button extends React.Component<
|
|
23
23
|
// eslint-disable-next-line flowtype/no-weak-types
|
|
@@ -71,16 +71,17 @@ class Button extends React.Component<
|
|
|
71
71
|
overrides.BaseButton || overrides.Root,
|
|
72
72
|
StyledBaseButton,
|
|
73
73
|
);
|
|
74
|
-
const [LoadingSpinner, loadingSpinnerProps] =
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
const [LoadingSpinner, loadingSpinnerProps] =
|
|
75
|
+
getOverrides<SharedStylePropsT>(
|
|
76
|
+
overrides.LoadingSpinner,
|
|
77
|
+
StyledLoadingSpinner,
|
|
78
|
+
);
|
|
78
79
|
const [LoadingSpinnerContainer, loadingSpinnerContainerProps] =
|
|
79
|
-
getOverrides(
|
|
80
|
+
getOverrides<SharedStylePropsT>(
|
|
80
81
|
overrides.LoadingSpinnerContainer,
|
|
81
82
|
StyledLoadingSpinnerContainer,
|
|
82
83
|
);
|
|
83
|
-
const sharedProps = {
|
|
84
|
+
const sharedProps: SharedStylePropsT = {
|
|
84
85
|
...getSharedProps(this.props),
|
|
85
86
|
$isFocusVisible: this.state.isFocusVisible,
|
|
86
87
|
};
|
|
@@ -133,6 +134,7 @@ class Button extends React.Component<
|
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
const ForwardedButton = React.forwardRef<ButtonPropsT, HTMLButtonElement>(
|
|
137
|
+
//$FlowFixMe
|
|
136
138
|
(props: ButtonPropsT, ref) => <Button forwardedRef={ref} {...props} />,
|
|
137
139
|
);
|
|
138
140
|
ForwardedButton.displayName = 'Button';
|
|
@@ -78,7 +78,6 @@ var BaseButton = (0, _index.styled)('button', function (_ref) {
|
|
|
78
78
|
$isSelected: $isSelected,
|
|
79
79
|
$disabled: $disabled
|
|
80
80
|
})), getShapeStyles({
|
|
81
|
-
$theme: $theme,
|
|
82
81
|
$shape: $shape,
|
|
83
82
|
$size: $size
|
|
84
83
|
}));
|
|
@@ -455,8 +454,7 @@ function getColorStyles(_ref13) {
|
|
|
455
454
|
}
|
|
456
455
|
|
|
457
456
|
function getShapeStyles(_ref14) {
|
|
458
|
-
var $
|
|
459
|
-
$shape = _ref14.$shape,
|
|
457
|
+
var $shape = _ref14.$shape,
|
|
460
458
|
$size = _ref14.$size;
|
|
461
459
|
|
|
462
460
|
if ($shape === _constants.SHAPE.circle || $shape === _constants.SHAPE.square) {
|
|
@@ -8,6 +8,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
import {styled} from '../styles/index.js';
|
|
9
9
|
import {KIND, SIZE, SHAPE} from './constants.js';
|
|
10
10
|
import type {SharedStylePropsT} from './types.js';
|
|
11
|
+
import type {FontT} from '../themes/types.js';
|
|
11
12
|
|
|
12
13
|
export const BaseButton = styled<SharedStylePropsT>(
|
|
13
14
|
'button',
|
|
@@ -21,6 +22,7 @@ export const BaseButton = styled<SharedStylePropsT>(
|
|
|
21
22
|
$isSelected,
|
|
22
23
|
$disabled,
|
|
23
24
|
$isFocusVisible,
|
|
25
|
+
//$FlowFixMe
|
|
24
26
|
}) => ({
|
|
25
27
|
display: 'inline-flex',
|
|
26
28
|
// need to maintain button width while showing loading spinner
|
|
@@ -64,7 +66,7 @@ export const BaseButton = styled<SharedStylePropsT>(
|
|
|
64
66
|
$isSelected,
|
|
65
67
|
$disabled,
|
|
66
68
|
}),
|
|
67
|
-
...getShapeStyles({$
|
|
69
|
+
...getShapeStyles({$shape, $size}),
|
|
68
70
|
}),
|
|
69
71
|
);
|
|
70
72
|
|
|
@@ -219,7 +221,7 @@ function getBorderRadiiStyles({$theme, $size, $shape}) {
|
|
|
219
221
|
};
|
|
220
222
|
}
|
|
221
223
|
|
|
222
|
-
function getFontStyles({$theme, $size}) {
|
|
224
|
+
function getFontStyles({$theme, $size}): FontT {
|
|
223
225
|
switch ($size) {
|
|
224
226
|
case SIZE.mini:
|
|
225
227
|
return $theme.typography.font150;
|
|
@@ -431,7 +433,14 @@ function getColorStyles({
|
|
|
431
433
|
}
|
|
432
434
|
}
|
|
433
435
|
|
|
434
|
-
function getShapeStyles({$
|
|
436
|
+
function getShapeStyles({$shape, $size}): {
|
|
437
|
+
height?: string,
|
|
438
|
+
width?: string,
|
|
439
|
+
paddingTop?: number,
|
|
440
|
+
paddingBottom?: number,
|
|
441
|
+
paddingLeft?: number,
|
|
442
|
+
paddingRight?: number,
|
|
443
|
+
} {
|
|
435
444
|
if ($shape === SHAPE.circle || $shape === SHAPE.square) {
|
|
436
445
|
let height, width;
|
|
437
446
|
switch ($size) {
|
package/button/utils.js.flow
CHANGED
|
@@ -5,7 +5,7 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
|
-
import type {ButtonPropsT} from './types.js';
|
|
8
|
+
import type {ButtonPropsT, SharedStylePropsT} from './types.js';
|
|
9
9
|
|
|
10
10
|
export function getSharedProps({
|
|
11
11
|
colors,
|
|
@@ -15,7 +15,7 @@ export function getSharedProps({
|
|
|
15
15
|
kind,
|
|
16
16
|
shape,
|
|
17
17
|
size,
|
|
18
|
-
}: ButtonPropsT) {
|
|
18
|
+
}: ButtonPropsT): $Shape<SharedStylePropsT> {
|
|
19
19
|
return {
|
|
20
20
|
$colors: colors,
|
|
21
21
|
$disabled: disabled,
|
|
@@ -35,6 +35,10 @@ function StatefulButtonGroup(props) {
|
|
|
35
35
|
}, restProps), function (_ref) {
|
|
36
36
|
var containerProps = _extends({}, _ref);
|
|
37
37
|
|
|
38
|
-
return
|
|
38
|
+
return (
|
|
39
|
+
/*#__PURE__*/
|
|
40
|
+
//$FlowFixMe
|
|
41
|
+
React.createElement(_buttonGroup.default, containerProps, props.children)
|
|
42
|
+
);
|
|
39
43
|
});
|
|
40
44
|
}
|
|
@@ -17,6 +17,7 @@ export default function StatefulButtonGroup(props: StatefulPropsT) {
|
|
|
17
17
|
return (
|
|
18
18
|
<StatefulContainer initialState={initialState} {...restProps}>
|
|
19
19
|
{({...containerProps}) => (
|
|
20
|
+
//$FlowFixMe
|
|
20
21
|
<ButtonGroup {...containerProps}>{props.children}</ButtonGroup>
|
|
21
22
|
)}
|
|
22
23
|
</StatefulContainer>
|
|
@@ -241,14 +241,10 @@ function Combobox<OptionT>(props: PropsT<OptionT>) {
|
|
|
241
241
|
overrides.ListItem,
|
|
242
242
|
StyledListItem,
|
|
243
243
|
);
|
|
244
|
-
const [
|
|
245
|
-
|
|
246
|
-
// $FlowFixMe
|
|
247
|
-
{overrides: inputOverrides = {}, ...restInputProps},
|
|
248
|
-
] = getOverrides(overrides.Input, Input);
|
|
244
|
+
const [OverriddenInput, {overrides: inputOverrides = {}, ...restInputProps}] =
|
|
245
|
+
getOverrides(overrides.Input, Input);
|
|
249
246
|
const [
|
|
250
247
|
OverriddenPopover,
|
|
251
|
-
// $FlowFixMe
|
|
252
248
|
{overrides: popoverOverrides = {}, ...restPopoverProps},
|
|
253
249
|
] = getOverrides(overrides.Popover, Popover);
|
|
254
250
|
|
|
@@ -8,6 +8,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
|
|
9
9
|
import {SIZE} from '../input/index.js';
|
|
10
10
|
import {styled} from '../styles/index.js';
|
|
11
|
+
import type {FontT} from '../themes/types.js';
|
|
11
12
|
|
|
12
13
|
export const StyledRoot = styled('div', {});
|
|
13
14
|
|
|
@@ -29,8 +30,14 @@ export const StyledListBox = styled<{|$width: string|}>(
|
|
|
29
30
|
},
|
|
30
31
|
);
|
|
31
32
|
|
|
32
|
-
function buildStylesForSize(
|
|
33
|
-
|
|
33
|
+
function buildStylesForSize(
|
|
34
|
+
size,
|
|
35
|
+
theme,
|
|
36
|
+
):
|
|
37
|
+
| {|...FontT, height: string, paddingLeft?: string|}
|
|
38
|
+
| {|...FontT, height: string, paddingRight?: string|} {
|
|
39
|
+
const paddingDir: string =
|
|
40
|
+
theme.direction === 'rtl' ? 'paddingRight' : 'paddingLeft';
|
|
34
41
|
switch (size) {
|
|
35
42
|
case SIZE.mini:
|
|
36
43
|
return {
|
|
@@ -18,6 +18,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
18
18
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
19
|
|
|
20
20
|
function CustomColumn(options) {
|
|
21
|
+
//$FlowFixMe
|
|
21
22
|
return (0, _column.default)(_objectSpread({
|
|
22
23
|
kind: _constants.COLUMNS.CUSTOM
|
|
23
24
|
}, options));
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
113
113
|
|
|
114
114
|
_classCallCheck(this, CalendarHeader);
|
|
115
115
|
|
|
116
|
-
_this = _super.call(this, props);
|
|
116
|
+
_this = _super.call(this, props); //$FlowFixMe
|
|
117
117
|
|
|
118
118
|
_defineProperty(_assertThisInitialized(_this), "dateHelpers", void 0);
|
|
119
119
|
|
|
@@ -469,17 +469,14 @@ var CalendarHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
469
469
|
OverriddenStatefulMenu = _getOverrides16[0],
|
|
470
470
|
menuProps = _getOverrides16[1];
|
|
471
471
|
|
|
472
|
-
|
|
472
|
+
menuProps.overrides = (0, _overrides.mergeOverrides)({
|
|
473
473
|
List: {
|
|
474
474
|
style: {
|
|
475
475
|
height: 'auto',
|
|
476
476
|
maxHeight: '257px'
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
},
|
|
480
|
-
menuProps && menuProps.overrides); // $FlowFixMe
|
|
481
|
-
|
|
482
|
-
menuProps.overrides = menuOverrides;
|
|
479
|
+
}, menuProps && menuProps.overrides);
|
|
483
480
|
|
|
484
481
|
var initialMonthIndex = _this.monthItems.findIndex(function (month) {
|
|
485
482
|
return month.id === _this.dateHelpers.getMonth(date).toString();
|
|
@@ -18,19 +18,19 @@ import {LocaleContext} from '../locale/index.js';
|
|
|
18
18
|
import {ThemeContext} from '../styles/theme-provider.js';
|
|
19
19
|
import {
|
|
20
20
|
StyledCalendarHeader,
|
|
21
|
-
StyledPrevButton,
|
|
22
|
-
StyledNextButton,
|
|
23
21
|
StyledMonthHeader,
|
|
24
|
-
StyledWeekdayHeader,
|
|
25
22
|
StyledMonthYearSelectButton,
|
|
26
23
|
StyledMonthYearSelectIconContainer,
|
|
24
|
+
StyledNextButton,
|
|
25
|
+
StyledPrevButton,
|
|
26
|
+
StyledWeekdayHeader,
|
|
27
27
|
} from './styled-components.js';
|
|
28
|
-
import {ORIENTATION, WEEKDAYS
|
|
28
|
+
import {DENSITY, ORIENTATION, WEEKDAYS} from './constants.js';
|
|
29
29
|
import {getOverrides, mergeOverrides} from '../helpers/overrides.js';
|
|
30
30
|
import type {HeaderPropsT} from './types.js';
|
|
31
31
|
import type {LocaleT} from '../locale/types.js';
|
|
32
32
|
import type {ThemeT} from '../styles/types.js';
|
|
33
|
-
import {
|
|
33
|
+
import {forkBlur, forkFocus, isFocusVisible} from '../utils/focusVisible.js';
|
|
34
34
|
|
|
35
35
|
const navBtnStyle = ({$theme}) => ({
|
|
36
36
|
cursor: 'pointer',
|
|
@@ -73,6 +73,7 @@ export default class CalendarHeader<T = Date> extends React.Component<
|
|
|
73
73
|
|
|
74
74
|
constructor(props: HeaderPropsT<T>) {
|
|
75
75
|
super(props);
|
|
76
|
+
//$FlowFixMe
|
|
76
77
|
this.dateHelpers = new DateHelpers(props.adapter);
|
|
77
78
|
this.monthItems = [];
|
|
78
79
|
this.yearItems = [];
|
|
@@ -429,13 +430,10 @@ export default class CalendarHeader<T = Date> extends React.Component<
|
|
|
429
430
|
overrides.MonthYearSelectStatefulMenu,
|
|
430
431
|
StatefulMenu,
|
|
431
432
|
);
|
|
432
|
-
|
|
433
|
+
menuProps.overrides = mergeOverrides(
|
|
433
434
|
{List: {style: {height: 'auto', maxHeight: '257px'}}},
|
|
434
|
-
// $FlowFixMe
|
|
435
435
|
menuProps && menuProps.overrides,
|
|
436
436
|
);
|
|
437
|
-
// $FlowFixMe
|
|
438
|
-
menuProps.overrides = menuOverrides;
|
|
439
437
|
|
|
440
438
|
const initialMonthIndex = this.monthItems.findIndex(
|
|
441
439
|
(month) => month.id === this.dateHelpers.getMonth(date).toString(),
|
package/datepicker/calendar.js
CHANGED
|
@@ -598,7 +598,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
|
598
598
|
var _this$props3 = _this.props,
|
|
599
599
|
_highlightedDate = _this$props3.highlightedDate,
|
|
600
600
|
_value = _this$props3.value,
|
|
601
|
-
adapter = _this$props3.adapter;
|
|
601
|
+
adapter = _this$props3.adapter; //$FlowFixMe
|
|
602
|
+
|
|
602
603
|
_this.dateHelpers = new _dateHelpers.default(adapter);
|
|
603
604
|
|
|
604
605
|
var dateInView = _this.getDateInView();
|
|
@@ -64,6 +64,7 @@ export default class Calendar<T = Date> extends React.Component<
|
|
|
64
64
|
super(props);
|
|
65
65
|
|
|
66
66
|
const {highlightedDate, value, adapter} = this.props;
|
|
67
|
+
//$FlowFixMe
|
|
67
68
|
this.dateHelpers = new DateHelpers(adapter);
|
|
68
69
|
const dateInView = this.getDateInView();
|
|
69
70
|
let time = [];
|
|
@@ -530,7 +531,6 @@ export default class Calendar<T = Date> extends React.Component<
|
|
|
530
531
|
);
|
|
531
532
|
const [
|
|
532
533
|
QuickSelect,
|
|
533
|
-
// $FlowFixMe
|
|
534
534
|
{overrides: quickSelectOverrides, ...restQuickSelectProps},
|
|
535
535
|
] = getOverrides(
|
|
536
536
|
//
|
package/datepicker/datepicker.js
CHANGED
|
@@ -118,7 +118,7 @@ var Datepicker = /*#__PURE__*/function (_React$Component) {
|
|
|
118
118
|
|
|
119
119
|
_classCallCheck(this, Datepicker);
|
|
120
120
|
|
|
121
|
-
_this = _super.call(this, props);
|
|
121
|
+
_this = _super.call(this, props); //$FlowFixMe
|
|
122
122
|
|
|
123
123
|
_defineProperty(_assertThisInitialized(_this), "calendar", void 0);
|
|
124
124
|
|
package/datepicker/types.js.flow
CHANGED
|
@@ -163,7 +163,7 @@ export type CalendarPropsT<T = Date> = {
|
|
|
163
163
|
maxDate?: ?T,
|
|
164
164
|
/** A min date that is selectable. */
|
|
165
165
|
minDate?: ?T,
|
|
166
|
-
adapter
|
|
166
|
+
adapter?: DateIOAdapter<T>,
|
|
167
167
|
/** A number of months rendered in the calendar. */
|
|
168
168
|
monthsShown?: number,
|
|
169
169
|
/** Day's `click` event handler. */
|
package/drawer/constants.js.flow
CHANGED
|
@@ -5,8 +5,9 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
|
+
import type {AnchorT, AnchorPropT, SizeT, SizePropT} from './types.js';
|
|
8
9
|
|
|
9
|
-
export const SIZE = {
|
|
10
|
+
export const SIZE: {[key: SizeT]: SizePropT} = {
|
|
10
11
|
default: 'default',
|
|
11
12
|
full: 'full',
|
|
12
13
|
auto: 'auto',
|
|
@@ -24,7 +25,7 @@ export const CLOSE_SOURCE = {
|
|
|
24
25
|
escape: 'escape',
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
export const ANCHOR = {
|
|
28
|
+
export const ANCHOR: {[key: AnchorT]: AnchorPropT} = {
|
|
28
29
|
left: 'left',
|
|
29
30
|
right: 'right',
|
|
30
31
|
top: 'top',
|